Repository navigation
docs(commands): generate the API blocks for the inspect, interaction, and replay sections - #4844
Conversation
…ocks The command reference still restated registry facts by hand in the Snapshot and inspect, Wait and alerts, Interactions, Find, Assertions, Replay, and Batch sections. A marked block per command now carries the summary, synopsis, options, aliases, and capabilities link that scripts/command-docs/generate.ts renders from the command registry. The hand-written text around each block keeps the behavior a registry entry does not own. Only the batch per-request step-limit bullet was removed: the generated option table states it.
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.
|
This PR is ready at ebdf37f. The code looks correct, and all 8 reported checks pass with none failing. No conflicts. Nothing else needs to happen before merge. Not blocking: in website/docs/docs/commands.md, the generated blocks now sit directly above the hand-written example fences (the snapshot and get blocks, then a bare bash fence starting at Not verified here: |
Summary
website/docs/docs/commands.mdis a hybrid page: a generated block per command carries the registry-owned API facts, hand-written text around it carries context. This adds the blocks for the sections from## Snapshot and inspectthrough## Batch. Each block is written byscripts/command-docs/generate.tsfrom the command registry: summary, usage, per-command or per-action options, anAlso acceptsline for the shared option table, the capabilities link, and a pointer toagent-device help <command>.Commands given a block:
snapshot,get,audit,wait,alert,click,press,focus,fill,type,longpress,hover,swipe,gesture,find,is,replay,test,batch.scrollwas already done and is untouched.Retry after a failed commandis a workflow section with no command of its own, so it gets no block.diff's main explanation is split, and itsdiff screenshothalf lives in## Media and logs, so its block belongs to that range, not here.One hand-written line was removed as an exact duplicate: the
batchbullet that stated the--max-steps <n>per-request step limit, now a generated option row. No other prose, heading, or anchor changed; every other example, default, limit, reason code, and link is kept.Validation
Docs-only, so no runtime tests apply. Head
ebdf37f879. Local:pnpm build,pnpm generate:command-docs(page current),pnpm check:command-docs(27 passed),pnpm check:doc-prose,pnpm check:doc-linkswithpnpm --dir website build,pnpm check:quick,pnpm format(no diff).command-doc-coverage.test.tsandrunner-refusal-reason-docs.test.tspass with no waiver or allowlist. CI validates the rest.