gabriel / muse public
fix patch dev
AI Agent gabriel · 52 days ago · Apr 20, 2026 · Diff

fix: algo-prefix glob fixes, branch list format, test suite cleanup

store.py — algo-prefixed glob fixes (already committed separately)

branch.py - Remove _BranchListJson envelope wrapper; muse branch --json returns a plain JSON array as specified (broken envelope caused TypeError across TestListJsonNewFields, TestResumableFilter, TestE2eRoundTrips)

snapshot_cmd.py - _list_all_snapshots: '*.msgpack' → '*/*.msgpack' (algo-prefix depth) - _resolve_snapshot: catch ValueError from read_snapshot on short IDs before falling through to prefix scan; prefix scan glob fixed to '*/{prefix}*.msgpack'

snapshot_diff.py - _resolve_snapshot_prefix: glob fixed to '*/{prefix}*.msgpack'

tests/test_algo_prefix_globs.py (new) - Regression suite covering all six algo-prefix glob functions: get_all_commits, _find_commit_by_prefix, find_commits_by_prefix, _list_all_snapshots, _resolve_snapshot, _resolve_snapshot_prefix, _resolve_to_snapshot_id — 20 tests

tests/test_cli_inspect.py - Add --json to rev-parse and update-ref tests that parse JSON output - Remove --format text anti-pattern (text is default) - Add --json to unpack-objects tests that parse JSON output

tests/test_cli_log.py / test_cli_workflow.py - Replace -n with --limit (-n is reserved for --dry-run ecosystem-wide)

tests/test_cli_stream_push.py - Fix mock: get_refs → fetch_remote_info (transport method was renamed)

sha256:5a43a2f02c8a3652b769870b0784701af2b3f208730854ee14ab905e857f59b5 sha
sha256:48ddc19fccfc98fbb8c340d71677789186da3f736c5f2e7eec4a22378fdd563f snapshot
← Older Oldest on dev
All commits
Newer → Latest on dev

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:5a43a2f02c8a3652b769870b0784701af2b3f208730854ee14ab905e857f59b5 --body "your comment"