gabriel / muse public
feat patch code age dev
AI Agent gabriel · 62 days ago · Apr 19, 2026 · Diff

feat(code age): supercharge for agents — -j alias, exit_code, duration_ms, envelope TypedDicts

- Add `-j` as shorthand alias for `--json` (store_true, dest=as_json) - Import start_timer; add elapsed = start_timer() at top of run() - Emit exit_code=0 and duration_ms=elapsed() on all three JSON paths: no-symbols early return, --explain JSON, and main list output - Add _NoSymbolsJson, _AgeListJson, _ExplainJson TypedDicts for type-safe construction of every JSON envelope shape - Update run() docstring to document exit_code and duration_ms fields - Add tests/test_age_supercharge.py (31 tests across 7 classes): TestJsonAlias, TestDurationMs, TestExitCode, TestTypedDicts, TestDocstrings, TestAnsiSanitization, TestPerformance

sha256:799eeabe70ac33b0d2f10cd7c20bc37cd461b10ee656519977ef4e11462ec388 sha
sha256:e05647336280b8f024c5c18f1b187379776e4ce3e9903c19377920b40067dcae 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:799eeabe70ac33b0d2f10cd7c20bc37cd461b10ee656519977ef4e11462ec388 --body "your comment"