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

feat(reset): supercharge for agents — -j/-n aliases, exit_code, duration_ms, schema_version, _ResetJson TypedDict; fix 4 pre-existing test failures (sha256: prefix in snapshot path and ID length assertions)

sha256:55f270e2258a4016bacfa192631b7196e388642789812345a48392a45c91f9fc sha
+60 ~8 symbols
sha256:cb3f2da678103ba6f630cbfe70013c615e76144a646688ebd92f7027851190d9 snapshot
+60
symbols added
~8
symbols modified
0
dead code introduced
Semantic Changes 68 symbols
~ tests/test_reset_supercharge.py .py 56 symbols added
+ TestAliasRegistration class class TestAliasRegistration L120–144
+ _make_parser method method _make_parser L121–128
+ test_j_alias_sets_json_fmt method method test_j_alias_sets_json_fmt L130–133
+ test_j_and_n_together method method test_j_and_n_together L140–144
+ test_n_alias_sets_dry_run method method test_n_alias_sets_dry_run L135–138
+ TestDocstrings class class TestDocstrings L288–322
+ test_register_docstring_mentions_flags method method test_register_docstring_mentions_flags L294–299
+ test_register_has_docstring method method test_register_has_docstring L289–292
+ test_run_docstring_mentions_duration_ms method method test_run_docstring_mentions_duration_ms L312–316
+ test_run_docstring_mentions_exit_code method method test_run_docstring_mentions_exit_code L306–310
+ test_run_docstring_mentions_schema_version method method test_run_docstring_mentions_schema_version L318–322
+ test_run_has_docstring method method test_run_has_docstring L301–304
+ TestDryRunAlias class class TestDryRunAlias L174–190
+ test_n_alias_exit_code_zero method method test_n_alias_exit_code_zero L188–190
+ test_n_alias_json_dry_run_true method method test_n_alias_json_dry_run_true L183–186
+ test_n_alias_no_write method method test_n_alias_no_write L175–181
+ TestJsonAlias class class TestJsonAlias L152–166
+ test_j_alias_exit_code_zero method method test_j_alias_exit_code_zero L153–155
+ test_j_alias_output_is_valid_json method method test_j_alias_output_is_valid_json L157–160
+ test_j_alias_same_keys_as_json_flag method method test_j_alias_same_keys_as_json_flag L162–166
+ TestJsonEnvelope class class TestJsonEnvelope L198–255
+ test_applied_json_duration_ms_is_float method method test_applied_json_duration_ms_is_float L214–218
+ test_applied_json_exit_code_is_zero method method test_applied_json_exit_code_is_zero L204–207
+ test_applied_json_has_duration_ms method method test_applied_json_has_duration_ms L209–212
+ test_applied_json_has_exit_code method method test_applied_json_has_exit_code L199–202
+ test_applied_json_has_schema_version method method test_applied_json_has_schema_version L220–223
+ test_applied_json_schema_version_is_string method method test_applied_json_schema_version_is_string L225–229
+ test_dry_run_json_duration_ms_is_float method method test_dry_run_json_duration_ms_is_float L246–250
+ test_dry_run_json_exit_code_is_zero method method test_dry_run_json_exit_code_is_zero L236–239
+ test_dry_run_json_has_duration_ms method method test_dry_run_json_has_duration_ms L241–244
+ test_dry_run_json_has_exit_code method method test_dry_run_json_has_exit_code L231–234
+ test_dry_run_json_has_schema_version method method test_dry_run_json_has_schema_version L252–255
+ TestSecurity class class TestSecurity L263–280
+ test_ansi_in_format_not_echoed_raw method method test_ansi_in_format_not_echoed_raw L277–280
+ test_ansi_in_ref_not_echoed_raw method method test_ansi_in_ref_not_echoed_raw L268–271
+ test_null_byte_in_format_does_not_crash method method test_null_byte_in_format_does_not_crash L273–275
+ test_null_byte_in_ref_does_not_crash method method test_null_byte_in_ref_does_not_crash L264–266
+ TestTypedDict class class TestTypedDict L80–112
+ test_reset_json_typed_dict_exists method method test_reset_json_typed_dict_exists L81–82
+ test_reset_json_typed_dict_has_all_core_fields method method test_reset_json_typed_dict_has_all_core_fields L105–112
+ test_reset_json_typed_dict_has_duration_ms method method test_reset_json_typed_dict_has_duration_ms L91–96
+ test_reset_json_typed_dict_has_exit_code method method test_reset_json_typed_dict_has_exit_code L84–89
+ test_reset_json_typed_dict_has_schema_version method method test_reset_json_typed_dict_has_schema_version L98–103
+ _commit function function _commit L42–47
+ _invoke function function _invoke L29–35
+ _reset function function _reset L38–39
+ c1_id function function c1_id L66–72
+ CliRunner import import CliRunner L19–19
+ InvokeResult import import InvokeResult L19–19
+ annotations import import annotations L11–11
+ json import import json L13–13
+ os import import os L14–14
+ pathlib import import pathlib L15–15
+ pytest import import pytest L17–17
+ repo function function repo L51–62
+ runner variable variable runner L21–21
~ muse/cli/commands/reset.py .py 4 symbols added, 2 symbols modified
+ _ResetJson class class _ResetJson L63–75
+ TypedDict import import TypedDict L41–41
+ __version__ import import __version__ L43–43
+ 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:55f270e2258a4016bacfa192631b7196e388642789812345a48392a45c91f9fc --body "your comment"