ms-cli v0.4.0 — ms repair subcommand + D25 cascade
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
- mnemonic-toolkit v0.23.0 — toolkit's `mnemonic repair --ms1` shares the JSON envelope schema.
- md-cli v0.6.0 — sibling `md repair`.
- mk-cli v0.4.0 — sibling `mk repair` (released earlier in cycle).
🤖 Released as part of the v0.22.x follow-ups cycle (Tranche B close).