@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
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCopilotChatHeadless_c
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-AQKRV5WN.mjs";
|
|
4
4
|
import {
|
|
5
5
|
defaultSystemMessage
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-LV6D75XT.mjs";
|
|
7
7
|
import "../chunk-VV56AVPB.mjs";
|
|
8
8
|
import "../chunk-ZVF5Q6IH.mjs";
|
|
9
|
+
import "../chunk-I76HKHPJ.mjs";
|
|
10
|
+
import "../chunk-FBVI3LQ6.mjs";
|
|
9
11
|
import "../chunk-6PUNP7CD.mjs";
|
|
10
12
|
import "../chunk-O7ARI5CV.mjs";
|
|
11
13
|
import "../chunk-QNUAXSDP.mjs";
|
|
12
|
-
import "../chunk-I76HKHPJ.mjs";
|
|
13
|
-
import "../chunk-FBVI3LQ6.mjs";
|
|
14
14
|
import "../chunk-NB2FKV2V.mjs";
|
|
15
|
+
import "../chunk-F555TVE4.mjs";
|
|
16
|
+
import "../chunk-EFL5OBKN.mjs";
|
|
15
17
|
import "../chunk-FDOMAPJY.mjs";
|
|
16
18
|
import "../chunk-AFNWX62Q.mjs";
|
|
17
19
|
import "../chunk-DMLQZG75.mjs";
|
|
18
|
-
import "../chunk-F555TVE4.mjs";
|
|
19
|
-
import "../chunk-EFL5OBKN.mjs";
|
|
20
20
|
import "../chunk-SKC7AJIV.mjs";
|
|
21
21
|
export {
|
|
22
22
|
defaultSystemMessage,
|
|
@@ -1231,16 +1231,15 @@ function useCopilotChatInternal({
|
|
|
1231
1231
|
}),
|
|
1232
1232
|
[latestSendMessageFunc]
|
|
1233
1233
|
);
|
|
1234
|
-
const latestSetMessages = useUpdatedRef(agent == null ? void 0 : agent.setMessages);
|
|
1235
1234
|
const latestSetMessagesFunc = (0, import_react15.useCallback)(
|
|
1236
1235
|
(messages) => {
|
|
1237
1236
|
var _a2, _b2;
|
|
1238
1237
|
if (messages.every((message) => message instanceof import_runtime_client_gql2.Message)) {
|
|
1239
|
-
return (_a2 =
|
|
1238
|
+
return (_a2 = agent == null ? void 0 : agent.setMessages) == null ? void 0 : _a2.call(agent, (0, import_runtime_client_gql2.gqlToAGUI)(messages));
|
|
1240
1239
|
}
|
|
1241
|
-
return (_b2 =
|
|
1240
|
+
return (_b2 = agent == null ? void 0 : agent.setMessages) == null ? void 0 : _b2.call(agent, messages);
|
|
1242
1241
|
},
|
|
1243
|
-
[
|
|
1242
|
+
[agent == null ? void 0 : agent.setMessages, agent]
|
|
1244
1243
|
);
|
|
1245
1244
|
const latestReload = useUpdatedRef(reload);
|
|
1246
1245
|
const latestReloadFunc = useAsyncCallback(
|
|
@@ -1249,11 +1248,10 @@ function useCopilotChatInternal({
|
|
|
1249
1248
|
}),
|
|
1250
1249
|
[latestReload]
|
|
1251
1250
|
);
|
|
1252
|
-
const latestStop = useUpdatedRef(agent == null ? void 0 : agent.abortRun);
|
|
1253
1251
|
const latestStopFunc = (0, import_react15.useCallback)(() => {
|
|
1254
1252
|
var _a2;
|
|
1255
|
-
return (_a2 =
|
|
1256
|
-
}, [
|
|
1253
|
+
return (_a2 = agent == null ? void 0 : agent.abortRun) == null ? void 0 : _a2.call(agent);
|
|
1254
|
+
}, [agent == null ? void 0 : agent.abortRun]);
|
|
1257
1255
|
const latestReset = useUpdatedRef(reset);
|
|
1258
1256
|
const latestResetFunc = (0, import_react15.useCallback)(() => {
|
|
1259
1257
|
return latestReset.current();
|