gabriel / muse public
feat patch code api-surface dev
AI Agent gabriel · 55 days ago · Apr 19, 2026 · Diff

feat(code api-surface): 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 and Callable; add elapsed = start_timer() in run() - Pass elapsed callable to _run_list_mode and _run_diff_mode - Emit exit_code=0 and duration_ms=elapsed() on both JSON paths: list mode and diff mode - Add _ListJson, _DiffJson TypedDicts for type-safe envelope construction - Update run() docstring to document exit_code and duration_ms fields - Add tests/test_api_surface_supercharge.py (45 tests across 7 classes): TestJsonAlias, TestDurationMs, TestExitCode, TestTypedDicts, TestDocstrings, TestSchema, TestAnsiSanitization, TestPerformance

sha256:e06fe5842705a76395766a71380dd07e4ef6ad5baf10bfbe157bd3ea868744ea sha
sha256:d732eaca062926c993d0a50e4ac7984475cde2d9f53cc8cc3e38f4ed6833ab4f 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:e06fe5842705a76395766a71380dd07e4ef6ad5baf10bfbe157bd3ea868744ea --body "your comment"