feat
patch
content-grep
task/supercharge-content-grep
#1 / 1
feat(content-grep): add elapsed_seconds/exit_code to JSON, fix sha256: prefix in tests
- Add `import time` and `t0` timing to `run()` - Pass `elapsed_seconds` into `_emit()` as an explicit parameter - Add `elapsed_seconds` and `exit_code` to `_ContentGrepJson` TypedDict and JSON output - Update module docstring with correct sha256: prefix format and new fields - Fix `_sha()` helpers in both test files: prepend 'sha256:' prefix to satisfy `validate_object_id` - Fix pre-existing `len==64` assertions to `len==71` + `startswith('sha256:')` - Update `_GrepOut` TypedDict with `source`, `elapsed_seconds`, `exit_code` - Add TestJsonSchemaComplete (8 tests), TestElapsedSeconds (6 tests), TestExitCode (5 tests) - 56/56 hardening tests + 18/18 base tests pass
sha256:3bb890fb4c6062b95f305fd8e05827da2d82aac981630221cb1c2b48a74efc41
sha
+25
~7
symbols
sha256:63810e1c710a8fc4bc6ac1e9dbef4e484f4e3c7647b55d1e158f41a30e2d4821
snapshot
+25
symbols added
~7
symbols modified
0
dead code introduced
Semantic Changes
32 symbols
~
_sha
+
test_elapsed_present_working_tree_mode
method
method test_elapsed_present_working_tree_mode L779–787
+
test_exit_code_in_json_matches_process_exit
method
method test_exit_code_in_json_matches_process_exit L857–863
+
test_exit_code_zero_working_tree_match
method
method test_exit_code_zero_working_tree_match L839–848
+
test_all_required_keys_present_commit_mode
method
method test_all_required_keys_present_commit_mode L681–688
+
test_all_required_keys_present_working_tree_mode
method
method test_all_required_keys_present_working_tree_mode L690–702
+
test_commit_id_null_in_working_tree_mode
method
method test_commit_id_null_in_working_tree_mode L722–731
+
test_snapshot_id_null_in_working_tree_mode
method
method test_snapshot_id_null_in_working_tree_mode L733–742
~
_GrepOut
~
_sha
← Older
Oldest on task/supercharge-content-grep
All commits
Newer →
Latest on task/supercharge-content-grep
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:3bb890fb4c6062b95f305fd8e05827da2d82aac981630221cb1c2b48a74efc41 --body "your comment"
No comments yet. Be the first to start the discussion.