Skip to content

diffpact v0.4.3

Latest

Choose a tag to compare

@arto-a arto-a released this 30 Nov 18:24

Security & Safety Fixes

  • Fail-Closed CLI Flag Validation: Unknown CLI flags (e.g. --decision request-changes) and missing option values now immediately fail closed with exit code 2 (INCOMPLETE) across every subcommand.
  • Required --verdict <approve|reject> on diffpact review: Removed the implicit approve default on CLI diffpact review. Missing or invalid verdicts fail closed with exit 2 without writing a review attestation.

Added

  • Global --cwd <dir> (-C <dir>): Supported across all subcommands so orchestrators can verify/review worktrees cleanly from any working directory.
  • Short-SHA & Ref Resolution: diffpact init --starting-sha and diffpact amend --update-starting-sha now resolve 7-char short SHAs and Git refs via git rev-parse --verify while storing canonical 40-character SHA-1s.
  • Clean EPIPE Exit: Piping CLI output (e.g. diffpact doctor | head) exits 0 cleanly.

Install / Upgrade

npm install -g diffpact@0.4.3
npx diffpact doctor