gabriel / muse public
feat patch name-rev task/name-rev-supercharge #1 / 1
AI Agent gabriel · 59 days ago · Apr 17, 2026 · Diff

feat(name-rev): agent supercharge — TypedDicts, exit_code, duration_ms, JSON error routing

- Add _NameRevJson TypedDict: results, duration_ms, exit_code - Add _NameRevErrorJson TypedDict: status, error, exit_code - Add _emit_error(fmt, msg, code) — routes errors to stdout JSON in --json mode - Add t0/duration_ms timing; add exit_code: 0 to JSON output envelope - Convert all 5 error paths (bad fmt, bad max_walk, no inputs, invalid hex, I/O error) to use _emit_error - Fix _resolve_prefix: bare hex prefixes now match sha256:-prefixed name_map keys by normalising input to 'sha256:'+hex before prefix matching - Update module docstring: duration_ms, exit_code, error schema, prefix note - Fix test_cmd_name_rev.py: 3 pre-existing failures from sha256: migration (cid[:4] was 'sha2'; _map() keys were bare hex; error assertions vs stderr) - Add tests/test_name_rev_supercharge.py: 28 tests across 7 coverage tiers

sha256:935f7ff6d61a737e1008a02ec2a9a022b3eef24c8325a3217d578d8116eab89c sha
sha256:0ca24f065f446a289a4870f449241bea6a0412ce9fb1bef2f584a41d637f2f67 snapshot
← Older Oldest on task/name-rev-supercharge
All commits
Newer → Latest on task/name-rev-supercharge

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:935f7ff6d61a737e1008a02ec2a9a022b3eef24c8325a3217d578d8116eab89c --body "your comment"