feat: POST /fetch/bundle route — single-bundle fetch endpoint (issue #47)
Add fetch_bundle route to wire.py that calls wire_fetch_bundle and returns the msgpack FetchBundleResult. Handles auth identically to fetch/presign: public repos accessible without auth, private repos return 404 to guests.
5 TDD tests (RB0–RB4): 404 for missing repo, inline bundle response, sha256 proof end-to-end, private repo auth gate, empty want.
sha256:fbed59b8e2bcec2b49343a4a5ab80ef218110dd92a93a40286e3e04131748b6a
sha
+24
~15
symbols
sha256:bb39b47c665979f9a508afedacede93e3437ec8d624e3a343c32e7f5f54e9208
snapshot
+24
symbols added
~15
symbols modified
0
dead code introduced
Semantic Changes
39 symbols
+
test_rb1_small_public_repo_returns_inline_bundle
function
async_function test_rb1_small_public_repo_returns_inline_bundle L126–151
+
test_rb2_route_preserves_content_addressing_proof
function
async_function test_rb2_route_preserves_content_addressing_proof L159–185
+
test_rb3_private_repo_returns_404_without_auth
function
async_function test_rb3_private_repo_returns_404_without_auth L193–204
+
test_rb4_empty_want_returns_zero_counts
function
async_function test_rb4_empty_want_returns_zero_counts L212–229
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:fbed59b8e2bcec2b49343a4a5ab80ef218110dd92a93a40286e3e04131748b6a --body "your comment"
No comments yet. Be the first to start the discussion.