@copilotkit/react-core 1.56.5 → 1.57.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-OmIUrWym.mjs → copilotkit-CPe2-340.mjs} +11 -2
- package/dist/copilotkit-CPe2-340.mjs.map +1 -0
- package/dist/{copilotkit-DMFu29Kx.cjs → copilotkit-DGbvw8n2.cjs} +11 -2
- package/dist/copilotkit-DGbvw8n2.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.mjs +1 -1
- package/dist/v2/index.umd.js +10 -1
- package/dist/v2/index.umd.js.map +1 -1
- package/package.json +6 -6
- package/src/v2/hooks/__tests__/use-threads.test.tsx +229 -27
- package/src/v2/hooks/use-threads.tsx +7 -1
- package/dist/copilotkit-DMFu29Kx.cjs.map +0 -1
- package/dist/copilotkit-OmIUrWym.mjs.map +0 -1
|
@@ -4643,6 +4643,16 @@ function useThreads$1({ agentId, includeArchived, limit }) {
|
|
|
4643
4643
|
};
|
|
4644
4644
|
}, [store]);
|
|
4645
4645
|
const runtimeStatus = copilotkit.runtimeConnectionStatus;
|
|
4646
|
+
useEffect(() => {
|
|
4647
|
+
copilotkit.registerThreadStore(agentId, store);
|
|
4648
|
+
return () => {
|
|
4649
|
+
copilotkit.unregisterThreadStore(agentId);
|
|
4650
|
+
};
|
|
4651
|
+
}, [
|
|
4652
|
+
copilotkit,
|
|
4653
|
+
agentId,
|
|
4654
|
+
store
|
|
4655
|
+
]);
|
|
4646
4656
|
useEffect(() => {
|
|
4647
4657
|
if (!copilotkit.runtimeUrl) {
|
|
4648
4658
|
store.setContext(null);
|
|
@@ -4666,7 +4676,6 @@ function useThreads$1({ agentId, includeArchived, limit }) {
|
|
|
4666
4676
|
headersKey,
|
|
4667
4677
|
copilotkit.intelligence?.wsUrl,
|
|
4668
4678
|
agentId,
|
|
4669
|
-
copilotkit.headers,
|
|
4670
4679
|
includeArchived,
|
|
4671
4680
|
limit
|
|
4672
4681
|
]);
|
|
@@ -9794,4 +9803,4 @@ function validateProps(props) {
|
|
|
9794
9803
|
|
|
9795
9804
|
//#endregion
|
|
9796
9805
|
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 };
|
|
9797
|
-
//# sourceMappingURL=copilotkit-
|
|
9806
|
+
//# sourceMappingURL=copilotkit-CPe2-340.mjs.map
|