@copilotkit/react-core 1.55.3-canary.1776260990 → 1.56.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.
- package/dist/{copilotkit-a2pL_KeT.mjs → copilotkit-BebqQrYT.mjs} +8 -6
- package/dist/copilotkit-BebqQrYT.mjs.map +1 -0
- package/dist/{copilotkit-9l47K1Ot.cjs → copilotkit-Cvb6WpAX.cjs} +8 -6
- package/dist/copilotkit-Cvb6WpAX.cjs.map +1 -0
- package/dist/{copilotkit-9_JxoZgF.d.cts → copilotkit-Dv8zU8_U.d.cts} +21 -9
- package/dist/{copilotkit-Dcf7Lkjb.d.mts.map → copilotkit-Dv8zU8_U.d.cts.map} +1 -1
- package/dist/{copilotkit-Dcf7Lkjb.d.mts → copilotkit-f2Uq0RwG.d.mts} +21 -9
- package/dist/{copilotkit-9_JxoZgF.d.cts.map → copilotkit-f2Uq0RwG.d.mts.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.umd.js +7 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/v2/index.cjs +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 +7 -6
- package/dist/v2/index.umd.js.map +1 -1
- package/package.json +6 -6
- package/src/components/copilot-provider/copilotkit-props.tsx +17 -1
- package/src/v2/hooks/use-interrupt.tsx +1 -10
- package/src/v2/providers/CopilotKitProvider.tsx +9 -0
- package/dist/copilotkit-9l47K1Ot.cjs.map +0 -1
- package/dist/copilotkit-a2pL_KeT.mjs.map +0 -1
|
@@ -3042,7 +3042,7 @@ function useStableArrayProp(prop, warningMessage, isMeaningfulChange) {
|
|
|
3042
3042
|
}, [value, warningMessage]);
|
|
3043
3043
|
return value;
|
|
3044
3044
|
}
|
|
3045
|
-
const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = {}, credentials, publicApiKey, publicLicenseKey, licenseToken, properties = {}, agents__unsafe_dev_only: agents = {}, selfManagedAgents = {}, renderToolCalls, renderActivityMessages, renderCustomMessages, frontendTools, humanInTheLoop, openGenerativeUI, showDevConsole = false, useSingleEndpoint, onError, a2ui, defaultThrottleMs, inspectorDefaultAnchor }) => {
|
|
3045
|
+
const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = {}, credentials, publicApiKey, publicLicenseKey, licenseToken, properties = {}, agents__unsafe_dev_only: agents = {}, selfManagedAgents = {}, renderToolCalls, renderActivityMessages, renderCustomMessages, frontendTools, humanInTheLoop, openGenerativeUI, showDevConsole = false, useSingleEndpoint, onError, a2ui, defaultThrottleMs, inspectorDefaultAnchor, debug }) => {
|
|
3046
3046
|
const [shouldRenderInspector, setShouldRenderInspector] = useState(false);
|
|
3047
3047
|
const [runtimeA2UIEnabled, setRuntimeA2UIEnabled] = useState(false);
|
|
3048
3048
|
const [runtimeOpenGenUIEnabled, setRuntimeOpenGenUIEnabled] = useState(false);
|
|
@@ -3199,7 +3199,8 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = {}, c
|
|
|
3199
3199
|
tools: allTools,
|
|
3200
3200
|
renderToolCalls: allRenderToolCalls,
|
|
3201
3201
|
renderActivityMessages: allActivityRenderers,
|
|
3202
|
-
renderCustomMessages: renderCustomMessagesList
|
|
3202
|
+
renderCustomMessages: renderCustomMessagesList,
|
|
3203
|
+
debug
|
|
3203
3204
|
});
|
|
3204
3205
|
if (defaultThrottleMs !== void 0) copilotkitRef.current.setDefaultThrottleMs(defaultThrottleMs);
|
|
3205
3206
|
}
|
|
@@ -3272,6 +3273,7 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = {}, c
|
|
|
3272
3273
|
copilotkit.setCredentials(credentials);
|
|
3273
3274
|
copilotkit.setProperties(properties);
|
|
3274
3275
|
copilotkit.setAgents__unsafe_dev_only(mergedAgents);
|
|
3276
|
+
copilotkit.setDebug(debug);
|
|
3275
3277
|
}, [
|
|
3276
3278
|
copilotkit,
|
|
3277
3279
|
chatApiEndpoint,
|
|
@@ -3279,7 +3281,8 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = {}, c
|
|
|
3279
3281
|
credentials,
|
|
3280
3282
|
properties,
|
|
3281
3283
|
mergedAgents,
|
|
3282
|
-
useSingleEndpoint
|
|
3284
|
+
useSingleEndpoint,
|
|
3285
|
+
debug
|
|
3283
3286
|
]);
|
|
3284
3287
|
const didMountRef = useRef(false);
|
|
3285
3288
|
useEffect(() => {
|
|
@@ -4440,8 +4443,7 @@ function isPromiseLike(value) {
|
|
|
4440
4443
|
*/
|
|
4441
4444
|
function useInterrupt(config) {
|
|
4442
4445
|
const { copilotkit } = useCopilotKit();
|
|
4443
|
-
const { agent
|
|
4444
|
-
const agent = config.agent ?? internalAgent;
|
|
4446
|
+
const { agent } = useAgent({ agentId: config.agentId });
|
|
4445
4447
|
const [pendingEvent, setPendingEvent] = useState(null);
|
|
4446
4448
|
const pendingEventRef = useRef(pendingEvent);
|
|
4447
4449
|
pendingEventRef.current = pendingEvent;
|
|
@@ -9551,4 +9553,4 @@ function validateProps(props) {
|
|
|
9551
9553
|
|
|
9552
9554
|
//#endregion
|
|
9553
9555
|
export { CopilotKitProvider as $, CopilotChatSuggestionView as A, useConfigureSuggestions as B, CopilotChatToggleButton as C, CopilotChatView_default as D, CopilotChat as E, CopilotChatAssistantMessage_default as F, useRenderTool as G, useCapabilities as H, CopilotChatToolCallsView as I, useRenderActivityMessage as J, useComponent as K, useAttachments as L, CopilotChatReasoningMessage_default as M, CopilotChatUserMessage_default as N, CopilotChatAttachmentQueue as O, CopilotChatAttachmentRenderer as P, useRenderToolCall as Q, useThreads$1 as R, CopilotModalHeader as S, DefaultOpenIcon as T, useHumanInTheLoop as U, useSuggestions as V, useDefaultRenderTool as W, UseAgentUpdate as X, useRenderCustomMessages as Y, useAgent as Z, WildcardToolCallRender as _, ThreadsProvider as a, SandboxFunctionsContext as at, CopilotPopupView as b, CoAgentStateRendersProvider as c, MCPAppsActivityRenderer as ct, shouldShowDevConsole as d, CopilotChatInput_default as dt, useCopilotKit as et, useToast as f, AudioRecorderError as ft, useCopilotContext as g, CopilotContext as h, useCopilotChatConfiguration as ht, ThreadsContext as i, createA2UIMessageRenderer as it, CopilotChatSuggestionPill as j, CopilotChatMessageView as k, useCoAgentStateRenders as l, MCPAppsActivityType as lt, useCopilotMessagesContext as m, CopilotChatConfigurationProvider as mt, defaultCopilotContextCategories as n, useAgentContext as nt, useThreads as o, useSandboxFunctions as ot, CopilotMessagesContext as p, CopilotChatAudioRecorder as pt, useFrontendTool as q, CoAgentStateRenderBridge as r, defineToolCallRenderer as rt, CoAgentStateRendersContext as s, MCPAppsActivityContentSchema as st, CopilotKit as t, CopilotKitCoreReact as tt, useAsyncCallback as u, CopilotKitInspector as ut, CopilotPopup as v, DefaultCloseIcon as w, CopilotSidebarView as x, CopilotSidebar as y, useInterrupt as z };
|
|
9554
|
-
//# sourceMappingURL=copilotkit-
|
|
9556
|
+
//# sourceMappingURL=copilotkit-BebqQrYT.mjs.map
|