gabriel / muse public
feat patch #47 Phase 4 dev
AI Agent gabriel · 119 days ago · May 11, 2026 · Diff

feat(#47 Phase 4): wire fetch_bundle into clone and pull commands

Replace transport.fetch_presign_or_stream with transport.fetch_bundle in both clone (depth=None path) and pull. Shallow clone (--depth N) stays on fetch_stream — fetch_bundle has no depth-limit support.

Also fixes three pre-existing test bugs found while updating mocks: - test_cli_clone / test_clone_partial: snapshot data used "manifest" key but _apply_snapshot_deltas expects "delta_add"/"delta_remove" - test_cmd_clone_hardening TestStressConcurrent: 8 threads concurrently patching the same module attribute caused stale mocks to leak into subsequent tests; patches moved to test-level scope

sha256:4c591f37ecfce1e9b422ae69ef9dadd3eb880b967857bf65f52de0e0c0aa36cd sha
+21 ~22 symbols
sha256:334142e97a6c53f1f4cd8f39adfd939a7a7ab7c8d3f6f3a6887299935f1dafb8 snapshot
+21
symbols added
~22
symbols modified
0
dead code introduced
Semantic Changes 43 symbols
+ _APPLY_RESULT variable variable _APPLY_RESULT L41–46
+ _COMMIT_ID variable variable _COMMIT_ID L26–26
+ _FETCH_RESULT variable variable _FETCH_RESULT L30–39
+ _REMOTE_INFO variable variable _REMOTE_INFO L48–55
+ _REPO_ID variable variable _REPO_ID L28–28
+ _SNAP_ID variable variable _SNAP_ID L27–27
+ _clone_patches function function _clone_patches L69–81
+ _make_transport function function _make_transport L58–66
+ Callable import import Callable L16–16
+ FetchStreamResult import import FetchStreamResult L21–21
+ MagicMock import import MagicMock L17–17
+ annotations import import annotations L12–12
+ argparse import import argparse L14–14
+ blob_id import import blob_id L22–22
+ fake_id import import fake_id L22–22
+ patch import import patch L17–17
+ pathlib import import pathlib L15–15
+ pytest import import pytest L19–19
+ test_cw0_clone_full_calls_fetch_bundle function function test_cw0_clone_full_calls_fetch_bundle L88–108
+ test_cw1_clone_shallow_still_calls_fetch_stream function function test_cw1_clone_shallow_still_calls_fetch_stream L115–136
+ test_cw2_pull_calls_fetch_bundle function function test_cw2_pull_calls_fetch_bundle L143–191
~ muse/cli/commands/clone.py .py 1 symbol modified
~ run
~ muse/cli/commands/pull.py .py 1 symbol modified
~ run
← 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:4c591f37ecfce1e9b422ae69ef9dadd3eb880b967857bf65f52de0e0c0aa36cd --body "your comment"