Skip to content

init --with has no offline/local-bundle transport for extension bundles #533

Closed

Description

@jimhoyd

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.

Related

Activity

  1. added
    needs-decision
    on Sep 23, 2026
  2. jimhoyd commented on Sep 24, 2026

    @jimhoyd
    CollaboratorAuthor

    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.

  3. removed
    needs-decision
    on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions