gabriel / muse public
feat patch detect-refactor dev
AI Agent gabriel · 55 days ago · Apr 19, 2026 · Diff

feat(detect-refactor): supercharge for agent usability

- Add from typing import Any, TypedDict + from muse.core.timing import start_timer - Add _RefactorOutputJson TypedDict documenting all JSON envelope fields - Add -j alias for --json in register() - Add elapsed = start_timer() at top of run() - Add exit_code=0 and duration_ms=elapsed() to the JSON emit - Expand run() docstring with JSON envelope section (exit_code, duration_ms) - Add tests/test_detect_refactor_supercharge.py: 38 tests across 7 classes (TestJsonAlias, TestDurationMs, TestExitCode, TestTypedDicts, TestDocstrings, TestAnsiSanitization, TestPerformance)

sha256:0dc6504f25fe9216fb2e0425462cc87a63651776e915bf2020d96bff6c1e1a73 sha
sha256:c265ff6879f8da499628c1f557300503f5b7e97c9182ed9e046d827760d832d0 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:0dc6504f25fe9216fb2e0425462cc87a63651776e915bf2020d96bff6c1e1a73 --body "your comment"