Skip to content

docs(commands): generate the API blocks for the inspect, interaction, and replay sections - #4844

Merged
thymikee merged 1 commit into
mainfrom
t3/command-blocks-rollout-b
Nov 20, 2026
Merged

thymikee merged 1 commit into
mainfrom
t3/command-blocks-rollout-b

Conversation

@thymikee

@thymikee thymikee commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary

website/docs/docs/commands.md is 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 inspect through ## Batch. Each block is written by scripts/command-docs/generate.ts from the command registry: summary, usage, per-command or per-action options, an Also accepts line for the shared option table, the capabilities link, and a pointer to agent-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. scroll was already done and is untouched. Retry after a failed command is a workflow section with no command of its own, so it gets no block. diff's main explanation is split, and its diff screenshot half 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 batch bullet 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-links with pnpm --dir website build, pnpm check:quick, pnpm format (no diff). command-doc-coverage.test.ts and runner-refusal-reason-docs.test.ts pass with no waiver or allowlist. CI validates the rest.

…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-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of ebdf37f

No open findings.

Reviewed with this repository's own Sentinel configuration (faa3c82ec103).

💬 Talking to Sentinel

In a finding's thread, reply with:

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.

@thymikee

Copy link
Copy Markdown
Member Author

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 diff snapshot), so the synopsis and the examples read as separate pieces. A short lead-in sentence before each example fence would help, and this can be taken or left.

Not verified here: pnpm generate:command-docs and the tests were not run locally, and this relies on the green CI run and the test source at head. Not verified here: each generated option row against live help output. The rows come from the same registry facts the drift test checks.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 20, 2026
@thymikee
thymikee merged commit a1ddd51 into main Nov 20, 2026
8 checks passed
@thymikee
thymikee deleted the t3/command-blocks-rollout-b branch November 20, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant