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

feat(code-query): supercharge — -j alias, exit_code, duration_ms, _CodeQueryOutputJson TypedDict, docstring

sha256:006415eedba2f787bfda289ddcfac06ff5bc3b0d81beb2b52dcdbf71d543b8a0 sha
+55 ~2 symbols
sha256:45056a20ead715a079b35ebe5723d049ced28f53776b0adab52a6e48246b6d5b snapshot
+55
symbols added
~2
symbols modified
0
dead code introduced
Semantic Changes 57 symbols
~ tests/test_code_query_supercharge.py .py 51 symbols added
+ TestAnsiSanitization class class TestAnsiSanitization L261–274
+ test_j_alias_output_no_ansi method method test_j_alias_output_no_ansi L268–270
+ test_json_output_no_ansi_no_matches method method test_json_output_no_ansi_no_matches L272–274
+ test_json_output_no_ansi_with_matches method method test_json_output_no_ansi_with_matches L264–266
+ TestDocstrings class class TestDocstrings L242–253
+ test_run_docstring_mentions_duration_ms method method test_run_docstring_mentions_duration_ms L250–253
+ test_run_docstring_mentions_exit_code method method test_run_docstring_mentions_exit_code L245–248
+ TestDurationMs class class TestDurationMs L125–159
+ test_duration_ms_no_matches method method test_duration_ms_no_matches L148–152
+ test_duration_ms_with_since method method test_duration_ms_with_since L154–159
+ test_j_alias_duration_ms_present method method test_j_alias_duration_ms_present L143–146
+ test_json_duration_ms_is_float method method test_json_duration_ms_is_float L138–141
+ test_json_duration_ms_nonnegative method method test_json_duration_ms_nonnegative L133–136
+ test_json_has_duration_ms method method test_json_has_duration_ms L128–131
+ TestExitCode class class TestExitCode L167–206
+ test_exit_code_mirrors_process_exit method method test_exit_code_mirrors_process_exit L197–200
+ test_exit_code_zero_with_limit method method test_exit_code_zero_with_limit L202–206
+ test_j_alias_exit_code_present method method test_j_alias_exit_code_present L192–195
+ test_json_exit_code_is_int method method test_json_exit_code_is_int L187–190
+ test_json_exit_code_zero_no_matches method method test_json_exit_code_zero_no_matches L181–185
+ test_json_exit_code_zero_with_matches method method test_json_exit_code_zero_with_matches L175–179
+ test_json_has_exit_code method method test_json_has_exit_code L170–173
+ TestJsonAlias class class TestJsonAlias L73–117
+ test_j_alias_exits_zero method method test_j_alias_exits_zero L76–78
+ test_j_alias_has_results_key method method test_j_alias_has_results_key L89–92
+ test_j_alias_has_total_key method method test_j_alias_has_total_key L84–87
+ test_j_alias_no_matches_empty_results method method test_j_alias_no_matches_empty_results L108–112
+ test_j_alias_same_top_level_keys_as_json_flag method method test_j_alias_same_top_level_keys_as_json_flag L94–101
+ test_j_alias_total_matches_json_flag method method test_j_alias_total_matches_json_flag L103–106
+ test_j_alias_valid_json method method test_j_alias_valid_json L80–82
+ test_j_alias_with_limit method method test_j_alias_with_limit L114–117
+ TestPerformance class class TestPerformance L282–298
+ test_duration_ms_is_float_not_int method method test_duration_ms_is_float_not_int L295–298
+ test_j_alias_duration_under_2000ms method method test_j_alias_duration_under_2000ms L290–293
+ test_json_duration_under_2000ms method method test_json_duration_under_2000ms L285–288
+ TestTypedDicts class class TestTypedDicts L214–234
+ test_code_query_output_json_exists method method test_code_query_output_json_exists L217–218
+ test_has_duration_ms_annotation method method test_has_duration_ms_annotation L224–226
+ test_has_exit_code_annotation method method test_has_exit_code_annotation L220–222
+ test_has_results_annotation method method test_has_results_annotation L232–234
+ test_has_total_annotation method method test_has_total_annotation L228–230
+ _env function function _env L35–36
+ _run function function _run L39–40
+ _stage_commit function function _stage_commit L43–47
+ CliRunner import import CliRunner L25–25
+ annotations import import annotations L18–18
+ json import import json L20–20
+ pathlib import import pathlib L21–21
+ pytest import import pytest L23–23
+ query_repo function function query_repo L56–65
+ runner variable variable runner L27–27
~ muse/cli/commands/code_query.py .py 4 symbols added, 2 symbols modified
+ _CodeQueryOutputJson class class _CodeQueryOutputJson L62–78
+ Any import import Any L50–50
+ TypedDict import import TypedDict L50–50
+ start_timer import import start_timer L55–55
~ run
← 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:006415eedba2f787bfda289ddcfac06ff5bc3b0d81beb2b52dcdbf71d543b8a0 --body "your comment"