feat(merge-tree): agent supercharge — TypedDicts, exit_code, duration_ms, JSON error routing
- Add _MergeTreeJson and _MergeTreeErrorJson TypedDicts for stable wire format - Add _emit_error(output_json, msg, code) — routes errors to stdout JSON in --json mode - Add t0/duration_ms timing to all JSON output paths - Add exit_code field to JSON envelope (0=clean, 1=conflict/error) - Update _SAFE_REF_RE to accept sha256:-prefixed commit IDs - Update _resolve_ref to handle sha256:-prefixed commit IDs via validate_object_id - Remove redundant 'import json as _json_mod' inside run() body - Update module docstring with full agent contract (exit_code, duration_ms, error schema) - Fix test_cmd_merge_tree.py: _sha() now returns sha256:-prefixed IDs - Fix test_write_objects_creates_snapshot: strip sha256: prefix in file path check - Fix test_same_inputs_same_output: exclude duration_ms from determinism comparison - Add tests/test_merge_tree_supercharge.py: 28 tests across 7 coverage tiers
0 comments
muse hub commit comment sha256:1792b116922d66d9022ba9d4569e2789e647724c2d4dbc512db0c4d07616f8f8 --body "your comment"
No comments yet. Be the first to start the discussion.