Files
Jordan Ritter d1b07d4513 fix(showcase): stage catalog-flatten in generator envs
generate-registry.ts imports the catalog cross-join/flatten fold from
../harness/src/shared/catalog/catalog-flatten.ts, which does
`import yaml from "js-yaml"`. The generator's build/test environments did
not stage that file (or its module-resolution scope), so the fold could
not resolve.

- Dockerfiles (shell, shell-dashboard, shell-docs, shell-dojo): COPY the
  shared catalog source + harness/package.json (its `"type":"module"` is
  required so catalog-flatten resolves as ESM and its named exports bind)
  and provide a node_modules for js-yaml resolution.
- generate-registry-pattern.test.ts (makeHarness): stage catalog-flatten.ts
  and harness/package.json at the exact relative path the generator
  resolves, and symlink the scripts node_modules onto the harness tree so
  the ESM `import yaml from "js-yaml"` resolves.
- js-yaml + @types/js-yaml added to showcase/scripts (package.json and the
  npm package-lock.json), and the root pnpm-lock.yaml regenerated to add
  the matching importer entries for showcase/scripts (js-yaml >=4.1.1 via
  the root override, @types/js-yaml ^4.0.9) so `pnpm install
  --frozen-lockfile` stays in sync.
2026-07-20 22:36:14 -07:00

43 lines
1.4 KiB
JSON

{
"name": "@copilotkit/showcase-scripts",
"private": true,
"type": "module",
"scripts": {
"generate-registry": "tsx generate-registry.ts",
"verify-shell-docs": "tsx verify-shell-docs.ts",
"verify-shell-docs:fast": "tsx verify-shell-docs.ts --skip-build",
"probe-docs": "tsx probe-docs.ts",
"probe-claude-quickstarts": "tsx probe-claude-quickstarts.ts",
"check-claude-quickstarts:runtime": "tsx check-claude-quickstarts-runtime.ts",
"validate-manifests": "tsx generate-registry.ts --validate-only",
"validate-routes": "tsx validate-runtime-routes.ts --all",
"showcase:audit": "tsx audit.ts",
"create-integration": "tsx create-integration/index.ts",
"bundle-content": "tsx bundle-demo-content.ts",
"bundle-setup-content": "tsx bundle-setup-content.ts",
"extract-starter": "tsx extract-starter.ts",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@copilotkit/aimock": "1.37.4",
"@playwright/test": "^1.59.1",
"ajv": "^8.17.1",
"ajv-formats": "^3.0.1",
"chalk": "^5.4.0",
"glob": "^10.4.0",
"js-yaml": "^4.1.0",
"playwright": "^1.59.1",
"prompts": "^2.4.2",
"tsx": "^4.19.0",
"yaml": "^2.7.0"
},
"devDependencies": {
"@types/js-yaml": "^4.0.9",
"@types/node": "^22.0.0",
"@types/prompts": "^2.4.9",
"@vitest/coverage-v8": "^4.1.5",
"vitest": "^4.1.5"
}
}