feat: supercharge muse code index — exit_code, duration_ms on all sub-commands
- Add start_timer import and elapsed() calls to run_status, run_rebuild, run_purge - status --json: wrap bare list in object with 'indexes', 'exit_code', 'duration_ms' (schema change — agents no longer need to iterate a raw list to check envelope) - rebuild --json: add exit_code=0, duration_ms to existing _RebuildResult TypedDict - purge --json: add exit_code=0, duration_ms via new _PurgeResult TypedDict - Add _StatusResult and _PurgeResult TypedDicts; expand _RebuildResult with docstring - Expand run_status, run_rebuild, run_purge docstrings with envelope section - Update module-level docstring to show new status --json envelope shape - Add test_index_supercharge.py — 49 tests across 5 classes
sha256:b41227c206f56d5e3b870397d6bef289d8d276bf36cd19229cb305c62215d232
sha
+68
~4
symbols
sha256:bf8f7d008e3b12a3686644ad4d735deb01a875a8b2b8c1ebb0a2e67792385332
snapshot
+68
symbols added
~4
symbols modified
0
dead code introduced
Semantic Changes
72 symbols
+
test_run_rebuild_mentions_duration_ms
method
method test_run_rebuild_mentions_duration_ms L319–321
+
test_purge_absent_indexes_skipped_not_error
method
method test_purge_absent_indexes_skipped_not_error L239–248
+
test_rebuild_dry_run_j_exit_code_zero
method
method test_rebuild_dry_run_j_exit_code_zero L179–182
+
test_status_j_duration_ms_nonnegative
method
method test_status_j_duration_ms_nonnegative L115–117
+
test_status_j_index_entries_have_name
method
method test_status_j_index_entries_have_name L119–122
+
test_status_j_index_entries_have_status
method
method test_status_j_index_entries_have_status L124–127
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:b41227c206f56d5e3b870397d6bef289d8d276bf36cd19229cb305c62215d232 --body "your comment"
No comments yet. Be the first to start the discussion.