@copilotkit/react-core 1.9.2-next.2 → 1.9.2-next.3
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/CHANGELOG.md +8 -0
- package/dist/{chunk-OUSWPVDT.mjs → chunk-2XSUXRGG.mjs} +2 -2
- package/dist/{chunk-L6QAOAE4.mjs → chunk-3XXVDQ7Z.mjs} +7 -6
- package/dist/{chunk-L6QAOAE4.mjs.map → chunk-3XXVDQ7Z.mjs.map} +1 -1
- package/dist/{chunk-4I7PLQF7.mjs → chunk-C3SYYVMR.mjs} +3 -3
- package/dist/{chunk-MGIXEJWG.mjs → chunk-HJP2RX5R.mjs} +4 -4
- package/dist/{chunk-CMKIDDQL.mjs → chunk-IVXB3GYK.mjs} +5 -5
- package/dist/{chunk-FRZZPPIV.mjs → chunk-PUNALT2S.mjs} +2 -2
- package/dist/{chunk-NNSXCFQO.mjs → chunk-QRGDQSGZ.mjs} +4 -3
- package/dist/chunk-QRGDQSGZ.mjs.map +1 -0
- package/dist/components/copilot-provider/copilot-messages.js +2 -1
- package/dist/components/copilot-provider/copilot-messages.js.map +1 -1
- package/dist/components/copilot-provider/copilot-messages.mjs +1 -1
- package/dist/components/copilot-provider/copilotkit.js +4 -2
- package/dist/components/copilot-provider/copilotkit.js.map +1 -1
- package/dist/components/copilot-provider/copilotkit.mjs +6 -6
- package/dist/components/copilot-provider/index.js +4 -2
- package/dist/components/copilot-provider/index.js.map +1 -1
- package/dist/components/copilot-provider/index.mjs +6 -6
- package/dist/components/index.js +4 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +6 -6
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +26 -26
- package/dist/hooks/use-chat.mjs +3 -3
- package/dist/hooks/use-coagent.js.map +1 -1
- package/dist/hooks/use-coagent.mjs +10 -10
- package/dist/hooks/use-copilot-chat.js.map +1 -1
- package/dist/hooks/use-copilot-chat.mjs +9 -9
- package/dist/hooks/use-langgraph-interrupt.js.map +1 -1
- package/dist/hooks/use-langgraph-interrupt.mjs +10 -10
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -27
- package/dist/lib/copilot-task.js.map +1 -1
- package/dist/lib/copilot-task.mjs +7 -7
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +7 -7
- package/dist/utils/extract.js.map +1 -1
- package/dist/utils/extract.mjs +6 -6
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +6 -6
- package/package.json +3 -3
- package/src/components/copilot-provider/copilot-messages.tsx +4 -2
- package/src/components/copilot-provider/copilotkit.tsx +3 -1
- package/dist/chunk-NNSXCFQO.mjs.map +0 -1
- /package/dist/{chunk-OUSWPVDT.mjs.map → chunk-2XSUXRGG.mjs.map} +0 -0
- /package/dist/{chunk-4I7PLQF7.mjs.map → chunk-C3SYYVMR.mjs.map} +0 -0
- /package/dist/{chunk-MGIXEJWG.mjs.map → chunk-HJP2RX5R.mjs.map} +0 -0
- /package/dist/{chunk-CMKIDDQL.mjs.map → chunk-IVXB3GYK.mjs.map} +0 -0
- /package/dist/{chunk-FRZZPPIV.mjs.map → chunk-PUNALT2S.mjs.map} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useLangGraphInterrupt
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-L6QAOAE4.mjs";
|
|
3
|
+
} from "../chunk-2XSUXRGG.mjs";
|
|
4
|
+
import "../chunk-C3SYYVMR.mjs";
|
|
5
|
+
import "../chunk-3XXVDQ7Z.mjs";
|
|
7
6
|
import "../chunk-QQZLIEXK.mjs";
|
|
8
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-QRGDQSGZ.mjs";
|
|
8
|
+
import "../chunk-5FHSUKQL.mjs";
|
|
9
9
|
import "../chunk-RKTVJRK7.mjs";
|
|
10
10
|
import "../chunk-PMAFHQ7P.mjs";
|
|
11
|
-
import "../chunk-5FHSUKQL.mjs";
|
|
12
|
-
import "../chunk-DCTJZ742.mjs";
|
|
13
11
|
import "../chunk-HD2GE3DK.mjs";
|
|
14
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-YPSGKPDA.mjs";
|
|
13
|
+
import "../chunk-DCTJZ742.mjs";
|
|
14
|
+
import "../chunk-HJP2RX5R.mjs";
|
|
15
15
|
import "../chunk-4CEQJ2X6.mjs";
|
|
16
|
-
import "../chunk-RUY6MLHA.mjs";
|
|
17
|
-
import "../chunk-GFJW4RIM.mjs";
|
|
18
16
|
import "../chunk-CCESTGAM.mjs";
|
|
19
17
|
import "../chunk-O7ARI5CV.mjs";
|
|
18
|
+
import "../chunk-RUY6MLHA.mjs";
|
|
19
|
+
import "../chunk-GFJW4RIM.mjs";
|
|
20
20
|
import "../chunk-VRXANACV.mjs";
|
|
21
21
|
import "../chunk-6KGEF242.mjs";
|
|
22
22
|
import "../chunk-SKC7AJIV.mjs";
|
package/dist/index.js
CHANGED
|
@@ -807,6 +807,7 @@ function CopilotMessages({ children }) {
|
|
|
807
807
|
});
|
|
808
808
|
void fetchMessages();
|
|
809
809
|
}, [threadId, agentSession == null ? void 0 : agentSession.agentName, runtimeClient]);
|
|
810
|
+
const memoizedChildren = (0, import_react6.useMemo)(() => children, [children]);
|
|
810
811
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
811
812
|
CopilotMessagesContext.Provider,
|
|
812
813
|
{
|
|
@@ -814,7 +815,7 @@ function CopilotMessages({ children }) {
|
|
|
814
815
|
messages,
|
|
815
816
|
setMessages
|
|
816
817
|
},
|
|
817
|
-
children
|
|
818
|
+
children: memoizedChildren
|
|
818
819
|
}
|
|
819
820
|
);
|
|
820
821
|
}
|
|
@@ -1901,6 +1902,7 @@ ${nonDocumentStrings}`;
|
|
|
1901
1902
|
const removeLangGraphInterruptAction = (0, import_react10.useCallback)(() => {
|
|
1902
1903
|
setLangGraphInterruptAction(null);
|
|
1903
1904
|
}, []);
|
|
1905
|
+
const memoizedChildren = (0, import_react10.useMemo)(() => children, [children]);
|
|
1904
1906
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1905
1907
|
CopilotContext.Provider,
|
|
1906
1908
|
{
|
|
@@ -1955,7 +1957,7 @@ ${nonDocumentStrings}`;
|
|
|
1955
1957
|
setLangGraphInterruptAction,
|
|
1956
1958
|
removeLangGraphInterruptAction
|
|
1957
1959
|
},
|
|
1958
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CopilotMessages, { children })
|
|
1960
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CopilotMessages, { children: memoizedChildren })
|
|
1959
1961
|
}
|
|
1960
1962
|
);
|
|
1961
1963
|
}
|