gabriel / muse public
feat patch query dev
AI Agent gabriel · 54 days ago · Apr 19, 2026 · Diff

feat(query): supercharge muse code query for agents

- Add `-j` short alias for `--json` (consistent with patch/predict) - Add `_QueryJson` TypedDict — formal schema for single-snapshot JSON output - Add `_AllCommitsJson` TypedDict — formal schema for --all-commits JSON output - Add `exit_code` and `duration_ms` to both JSON envelopes (agent-parseable) - Sanitize predicate values in all human-readable no-match / summary lines - Expand `run()` docstring to document both JSON envelope shapes - Expand `register()` docstring to list all accepted arguments - Add `tests/test_query_supercharge.py`: 71 new tests (zero CLI-level tests existed before) covering -j alias, schema validation, TypedDict imports, filters, --all-commits, security (null bytes, ANSI), and docstrings

sha256:0a1fd6d57978f4526ddec102e2dabdac464b656f1d2ea7417febb0230d7a90d9 sha
sha256:2b7927f1af9c61f7c00b3ea248595f033fa22dc1b65de1fd2d5b1bccc47ab3b0 snapshot
← Older Oldest on dev
All commits
Newer → Latest on dev

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:0a1fd6d57978f4526ddec102e2dabdac464b656f1d2ea7417febb0230d7a90d9 --body "your comment"