v0.6.7
polycli v0.6.7
Adds a standalone terminal CLI plus a redacted run ledger on top of v0.6.6.
What changed
- New npm package
@bbingz/polycli(terminal CLI) wraps the same companion bundle that host adapters ship. Install withnpm install -g @bbingz/polyclifor environments without Claude Code, Codex, Copilot CLI, or OpenCode. - Added shared
debugcompanion vocabulary:debug runs,debug show <run-id>,debug explain <run-id>— surfaced as/polycli:debug(Claude),Choose Polycli with @, then ask it to run: debug(Codex),polycli debug(Copilot, terminal), andpolycli_run(["debug", ...])(OpenCode). - Added redacted append-only run ledger (NDJSON) per workspace. Every tracked run is wrapped in
run_startedandrun_summaryevents with stablerunId,workspaceSlug, andhostSurface. Per-command shape:healthrecords onehealth_resultand oneprovider_decision(status=passedwithreason=health_passed, orstatus=skippedwithreason=health_failed) per provider probed.- Foreground
ask/rescue/review/adversarial-reviewrecordsattempt_started,attempt_result, andprovider_decision(status=adoptedon success orstatus=failedwithreason=<command>_failed). review/adversarial-reviewwith no diff records a singleprovider_decisionwithstatus=skippedandreason=no_changes, with no attempt events.- Background job ledger plumbing (running
attempt_started/attempt_result/provider_decisionfrom_job-workeragainst the originatingrunId) remains a deliberate follow-up; v0.6.7 covers foreground commands only.
- Added global
--run-id <id>(orPOLYCLI_RUN_IDenv var) that joins multi-command flows into one ledger run and is stripped before provider/positional parsing. argvredaction covers all prompt and focus positionals, secret-bearing long options (--token,--api-key, …), inlineKEY=valueenv-style assignments, and the defensive--focusflag for review commands.provider,model,json,background, andrun-idstay visible.- Build / release guardrails: a fifth byte-identical companion bundle target (
packages/polycli-terminal/bin/polycli-companion.bundle.mjs);validate:host-maprequires the newdebugrow plus a Terminal CLI mention;validate:manifestscross-checks the terminal package version;release:checkrunsnpm publish ./packages/polycli-terminal --dry-runandopen-source-packaging.test.mjsasserts the tarball shipsLICENSE.
Verification targets
node --test plugins/polycli/scripts/tests/run-ledger.test.mjs plugins/polycli/scripts/tests/integration.test.mjs plugins/polycli/scripts/tests/host-packaging.test.mjs scripts/tests/validate-plugin-bundles.test.mjs scripts/tests/open-source-packaging.test.mjsnpm testnpm run release:check
Publish notes
This release adds a new npm package. After GitHub tag / release, also publish the terminal CLI:
npm publish ./packages/polycli-terminal --access publicSee docs/release.md for the full sequence.