Skip to content

[Gap]: extension discovery has no CLI path and unknown-name errors don't list valid options #530

Closed

Description

@jimhoyd

What you were trying to do

Figure out, as an agent (and as a proxy for a new developer), how to discover which extensions exist and what names urlcode init --with <names> accepts, now that extensions are distributed only as GitHub Release bundle assets ([email protected]) and are no longer published to npm.

Where it broke down

Two related gaps, both in the same discovery path:

  1. No CLI discovery command. packages/core/src/cli.ts has no --list flag and no urlcode extensions --list. The existing urlcode extensions subcommand introspects an already-scaffolded project's host file (post-install), not the catalog of what's installable (pre-install). --help mentions --with ui,auth,admin only as an illustrative example string, never as an enumerated list of real names.

  2. Unknown extension name gives an unhelpful error. parseWithNames in packages/core/src/init-with.ts only validates the name pattern (^[a-z][a-z0-9-]{0,63}$), so a typo or guess sails through untouched. The actual rejection happens in packages/core/src/extension-bundles.ts's installBundle, which throws `Extension bundle ${bundleName} is not in the signed catalog` -- but the resolved catalog.bundles array (which has every valid name) is already in scope at that point and isn't included in the message. There's no "did you mean" and no list of what is valid.

Compounding both: npm search urlcode-auth (the instinct an npm-familiar developer would reach for first) now returns nothing, since those packages were retired from npm entirely -- so the one semi-natural fallback path is also silent rather than informative.

Today the only real discovery surface is reading the extension table in README.md (and the mirrored table in docs/EXTENSIONS.md). That works if you find and read it, but there's no in-tool discovery and no self-correcting failure mode for a wrong guess.

Code or YAML you had to write by hand

N/A -- this is a discovery/DX gap, not something with a hand-written workaround. The only "workaround" was manually reading README.md to find the five valid names (ui, auth, admin, store, forms).

What you could not verify

  • Whether catalog.bundles is reliably available (not just in the common/happy path) at the point installBundle throws, for every rejection branch -- worth confirming before wiring it into the error message.
  • Whether a --list/discovery command should hit the network (fetch+parse the resolved extension-bundles@v<core> catalog live) or ship a static list baked into core at release time; each has different staleness and offline-availability tradeoffs.

Activity

  1. added
    ai-first
    on Sep 23, 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

    ai-first

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions