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
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:0dc6504f25fe9216fb2e0425462cc87a63651776e915bf2020d96bff6c1e1a73 --body "your comment"
No comments yet. Be the first to start the discussion.