mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
94130333c6
Activation-gated Intelligence/threads added to the batch-1 integration
examples (langgraph-js, mastra, adk, agno, ms-agent-framework-python,
ms-agent-framework-dotnet) and standardized — with the langgraph-python
north-star — on @copilotkit 1.59.1.
Per-example:
- env-gated CopilotKitIntelligence route branch (multi-route endpoint +
`useSingleEndpoint={false}` REST transport; no organizationId);
- bespoke themed threads-drawer panel + locked-state tease;
- next.config `NEXT_PUBLIC_COPILOTKIT_THREADS_ENABLED` gate; demo-user identity.
Demo migration to v2 hooks (the 1.59.1 bump broke the V1-era demos):
- `useAgent({ agentId })` -> `{ agent }` with `agent.state`/`setState`;
- `useFrontendTool` params as Zod schemas; CopilotSidebar content as a sibling
(v2 slot model), not children; guarded card state.
Shared `_intelligence/` overlay: composite image 0.2.0, idempotent
`provision-user` one-shot (demo-user), and `CHECK_ORIGIN=false` so the local
realtime-gateway accepts the app's websocket origin.
Verified end-to-end on mastra (threads CRUD create/list/auto-name + agent run +
live updates, clean console); the other five build clean and await per-example
visual review.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
40 lines
1.2 KiB
JSON
40 lines
1.2 KiB
JSON
{
|
|
"name": "copilotkit-microsoft-agent-framework-starter",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "concurrently \"npm run dev:ui\" \"npm run dev:agent\" --names ui,agent --prefix-colors blue,green --kill-others",
|
|
"dev:debug": "LOG_LEVEL=debug npm run dev",
|
|
"dev:agent": "./scripts/run-agent.sh || scripts\\run-agent.bat",
|
|
"dev:ui": "next dev --turbopack",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"install:agent": "./scripts/setup-agent.sh || scripts\\setup-agent.bat",
|
|
"postinstall": "npm run install:agent"
|
|
},
|
|
"dependencies": {
|
|
"@ag-ui/client": "0.0.52",
|
|
"@copilotkit/react-core": "1.59.1",
|
|
"@copilotkit/runtime": "1.59.1",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"hono": "^4.12.10",
|
|
"lucide-react": "^0.525.0",
|
|
"next": "16.0.8",
|
|
"react": "^19.2.1",
|
|
"react-dom": "^19.2.1",
|
|
"tailwind-merge": "^3.5.0",
|
|
"zod": "^3.24.4"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4",
|
|
"@types/node": "^20",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"concurrently": "^9.1.2",
|
|
"tailwindcss": "^4",
|
|
"typescript": "^5"
|
|
}
|
|
}
|