You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
init --with has no offline/local-bundle transport for extension bundles #533
Split out of #532 for a standalone, independently-closable scope.
What's wrong
`urlcode init --with` always resolves bundles over the network via `githubBundleTransport` (`packages/core/src/extension-bundles.ts`). The only alternative is the `bundleTransport` option on `initProjectWith` (`packages/core/src/init-with.ts:30`), documented as "Test-only transport injection" -- not a supported user-facing escape hatch. There is no `--bundle-release `, no vendoring support, and `installBundle` (`extension-bundles.ts:59`) always calls `transport.release()` over the network even when a matching bundle may already be cached locally under `.urlcode/extension-bundles//`.
Runtime bundle loading (`loadExtensionBundle`, used by `serve`) is already network-free -- only `init --with` and `extension-bundles install` require network. A user working air-gapped, behind a restrictive proxy, or just wanting reproducible installs without hitting GitHub every time has no supported path today.
Suggested fix
Decide whether a local-file/cache-only `BundleTransport` is worth promoting from test-only to a real, documented, user-facing option (e.g. a `--bundle-release ` flag, or an explicit local-cache-first lookup before hitting the network), or whether that's out of scope for the free/self-hosted runtime and should be explicitly documented as a non-goal instead.
Triage decision: support offline/local extension-bundle acquisition. First use a verified matching local cache, then allow an explicit --bundle-release <path> pointing to a signed release artifact or directory. Apply the same integrity, signature, revision, and compatibility checks used for network acquisition; never accept arbitrary unpacked extension code as a local escape hatch. Normal acquisition may retain network fallback. Leave open for contract/CLI implementation and remove needs-decision.
Activity
jimhoyd commentedon Sep 24, 2026
Triage decision: support offline/local extension-bundle acquisition. First use a verified matching local cache, then allow an explicit
--bundle-release <path>pointing to a signed release artifact or directory. Apply the same integrity, signature, revision, and compatibility checks used for network acquisition; never accept arbitrary unpacked extension code as a local escape hatch. Normal acquisition may retain network fallback. Leave open for contract/CLI implementation and removeneeds-decision.