feat(cat): supercharge with --raw, --limit, total_symbols, redirected_from; fix fmt NameError
- --raw flag: read raw file content at working tree or --at <ref>; single-file JSON returns flat {file_path, content, size_bytes, source_ref}; multi-file uses {files:[]} - --limit N: cap --all results; JSON includes truncated: bool + total_symbols - total_symbols: always in --all --json output (pre-filter count, stable across --kind) - redirected_from: JSON field on results that came from global-fallback (wrong file specified) - Fix UnboundLocalError: fmt/as_json now assigned before the 'no addresses' guard - Fix test_blob_not_found: fake manifest used bare hex, needs sha256: prefix - 40 new tests in test_cmd_cat_supercharged.py, all green
sha256:6a6d2b4a0aebae5547a9ffb0656bc757a6d868c03aeda82cd242789010ff6d9d
sha
+80
~4
symbols
sha256:44a1a0c57665414834be024e7f9563bc98bdbfdea1b8d596de85919411bbca23
snapshot
+80
symbols added
~4
symbols modified
0
dead code introduced
Semantic Changes
84 symbols
+
test_all_json_kind_filter_shows_unfiltered_total
method
method test_all_json_kind_filter_shows_unfiltered_total L343–360
+
test_all_json_total_symbols_stable_across_filters
method
method test_all_json_total_symbols_stable_across_filters L362–376
+
test_limit_larger_than_results_not_truncated
method
method test_limit_larger_than_results_not_truncated L416–425
+
test_raw_at_json_source_ref_has_commit
method
method test_raw_at_json_source_ref_has_commit L302–312
+
test_raw_ansi_injection_in_path_sanitized
method
method test_raw_ansi_injection_in_path_sanitized L524–531
+
test_raw_and_symbol_address_are_mutually_exclusive
method
method test_raw_and_symbol_address_are_mutually_exclusive L264–271
+
test_raw_json_source_ref_working_tree
method
method test_raw_json_source_ref_working_tree L238–243
+
test_at_ref_gives_different_content_than_head
method
method test_at_ref_gives_different_content_than_head L556–574
+
test_symbol_source_matches_file_bytes
method
method test_symbol_source_matches_file_bytes L546–554
+
test_no_address_json_contains_error_key
method
method test_no_address_json_contains_error_key L179–184
+
test_no_address_json_flag_no_unbound_error
method
method test_no_address_json_flag_no_unbound_error L165–172
+
test_raw_json_200_symbols_file_under_1s
method
method test_raw_json_200_symbols_file_under_1s L648–655
+
test_json_global_fallback_has_redirected_from
method
method test_json_global_fallback_has_redirected_from L462–486
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:6a6d2b4a0aebae5547a9ffb0656bc757a6d868c03aeda82cd242789010ff6d9d --body "your comment"
No comments yet. Be the first to start the discussion.