feat(dead): supercharge for agent usability
- Add -j alias for --json in register() - Add exit_code: int to _DeadPayload TypedDict - Add exit_code=0 to JSON emit (all error paths raise SystemExit before JSON) - Expand run() docstring with JSON envelope section (exit_code, duration_ms) - Add tests/test_dead_supercharge.py: 37 tests across 7 classes (TestJsonAlias, TestDurationMs, TestExitCode, TestTypedDicts, TestDocstrings, TestAnsiSanitization, TestPerformance — 5000ms budget)
sha256:178247e8728633801aa706f107c872f3488bd67d845b1b5fd21a2160a6009657
sha
+54
~3
symbols
sha256:95dd4e38a1171055e18be8024abf896e19d257394559fe1a03ca1959cd176540
snapshot
+54
symbols added
~3
symbols modified
0
dead code introduced
Semantic Changes
57 symbols
+
test_json_output_no_ansi_with_high_confidence
method
method test_json_output_no_ansi_with_high_confidence L312–316
+
test_run_docstring_mentions_duration_ms
method
method test_run_docstring_mentions_duration_ms L290–293
+
test_run_docstring_mentions_exit_code
method
method test_run_docstring_mentions_exit_code L285–288
+
test_duration_ms_with_high_confidence_filter
method
method test_duration_ms_with_high_confidence_filter L179–185
+
test_exit_code_zero_with_high_confidence_filter
method
method test_exit_code_zero_with_high_confidence_filter L223–228
+
test_j_alias_result_count_matches_json_flag
method
method test_j_alias_result_count_matches_json_flag L133–138
+
test_j_alias_same_top_level_keys_as_json_flag
method
method test_j_alias_same_top_level_keys_as_json_flag L122–131
+
test_j_alias_with_high_confidence_only
method
method test_j_alias_with_high_confidence_only L140–145
+
test_retains_high_confidence_count_annotation
method
method test_retains_high_confidence_count_annotation L264–266
+
test_retains_total_files_scanned_annotation
method
method test_retains_total_files_scanned_annotation L272–274
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:178247e8728633801aa706f107c872f3488bd67d845b1b5fd21a2160a6009657 --body "your comment"
No comments yet. Be the first to start the discussion.