feat(rebase): supercharge — duration_ms, exit_code, replayed_commit_ids, _short_id, sha256: prefix fixes
- Add _short_id() helper: strips sha256: prefix before [:12] slice so text output shows 12 bare hex chars instead of 'sha256:xxxx' fragments - Fix _resolve_ref_to_id: len(raw)==64 check failed for sha256:-prefixed ref file content; now strips prefix before validation - Add duration_ms (float, ms) and exit_code (int) to all JSON output paths: completed, conflict, aborted, up_to_date, dry_run, status - Add replayed_commit_ids (list[str], sha256:-prefixed) to _RebaseResultJson: agents can inspect the new commit IDs produced during replay without a follow-up log query - Pass t0 to _run_replay_loop so conflict JSON also gets duration_ms - Replace all commit_id[:12] with _short_id() throughout - Rewrite tests: delete test_cmd_rebase.py + test_cmd_rebase_hardening.py (25 failures, bare-hex _sha() helper); add test_rebase_supercharge.py (65 tests covering all JSON paths, _short_id, sha256: prefix, security, performance, stress); fix test_rebase_missing_snapshot_guard.py (5 pre- existing sha256: prefix failures in snapshot path construction)
0 comments
muse hub commit comment sha256:3fa9bc0a266f344673fb505ea82285da379849bce90d6356d3e230c9e79f7766 --body "your comment"
No comments yet. Be the first to start the discussion.