feat: add pack_origin remote config for Cloudflare Worker pack routing
Adds an optional pack_origin field to remote entries in .muse/config.toml. When set, POST /push/object-pack calls are routed to that origin (e.g. a Cloudflare Worker) instead of the primary remote URL. The /{owner}/{slug} path is preserved from the primary URL so the MWP path structure is unchanged.
Changes: - RemoteEntry: add pack_origin field - RemoteConfig: make total=False, add optional pack_origin field - _load_config: read pack_origin from remote entry TOML - get_remote_pack_origin: new function to retrieve pack_origin for a remote - list_remotes: include pack_origin when present - _push_objects_as_packs: accept pack_origin param, swap URL origin before upload - _push_mwp: accept and thread pack_origin through to _push_objects_as_packs - run: read pack_origin from config and pass to _push_mwp
0 comments
muse hub commit comment sha256:c3c06739ddedcf235dad3b3e1a46124c3944930fc8a54d1c9aaa9214562e6004 --body "your comment"
No comments yet. Be the first to start the discussion.