@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
|
@@ -4673,6 +4673,16 @@ function useThreads$1({ agentId, includeArchived, limit }) {
|
|
|
4673
4673
|
};
|
|
4674
4674
|
}, [store]);
|
|
4675
4675
|
const runtimeStatus = copilotkit.runtimeConnectionStatus;
|
|
4676
|
+
(0, react.useEffect)(() => {
|
|
4677
|
+
copilotkit.registerThreadStore(agentId, store);
|
|
4678
|
+
return () => {
|
|
4679
|
+
copilotkit.unregisterThreadStore(agentId);
|
|
4680
|
+
};
|
|
4681
|
+
}, [
|
|
4682
|
+
copilotkit,
|
|
4683
|
+
agentId,
|
|
4684
|
+
store
|
|
4685
|
+
]);
|
|
4676
4686
|
(0, react.useEffect)(() => {
|
|
4677
4687
|
if (!copilotkit.runtimeUrl) {
|
|
4678
4688
|
store.setContext(null);
|
|
@@ -4696,7 +4706,6 @@ function useThreads$1({ agentId, includeArchived, limit }) {
|
|
|
4696
4706
|
headersKey,
|
|
4697
4707
|
copilotkit.intelligence?.wsUrl,
|
|
4698
4708
|
agentId,
|
|
4699
|
-
copilotkit.headers,
|
|
4700
4709
|
includeArchived,
|
|
4701
4710
|
limit
|
|
4702
4711
|
]);
|
|
@@ -10243,4 +10252,4 @@ Object.defineProperty(exports, 'useToast', {
|
|
|
10243
10252
|
return useToast;
|
|
10244
10253
|
}
|
|
10245
10254
|
});
|
|
10246
|
-
//# sourceMappingURL=copilotkit-
|
|
10255
|
+
//# sourceMappingURL=copilotkit-DGbvw8n2.cjs.map
|