feat(docs): supercharge for agent usability
- Fix test_cmd_docs.py: replace raw hashlib.sha256().hexdigest() with blob_id() from muse.core._types — canonical sha256: prefix throughout - Change --json dest from json_output → as_json; add -j alias - Add from muse.core.timing import start_timer - Add elapsed = start_timer() at top of run() - Expand _SymbolHistoryJson, _ChangelogJson, _DocCiJson TypedDicts with exit_code: int and duration_ms: float + docstrings on each - Add exit_code=0, duration_ms=elapsed() to all three json.dumps() paths (--history, --diff, --ci modes) - Expand run() docstring with JSON envelope section (exit_code, duration_ms) - Add tests/test_docs_supercharge.py: 43 tests across 7 classes (TestJsonAlias, TestDurationMs, TestExitCode, TestTypedDicts, TestDocstrings, TestAnsiSanitization, TestPerformance)
0 comments
muse hub commit comment sha256:8e74451fba52841f54e471d0e3b62d6871d470136c0b0bc225676bbd1c822d36 --body "your comment"
No comments yet. Be the first to start the discussion.