@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.umd.js CHANGED
@@ -1386,7 +1386,7 @@ _radix_ui_react_popover = __toESM(_radix_ui_react_popover);
1386
1386
 
1387
1387
  //#endregion
1388
1388
  //#region package.json
1389
- var version$1 = "2.0.0-rc.65";
1389
+ var version$1 = "2.0.0-rc.66";
1390
1390
 
1391
1391
  //#endregion
1392
1392
  //#region src/components/CopilotKitInspector.tsx
@@ -16272,151 +16272,151 @@ _radix_ui_react_popover = __toESM(_radix_ui_react_popover);
16272
16272
 
16273
16273
  //#endregion
16274
16274
  //#region src/removed-exports.ts
16275
- /** @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 */
16275
+ /** @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 */
16276
16276
  const CoAgentStateRendersProvider = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16277
16277
  name: "CoAgentStateRendersProvider",
16278
16278
  use: "Delete it. Render agent.state from useAgent from @copilotkit/react-core in your component.",
16279
16279
  docs: "/migrate/v2#hook-mapping"
16280
16280
  });
16281
- /** @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 */
16281
+ /** @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 */
16282
16282
  const CopilotTask = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16283
16283
  name: "CopilotTask",
16284
16284
  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.",
16285
16285
  docs: "/programmatic-control#sending-a-message-from-code"
16286
16286
  });
16287
- /** @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 */
16287
+ /** @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 */
16288
16288
  const createA2UIMessageRenderer = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16289
16289
  name: "createA2UIMessageRenderer",
16290
16290
  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.",
16291
16291
  docs: "/migrate/generative-ui-2.0#a2ui-v09-renderer"
16292
16292
  });
16293
- /** @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 */
16293
+ /** @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 */
16294
16294
  const shouldShowDevConsole = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16295
16295
  name: "shouldShowDevConsole",
16296
16296
  use: "Delete the call. To turn the Inspector on or off, set enableInspector on CopilotKitProvider.",
16297
16297
  docs: "/migrate/removed-apis-2.0#showdevconsole"
16298
16298
  });
16299
- /** @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 */
16299
+ /** @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 */
16300
16300
  const ThreadsProvider = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16301
16301
  name: "ThreadsProvider",
16302
16302
  use: "Delete it. Pass threadId to CopilotChat (or to CopilotChatConfigurationProvider around the chat), and list the threads with useThreads, from @copilotkit/react-core.",
16303
16303
  docs: "/migrate/chat-2.0#thread-lists"
16304
16304
  });
16305
- /** @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 */
16305
+ /** @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 */
16306
16306
  const useCoAgent = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16307
16307
  name: "useCoAgent",
16308
16308
  use: "Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state.",
16309
16309
  docs: "/migrate/v2#hook-mapping"
16310
16310
  });
16311
- /** @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 */
16311
+ /** @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 */
16312
16312
  const useCoAgentStateRender = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16313
16313
  name: "useCoAgentStateRender",
16314
16314
  use: "Use useAgent from @copilotkit/react-core, and render agent.state in your component.",
16315
16315
  docs: "/migrate/v2#hook-mapping"
16316
16316
  });
16317
- /** @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 */
16317
+ /** @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 */
16318
16318
  const useCoAgentStateRenders = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16319
16319
  name: "useCoAgentStateRenders",
16320
16320
  use: "Use useAgent from @copilotkit/react-core, and render agent.state in your component.",
16321
16321
  docs: "/migrate/v2#hook-mapping"
16322
16322
  });
16323
- /** @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 */
16323
+ /** @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 */
16324
16324
  const useCopilotAction = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16325
16325
  name: "useCopilotAction",
16326
16326
  use: "Use useFrontendTool from @copilotkit/react-core (parameters are now a Zod 4 / Standard Schema), or useHumanInTheLoop when the action waits for the user.",
16327
16327
  docs: "/migrate/v2#hook-mapping"
16328
16328
  });
16329
- /** @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 */
16329
+ /** @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 */
16330
16330
  const useCopilotAdditionalInstructions = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16331
16331
  name: "useCopilotAdditionalInstructions",
16332
16332
  use: "Use useAgentContext from @copilotkit/react-core to give the agent the instructions.",
16333
16333
  docs: "/migrate/v2#hook-mapping"
16334
16334
  });
16335
- /** @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 */
16335
+ /** @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 */
16336
16336
  const useCopilotAuthenticatedAction_c = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16337
16337
  name: "useCopilotAuthenticatedAction_c",
16338
16338
  use: "Use useFrontendTool from @copilotkit/react-core, and check the user in its handler.",
16339
16339
  docs: "/migrate/v2#hook-mapping"
16340
16340
  });
16341
- /** @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 */
16341
+ /** @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 */
16342
16342
  const useCopilotChat = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16343
16343
  name: "useCopilotChat",
16344
16344
  use: "Use useAgent from @copilotkit/react-core. It returns the agent with its messages. For a chat UI of your own, see Headless UI.",
16345
16345
  docs: "/migrate/v2#hook-mapping"
16346
16346
  });
16347
- /** @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 */
16347
+ /** @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 */
16348
16348
  const useCopilotChatHeadless_c = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16349
16349
  name: "useCopilotChatHeadless_c",
16350
16350
  use: "Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state.",
16351
16351
  docs: "/migrate/v2#hook-mapping"
16352
16352
  });
16353
- /** @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 */
16353
+ /** @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 */
16354
16354
  const useCopilotChatInternal = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16355
16355
  name: "useCopilotChatInternal",
16356
16356
  use: "Use useAgent from @copilotkit/react-core. It returns the agent, with its messages and its state.",
16357
16357
  docs: "/migrate/v2#hook-mapping"
16358
16358
  });
16359
- /** @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 */
16359
+ /** @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 */
16360
16360
  const useCopilotChatSuggestions = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16361
16361
  name: "useCopilotChatSuggestions",
16362
16362
  use: "Use useConfigureSuggestions from @copilotkit/react-core.",
16363
16363
  docs: "/migrate/v2#hook-mapping"
16364
16364
  });
16365
- /** @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 */
16365
+ /** @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 */
16366
16366
  const useCopilotContext = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16367
16367
  name: "useCopilotContext",
16368
16368
  use: "Use useCopilotKit from @copilotkit/react-core. It returns the CopilotKit core.",
16369
16369
  docs: "/programmatic-control#sending-a-message-from-code"
16370
16370
  });
16371
- /** @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 */
16371
+ /** @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 */
16372
16372
  const useCopilotMessagesContext = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16373
16373
  name: "useCopilotMessagesContext",
16374
16374
  use: "Read agent.messages from useAgent from @copilotkit/react-core.",
16375
16375
  docs: "/migrate/v2#hook-mapping"
16376
16376
  });
16377
- /** @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 */
16377
+ /** @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 */
16378
16378
  const useCopilotReadable = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16379
16379
  name: "useCopilotReadable",
16380
16380
  use: "Use useAgentContext from @copilotkit/react-core.",
16381
16381
  docs: "/migrate/v2#hook-mapping"
16382
16382
  });
16383
- /** @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 */
16383
+ /** @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 */
16384
16384
  const useCopilotRuntimeClient = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16385
16385
  name: "useCopilotRuntimeClient",
16386
16386
  use: "CopilotKit 2.0 has no GraphQL runtime client. Use useAgent or useCopilotKit from @copilotkit/react-core.",
16387
16387
  docs: "/migrate/v2#update-the-runtime"
16388
16388
  });
16389
- /** @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 */
16389
+ /** @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 */
16390
16390
  const useDefaultTool = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16391
16391
  name: "useDefaultTool",
16392
16392
  use: "Use useDefaultRenderTool from @copilotkit/react-core.",
16393
16393
  docs: "/migrate/v2#hook-mapping"
16394
16394
  });
16395
- /** @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 */
16395
+ /** @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 */
16396
16396
  const useLangGraphInterrupt = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16397
16397
  name: "useLangGraphInterrupt",
16398
16398
  use: "Use useInterrupt from @copilotkit/react-core.",
16399
16399
  docs: "/migrate/v2#hook-mapping"
16400
16400
  });
16401
- /** @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 */
16401
+ /** @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 */
16402
16402
  const useLazyToolRenderer = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16403
16403
  name: "useLazyToolRenderer",
16404
16404
  use: "Use useRenderToolCall from @copilotkit/react-core. It returns a function that renders a tool call.",
16405
16405
  docs: "/migrate/v2#gotchas"
16406
16406
  });
16407
- /** @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 */
16407
+ /** @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 */
16408
16408
  const useLearningContainers = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16409
16409
  name: "useLearningContainers",
16410
16410
  use: "Set getLearningContainerId on CopilotKitIntelligence from @copilotkit/runtime.",
16411
16411
  docs: "/migrate/chat-2.0#removed-exports"
16412
16412
  });
16413
- /** @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 */
16413
+ /** @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 */
16414
16414
  const useLearningContainersInCurrentThread = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16415
16415
  name: "useLearningContainersInCurrentThread",
16416
16416
  use: "Set getLearningContainerId on CopilotKitIntelligence from @copilotkit/runtime.",
16417
16417
  docs: "/migrate/chat-2.0#removed-exports"
16418
16418
  });
16419
- /** @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 */
16419
+ /** @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 */
16420
16420
  const useMakeCopilotDocumentReadable = /* @__PURE__ */ (0, _copilotkit_shared.removedApi)({
16421
16421
  name: "useMakeCopilotDocumentReadable",
16422
16422
  use: "Use useAgentContext from @copilotkit/react-core, with the document text as the value.",