feat: supercharge muse checkout for agent use
- Fix resolve_commit_ref to strip sha256: prefix before filesystem glob so partial SHAs like '6c688abc' resolve correctly - Fix text output to show bare hex (e.g. 'HEAD is now at 6c688abc') instead of 'sha256:6c' which was the previous broken slice - Add elapsed_seconds and exit_code to all 12 JSON output paths: created, switched, already_on, detached, restored, dry-run variants, conflict_resolved, conflict_resolved_all - Update module and run() docstrings with complete JSON contract - Fix test slices: sha[:12] -> sha.removeprefix('sha256:')[:12] - Add 35 new tests: TestElapsed (11), TestExitCode (10), TestJsonSchemaComplete (4), plus detach partial-SHA regression coverage
sha256:e2fd1fb18451626dc59cc3f6044dc49417a984e1c59b31b3e1508fb4d6966f6c
sha
+28
~6
symbols
sha256:be0f6ab44c94b8536560511e4e053a22e3941150c4fe08d20c37ced06f660533
snapshot
+28
symbols added
~6
symbols modified
0
dead code introduced
Semantic Changes
34 symbols
+
test_conflict_resolved_all_json_has_elapsed
method
method test_conflict_resolved_all_json_has_elapsed L1249–1263
+
test_conflict_resolved_single_json_has_elapsed
method
method test_conflict_resolved_single_json_has_elapsed L1265–1280
+
test_dry_run_create_json_has_elapsed
method
method test_dry_run_create_json_has_elapsed L1232–1235
+
test_dry_run_detach_json_has_elapsed
method
method test_dry_run_detach_json_has_elapsed L1237–1242
+
test_dry_run_switch_json_has_elapsed
method
method test_dry_run_switch_json_has_elapsed L1227–1230
+
test_conflict_resolved_all_json_exit_code_0
method
method test_conflict_resolved_all_json_exit_code_0 L1330–1344
+
test_conflict_resolved_single_json_exit_code_0
method
method test_conflict_resolved_single_json_exit_code_0 L1346–1361
+
test_dry_run_create_json_exit_code_0
method
method test_dry_run_create_json_exit_code_0 L1313–1316
+
test_dry_run_detach_json_exit_code_0
method
method test_dry_run_detach_json_exit_code_0 L1318–1323
+
test_dry_run_switch_json_exit_code_0
method
method test_dry_run_switch_json_exit_code_0 L1308–1311
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:e2fd1fb18451626dc59cc3f6044dc49417a984e1c59b31b3e1508fb4d6966f6c --body "your comment"
No comments yet. Be the first to start the discussion.