feat(code blast-risk): supercharge for agents — -j alias, exit_code, duration_ms, _ExplainJson TypedDict
- Add `-j` as shorthand alias for `--json` (store_true, dest=as_json) - Import start_timer and Callable; add elapsed = start_timer() in run() - Emit exit_code=0 and duration_ms=elapsed() on all three JSON paths: table output (_BlastRiskOutput), --explain dict, and _emit_empty() - Add exit_code/duration_ms fields to _BlastRiskOutput TypedDict - Add new _ExplainJson TypedDict for --explain output shape - Pass elapsed callable through to _emit_empty() (new final parameter) - Update run() docstring to document exit_code and duration_ms fields - Add tests/test_blast_risk_supercharge.py (43 tests across 7 classes): TestJsonAlias, TestDurationMs, TestExitCode, TestTypedDicts, TestDocstrings, TestAnsiSanitization, TestPerformance
sha256:bb5837552c31447a3910c66afa8221dd60f2024292bea4bdc8a7c93f35ee39d8
sha
sha256:751dbac8586fa1b4cdd8eae354333b6524ce8b5d6dc00bbe2387b1539b0398f2
snapshot
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:bb5837552c31447a3910c66afa8221dd60f2024292bea4bdc8a7c93f35ee39d8 --body "your comment"
No comments yet. Be the first to start the discussion.