Repository navigation
Description
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:
-
No CLI discovery command.
packages/core/src/cli.tshas no--listflag and nourlcode extensions --list. The existingurlcode extensionssubcommand introspects an already-scaffolded project's host file (post-install), not the catalog of what's installable (pre-install).--helpmentions--with ui,auth,adminonly as an illustrative example string, never as an enumerated list of real names. -
Unknown extension name gives an unhelpful error.
parseWithNamesinpackages/core/src/init-with.tsonly validates the name pattern (^[a-z][a-z0-9-]{0,63}$), so a typo or guess sails through untouched. The actual rejection happens inpackages/core/src/extension-bundles.ts'sinstallBundle, which throws`Extension bundle ${bundleName} is not in the signed catalog`-- but the resolvedcatalog.bundlesarray (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.bundlesis reliably available (not just in the common/happy path) at the pointinstallBundlethrows, 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 resolvedextension-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
fix(core): improve extension-bundle discovery, error messages, and do…