Commit 23af690
committed
fix(examples): migrate integrations from v1 to v2 API surface
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-threads1 parent a30be17 commit 23af690
62 files changed
Lines changed: 478 additions & 522 deletions
File tree
- examples/integrations
- a2a-middleware
- app
- api/copilotkit/[[...slug]]
- components
- adk
- src/app
- api/copilotkit
- [[...slug]]
- agent-spec
- agentcore/frontend
- agno
- src
- app
- api/copilotkit
- [[...slug]]
- components
- crewai-crews
- src/app
- api/copilotkit
- [[...slug]]
- crewai-flows
- src/app
- api/copilotkit
- [[...slug]]
- langgraph-fastapi
- langgraph-js
- app/api/copilotkit/[[...slug]]
- langgraph-python-threads/apps/app
- src/components/example-layout
- langgraph-python
- src/components/example-layout
- llamaindex
- src/app
- api/copilotkit
- [[...slug]]
- mastra
- src/app
- api/copilotkit
- [[...slug]]
- ms-agent-framework-dotnet
- src/app
- api/copilotkit
- [[...slug]]
- ms-agent-framework-python
- src/app
- api/copilotkit
- [[...slug]]
- pydantic-ai
- src/app
- api/copilotkit
- [[...slug]]
- strands-python
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 22 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 1 | | |
14 | 2 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
18 | 6 | | |
19 | 7 | | |
20 | | - | |
| 8 | + | |
21 | 9 | | |
22 | | - | |
| 10 | + | |
23 | 11 | | |
24 | 12 | | |
25 | 13 | | |
26 | 14 | | |
27 | 15 | | |
28 | 16 | | |
29 | 17 | | |
30 | | - | |
31 | 18 | | |
32 | 19 | | |
33 | 20 | | |
34 | 21 | | |
35 | | - | |
36 | | - | |
37 | 22 | | |
38 | 23 | | |
39 | 24 | | |
| |||
68 | 53 | | |
69 | 54 | | |
70 | 55 | | |
71 | | - | |
72 | 56 | | |
73 | 57 | | |
74 | | - | |
| 58 | + | |
75 | 59 | | |
| 60 | + | |
76 | 61 | | |
77 | 62 | | |
78 | | - | |
| 63 | + | |
79 | 64 | | |
80 | | - | |
81 | | - | |
| 65 | + | |
82 | 66 | | |
83 | 67 | | |
84 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
85 | 81 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
87 | | - | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
Lines changed: 0 additions & 33 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 80 | + | |
| 81 | + | |
87 | 82 | | |
| 83 | + | |
| 84 | + | |
88 | 85 | | |
89 | 86 | | |
90 | | - | |
| 87 | + | |
91 | 88 | | |
92 | 89 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 90 | + | |
| 91 | + | |
97 | 92 | | |
98 | 93 | | |
99 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | | - | |
29 | | - | |
30 | 27 | | |
31 | 28 | | |
32 | 29 | | |
| |||
0 commit comments