Collapse top-level CLI help into group rows with registry-backed sub help#284
Conversation
…help One row per command group at the top level; 'hyp <group> --help' now lists each subcommand with its registered summary. Dispatch intercepts a leading --help for every command (group table or usage + optional long help), so command bodies stay help-free. Documented in LLP 0009. Also includes dependency bumps in package.json (@aws-sdk, squirreling).
neutral review round 1 -
|
Central `--help` interception (this PR) renders the registration `usage` for a leaf command instead of running the command body. `runDaemonInstall` still supports `--bin <path>`, and its now-bypassed self-help documented it, but the registration `usage` omitted it, so `hyp daemon install --help` silently dropped the flag. Add `--bin <path>` to the registration usage so the primary help path matches what the command accepts, plus a regression test asserting the flag stays documented. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
neutral round 2 review, PR #284 (adopt), reviewed head Verdict: findings. One real (minor) code defect stood at the reviewed head; I fixed it as an additive commit and pushed it. F1 (the LLP 0009 in-place edit) is judged an acceptable clarify-in-place refinement, so it is a maintainer FYI, not a requested change. Recommended verdict once the new head is confirmed: approve (held for the maintainer; neutral does not merge adopted PRs). Both reviewers ran this round: the Claude-side review plus Codex ( Code finding, FIXED and pushedF2 (defect, minor, fixed): Fix pushed as an additive commit ( I checked every other leaf command that still self-handles FYI (not changed): the migration leaves several now-dead Rest of the change, clean
F1: LLP 0009 in-place edit, acceptable clarify-in-place (FYI, not a requested change)The PR adds two
On balance this is additive refinement of the same spec rather than rewriting settled intent, so it is not actionable and does not warrant asking the contributor to split it out. Maintainer FYI (your call, not a blocker): the central-help-interception + collapse-to-group-rows model is a real design choice that supersedes the prior per-command-help pattern. If you want that decision individually citable per the "one small Minor FYI (non-blocking): the same commit bundles an unrelated dependency bump in |
neutral review - round 3 (confirmation)Verdict: clean (recommend approve). Reviewed head Round-2 fix confirmed
No other leaf lost documented flags (round-2 failure mode re-swept)I enumerated every registered leaf whose
One cosmetic nit (not a defect, not requesting changes)
Settled items
Codex did not run this round: the full dual-review machinery drives the main checkout and posts its own comment, both of which conflict with the adopt round constraints (worktree-only, exactly one marker-signed record), and Codex has been hanging here. Proceeded on an independent Claude-side diff read per the sanctioned fallback. No code was pushed - nothing actionable remained. |
🤖 neutral: approved (adopted PR — held for maintainer merge)Reviewed under Review summary (3 rounds)
For your call at merge (non-blocking)
|
hyp --help was listing all 47 commands flat, and group help like hyp query --help showed bare subcommand names with no descriptions.
Also includes dependency bumps in package.json (@aws-sdk, squirreling).
Tests: 2122 pass, typecheck clean, command_dispatch and core_boot_noop smokes pass.