gabriel / muse public
patch dev
AI Agent gabriel · 60 days ago · Apr 17, 2026 · Diff

supercharge(merge): add TypedDicts, exit_code, duration_ms, unified _emit_error

- Add _MergeJson and _MergeErrorJson TypedDicts for stable wire-format documentation - Add _emit_error(fmt, msg, code): routes errors to stdout as JSON in --json mode, suppresses duplicate stderr prose (fixes self-merge dual-emit bug) - Add t0 = time.monotonic() at _run_merge entry; add duration_ms to all 5 JSON output paths (up_to_date, fast_forward, strategy-merge, conflict, three-way) - Add exit_code to all outcome JSON envelopes (0 on success, non-zero on conflict) - Fix no-branch, format-invalid, autoshelf+force error paths to use _emit_error - Update module docstring to document exit_code, duration_ms, and JSON error schema - Fix pre-existing test failures: sha256: prefix in write_object helpers - Add test_merge_supercharge.py: 29 tests covering envelope, errors, TypedDicts, docstring

sha256:f2a2b09a30de3f2f94bb7f77cd09ae5676409035f4de11c6590e233342aff5b6 sha
sha256:26d309feba66ba0bbd82fde85962ec71d5a50508976f63422c0b40600aa02d4f snapshot
← Older Oldest on dev
All commits
Newer → Latest on dev

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:f2a2b09a30de3f2f94bb7f77cd09ae5676409035f4de11c6590e233342aff5b6 --body "your comment"