@copilotkit/react-core 1.67.0 → 1.68.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-CmMYFfLV.cjs → copilotkit-8KSSmCH_.cjs} +143 -169
- package/dist/copilotkit-8KSSmCH_.cjs.map +1 -0
- package/dist/{copilotkit-CBCT7BlL.d.cts → copilotkit-BICg0AyJ.d.cts} +25 -7
- package/dist/{copilotkit-D0aAnD3i.d.mts.map → copilotkit-BICg0AyJ.d.cts.map} +1 -1
- package/dist/{copilotkit-D0aAnD3i.d.mts → copilotkit-BrfN8YeF.d.mts} +76 -70
- package/dist/copilotkit-BrfN8YeF.d.mts.map +1 -0
- package/dist/{copilotkit-DMmUbvpo.mjs → copilotkit-Ck0RL8hh.mjs} +127 -147
- package/dist/copilotkit-Ck0RL8hh.mjs.map +1 -0
- package/dist/index.cjs +52 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +8 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +47 -49
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +46 -48
- package/dist/index.umd.js.map +1 -1
- package/dist/v2/headless.d.cts +1 -1
- package/dist/v2/headless.d.mts +1 -1
- package/dist/v2/index.cjs +14 -2
- package/dist/v2/index.d.cts +2 -2
- package/dist/v2/index.d.mts +2 -2
- package/dist/v2/index.mjs +2 -2
- package/dist/v2/index.umd.js +15 -5
- package/dist/v2/index.umd.js.map +1 -1
- package/package.json +10 -9
- package/skills/react-core/SKILL.md +1 -1
- package/dist/copilotkit-CBCT7BlL.d.cts.map +0 -1
- package/dist/copilotkit-CmMYFfLV.cjs.map +0 -1
- package/dist/copilotkit-DMmUbvpo.mjs.map +0 -1
package/dist/v2/headless.d.cts
CHANGED
|
@@ -1021,5 +1021,5 @@ declare function useRenderToolCall(): ({
|
|
|
1021
1021
|
*/
|
|
1022
1022
|
declare function useCapabilities(agentId?: string): AgentCapabilities | undefined;
|
|
1023
1023
|
//#endregion
|
|
1024
|
-
export { type AgentContextInput, CopilotChatConfigurationProvider, type CopilotChatConfigurationProviderProps, type CopilotChatConfigurationValue, CopilotChatDefaultLabels, type CopilotChatLabels, CopilotKitCoreReact, type CopilotKitCoreReactConfig, type Interrupt, type InterruptEvent, type InterruptHandlerProps, type InterruptRenderProps, type JsonSerializable, type ReactFrontendTool, type ReactHumanInTheLoop, type RenderToolCompleteProps, type RenderToolExecutingProps, type RenderToolInProgressProps, type RenderToolProps, type ResumeEntry, type ResumeStatus, type Thread, UseAgentUpdate, type UseInterruptConfig, type UseThreadsInput, type UseThreadsResult, defineToolCallRenderer, useAgent, useAgentContext, useCapabilities, useComponent, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useFrontendTool, useHumanInTheLoop, useInterrupt, useRenderTool, useRenderToolCall, useSuggestions, useThreads };
|
|
1024
|
+
export { type AgentContextInput, CopilotChatConfigurationProvider, type CopilotChatConfigurationProviderProps, type CopilotChatConfigurationValue, CopilotChatDefaultLabels, type CopilotChatLabels, CopilotKitCoreReact, type CopilotKitCoreReactConfig, type Interrupt, type InterruptEvent, type InterruptHandlerProps, type InterruptRenderProps, type JsonSerializable, type ReactFrontendTool, type ReactHumanInTheLoop, type ReactToolCallRenderer, type RenderToolCompleteProps, type RenderToolExecutingProps, type RenderToolInProgressProps, type RenderToolProps, type ResumeEntry, type ResumeStatus, type Thread, UseAgentUpdate, type UseInterruptConfig, type UseThreadsInput, type UseThreadsResult, defineToolCallRenderer, useAgent, useAgentContext, useCapabilities, useComponent, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useFrontendTool, useHumanInTheLoop, useInterrupt, useRenderTool, useRenderToolCall, useSuggestions, useThreads };
|
|
1025
1025
|
//# sourceMappingURL=headless.d.cts.map
|
package/dist/v2/headless.d.mts
CHANGED
|
@@ -917,5 +917,5 @@ declare function defineToolCallRenderer<S extends StandardSchemaV1>(def: {
|
|
|
917
917
|
*/
|
|
918
918
|
declare function useCapabilities(agentId?: string): AgentCapabilities | undefined;
|
|
919
919
|
//#endregion
|
|
920
|
-
export { type AgentContextInput, CopilotChatConfigurationProvider, type CopilotChatConfigurationProviderProps, type CopilotChatConfigurationValue, CopilotChatDefaultLabels, type CopilotChatLabels, CopilotKitCoreReact, type CopilotKitCoreReactConfig, type Interrupt, type InterruptEvent, type InterruptHandlerProps, type InterruptRenderProps, type JsonSerializable, type ReactFrontendTool, type ReactHumanInTheLoop, type RenderToolCompleteProps, type RenderToolExecutingProps, type RenderToolInProgressProps, type RenderToolProps, type ResumeEntry, type ResumeStatus, type Thread, UseAgentUpdate, type UseInterruptConfig, type UseThreadsInput, type UseThreadsResult, defineToolCallRenderer, useAgent, useAgentContext, useCapabilities, useComponent, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useFrontendTool, useHumanInTheLoop, useInterrupt, useRenderTool, useRenderToolCall, useSuggestions, useThreads };
|
|
920
|
+
export { type AgentContextInput, CopilotChatConfigurationProvider, type CopilotChatConfigurationProviderProps, type CopilotChatConfigurationValue, CopilotChatDefaultLabels, type CopilotChatLabels, CopilotKitCoreReact, type CopilotKitCoreReactConfig, type Interrupt, type InterruptEvent, type InterruptHandlerProps, type InterruptRenderProps, type JsonSerializable, type ReactFrontendTool, type ReactHumanInTheLoop, type ReactToolCallRenderer, type RenderToolCompleteProps, type RenderToolExecutingProps, type RenderToolInProgressProps, type RenderToolProps, type ResumeEntry, type ResumeStatus, type Thread, UseAgentUpdate, type UseInterruptConfig, type UseThreadsInput, type UseThreadsResult, defineToolCallRenderer, useAgent, useAgentContext, useCapabilities, useComponent, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useFrontendTool, useHumanInTheLoop, useInterrupt, useRenderTool, useRenderToolCall, useSuggestions, useThreads };
|
|
921
921
|
//# sourceMappingURL=headless.d.mts.map
|
package/dist/v2/index.cjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
const require_copilotkit = require('../copilotkit-
|
|
4
|
+
const require_copilotkit = require('../copilotkit-8KSSmCH_.cjs');
|
|
5
5
|
require("./index.css");
|
|
6
6
|
let _copilotkit_a2ui_renderer = require("@copilotkit/a2ui-renderer");
|
|
7
|
+
let _copilotkit_react_core_v2_context = require("@copilotkit/react-core/v2/context");
|
|
7
8
|
|
|
8
9
|
exports.AudioRecorderError = require_copilotkit.AudioRecorderError;
|
|
9
10
|
Object.defineProperty(exports, 'CopilotChat', {
|
|
@@ -83,7 +84,12 @@ exports.useCapabilities = require_copilotkit.useCapabilities;
|
|
|
83
84
|
exports.useComponent = require_copilotkit.useComponent;
|
|
84
85
|
exports.useConfigureSuggestions = require_copilotkit.useConfigureSuggestions;
|
|
85
86
|
exports.useCopilotChatConfiguration = require_copilotkit.useCopilotChatConfiguration;
|
|
86
|
-
exports
|
|
87
|
+
Object.defineProperty(exports, 'useCopilotKit', {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function () {
|
|
90
|
+
return _copilotkit_react_core_v2_context.useCopilotKit;
|
|
91
|
+
}
|
|
92
|
+
});
|
|
87
93
|
exports.useDefaultRenderTool = require_copilotkit.useDefaultRenderTool;
|
|
88
94
|
exports.useFrontendTool = require_copilotkit.useFrontendTool;
|
|
89
95
|
exports.useHumanInTheLoop = require_copilotkit.useHumanInTheLoop;
|
|
@@ -92,6 +98,12 @@ exports.useLearnFromUserAction = require_copilotkit.useLearnFromUserAction;
|
|
|
92
98
|
exports.useLearnFromUserActionInCurrentThread = require_copilotkit.useLearnFromUserActionInCurrentThread;
|
|
93
99
|
exports.useLearningContainers = require_copilotkit.useLearningContainers;
|
|
94
100
|
exports.useLearningContainersInCurrentThread = require_copilotkit.useLearningContainersInCurrentThread;
|
|
101
|
+
Object.defineProperty(exports, 'useLicenseContext', {
|
|
102
|
+
enumerable: true,
|
|
103
|
+
get: function () {
|
|
104
|
+
return _copilotkit_react_core_v2_context.useLicenseContext;
|
|
105
|
+
}
|
|
106
|
+
});
|
|
95
107
|
exports.useMemories = require_copilotkit.useMemories;
|
|
96
108
|
exports.useRenderActivityMessage = require_copilotkit.useRenderActivityMessage;
|
|
97
109
|
exports.useRenderCustomMessages = require_copilotkit.useRenderCustomMessages;
|
package/dist/v2/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as useRenderTool, $t as CopilotPopupViewProps, A as UseAttachmentsReturn, An as CopilotChatAssistantMessage, At as MCPAppsActivityType, B as useMemories, Bn as CopilotChatLabels, Bt as CopilotChatAttachmentQueue, C as MemoryScope, Cn as CopilotChatSuggestionViewProps, Ct as OpenGenerativeUIActivityType, D as UseLearningContainersArgs, Dn as CopilotChatReasoningMessageProps, Dt as MCPAppsActivityContent, E as useLearningContainersInCurrentThread, En as CopilotChatReasoningMessage, Et as OpenGenerativeUIToolRenderer, F as LearnFromUserActionInput, Fn as CopilotChatInputProps, Ft as WildcardToolCallRender, G as AgentContextInput, Gt as UseThreadsInput, H as useInterrupt, Hn as AudioRecorderError, Ht as CopilotThreadsDrawerProps, I as LearnFromUserActionResult, In as ToolsMenuItem, It as Attachment, J as useCapabilities, Jt as CopilotPopup, K as JsonSerializable, Kt as UseThreadsResult, L as UseLearnFromUserActionRecorder, Ln as CopilotChatConfigurationProvider, Lt as AttachmentModality, M as LearnFromUserActionInCurrentThreadInput, Mn as CopilotChatToolCallsView, Mt as ɵrunMcpFollowUp, N as UseLearnFromUserActionInCurrentThreadRecorder, Nn as CopilotChatToolCallsViewProps, Nt as CopilotKitInspector, O as useLearningContainers, On as CopilotChatUserMessage, Ot as MCPAppsActivityContentSchema, P as useLearnFromUserActionInCurrentThread, Pn as CopilotChatInput, Pt as CopilotKitInspectorProps, Q as useDefaultRenderTool, Qt as CopilotPopupView, R as useLearnFromUserAction, Rn as CopilotChatConfigurationProviderProps, Rt as AttachmentsConfig, S as MemoryKind, Sn as CopilotChatSuggestionView, St as OpenGenerativeUIActivityRenderer, T as UseLearningContainersInCurrentThreadArgs, Tn as CopilotChatSuggestionPillProps, Tt as OpenGenerativeUIContentSchema, U as useConfigureSuggestions, Un as AudioRecorderState, Ut as CopilotThreadsDrawerRowRenderer, V as UseInterruptConfig, Vn as useCopilotChatConfiguration, Vt as CopilotThreadsDrawer, W as useSuggestions, Wn as CopilotChatAudioRecorder, Wt as Thread, X as useAgent, Xt as CopilotSidebar, Y as UseAgentUpdate, Yt as CopilotPopupProps, Z as useHumanInTheLoop, Zt as CopilotSidebarProps, _ as CopilotKitCoreReact, _n as IntelligenceIndicatorProps, _t as ReactCustomMessageRenderer, a as A2UIMessageRendererOptions, an as CopilotChatToggleButtonProps, at as InterruptCancelFn, b as Memory, bn as IntelligenceIndicatorView, bt as GenerateSandboxedUiArgs, c as InspectorAnchor, cn as CopilotChat, ct as InterruptRenderProps, d as CopilotKitProvider, dn as CopilotChatViewProps, dt as defineToolCallRenderer, en as CopilotSidebarView, et as useComponent, f as CopilotKitProviderProps, fn as AutoScrollMode, ft as ReactHumanInTheLoop, g as useLicenseContext, gn as IntelligenceIndicator, gt as useRenderCustomMessages, h as useCopilotKit, hn as INTELLIGENCE_TURN_HEAD, ht as ReactToolCallRenderer, i as A2UIActionInterceptor, in as CopilotChatToggleButton, it as Interrupt, j as useAttachments, jn as CopilotChatAssistantMessageProps, jt as ɵMcpFollowUpHost, k as UseAttachmentsProps, kn as CopilotChatUserMessageProps, kt as MCPAppsActivityRenderer, l as SandboxFunctionsContext, ln as CopilotChatProps, lt as InterruptResolveFn, m as CopilotKitContextValue, mn as CopilotChatMessageViewProps, mt as ReactActivityMessageRenderer, nn as CopilotModalHeader, nt as useRenderActivityMessage, o as A2UIUserAction, on as DefaultCloseIcon, ot as InterruptEvent, p as A2UIRecoveryRendererOptions, pn as CopilotChatMessageView, pt as ReactFrontendTool, q as useAgentContext, qt as useThreads, r as CopilotKitProps, rn as CopilotModalHeaderProps, rt as SandboxFunction, s as createA2UIMessageRenderer, sn as DefaultOpenIcon, st as InterruptHandlerProps, t as CopilotKit, tn as CopilotSidebarViewProps, tt as useFrontendTool, u as useSandboxFunctions, un as CopilotChatView, ut as ResumeEntry, v as CopilotKitCoreReactConfig, vn as getIntelligenceTurnAnchors, vt as ReactCustomMessageRendererPosition, w as NewMemory, wn as CopilotChatSuggestionPill, wt as OpenGenerativeUIContent, x as MemoryChanges, xn as IntelligenceIndicatorViewProps, xt as GenerateSandboxedUiArgsSchema, y as CopilotKitCoreReactSubscriber, yn as IntelligenceIndicatorStatus, yt as useRenderToolCall, z as UseMemoriesResult, zn as CopilotChatConfigurationValue, zt as CopilotChatAttachmentRenderer } from "../copilotkit-BICg0AyJ.cjs";
|
|
2
2
|
import { Theme as A2UITheme, defaultTheme as a2uiDefaultTheme } from "@copilotkit/a2ui-renderer";
|
|
3
3
|
export * from "@copilotkit/core";
|
|
4
4
|
export * from "@ag-ui/client";
|
|
5
|
-
export { type A2UIActionInterceptor, type A2UIMessageRendererOptions, type A2UIRecoveryRendererOptions, type A2UITheme, type A2UIUserAction, AgentContextInput, Attachment, AttachmentModality, AttachmentsConfig, AudioRecorderError, AudioRecorderState, AutoScrollMode, CopilotChat, CopilotChatAssistantMessage, CopilotChatAssistantMessageProps, CopilotChatAttachmentQueue, CopilotChatAttachmentRenderer, CopilotChatAudioRecorder, CopilotChatConfigurationProvider, CopilotChatConfigurationProviderProps, CopilotChatConfigurationValue, CopilotChatInput, CopilotChatInputProps, CopilotChatLabels, CopilotChatMessageView, CopilotChatMessageViewProps, CopilotChatProps, CopilotChatReasoningMessage, CopilotChatReasoningMessageProps, CopilotChatSuggestionPill, CopilotChatSuggestionPillProps, CopilotChatSuggestionView, CopilotChatSuggestionViewProps, CopilotChatToggleButton, DefaultCloseIcon as CopilotChatToggleButtonCloseIcon, DefaultOpenIcon as CopilotChatToggleButtonOpenIcon, CopilotChatToggleButtonProps, CopilotChatToolCallsView, CopilotChatToolCallsViewProps, CopilotChatUserMessage, CopilotChatUserMessageProps, CopilotChatView, CopilotChatViewProps, CopilotKit, CopilotKitContextValue, CopilotKitCoreReact, CopilotKitCoreReactConfig, CopilotKitCoreReactSubscriber, CopilotKitInspector, CopilotKitInspectorProps, type CopilotKitProps, CopilotKitProvider, CopilotKitProviderProps, CopilotModalHeader, CopilotModalHeaderProps, CopilotPopup, CopilotPopupProps, CopilotPopupView, CopilotPopupViewProps, CopilotSidebar, CopilotSidebarProps, CopilotSidebarView, CopilotSidebarViewProps, CopilotThreadsDrawer, CopilotThreadsDrawerProps, CopilotThreadsDrawerRowRenderer, GenerateSandboxedUiArgs, GenerateSandboxedUiArgsSchema, INTELLIGENCE_TURN_HEAD, InspectorAnchor, IntelligenceIndicator, IntelligenceIndicatorProps, IntelligenceIndicatorStatus, IntelligenceIndicatorView, IntelligenceIndicatorViewProps, Interrupt, InterruptCancelFn, InterruptEvent, InterruptHandlerProps, InterruptRenderProps, InterruptResolveFn, JsonSerializable, LearnFromUserActionInCurrentThreadInput, LearnFromUserActionInput, LearnFromUserActionResult, MCPAppsActivityContent, MCPAppsActivityContentSchema, MCPAppsActivityRenderer, MCPAppsActivityType, Memory, MemoryChanges, MemoryKind, MemoryScope, NewMemory, OpenGenerativeUIActivityRenderer, OpenGenerativeUIActivityType, OpenGenerativeUIContent, OpenGenerativeUIContentSchema, OpenGenerativeUIToolRenderer, ReactActivityMessageRenderer, ReactCustomMessageRenderer, ReactCustomMessageRendererPosition, ReactFrontendTool, ReactHumanInTheLoop, ReactToolCallRenderer, ResumeEntry, SandboxFunction, SandboxFunctionsContext, Thread, ToolsMenuItem, UseAgentUpdate, UseAttachmentsProps, UseAttachmentsReturn, UseInterruptConfig, UseLearnFromUserActionInCurrentThreadRecorder, UseLearnFromUserActionRecorder, UseLearningContainersArgs, UseLearningContainersInCurrentThreadArgs, UseMemoriesResult, UseThreadsInput, UseThreadsResult, WildcardToolCallRender, a2uiDefaultTheme, createA2UIMessageRenderer, defineToolCallRenderer, getIntelligenceTurnAnchors, useAgent, useAgentContext, useAttachments, useCapabilities, useComponent, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useDefaultRenderTool, useFrontendTool, useHumanInTheLoop, useInterrupt, useLearnFromUserAction, useLearnFromUserActionInCurrentThread, useLearningContainers, useLearningContainersInCurrentThread, useMemories, useRenderActivityMessage, useRenderCustomMessages, useRenderTool, useRenderToolCall, useSandboxFunctions, useSuggestions, useThreads, ɵMcpFollowUpHost, ɵrunMcpFollowUp };
|
|
5
|
+
export { type A2UIActionInterceptor, type A2UIMessageRendererOptions, type A2UIRecoveryRendererOptions, type A2UITheme, type A2UIUserAction, AgentContextInput, Attachment, AttachmentModality, AttachmentsConfig, AudioRecorderError, AudioRecorderState, AutoScrollMode, CopilotChat, CopilotChatAssistantMessage, CopilotChatAssistantMessageProps, CopilotChatAttachmentQueue, CopilotChatAttachmentRenderer, CopilotChatAudioRecorder, CopilotChatConfigurationProvider, CopilotChatConfigurationProviderProps, CopilotChatConfigurationValue, CopilotChatInput, CopilotChatInputProps, CopilotChatLabels, CopilotChatMessageView, CopilotChatMessageViewProps, CopilotChatProps, CopilotChatReasoningMessage, CopilotChatReasoningMessageProps, CopilotChatSuggestionPill, CopilotChatSuggestionPillProps, CopilotChatSuggestionView, CopilotChatSuggestionViewProps, CopilotChatToggleButton, DefaultCloseIcon as CopilotChatToggleButtonCloseIcon, DefaultOpenIcon as CopilotChatToggleButtonOpenIcon, CopilotChatToggleButtonProps, CopilotChatToolCallsView, CopilotChatToolCallsViewProps, CopilotChatUserMessage, CopilotChatUserMessageProps, CopilotChatView, CopilotChatViewProps, CopilotKit, CopilotKitContextValue, CopilotKitCoreReact, CopilotKitCoreReactConfig, CopilotKitCoreReactSubscriber, CopilotKitInspector, CopilotKitInspectorProps, type CopilotKitProps, CopilotKitProvider, CopilotKitProviderProps, CopilotModalHeader, CopilotModalHeaderProps, CopilotPopup, CopilotPopupProps, CopilotPopupView, CopilotPopupViewProps, CopilotSidebar, CopilotSidebarProps, CopilotSidebarView, CopilotSidebarViewProps, CopilotThreadsDrawer, CopilotThreadsDrawerProps, CopilotThreadsDrawerRowRenderer, GenerateSandboxedUiArgs, GenerateSandboxedUiArgsSchema, INTELLIGENCE_TURN_HEAD, InspectorAnchor, IntelligenceIndicator, IntelligenceIndicatorProps, IntelligenceIndicatorStatus, IntelligenceIndicatorView, IntelligenceIndicatorViewProps, Interrupt, InterruptCancelFn, InterruptEvent, InterruptHandlerProps, InterruptRenderProps, InterruptResolveFn, JsonSerializable, LearnFromUserActionInCurrentThreadInput, LearnFromUserActionInput, LearnFromUserActionResult, MCPAppsActivityContent, MCPAppsActivityContentSchema, MCPAppsActivityRenderer, MCPAppsActivityType, Memory, MemoryChanges, MemoryKind, MemoryScope, NewMemory, OpenGenerativeUIActivityRenderer, OpenGenerativeUIActivityType, OpenGenerativeUIContent, OpenGenerativeUIContentSchema, OpenGenerativeUIToolRenderer, ReactActivityMessageRenderer, ReactCustomMessageRenderer, ReactCustomMessageRendererPosition, ReactFrontendTool, ReactHumanInTheLoop, ReactToolCallRenderer, ResumeEntry, SandboxFunction, SandboxFunctionsContext, Thread, ToolsMenuItem, UseAgentUpdate, UseAttachmentsProps, UseAttachmentsReturn, UseInterruptConfig, UseLearnFromUserActionInCurrentThreadRecorder, UseLearnFromUserActionRecorder, UseLearningContainersArgs, UseLearningContainersInCurrentThreadArgs, UseMemoriesResult, UseThreadsInput, UseThreadsResult, WildcardToolCallRender, a2uiDefaultTheme, createA2UIMessageRenderer, defineToolCallRenderer, getIntelligenceTurnAnchors, useAgent, useAgentContext, useAttachments, useCapabilities, useComponent, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useDefaultRenderTool, useFrontendTool, useHumanInTheLoop, useInterrupt, useLearnFromUserAction, useLearnFromUserActionInCurrentThread, useLearningContainers, useLearningContainersInCurrentThread, useLicenseContext, useMemories, useRenderActivityMessage, useRenderCustomMessages, useRenderTool, useRenderToolCall, useSandboxFunctions, useSuggestions, useThreads, ɵMcpFollowUpHost, ɵrunMcpFollowUp };
|
package/dist/v2/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as useRenderTool, $t as CopilotPopupViewProps, A as UseAttachmentsReturn, An as CopilotChatAssistantMessage, At as MCPAppsActivityType, B as useMemories, Bn as CopilotChatLabels, Bt as CopilotChatAttachmentQueue, C as MemoryScope, Cn as CopilotChatSuggestionViewProps, Ct as OpenGenerativeUIActivityType, D as UseLearningContainersArgs, Dn as CopilotChatReasoningMessageProps, Dt as MCPAppsActivityContent, E as useLearningContainersInCurrentThread, En as CopilotChatReasoningMessage, Et as OpenGenerativeUIToolRenderer, F as LearnFromUserActionInput, Fn as CopilotChatInputProps, Ft as WildcardToolCallRender, G as AgentContextInput, Gt as UseThreadsInput, H as useInterrupt, Hn as AudioRecorderError, Ht as CopilotThreadsDrawerProps, I as LearnFromUserActionResult, In as ToolsMenuItem, It as Attachment, J as useCapabilities, Jt as CopilotPopup, K as JsonSerializable, Kt as UseThreadsResult, L as UseLearnFromUserActionRecorder, Ln as CopilotChatConfigurationProvider, Lt as AttachmentModality, M as LearnFromUserActionInCurrentThreadInput, Mn as CopilotChatToolCallsView, Mt as ɵrunMcpFollowUp, N as UseLearnFromUserActionInCurrentThreadRecorder, Nn as CopilotChatToolCallsViewProps, Nt as CopilotKitInspector, O as useLearningContainers, On as CopilotChatUserMessage, Ot as MCPAppsActivityContentSchema, P as useLearnFromUserActionInCurrentThread, Pn as CopilotChatInput, Pt as CopilotKitInspectorProps, Q as useDefaultRenderTool, Qt as CopilotPopupView, R as useLearnFromUserAction, Rn as CopilotChatConfigurationProviderProps, Rt as AttachmentsConfig, S as MemoryKind, Sn as CopilotChatSuggestionView, St as OpenGenerativeUIActivityRenderer, T as UseLearningContainersInCurrentThreadArgs, Tn as CopilotChatSuggestionPillProps, Tt as OpenGenerativeUIContentSchema, U as useConfigureSuggestions, Un as AudioRecorderState, Ut as CopilotThreadsDrawerRowRenderer, V as UseInterruptConfig, Vn as useCopilotChatConfiguration, Vt as CopilotThreadsDrawer, W as useSuggestions, Wn as CopilotChatAudioRecorder, Wt as Thread, X as useAgent, Xt as CopilotSidebar, Y as UseAgentUpdate, Yt as CopilotPopupProps, Z as useHumanInTheLoop, Zt as CopilotSidebarProps, _ as useCopilotKit, _n as IntelligenceIndicatorProps, _t as ReactCustomMessageRenderer, a as A2UIMessageRendererOptions, an as CopilotChatToggleButtonProps, at as InterruptCancelFn, b as Memory, bn as IntelligenceIndicatorView, bt as GenerateSandboxedUiArgs, c as CopilotKitCoreReact, cn as CopilotChat, ct as InterruptRenderProps, d as InspectorAnchor, dn as CopilotChatViewProps, dt as defineToolCallRenderer, en as CopilotSidebarView, et as useComponent, f as SandboxFunctionsContext, fn as AutoScrollMode, ft as ReactHumanInTheLoop, g as CopilotKitProviderProps, gn as IntelligenceIndicator, gt as useRenderCustomMessages, h as CopilotKitProvider, hn as INTELLIGENCE_TURN_HEAD, ht as ReactToolCallRenderer, i as A2UIActionInterceptor, in as CopilotChatToggleButton, it as Interrupt, j as useAttachments, jn as CopilotChatAssistantMessageProps, jt as ɵMcpFollowUpHost, k as UseAttachmentsProps, kn as CopilotChatUserMessageProps, kt as MCPAppsActivityRenderer, l as CopilotKitCoreReactConfig, ln as CopilotChatProps, lt as InterruptResolveFn, m as CopilotKitContextValue, mn as CopilotChatMessageViewProps, mt as ReactActivityMessageRenderer, nn as CopilotModalHeader, nt as useRenderActivityMessage, o as A2UIUserAction, on as DefaultCloseIcon, ot as InterruptEvent, p as useSandboxFunctions, pn as CopilotChatMessageView, pt as ReactFrontendTool, q as useAgentContext, qt as useThreads, r as CopilotKitProps, rn as CopilotModalHeaderProps, rt as SandboxFunction, s as createA2UIMessageRenderer, sn as DefaultOpenIcon, st as InterruptHandlerProps, t as CopilotKit, tn as CopilotSidebarViewProps, tt as useFrontendTool, u as CopilotKitCoreReactSubscriber, un as CopilotChatView, ut as ResumeEntry, v as useLicenseContext, vn as getIntelligenceTurnAnchors, vt as ReactCustomMessageRendererPosition, w as NewMemory, wn as CopilotChatSuggestionPill, wt as OpenGenerativeUIContent, x as MemoryChanges, xn as IntelligenceIndicatorViewProps, xt as GenerateSandboxedUiArgsSchema, y as A2UIRecoveryRendererOptions, yn as IntelligenceIndicatorStatus, yt as useRenderToolCall, z as UseMemoriesResult, zn as CopilotChatConfigurationValue, zt as CopilotChatAttachmentRenderer } from "../copilotkit-BrfN8YeF.mjs";
|
|
2
2
|
import { Theme as A2UITheme, defaultTheme as a2uiDefaultTheme } from "@copilotkit/a2ui-renderer";
|
|
3
3
|
export * from "@copilotkit/core";
|
|
4
4
|
export * from "@ag-ui/client";
|
|
5
|
-
export { type A2UIActionInterceptor, type A2UIMessageRendererOptions, type A2UIRecoveryRendererOptions, type A2UITheme, type A2UIUserAction, AgentContextInput, Attachment, AttachmentModality, AttachmentsConfig, AudioRecorderError, AudioRecorderState, AutoScrollMode, CopilotChat, CopilotChatAssistantMessage, CopilotChatAssistantMessageProps, CopilotChatAttachmentQueue, CopilotChatAttachmentRenderer, CopilotChatAudioRecorder, CopilotChatConfigurationProvider, CopilotChatConfigurationProviderProps, CopilotChatConfigurationValue, CopilotChatInput, CopilotChatInputProps, CopilotChatLabels, CopilotChatMessageView, CopilotChatMessageViewProps, CopilotChatProps, CopilotChatReasoningMessage, CopilotChatReasoningMessageProps, CopilotChatSuggestionPill, CopilotChatSuggestionPillProps, CopilotChatSuggestionView, CopilotChatSuggestionViewProps, CopilotChatToggleButton, DefaultCloseIcon as CopilotChatToggleButtonCloseIcon, DefaultOpenIcon as CopilotChatToggleButtonOpenIcon, CopilotChatToggleButtonProps, CopilotChatToolCallsView, CopilotChatToolCallsViewProps, CopilotChatUserMessage, CopilotChatUserMessageProps, CopilotChatView, CopilotChatViewProps, CopilotKit, CopilotKitContextValue, CopilotKitCoreReact, CopilotKitCoreReactConfig, CopilotKitCoreReactSubscriber, CopilotKitInspector, CopilotKitInspectorProps, type CopilotKitProps, CopilotKitProvider, CopilotKitProviderProps, CopilotModalHeader, CopilotModalHeaderProps, CopilotPopup, CopilotPopupProps, CopilotPopupView, CopilotPopupViewProps, CopilotSidebar, CopilotSidebarProps, CopilotSidebarView, CopilotSidebarViewProps, CopilotThreadsDrawer, CopilotThreadsDrawerProps, CopilotThreadsDrawerRowRenderer, GenerateSandboxedUiArgs, GenerateSandboxedUiArgsSchema, INTELLIGENCE_TURN_HEAD, InspectorAnchor, IntelligenceIndicator, IntelligenceIndicatorProps, IntelligenceIndicatorStatus, IntelligenceIndicatorView, IntelligenceIndicatorViewProps, Interrupt, InterruptCancelFn, InterruptEvent, InterruptHandlerProps, InterruptRenderProps, InterruptResolveFn, JsonSerializable, LearnFromUserActionInCurrentThreadInput, LearnFromUserActionInput, LearnFromUserActionResult, MCPAppsActivityContent, MCPAppsActivityContentSchema, MCPAppsActivityRenderer, MCPAppsActivityType, Memory, MemoryChanges, MemoryKind, MemoryScope, NewMemory, OpenGenerativeUIActivityRenderer, OpenGenerativeUIActivityType, OpenGenerativeUIContent, OpenGenerativeUIContentSchema, OpenGenerativeUIToolRenderer, ReactActivityMessageRenderer, ReactCustomMessageRenderer, ReactCustomMessageRendererPosition, ReactFrontendTool, ReactHumanInTheLoop, ReactToolCallRenderer, ResumeEntry, SandboxFunction, SandboxFunctionsContext, Thread, ToolsMenuItem, UseAgentUpdate, UseAttachmentsProps, UseAttachmentsReturn, UseInterruptConfig, UseLearnFromUserActionInCurrentThreadRecorder, UseLearnFromUserActionRecorder, UseLearningContainersArgs, UseLearningContainersInCurrentThreadArgs, UseMemoriesResult, UseThreadsInput, UseThreadsResult, WildcardToolCallRender, a2uiDefaultTheme, createA2UIMessageRenderer, defineToolCallRenderer, getIntelligenceTurnAnchors, useAgent, useAgentContext, useAttachments, useCapabilities, useComponent, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useDefaultRenderTool, useFrontendTool, useHumanInTheLoop, useInterrupt, useLearnFromUserAction, useLearnFromUserActionInCurrentThread, useLearningContainers, useLearningContainersInCurrentThread, useMemories, useRenderActivityMessage, useRenderCustomMessages, useRenderTool, useRenderToolCall, useSandboxFunctions, useSuggestions, useThreads, ɵMcpFollowUpHost, ɵrunMcpFollowUp };
|
|
5
|
+
export { type A2UIActionInterceptor, type A2UIMessageRendererOptions, type A2UIRecoveryRendererOptions, type A2UITheme, type A2UIUserAction, AgentContextInput, Attachment, AttachmentModality, AttachmentsConfig, AudioRecorderError, AudioRecorderState, AutoScrollMode, CopilotChat, CopilotChatAssistantMessage, CopilotChatAssistantMessageProps, CopilotChatAttachmentQueue, CopilotChatAttachmentRenderer, CopilotChatAudioRecorder, CopilotChatConfigurationProvider, CopilotChatConfigurationProviderProps, CopilotChatConfigurationValue, CopilotChatInput, CopilotChatInputProps, CopilotChatLabels, CopilotChatMessageView, CopilotChatMessageViewProps, CopilotChatProps, CopilotChatReasoningMessage, CopilotChatReasoningMessageProps, CopilotChatSuggestionPill, CopilotChatSuggestionPillProps, CopilotChatSuggestionView, CopilotChatSuggestionViewProps, CopilotChatToggleButton, DefaultCloseIcon as CopilotChatToggleButtonCloseIcon, DefaultOpenIcon as CopilotChatToggleButtonOpenIcon, CopilotChatToggleButtonProps, CopilotChatToolCallsView, CopilotChatToolCallsViewProps, CopilotChatUserMessage, CopilotChatUserMessageProps, CopilotChatView, CopilotChatViewProps, CopilotKit, CopilotKitContextValue, CopilotKitCoreReact, CopilotKitCoreReactConfig, CopilotKitCoreReactSubscriber, CopilotKitInspector, CopilotKitInspectorProps, type CopilotKitProps, CopilotKitProvider, CopilotKitProviderProps, CopilotModalHeader, CopilotModalHeaderProps, CopilotPopup, CopilotPopupProps, CopilotPopupView, CopilotPopupViewProps, CopilotSidebar, CopilotSidebarProps, CopilotSidebarView, CopilotSidebarViewProps, CopilotThreadsDrawer, CopilotThreadsDrawerProps, CopilotThreadsDrawerRowRenderer, GenerateSandboxedUiArgs, GenerateSandboxedUiArgsSchema, INTELLIGENCE_TURN_HEAD, InspectorAnchor, IntelligenceIndicator, IntelligenceIndicatorProps, IntelligenceIndicatorStatus, IntelligenceIndicatorView, IntelligenceIndicatorViewProps, Interrupt, InterruptCancelFn, InterruptEvent, InterruptHandlerProps, InterruptRenderProps, InterruptResolveFn, JsonSerializable, LearnFromUserActionInCurrentThreadInput, LearnFromUserActionInput, LearnFromUserActionResult, MCPAppsActivityContent, MCPAppsActivityContentSchema, MCPAppsActivityRenderer, MCPAppsActivityType, Memory, MemoryChanges, MemoryKind, MemoryScope, NewMemory, OpenGenerativeUIActivityRenderer, OpenGenerativeUIActivityType, OpenGenerativeUIContent, OpenGenerativeUIContentSchema, OpenGenerativeUIToolRenderer, ReactActivityMessageRenderer, ReactCustomMessageRenderer, ReactCustomMessageRendererPosition, ReactFrontendTool, ReactHumanInTheLoop, ReactToolCallRenderer, ResumeEntry, SandboxFunction, SandboxFunctionsContext, Thread, ToolsMenuItem, UseAgentUpdate, UseAttachmentsProps, UseAttachmentsReturn, UseInterruptConfig, UseLearnFromUserActionInCurrentThreadRecorder, UseLearnFromUserActionRecorder, UseLearningContainersArgs, UseLearningContainersInCurrentThreadArgs, UseMemoriesResult, UseThreadsInput, UseThreadsResult, WildcardToolCallRender, a2uiDefaultTheme, createA2UIMessageRenderer, defineToolCallRenderer, getIntelligenceTurnAnchors, useAgent, useAgentContext, useAttachments, useCapabilities, useComponent, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useDefaultRenderTool, useFrontendTool, useHumanInTheLoop, useInterrupt, useLearnFromUserAction, useLearnFromUserActionInCurrentThread, useLearningContainers, useLearningContainersInCurrentThread, useLicenseContext, useMemories, useRenderActivityMessage, useRenderCustomMessages, useRenderTool, useRenderToolCall, useSandboxFunctions, useSuggestions, useThreads, ɵMcpFollowUpHost, ɵrunMcpFollowUp };
|
package/dist/v2/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { $ as useCapabilities, A as CopilotChatMessageView, At as
|
|
3
|
+
import { $ as useCapabilities, A as CopilotChatMessageView, At as CopilotChatAudioRecorder, B as CopilotChatAssistantMessage_default, C as CopilotModalHeader, Ct as MCPAppsActivityRenderer, D as CopilotChat, Dt as useRenderToolCall, E as DefaultOpenIcon, Et as CopilotKitInspector, F as CopilotChatSuggestionView, G as useLearnFromUserActionInCurrentThread, H as useLearningContainersInCurrentThread, I as CopilotChatSuggestionPill, J as useThreads, K as useLearnFromUserAction, L as CopilotChatReasoningMessage_default, M as IntelligenceIndicator, Mt as useCopilotChatConfiguration, N as getIntelligenceTurnAnchors, O as CopilotChatView_default, Ot as CopilotChatInput_default, P as IntelligenceIndicatorView, Q as useAgentContext, R as CopilotChatUserMessage_default, S as CopilotSidebarView, St as MCPAppsActivityContentSchema, T as DefaultCloseIcon, Tt as ɵrunMcpFollowUp, U as useLearningContainers, V as CopilotChatToolCallsView, W as useAttachments, X as useConfigureSuggestions, Y as useInterrupt, Z as useSuggestions, _ as WildcardToolCallRender, _t as OpenGenerativeUIActivityType, at as useComponent, b as CopilotSidebar, bt as SandboxFunctionsContext, ct as useRenderCustomMessages, dt as useLicenseContext, et as UseAgentUpdate, ft as CopilotKitCoreReact, gt as OpenGenerativeUIActivityRenderer, ht as GenerateSandboxedUiArgsSchema, it as useRenderTool, j as INTELLIGENCE_TURN_HEAD, jt as CopilotChatConfigurationProvider, k as CopilotChatAttachmentQueue, kt as AudioRecorderError, lt as CopilotKitProvider, mt as createA2UIMessageRenderer, nt as useHumanInTheLoop, ot as useFrontendTool, pt as defineToolCallRenderer, q as useMemories, rt as useDefaultRenderTool, st as useRenderActivityMessage, t as CopilotKit, tt as useAgent, ut as useCopilotKit, v as CopilotThreadsDrawer, vt as OpenGenerativeUIContentSchema, w as CopilotChatToggleButton, wt as MCPAppsActivityType, x as CopilotPopupView, xt as useSandboxFunctions, y as CopilotPopup, yt as OpenGenerativeUIToolRenderer, z as CopilotChatAttachmentRenderer } from "../copilotkit-Ck0RL8hh.mjs";
|
|
4
4
|
import "./index.css";
|
|
5
5
|
import { defaultTheme as a2uiDefaultTheme } from "@copilotkit/a2ui-renderer";
|
|
6
6
|
|
|
@@ -8,4 +8,4 @@ export * from "@copilotkit/core"
|
|
|
8
8
|
|
|
9
9
|
export * from "@ag-ui/client"
|
|
10
10
|
|
|
11
|
-
export { AudioRecorderError, CopilotChat, CopilotChatAssistantMessage_default as CopilotChatAssistantMessage, CopilotChatAttachmentQueue, CopilotChatAttachmentRenderer, CopilotChatAudioRecorder, CopilotChatConfigurationProvider, CopilotChatInput_default as CopilotChatInput, CopilotChatMessageView, CopilotChatReasoningMessage_default as CopilotChatReasoningMessage, CopilotChatSuggestionPill, CopilotChatSuggestionView, CopilotChatToggleButton, DefaultCloseIcon as CopilotChatToggleButtonCloseIcon, DefaultOpenIcon as CopilotChatToggleButtonOpenIcon, CopilotChatToolCallsView, CopilotChatUserMessage_default as CopilotChatUserMessage, CopilotChatView_default as CopilotChatView, CopilotKit, CopilotKitCoreReact, CopilotKitInspector, CopilotKitProvider, CopilotModalHeader, CopilotPopup, CopilotPopupView, CopilotSidebar, CopilotSidebarView, CopilotThreadsDrawer, GenerateSandboxedUiArgsSchema, INTELLIGENCE_TURN_HEAD, IntelligenceIndicator, IntelligenceIndicatorView, MCPAppsActivityContentSchema, MCPAppsActivityRenderer, MCPAppsActivityType, OpenGenerativeUIActivityRenderer, OpenGenerativeUIActivityType, OpenGenerativeUIContentSchema, OpenGenerativeUIToolRenderer, SandboxFunctionsContext, UseAgentUpdate, WildcardToolCallRender, a2uiDefaultTheme, createA2UIMessageRenderer, defineToolCallRenderer, getIntelligenceTurnAnchors, useAgent, useAgentContext, useAttachments, useCapabilities, useComponent, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useDefaultRenderTool, useFrontendTool, useHumanInTheLoop, useInterrupt, useLearnFromUserAction, useLearnFromUserActionInCurrentThread, useLearningContainers, useLearningContainersInCurrentThread, useMemories, useRenderActivityMessage, useRenderCustomMessages, useRenderTool, useRenderToolCall, useSandboxFunctions, useSuggestions, useThreads, ɵrunMcpFollowUp };
|
|
11
|
+
export { AudioRecorderError, CopilotChat, CopilotChatAssistantMessage_default as CopilotChatAssistantMessage, CopilotChatAttachmentQueue, CopilotChatAttachmentRenderer, CopilotChatAudioRecorder, CopilotChatConfigurationProvider, CopilotChatInput_default as CopilotChatInput, CopilotChatMessageView, CopilotChatReasoningMessage_default as CopilotChatReasoningMessage, CopilotChatSuggestionPill, CopilotChatSuggestionView, CopilotChatToggleButton, DefaultCloseIcon as CopilotChatToggleButtonCloseIcon, DefaultOpenIcon as CopilotChatToggleButtonOpenIcon, CopilotChatToolCallsView, CopilotChatUserMessage_default as CopilotChatUserMessage, CopilotChatView_default as CopilotChatView, CopilotKit, CopilotKitCoreReact, CopilotKitInspector, CopilotKitProvider, CopilotModalHeader, CopilotPopup, CopilotPopupView, CopilotSidebar, CopilotSidebarView, CopilotThreadsDrawer, GenerateSandboxedUiArgsSchema, INTELLIGENCE_TURN_HEAD, IntelligenceIndicator, IntelligenceIndicatorView, MCPAppsActivityContentSchema, MCPAppsActivityRenderer, MCPAppsActivityType, OpenGenerativeUIActivityRenderer, OpenGenerativeUIActivityType, OpenGenerativeUIContentSchema, OpenGenerativeUIToolRenderer, SandboxFunctionsContext, UseAgentUpdate, WildcardToolCallRender, a2uiDefaultTheme, createA2UIMessageRenderer, defineToolCallRenderer, getIntelligenceTurnAnchors, useAgent, useAgentContext, useAttachments, useCapabilities, useComponent, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useDefaultRenderTool, useFrontendTool, useHumanInTheLoop, useInterrupt, useLearnFromUserAction, useLearnFromUserActionInCurrentThread, useLearningContainers, useLearningContainersInCurrentThread, useLicenseContext, useMemories, useRenderActivityMessage, useRenderCustomMessages, useRenderTool, useRenderToolCall, useSandboxFunctions, useSuggestions, useThreads, ɵrunMcpFollowUp };
|
package/dist/v2/index.umd.js
CHANGED
|
@@ -5417,8 +5417,8 @@ window.parent.postMessage({jsonrpc:"2.0",method:"ui/notifications/sandbox-proxy-
|
|
|
5417
5417
|
* Low-level function that posts an arbitrary annotation to the CopilotKit
|
|
5418
5418
|
* runtime's general annotation endpoint (`POST /annotate`).
|
|
5419
5419
|
*
|
|
5420
|
-
* This is the single transport entry point for
|
|
5421
|
-
*
|
|
5420
|
+
* This is the single transport entry point for annotations. Higher-level
|
|
5421
|
+
* hooks such as `useLearnFromUserAction` build the `type`/`payload` pair
|
|
5422
5422
|
* for their specific annotation shape and delegate the HTTP call here.
|
|
5423
5423
|
*
|
|
5424
5424
|
* The function uses the same transport as `useLearnFromUserAction`:
|
|
@@ -5743,7 +5743,8 @@ window.parent.postMessage({jsonrpc:"2.0",method:"ui/notifications/sandbox-proxy-
|
|
|
5743
5743
|
/** The default learning containers value. Matches the backend default. */
|
|
5744
5744
|
const DEFAULT_CONTAINERS = ["project"];
|
|
5745
5745
|
/**
|
|
5746
|
-
*
|
|
5746
|
+
* Legacy compatibility hook that keeps a thread's plural learning-container
|
|
5747
|
+
* annotation in sync by emitting
|
|
5747
5748
|
* `set_learning_containers` annotations via the CopilotKit runtime annotate
|
|
5748
5749
|
* endpoint (`POST ${runtimeUrl}/annotate`).
|
|
5749
5750
|
*
|
|
@@ -5773,6 +5774,10 @@ window.parent.postMessage({jsonrpc:"2.0",method:"ui/notifications/sandbox-proxy-
|
|
|
5773
5774
|
* // ...
|
|
5774
5775
|
* }
|
|
5775
5776
|
* ```
|
|
5777
|
+
*
|
|
5778
|
+
* @deprecated Legacy plural-container annotation compatibility only. New
|
|
5779
|
+
* Intelligence runtimes assign one container with `ɵlearning.containerId` on
|
|
5780
|
+
* `CopilotRuntime`.
|
|
5776
5781
|
*/
|
|
5777
5782
|
function useLearningContainers({ threadId, learningContainers }) {
|
|
5778
5783
|
const { copilotkit } = useCopilotKit();
|
|
@@ -5850,8 +5855,8 @@ window.parent.postMessage({jsonrpc:"2.0",method:"ui/notifications/sandbox-proxy-
|
|
|
5850
5855
|
//#endregion
|
|
5851
5856
|
//#region src/v2/hooks/use-learning-containers-in-current-thread.tsx
|
|
5852
5857
|
/**
|
|
5853
|
-
*
|
|
5854
|
-
* sync. The `threadId` is sourced from the surrounding
|
|
5858
|
+
* Legacy compatibility hook that keeps the **current chat thread's** plural
|
|
5859
|
+
* learning-container annotation in sync. The `threadId` is sourced from the surrounding
|
|
5855
5860
|
* `<CopilotChatConfigurationProvider>` (the same provider `<CopilotChat>`,
|
|
5856
5861
|
* `<CopilotSidebar>`, and friends set up), so callers in a chat-aware
|
|
5857
5862
|
* subtree don't need to thread an id through manually.
|
|
@@ -5875,6 +5880,10 @@ window.parent.postMessage({jsonrpc:"2.0",method:"ui/notifications/sandbox-proxy-
|
|
|
5875
5880
|
* // ...
|
|
5876
5881
|
* }
|
|
5877
5882
|
* ```
|
|
5883
|
+
*
|
|
5884
|
+
* @deprecated Legacy plural-container annotation compatibility only. New
|
|
5885
|
+
* Intelligence runtimes assign one container with `ɵlearning.containerId` on
|
|
5886
|
+
* `CopilotRuntime`.
|
|
5878
5887
|
*/
|
|
5879
5888
|
function useLearningContainersInCurrentThread({ learningContainers }) {
|
|
5880
5889
|
const threadId = useCopilotChatConfiguration()?.threadId;
|
|
@@ -11763,6 +11772,7 @@ exports.useLearnFromUserAction = useLearnFromUserAction;
|
|
|
11763
11772
|
exports.useLearnFromUserActionInCurrentThread = useLearnFromUserActionInCurrentThread;
|
|
11764
11773
|
exports.useLearningContainers = useLearningContainers;
|
|
11765
11774
|
exports.useLearningContainersInCurrentThread = useLearningContainersInCurrentThread;
|
|
11775
|
+
exports.useLicenseContext = useLicenseContext;
|
|
11766
11776
|
exports.useMemories = useMemories;
|
|
11767
11777
|
exports.useRenderActivityMessage = useRenderActivityMessage;
|
|
11768
11778
|
exports.useRenderCustomMessages = useRenderCustomMessages;
|