docs(command-docs): generate the common option table and per-action option tables
Merged
TH
7d ago+448+448+012345678901234567890123456789-49-49-01234567890123456789
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.- A command with
flagsByActionrenders one options table per action under a bold label, sorecord contact-sheet --outno longer reads as available torecord start. - Two or more generated blocks under one heading are covered by a test, including that regenerating them is stable.
- Pilot cleanup: the Keyboard example block and two Clipboard example lines that repeated the usage line are gone; the Scroll
--settlebullet no longer restates a generated row. No fact was dropped.
Before / after
Scroll options table:
-| `--settle` | After the action, wait for the UI to go quiet and return the settled diff vs the pre-action tree in the same response (best-effort; never fails the action) |
-| `--settle-quiet <ms>` | Settle: quiet window the UI must hold to count as settled (default 500ms; … keeps the asked window |
-| `--timeout <ms>` | Boot/Open/Prepare: startup budget … With --settle: the settle-wait deadline (default 10s) |
+Also accepts: [common options](#common-options): `--settle`, `--settle-quiet <ms>`, `--timeout <ms>`.
Validation
Head 2531d93. Ran locally: generate:command-docs, check:command-docs (27 tests), the tests under src/commands/schema (114), test/repo-guards (166), check:doc-prose, check:doc-links after pnpm --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>.
![Autofix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.