gabriel / muse public
patch task/supercharge-symbolic-ref #1 / 1
AI Agent gabriel · 58 days ago · Apr 18, 2026 · Diff

supercharge: muse symbolic-ref — elapsed_ms, exit_code, JSON errors to stdout

- Add elapsed_ms (float, ms) and exit_code (int) to _SymbolicRefResult TypedDict - All JSON success paths include elapsed_ms and exit_code - _emit_error(): in JSON mode errors go to stdout; in text mode to stderr - Add register() docstring - Update module docstring with new fields and JSON error schema - Fix 5 pre-existing test failures: stale fake commit IDs (bare hex) now use long_id() to produce sha256:-prefixed IDs that pass read_head() validation - Remove unidiomatic --format xml test inputs; replace with --format bad or unsupported-ref triggers - Update 3 existing tests whose assertions assumed errors went to stderr (now JSON-mode errors go to stdout — consistent with other commands) - 35 new tests: U1-U4, E1-E5, I1-I5, S1-S4, D1-D5, P1-P3, C1-C2

sha256:440d85c4bc6d54efead53e91cc6f68a01871de059fe4e09b7016bd99a0fe3233 sha
sha256:77a37935b0438ebde22b610addaf5abc68f9331806ce0c8a355e60bb379eda4d snapshot
← Older Oldest on task/supercharge-symbolic-ref
All commits
Newer → Latest on task/supercharge-symbolic-ref

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:440d85c4bc6d54efead53e91cc6f68a01871de059fe4e09b7016bd99a0fe3233 --body "your comment"