mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
f85c1f8328
The branch's iteration arc went through several headless-demo implementations (CSS Modules, AI Elements, prompt-kit, shadcn) and a streaming-markdown experiment with `streamdown`. After the spec narrowed to shadcn-only and `react-markdown` for assistant rendering, those component libraries and their satellite packages were left installed but unused. Removed (zero importers across `src/`): - @copilotkit/react-ui (v1 UI; the showcase consumes /v2 hooks only) - @rive-app/react-webgl2 (animations, never wired) - @streamdown/cjk, /code, /math, /mermaid + streamdown (replaced by react-markdown for assistant content) - @xyflow/react (graph viz, never wired) - ai (Vercel AI SDK, was the AI Elements demo's transport) - ansi-to-react (terminal output, never wired) - marked (alternative markdown parser, never wired) - media-chrome (media player UI, never wired) - motion (animation library, was a prompt-kit demo dep) - nanoid (we use crypto.randomUUID()) - react-jsx-parser (never wired) - remark-breaks (markdown extension, never wired) - shiki (syntax highlighting, never wired) - tokenlens (never wired) - use-stick-to-bottom (was an AI Elements dep) - @radix-ui/react-use-controllable-state (no importers) Kept everything actually imported: shadcn primitive surface intact (class-variance-authority, cmdk, embla-carousel-react, lucide-react, radix-ui umbrella + per-package @radix-ui/react-checkbox / react-separator for beautiful-chat's local components), CopilotKit v2, Hashbrown + json-render BYOC catalogs, recharts, react-markdown + remark-gfm, openai (voice route), yaml (manifest parsing), zod. Build still green at 54 routes. Lockfile updated. tsconfig.json `jsx: "preserve"` — Next 15 reset this from `react-jsx` automatically on build.
1.5 KiB
1.5 KiB