feat(coupling): supercharge for agent usability
- Add -j alias for --json - Add _CouplingOutputJson TypedDict with exit_code/duration_ms annotations - Add exit_code=0 and duration_ms to both JSON output paths (main + file-not-found early return) - Import start_timer; elapsed = start_timer() at top of run() - Update run() docstring with JSON envelope section - 37 new TDD tests in test_coupling_supercharge.py
sha256:40c07f5f49d35614b0f8994fda5275fbf75480ffffef4369403fcf7e21190923
sha
+59
~2
symbols
sha256:8a2aae0874e5dc6f872147ee6ae9c41379ac6c80555f52bbb7671a46246d0229
snapshot
+59
symbols added
~2
symbols modified
0
dead code introduced
Semantic Changes
61 symbols
+
test_json_output_no_ansi_with_file_filter
method
method test_json_output_no_ansi_with_file_filter L328–332
+
test_run_docstring_mentions_duration_ms
method
method test_run_docstring_mentions_duration_ms L306–309
+
test_run_docstring_mentions_exit_code
method
method test_run_docstring_mentions_exit_code L301–304
+
test_duration_ms_on_file_not_found_path
method
method test_duration_ms_on_file_not_found_path L190–198
+
test_exit_code_zero_on_file_not_found_path
method
method test_exit_code_zero_on_file_not_found_path L236–244
+
test_j_alias_has_commits_analysed_key
method
method test_j_alias_has_commits_analysed_key L131–133
+
test_j_alias_pair_count_matches_json_flag
method
method test_j_alias_pair_count_matches_json_flag L146–151
+
test_j_alias_same_top_level_keys_as_json_flag
method
method test_j_alias_same_top_level_keys_as_json_flag L135–144
+
test_coupling_output_json_typeddict_exists
method
method test_coupling_output_json_typeddict_exists L265–266
+
test_retains_commits_analysed_annotation
method
method test_retains_commits_analysed_annotation L280–282
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:40c07f5f49d35614b0f8994fda5275fbf75480ffffef4369403fcf7e21190923 --body "your comment"
No comments yet. Be the first to start the discussion.