Skip to content

fix(cli): resolve registry path for docs and ls commands#25

Open
msmps wants to merge 1 commit intocloudflare:mainfrom
msmps:fix/cli-registry-path-docs
Open

fix(cli): resolve registry path for docs and ls commands#25
msmps wants to merge 1 commit intocloudflare:mainfrom
msmps:fix/cli-registry-path-docs

Conversation

@msmps
Copy link

@msmps msmps commented Feb 6, 2026

what this fixes

kumo docs / kumo doc / kumo ls were looking for the registry in catalog/component-registry.json, but the published package ships it in ai/component-registry.json.

So on fresh installs, those commands were failing with:

Error: Component registry not found. Run 'pnpm build:ai-metadata' first.

what changed

  • updated registry path in:
    • packages/kumo/src/command-line/commands/doc.ts
    • packages/kumo/src/command-line/commands/ls.ts
  • switched catalog -> ai in getRegistryPath()

tested

  • pnpm --filter @cloudflare/kumo build
  • manual check with built CLI:
    • node packages/kumo/bin/kumo.js docs ✅ (prints full docs output)
    • node packages/kumo/bin/kumo.js ls ✅ (lists components)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant