mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
23af69041c
Migrate 15 example integrations from the v1 compatibility facade to native v2 CopilotKit APIs. The v1 surface delegates to v2 internally so this is an API surface change, not a functional one. Key changes per integration: - Import paths: @copilotkit/react-core -> react-core/v2, @copilotkit/runtime -> runtime/v2 - Hook renames: useCoAgent -> useAgent, useCopilotAction -> useFrontendTool, useRenderToolCall -> useRenderTool - UI: CopilotSidebar from react-ui -> react-core/v2 - Styles: react-ui/styles.css -> react-core/v2/styles.css - Runtime: copilotRuntimeNextJSAppRouterEndpoint -> createCopilotEndpoint + hono/vercel - Removed @copilotkit/react-ui and @copilotkit/shared deps Integrations migrated (v1 -> v2): a2a-middleware, adk, agno, crewai-crews, crewai-flows, langgraph-js, llamaindex, mastra, ms-agent-framework-dotnet, ms-agent-framework-python, pydantic-ai, strands-python Mixed integrations cleaned up (stale deps removed): agent-spec, agentcore, langgraph-fastapi, langgraph-python, langgraph-python-threads
45 lines
1.3 KiB
JSON
45 lines
1.3 KiB
JSON
{
|
|
"name": "agent-spec-starter",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "concurrently \"npm run dev:ui\" \"npm run dev:agent\" --names ui,agentspecagent --prefix-colors blue,green --kill-others",
|
|
"dev:debug": "LOG_LEVEL=debug npm run dev",
|
|
"dev:agent": "./scripts/run-agent.sh",
|
|
"dev:ui": "next dev --turbopack",
|
|
"patch:ui": "./scripts/apply-ui-patches.sh",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"install:agent": "./scripts/setup-agent.sh",
|
|
"postinstall": "npm run install:agent"
|
|
},
|
|
"dependencies": {
|
|
"@a2ui/lit": "^0.8.1",
|
|
"@ag-ui/a2ui-middleware": "^0.0.2",
|
|
"@ag-ui/client": "0.0.52",
|
|
"@ag-ui/core": "^0.0.46",
|
|
"@ag-ui/encoder": "^0.0.46",
|
|
"@ag-ui/proto": "^0.0.46",
|
|
"@copilotkit/a2ui-renderer": "1.57.1",
|
|
"@copilotkit/react-core": "1.57.1",
|
|
"@copilotkit/runtime": "1.57.1",
|
|
"hono": "^4.11.4",
|
|
"next": "16.0.10",
|
|
"react": "^19.2.3",
|
|
"react-dom": "^19.2.3",
|
|
"zod": "^3.25.75"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4.1.13",
|
|
"@types/node": "^22.15.3",
|
|
"@types/react": "19.2.3",
|
|
"@types/react-dom": "19.2.3",
|
|
"concurrently": "^9.2.1",
|
|
"postcss": "^8.4.49",
|
|
"tailwindcss": "^4.1.13",
|
|
"typescript": "5.9.2"
|
|
},
|
|
"resolutions": {}
|
|
}
|