@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,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotKit,
|
|
3
3
|
defaultCopilotContextCategories
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-3XXVDQ7Z.mjs";
|
|
5
5
|
import "../../chunk-QQZLIEXK.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-QRGDQSGZ.mjs";
|
|
7
|
+
import "../../chunk-5FHSUKQL.mjs";
|
|
7
8
|
import "../../chunk-RKTVJRK7.mjs";
|
|
8
9
|
import "../../chunk-PMAFHQ7P.mjs";
|
|
9
|
-
import "../../chunk-5FHSUKQL.mjs";
|
|
10
|
-
import "../../chunk-DCTJZ742.mjs";
|
|
11
10
|
import "../../chunk-HD2GE3DK.mjs";
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-GFJW4RIM.mjs";
|
|
11
|
+
import "../../chunk-DCTJZ742.mjs";
|
|
14
12
|
import "../../chunk-CCESTGAM.mjs";
|
|
15
13
|
import "../../chunk-O7ARI5CV.mjs";
|
|
14
|
+
import "../../chunk-RUY6MLHA.mjs";
|
|
15
|
+
import "../../chunk-GFJW4RIM.mjs";
|
|
16
16
|
import "../../chunk-VRXANACV.mjs";
|
|
17
17
|
import "../../chunk-6KGEF242.mjs";
|
|
18
18
|
import "../../chunk-SKC7AJIV.mjs";
|
package/dist/components/index.js
CHANGED
|
@@ -776,6 +776,7 @@ function CopilotMessages({ children }) {
|
|
|
776
776
|
});
|
|
777
777
|
void fetchMessages();
|
|
778
778
|
}, [threadId, agentSession == null ? void 0 : agentSession.agentName, runtimeClient]);
|
|
779
|
+
const memoizedChildren = (0, import_react6.useMemo)(() => children, [children]);
|
|
779
780
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
780
781
|
CopilotMessagesContext.Provider,
|
|
781
782
|
{
|
|
@@ -783,7 +784,7 @@ function CopilotMessages({ children }) {
|
|
|
783
784
|
messages,
|
|
784
785
|
setMessages
|
|
785
786
|
},
|
|
786
|
-
children
|
|
787
|
+
children: memoizedChildren
|
|
787
788
|
}
|
|
788
789
|
);
|
|
789
790
|
}
|
|
@@ -1724,6 +1725,7 @@ ${nonDocumentStrings}`;
|
|
|
1724
1725
|
const removeLangGraphInterruptAction = (0, import_react10.useCallback)(() => {
|
|
1725
1726
|
setLangGraphInterruptAction(null);
|
|
1726
1727
|
}, []);
|
|
1728
|
+
const memoizedChildren = (0, import_react10.useMemo)(() => children, [children]);
|
|
1727
1729
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1728
1730
|
CopilotContext.Provider,
|
|
1729
1731
|
{
|
|
@@ -1778,7 +1780,7 @@ ${nonDocumentStrings}`;
|
|
|
1778
1780
|
setLangGraphInterruptAction,
|
|
1779
1781
|
removeLangGraphInterruptAction
|
|
1780
1782
|
},
|
|
1781
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CopilotMessages, { children })
|
|
1783
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CopilotMessages, { children: memoizedChildren })
|
|
1782
1784
|
}
|
|
1783
1785
|
);
|
|
1784
1786
|
}
|