gabriel / muse public
feat patch codemap dev
AI Agent gabriel · 159 days ago · Apr 19, 2026 · Diff

feat(codemap): supercharge — -j alias, exit_code, duration_ms, _CodemapOutputJson TypedDict, docstring; fix stale short_id/determinism assertions

sha256:8a9ba20f5a1036efc11101b56c879c278056030c796fd88a13c1b21e5307d176 sha
+63 ~7 −1 symbols
sha256:e710821229dbe11a7ae462d076ecf2f199d46b8300cc0871c81449909ca21478 snapshot
+63
symbols added
~7
symbols modified
−1
symbol removed
0
dead code introduced
Semantic Changes 71 symbols
~ tests/test_codemap_supercharge.py .py 56 symbols added
+ TestAnsiSanitization class class TestAnsiSanitization L303–316
+ test_j_alias_output_no_ansi method method test_j_alias_output_no_ansi L310–312
+ test_json_no_ansi_with_language_filter method method test_json_no_ansi_with_language_filter L314–316
+ test_json_output_no_ansi method method test_json_output_no_ansi L306–308
+ TestDocstrings class class TestDocstrings L284–295
+ test_run_docstring_mentions_duration_ms method method test_run_docstring_mentions_duration_ms L292–295
+ test_run_docstring_mentions_exit_code method method test_run_docstring_mentions_exit_code L287–290
+ TestDurationMs class class TestDurationMs L152–185
+ test_duration_ms_with_language_filter method method test_duration_ms_with_language_filter L175–179
+ test_duration_ms_with_top_filter method method test_duration_ms_with_top_filter L181–185
+ test_j_alias_duration_ms_present method method test_j_alias_duration_ms_present L170–173
+ test_json_duration_ms_is_float method method test_json_duration_ms_is_float L165–168
+ test_json_duration_ms_nonnegative method method test_json_duration_ms_nonnegative L160–163
+ test_json_has_duration_ms method method test_json_has_duration_ms L155–158
+ TestExitCode class class TestExitCode L193–232
+ test_exit_code_mirrors_process_exit method method test_exit_code_mirrors_process_exit L217–220
+ test_exit_code_zero_with_language_filter method method test_exit_code_zero_with_language_filter L228–232
+ test_exit_code_zero_with_min_importers method method test_exit_code_zero_with_min_importers L222–226
+ test_j_alias_exit_code_present method method test_j_alias_exit_code_present L212–215
+ test_json_exit_code_is_int method method test_json_exit_code_is_int L207–210
+ test_json_exit_code_zero_on_success method method test_json_exit_code_zero_on_success L201–205
+ test_json_has_exit_code method method test_json_has_exit_code L196–199
+ TestJsonAlias class class TestJsonAlias L97–144
+ test_j_alias_exits_zero method method test_j_alias_exits_zero L100–102
+ test_j_alias_has_commit_key method method test_j_alias_has_commit_key L113–116
+ test_j_alias_has_modules_key method method test_j_alias_has_modules_key L108–111
+ test_j_alias_module_count_matches_json_flag method method test_j_alias_module_count_matches_json_flag L127–132
+ test_j_alias_same_top_level_keys_as_json_flag method method test_j_alias_same_top_level_keys_as_json_flag L118–125
+ test_j_alias_valid_json method method test_j_alias_valid_json L104–106
+ test_j_alias_with_language_flag method method test_j_alias_with_language_flag L134–138
+ test_j_alias_with_top_flag method method test_j_alias_with_top_flag L140–144
+ TestPerformance class class TestPerformance L324–340
+ test_duration_ms_is_float_not_int method method test_duration_ms_is_float_not_int L337–340
+ test_j_alias_duration_under_2000ms method method test_j_alias_duration_under_2000ms L332–335
+ test_json_duration_under_2000ms method method test_json_duration_under_2000ms L327–330
+ TestTypedDicts class class TestTypedDicts L240–276
+ test_codemap_output_json_exists method method test_codemap_output_json_exists L243–244
+ test_has_duration_ms_annotation method method test_has_duration_ms_annotation L250–252
+ test_has_exit_code_annotation method method test_has_exit_code_annotation L246–248
+ test_retains_agent_safe_zones_annotation method method test_retains_agent_safe_zones_annotation L274–276
+ test_retains_boundary_files_annotation method method test_retains_boundary_files_annotation L270–272
+ test_retains_commit_annotation method method test_retains_commit_annotation L258–260
+ test_retains_high_centrality_annotation method method test_retains_high_centrality_annotation L266–268
+ test_retains_import_cycles_annotation method method test_retains_import_cycles_annotation L262–264
+ test_retains_modules_annotation method method test_retains_modules_annotation L254–256
+ _env function function _env L37–38
+ _run function function _run L41–42
+ _stage_commit function function _stage_commit L45–49
+ codemap_repo function function codemap_repo L58–89
+ CliRunner import import CliRunner L27–27
+ annotations import import annotations L19–19
+ json import import json L21–21
+ pathlib import import pathlib L22–22
+ pytest import import pytest L25–25
+ textwrap import import textwrap L23–23
+ runner variable variable runner L29–29
~ muse/cli/commands/codemap.py .py 6 symbols added, 2 symbols modified
+ _BoundaryEntry class class _BoundaryEntry L112–115
+ _CentralityEntry class class _CentralityEntry L107–109
+ _CodemapOutputJson class class _CodemapOutputJson L118–146
+ _ModuleEntry class class _ModuleEntry L100–104
+ TypedDict import import TypedDict L74–74
+ start_timer import import start_timer L82–82
~ run
~ tests/test_cmd_codemap.py .py 1 symbol added, 1 symbol removed, 5 symbols modified
− test_json_commit_is_8_char_hex method method test_json_commit_is_8_char_hex L553–558
+ test_json_commit_is_short_id method method test_json_commit_is_short_id L553–561
← Older Oldest on dev
All commits
Newer → Latest on dev

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:8a9ba20f5a1036efc11101b56c879c278056030c796fd88a13c1b21e5307d176 --body "your comment"