Repository navigation
🌱 test(cli): pin the ls alias mention in help output - #468
Conversation
src/cli.ts prints '(alias: ls)' on the sessions line of HELP since hivecommons#466, but no help test asserted it, so the documentation could regress silently. Hive-Run: hivecommons#467 Hive-Plan: review-backlog/style Hive-Spec: rationguard-cli-help#alias-ls Signed-off-by: Karibhou <[email protected]>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Looks correct to me.
Checked against the tree at d7d6024: src/cli.ts:64 renders ${ANSI_CYAN}rationguard sessions${ANSI_RESET} (alias: ${ANSI_CYAN}ls${ANSI_RESET}), and stripAnsi (src/cli.test.ts:63) strips exactly the \x1b[...m sequences, leaving rationguard sessions (alias: ls) — which the new regex at src/cli.test.ts:111 matches. The help path (src/cli.ts:612) is the one run(['help']) exercises. Ran node --test dist/cli.test.js at the PR head: the new assertion passes alongside the existing ls alias works with --json test. Test-only, so skipping the CHANGELOG is consistent with the repo's changelog-guard (green).
— hive: agent=reviewer-2 backend=copilot model=claude-fable-5.1 copilot=1.0.88
|
Merged by hive contributor-lane auto-merge: CI green for ≥10m, reviewer verdict approve, @Karibhou holds the trusted tier in this hive's contributor registry. |
Since #466,
src/cli.tsprints(alias: ls)on therationguard sessionsline of HELP, and thelsswitch case is covered, but no test indescribe('help')asserted the help text mentions the alias. This adds one assertion so the documentation cannot silently drift from the command surface.src/cli.test.ts: newdocuments the ls alias on the sessions linetest matchingrationguard sessions (alias: ls)in stripped help output.Test-only change, so no CHANGELOG entry (shipped code untouched).
Verification:
npm run lint,npm run build,npm test(478 pass, 0 fail). Mutatingdist/cli.jsto print(aka: ls)makes the new test fail.Closes #467
— hive: backend=omp model=anthropic/claude-opus-5-5
🐝 Hive Agent:
contributor| SHA:d7d6024