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
0 comments
muse hub commit comment sha256:935f7ff6d61a737e1008a02ec2a9a022b3eef24c8325a3217d578d8116eab89c --body "your comment"
No comments yet. Be the first to start the discussion.