Skip to content

ms-cli v0.4.0 — ms repair subcommand + D25 cascade

Choose a tag to compare

@bg002h bg002h released this 18 May 01:00

Tranche B Phase B.5 of the v0.22.x follow-ups cycle. Sibling-CLI repair surface mirroring toolkit's `mnemonic repair --ms1`.

What's new

  • `ms repair ` — single-chunk repair via ms-codec v0.2.0's `decode_with_correction`. Stdin via `-` token. D9 secret-on-stdout warning preserved (matches toolkit's stderr byte-exact).
  • Exit codes per D26: `0` (clean) / `5` (REPAIR_APPLIED) / `2` (unrepairable).
  • `--json` envelope byte-matches toolkit's `RepairJson` schema per D27 (`schema_version="1"`, `kind="ms1"`, `chunk_index` always 0 — single-chunk).
  • D25 handler-signature cascade — 6 existing handlers refactored to `Result` for exit-5 propagation (mirror mk-cli A.1' precedent).

Closes FOLLOWUPs

  • `ms-cli-repair-flag` (toolkit + this repo)

Lockstep

🤖 Released as part of the v0.22.x follow-ups cycle (Tranche B close).