@copilotkit/react-core 1.60.0 → 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.
- package/dist/{copilotkit-BTHcCAVQ.cjs → copilotkit-CP5uyB2h.cjs} +43 -133
- package/dist/copilotkit-CP5uyB2h.cjs.map +1 -0
- package/dist/{copilotkit-C9ptuh-b.d.cts → copilotkit-CyL6ZsLP.d.cts} +7 -7
- package/dist/{copilotkit-DvbI8G0d.d.mts.map → copilotkit-CyL6ZsLP.d.cts.map} +1 -1
- package/dist/{copilotkit-CV519nFv.mjs → copilotkit-DheptEiV.mjs} +43 -133
- package/dist/copilotkit-DheptEiV.mjs.map +1 -0
- package/dist/{copilotkit-DvbI8G0d.d.mts → copilotkit-UaQ7KSUq.d.mts} +7 -7
- package/dist/{copilotkit-C9ptuh-b.d.cts.map → copilotkit-UaQ7KSUq.d.mts.map} +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +44 -129
- package/dist/index.umd.js.map +1 -1
- package/dist/v2/context.cjs +8 -3
- package/dist/v2/context.cjs.map +1 -1
- package/dist/v2/context.d.cts.map +1 -1
- package/dist/v2/context.d.mts.map +1 -1
- package/dist/v2/context.mjs +8 -3
- package/dist/v2/context.mjs.map +1 -1
- package/dist/v2/headless.cjs +15 -8
- package/dist/v2/headless.cjs.map +1 -1
- package/dist/v2/headless.d.cts +3 -3
- package/dist/v2/headless.d.cts.map +1 -1
- package/dist/v2/headless.d.mts +3 -3
- package/dist/v2/headless.d.mts.map +1 -1
- package/dist/v2/headless.mjs +15 -8
- package/dist/v2/headless.mjs.map +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.css +1 -1
- package/dist/v2/index.d.cts +1 -1
- package/dist/v2/index.d.mts +1 -1
- package/dist/v2/index.mjs +1 -1
- package/dist/v2/index.umd.js +42 -132
- package/dist/v2/index.umd.js.map +1 -1
- package/package.json +8 -8
- package/skills/react-core/references/chat-components.md +18 -11
- package/dist/copilotkit-BTHcCAVQ.cjs.map +0 -1
- 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-
|
|
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
|
|
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-
|
|
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
|
|
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-
|
|
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
|
|
366
|
-
* Read more about <a href="/premium/overview">
|
|
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
|
|
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,
|
|
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
|