@copilotkit/react-core 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.
package/dist/index.mjs CHANGED
@@ -810,7 +810,7 @@ function ɵuseOwnedCore(ref, create) {
810
810
 
811
811
  //#endregion
812
812
  //#region package.json
813
- var version$1 = "2.0.0-rc.65";
813
+ var version$1 = "2.0.0-rc.66";
814
814
 
815
815
  //#endregion
816
816
  //#region src/components/CopilotKitInspector.tsx
@@ -8171,151 +8171,151 @@ const WildcardToolCallRender = defineToolCallRenderer({
8171
8171
 
8172
8172
  //#endregion
8173
8173
  //#region src/removed-exports.ts
8174
- /** @deprecated "CoAgentStateRendersProvider" was removed in CopilotKit 2.0. Delete it. Render agent.state from useAgent from @copilotkit/react-core in your component. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8174
+ /** @deprecated "CoAgentStateRendersProvider" was removed in CopilotKit 2.0. Delete it. Render agent.state from useAgent from @copilotkit/react-core in your component. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8175
8175
  const CoAgentStateRendersProvider = /* @__PURE__ */ removedApi({
8176
8176
  name: "CoAgentStateRendersProvider",
8177
8177
  use: "Delete it. Render agent.state from useAgent from @copilotkit/react-core in your component.",
8178
8178
  docs: "/migrate/v2#hook-mapping"
8179
8179
  });
8180
- /** @deprecated "CopilotTask" was removed in CopilotKit 2.0. Run the agent from code: add a message with agent.addMessage from useAgent, then call copilotkit.runAgent({ agent }) from useCopilotKit, both from @copilotkit/react-core. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/programmatic-control#sending-a-message-from-code */
8180
+ /** @deprecated "CopilotTask" was removed in CopilotKit 2.0. Run the agent from code: add a message with agent.addMessage from useAgent, then call copilotkit.runAgent({ agent }) from useCopilotKit, both from @copilotkit/react-core. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/programmatic-control#sending-a-message-from-code */
8181
8181
  const CopilotTask = /* @__PURE__ */ removedApi({
8182
8182
  name: "CopilotTask",
8183
8183
  use: "Run the agent from code: add a message with agent.addMessage from useAgent, then call copilotkit.runAgent({ agent }) from useCopilotKit, both from @copilotkit/react-core.",
8184
8184
  docs: "/programmatic-control#sending-a-message-from-code"
8185
8185
  });
8186
- /** @deprecated "createA2UIMessageRenderer" was removed in CopilotKit 2.0. The A2UI v0.9 renderer was removed, and CopilotKitProvider renders A2UI with generative UI. Pass generativeUI={{ ui }} with a UI from createGenerativeUI in @copilotkit/react-core/generative-ui. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/generative-ui-2.0#a2ui-v09-renderer */
8186
+ /** @deprecated "createA2UIMessageRenderer" was removed in CopilotKit 2.0. The A2UI v0.9 renderer was removed, and CopilotKitProvider renders A2UI with generative UI. Pass generativeUI={{ ui }} with a UI from createGenerativeUI in @copilotkit/react-core/generative-ui. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/generative-ui-2.0#a2ui-v09-renderer */
8187
8187
  const createA2UIMessageRenderer = /* @__PURE__ */ removedApi({
8188
8188
  name: "createA2UIMessageRenderer",
8189
8189
  use: "The A2UI v0.9 renderer was removed, and CopilotKitProvider renders A2UI with generative UI. Pass generativeUI={{ ui }} with a UI from createGenerativeUI in @copilotkit/react-core/generative-ui.",
8190
8190
  docs: "/migrate/generative-ui-2.0#a2ui-v09-renderer"
8191
8191
  });
8192
- /** @deprecated "shouldShowDevConsole" was removed in CopilotKit 2.0. Delete the call. To turn the Inspector on or off, set enableInspector on CopilotKitProvider. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/removed-apis-2.0#showdevconsole */
8192
+ /** @deprecated "shouldShowDevConsole" was removed in CopilotKit 2.0. Delete the call. To turn the Inspector on or off, set enableInspector on CopilotKitProvider. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/removed-apis-2.0#showdevconsole */
8193
8193
  const shouldShowDevConsole = /* @__PURE__ */ removedApi({
8194
8194
  name: "shouldShowDevConsole",
8195
8195
  use: "Delete the call. To turn the Inspector on or off, set enableInspector on CopilotKitProvider.",
8196
8196
  docs: "/migrate/removed-apis-2.0#showdevconsole"
8197
8197
  });
8198
- /** @deprecated "ThreadsProvider" was removed in CopilotKit 2.0. Delete it. Pass threadId to CopilotChat (or to CopilotChatConfigurationProvider around the chat), and list the threads with useThreads, from @copilotkit/react-core. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/chat-2.0#thread-lists */
8198
+ /** @deprecated "ThreadsProvider" was removed in CopilotKit 2.0. Delete it. Pass threadId to CopilotChat (or to CopilotChatConfigurationProvider around the chat), and list the threads with useThreads, from @copilotkit/react-core. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/chat-2.0#thread-lists */
8199
8199
  const ThreadsProvider = /* @__PURE__ */ removedApi({
8200
8200
  name: "ThreadsProvider",
8201
8201
  use: "Delete it. Pass threadId to CopilotChat (or to CopilotChatConfigurationProvider around the chat), and list the threads with useThreads, from @copilotkit/react-core.",
8202
8202
  docs: "/migrate/chat-2.0#thread-lists"
8203
8203
  });
8204
- /** @deprecated "useCoAgent" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8204
+ /** @deprecated "useCoAgent" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8205
8205
  const useCoAgent = /* @__PURE__ */ removedApi({
8206
8206
  name: "useCoAgent",
8207
8207
  use: "Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state.",
8208
8208
  docs: "/migrate/v2#hook-mapping"
8209
8209
  });
8210
- /** @deprecated "useCoAgentStateRender" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core, and render agent.state in your component. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8210
+ /** @deprecated "useCoAgentStateRender" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core, and render agent.state in your component. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8211
8211
  const useCoAgentStateRender = /* @__PURE__ */ removedApi({
8212
8212
  name: "useCoAgentStateRender",
8213
8213
  use: "Use useAgent from @copilotkit/react-core, and render agent.state in your component.",
8214
8214
  docs: "/migrate/v2#hook-mapping"
8215
8215
  });
8216
- /** @deprecated "useCoAgentStateRenders" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core, and render agent.state in your component. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8216
+ /** @deprecated "useCoAgentStateRenders" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core, and render agent.state in your component. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8217
8217
  const useCoAgentStateRenders = /* @__PURE__ */ removedApi({
8218
8218
  name: "useCoAgentStateRenders",
8219
8219
  use: "Use useAgent from @copilotkit/react-core, and render agent.state in your component.",
8220
8220
  docs: "/migrate/v2#hook-mapping"
8221
8221
  });
8222
- /** @deprecated "useCopilotAction" was removed in CopilotKit 2.0. Use useFrontendTool from @copilotkit/react-core (parameters are now a Zod 4 / Standard Schema), or useHumanInTheLoop when the action waits for the user. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8222
+ /** @deprecated "useCopilotAction" was removed in CopilotKit 2.0. Use useFrontendTool from @copilotkit/react-core (parameters are now a Zod 4 / Standard Schema), or useHumanInTheLoop when the action waits for the user. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8223
8223
  const useCopilotAction = /* @__PURE__ */ removedApi({
8224
8224
  name: "useCopilotAction",
8225
8225
  use: "Use useFrontendTool from @copilotkit/react-core (parameters are now a Zod 4 / Standard Schema), or useHumanInTheLoop when the action waits for the user.",
8226
8226
  docs: "/migrate/v2#hook-mapping"
8227
8227
  });
8228
- /** @deprecated "useCopilotAdditionalInstructions" was removed in CopilotKit 2.0. Use useAgentContext from @copilotkit/react-core to give the agent the instructions. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8228
+ /** @deprecated "useCopilotAdditionalInstructions" was removed in CopilotKit 2.0. Use useAgentContext from @copilotkit/react-core to give the agent the instructions. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8229
8229
  const useCopilotAdditionalInstructions = /* @__PURE__ */ removedApi({
8230
8230
  name: "useCopilotAdditionalInstructions",
8231
8231
  use: "Use useAgentContext from @copilotkit/react-core to give the agent the instructions.",
8232
8232
  docs: "/migrate/v2#hook-mapping"
8233
8233
  });
8234
- /** @deprecated "useCopilotAuthenticatedAction_c" was removed in CopilotKit 2.0. Use useFrontendTool from @copilotkit/react-core, and check the user in its handler. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8234
+ /** @deprecated "useCopilotAuthenticatedAction_c" was removed in CopilotKit 2.0. Use useFrontendTool from @copilotkit/react-core, and check the user in its handler. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8235
8235
  const useCopilotAuthenticatedAction_c = /* @__PURE__ */ removedApi({
8236
8236
  name: "useCopilotAuthenticatedAction_c",
8237
8237
  use: "Use useFrontendTool from @copilotkit/react-core, and check the user in its handler.",
8238
8238
  docs: "/migrate/v2#hook-mapping"
8239
8239
  });
8240
- /** @deprecated "useCopilotChat" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core. It returns the agent with its messages. For a chat UI of your own, see Headless UI. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8240
+ /** @deprecated "useCopilotChat" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core. It returns the agent with its messages. For a chat UI of your own, see Headless UI. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8241
8241
  const useCopilotChat = /* @__PURE__ */ removedApi({
8242
8242
  name: "useCopilotChat",
8243
8243
  use: "Use useAgent from @copilotkit/react-core. It returns the agent with its messages. For a chat UI of your own, see Headless UI.",
8244
8244
  docs: "/migrate/v2#hook-mapping"
8245
8245
  });
8246
- /** @deprecated "useCopilotChatHeadless_c" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8246
+ /** @deprecated "useCopilotChatHeadless_c" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8247
8247
  const useCopilotChatHeadless_c = /* @__PURE__ */ removedApi({
8248
8248
  name: "useCopilotChatHeadless_c",
8249
8249
  use: "Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state.",
8250
8250
  docs: "/migrate/v2#hook-mapping"
8251
8251
  });
8252
- /** @deprecated "useCopilotChatInternal" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8252
+ /** @deprecated "useCopilotChatInternal" was removed in CopilotKit 2.0. Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8253
8253
  const useCopilotChatInternal = /* @__PURE__ */ removedApi({
8254
8254
  name: "useCopilotChatInternal",
8255
8255
  use: "Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state.",
8256
8256
  docs: "/migrate/v2#hook-mapping"
8257
8257
  });
8258
- /** @deprecated "useCopilotChatSuggestions" was removed in CopilotKit 2.0. Use useConfigureSuggestions from @copilotkit/react-core. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8258
+ /** @deprecated "useCopilotChatSuggestions" was removed in CopilotKit 2.0. Use useConfigureSuggestions from @copilotkit/react-core. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8259
8259
  const useCopilotChatSuggestions = /* @__PURE__ */ removedApi({
8260
8260
  name: "useCopilotChatSuggestions",
8261
8261
  use: "Use useConfigureSuggestions from @copilotkit/react-core.",
8262
8262
  docs: "/migrate/v2#hook-mapping"
8263
8263
  });
8264
- /** @deprecated "useCopilotContext" was removed in CopilotKit 2.0. Use useCopilotKit from @copilotkit/react-core. It returns the CopilotKit core. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/programmatic-control#sending-a-message-from-code */
8264
+ /** @deprecated "useCopilotContext" was removed in CopilotKit 2.0. Use useCopilotKit from @copilotkit/react-core. It returns the CopilotKit core. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/programmatic-control#sending-a-message-from-code */
8265
8265
  const useCopilotContext = /* @__PURE__ */ removedApi({
8266
8266
  name: "useCopilotContext",
8267
8267
  use: "Use useCopilotKit from @copilotkit/react-core. It returns the CopilotKit core.",
8268
8268
  docs: "/programmatic-control#sending-a-message-from-code"
8269
8269
  });
8270
- /** @deprecated "useCopilotMessagesContext" was removed in CopilotKit 2.0. Read agent.messages from useAgent from @copilotkit/react-core. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8270
+ /** @deprecated "useCopilotMessagesContext" was removed in CopilotKit 2.0. Read agent.messages from useAgent from @copilotkit/react-core. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8271
8271
  const useCopilotMessagesContext = /* @__PURE__ */ removedApi({
8272
8272
  name: "useCopilotMessagesContext",
8273
8273
  use: "Read agent.messages from useAgent from @copilotkit/react-core.",
8274
8274
  docs: "/migrate/v2#hook-mapping"
8275
8275
  });
8276
- /** @deprecated "useCopilotReadable" was removed in CopilotKit 2.0. Use useAgentContext from @copilotkit/react-core. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8276
+ /** @deprecated "useCopilotReadable" was removed in CopilotKit 2.0. Use useAgentContext from @copilotkit/react-core. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8277
8277
  const useCopilotReadable = /* @__PURE__ */ removedApi({
8278
8278
  name: "useCopilotReadable",
8279
8279
  use: "Use useAgentContext from @copilotkit/react-core.",
8280
8280
  docs: "/migrate/v2#hook-mapping"
8281
8281
  });
8282
- /** @deprecated "useCopilotRuntimeClient" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL runtime client. Use useAgent or useCopilotKit from @copilotkit/react-core. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
8282
+ /** @deprecated "useCopilotRuntimeClient" was removed in CopilotKit 2.0. CopilotKit 2.0 has no GraphQL runtime client. Use useAgent or useCopilotKit from @copilotkit/react-core. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#update-the-runtime */
8283
8283
  const useCopilotRuntimeClient = /* @__PURE__ */ removedApi({
8284
8284
  name: "useCopilotRuntimeClient",
8285
8285
  use: "CopilotKit 2.0 has no GraphQL runtime client. Use useAgent or useCopilotKit from @copilotkit/react-core.",
8286
8286
  docs: "/migrate/v2#update-the-runtime"
8287
8287
  });
8288
- /** @deprecated "useDefaultTool" was removed in CopilotKit 2.0. Use useDefaultRenderTool from @copilotkit/react-core. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8288
+ /** @deprecated "useDefaultTool" was removed in CopilotKit 2.0. Use useDefaultRenderTool from @copilotkit/react-core. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8289
8289
  const useDefaultTool = /* @__PURE__ */ removedApi({
8290
8290
  name: "useDefaultTool",
8291
8291
  use: "Use useDefaultRenderTool from @copilotkit/react-core.",
8292
8292
  docs: "/migrate/v2#hook-mapping"
8293
8293
  });
8294
- /** @deprecated "useLangGraphInterrupt" was removed in CopilotKit 2.0. Use useInterrupt from @copilotkit/react-core. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8294
+ /** @deprecated "useLangGraphInterrupt" was removed in CopilotKit 2.0. Use useInterrupt from @copilotkit/react-core. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8295
8295
  const useLangGraphInterrupt = /* @__PURE__ */ removedApi({
8296
8296
  name: "useLangGraphInterrupt",
8297
8297
  use: "Use useInterrupt from @copilotkit/react-core.",
8298
8298
  docs: "/migrate/v2#hook-mapping"
8299
8299
  });
8300
- /** @deprecated "useLazyToolRenderer" was removed in CopilotKit 2.0. Use useRenderToolCall from @copilotkit/react-core. It returns a function that renders a tool call. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#gotchas */
8300
+ /** @deprecated "useLazyToolRenderer" was removed in CopilotKit 2.0. Use useRenderToolCall from @copilotkit/react-core. It returns a function that renders a tool call. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#gotchas */
8301
8301
  const useLazyToolRenderer = /* @__PURE__ */ removedApi({
8302
8302
  name: "useLazyToolRenderer",
8303
8303
  use: "Use useRenderToolCall from @copilotkit/react-core. It returns a function that renders a tool call.",
8304
8304
  docs: "/migrate/v2#gotchas"
8305
8305
  });
8306
- /** @deprecated "useLearningContainers" was removed in CopilotKit 2.0. Set getLearningContainerId on CopilotKitIntelligence from @copilotkit/runtime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/chat-2.0#removed-exports */
8306
+ /** @deprecated "useLearningContainers" was removed in CopilotKit 2.0. Set getLearningContainerId on CopilotKitIntelligence from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/chat-2.0#removed-exports */
8307
8307
  const useLearningContainers = /* @__PURE__ */ removedApi({
8308
8308
  name: "useLearningContainers",
8309
8309
  use: "Set getLearningContainerId on CopilotKitIntelligence from @copilotkit/runtime.",
8310
8310
  docs: "/migrate/chat-2.0#removed-exports"
8311
8311
  });
8312
- /** @deprecated "useLearningContainersInCurrentThread" was removed in CopilotKit 2.0. Set getLearningContainerId on CopilotKitIntelligence from @copilotkit/runtime. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/chat-2.0#removed-exports */
8312
+ /** @deprecated "useLearningContainersInCurrentThread" was removed in CopilotKit 2.0. Set getLearningContainerId on CopilotKitIntelligence from @copilotkit/runtime. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/chat-2.0#removed-exports */
8313
8313
  const useLearningContainersInCurrentThread = /* @__PURE__ */ removedApi({
8314
8314
  name: "useLearningContainersInCurrentThread",
8315
8315
  use: "Set getLearningContainerId on CopilotKitIntelligence from @copilotkit/runtime.",
8316
8316
  docs: "/migrate/chat-2.0#removed-exports"
8317
8317
  });
8318
- /** @deprecated "useMakeCopilotDocumentReadable" was removed in CopilotKit 2.0. Use useAgentContext from @copilotkit/react-core, with the document text as the value. Run `npx codemod @copilotkit/v2-migration` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8318
+ /** @deprecated "useMakeCopilotDocumentReadable" was removed in CopilotKit 2.0. Use useAgentContext from @copilotkit/react-core, with the document text as the value. Run `npx copilotkit@latest migrate` to update your code. See https://docs.copilotkit.ai/migrate/v2#hook-mapping */
8319
8319
  const useMakeCopilotDocumentReadable = /* @__PURE__ */ removedApi({
8320
8320
  name: "useMakeCopilotDocumentReadable",
8321
8321
  use: "Use useAgentContext from @copilotkit/react-core, with the document text as the value.",