Commit Graph

9 Commits

Author SHA1 Message Date
Ran Shem Tov f64bba25e4 chore(showcase): move canonical @copilotkit version to 1.59.4
Bump canonicalCopilotKitVersion 1.59.2 -> 1.59.4 and pin every
integration's @copilotkit/* to 1.59.4 (locks regenerated). Keeps the
whole showcase on one version instead of letting the langgraph A2UI
demos deviate. Existing per-slug overrides (built-in-agent pkg.pr.new,
ms-agent-harness-dotnet 1.57.2) unchanged.
2026-06-04 20:50:18 +02:00
Jordan Ritter 2b13cbab38 fix(showcase): pin @copilotkit/* to exact 1.59.2 + re-ratchet validate-pins baseline
Previously pydantic-ai and claude-sdk-typescript used 'latest' for all
@copilotkit/* dependencies (and the @copilotkit/web-inspector pnpm
overrides on @copilotkit/core), which the showcase validate-pins ratchet
counts as non-exact pin drift. Intended design is to pin to exact 1.59.2.

Changes:
- integrations/pydantic-ai/package.json: @copilotkit/{a2ui-renderer,react-core,runtime,shared,voice} 'latest' -> '1.59.2'; npm + pnpm overrides on @copilotkit/web-inspector>@copilotkit/core 'latest' -> '1.59.2'
- integrations/claude-sdk-typescript/package.json: same set as above
- Regenerated both package-lock.json files via npm install --legacy-peer-deps --package-lock-only
- scripts/fail-baseline.json: ratcheted DOWN validatePinsFailCount 106 -> 104; updated validatePinsFailHash to dde7950e8d691de5a7b2c0c16ca64b3e550221cb6072d2c29e24dcb497515cf6 (matches local sort-uniq + shasum-256 of the new [FAIL] set)

Verified locally: npx tsx validate-pins.ts reports Summary FAIL=104
(2 fewer than baseline because pydantic-ai's @copilotkit/react-core and
@copilotkit/runtime moved from 'latest' (non-exact) to '1.59.2' (exact);
CST already had unrelated FAILs that remain). Non-@copilotkit deps
(lucide-react, cmdk, openai, @ag-ui/*) intentionally left unchanged.
2026-05-31 03:02:53 -07:00
Jordan Ritter 44b57c5f25 fix(showcase): align pydantic-ai deps to LGP reference (unblock D6 prod build)
Aligns showcase/integrations/pydantic-ai/package.json to the
langgraph-python reference so the mirrored D6 demo pages can resolve
their shared-UI imports during `next build`.

- @copilotkit/*: 1.59.0 (exact-pinned) -> latest (matches LGP/CST)
- Add overrides + pnpm.overrides for @copilotkit/web-inspector>@copilotkit/core
- lucide-react: ^0.469.0 -> ^1.14.0
- openai: ^4.0.0 -> ^5.9.0
- tailwind-merge: ^2.6.0 -> ^3.5.0
- @playwright/test: ^1.50.0 -> ^1.59.1
- Add cmdk ^0.2.1, embla-carousel-react ^8.6.0, react-markdown ^10.1.0, remark-gfm ^4.0.1
- @ag-ui/client + @ag-ui/core remain at ^0.0.52 (satisfies @copilotkit/shared peer)
- Regenerate package-lock.json

Verified locally: npm install --legacy-peer-deps + npm run build ->
Compiled successfully in 6.9s, Generating static pages (56/56).
2026-05-30 21:36:40 -07:00
Jordan Ritter c560df9e68 feat(showcase): complete pydantic-ai D6 page-mirror + fix frontend-tools slug
Mirror manifest-driven homepage from langgraph-python (replacing 59-line stub
with the tag-grouped, features-ordered layout) and add the missing
threadid-frontend-tool-roundtrip demo page. Register the new agent slug in
the runtime route so the demo can talk to the PydanticAI backend via the
default sales agent mount.

Fix the pre-existing frontend-tools slug mismatch: the page declared
agent="frontend-tools" (matching what src/app/api/copilotkit/route.ts
registers) but CopilotSidebar received agentId="frontend_tools" (underscore,
LGP convention). Align agentId to the hyphenated form pydantic actually
registers.

Pin @copilotkit/* deps to 1.59.0 (matching LGP's installed versions), add
the previously-missing @copilotkit/shared, and bump @ag-ui/{client,core}
to ^0.0.52 to satisfy the new @copilotkit/shared peer range. Regenerate
package-lock.json. Python backend (agent.py / agent_server.py / src/agents/)
is preserved untouched.
2026-05-30 20:12:54 -07:00
Jordan Ritter 66cefcf77c fix(showcase): add missing shadcn primitives + fix chat-slots bundling for pydantic-ai D6 mirror
The D6 parity mirror sweep copied LGP demo pages into pydantic-ai but did
not copy the shadcn UI primitives + lib/utils they import, nor reconcile
the manifest highlight paths against actual mirrored file layouts.

Caused two CI build-check failures on PR #5109:

1. pydantic-ai build-check: Next webpack could not resolve
   '@/components/ui/{button,card,avatar,...}' or '@/lib/utils'.
   Fix: copy LGP shadcn primitives (avatar, badge, button, card, input,
   scroll-area, select, separator, spinner, textarea) + lib/utils.ts;
   add 'radix-ui' (umbrella package the primitives import from) and
   'yaml' (used by demos/layout.tsx) to package.json + lockfile.

2. shell-dojo build-check: bundle-demo-content.ts rejected
   pydantic-ai::chat-slots highlight path
   'src/app/demos/chat-slots/custom-welcome-screen.tsx' (does not exist).
   Fix: align pydantic-ai manifest highlight paths for chat-slots,
   headless-complete, tool-rendering-reasoning-chain, and
   gen-ui-interrupt with LGP-canonical paths that match the mirrored
   file layout (slot-wrappers.tsx, chat/hooks/tools subdirs,
   _components/time-picker-card.tsx; drop nonexistent README.md ref).

Local verification: npm run build in pydantic-ai succeeds;
bundle-demo-content.ts bundles 695 demos including all four previously
broken pydantic-ai entries with no errors.
2026-05-30 16:24:09 -07:00
Jordan Ritter a30be17798 fix(showcase): pin @copilotkit deps to latest instead of stale next tag
The "next" dist-tag was a workaround for Docker builds that can't resolve
workspace:* — but "next" has gone stale (1.55.2-next.1) while "latest" is
at 1.56.5. Renovate doesn't cover showcase/, so these never auto-bumped.
Switch all 19 showcase package.json files to "latest".
2026-05-22 12:06:17 -07:00
Jordan Ritter 6bc0db6a25 fix: harden showcase packages — dep pins + Docker image pins
Dependency version floors:
- next: ^15.0.0 → ^15.5.15 across all 19 showcase packages (CVE-2025-29927)
- express: ^4.21.0 → ^4.21.2 in claude-sdk-typescript (open redirect fix)
- hono: ^4.0.0 → ^4.6.0 in shell (path traversal fix)

Docker base image pins:
- node:20-slim → node:20.19-slim (18 Dockerfiles)
- python:3.12-slim → python:3.12.11-slim (12 Dockerfiles)
- aimock:latest → aimock:1.13.0 (1 Dockerfile)

Part of CPK-7320
2026-04-28 10:33:06 -07:00
Jordan Ritter e9a2e143de fix(showcase): add shared-tools symlinks and refactor imports
Replace sys.path.insert hacks in Python agent files with direct
imports via symlinks to shared/{python,typescript}/tools.
Update Dockerfiles, entrypoints, and configs to support the new
symlink-based tool resolution. Add PARITY_NOTES for frameworks
that have known gaps.
2026-04-28 07:50:03 -07:00
Jordan Ritter dd06dd89d1 refactor(showcase): rename packages/ to integrations/
The showcase framework directories better reflect their role as
integration examples rather than distributable packages.
Renames showcase/packages/ -> showcase/integrations/ and updates
the test docker-compose file reference accordingly.
2026-04-28 07:47:35 -07:00