@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
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import "../chunk-KDAZGZ24.mjs";
|
|
2
|
-
import {
|
|
3
|
-
useCopilotReadable
|
|
4
|
-
} from "../chunk-36FJAVOF.mjs";
|
|
5
2
|
import {
|
|
6
3
|
useLangGraphInterrupt
|
|
7
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-AOQEZ7AY.mjs";
|
|
8
5
|
import {
|
|
9
6
|
useMakeCopilotDocumentReadable
|
|
10
7
|
} from "../chunk-CXDK6XA5.mjs";
|
|
11
|
-
import {
|
|
12
|
-
useCoAgentStateRender
|
|
13
|
-
} from "../chunk-2QZSAQTX.mjs";
|
|
14
|
-
import {
|
|
15
|
-
runAgent,
|
|
16
|
-
startAgent,
|
|
17
|
-
stopAgent,
|
|
18
|
-
useCoAgent
|
|
19
|
-
} from "../chunk-O73FZGSU.mjs";
|
|
20
8
|
import {
|
|
21
9
|
useCopilotAdditionalInstructions
|
|
22
10
|
} from "../chunk-MZ37BAAE.mjs";
|
|
23
11
|
import {
|
|
24
12
|
useCopilotAuthenticatedAction_c
|
|
25
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-4JBVPOHK.mjs";
|
|
26
14
|
import {
|
|
27
15
|
useCopilotAction
|
|
28
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-AR7HJPGU.mjs";
|
|
29
17
|
import {
|
|
30
18
|
useCopilotChatHeadless_c
|
|
31
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-WZSSCA5T.mjs";
|
|
32
20
|
import {
|
|
33
21
|
useCopilotChat as useCopilotChat2
|
|
34
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-VQVTXQFI.mjs";
|
|
23
|
+
import {
|
|
24
|
+
useCopilotReadable
|
|
25
|
+
} from "../chunk-36FJAVOF.mjs";
|
|
26
|
+
import {
|
|
27
|
+
useCoAgentStateRender
|
|
28
|
+
} from "../chunk-CLQLVMW4.mjs";
|
|
29
|
+
import {
|
|
30
|
+
runAgent,
|
|
31
|
+
startAgent,
|
|
32
|
+
stopAgent,
|
|
33
|
+
useCoAgent
|
|
34
|
+
} from "../chunk-6R5PM7YT.mjs";
|
|
35
35
|
import {
|
|
36
36
|
useCopilotChat
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-DHGLYDRF.mjs";
|
|
38
38
|
import {
|
|
39
39
|
useLangGraphInterruptRender
|
|
40
40
|
} from "../chunk-QF3Q5LUN.mjs";
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
43
|
-
import "../chunk-
|
|
44
|
-
import "../chunk-
|
|
45
|
-
import "../chunk-
|
|
46
|
-
import "../chunk-
|
|
47
|
-
import "../chunk-DSDAZA3B.mjs";
|
|
41
|
+
import "../chunk-YPSGKPDA.mjs";
|
|
42
|
+
import "../chunk-7LZXD5RJ.mjs";
|
|
43
|
+
import "../chunk-L3I57GMV.mjs";
|
|
44
|
+
import "../chunk-MY2BUA6F.mjs";
|
|
45
|
+
import "../chunk-G2GQX4FI.mjs";
|
|
46
|
+
import "../chunk-23SOG4FI.mjs";
|
|
48
47
|
import "../chunk-PIF5KJYI.mjs";
|
|
49
48
|
import "../chunk-2IDV5OHF.mjs";
|
|
50
49
|
import "../chunk-PMAFHQ7P.mjs";
|
|
51
50
|
import "../chunk-5FHSUKQL.mjs";
|
|
52
51
|
import "../chunk-RKTVJRK7.mjs";
|
|
52
|
+
import "../chunk-ZLQVRPDS.mjs";
|
|
53
|
+
import "../chunk-6ZLPNY7X.mjs";
|
|
54
|
+
import "../chunk-5SPC4UVI.mjs";
|
|
55
|
+
import "../chunk-4CEQJ2X6.mjs";
|
|
56
|
+
import "../chunk-N4WEHORG.mjs";
|
|
57
|
+
import "../chunk-O7ARI5CV.mjs";
|
|
53
58
|
import {
|
|
54
59
|
useCopilotRuntimeClient
|
|
55
60
|
} from "../chunk-Q3MCVRO3.mjs";
|
|
56
61
|
import "../chunk-ICIK2BSB.mjs";
|
|
57
|
-
import "../chunk-N4WEHORG.mjs";
|
|
58
|
-
import "../chunk-O7ARI5CV.mjs";
|
|
59
|
-
import "../chunk-EFL5OBKN.mjs";
|
|
60
|
-
import "../chunk-6ZLPNY7X.mjs";
|
|
61
|
-
import "../chunk-YPSGKPDA.mjs";
|
|
62
62
|
import "../chunk-YHT6CWIY.mjs";
|
|
63
|
-
import "../chunk-
|
|
63
|
+
import "../chunk-EFL5OBKN.mjs";
|
|
64
64
|
import "../chunk-SKC7AJIV.mjs";
|
|
65
65
|
export {
|
|
66
66
|
runAgent,
|
package/dist/hooks/use-chat.js
CHANGED
|
@@ -1025,8 +1025,8 @@ function useChat(options) {
|
|
|
1025
1025
|
console.warn(`Regenerate cannot be performed on ${reloadMessageRole} role`);
|
|
1026
1026
|
return;
|
|
1027
1027
|
}
|
|
1028
|
-
let historyCutoff = [];
|
|
1029
|
-
if (messages.length > 2) {
|
|
1028
|
+
let historyCutoff = [messages[0]];
|
|
1029
|
+
if (messages.length > 2 && reloadMessageIndex !== 0) {
|
|
1030
1030
|
const lastUserMessageBeforeRegenerate = messages.slice(0, reloadMessageIndex).reverse().find(
|
|
1031
1031
|
(msg) => (
|
|
1032
1032
|
// @ts-expect-error -- message has role
|
|
@@ -1037,6 +1037,8 @@ function useChat(options) {
|
|
|
1037
1037
|
(msg) => msg.id === lastUserMessageBeforeRegenerate.id
|
|
1038
1038
|
);
|
|
1039
1039
|
historyCutoff = messages.slice(0, indexOfLastUserMessageBeforeRegenerate + 1);
|
|
1040
|
+
} else if (messages.length > 2 && reloadMessageIndex === 0) {
|
|
1041
|
+
historyCutoff = [messages[0], messages[1]];
|
|
1040
1042
|
}
|
|
1041
1043
|
setMessages(historyCutoff);
|
|
1042
1044
|
return runChatCompletionAndHandleFunctionCall(historyCutoff);
|