@copilotkit/react-core 1.85.0 → 1.86.0

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.
Files changed (70) hide show
  1. package/dist/MarkdownSurfaces-BCVdnDAk.cjs +161 -0
  2. package/dist/MarkdownSurfaces-BCVdnDAk.cjs.map +1 -0
  3. package/dist/MarkdownSurfaces-CjJduaJR.mjs +149 -0
  4. package/dist/MarkdownSurfaces-CjJduaJR.mjs.map +1 -0
  5. package/dist/{MarkdownSurfaces-3cGU5_0H.cjs → chat-BnsrQ0VS.cjs} +667 -320
  6. package/dist/chat-BnsrQ0VS.cjs.map +1 -0
  7. package/dist/{MarkdownSurfaces-D-W4f9Dy.mjs → chat-IWySXWXP.mjs} +647 -312
  8. package/dist/chat-IWySXWXP.mjs.map +1 -0
  9. package/dist/{copilotkit-D6mTCuNU.mjs → copilotkit-B1OLgEU8.mjs} +6 -354
  10. package/dist/copilotkit-B1OLgEU8.mjs.map +1 -0
  11. package/dist/{copilotkit-Dn4PbHJV.d.mts → copilotkit-C7G95NO-.d.mts} +4 -4
  12. package/dist/{copilotkit-Dn4PbHJV.d.mts.map → copilotkit-C7G95NO-.d.mts.map} +1 -1
  13. package/dist/{copilotkit-BpKHgURs.cjs → copilotkit-Ca0IcTZU.cjs} +79 -427
  14. package/dist/copilotkit-Ca0IcTZU.cjs.map +1 -0
  15. package/dist/{copilotkit-CuTAoQF2.d.cts → copilotkit-DwD7D6jJ.d.cts} +2 -2
  16. package/dist/{copilotkit-CuTAoQF2.d.cts.map → copilotkit-DwD7D6jJ.d.cts.map} +1 -1
  17. package/dist/hooks-DMSkcNOl.d.cts +89 -0
  18. package/dist/hooks-DMSkcNOl.d.cts.map +1 -0
  19. package/dist/hooks-EwGvqYsW.d.mts +89 -0
  20. package/dist/hooks-EwGvqYsW.d.mts.map +1 -0
  21. package/dist/index.cjs +8 -8
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +2 -2
  24. package/dist/index.d.mts +2 -2
  25. package/dist/index.mjs +2 -2
  26. package/dist/index.umd.js +645 -140
  27. package/dist/index.umd.js.map +1 -1
  28. package/dist/refs-DL7ITFFD.cjs +43 -0
  29. package/dist/refs-DL7ITFFD.cjs.map +1 -0
  30. package/dist/refs-DiZXJ63p.mjs +31 -0
  31. package/dist/refs-DiZXJ63p.mjs.map +1 -0
  32. package/dist/{runtime-context-Er5UIbZA.d.mts → runtime-context-B4fKyzo6.d.mts} +31 -9
  33. package/dist/runtime-context-B4fKyzo6.d.mts.map +1 -0
  34. package/dist/{runtime-context-DrVNUYLi.d.cts → runtime-context-Da7T5vy4.d.cts} +31 -9
  35. package/dist/runtime-context-Da7T5vy4.d.cts.map +1 -0
  36. package/dist/use-generative-ui-root-CaTyBFNR.cjs +390 -0
  37. package/dist/use-generative-ui-root-CaTyBFNR.cjs.map +1 -0
  38. package/dist/use-generative-ui-root-WI9ERMpo.mjs +385 -0
  39. package/dist/use-generative-ui-root-WI9ERMpo.mjs.map +1 -0
  40. package/dist/v2/generative-ui/native.cjs +66 -0
  41. package/dist/v2/generative-ui/native.cjs.map +1 -0
  42. package/dist/v2/generative-ui/native.d.cts +155 -0
  43. package/dist/v2/generative-ui/native.d.cts.map +1 -0
  44. package/dist/v2/generative-ui/native.d.mts +155 -0
  45. package/dist/v2/generative-ui/native.d.mts.map +1 -0
  46. package/dist/v2/generative-ui/native.mjs +24 -0
  47. package/dist/v2/generative-ui/native.mjs.map +1 -0
  48. package/dist/v2/generative-ui.cjs +45 -70
  49. package/dist/v2/generative-ui.cjs.map +1 -1
  50. package/dist/v2/generative-ui.d.cts +229 -308
  51. package/dist/v2/generative-ui.d.cts.map +1 -1
  52. package/dist/v2/generative-ui.d.mts +229 -308
  53. package/dist/v2/generative-ui.d.mts.map +1 -1
  54. package/dist/v2/generative-ui.mjs +4 -29
  55. package/dist/v2/generative-ui.mjs.map +1 -1
  56. package/dist/v2/headless.d.cts +185 -294
  57. package/dist/v2/headless.d.cts.map +1 -1
  58. package/dist/v2/index.cjs +5 -5
  59. package/dist/v2/index.d.cts +2 -2
  60. package/dist/v2/index.d.mts +2 -2
  61. package/dist/v2/index.mjs +2 -2
  62. package/dist/v2/index.umd.js +645 -140
  63. package/dist/v2/index.umd.js.map +1 -1
  64. package/package.json +14 -10
  65. package/dist/MarkdownSurfaces-3cGU5_0H.cjs.map +0 -1
  66. package/dist/MarkdownSurfaces-D-W4f9Dy.mjs.map +0 -1
  67. package/dist/copilotkit-BpKHgURs.cjs.map +0 -1
  68. package/dist/copilotkit-D6mTCuNU.mjs.map +0 -1
  69. package/dist/runtime-context-DrVNUYLi.d.cts.map +0 -1
  70. package/dist/runtime-context-Er5UIbZA.d.mts.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { $f as QueuedInterruptEvent, Gf as useCopilotContext, Hf as CopilotApiConfig, Jf as LangGraphInterruptActionSetter, Kf as CoAgentStateRender, Qf as LangGraphInterruptRenderProps, Uf as CopilotContext, Vf as CoagentInChatRenderFunction, Wf as CopilotContextParams, X as useAgent, Xf as LangGraphInterruptRender, Yf as LangGraphInterruptActionSetterArgs, Zf as LangGraphInterruptRenderHandlerProps, _p as CatchAllFrontendAction, ap as CrewsToolStateItem, bp as RenderFunctionStatus, cp as DocumentPointer, dp as ActionRenderProps, ep as CrewsAgentState, fp as ActionRenderPropsNoArgs, gp as CatchAllActionRenderPropsWait, hp as CatchAllActionRenderProps, ip as CrewsTaskStateItem, lp as Tree, mp as ActionRenderPropsWait, n as defaultCopilotContextCategories, np as CrewsResponseStatus, op as CopilotChatSuggestionConfiguration, pp as ActionRenderPropsNoArgsWait, qf as LangGraphInterruptAction, r as CopilotKitProps, rp as CrewsStateItem, sp as SystemMessageFunction, t as CopilotKit, tp as CrewsResponse, up as TreeNode, vp as FrontendAction, yp as FrontendActionAvailability, yt as useRenderToolCall$1 } from "./copilotkit-CuTAoQF2.cjs";
2
- import "./runtime-context-DrVNUYLi.cjs";
1
+ import { $f as QueuedInterruptEvent, Gf as useCopilotContext, Hf as CopilotApiConfig, Jf as LangGraphInterruptActionSetter, Kf as CoAgentStateRender, Qf as LangGraphInterruptRenderProps, Uf as CopilotContext, Vf as CoagentInChatRenderFunction, Wf as CopilotContextParams, X as useAgent, Xf as LangGraphInterruptRender, Yf as LangGraphInterruptActionSetterArgs, Zf as LangGraphInterruptRenderHandlerProps, _p as CatchAllFrontendAction, ap as CrewsToolStateItem, bp as RenderFunctionStatus, cp as DocumentPointer, dp as ActionRenderProps, ep as CrewsAgentState, fp as ActionRenderPropsNoArgs, gp as CatchAllActionRenderPropsWait, hp as CatchAllActionRenderProps, ip as CrewsTaskStateItem, lp as Tree, mp as ActionRenderPropsWait, n as defaultCopilotContextCategories, np as CrewsResponseStatus, op as CopilotChatSuggestionConfiguration, pp as ActionRenderPropsNoArgsWait, qf as LangGraphInterruptAction, r as CopilotKitProps, rp as CrewsStateItem, sp as SystemMessageFunction, t as CopilotKit, tp as CrewsResponse, up as TreeNode, vp as FrontendAction, yp as FrontendActionAvailability, yt as useRenderToolCall$1 } from "./copilotkit-DwD7D6jJ.cjs";
2
+ import "./runtime-context-Da7T5vy4.cjs";
3
3
  import "./v2/index.cjs";
4
4
  import * as react_jsx_runtime0 from "react/jsx-runtime";
5
5
  import { CopilotRuntimeClient, CopilotRuntimeClientOptions, ForwardedParametersInput, Message } from "@copilotkit/runtime-client-gql";
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { $f as QueuedInterruptEvent, Gf as useCopilotContext, Hf as CopilotApiConfig, Jf as LangGraphInterruptActionSetter, Kf as CoAgentStateRender, Qf as LangGraphInterruptRenderProps, Uf as CopilotContext, Vf as CoagentInChatRenderFunction, Wf as CopilotContextParams, X as useAgent, Xf as LangGraphInterruptRender, Yf as LangGraphInterruptActionSetterArgs, Zf as LangGraphInterruptRenderHandlerProps, _p as CatchAllFrontendAction, ap as CrewsToolStateItem, bp as RenderFunctionStatus, cp as DocumentPointer, dp as ActionRenderProps, ep as CrewsAgentState, fp as ActionRenderPropsNoArgs, gp as CatchAllActionRenderPropsWait, hp as CatchAllActionRenderProps, ip as CrewsTaskStateItem, lp as Tree, mp as ActionRenderPropsWait, n as defaultCopilotContextCategories, np as CrewsResponseStatus, op as CopilotChatSuggestionConfiguration, pp as ActionRenderPropsNoArgsWait, qf as LangGraphInterruptAction, r as CopilotKitProps, rp as CrewsStateItem, sp as SystemMessageFunction, t as CopilotKit, tp as CrewsResponse, up as TreeNode, vp as FrontendAction, yp as FrontendActionAvailability, yt as useRenderToolCall$1 } from "./copilotkit-Dn4PbHJV.mjs";
2
- import "./runtime-context-Er5UIbZA.mjs";
1
+ import { $f as QueuedInterruptEvent, Gf as useCopilotContext, Hf as CopilotApiConfig, Jf as LangGraphInterruptActionSetter, Kf as CoAgentStateRender, Qf as LangGraphInterruptRenderProps, Uf as CopilotContext, Vf as CoagentInChatRenderFunction, Wf as CopilotContextParams, X as useAgent, Xf as LangGraphInterruptRender, Yf as LangGraphInterruptActionSetterArgs, Zf as LangGraphInterruptRenderHandlerProps, _p as CatchAllFrontendAction, ap as CrewsToolStateItem, bp as RenderFunctionStatus, cp as DocumentPointer, dp as ActionRenderProps, ep as CrewsAgentState, fp as ActionRenderPropsNoArgs, gp as CatchAllActionRenderPropsWait, hp as CatchAllActionRenderProps, ip as CrewsTaskStateItem, lp as Tree, mp as ActionRenderPropsWait, n as defaultCopilotContextCategories, np as CrewsResponseStatus, op as CopilotChatSuggestionConfiguration, pp as ActionRenderPropsNoArgsWait, qf as LangGraphInterruptAction, r as CopilotKitProps, rp as CrewsStateItem, sp as SystemMessageFunction, t as CopilotKit, tp as CrewsResponse, up as TreeNode, vp as FrontendAction, yp as FrontendActionAvailability, yt as useRenderToolCall$1 } from "./copilotkit-C7G95NO-.mjs";
2
+ import "./runtime-context-B4fKyzo6.mjs";
3
3
  import "./v2/index.mjs";
4
4
  import React, { ReactNode, RefObject, SetStateAction } from "react";
5
5
  import { StaticSuggestionsConfig, Suggestion } from "@copilotkit/core";
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
- import { $ as INTERRUPT_EVENT_NAME, Mt as useRenderToolCall$1, Q as useInterrupt, a as ThreadsProvider, at as useAgent, c as CoAgentStateRendersProvider, d as shouldShowDevConsole, et as useConfigureSuggestions, f as useToast, ft as useFrontendTool$1, g as useCopilotContext, gt as useCopilotKit, h as CopilotContext, i as ThreadsContext, l as useCoAgentStateRenders, m as useCopilotMessagesContext, mt as useRenderCustomMessages, n as defaultCopilotContextCategories, o as useThreads, ot as useHumanInTheLoop$1, p as CopilotMessagesContext, r as CoAgentStateRenderBridge, s as CoAgentStateRendersContext, t as CopilotKit, tt as useSuggestions, u as useAsyncCallback } from "./copilotkit-D6mTCuNU.mjs";
4
- import { E as useCopilotChatConfiguration, x as defineToolCallRenderer } from "./MarkdownSurfaces-D-W4f9Dy.mjs";
3
+ import { $ as INTERRUPT_EVENT_NAME, Mt as useRenderToolCall$1, Q as useInterrupt, a as ThreadsProvider, at as useAgent, c as CoAgentStateRendersProvider, d as shouldShowDevConsole, et as useConfigureSuggestions, f as useToast, ft as useFrontendTool$1, g as useCopilotContext, gt as useCopilotKit, h as CopilotContext, i as ThreadsContext, l as useCoAgentStateRenders, m as useCopilotMessagesContext, mt as useRenderCustomMessages, n as defaultCopilotContextCategories, o as useThreads, ot as useHumanInTheLoop$1, p as CopilotMessagesContext, r as CoAgentStateRenderBridge, s as CoAgentStateRendersContext, t as CopilotKit, tt as useSuggestions, u as useAsyncCallback } from "./copilotkit-B1OLgEU8.mjs";
4
+ import { A as useCopilotChatConfiguration, E as defineToolCallRenderer } from "./chat-IWySXWXP.mjs";
5
5
  import React, { Fragment, createElement, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
6
6
  import { CopilotKitCoreRuntimeConnectionStatus, ToolCallStatus, ɵisHttpAgent } from "@copilotkit/core";
7
7
  import { AGUIConnectNotImplementedError } from "@ag-ui/client";