Skip to content

Commit 030228f

Browse files
committed
chore: Update to CopilotKit v1.5
1 parent 35e409b commit 030228f

File tree

7 files changed

+1501
-183
lines changed

7 files changed

+1501
-183
lines changed

apps/dojo/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@
2828
"@ag-ui/spring-ai": "workspace:*",
2929
"@ag-ui/vercel-ai-sdk": "workspace:*",
3030
"@ai-sdk/openai": "^2.0.42",
31-
"@copilotkit/react-core": "1.10.6",
32-
"@copilotkit/react-ui": "1.10.6",
33-
"@copilotkit/runtime": "1.10.6",
34-
"@copilotkit/runtime-client-gql": "1.10.6",
35-
"@copilotkit/shared": "1.10.6",
36-
"@copilotkitnext/react": "0.0.19-alpha.0",
37-
"@copilotkitnext/runtime": "0.0.19-alpha.0",
38-
"@copilotkitnext/agent": "0.0.19-alpha.0",
31+
"@copilotkit/react-core": "0.0.0-feat-cpk-1-5-latest-vnext-20251119225643",
32+
"@copilotkit/react-ui": "0.0.0-feat-cpk-1-5-latest-vnext-20251119225643",
33+
"@copilotkit/runtime": "0.0.0-feat-cpk-1-5-latest-vnext-20251119225643",
34+
"@copilotkit/runtime-client-gql": "0.0.0-feat-cpk-1-5-latest-vnext-20251119225643",
35+
"@copilotkit/shared": "0.0.0-feat-cpk-1-5-latest-vnext-20251119225643",
36+
"@copilotkitnext/agent": "0.0.22",
37+
"@copilotkitnext/core": "0.0.22",
38+
"@copilotkitnext/react": "0.0.22",
39+
"@copilotkitnext/runtime": "0.0.22",
3940
"@mastra/client-js": "^0.15.2",
4041
"@mastra/core": "^0.20.2",
4142
"@mastra/dynamodb": "^0.15.6",

apps/dojo/src/app/api/copilotkit/[integrationId]/route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,3 @@ export async function POST(request: NextRequest) {
2828

2929
return handleRequest(request);
3030
}
31-

integrations/mastra/typescript/src/copilotkit.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import {
88
import { RuntimeContext } from "@mastra/core/runtime-context";
99
import { registerApiRoute } from "@mastra/core/server";
1010
import { MastraAgent } from "./mastra";
11-
export function registerCopilotKit<T extends Record<string, any> | unknown = unknown>({
11+
export function registerCopilotKit<
12+
T extends Record<string, any> | unknown = unknown,
13+
>({
1214
path,
1315
resourceId,
1416
serviceAdapter = new ExperimentalEmptyAdapter(),
@@ -19,7 +21,10 @@ export function registerCopilotKit<T extends Record<string, any> | unknown = unk
1921
resourceId: string;
2022
serviceAdapter?: CopilotServiceAdapter;
2123
agents?: Record<string, AbstractAgent>;
22-
setContext?: (c: any, runtimeContext: RuntimeContext<T>) => void | Promise<void>;
24+
setContext?: (
25+
c: any,
26+
runtimeContext: RuntimeContext<T>
27+
) => void | Promise<void>;
2328
}) {
2429
return registerApiRoute(path, {
2530
method: `ALL`,
@@ -41,7 +46,7 @@ export function registerCopilotKit<T extends Record<string, any> | unknown = unk
4146
});
4247

4348
const runtime = new CopilotRuntime({
44-
agents: aguiAgents,
49+
agents: Promise.resolve(aguiAgents) as any,
4550
});
4651

4752
const handler = copilotRuntimeNodeHttpEndpoint({
@@ -50,7 +55,7 @@ export function registerCopilotKit<T extends Record<string, any> | unknown = unk
5055
serviceAdapter,
5156
});
5257

53-
return handler.handle(c.req.raw, {});
58+
return (handler as any).handle(c.req.raw, {});
5459
},
5560
});
5661
}

integrations/pydantic-ai/python/examples/poetry.lock

Lines changed: 1249 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integrations/pydantic-ai/python/examples/pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ description = "Example usage of the AG-UI adapter for Pydantic AI"
77
license = "MIT"
88

99
readme = "README.md"
10-
requires-python = ">=3.9"
10+
requires-python = ">=3.10,<4.0"
1111
dependencies = [
1212
"fastapi>=0.104.0",
1313
"uvicorn[standard]>=0.24.0",
14-
"pydantic-ai-slim[openai,ag-ui]>=0.1.0",
14+
"pydantic-ai-slim[openai,ag-ui]==1.20.0",
1515
]
1616
authors = []
1717

1818
[project.scripts]
1919
dev = "server:main"
20-
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[virtualenvs]
2+
in-project = true

pnpm-lock.yaml

Lines changed: 230 additions & 167 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)