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

supercharge(gravity): -j alias, exit_code, duration_ms, TypedDicts, docstring

- Add from muse.core.timing import start_timer - Add exit_code: int and duration_ms: float to _JsonOut TypedDict - Add _GravityExplainJson TypedDict with all explain-mode fields plus exit_code and duration_ms annotations - Add -j alias for --json; add dest='as_json' (idiomatic; was args.json) - Replace args.json with args.as_json in both JSON branches of run() - Add elapsed = start_timer() at top of run() - Emit exit_code=0 and duration_ms=elapsed() in both JSON paths: leaderboard (_JsonOut) and explain (_GravityExplainJson) - Expand run() docstring from one-liner to full JSON envelope section - Add 57-test supercharge suite (first gravity tests ever written)

sha256:47a0555e134d0d74b5b61e5f2e1229451d2643dda36ef47b79679e8c4aa1cfe8 sha
sha256:fc68075bb6c184db649a1730d04e6425c82ed26c9bf988a07c878b44d030f353 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:47a0555e134d0d74b5b61e5f2e1229451d2643dda36ef47b79679e8c4aa1cfe8 --body "your comment"