Skip to content

docs(commands): generate command blocks for the navigation through desktop sections - #4843

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

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

Conversation

@thymikee

@thymikee thymikee commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary

website/docs/docs/commands.md restates registry-owned CLI facts by hand in the sections I own, so those lines drift when a schema changes. This adds one generated block per public command documented in ## Navigation through ## Desktop targets, so the registry owns the summary, usage, options, aliases, capabilities links, and the per-command help pointer there.

Blocks added for: boot, shutdown, open, close, device, daemon, back, home, app-switcher, orientation, action-button, shake, hardware-button, fold, telephony, takeover, web, devices, capabilities, doctor, prepare, tv-remote.

Sections that are workflow or prerequisite prose with no command of their own get no block: ## Device isolation scopes (flags only), ### HarmonyOS command boundary (a support boundary for capabilities, blocked once under Device discovery), ## watchOS simulators and ## Desktop targets (target guides that reuse commands blocked elsewhere).

Removed as exact duplicates of a generated usage line: agent-device open [app|url] [url], agent-device home, agent-device app-switcher, agent-device action-button, agent-device shake, and agent-device devices in Device discovery. No other hand-written line changed; every heading and anchor is unchanged.

Validation

Docs-only change, so runtime tests do not apply. At 0a0b927: pnpm install --frozen-lockfile, pnpm build, pnpm generate:command-docs (page current), pnpm check:command-docs (27 pass, no waiver added), pnpm check:doc-prose, pnpm check:doc-links including the website build, test/repo-guards/runner-refusal-reason-docs.test.ts (3 pass), pnpm check:quick, pnpm format. Gross diff 376 lines. CI validates the pushed head.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

View guided diff Turn on auto-fix

…, discovery, diagnostics, TV, and desktop sections
@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of 0a0b927

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

The PR is ready at 0a0b927. CI is green, with 8 checks and none failing, and there are no conflicts. Not verified here: the docs were not regenerated or built at this commit, and the capabilities anchors were not rebuilt; this relies on the guard test design and the green CI.

Not blocking: the generated option tables copy registry text that names other commands, for example the tv-remote row for --duration-ms starts with "Scroll: pace the gesture...", so a follow-up issue could let the generator scope or reword such descriptions, and this can be taken or left.

@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 16dcd0a into main Nov 20, 2026
8 checks passed
@thymikee
thymikee deleted the t3/command-blocks-rollout-a branch November 20, 2026 18:25
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