feat(code blame): supercharge for agents — -j alias, exit_code, duration_ms
- Add `-j` as shorthand alias for `--json` (store_true, dest=as_json) - Import start_timer; add elapsed = start_timer() at top of run() - Add exit_code: int and duration_ms: float to _BlameResultJson TypedDict - Emit exit_code=0 and duration_ms=elapsed() in the single JSON path - Update run() docstring to document exit_code and duration_ms fields - Add tests/test_blame_supercharge.py (35 tests across 7 classes): TestJsonAlias, TestDurationMs, TestExitCode, TestTypedDicts, TestDocstrings, TestAnsiSanitization, TestPerformance
sha256:a24088171a2495efed994f4cec32a1d94d4599c327ceb369f1844ba7ebbe9c2c
sha
+52
~3
symbols
sha256:385bd30fefa6f9e2436783f0e7bfd1511326a7152850ab732a76da391e6092c6
snapshot
+52
symbols added
~3
symbols modified
0
dead code introduced
Semantic Changes
55 symbols
+
test_run_docstring_mentions_duration_ms
method
method test_run_docstring_mentions_duration_ms L286–289
+
test_run_docstring_mentions_exit_code
method
method test_run_docstring_mentions_exit_code L281–284
+
test_exit_code_zero_with_no_events_found
method
method test_exit_code_zero_with_no_events_found L229–235
+
test_j_alias_same_top_level_keys_as_json_flag
method
method test_j_alias_same_top_level_keys_as_json_flag L126–134
+
test_blame_result_json_has_duration_ms_annotation
method
method test_blame_result_json_has_duration_ms_annotation L253–255
+
test_blame_result_json_has_exit_code_annotation
method
method test_blame_result_json_has_exit_code_annotation L249–251
+
test_blame_result_json_retains_address_annotation
method
method test_blame_result_json_retains_address_annotation L261–263
+
test_blame_result_json_retains_events_annotation
method
method test_blame_result_json_retains_events_annotation L257–259
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:a24088171a2495efed994f4cec32a1d94d4599c327ceb369f1844ba7ebbe9c2c --body "your comment"
No comments yet. Be the first to start the discussion.