Jordan Ritter
23af69041c
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-threads
2026-05-22 12:10:00 -07:00