@copilotkit/react-core 1.72.1-canary.sp-longthread-perf → 1.73.1

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 (35) hide show
  1. package/dist/{copilotkit-D5fPO8hJ.d.cts → copilotkit-C7c_w9iV.d.cts} +88 -9
  2. package/dist/copilotkit-C7c_w9iV.d.cts.map +1 -0
  3. package/dist/{copilotkit-BRPxLJnI.d.mts → copilotkit-CfyJ1-Nx.d.mts} +88 -9
  4. package/dist/copilotkit-CfyJ1-Nx.d.mts.map +1 -0
  5. package/dist/{copilotkit-B2TZRWwp.mjs → copilotkit-CwVE-0JG.mjs} +154 -99
  6. package/dist/copilotkit-CwVE-0JG.mjs.map +1 -0
  7. package/dist/{copilotkit-BV7MguMm.cjs → copilotkit-D_c2dJ9t.cjs} +156 -95
  8. package/dist/copilotkit-D_c2dJ9t.cjs.map +1 -0
  9. package/dist/index.cjs +1 -1
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +2 -2
  12. package/dist/index.d.mts +2 -2
  13. package/dist/index.mjs +1 -1
  14. package/dist/index.mjs.map +1 -1
  15. package/dist/index.umd.js +8 -2
  16. package/dist/index.umd.js.map +1 -1
  17. package/dist/v2/headless.cjs +101 -2
  18. package/dist/v2/headless.cjs.map +1 -1
  19. package/dist/v2/headless.d.cts +53 -1
  20. package/dist/v2/headless.d.cts.map +1 -1
  21. package/dist/v2/headless.d.mts +53 -1
  22. package/dist/v2/headless.d.mts.map +1 -1
  23. package/dist/v2/headless.mjs +101 -3
  24. package/dist/v2/headless.mjs.map +1 -1
  25. package/dist/v2/index.cjs +1285 -55
  26. package/dist/v2/index.d.cts +2 -4
  27. package/dist/v2/index.d.mts +2 -4
  28. package/dist/v2/index.mjs +2 -6
  29. package/dist/v2/index.umd.js +1439 -155
  30. package/dist/v2/index.umd.js.map +1 -1
  31. package/package.json +13 -12
  32. package/dist/copilotkit-B2TZRWwp.mjs.map +0 -1
  33. package/dist/copilotkit-BRPxLJnI.d.mts.map +0 -1
  34. package/dist/copilotkit-BV7MguMm.cjs.map +0 -1
  35. package/dist/copilotkit-D5fPO8hJ.d.cts.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { $n as LangGraphInterruptAction, Cr as CatchAllFrontendAction, Er as RenderFunctionStatus, Jn as CopilotApiConfig, Qn as CoAgentStateRender, Sr as CatchAllActionRenderPropsWait, Tr as FrontendActionAvailability, X as useAgent, Xn as CopilotContextParams, Yn as CopilotContext, Zn as useCopilotContext, _r as ActionRenderProps, ar as QueuedInterruptEvent, br as ActionRenderPropsWait, bt as useRenderToolCall$1, cr as CrewsResponseStatus, dr as CrewsToolStateItem, er as LangGraphInterruptActionSetter, fr as CopilotChatSuggestionConfiguration, gr as TreeNode, hr as Tree, ir as LangGraphInterruptRenderProps, lr as CrewsStateItem, mr as DocumentPointer, n as defaultCopilotContextCategories, nr as LangGraphInterruptRender, or as CrewsAgentState, pr as SystemMessageFunction, qn as CoagentInChatRenderFunction, r as CopilotKitProps, rr as LangGraphInterruptRenderHandlerProps, sr as CrewsResponse, t as CopilotKit, tr as LangGraphInterruptActionSetterArgs, ur as CrewsTaskStateItem, vr as ActionRenderPropsNoArgs, wr as FrontendAction, xr as CatchAllActionRenderProps, yr as ActionRenderPropsNoArgsWait } from "./copilotkit-D5fPO8hJ.cjs";
1
+ import { Ad as ActionRenderPropsNoArgs, Cd as CrewsToolStateItem, Dd as Tree, Ed as DocumentPointer, Fd as CatchAllFrontendAction, Id as FrontendAction, Ld as FrontendActionAvailability, Md as ActionRenderPropsWait, Nd as CatchAllActionRenderProps, Od as TreeNode, Pd as CatchAllActionRenderPropsWait, Rd as RenderFunctionStatus, Sd as CrewsTaskStateItem, Td as SystemMessageFunction, X as useAgent, _d as QueuedInterruptEvent, ad as CoagentInChatRenderFunction, bd as CrewsResponseStatus, cd as CopilotContextParams, dd as LangGraphInterruptAction, fd as LangGraphInterruptActionSetter, gd as LangGraphInterruptRenderProps, hd as LangGraphInterruptRenderHandlerProps, jd as ActionRenderPropsNoArgsWait, kd as ActionRenderProps, ld as useCopilotContext, md as LangGraphInterruptRender, n as defaultCopilotContextCategories, od as CopilotApiConfig, pd as LangGraphInterruptActionSetterArgs, r as CopilotKitProps, sd as CopilotContext, t as CopilotKit, ud as CoAgentStateRender, vd as CrewsAgentState, wd as CopilotChatSuggestionConfiguration, xd as CrewsStateItem, xt as useRenderToolCall$1, yd as CrewsResponse } from "./copilotkit-C7c_w9iV.cjs";
2
2
  import "./v2/index.cjs";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
  import { CopilotRuntimeClient, CopilotRuntimeClientOptions, ForwardedParametersInput, Message } from "@copilotkit/runtime-client-gql";
@@ -818,7 +818,7 @@ type CatchAllActionRenderProps, /**
818
818
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
819
819
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
820
820
  */
821
- CatchAllActionRenderPropsWait, /**
821
+ type CatchAllActionRenderPropsWait, /**
822
822
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
823
823
  * No 1:1 v2 replacement is available.
824
824
  * Related v2 docs (Tool-based generative UI): https://docs.copilotkit.ai/generative-ui/tool-based
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { $n as LangGraphInterruptAction, Cr as CatchAllFrontendAction, Er as RenderFunctionStatus, Jn as CopilotApiConfig, Qn as CoAgentStateRender, Sr as CatchAllActionRenderPropsWait, Tr as FrontendActionAvailability, X as useAgent, Xn as CopilotContextParams, Yn as CopilotContext, Zn as useCopilotContext, _r as ActionRenderProps, ar as QueuedInterruptEvent, br as ActionRenderPropsWait, bt as useRenderToolCall$1, cr as CrewsResponseStatus, dr as CrewsToolStateItem, er as LangGraphInterruptActionSetter, fr as CopilotChatSuggestionConfiguration, gr as TreeNode, hr as Tree, ir as LangGraphInterruptRenderProps, lr as CrewsStateItem, mr as DocumentPointer, n as defaultCopilotContextCategories, nr as LangGraphInterruptRender, or as CrewsAgentState, pr as SystemMessageFunction, qn as CoagentInChatRenderFunction, r as CopilotKitProps, rr as LangGraphInterruptRenderHandlerProps, sr as CrewsResponse, t as CopilotKit, tr as LangGraphInterruptActionSetterArgs, ur as CrewsTaskStateItem, vr as ActionRenderPropsNoArgs, wr as FrontendAction, xr as CatchAllActionRenderProps, yr as ActionRenderPropsNoArgsWait } from "./copilotkit-BRPxLJnI.mjs";
1
+ import { Ad as ActionRenderPropsNoArgs, Cd as CrewsToolStateItem, Dd as Tree, Ed as DocumentPointer, Fd as CatchAllFrontendAction, Id as FrontendAction, Ld as FrontendActionAvailability, Md as ActionRenderPropsWait, Nd as CatchAllActionRenderProps, Od as TreeNode, Pd as CatchAllActionRenderPropsWait, Rd as RenderFunctionStatus, Sd as CrewsTaskStateItem, Td as SystemMessageFunction, X as useAgent, _d as QueuedInterruptEvent, ad as CoagentInChatRenderFunction, bd as CrewsResponseStatus, cd as CopilotContextParams, dd as LangGraphInterruptAction, fd as LangGraphInterruptActionSetter, gd as LangGraphInterruptRenderProps, hd as LangGraphInterruptRenderHandlerProps, jd as ActionRenderPropsNoArgsWait, kd as ActionRenderProps, ld as useCopilotContext, md as LangGraphInterruptRender, n as defaultCopilotContextCategories, od as CopilotApiConfig, pd as LangGraphInterruptActionSetterArgs, r as CopilotKitProps, sd as CopilotContext, t as CopilotKit, ud as CoAgentStateRender, vd as CrewsAgentState, wd as CopilotChatSuggestionConfiguration, xd as CrewsStateItem, xt as useRenderToolCall$1, yd as CrewsResponse } from "./copilotkit-CfyJ1-Nx.mjs";
2
2
  import "./v2/index.mjs";
3
3
  import React, { ReactNode, RefObject, SetStateAction } from "react";
4
4
  import { StaticSuggestionsConfig, Suggestion } from "@copilotkit/core";
@@ -818,7 +818,7 @@ type CatchAllActionRenderProps, /**
818
818
  * V2 reference docs: https://docs.copilotkit.ai/reference/v2
819
819
  * Migration guide: https://docs.copilotkit.ai/migrate/v2
820
820
  */
821
- CatchAllActionRenderPropsWait, /**
821
+ type CatchAllActionRenderPropsWait, /**
822
822
  * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
823
823
  * No 1:1 v2 replacement is available.
824
824
  * Related v2 docs (Tool-based generative UI): https://docs.copilotkit.ai/generative-ui/tool-based
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
 
3
- import { Nt as useCopilotChatConfiguration, Ot as useRenderToolCall$1, Q as useSuggestions, X as INTERRUPT_EVENT_NAME, Y as useInterrupt, Z as useConfigureSuggestions, a as ThreadsProvider, c as CoAgentStateRendersProvider, d as shouldShowDevConsole, dt as useCopilotKit, f as useToast, g as useCopilotContext, h as CopilotContext, i as ThreadsContext, l as useCoAgentStateRenders, lt as useRenderCustomMessages, m as useCopilotMessagesContext, mt as defineToolCallRenderer, n as defaultCopilotContextCategories, nt as useAgent, o as useThreads, p as CopilotMessagesContext, r as CoAgentStateRenderBridge, rt as useHumanInTheLoop$1, s as CoAgentStateRendersContext, st as useFrontendTool$1, t as CopilotKit, u as useAsyncCallback } from "./copilotkit-B2TZRWwp.mjs";
3
+ import { Pt as useCopilotChatConfiguration, Q as useSuggestions, X as INTERRUPT_EVENT_NAME, Y as useInterrupt, Z as useConfigureSuggestions, a as ThreadsProvider, c as CoAgentStateRendersProvider, ct as useFrontendTool$1, d as shouldShowDevConsole, f as useToast, ft as useCopilotKit, g as useCopilotContext, h as CopilotContext, ht as defineToolCallRenderer, i as ThreadsContext, kt as useRenderToolCall$1, l as useCoAgentStateRenders, m as useCopilotMessagesContext, n as defaultCopilotContextCategories, nt as useAgent, o as useThreads, p as CopilotMessagesContext, r as CoAgentStateRenderBridge, rt as useHumanInTheLoop$1, s as CoAgentStateRendersContext, t as CopilotKit, u as useAsyncCallback, ut as useRenderCustomMessages } from "./copilotkit-CwVE-0JG.mjs";
4
4
  import React, { Fragment, createElement, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
5
5
  import { CopilotKitCoreRuntimeConnectionStatus, ToolCallStatus } from "@copilotkit/core";
6
6
  import { AGUIConnectNotImplementedError, HttpAgent } from "@ag-ui/client";