@copilotkit/react-core 1.10.5-next.4 → 1.10.5-next.5
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-DSDAZA3B.mjs → chunk-23SOG4FI.mjs} +4 -4
- package/dist/{chunk-KWS75AOU.mjs → chunk-4JBVPOHK.mjs} +2 -2
- package/dist/{chunk-WBBJMOZI.mjs → chunk-5SPC4UVI.mjs} +10 -8
- package/dist/{chunk-WBBJMOZI.mjs.map → chunk-5SPC4UVI.mjs.map} +1 -1
- package/dist/{chunk-O73FZGSU.mjs → chunk-6R5PM7YT.mjs} +8 -8
- package/dist/{chunk-UPQPBCUW.mjs → chunk-7D4OASUM.mjs} +4 -4
- package/dist/{chunk-ZRDV3MVW.mjs → chunk-7LZXD5RJ.mjs} +11 -11
- package/dist/{chunk-WRPXFDFL.mjs → chunk-AOQEZ7AY.mjs} +5 -5
- package/dist/{chunk-JEMBA7PE.mjs → chunk-AR7HJPGU.mjs} +4 -4
- package/dist/{chunk-2QZSAQTX.mjs → chunk-CLQLVMW4.mjs} +4 -4
- package/dist/{chunk-OLXYK6PP.mjs → chunk-DHGLYDRF.mjs} +8 -8
- package/dist/{chunk-FRXYSJGZ.mjs → chunk-G2GQX4FI.mjs} +2 -2
- package/dist/{chunk-N4VN2B5S.mjs → chunk-L3I57GMV.mjs} +4 -4
- package/dist/{chunk-2MGJO3FY.mjs → chunk-MY2BUA6F.mjs} +6 -6
- package/dist/{chunk-XFJNMZ6X.mjs → chunk-VQVTXQFI.mjs} +2 -2
- package/dist/{chunk-RLT4KZR4.mjs → chunk-WZSSCA5T.mjs} +2 -2
- package/dist/components/copilot-provider/copilot-messages.mjs +3 -3
- package/dist/components/copilot-provider/copilotkit.mjs +10 -10
- package/dist/components/copilot-provider/index.mjs +10 -10
- package/dist/components/dev-console/console-trigger.mjs +3 -3
- package/dist/components/dev-console/developer-console-modal.mjs +2 -2
- package/dist/components/error-boundary/error-boundary.mjs +2 -2
- package/dist/components/index.mjs +10 -10
- package/dist/context/index.mjs +4 -4
- package/dist/hooks/index.js +4 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +31 -31
- package/dist/hooks/use-chat.js +4 -2
- package/dist/hooks/use-chat.js.map +1 -1
- package/dist/hooks/use-chat.mjs +4 -4
- package/dist/hooks/use-coagent-state-render.mjs +2 -2
- package/dist/hooks/use-coagent.js +4 -2
- package/dist/hooks/use-coagent.js.map +1 -1
- package/dist/hooks/use-coagent.mjs +15 -15
- package/dist/hooks/use-copilot-action.mjs +2 -2
- package/dist/hooks/use-copilot-authenticated-action.mjs +3 -3
- package/dist/hooks/use-copilot-chat-headless_c.js +4 -2
- package/dist/hooks/use-copilot-chat-headless_c.js.map +1 -1
- package/dist/hooks/use-copilot-chat-headless_c.mjs +15 -15
- package/dist/hooks/use-copilot-chat.js +4 -2
- package/dist/hooks/use-copilot-chat.js.map +1 -1
- package/dist/hooks/use-copilot-chat.mjs +15 -15
- package/dist/hooks/use-copilot-chat_internal.js +4 -2
- package/dist/hooks/use-copilot-chat_internal.js.map +1 -1
- package/dist/hooks/use-copilot-chat_internal.mjs +14 -14
- package/dist/hooks/use-langgraph-interrupt-render.mjs +1 -1
- package/dist/hooks/use-langgraph-interrupt.js +4 -2
- package/dist/hooks/use-langgraph-interrupt.js.map +1 -1
- package/dist/hooks/use-langgraph-interrupt.mjs +15 -15
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -35
- package/dist/lib/copilot-task.mjs +12 -12
- package/dist/lib/index.mjs +12 -12
- package/dist/utils/extract.mjs +10 -10
- package/dist/utils/index.mjs +10 -10
- package/dist/utils/suggestions.mjs +10 -10
- package/package.json +3 -3
- package/src/hooks/use-chat.ts +4 -2
- /package/dist/{chunk-DSDAZA3B.mjs.map → chunk-23SOG4FI.mjs.map} +0 -0
- /package/dist/{chunk-KWS75AOU.mjs.map → chunk-4JBVPOHK.mjs.map} +0 -0
- /package/dist/{chunk-O73FZGSU.mjs.map → chunk-6R5PM7YT.mjs.map} +0 -0
- /package/dist/{chunk-UPQPBCUW.mjs.map → chunk-7D4OASUM.mjs.map} +0 -0
- /package/dist/{chunk-ZRDV3MVW.mjs.map → chunk-7LZXD5RJ.mjs.map} +0 -0
- /package/dist/{chunk-WRPXFDFL.mjs.map → chunk-AOQEZ7AY.mjs.map} +0 -0
- /package/dist/{chunk-JEMBA7PE.mjs.map → chunk-AR7HJPGU.mjs.map} +0 -0
- /package/dist/{chunk-2QZSAQTX.mjs.map → chunk-CLQLVMW4.mjs.map} +0 -0
- /package/dist/{chunk-OLXYK6PP.mjs.map → chunk-DHGLYDRF.mjs.map} +0 -0
- /package/dist/{chunk-FRXYSJGZ.mjs.map → chunk-G2GQX4FI.mjs.map} +0 -0
- /package/dist/{chunk-N4VN2B5S.mjs.map → chunk-L3I57GMV.mjs.map} +0 -0
- /package/dist/{chunk-2MGJO3FY.mjs.map → chunk-MY2BUA6F.mjs.map} +0 -0
- /package/dist/{chunk-XFJNMZ6X.mjs.map → chunk-VQVTXQFI.mjs.map} +0 -0
- /package/dist/{chunk-RLT4KZR4.mjs.map → chunk-WZSSCA5T.mjs.map} +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultSystemMessage,
|
|
3
3
|
useCopilotChat
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-DHGLYDRF.mjs";
|
|
5
5
|
import "../chunk-QF3Q5LUN.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-DSDAZA3B.mjs";
|
|
6
|
+
import "../chunk-YPSGKPDA.mjs";
|
|
7
|
+
import "../chunk-7LZXD5RJ.mjs";
|
|
8
|
+
import "../chunk-L3I57GMV.mjs";
|
|
9
|
+
import "../chunk-MY2BUA6F.mjs";
|
|
10
|
+
import "../chunk-G2GQX4FI.mjs";
|
|
11
|
+
import "../chunk-23SOG4FI.mjs";
|
|
13
12
|
import "../chunk-PIF5KJYI.mjs";
|
|
14
13
|
import "../chunk-2IDV5OHF.mjs";
|
|
15
14
|
import "../chunk-PMAFHQ7P.mjs";
|
|
16
15
|
import "../chunk-5FHSUKQL.mjs";
|
|
17
16
|
import "../chunk-RKTVJRK7.mjs";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-ZLQVRPDS.mjs";
|
|
18
|
+
import "../chunk-6ZLPNY7X.mjs";
|
|
19
|
+
import "../chunk-5SPC4UVI.mjs";
|
|
20
|
+
import "../chunk-4CEQJ2X6.mjs";
|
|
20
21
|
import "../chunk-N4WEHORG.mjs";
|
|
21
22
|
import "../chunk-O7ARI5CV.mjs";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-YPSGKPDA.mjs";
|
|
23
|
+
import "../chunk-Q3MCVRO3.mjs";
|
|
24
|
+
import "../chunk-ICIK2BSB.mjs";
|
|
25
25
|
import "../chunk-YHT6CWIY.mjs";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-EFL5OBKN.mjs";
|
|
27
27
|
import "../chunk-SKC7AJIV.mjs";
|
|
28
28
|
export {
|
|
29
29
|
defaultSystemMessage,
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
useLangGraphInterruptRender
|
|
3
3
|
} from "../chunk-QF3Q5LUN.mjs";
|
|
4
4
|
import "../chunk-YPSGKPDA.mjs";
|
|
5
|
-
import "../chunk-YHT6CWIY.mjs";
|
|
6
5
|
import "../chunk-ZLQVRPDS.mjs";
|
|
6
|
+
import "../chunk-YHT6CWIY.mjs";
|
|
7
7
|
import "../chunk-SKC7AJIV.mjs";
|
|
8
8
|
export {
|
|
9
9
|
useLangGraphInterruptRender
|
|
@@ -1051,8 +1051,8 @@ function useChat(options) {
|
|
|
1051
1051
|
console.warn(`Regenerate cannot be performed on ${reloadMessageRole} role`);
|
|
1052
1052
|
return;
|
|
1053
1053
|
}
|
|
1054
|
-
let historyCutoff = [];
|
|
1055
|
-
if (messages.length > 2) {
|
|
1054
|
+
let historyCutoff = [messages[0]];
|
|
1055
|
+
if (messages.length > 2 && reloadMessageIndex !== 0) {
|
|
1056
1056
|
const lastUserMessageBeforeRegenerate = messages.slice(0, reloadMessageIndex).reverse().find(
|
|
1057
1057
|
(msg) => (
|
|
1058
1058
|
// @ts-expect-error -- message has role
|
|
@@ -1063,6 +1063,8 @@ function useChat(options) {
|
|
|
1063
1063
|
(msg) => msg.id === lastUserMessageBeforeRegenerate.id
|
|
1064
1064
|
);
|
|
1065
1065
|
historyCutoff = messages.slice(0, indexOfLastUserMessageBeforeRegenerate + 1);
|
|
1066
|
+
} else if (messages.length > 2 && reloadMessageIndex === 0) {
|
|
1067
|
+
historyCutoff = [messages[0], messages[1]];
|
|
1066
1068
|
}
|
|
1067
1069
|
setMessages(historyCutoff);
|
|
1068
1070
|
return runChatCompletionAndHandleFunctionCall(historyCutoff);
|