gabriel / muse public
fix BREAKING task/urllib-migration #3 / 3
AI Agent gabriel · 104 days ago · May 30, 2026 · Diff

fix: migrate httpx → urllib in transport.py and push.py; fix proposal limit 100

- Remove httpx dependency from transport layer entirely - Add _make_ssl_ctx() for mkcert localhost SSL, _urllib_do() as single HTTP executor - _NoRedirectHandler for redirect prevention - All push/fetch/presign paths now use urllib - push.py _run_mpack_path becomes sync (no asyncio), delegates to transport methods - _PROPOSAL_PREFIX_RESOLVE_LIMIT 200 → 100 to match hub API cap

sha256:00cec040ce5f70bf8191d2ce6a9f308fbde553911068f0c303217f4eb6d4e775 sha
+7 ~9 −7 symbols
sha256:bdc223bb574d2e624bcd8d3fabf9320bcdce641b6b8d434df1f953516e2fefa0 snapshot
+7
symbols added
~9
symbols modified
−7
symbols removed
0
dead code introduced
Semantic Changes 23 symbols
~ muse/cli/commands/push.py .py 5 symbols removed, 1 symbol modified
PRESIGN_PUT_CONCURRENCY variable variable PRESIGN_PUT_CONCURRENCY L117–117
_make_push_ssl_ctx function function _make_push_ssl_ctx L131–134
_make_r2_client function function _make_r2_client L119–128
_httpx import import _httpx L114–114
_ssl import import _ssl L113–113
~ muse/core/transport.py .py 7 symbols added, 2 symbols removed, 8 symbols modified
_httpx_verify function function _httpx_verify L117–129
_httpx_mod import import _httpx_mod L88–88
+ _NoRedirectHandler class class _NoRedirectHandler L450–453
+ redirect_request method method redirect_request L452–453
+ _make_ssl_ctx function function _make_ssl_ctx L119–129
+ _urllib_do function function _urllib_do L461–496
+ _ssl_mod import import _ssl_mod L88–88
+ error import import urllib.error L89–89
+ request import import urllib.request L90–90

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:00cec040ce5f70bf8191d2ce6a9f308fbde553911068f0c303217f4eb6d4e775 --body "your comment"