gabriel / muse public
feat patch task/supercharge-config #1 / 1
AI Agent gabriel · 157 days ago · Apr 17, 2026 · Diff

feat: supercharge config — elapsed_seconds, exit_code in all JSON paths

- Add import time + t0 = time.monotonic() to run_read, run_get, run_set - Expand _GetJson and _SetJson TypedDicts with elapsed_seconds, exit_code - run_read --json: injects elapsed_seconds + exit_code into config dict - run_get --json: adds elapsed_seconds + exit_code to output object - run_set --json: adds elapsed_seconds + exit_code to output object - Update module docstring JSON schemas - Fix test_json_is_pretty_printed -> test_json_is_compact (indent=2 removed) - Fix 2 timing-comparison tests that naively diffed full dicts - Fix test_json_empty_config_is_empty_object (now has timing keys) - 30 new tests: TestElapsedSeconds(9), TestExitCode(6), TestJsonSchemaComplete(5)

sha256:765230c8c70024aa6c3cb41533640cf665d767cc952607ac7f89468f1e8db6ad sha
+28 ~9 −2 symbols
sha256:4d661b7f5e4914beb2e18f4b1e69d637cebd5a8434984177f46697f4fb555436 snapshot
+28
symbols added
~9
symbols modified
−2
symbols removed
0
dead code introduced
Semantic Changes 39 symbols
~ muse/cli/commands/config_cmd.py .py 1 symbol added, 5 symbols modified
+ time import import time L88–88
~ tests/test_cmd_config_hardening.py .py 27 symbols added, 2 symbols removed, 4 symbols modified
test_json_empty_config_is_empty_object method method test_json_empty_config_is_empty_object L938–942
test_json_is_pretty_printed method method test_json_is_pretty_printed L886–893
+ TestElapsedSeconds class class TestElapsedSeconds L1828–1886
+ test_get_elapsed_is_float method method test_get_elapsed_is_float L1856–1861
+ test_get_elapsed_non_negative method method test_get_elapsed_non_negative L1863–1868
+ test_get_json_has_elapsed method method test_get_json_has_elapsed L1849–1854
+ test_read_elapsed_is_float method method test_read_elapsed_is_float L1837–1841
+ test_read_elapsed_non_negative method method test_read_elapsed_non_negative L1843–1847
+ test_read_json_has_elapsed method method test_read_json_has_elapsed L1831–1835
+ test_set_elapsed_is_float method method test_set_elapsed_is_float L1876–1880
+ test_set_elapsed_non_negative method method test_set_elapsed_non_negative L1882–1886
+ test_set_json_has_elapsed method method test_set_json_has_elapsed L1870–1874
+ TestExitCode class class TestExitCode L1889–1928
+ test_get_exit_code_zero_on_success method method test_get_exit_code_zero_on_success L1911–1916
+ test_get_json_has_exit_code method method test_get_json_has_exit_code L1904–1909
+ test_read_exit_code_zero method method test_read_exit_code_zero L1898–1902
+ test_read_json_has_exit_code method method test_read_json_has_exit_code L1892–1896
+ test_set_exit_code_zero_on_success method method test_set_exit_code_zero_on_success L1924–1928
+ test_set_json_has_exit_code method method test_set_json_has_exit_code L1918–1922
+ TestJsonSchemaComplete class class TestJsonSchemaComplete L1931–1968
+ test_get_full_keys method method test_get_full_keys L1940–1946
+ test_get_output_is_single_line_json method method test_get_output_is_single_line_json L1955–1961
+ test_read_full_keys method method test_read_full_keys L1934–1938
+ test_set_full_keys method method test_set_full_keys L1948–1953
+ test_set_output_is_single_line_json method method test_set_output_is_single_line_json L1963–1968
+ test_json_empty_config_has_no_sections method method test_json_empty_config_has_no_sections L942–948
+ test_json_is_compact method method test_json_is_compact L889–897
+ _GET_FULL_KEYS variable variable _GET_FULL_KEYS L1824–1824
+ _SET_FULL_KEYS variable variable _SET_FULL_KEYS L1825–1825
← Older Oldest on task/supercharge-config
All commits
Newer → Latest on task/supercharge-config

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:765230c8c70024aa6c3cb41533640cf665d767cc952607ac7f89468f1e8db6ad --body "your comment"