@copilotkit/react-core 1.50.0-beta.3 → 1.50.0-beta.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 +33 -0
- package/dist/{chunk-BTZ3TJVX.mjs → chunk-4RRMC7L2.mjs} +4 -4
- package/dist/{chunk-U2ZRVVKT.mjs → chunk-7VKOBXCY.mjs} +2 -2
- package/dist/{chunk-XFXT2VNX.mjs → chunk-AQKRV5WN.mjs} +2 -2
- package/dist/{chunk-AMUONDZ2.mjs → chunk-B7WJODHA.mjs} +2 -2
- package/dist/{chunk-7HI6VLJJ.mjs → chunk-HE22TZMF.mjs} +4 -4
- package/dist/{chunk-SNON4QA6.mjs → chunk-IE2G42ZH.mjs} +4 -4
- package/dist/{chunk-M7EVKKUZ.mjs → chunk-LV6D75XT.mjs} +9 -11
- package/dist/chunk-LV6D75XT.mjs.map +1 -0
- package/dist/{chunk-4HRUQH6U.mjs → chunk-NX57QKMK.mjs} +2 -2
- package/dist/{chunk-EG56H77V.mjs → chunk-PLXQ2PM6.mjs} +4 -4
- package/dist/{chunk-SHHPDZUK.mjs → chunk-R3WRSORK.mjs} +2 -2
- package/dist/{chunk-B66SA6EH.mjs → chunk-SAB7KEUR.mjs} +19 -19
- package/dist/{chunk-IUNU4CUG.mjs → chunk-YTQHRJUA.mjs} +4 -4
- package/dist/components/copilot-provider/copilot-messages.mjs +2 -2
- package/dist/components/copilot-provider/copilotkit.mjs +11 -11
- package/dist/components/copilot-provider/index.mjs +11 -11
- package/dist/components/error-boundary/error-boundary.mjs +3 -3
- package/dist/components/index.mjs +11 -11
- package/dist/context/index.mjs +5 -5
- package/dist/hooks/index.js +5 -7
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +31 -31
- package/dist/hooks/use-coagent-state-render-bridge.mjs +1 -1
- package/dist/hooks/use-coagent-state-render.mjs +2 -2
- 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 +5 -7
- package/dist/hooks/use-copilot-chat-headless_c.js.map +1 -1
- package/dist/hooks/use-copilot-chat-headless_c.mjs +6 -6
- package/dist/hooks/use-copilot-chat.js +5 -7
- package/dist/hooks/use-copilot-chat.js.map +1 -1
- package/dist/hooks/use-copilot-chat.mjs +6 -6
- package/dist/hooks/use-copilot-chat_internal.js +5 -7
- package/dist/hooks/use-copilot-chat_internal.js.map +1 -1
- package/dist/hooks/use-copilot-chat_internal.mjs +5 -5
- package/dist/hooks/use-default-tool.mjs +3 -3
- package/dist/hooks/use-langgraph-interrupt-render.mjs +1 -1
- package/dist/hooks/use-langgraph-interrupt.mjs +2 -2
- package/dist/index.js +5 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +66 -66
- package/dist/lib/copilot-task.mjs +12 -12
- package/dist/lib/index.mjs +12 -12
- package/package.json +6 -6
- package/src/hooks/use-copilot-chat_internal.ts +5 -7
- package/dist/chunk-M7EVKKUZ.mjs.map +0 -1
- /package/dist/{chunk-BTZ3TJVX.mjs.map → chunk-4RRMC7L2.mjs.map} +0 -0
- /package/dist/{chunk-U2ZRVVKT.mjs.map → chunk-7VKOBXCY.mjs.map} +0 -0
- /package/dist/{chunk-XFXT2VNX.mjs.map → chunk-AQKRV5WN.mjs.map} +0 -0
- /package/dist/{chunk-AMUONDZ2.mjs.map → chunk-B7WJODHA.mjs.map} +0 -0
- /package/dist/{chunk-7HI6VLJJ.mjs.map → chunk-HE22TZMF.mjs.map} +0 -0
- /package/dist/{chunk-SNON4QA6.mjs.map → chunk-IE2G42ZH.mjs.map} +0 -0
- /package/dist/{chunk-4HRUQH6U.mjs.map → chunk-NX57QKMK.mjs.map} +0 -0
- /package/dist/{chunk-EG56H77V.mjs.map → chunk-PLXQ2PM6.mjs.map} +0 -0
- /package/dist/{chunk-SHHPDZUK.mjs.map → chunk-R3WRSORK.mjs.map} +0 -0
- /package/dist/{chunk-B66SA6EH.mjs.map → chunk-SAB7KEUR.mjs.map} +0 -0
- /package/dist/{chunk-IUNU4CUG.mjs.map → chunk-YTQHRJUA.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,40 +1,19 @@
|
|
|
1
1
|
import "../chunk-A6NKSGH3.mjs";
|
|
2
|
-
import {
|
|
3
|
-
useDefaultTool
|
|
4
|
-
} from "../chunk-U2ZRVVKT.mjs";
|
|
5
2
|
import {
|
|
6
3
|
useLangGraphInterrupt
|
|
7
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-4RRMC7L2.mjs";
|
|
8
5
|
import {
|
|
9
6
|
useMakeCopilotDocumentReadable
|
|
10
7
|
} from "../chunk-7IBF6RBW.mjs";
|
|
11
|
-
import {
|
|
12
|
-
useCopilotAdditionalInstructions
|
|
13
|
-
} from "../chunk-ABWT4DRT.mjs";
|
|
14
|
-
import {
|
|
15
|
-
useCopilotAuthenticatedAction_c
|
|
16
|
-
} from "../chunk-4HRUQH6U.mjs";
|
|
17
|
-
import {
|
|
18
|
-
useCopilotAction
|
|
19
|
-
} from "../chunk-EG56H77V.mjs";
|
|
20
|
-
import {
|
|
21
|
-
useRenderToolCall
|
|
22
|
-
} from "../chunk-NBK4KBLX.mjs";
|
|
23
|
-
import {
|
|
24
|
-
useFrontendTool
|
|
25
|
-
} from "../chunk-T2VBHAAP.mjs";
|
|
26
|
-
import {
|
|
27
|
-
useHumanInTheLoop
|
|
28
|
-
} from "../chunk-7DTB7S5V.mjs";
|
|
29
8
|
import {
|
|
30
9
|
useCopilotChatHeadless_c
|
|
31
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-AQKRV5WN.mjs";
|
|
32
11
|
import {
|
|
33
12
|
useCopilotChat
|
|
34
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-B7WJODHA.mjs";
|
|
35
14
|
import {
|
|
36
15
|
useCopilotChatInternal
|
|
37
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-LV6D75XT.mjs";
|
|
38
17
|
import {
|
|
39
18
|
useLangGraphInterruptRender
|
|
40
19
|
} from "../chunk-VV56AVPB.mjs";
|
|
@@ -47,12 +26,12 @@ import {
|
|
|
47
26
|
import {
|
|
48
27
|
useCopilotRuntimeClient
|
|
49
28
|
} from "../chunk-6ESSSQ7Q.mjs";
|
|
50
|
-
import
|
|
51
|
-
|
|
52
|
-
|
|
29
|
+
import {
|
|
30
|
+
useDefaultTool
|
|
31
|
+
} from "../chunk-7VKOBXCY.mjs";
|
|
53
32
|
import {
|
|
54
33
|
useCoAgentStateRender
|
|
55
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-YTQHRJUA.mjs";
|
|
56
35
|
import {
|
|
57
36
|
useCoAgent
|
|
58
37
|
} from "../chunk-ZYTXB6HH.mjs";
|
|
@@ -60,12 +39,33 @@ import "../chunk-I76HKHPJ.mjs";
|
|
|
60
39
|
import {
|
|
61
40
|
useConfigureChatSuggestions
|
|
62
41
|
} from "../chunk-FBVI3LQ6.mjs";
|
|
42
|
+
import {
|
|
43
|
+
useCopilotAdditionalInstructions
|
|
44
|
+
} from "../chunk-ABWT4DRT.mjs";
|
|
45
|
+
import {
|
|
46
|
+
useCopilotAuthenticatedAction_c
|
|
47
|
+
} from "../chunk-NX57QKMK.mjs";
|
|
48
|
+
import {
|
|
49
|
+
useCopilotAction
|
|
50
|
+
} from "../chunk-PLXQ2PM6.mjs";
|
|
51
|
+
import {
|
|
52
|
+
useHumanInTheLoop
|
|
53
|
+
} from "../chunk-7DTB7S5V.mjs";
|
|
54
|
+
import {
|
|
55
|
+
useRenderToolCall
|
|
56
|
+
} from "../chunk-NBK4KBLX.mjs";
|
|
57
|
+
import {
|
|
58
|
+
useFrontendTool
|
|
59
|
+
} from "../chunk-T2VBHAAP.mjs";
|
|
60
|
+
import "../chunk-6PUNP7CD.mjs";
|
|
61
|
+
import "../chunk-O7ARI5CV.mjs";
|
|
62
|
+
import "../chunk-QNUAXSDP.mjs";
|
|
63
63
|
import "../chunk-NB2FKV2V.mjs";
|
|
64
|
+
import "../chunk-F555TVE4.mjs";
|
|
65
|
+
import "../chunk-EFL5OBKN.mjs";
|
|
64
66
|
import "../chunk-FDOMAPJY.mjs";
|
|
65
67
|
import "../chunk-AFNWX62Q.mjs";
|
|
66
68
|
import "../chunk-DMLQZG75.mjs";
|
|
67
|
-
import "../chunk-F555TVE4.mjs";
|
|
68
|
-
import "../chunk-EFL5OBKN.mjs";
|
|
69
69
|
import "../chunk-SKC7AJIV.mjs";
|
|
70
70
|
export {
|
|
71
71
|
useCoAgent,
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
useCoagentStateRenderBridge
|
|
4
4
|
} from "../chunk-QNUAXSDP.mjs";
|
|
5
5
|
import "../chunk-NB2FKV2V.mjs";
|
|
6
|
+
import "../chunk-F555TVE4.mjs";
|
|
6
7
|
import "../chunk-FDOMAPJY.mjs";
|
|
7
8
|
import "../chunk-AFNWX62Q.mjs";
|
|
8
9
|
import "../chunk-DMLQZG75.mjs";
|
|
9
|
-
import "../chunk-F555TVE4.mjs";
|
|
10
10
|
import "../chunk-SKC7AJIV.mjs";
|
|
11
11
|
export {
|
|
12
12
|
CoAgentStateRenderBridge,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCoAgentStateRender
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-YTQHRJUA.mjs";
|
|
4
|
+
import "../chunk-EFL5OBKN.mjs";
|
|
4
5
|
import "../chunk-FDOMAPJY.mjs";
|
|
5
6
|
import "../chunk-AFNWX62Q.mjs";
|
|
6
|
-
import "../chunk-EFL5OBKN.mjs";
|
|
7
7
|
import "../chunk-SKC7AJIV.mjs";
|
|
8
8
|
export {
|
|
9
9
|
useCoAgentStateRender
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCopilotAction
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-PLXQ2PM6.mjs";
|
|
4
|
+
import "../chunk-7DTB7S5V.mjs";
|
|
4
5
|
import "../chunk-NBK4KBLX.mjs";
|
|
5
6
|
import "../chunk-T2VBHAAP.mjs";
|
|
6
|
-
import "../chunk-7DTB7S5V.mjs";
|
|
7
7
|
import "../chunk-SKC7AJIV.mjs";
|
|
8
8
|
export {
|
|
9
9
|
useCopilotAction
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCopilotAuthenticatedAction_c
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-NX57QKMK.mjs";
|
|
4
|
+
import "../chunk-PLXQ2PM6.mjs";
|
|
5
|
+
import "../chunk-7DTB7S5V.mjs";
|
|
5
6
|
import "../chunk-NBK4KBLX.mjs";
|
|
6
7
|
import "../chunk-T2VBHAAP.mjs";
|
|
7
|
-
import "../chunk-7DTB7S5V.mjs";
|
|
8
8
|
import "../chunk-AFNWX62Q.mjs";
|
|
9
9
|
import "../chunk-SKC7AJIV.mjs";
|
|
10
10
|
export {
|
|
@@ -1233,16 +1233,15 @@ function useCopilotChatInternal({
|
|
|
1233
1233
|
}),
|
|
1234
1234
|
[latestSendMessageFunc]
|
|
1235
1235
|
);
|
|
1236
|
-
const latestSetMessages = useUpdatedRef(agent == null ? void 0 : agent.setMessages);
|
|
1237
1236
|
const latestSetMessagesFunc = (0, import_react15.useCallback)(
|
|
1238
1237
|
(messages) => {
|
|
1239
1238
|
var _a2, _b2;
|
|
1240
1239
|
if (messages.every((message) => message instanceof import_runtime_client_gql2.Message)) {
|
|
1241
|
-
return (_a2 =
|
|
1240
|
+
return (_a2 = agent == null ? void 0 : agent.setMessages) == null ? void 0 : _a2.call(agent, (0, import_runtime_client_gql2.gqlToAGUI)(messages));
|
|
1242
1241
|
}
|
|
1243
|
-
return (_b2 =
|
|
1242
|
+
return (_b2 = agent == null ? void 0 : agent.setMessages) == null ? void 0 : _b2.call(agent, messages);
|
|
1244
1243
|
},
|
|
1245
|
-
[
|
|
1244
|
+
[agent == null ? void 0 : agent.setMessages, agent]
|
|
1246
1245
|
);
|
|
1247
1246
|
const latestReload = useUpdatedRef(reload);
|
|
1248
1247
|
const latestReloadFunc = useAsyncCallback(
|
|
@@ -1251,11 +1250,10 @@ function useCopilotChatInternal({
|
|
|
1251
1250
|
}),
|
|
1252
1251
|
[latestReload]
|
|
1253
1252
|
);
|
|
1254
|
-
const latestStop = useUpdatedRef(agent == null ? void 0 : agent.abortRun);
|
|
1255
1253
|
const latestStopFunc = (0, import_react15.useCallback)(() => {
|
|
1256
1254
|
var _a2;
|
|
1257
|
-
return (_a2 =
|
|
1258
|
-
}, [
|
|
1255
|
+
return (_a2 = agent == null ? void 0 : agent.abortRun) == null ? void 0 : _a2.call(agent);
|
|
1256
|
+
}, [agent == null ? void 0 : agent.abortRun]);
|
|
1259
1257
|
const latestReset = useUpdatedRef(reset);
|
|
1260
1258
|
const latestResetFunc = (0, import_react15.useCallback)(() => {
|
|
1261
1259
|
return latestReset.current();
|