@copilotkit/react-core 1.60.1 → 1.60.2

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 (40) hide show
  1. package/dist/{copilotkit-BTHcCAVQ.cjs → copilotkit-CP5uyB2h.cjs} +43 -133
  2. package/dist/copilotkit-CP5uyB2h.cjs.map +1 -0
  3. package/dist/{copilotkit-C9ptuh-b.d.cts → copilotkit-CyL6ZsLP.d.cts} +7 -7
  4. package/dist/{copilotkit-DvbI8G0d.d.mts.map → copilotkit-CyL6ZsLP.d.cts.map} +1 -1
  5. package/dist/{copilotkit-CV519nFv.mjs → copilotkit-DheptEiV.mjs} +43 -133
  6. package/dist/copilotkit-DheptEiV.mjs.map +1 -0
  7. package/dist/{copilotkit-DvbI8G0d.d.mts → copilotkit-UaQ7KSUq.d.mts} +7 -7
  8. package/dist/{copilotkit-C9ptuh-b.d.cts.map → copilotkit-UaQ7KSUq.d.mts.map} +1 -1
  9. package/dist/index.cjs +6 -6
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +3 -3
  12. package/dist/index.d.mts +3 -3
  13. package/dist/index.mjs +6 -6
  14. package/dist/index.mjs.map +1 -1
  15. package/dist/index.umd.js +44 -129
  16. package/dist/index.umd.js.map +1 -1
  17. package/dist/v2/context.cjs +8 -3
  18. package/dist/v2/context.cjs.map +1 -1
  19. package/dist/v2/context.d.cts.map +1 -1
  20. package/dist/v2/context.d.mts.map +1 -1
  21. package/dist/v2/context.mjs +8 -3
  22. package/dist/v2/context.mjs.map +1 -1
  23. package/dist/v2/headless.cjs +15 -8
  24. package/dist/v2/headless.cjs.map +1 -1
  25. package/dist/v2/headless.d.cts +3 -3
  26. package/dist/v2/headless.d.cts.map +1 -1
  27. package/dist/v2/headless.d.mts +3 -3
  28. package/dist/v2/headless.d.mts.map +1 -1
  29. package/dist/v2/headless.mjs +15 -8
  30. package/dist/v2/headless.mjs.map +1 -1
  31. package/dist/v2/index.cjs +1 -1
  32. package/dist/v2/index.css +1 -1
  33. package/dist/v2/index.d.cts +1 -1
  34. package/dist/v2/index.d.mts +1 -1
  35. package/dist/v2/index.mjs +1 -1
  36. package/dist/v2/index.umd.js +42 -132
  37. package/dist/v2/index.umd.js.map +1 -1
  38. package/package.json +6 -6
  39. package/dist/copilotkit-BTHcCAVQ.cjs.map +0 -1
  40. package/dist/copilotkit-CV519nFv.mjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { An as LangGraphInterruptRenderHandlerProps, Bn as SystemMessageFunction, Cn as CopilotContextParams, Dn as LangGraphInterruptActionSetter, En as LangGraphInterruptAction, Fn as CrewsResponseStatus, G as useAgent, Gn as ActionRenderPropsNoArgs, Hn as Tree, In as CrewsStateItem, Jn as CatchAllActionRenderProps, Kn as ActionRenderPropsNoArgsWait, Ln as CrewsTaskStateItem, Mn as QueuedInterruptEvent, Nn as CrewsAgentState, On as LangGraphInterruptActionSetterArgs, Pn as CrewsResponse, Qn as RenderFunctionStatus, Rn as CrewsToolStateItem, Sn as CopilotContext, Tn as CoAgentStateRender, Un as TreeNode, Vn as DocumentPointer, Wn as ActionRenderProps, Xn as FrontendAction, Yn as CatchAllFrontendAction, Zn as FrontendActionAvailability, bn as CoagentInChatRenderFunction, jn as LangGraphInterruptRenderProps, kn as LangGraphInterruptRender, n as defaultCopilotContextCategories, qn as ActionRenderPropsWait, r as CopilotKitProps, t as CopilotKit, ut as useRenderToolCall$1, wn as useCopilotContext, xn as CopilotApiConfig, zn as CopilotChatSuggestionConfiguration } from "./copilotkit-C9ptuh-b.cjs";
1
+ import { An as LangGraphInterruptRenderHandlerProps, Bn as SystemMessageFunction, Cn as CopilotContextParams, Dn as LangGraphInterruptActionSetter, En as LangGraphInterruptAction, Fn as CrewsResponseStatus, G as useAgent, Gn as ActionRenderPropsNoArgs, Hn as Tree, In as CrewsStateItem, Jn as CatchAllActionRenderProps, Kn as ActionRenderPropsNoArgsWait, Ln as CrewsTaskStateItem, Mn as QueuedInterruptEvent, Nn as CrewsAgentState, On as LangGraphInterruptActionSetterArgs, Pn as CrewsResponse, Qn as RenderFunctionStatus, Rn as CrewsToolStateItem, Sn as CopilotContext, Tn as CoAgentStateRender, Un as TreeNode, Vn as DocumentPointer, Wn as ActionRenderProps, Xn as FrontendAction, Yn as CatchAllFrontendAction, Zn as FrontendActionAvailability, bn as CoagentInChatRenderFunction, jn as LangGraphInterruptRenderProps, kn as LangGraphInterruptRender, n as defaultCopilotContextCategories, qn as ActionRenderPropsWait, r as CopilotKitProps, t as CopilotKit, ut as useRenderToolCall$1, wn as useCopilotContext, xn as CopilotApiConfig, zn as CopilotChatSuggestionConfiguration } from "./copilotkit-CyL6ZsLP.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";
@@ -311,11 +311,11 @@ declare function useCopilotChat(options?: UseCopilotChatOptions): UseCopilotChat
311
311
  //#endregion
312
312
  //#region src/hooks/use-copilot-chat-headless_c.d.ts
313
313
  /**
314
- * Enterprise React hook that provides complete chat functionality for fully custom UI implementations.
314
+ * Enterprise Intelligence Platform React hook that provides complete chat functionality for fully custom UI implementations.
315
315
  * Includes all advanced features like direct message access, suggestions array, interrupt handling, and MCP support.
316
316
  *
317
317
  * @param options - Configuration options for the chat
318
- * @returns Complete chat interface with all enterprise features
318
+ * @returns Complete chat interface with all Enterprise Intelligence Platform features
319
319
  *
320
320
  * @example
321
321
  * ```tsx
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { An as LangGraphInterruptRenderHandlerProps, Bn as SystemMessageFunction, Cn as CopilotContextParams, Dn as LangGraphInterruptActionSetter, En as LangGraphInterruptAction, Fn as CrewsResponseStatus, G as useAgent, Gn as ActionRenderPropsNoArgs, Hn as Tree, In as CrewsStateItem, Jn as CatchAllActionRenderProps, Kn as ActionRenderPropsNoArgsWait, Ln as CrewsTaskStateItem, Mn as QueuedInterruptEvent, Nn as CrewsAgentState, On as LangGraphInterruptActionSetterArgs, Pn as CrewsResponse, Qn as RenderFunctionStatus, Rn as CrewsToolStateItem, Sn as CopilotContext, Tn as CoAgentStateRender, Un as TreeNode, Vn as DocumentPointer, Wn as ActionRenderProps, Xn as FrontendAction, Yn as CatchAllFrontendAction, Zn as FrontendActionAvailability, bn as CoagentInChatRenderFunction, jn as LangGraphInterruptRenderProps, kn as LangGraphInterruptRender, n as defaultCopilotContextCategories, qn as ActionRenderPropsWait, r as CopilotKitProps, t as CopilotKit, ut as useRenderToolCall$1, wn as useCopilotContext, xn as CopilotApiConfig, zn as CopilotChatSuggestionConfiguration } from "./copilotkit-DvbI8G0d.mjs";
1
+ import { An as LangGraphInterruptRenderHandlerProps, Bn as SystemMessageFunction, Cn as CopilotContextParams, Dn as LangGraphInterruptActionSetter, En as LangGraphInterruptAction, Fn as CrewsResponseStatus, G as useAgent, Gn as ActionRenderPropsNoArgs, Hn as Tree, In as CrewsStateItem, Jn as CatchAllActionRenderProps, Kn as ActionRenderPropsNoArgsWait, Ln as CrewsTaskStateItem, Mn as QueuedInterruptEvent, Nn as CrewsAgentState, On as LangGraphInterruptActionSetterArgs, Pn as CrewsResponse, Qn as RenderFunctionStatus, Rn as CrewsToolStateItem, Sn as CopilotContext, Tn as CoAgentStateRender, Un as TreeNode, Vn as DocumentPointer, Wn as ActionRenderProps, Xn as FrontendAction, Yn as CatchAllFrontendAction, Zn as FrontendActionAvailability, bn as CoagentInChatRenderFunction, jn as LangGraphInterruptRenderProps, kn as LangGraphInterruptRender, n as defaultCopilotContextCategories, qn as ActionRenderPropsWait, r as CopilotKitProps, t as CopilotKit, ut as useRenderToolCall$1, wn as useCopilotContext, xn as CopilotApiConfig, zn as CopilotChatSuggestionConfiguration } from "./copilotkit-UaQ7KSUq.mjs";
2
2
  import "./v2/index.mjs";
3
3
  import React, { ReactNode, RefObject, SetStateAction } from "react";
4
4
  import { StaticSuggestionsConfig, Suggestion } from "@copilotkit/core";
@@ -311,11 +311,11 @@ declare function useCopilotChat(options?: UseCopilotChatOptions): UseCopilotChat
311
311
  //#endregion
312
312
  //#region src/hooks/use-copilot-chat-headless_c.d.ts
313
313
  /**
314
- * Enterprise React hook that provides complete chat functionality for fully custom UI implementations.
314
+ * Enterprise Intelligence Platform React hook that provides complete chat functionality for fully custom UI implementations.
315
315
  * Includes all advanced features like direct message access, suggestions array, interrupt handling, and MCP support.
316
316
  *
317
317
  * @param options - Configuration options for the chat
318
- * @returns Complete chat interface with all enterprise features
318
+ * @returns Complete chat interface with all Enterprise Intelligence Platform features
319
319
  *
320
320
  * @example
321
321
  * ```tsx
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
 
3
- import { $ as useAgent, Ct as useCopilotChatConfiguration, J as useConfigureSuggestions, Y as useSuggestions, _t as useCopilotKit, a as ThreadsProvider, c as CoAgentStateRendersProvider, d as shouldShowDevConsole, et as useHumanInTheLoop$1, f as useToast, g as useCopilotContext, gt as defineToolCallRenderer, h as CopilotContext, i as ThreadsContext, it as useRenderCustomMessages, l as useCoAgentStateRenders, m as useCopilotMessagesContext, n as defaultCopilotContextCategories, nt as useFrontendTool$1, o as useThreads, p as CopilotMessagesContext, pt as useRenderToolCall$1, q as useInterrupt, r as CoAgentStateRenderBridge, s as CoAgentStateRendersContext, t as CopilotKit, u as useAsyncCallback } from "./copilotkit-CV519nFv.mjs";
3
+ import { $ as useAgent, Ct as useCopilotChatConfiguration, J as useConfigureSuggestions, Y as useSuggestions, _t as useCopilotKit, a as ThreadsProvider, c as CoAgentStateRendersProvider, d as shouldShowDevConsole, et as useHumanInTheLoop$1, f as useToast, g as useCopilotContext, gt as defineToolCallRenderer, h as CopilotContext, i as ThreadsContext, it as useRenderCustomMessages, l as useCoAgentStateRenders, m as useCopilotMessagesContext, n as defaultCopilotContextCategories, nt as useFrontendTool$1, o as useThreads, p as CopilotMessagesContext, pt as useRenderToolCall$1, q as useInterrupt, r as CoAgentStateRenderBridge, s as CoAgentStateRendersContext, t as CopilotKit, u as useAsyncCallback } from "./copilotkit-DheptEiV.mjs";
4
4
  import React, { Fragment, createElement, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
5
5
  import { CopilotKitCoreRuntimeConnectionStatus, ToolCallStatus } from "@copilotkit/core";
6
6
  import { AGUIConnectNotImplementedError, HttpAgent } from "@ag-ui/client";
@@ -362,8 +362,8 @@ function useCopilotChat(options = {}) {
362
362
  /**
363
363
  * `useCopilotChatHeadless_c` is for building fully custom UI (headless UI) implementations.
364
364
  *
365
- * <Callout title="This is a premium-only feature">
366
- * Read more about <a href="/premium/overview">premium features</a>.
365
+ * <Callout title="This is an Enterprise Intelligence Platform feature">
366
+ * Read more about <a href="/premium/overview">the Enterprise Intelligence Platform</a>.
367
367
  *
368
368
  * Usage is generous and **free** to get started.
369
369
  * </Callout>
@@ -542,11 +542,11 @@ const createNonFunctionalReturn = () => ({
542
542
  interrupt: null
543
543
  });
544
544
  /**
545
- * Enterprise React hook that provides complete chat functionality for fully custom UI implementations.
545
+ * Enterprise Intelligence Platform React hook that provides complete chat functionality for fully custom UI implementations.
546
546
  * Includes all advanced features like direct message access, suggestions array, interrupt handling, and MCP support.
547
547
  *
548
548
  * @param options - Configuration options for the chat
549
- * @returns Complete chat interface with all enterprise features
549
+ * @returns Complete chat interface with all Enterprise Intelligence Platform features
550
550
  *
551
551
  * @example
552
552
  * ```tsx
@@ -560,7 +560,7 @@ function useCopilotChatHeadless_c(options = {}) {
560
560
  useEffect(() => {
561
561
  if (!hasPublicApiKey) {
562
562
  setBannerError(new CopilotKitError({
563
- message: "You're using useCopilotChatHeadless_c, a premium-only feature, which offers extensive headless chat capabilities. To continue, you'll need to provide a free public license key.",
563
+ message: "You're using useCopilotChatHeadless_c, an Enterprise Intelligence Platform feature that offers extensive headless chat capabilities. To continue, you'll need to provide a free public license key.",
564
564
  code: CopilotKitErrorCode.MISSING_PUBLIC_API_KEY_ERROR,
565
565
  severity: Severity.WARNING,
566
566
  visibility: ErrorVisibility.BANNER