feat(deps): supercharge for agent usability
- Add -j alias for --json in register() - Add from typing import TypedDict + from muse.core.timing import start_timer - Add _DepsFileJson and _DepsSymbolJson TypedDicts documenting all fields - Add elapsed = start_timer() at top of run() - Add exit_code=0 and duration_ms=elapsed() to all 6 JSON emit paths: file-forward, file-reverse, symbol-forward-depth1, symbol-forward-transitive, symbol-reverse-depth1, symbol-reverse-transitive - Expand run() docstring with JSON envelope section (exit_code, duration_ms) - Add tests/test_deps_supercharge.py: 45 tests across 7 classes (TestJsonAlias, TestDurationMs, TestExitCode, TestTypedDicts, TestDocstrings, TestAnsiSanitization, TestPerformance)
sha256:06f2d3d2ce67f2a55e2e533132ba88a8c531321a49ed68e17bbcd906a108759e
sha
+67
~2
symbols
sha256:4b4e832a2a5ee365a35a20a1f377807857b26305a81d450eb334ad2f5de6de99
snapshot
+67
symbols added
~2
symbols modified
0
dead code introduced
Semantic Changes
69 symbols
+
test_json_output_no_ansi_file_forward
method
method test_json_output_no_ansi_file_forward L387–389
+
test_json_output_no_ansi_file_reverse
method
method test_json_output_no_ansi_file_reverse L391–393
+
test_json_output_no_ansi_symbol_forward
method
method test_json_output_no_ansi_symbol_forward L395–397
+
test_run_docstring_mentions_duration_ms
method
method test_run_docstring_mentions_duration_ms L373–376
+
test_run_docstring_mentions_exit_code
method
method test_run_docstring_mentions_exit_code L368–371
+
test_duration_ms_symbol_forward_depth1
method
method test_duration_ms_symbol_forward_depth1 L205–210
+
test_duration_ms_symbol_forward_transitive
method
method test_duration_ms_symbol_forward_transitive L212–219
+
test_duration_ms_symbol_reverse_depth1
method
method test_duration_ms_symbol_reverse_depth1 L221–226
+
test_duration_ms_symbol_reverse_transitive
method
method test_duration_ms_symbol_reverse_transitive L228–235
+
test_j_alias_duration_ms_present_file_forward
method
method test_j_alias_duration_ms_present_file_forward L237–241
+
test_j_alias_duration_ms_present_symbol
method
method test_j_alias_duration_ms_present_symbol L243–247
+
test_exit_code_symbol_forward_transitive
method
method test_exit_code_symbol_forward_transitive L279–286
+
test_exit_code_symbol_reverse_transitive
method
method test_exit_code_symbol_reverse_transitive L295–302
+
test_j_alias_exit_code_present_symbol
method
method test_j_alias_exit_code_present_symbol L316–318
+
test_j_alias_exits_zero_symbol_forward
method
method test_j_alias_exits_zero_symbol_forward L148–150
+
test_j_alias_exits_zero_symbol_transitive
method
method test_j_alias_exits_zero_symbol_transitive L156–158
+
test_j_alias_same_imports_list_file_forward
method
method test_j_alias_same_imports_list_file_forward L175–180
+
test_j_alias_same_top_level_keys_file_forward
method
method test_j_alias_same_top_level_keys_file_forward L164–173
+
test_json_duration_under_2000ms_file_forward
method
method test_json_duration_under_2000ms_file_forward L408–412
+
test_json_duration_under_2000ms_symbol
method
method test_json_duration_under_2000ms_symbol L414–416
+
test_deps_symbol_json_typeddict_exists
method
method test_deps_symbol_json_typeddict_exists L332–333
+
test_file_json_has_duration_ms_annotation
method
method test_file_json_has_duration_ms_annotation L339–341
+
test_file_json_has_exit_code_annotation
method
method test_file_json_has_exit_code_annotation L335–337
+
test_file_json_retains_path_annotation
method
method test_file_json_retains_path_annotation L351–353
+
test_symbol_json_has_duration_ms_annotation
method
method test_symbol_json_has_duration_ms_annotation L347–349
+
test_symbol_json_has_exit_code_annotation
method
method test_symbol_json_has_exit_code_annotation L343–345
+
test_symbol_json_retains_address_annotation
method
method test_symbol_json_retains_address_annotation L355–357
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:06f2d3d2ce67f2a55e2e533132ba88a8c531321a49ed68e17bbcd906a108759e --body "your comment"
No comments yet. Be the first to start the discussion.