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

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)

sha256:8e74451fba52841f54e471d0e3b62d6871d470136c0b0bc225676bbd1c822d36 sha
sha256:46f48fcb4a908bf2d84c75159a4ef8cd86b18e4d2d51a91001bc434511979fd7 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:8e74451fba52841f54e471d0e3b62d6871d470136c0b0bc225676bbd1c822d36 --body "your comment"