Repository navigation
docs(commands): generate blocks for every public command and halve hand-written prose - #4919
Conversation
perf cpu profile report reads --template (falling back to the last capture's template), but its usage form omitted the option. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tated prose Add generated blocks for audio, mcp, plugins, and proxy. Delete hand-written text that restates the adjacent generated block or agent-device help, dedupe repeated paragraphs and examples, and move the iOS runner refusal reasons under Retry after a failed command. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The generated-block guard now checks the page against listCliCommandNames(), which supersedes the forward half of the command-doc coverage test and its canonical snapshot usage check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Size Report
Startup median (7 runs, lower is better):
|
This comment has been minimized.
This comment has been minimized.
Generated blocks own API facts, `agent-device help` owns exact semantics, and the error reasons page owns reason meanings. The notes now keep what a command is for, how commands combine, gotchas that change the next step, platform limits, and recovery advice. Internal mechanisms, exact timings, and per-reason narratives are gone. Headings and guarded phrases stay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
|
At 43c1f63, one sentence in commands.md is now wrong for Android, so this needs a small fix before merge. The old text said that on iOS the Not blocking, and these can be taken or left: some facts lived only in the hand-written commands.md and no generated block or help text carries them now (published reasons such as shake-rest-acceleration-unreadable, simulator-log-stream-launch-timeout and runner_start_budget_exhausted; the targetActivation reason, priorState and otherActiveApplicationPid fields; the macOS native "no accessibility action" limit; where --no-post-gesture-stabilization is rejected), so each could keep one clause or move into a ReasonTable row and the comments that cite commands.md as owner could be updated; a few reworded bullets lost small qualifiers ( The other 21 checks pass at this head. Body rules shows as cancelled, not failed: its workflow cancels older runs on the same ref, no gate script or workflow changed, and the PR body check run locally against the title and body passes. Not verified here: generator byte-equality, doc-prose and link results at 43c1f63, which rest on CI, and the exact command count behind "78 blocks", which rests on the guard test passing in CI. There are no conflicts. After the Android and orientation qualifiers are restored, this is ready to merge. |
… and orientation auto Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Fixed at |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on ce9b73d. The verdict and the full list are in the summary comment.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
|
The earlier finding on the shake error reasons is fixed at 6b22bb8: commands.md:369 names shake-rest-acceleration-unreadable again next to shake-console-refused, matching console-shake.ts:22-29. One docs problem remains. The rewrite at commands.md:2274 now promises that the recorder captures the session app. The base text said the default app scope needs an active app session. On a local iOS simulator, record start without a scope still runs display-wide simctl io recordVideo: runtime.ts:100-123 passes only the device and output path, simctl-facade.ts:19-33 picks the lit display with no app filter, and completion.ts:92-101 exports without an app crop. A reader can expect an app-only video and share one that shows notifications, the home screen, or another app. Please restore the split between "app scope needs an active app session" and "the backend decides what is captured", and state that local iOS simulator recordings capture the display even with the default scope. The inline thread on the shake reasons can be resolved: #4919 (comment). All 21 checks pass, and this change only touches prose in website/docs. Not verified here: generator byte-equality, doc-prose and link checks were taken from CI and not run locally, and the non-delta diff was not re-read. There are no conflicts. Once the recording paragraph is corrected, nothing else blocks merge. |
…tors capture the display Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Fixed at |
This comment has been minimized.
This comment has been minimized.
|
The earlier finding about the removed gesture tap qualifier is still open at 7f7945f, and the one open inline thread on the Recording bullet is now fixed. CI is green: 21 checks pass, and the latest change only touches docs. There are no conflicts. The rewrite drops the sentence that WebDriver providers must opt in to gesture tap. website/docs/docs/commands.md:1214 now describes multi-contact taps without that condition, and the generated gesture block links to a command-level support table that does not give the tap-specific rule. In a WebDriver session without tapGesture support, webdriver-interactor.ts:275 requires the separately mapped tapGesture capability before it sends W3C actions, and capabilities.ts:152 defaults it to unsupported. A reader who follows the gesture tap examples on a default WebDriver session gets UNSUPPORTED_OPERATION before any touch is sent. Please restore the sentence that WebDriver providers refuse gesture tap unless they declare tapGesture support in the handwritten gesture tap bullet. The Recording bullet thread is fixed at this commit (#4919 (comment)), so the author can resolve it. Not verified here: behavior on a simulator, since this was a docs-only review checked against the code path. Once the gesture tap sentence is back, nothing else stands in the way of merge. |
…out tapGesture support Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Fixed at |
This comment has been minimized.
This comment has been minimized.
|
One docs problem remains at 59daddc. The WebDriver gesture tap note from the earlier review is now restored at commands.md:1214, and it matches the capability guard in The macOS focus note at commands.md:108 lost its best-effort qualifier. The base called focus handling best effort. The head says a windowed Android emulator always opens behind the focused app. That does not hold: when the frontmost-app lookup fails, the host still starts the emulator and skips focus restoration (src/platform-runtime-android-emulator-host.ts:73-86). When the watcher runs, it restores focus only if the emulator becomes frontmost within its startup budget. A user can rely on the new promise and still have the emulator take focus from the app they are using. Please restore the best-effort wording and say the emulator can take focus if the current app cannot be read or the window appears after the startup budget. The same edit shows that the rewrite does not preserve every existing platform qualifier outside the gesture tap note. Please check the rest of the rewrite against the base for other dropped qualifiers, or explain why this one is safe to drop. The generated-block guard in |
…rewrite dropped Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Qualifier sweep at Restored (section → qualifier, with the code it follows)
Considered, cut kept
I also resolved the stale inline thread at commands.md:368 (fixed in |
This comment has been minimized.
This comment has been minimized.
|
The earlier findings from 59daddc are now addressed, but one docs regression remains at 4301630. The code is otherwise as reviewed, and all 22 checks pass. Not verified here: every added qualifier sentence (alert macOS fallback, fold HID, Chromium accessibility, gesture tap scope, Expo scheme) was traced to code. The focus, bluetooth and hardware-button claims were sampled. The home bullet in commands.md now says the watch face is unreachable. In a watchOS simulator session with an app in the foreground, The PR text says the rewrite preserves the distinction between |
…scope the overlay limit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
At |
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 b3a547c. The home bullet at commands.md:693 now states both transitions, which fixes the finding from the earlier review (#4919 (comment)), and nothing from that review remains. All 21 checks pass, and the change since the last review is a single docs line. There are no conflicts, and nothing else must happen before merge. Not blocking: https://github.com/callstack/agent-device/blob/b3a547c/website/docs/docs/commands.md#L693 says other commands act on the session app and bring it to the foreground first, which also covers action-button, and the base text listed that one with home as acting on whatever is on screen. Saying "Other commands, except action-button" would fix it, and this can be taken or left. The resolved thread at #4919 (comment) no longer applies, because the home bullet now matches home.ts:6, so the author can resolve it. Not verified here: the docs build and checks were not run locally, and the foreground-first behavior of the non-home commands was not re-traced in Swift. |
…-reasons * origin/main: docs(commands): generate blocks for every public command and halve hand-written prose (#4919) fix(depgraph): budget the blast-radius query, not the whole-tree scan (#4920) refactor: remove dead exports and stale fallow exemptions (#4931) refactor(reasons): declare the R6a reasons in ReasonTable rows (#4938) # Conflicts: # website/docs/docs/error-reasons.md
…n-client-reasons * origin/main: docs(commands): generate blocks for every public command and halve hand-written prose (#4919) fix(depgraph): budget the blast-radius query, not the whole-tree scan (#4920) refactor: remove dead exports and stale fallow exemptions (#4931) refactor(reasons): declare the R6a reasons in ReasonTable rows (#4938) # Conflicts: # website/docs/docs/error-reasons.md
…android-reasons * origin/main: docs(commands): generate blocks for every public command and halve hand-written prose (#4919) fix(depgraph): budget the blast-radius query, not the whole-tree scan (#4920) refactor: remove dead exports and stale fallow exemptions (#4931) refactor(reasons): declare the R6a reasons in ReasonTable rows (#4938) # Conflicts: # website/docs/docs/error-reasons.md
…er-errors * origin/main: docs(commands): generate blocks for every public command and halve hand-written prose (#4919) fix(depgraph): budget the blast-radius query, not the whole-tree scan (#4920) refactor: remove dead exports and stale fallow exemptions (#4931) refactor(reasons): declare the R6a reasons in ReasonTable rows (#4938) # Conflicts: # website/docs/docs/error-reasons.md
* origin/main: docs(commands): generate blocks for every public command and halve hand-written prose (#4919) fix(depgraph): budget the blast-radius query, not the whole-tree scan (#4920) refactor: remove dead exports and stale fallow exemptions (#4931) refactor(reasons): declare the R6a reasons in ReasonTable rows (#4938) # Conflicts: # website/docs/docs/error-reasons.md
* origin/main: docs(commands): generate blocks for every public command and halve hand-written prose (#4919) fix(depgraph): budget the blast-radius query, not the whole-tree scan (#4920) refactor: remove dead exports and stale fallow exemptions (#4931) refactor(reasons): declare the R6a reasons in ReasonTable rows (#4938) # Conflicts: # packages/platform-harmonyos/src/app-lifecycle.ts # website/docs/docs/error-reasons.md
Summary
Generated blocks own API facts,
agent-device helpowns exact semantics, and error reasons owns reason meanings. Hand-written notes keep purpose, workflows, behavior-changing gotchas, platform limits, and recovery.perf cpu profile reportreads--template, but its xctrace usage form omitted it; it now lists it.audio,mcp,plugins, andproxyget generated blocks. A guard requires exactly one block per command inlistCliCommandNames(), superseding the forward half ofcommand-doc-coverage.test.ts.Before / after
agent-device help perf:Validation
4301630c:check:command-docs,check:doc-prose, andcheck:doc-links(website build plus link check) pass. CI validates the head.check:affected --runpassed at0a8a7c7126.4075dd1for dropped qualifiers, without an independent reviewer.🤖 Generated with Claude Code