@copilotkit/react-core 1.50.0-beta.5 → 1.50.0-beta.6
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 +12 -0
- package/dist/{chunk-NX57QKMK.mjs → chunk-4HRUQH6U.mjs} +2 -2
- package/dist/{chunk-PLXQ2PM6.mjs → chunk-EG56H77V.mjs} +4 -4
- package/dist/{chunk-IE2G42ZH.mjs → chunk-LHERIF3L.mjs} +4 -4
- package/dist/{chunk-AQKRV5WN.mjs → chunk-OX2QTNTD.mjs} +2 -2
- package/dist/{chunk-B7WJODHA.mjs → chunk-PQPWQ6GH.mjs} +2 -2
- package/dist/{chunk-7VKOBXCY.mjs → chunk-U2ZRVVKT.mjs} +2 -2
- package/dist/{chunk-R3WRSORK.mjs → chunk-Y2L7KDVW.mjs} +2 -2
- package/dist/{chunk-LV6D75XT.mjs → chunk-ZCV3A2FP.mjs} +8 -6
- package/dist/chunk-ZCV3A2FP.mjs.map +1 -0
- package/dist/{chunk-SAB7KEUR.mjs → chunk-ZU6ZBX4E.mjs} +11 -11
- package/dist/components/copilot-provider/copilotkit.mjs +7 -7
- package/dist/components/copilot-provider/index.mjs +7 -7
- package/dist/components/error-boundary/error-boundary.mjs +2 -2
- package/dist/components/index.mjs +7 -7
- package/dist/hooks/index.js +7 -5
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +24 -24
- 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 +7 -5
- package/dist/hooks/use-copilot-chat-headless_c.js.map +1 -1
- package/dist/hooks/use-copilot-chat-headless_c.mjs +2 -2
- package/dist/hooks/use-copilot-chat.js +7 -5
- package/dist/hooks/use-copilot-chat.js.map +1 -1
- package/dist/hooks/use-copilot-chat.mjs +2 -2
- package/dist/hooks/use-copilot-chat_internal.js +7 -5
- package/dist/hooks/use-copilot-chat_internal.js.map +1 -1
- package/dist/hooks/use-copilot-chat_internal.mjs +1 -1
- package/dist/hooks/use-default-tool.mjs +3 -3
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -43
- package/dist/lib/copilot-task.mjs +8 -8
- package/dist/lib/index.mjs +8 -8
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.mjs +3 -3
- package/package.json +5 -5
- package/dist/chunk-LV6D75XT.mjs.map +0 -1
- /package/dist/{chunk-NX57QKMK.mjs.map → chunk-4HRUQH6U.mjs.map} +0 -0
- /package/dist/{chunk-PLXQ2PM6.mjs.map → chunk-EG56H77V.mjs.map} +0 -0
- /package/dist/{chunk-IE2G42ZH.mjs.map → chunk-LHERIF3L.mjs.map} +0 -0
- /package/dist/{chunk-AQKRV5WN.mjs.map → chunk-OX2QTNTD.mjs.map} +0 -0
- /package/dist/{chunk-B7WJODHA.mjs.map → chunk-PQPWQ6GH.mjs.map} +0 -0
- /package/dist/{chunk-7VKOBXCY.mjs.map → chunk-U2ZRVVKT.mjs.map} +0 -0
- /package/dist/{chunk-R3WRSORK.mjs.map → chunk-Y2L7KDVW.mjs.map} +0 -0
- /package/dist/{chunk-SAB7KEUR.mjs.map → chunk-ZU6ZBX4E.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,19 +1,40 @@
|
|
|
1
1
|
import "../chunk-A6NKSGH3.mjs";
|
|
2
|
+
import {
|
|
3
|
+
useDefaultTool
|
|
4
|
+
} from "../chunk-U2ZRVVKT.mjs";
|
|
2
5
|
import {
|
|
3
6
|
useLangGraphInterrupt
|
|
4
7
|
} from "../chunk-4RRMC7L2.mjs";
|
|
5
8
|
import {
|
|
6
9
|
useMakeCopilotDocumentReadable
|
|
7
10
|
} 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";
|
|
8
29
|
import {
|
|
9
30
|
useCopilotChatHeadless_c
|
|
10
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-OX2QTNTD.mjs";
|
|
11
32
|
import {
|
|
12
33
|
useCopilotChat
|
|
13
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-PQPWQ6GH.mjs";
|
|
14
35
|
import {
|
|
15
36
|
useCopilotChatInternal
|
|
16
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-ZCV3A2FP.mjs";
|
|
17
38
|
import {
|
|
18
39
|
useLangGraphInterruptRender
|
|
19
40
|
} from "../chunk-VV56AVPB.mjs";
|
|
@@ -26,9 +47,6 @@ import {
|
|
|
26
47
|
import {
|
|
27
48
|
useCopilotRuntimeClient
|
|
28
49
|
} from "../chunk-6ESSSQ7Q.mjs";
|
|
29
|
-
import {
|
|
30
|
-
useDefaultTool
|
|
31
|
-
} from "../chunk-7VKOBXCY.mjs";
|
|
32
50
|
import {
|
|
33
51
|
useCoAgentStateRender
|
|
34
52
|
} from "../chunk-YTQHRJUA.mjs";
|
|
@@ -39,24 +57,6 @@ import "../chunk-I76HKHPJ.mjs";
|
|
|
39
57
|
import {
|
|
40
58
|
useConfigureChatSuggestions
|
|
41
59
|
} 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
60
|
import "../chunk-6PUNP7CD.mjs";
|
|
61
61
|
import "../chunk-O7ARI5CV.mjs";
|
|
62
62
|
import "../chunk-QNUAXSDP.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCopilotAction
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-7DTB7S5V.mjs";
|
|
3
|
+
} from "../chunk-EG56H77V.mjs";
|
|
5
4
|
import "../chunk-NBK4KBLX.mjs";
|
|
6
5
|
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-
|
|
5
|
-
import "../chunk-7DTB7S5V.mjs";
|
|
3
|
+
} from "../chunk-4HRUQH6U.mjs";
|
|
4
|
+
import "../chunk-EG56H77V.mjs";
|
|
6
5
|
import "../chunk-NBK4KBLX.mjs";
|
|
7
6
|
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,15 +1233,16 @@ function useCopilotChatInternal({
|
|
|
1233
1233
|
}),
|
|
1234
1234
|
[latestSendMessageFunc]
|
|
1235
1235
|
);
|
|
1236
|
+
const latestSetMessages = useUpdatedRef(agent == null ? void 0 : agent.setMessages);
|
|
1236
1237
|
const latestSetMessagesFunc = (0, import_react15.useCallback)(
|
|
1237
1238
|
(messages) => {
|
|
1238
1239
|
var _a2, _b2;
|
|
1239
1240
|
if (messages.every((message) => message instanceof import_runtime_client_gql2.Message)) {
|
|
1240
|
-
return (_a2 =
|
|
1241
|
+
return (_a2 = latestSetMessages.current) == null ? void 0 : _a2.call(latestSetMessages, (0, import_runtime_client_gql2.gqlToAGUI)(messages));
|
|
1241
1242
|
}
|
|
1242
|
-
return (_b2 =
|
|
1243
|
+
return (_b2 = latestSetMessages.current) == null ? void 0 : _b2.call(latestSetMessages, messages);
|
|
1243
1244
|
},
|
|
1244
|
-
[
|
|
1245
|
+
[latestSetMessages, agent]
|
|
1245
1246
|
);
|
|
1246
1247
|
const latestReload = useUpdatedRef(reload);
|
|
1247
1248
|
const latestReloadFunc = useAsyncCallback(
|
|
@@ -1250,10 +1251,11 @@ function useCopilotChatInternal({
|
|
|
1250
1251
|
}),
|
|
1251
1252
|
[latestReload]
|
|
1252
1253
|
);
|
|
1254
|
+
const latestStop = useUpdatedRef(agent == null ? void 0 : agent.abortRun);
|
|
1253
1255
|
const latestStopFunc = (0, import_react15.useCallback)(() => {
|
|
1254
1256
|
var _a2;
|
|
1255
|
-
return (_a2 =
|
|
1256
|
-
}, [
|
|
1257
|
+
return (_a2 = latestStop.current) == null ? void 0 : _a2.call(latestStop);
|
|
1258
|
+
}, [latestStop]);
|
|
1257
1259
|
const latestReset = useUpdatedRef(reset);
|
|
1258
1260
|
const latestResetFunc = (0, import_react15.useCallback)(() => {
|
|
1259
1261
|
return latestReset.current();
|