Sync spec: list pagination and sort params, color palettes, skills - #101
Merged
Merged
Conversation
dspangen
approved these changes
Sep 15, 2026
Headline (exploreomni/omni#64034): documents, folders and models list endpoints now document the params their validators enforce. pageSize is an integer 1-100 (default 20), sortDirection defaults to desc, documents gains sortField lastViewedAt, folders drops createdAt/updatedAt from sortField, and models gains modelKind EXTENSION_BRANCH. Also pulled in by the full sync: - New color-palettes group: list, get, create, update, delete - New skills group: list, get, create, update, delete - models content-validator-get: --force-full-validation - query wait: deprecated job_ids param, exposed as --job-ids-2 - query run body: timezone - Response/schema updates for routines, v2 document app writes, documents, topics and whoami Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0174fd5xx9JyExdkPYJXECu4
pflag reads the first backquoted word in a flag's usage as its value placeholder, so a spec description mentioning `job_ids` rendered as --job-ids job_ids. Generated flag descriptions (query params, multipart fields, promoted body fields) now quote code spans with ' instead, and every flag shows its type. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0174fd5xx9JyExdkPYJXECu4
ernestoongaro
force-pushed
the
sync-spec-list-pagination
branch
from
September 15, 2026 14:50
80c0bd2 to
9e4d7f9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Syncs
api/openapi.jsonfromexploreomni/omni@main.Headline: exploreomni/omni#64034. The documents, folders and models list endpoints now document what their validators enforce. The old docs caused avoidable 400s, many of them from CLI requests.
documents list,folders list,models list--page-sizeis an integer 1–100 (default 20);--sort-directiondefaults todescdocuments list--sort-fieldaddslastViewedAtfolders list--sort-fieldisname,favoritesorpath(dropscreatedAt,updatedAt)models list--model-kindaddsEXTENSION_BRANCH;--sort-fielddefaults toupdatedAtAlso pulled in by the full sync:
color-palettesgroup:list,get,create,update,deleteskillsgroup:list,get,create,update,delete(list takes--creator-id,--identifier, pagination and sort flags)models content-validator-get:--force-full-validationquery wait: the deprecatedjob_idsparam, exposed as--job-ids-2since it would also become--job-ids. Use--job-ids.query runbody:timezone(a body field, so it's set via--body, not a flag)No operations or params were removed.
Generator fix: backticks in descriptions no longer replace the flag placeholder. pflag treats the first backquoted word in a flag's usage as its value placeholder. So a spec description with
`job_ids`rendered as--job-ids job_ids, and 18 flags across the spec had the same problem (--creator-id creator.id,--hard-refresh schemas,--model-id rolesByModel, …). Flag descriptions built from the spec (query params, multipart fields, promoted body fields) now quote code spans with', so every flag shows its type:Test plan
make build,make test--helpfor every changed command shows the new flags and enums--helpsweep over all 246 generated commands: none fail. Placeholders are onlystring,int,stringArrayandboolean, and no flag section contains a backtick.force_full_validation,job_ids,pageSize/sortField/sortDirection,modelKind,creatorId/identifierdocuments list,folders listandmodels listaccept--page-size 100and return 400 for 101 and 0. The default page is 20 records.documents list --sort-field lastViewedAtworks;folders list --sort-field createdAtreturns 400 listing the allowed values.models list --model-kind EXTENSION_BRANCHand--include activeBrancheswork.models content-validator-getworks with and without--force-full-validation true.color-palettes: create → get → update (name, type, colors) → get → delete → get returns 404. Invalid hex returns 400.skills: create → get → update → list by--identifierand by sort → a duplicate identifier returns 409 → delete → get returns 404.query waitreturns the same result for--job-idsand--job-ids-2, and renders with--format humanand--chart.whoami --model-idnarrowsrolesByModel.documents v2-get --pretty truereturns indented JSON,falsecompact.ai-eval prompt-sets-list --archivedand--model-idsreturn the right set: a temporary prompt set appears under--archived falsebefore archiving and under--archived trueafter.ai-eval runs-list --archivedworks.ai-model-suggestions model-suggestions-list --status all|ignoredworks.skills list --creator-idreturns your own skills and 404 for an unknown membership.models refresh --hard-refresh falsecompleted a soft refresh; an invalid value returns 400.🤖 Generated with Claude Code
https://claude.ai/code/session_0174fd5xx9JyExdkPYJXECu4