gabriel / muse public
feat patch query-history task/supercharge-query-history #1 / 1
AI Agent gabriel · 61 days ago · Apr 19, 2026 · Diff

feat(query-history): supercharge for agents — -j alias, exit_code, duration_ms, truncated, TypedDicts, sanitized pred display, expanded docstrings

- Add _QueryHistoryJson, _IntroducedJson, _RemovedJson TypedDicts - Add -j alias for --json in register() - Inject elapsed = start_timer() at top of run() - Add exit_code=0 + duration_ms=elapsed() to all 3 JSON envelopes - Add truncated field to introduced-only and removed-only JSON - Sanitize pred_display with sanitize_display() in all human output paths - Expand register() docstring to list all 12 arguments - Expand run() docstring to document exit_code + duration_ms in JSON envelope - 76 tests pass

sha256:3afbde6bc7c10d6fd5654da7021f0475a83caad4f103c43d48d8cb3f5d2978a1 sha
sha256:fd7223326bb6456f929ed0b8f1cfb32609179b25256b260ec5f4c019d34417fc snapshot
← Older Oldest on task/supercharge-query-history
All commits
Newer → Latest on task/supercharge-query-history

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:3afbde6bc7c10d6fd5654da7021f0475a83caad4f103c43d48d8cb3f5d2978a1 --body "your comment"