@copilotkit/runtime 2.0.0-rc.65 → 2.0.0-rc.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,313 +1,313 @@
1
1
  import { removedApi } from "@copilotkit/shared";
2
2
 
3
3
  //#region src/removed-exports.ts
4
- /** @deprecated "AnthropicAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
4
+ /** @deprecated "AnthropicAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
5
5
  const AnthropicAdapter = /* @__PURE__ */ removedApi({
6
6
  name: "AnthropicAdapter",
7
7
  use: "CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.",
8
8
  docs: "/migrate/v2#update-the-runtime"
9
9
  });
10
- /** @deprecated "BasicAgent" was removed in CopilotKit 2.0. Use BuiltInAgent from @copilotkit/runtime/agent. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/removed-apis-2.0#runtime */
10
+ /** @deprecated "BasicAgent" was removed in CopilotKit 2.0. Use BuiltInAgent from @copilotkit/runtime/agent. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/removed-apis-2.0#runtime */
11
11
  const BasicAgent = /* @__PURE__ */ removedApi({
12
12
  name: "BasicAgent",
13
13
  use: "Use BuiltInAgent from @copilotkit/runtime/agent.",
14
14
  docs: "/migrate/removed-apis-2.0#runtime"
15
15
  });
16
- /** @deprecated "BedrockAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
16
+ /** @deprecated "BedrockAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
17
17
  const BedrockAdapter = /* @__PURE__ */ removedApi({
18
18
  name: "BedrockAdapter",
19
19
  use: "CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.",
20
20
  docs: "/migrate/v2#update-the-runtime"
21
21
  });
22
- /** @deprecated "buildSchema" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. Serve the runtime with createCopilotKitRuntimeHandler from @copilotkit/runtime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
22
+ /** @deprecated "buildSchema" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. Serve the runtime with createCopilotKitRuntimeHandler from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
23
23
  const buildSchema = /* @__PURE__ */ removedApi({
24
24
  name: "buildSchema",
25
25
  use: "CopilotKit 2.0 has no GraphQL endpoint. Serve the runtime with createCopilotKitRuntimeHandler from @copilotkit/runtime.",
26
26
  docs: "/migrate/v2#update-the-runtime"
27
27
  });
28
- /** @deprecated "classifyModelSpec" was removed in CopilotKit 2.0. Pass an adapter as model, for example anthropicText("claude-sonnet-4-6"). To switch models from the frontend, set the resolveModel option of the BuiltInAgent. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#if-you-used-resolvemodel-or-classifymodelspec */
28
+ /** @deprecated "classifyModelSpec" was removed in CopilotKit 2.0. Pass an adapter as model, for example anthropicText("claude-sonnet-4-6"). To switch models from the frontend, set the resolveModel option of the BuiltInAgent. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#if-you-used-resolvemodel-or-classifymodelspec */
29
29
  const classifyModelSpec = /* @__PURE__ */ removedApi({
30
30
  name: "classifyModelSpec",
31
31
  use: "Pass an adapter as model, for example anthropicText(\"claude-sonnet-4-6\"). To switch models from the frontend, set the resolveModel option of the BuiltInAgent.",
32
32
  docs: "/migrate/runtime-2.0#if-you-used-resolvemodel-or-classifymodelspec"
33
33
  });
34
- /** @deprecated "convertJsonSchemaToZodSchema" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */
34
+ /** @deprecated "convertJsonSchemaToZodSchema" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */
35
35
  const convertJsonSchemaToZodSchema = /* @__PURE__ */ removedApi({
36
36
  name: "convertJsonSchemaToZodSchema",
37
37
  use: "2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.",
38
38
  docs: "/migrate/runtime-2.0#built-in-agent"
39
39
  });
40
- /** @deprecated "convertMCPToolsToActions" was removed in CopilotKit 2.0. Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */
40
+ /** @deprecated "convertMCPToolsToActions" was removed in CopilotKit 2.0. Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */
41
41
  const convertMCPToolsToActions = /* @__PURE__ */ removedApi({
42
42
  name: "convertMCPToolsToActions",
43
43
  use: "Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }.",
44
44
  docs: "/migrate/runtime-2.0#4-replace-mcpservers-with-mcp"
45
45
  });
46
- /** @deprecated "convertMessagesToVercelAISDKMessages" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */
46
+ /** @deprecated "convertMessagesToVercelAISDKMessages" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */
47
47
  const convertMessagesToVercelAISDKMessages = /* @__PURE__ */ removedApi({
48
48
  name: "convertMessagesToVercelAISDKMessages",
49
49
  use: "2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.",
50
50
  docs: "/migrate/runtime-2.0#built-in-agent"
51
51
  });
52
- /** @deprecated "convertServiceAdapterError" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
52
+ /** @deprecated "convertServiceAdapterError" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
53
53
  const convertServiceAdapterError = /* @__PURE__ */ removedApi({
54
54
  name: "convertServiceAdapterError",
55
55
  use: "CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.",
56
56
  docs: "/migrate/v2#update-the-runtime"
57
57
  });
58
- /** @deprecated "convertToolDefinitionsToVercelAITools" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */
58
+ /** @deprecated "convertToolDefinitionsToVercelAITools" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */
59
59
  const convertToolDefinitionsToVercelAITools = /* @__PURE__ */ removedApi({
60
60
  name: "convertToolDefinitionsToVercelAITools",
61
61
  use: "2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.",
62
62
  docs: "/migrate/runtime-2.0#built-in-agent"
63
63
  });
64
- /** @deprecated "convertToolsToVercelAITools" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */
64
+ /** @deprecated "convertToolsToVercelAITools" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */
65
65
  const convertToolsToVercelAITools = /* @__PURE__ */ removedApi({
66
66
  name: "convertToolsToVercelAITools",
67
67
  use: "2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.",
68
68
  docs: "/migrate/runtime-2.0#built-in-agent"
69
69
  });
70
- /** @deprecated "copilotKitEndpoint" was removed in CopilotKit 2.0. CopilotKitRuntime has no remoteEndpoints. Serve each Python agent over AG-UI, and register it in agents. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#python-sdk-endpoint */
70
+ /** @deprecated "copilotKitEndpoint" was removed in CopilotKit 2.0. CopilotKitRuntime has no remoteEndpoints. Serve each Python agent over AG-UI, and register it in agents. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#python-sdk-endpoint */
71
71
  const copilotKitEndpoint = /* @__PURE__ */ removedApi({
72
72
  name: "copilotKitEndpoint",
73
73
  use: "CopilotKitRuntime has no remoteEndpoints. Serve each Python agent over AG-UI, and register it in agents.",
74
74
  docs: "/migrate/agents-2.0#python-sdk-endpoint"
75
75
  });
76
- /** @deprecated "CopilotRuntime" was removed in CopilotKit 2.0. Use CopilotKitRuntime from @copilotkit/runtime, and pass each agent in agents. A model runs in a BuiltInAgent from @copilotkit/runtime/agent, so serviceAdapter, remoteEndpoints, and actions are gone. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
76
+ /** @deprecated "CopilotRuntime" was removed in CopilotKit 2.0. Use CopilotKitRuntime from @copilotkit/runtime, and pass each agent in agents. A model runs in a BuiltInAgent from @copilotkit/runtime/agent, so serviceAdapter, remoteEndpoints, and actions are gone. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
77
77
  const CopilotRuntime = /* @__PURE__ */ removedApi({
78
78
  name: "CopilotRuntime",
79
79
  use: "Use CopilotKitRuntime from @copilotkit/runtime, and pass each agent in agents. A model runs in a BuiltInAgent from @copilotkit/runtime/agent, so serviceAdapter, remoteEndpoints, and actions are gone.",
80
80
  docs: "/migrate/v2#update-the-runtime"
81
81
  });
82
- /** @deprecated "copilotRuntimeNestEndpoint" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */
82
+ /** @deprecated "copilotRuntimeNestEndpoint" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */
83
83
  const copilotRuntimeNestEndpoint = /* @__PURE__ */ removedApi({
84
84
  name: "copilotRuntimeNestEndpoint",
85
85
  use: "Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.",
86
86
  docs: "/migrate/runtime-2.0#node-and-express"
87
87
  });
88
- /** @deprecated "copilotRuntimeNextJSAppRouterEndpoint" was removed in CopilotKit 2.0. Serve the runtime with createCopilotKitRuntimeHandler from @copilotkit/runtime, and export the handler as GET and POST from app/api/copilotkit/[[...slug]]/route.ts. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#fetch-and-nextjs */
88
+ /** @deprecated "copilotRuntimeNextJSAppRouterEndpoint" was removed in CopilotKit 2.0. Serve the runtime with createCopilotKitRuntimeHandler from @copilotkit/runtime, and export the handler as GET and POST from app/api/copilotkit/[[...slug]]/route.ts. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#fetch-and-nextjs */
89
89
  const copilotRuntimeNextJSAppRouterEndpoint = /* @__PURE__ */ removedApi({
90
90
  name: "copilotRuntimeNextJSAppRouterEndpoint",
91
91
  use: "Serve the runtime with createCopilotKitRuntimeHandler from @copilotkit/runtime, and export the handler as GET and POST from app/api/copilotkit/[[...slug]]/route.ts.",
92
92
  docs: "/migrate/runtime-2.0#fetch-and-nextjs"
93
93
  });
94
- /** @deprecated "copilotRuntimeNextJSPagesRouterEndpoint" was removed in CopilotKit 2.0. Serve the runtime with createCopilotKitNodeHandler from @copilotkit/runtime/node. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */
94
+ /** @deprecated "copilotRuntimeNextJSPagesRouterEndpoint" was removed in CopilotKit 2.0. Serve the runtime with createCopilotKitNodeHandler from @copilotkit/runtime/node. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */
95
95
  const copilotRuntimeNextJSPagesRouterEndpoint = /* @__PURE__ */ removedApi({
96
96
  name: "copilotRuntimeNextJSPagesRouterEndpoint",
97
97
  use: "Serve the runtime with createCopilotKitNodeHandler from @copilotkit/runtime/node.",
98
98
  docs: "/migrate/runtime-2.0#node-and-express"
99
99
  });
100
- /** @deprecated "copilotRuntimeNodeExpressEndpoint" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */
100
+ /** @deprecated "copilotRuntimeNodeExpressEndpoint" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */
101
101
  const copilotRuntimeNodeExpressEndpoint = /* @__PURE__ */ removedApi({
102
102
  name: "copilotRuntimeNodeExpressEndpoint",
103
103
  use: "Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.",
104
104
  docs: "/migrate/runtime-2.0#node-and-express"
105
105
  });
106
- /** @deprecated "copilotRuntimeNodeHttpEndpoint" was removed in CopilotKit 2.0. Serve the runtime with createCopilotKitNodeListener from @copilotkit/runtime/node. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */
106
+ /** @deprecated "copilotRuntimeNodeHttpEndpoint" was removed in CopilotKit 2.0. Serve the runtime with createCopilotKitNodeListener from @copilotkit/runtime/node. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */
107
107
  const copilotRuntimeNodeHttpEndpoint = /* @__PURE__ */ removedApi({
108
108
  name: "copilotRuntimeNodeHttpEndpoint",
109
109
  use: "Serve the runtime with createCopilotKitNodeListener from @copilotkit/runtime/node.",
110
110
  docs: "/migrate/runtime-2.0#node-and-express"
111
111
  });
112
- /** @deprecated "createCopilotEndpoint" was removed in CopilotKit 2.0. Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#fetch-and-nextjs */
112
+ /** @deprecated "createCopilotEndpoint" was removed in CopilotKit 2.0. Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#fetch-and-nextjs */
113
113
  const createCopilotEndpoint = /* @__PURE__ */ removedApi({
114
114
  name: "createCopilotEndpoint",
115
115
  use: "Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw.",
116
116
  docs: "/migrate/runtime-2.0#fetch-and-nextjs"
117
117
  });
118
- /** @deprecated "createCopilotEndpointExpress" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */
118
+ /** @deprecated "createCopilotEndpointExpress" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */
119
119
  const createCopilotEndpointExpress = /* @__PURE__ */ removedApi({
120
120
  name: "createCopilotEndpointExpress",
121
121
  use: "Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.",
122
122
  docs: "/migrate/runtime-2.0#node-and-express"
123
123
  });
124
- /** @deprecated "createCopilotEndpointSingleRoute" was removed in CopilotKit 2.0. Use createCopilotKitRuntimeHandler from @copilotkit/runtime with mode: "single-route". Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#single-route-endpoints */
124
+ /** @deprecated "createCopilotEndpointSingleRoute" was removed in CopilotKit 2.0. Use createCopilotKitRuntimeHandler from @copilotkit/runtime with mode: "single-route". Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#single-route-endpoints */
125
125
  const createCopilotEndpointSingleRoute = /* @__PURE__ */ removedApi({
126
126
  name: "createCopilotEndpointSingleRoute",
127
127
  use: "Use createCopilotKitRuntimeHandler from @copilotkit/runtime with mode: \"single-route\".",
128
128
  docs: "/migrate/runtime-2.0#single-route-endpoints"
129
129
  });
130
- /** @deprecated "createCopilotEndpointSingleRouteExpress" was removed in CopilotKit 2.0. Use createCopilotKitNodeListener from @copilotkit/runtime/node with mode: "single-route". Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#single-route-endpoints */
130
+ /** @deprecated "createCopilotEndpointSingleRouteExpress" was removed in CopilotKit 2.0. Use createCopilotKitNodeListener from @copilotkit/runtime/node with mode: "single-route". Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#single-route-endpoints */
131
131
  const createCopilotEndpointSingleRouteExpress = /* @__PURE__ */ removedApi({
132
132
  name: "createCopilotEndpointSingleRouteExpress",
133
133
  use: "Use createCopilotKitNodeListener from @copilotkit/runtime/node with mode: \"single-route\".",
134
134
  docs: "/migrate/runtime-2.0#single-route-endpoints"
135
135
  });
136
- /** @deprecated "createCopilotExpressHandler" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */
136
+ /** @deprecated "createCopilotExpressHandler" was removed in CopilotKit 2.0. Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#node-and-express */
137
137
  const createCopilotExpressHandler = /* @__PURE__ */ removedApi({
138
138
  name: "createCopilotExpressHandler",
139
139
  use: "Mount createCopilotKitNodeListener from @copilotkit/runtime/node in your Express app.",
140
140
  docs: "/migrate/runtime-2.0#node-and-express"
141
141
  });
142
- /** @deprecated "createCopilotHonoHandler" was removed in CopilotKit 2.0. Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#fetch-and-nextjs */
142
+ /** @deprecated "createCopilotHonoHandler" was removed in CopilotKit 2.0. Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#fetch-and-nextjs */
143
143
  const createCopilotHonoHandler = /* @__PURE__ */ removedApi({
144
144
  name: "createCopilotHonoHandler",
145
145
  use: "Use createCopilotKitRuntimeHandler from @copilotkit/runtime. In Hono, pass it c.req.raw.",
146
146
  docs: "/migrate/runtime-2.0#fetch-and-nextjs"
147
147
  });
148
- /** @deprecated "createLogger" was removed in CopilotKit 2.0. Pass a logger (CopilotKitRuntimeLogger) to CopilotKitRuntime from @copilotkit/runtime, or set debug: true for debug logs. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#debug-logs */
148
+ /** @deprecated "createLogger" was removed in CopilotKit 2.0. Pass a logger (CopilotKitRuntimeLogger) to CopilotKitRuntime from @copilotkit/runtime, or set debug: true for debug logs. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#debug-logs */
149
149
  const createLogger = /* @__PURE__ */ removedApi({
150
150
  name: "createLogger",
151
151
  use: "Pass a logger (CopilotKitRuntimeLogger) to CopilotKitRuntime from @copilotkit/runtime, or set debug: true for debug logs.",
152
152
  docs: "/migrate/runtime-2.0#debug-logs"
153
153
  });
154
- /** @deprecated "createSafeUrlDownload" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */
154
+ /** @deprecated "createSafeUrlDownload" was removed in CopilotKit 2.0. 2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#built-in-agent */
155
155
  const createSafeUrlDownload = /* @__PURE__ */ removedApi({
156
156
  name: "createSafeUrlDownload",
157
157
  use: "2.0 exports the AI SDK helpers from @copilotkit/runtime/agent/ai-sdk. Import it from there, and add the ai package to your app.",
158
158
  docs: "/migrate/runtime-2.0#built-in-agent"
159
159
  });
160
- /** @deprecated "EmptyAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
160
+ /** @deprecated "EmptyAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
161
161
  const EmptyAdapter = /* @__PURE__ */ removedApi({
162
162
  name: "EmptyAdapter",
163
163
  use: "CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime.",
164
164
  docs: "/migrate/v2#update-the-runtime"
165
165
  });
166
- /** @deprecated "ExperimentalEmptyAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
166
+ /** @deprecated "ExperimentalEmptyAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
167
167
  const ExperimentalEmptyAdapter = /* @__PURE__ */ removedApi({
168
168
  name: "ExperimentalEmptyAdapter",
169
169
  use: "CopilotKit 2.0 needs no service adapter. Delete it, and pass your agents in agents on CopilotKitRuntime from @copilotkit/runtime.",
170
170
  docs: "/migrate/v2#update-the-runtime"
171
171
  });
172
- /** @deprecated "ExperimentalOllamaAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
172
+ /** @deprecated "ExperimentalOllamaAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
173
173
  const ExperimentalOllamaAdapter = /* @__PURE__ */ removedApi({
174
174
  name: "ExperimentalOllamaAdapter",
175
175
  use: "CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.",
176
176
  docs: "/migrate/v2#update-the-runtime"
177
177
  });
178
- /** @deprecated "extractParametersFromSchema" was removed in CopilotKit 2.0. Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */
178
+ /** @deprecated "extractParametersFromSchema" was removed in CopilotKit 2.0. Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */
179
179
  const extractParametersFromSchema = /* @__PURE__ */ removedApi({
180
180
  name: "extractParametersFromSchema",
181
181
  use: "Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }.",
182
182
  docs: "/migrate/runtime-2.0#4-replace-mcpservers-with-mcp"
183
183
  });
184
- /** @deprecated "FilterThinkingTextBuffer" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
184
+ /** @deprecated "FilterThinkingTextBuffer" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
185
185
  const FilterThinkingTextBuffer = /* @__PURE__ */ removedApi({
186
186
  name: "FilterThinkingTextBuffer",
187
187
  use: "CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.",
188
188
  docs: "/migrate/v2#update-the-runtime"
189
189
  });
190
- /** @deprecated "generateMcpToolInstructions" was removed in CopilotKit 2.0. Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */
190
+ /** @deprecated "generateMcpToolInstructions" was removed in CopilotKit 2.0. Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#4-replace-mcpservers-with-mcp */
191
191
  const generateMcpToolInstructions = /* @__PURE__ */ removedApi({
192
192
  name: "generateMcpToolInstructions",
193
193
  use: "Create the MCP client with createMCPClient from @tanstack/ai-mcp, and pass it to a BuiltInAgent as mcp: { clients: [client] }.",
194
194
  docs: "/migrate/runtime-2.0#4-replace-mcpservers-with-mcp"
195
195
  });
196
- /** @deprecated "getCommonConfig" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
196
+ /** @deprecated "getCommonConfig" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
197
197
  const getCommonConfig = /* @__PURE__ */ removedApi({
198
198
  name: "getCommonConfig",
199
199
  use: "CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.",
200
200
  docs: "/migrate/v2#update-the-runtime"
201
201
  });
202
- /** @deprecated "getSdkClientOptions" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
202
+ /** @deprecated "getSdkClientOptions" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
203
203
  const getSdkClientOptions = /* @__PURE__ */ removedApi({
204
204
  name: "getSdkClientOptions",
205
205
  use: "CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.",
206
206
  docs: "/migrate/v2#update-the-runtime"
207
207
  });
208
- /** @deprecated "GoogleGenerativeAIAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
208
+ /** @deprecated "GoogleGenerativeAIAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
209
209
  const GoogleGenerativeAIAdapter = /* @__PURE__ */ removedApi({
210
210
  name: "GoogleGenerativeAIAdapter",
211
211
  use: "CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.",
212
212
  docs: "/migrate/v2#update-the-runtime"
213
213
  });
214
- /** @deprecated "GroqAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
214
+ /** @deprecated "GroqAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
215
215
  const GroqAdapter = /* @__PURE__ */ removedApi({
216
216
  name: "GroqAdapter",
217
217
  use: "CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.",
218
218
  docs: "/migrate/v2#update-the-runtime"
219
219
  });
220
- /** @deprecated "GuardrailsValidationFailureResponse" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
220
+ /** @deprecated "GuardrailsValidationFailureResponse" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
221
221
  const GuardrailsValidationFailureResponse = /* @__PURE__ */ removedApi({
222
222
  name: "GuardrailsValidationFailureResponse",
223
223
  use: "CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event.",
224
224
  docs: "/migrate/v2#update-the-runtime"
225
225
  });
226
- /** @deprecated "isA2UIEnabled" was removed in CopilotKit 2.0. The runtime a2ui option is now generativeUI: { a2uiVersion: "0.9" }. Read generativeUI on your runtime options. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/generative-ui-2.0#a2ui-v09-renderer */
226
+ /** @deprecated "isA2UIEnabled" was removed in CopilotKit 2.0. The runtime a2ui option is now generativeUI: { a2uiVersion: "0.9" }. Read generativeUI on your runtime options. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/generative-ui-2.0#a2ui-v09-renderer */
227
227
  const isA2UIEnabled = /* @__PURE__ */ removedApi({
228
228
  name: "isA2UIEnabled",
229
229
  use: "The runtime a2ui option is now generativeUI: { a2uiVersion: \"0.9\" }. Read generativeUI on your runtime options.",
230
230
  docs: "/migrate/generative-ui-2.0#a2ui-v09-renderer"
231
231
  });
232
- /** @deprecated "LangChainAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
232
+ /** @deprecated "LangChainAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
233
233
  const LangChainAdapter = /* @__PURE__ */ removedApi({
234
234
  name: "LangChainAdapter",
235
235
  use: "CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.",
236
236
  docs: "/migrate/v2#update-the-runtime"
237
237
  });
238
- /** @deprecated "LangGraphAgent" was removed in CopilotKit 2.0. Import LangGraphAgent from @ag-ui/langgraph. The constructor options are the same. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-agents */
238
+ /** @deprecated "LangGraphAgent" was removed in CopilotKit 2.0. Import LangGraphAgent from @ag-ui/langgraph. The constructor options are the same. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-agents */
239
239
  const LangGraphAgent = /* @__PURE__ */ removedApi({
240
240
  name: "LangGraphAgent",
241
241
  use: "Import LangGraphAgent from @ag-ui/langgraph. The constructor options are the same.",
242
242
  docs: "/migrate/agents-2.0#langgraph-agents"
243
243
  });
244
- /** @deprecated "LangGraphHttpAgent" was removed in CopilotKit 2.0. Import LangGraphHttpAgent from @ag-ui/langgraph. The constructor options are the same. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-agents */
244
+ /** @deprecated "LangGraphHttpAgent" was removed in CopilotKit 2.0. Import LangGraphHttpAgent from @ag-ui/langgraph. The constructor options are the same. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-agents */
245
245
  const LangGraphHttpAgent = /* @__PURE__ */ removedApi({
246
246
  name: "LangGraphHttpAgent",
247
247
  use: "Import LangGraphHttpAgent from @ag-ui/langgraph. The constructor options are the same.",
248
248
  docs: "/migrate/agents-2.0#langgraph-agents"
249
249
  });
250
- /** @deprecated "langGraphPlatformEndpoint" was removed in CopilotKit 2.0. CopilotKitRuntime has no remoteEndpoints. Create a LangGraphAgent from @ag-ui/langgraph for each agent, and pass it in agents. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-platform */
250
+ /** @deprecated "langGraphPlatformEndpoint" was removed in CopilotKit 2.0. CopilotKitRuntime has no remoteEndpoints. Create a LangGraphAgent from @ag-ui/langgraph for each agent, and pass it in agents. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-platform */
251
251
  const langGraphPlatformEndpoint = /* @__PURE__ */ removedApi({
252
252
  name: "langGraphPlatformEndpoint",
253
253
  use: "CopilotKitRuntime has no remoteEndpoints. Create a LangGraphAgent from @ag-ui/langgraph for each agent, and pass it in agents.",
254
254
  docs: "/migrate/agents-2.0#langgraph-platform"
255
255
  });
256
- /** @deprecated "MessageStreamInterruptedResponse" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
256
+ /** @deprecated "MessageStreamInterruptedResponse" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
257
257
  const MessageStreamInterruptedResponse = /* @__PURE__ */ removedApi({
258
258
  name: "MessageStreamInterruptedResponse",
259
259
  use: "CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event.",
260
260
  docs: "/migrate/v2#update-the-runtime"
261
261
  });
262
- /** @deprecated "OpenAIAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
262
+ /** @deprecated "OpenAIAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
263
263
  const OpenAIAdapter = /* @__PURE__ */ removedApi({
264
264
  name: "OpenAIAdapter",
265
265
  use: "CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.",
266
266
  docs: "/migrate/v2#update-the-runtime"
267
267
  });
268
- /** @deprecated "OpenAIAssistantAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
268
+ /** @deprecated "OpenAIAssistantAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
269
269
  const OpenAIAssistantAdapter = /* @__PURE__ */ removedApi({
270
270
  name: "OpenAIAssistantAdapter",
271
271
  use: "CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.",
272
272
  docs: "/migrate/v2#update-the-runtime"
273
273
  });
274
- /** @deprecated "RemoteChain" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
274
+ /** @deprecated "RemoteChain" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
275
275
  const RemoteChain = /* @__PURE__ */ removedApi({
276
276
  name: "RemoteChain",
277
277
  use: "CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.",
278
278
  docs: "/migrate/v2#update-the-runtime"
279
279
  });
280
- /** @deprecated "resolveEndpointType" was removed in CopilotKit 2.0. CopilotKitRuntime has no remoteEndpoints. Register each agent in agents on CopilotKitRuntime from @copilotkit/runtime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-platform */
280
+ /** @deprecated "resolveEndpointType" was removed in CopilotKit 2.0. CopilotKitRuntime has no remoteEndpoints. Register each agent in agents on CopilotKitRuntime from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/agents-2.0#langgraph-platform */
281
281
  const resolveEndpointType = /* @__PURE__ */ removedApi({
282
282
  name: "resolveEndpointType",
283
283
  use: "CopilotKitRuntime has no remoteEndpoints. Register each agent in agents on CopilotKitRuntime from @copilotkit/runtime.",
284
284
  docs: "/migrate/agents-2.0#langgraph-platform"
285
285
  });
286
- /** @deprecated "resolveModel" was removed in CopilotKit 2.0. Pass an adapter as model, for example anthropicText("claude-sonnet-4-6"). To switch models from the frontend, set the resolveModel option of the BuiltInAgent. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#if-you-used-resolvemodel-or-classifymodelspec */
286
+ /** @deprecated "resolveModel" was removed in CopilotKit 2.0. Pass an adapter as model, for example anthropicText("claude-sonnet-4-6"). To switch models from the frontend, set the resolveModel option of the BuiltInAgent. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#if-you-used-resolvemodel-or-classifymodelspec */
287
287
  const resolveModel = /* @__PURE__ */ removedApi({
288
288
  name: "resolveModel",
289
289
  use: "Pass an adapter as model, for example anthropicText(\"claude-sonnet-4-6\"). To switch models from the frontend, set the resolveModel option of the BuiltInAgent.",
290
290
  docs: "/migrate/runtime-2.0#if-you-used-resolvemodel-or-classifymodelspec"
291
291
  });
292
- /** @deprecated "TelemetryAgentRunner" was removed in CopilotKit 2.0. Delete the wrapper, and pass your runner as runner on CopilotKitRuntime. The runtime reports telemetry by itself. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/shared-2.0#telemetry-entry-point-removed */
292
+ /** @deprecated "TelemetryAgentRunner" was removed in CopilotKit 2.0. Delete the wrapper, and pass your runner as runner on CopilotKitRuntime. The runtime reports telemetry by itself. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/shared-2.0#telemetry-entry-point-removed */
293
293
  const TelemetryAgentRunner = /* @__PURE__ */ removedApi({
294
294
  name: "TelemetryAgentRunner",
295
295
  use: "Delete the wrapper, and pass your runner as runner on CopilotKitRuntime. The runtime reports telemetry by itself.",
296
296
  docs: "/migrate/shared-2.0#telemetry-entry-point-removed"
297
297
  });
298
- /** @deprecated "toFetchCorsConfig" was removed in CopilotKit 2.0. Pass a CopilotKitCorsConfig as the cors option of createCopilotKitRuntimeHandler from @copilotkit/runtime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#cors-and-lifecycle */
298
+ /** @deprecated "toFetchCorsConfig" was removed in CopilotKit 2.0. Pass a CopilotKitCorsConfig as the cors option of createCopilotKitRuntimeHandler from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/runtime-2.0#cors-and-lifecycle */
299
299
  const toFetchCorsConfig = /* @__PURE__ */ removedApi({
300
300
  name: "toFetchCorsConfig",
301
301
  use: "Pass a CopilotKitCorsConfig as the cors option of createCopilotKitRuntimeHandler from @copilotkit/runtime.",
302
302
  docs: "/migrate/runtime-2.0#cors-and-lifecycle"
303
303
  });
304
- /** @deprecated "UnifyAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
304
+ /** @deprecated "UnifyAdapter" was removed in CopilotKit 2.0. CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText("gpt-5") }), and pass it in agents on CopilotKitRuntime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
305
305
  const UnifyAdapter = /* @__PURE__ */ removedApi({
306
306
  name: "UnifyAdapter",
307
307
  use: "CopilotKit 2.0 has no service adapters. Run the model in a BuiltInAgent from @copilotkit/runtime/agent with a TanStack AI adapter, for example new BuiltInAgent({ model: openaiText(\"gpt-5\") }), and pass it in agents on CopilotKitRuntime.",
308
308
  docs: "/migrate/v2#update-the-runtime"
309
309
  });
310
- /** @deprecated "UnknownErrorResponse" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
310
+ /** @deprecated "UnknownErrorResponse" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
311
311
  const UnknownErrorResponse = /* @__PURE__ */ removedApi({
312
312
  name: "UnknownErrorResponse",
313
313
  use: "CopilotKit 2.0 has no GraphQL endpoint. A failed run reaches the frontend as an AG-UI RUN_ERROR event.",