feat(commit): supercharge for agents — elapsed_seconds, exit_code, bare hex display
- Add import time; t0 = time.monotonic() at top of run() - Add elapsed_seconds and exit_code to all 4 JSON paths: real commit (exit_code=0), dry-run with changes (exit_code=0), nothing-to-commit (exit_code=0), dry-run clean tree (exit_code=1) - Fix text output hex slices: commit_id[:8] → .removeprefix('sha256:')[:8] dry-run and real commit both now show 8 bare hex chars - Update module docstring and run() docstring with full JSON contract including model_id, toolchain_id, elapsed_seconds, exit_code - Fix test_text_shows_branch_and_short_id to expect bare hex not sha256: prefix - Add 23 new tests: TestElapsed (5), TestExitCode (4), TestJsonSchemaComplete (5), TestTextOutputHex (3), TestDataIntegrity (4), TestPerformance (2)
0 comments
muse hub commit comment sha256:6299cfc7eef06f847ed7c6b344a2f9e01d21902c33215c81290a200b92ea5203 --body "your comment"
No comments yet. Be the first to start the discussion.