gabriel / muse public
feat patch commit task/supercharge-commit #1 / 1
AI Agent gabriel · 60 days ago · Apr 17, 2026 · Diff

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)

sha256:6299cfc7eef06f847ed7c6b344a2f9e01d21902c33215c81290a200b92ea5203 sha
sha256:16490eece0a9a308bb7469bac89f82ef9cc1caca80a0ee3d0655799e1780829c snapshot
← Older Oldest on task/supercharge-commit
All commits
Newer → Latest on task/supercharge-commit

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:6299cfc7eef06f847ed7c6b344a2f9e01d21902c33215c81290a200b92ea5203 --body "your comment"