feat: supercharge muse code invariants — -j alias, exit_code, duration_ms
- Add -j alias for --json - Add _InvariantsOutputJson TypedDict with all JSON envelope fields - Add exit_code and duration_ms to JSON output - exit_code mirrors process exit: 0=pass, 1=error violations or strict+warnings - Expand run() docstring with JSON envelope section - Add test_invariants_supercharge.py — 29 tests
sha256:b9145d899eb97a646450ae34ba43fd0ac020261c5782d4678189cdbd0e39fc76
sha
+50
~2
symbols
sha256:3653dc0787b71e48dd8ae14b7cc1cf0227fca02e72757ae611e8b5f1aa89c370
snapshot
+50
symbols added
~2
symbols modified
0
dead code introduced
Semantic Changes
52 symbols
+
test_run_docstring_mentions_duration_ms
method
method test_run_docstring_mentions_duration_ms L228–231
+
test_run_docstring_mentions_exit_code
method
method test_run_docstring_mentions_exit_code L223–226
+
test_j_alias_same_top_level_keys_as_json_flag
method
method test_j_alias_same_top_level_keys_as_json_flag L102–111
+
test_invariants_output_json_typeddict_exists
method
method test_invariants_output_json_typeddict_exists L191–192
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:b9145d899eb97a646450ae34ba43fd0ac020261c5782d4678189cdbd0e39fc76 --body "your comment"
No comments yet. Be the first to start the discussion.