Repository navigation
docs(command-docs): generate the common option table and per-action option tables - #4824
Merged
Merged
Conversation
… tables The pilot showed three things the generator could not express. Shared flags made every per-command table noisy, a command whose first positional selects an action printed one table for options only some actions read, and two blocks under one heading had no test. `generated:common-options` documents each option at least COMMON_OPTION_MIN_COMMANDS public commands allow, computed from the registry and skipped where any command overrides its text. A command block omits those options and prints one `Also accepts` line naming them. `flagsByAction` renders one table per action. The Keyboard and Clipboard example blocks and one Scroll bullet that only restated the usage line or a generated row are gone.
Contributor
Size Report
Startup median (7 runs, lower is better):
|
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
Member
Author
|
This PR is ready at 2531d93. All checks pass, including the command-docs gate over the changed generator and page, and there are no conflicts. Not blocking, take or leave:
Not verified here: the generator was not run at head; the command-docs check covers that the committed page matches the generated one. |
thymikee
added a commit
that referenced
this pull request
Nov 20, 2026
…nts-main * origin/main: refactor(contracts): bind only the interactor families an owner implements (#4821) refactor(gestures): move gesture algorithms out of contracts into @agent-device/gestures (#4823) docs(command-docs): add the shared option table and per-action option tables (#4824) docs(agents): hold a review to the PR's invariant and stop at a third round (#4835)
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
Fixes what the pilot (#4809) showed, so generated blocks can roll out to every command.
## Common optionsis a new generated region (<!-- generated:common-options -->). It lists each option that 5 or more public CLI commands allow and that no command overrides text for, computed from the registry against one named threshold constant. A command block drops those rows and prints oneAlso acceptsline naming them.agent-device helpoutput is unchanged; the generator only reads data that already exists.flagsByActionrenders one options table per action under a bold label, sorecord contact-sheet --outno longer reads as available torecord start.--settlebullet no longer restates a generated row. No fact was dropped.Before / after
Scroll options table:
Validation
Head
2531d93. Ran locally:generate:command-docs,check:command-docs(27 tests), the tests undersrc/commands/schema(114),test/repo-guards(166),check:doc-prose,check:doc-linksafterpnpm --dir website build,check:gate-manifest,check:fallow,check:quick,format. The change is generator, test, and docs only, so runtime and device tests do not apply. CI validates the rest. No waivers or allowlists were added.Flags in Common options:
--settle,--settle-quiet <ms>,--timeout <ms>,--depth, -d <depth>,--scope, -s <scope>,--raw,--out <path>.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.