docs(cli): full-contract help for interceptor save#119
Conversation
`interceptor save --help` (and `-h`) now returns a curated, full-contract block — flags (--out/--isolated/--chunk-size/--json/--context/--tab), accepted <expr> result types, the structured response shape (sha256/bytes/chunks/path), the ordering/integrity/strict-CSP notes, and a runnable example — instead of the single one-line slice. The main `interceptor help` line now points at it. The primary consumer is an AI agent running `save --help` mid-task without the skill reference loaded, so the binary self-describes enough to form a correct invocation in one shot. Adds a small COMMAND_HELP map (extensible to other commands) checked before the existing line-extraction fallback. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
brand-tab-group.test.ts iterated string literals and asserted against normalizeColor's chrome.tabGroups color union, so `toBe(c)` failed tsc under tsconfig.host.json — leaving `bun run typecheck` (and CI) red on main. Mark the array `as const` so the loop variable is the literal color union. Compile-only; no runtime change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthrough
ChangesPer-command curated help for
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Makes
interceptor saveself-describing for agents that run--helpmid-task without the skill reference loaded.interceptor save --help— full contractPreviously a single one-line slice; now a curated block covering everything needed to form a correct invocation in one shot:
--out(required, absolute),--isolated,--chunk-size,--json,--context,--tab<expr>results: Blob | File | ArrayBuffer | typed array |blob:URL string |{ url | blobUrl | href }{ success, path, bytes, chunks, sha256 }savefirst → WS sink), flags kept out of<expr>, integrity-checked write, strict-CSP supportImplemented via a small
COMMAND_HELPmap checked before the existing line-extraction fallback (extensible to other commands later). The maininterceptor helpline now points atsave --help. No version bump — help text only. Adds a unit test asserting the curated block carries the flags/inputs/response/example.Incidental CI fix (un-breaks
main)mainis currently red: PR #118 (white-label tab-group) merged with failing CI —test/brand-tab-group.test.tsiterated string literals and asserted them againstnormalizeColor's chrome tabGroups color union, sotoBe(c)failedtscundertsconfig.host.json. This branch marks the arrayas const(compile-only, no runtime change) sobun run typecheckand CI pass green again.Summary by CodeRabbit
New Features
Documentation
savecommand help to clarify output path syntax and document available flags and usage options.