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