@copilotkit/react-core 1.10.6-next.3 → 1.10.6-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 +17 -0
- package/dist/{chunk-Q3MCVRO3.mjs → chunk-6ESSSQ7Q.mjs} +8 -21
- package/dist/chunk-6ESSSQ7Q.mjs.map +1 -0
- package/dist/{chunk-X5GRTEAW.mjs → chunk-6GPVUMBU.mjs} +2 -2
- package/dist/{chunk-H4AHA2Y7.mjs → chunk-AKR2SSUJ.mjs} +2 -2
- package/dist/{chunk-HPENLSA7.mjs → chunk-BXXJQ2BL.mjs} +8 -8
- package/dist/{chunk-M37URBJS.mjs → chunk-C6IANC2R.mjs} +6 -6
- package/dist/{chunk-CUWOXXM5.mjs → chunk-DXEQPN43.mjs} +2 -2
- package/dist/{chunk-O23SRQP6.mjs → chunk-E3624YDU.mjs} +2 -2
- package/dist/{chunk-GOYHJKDZ.mjs → chunk-EDBI5PCJ.mjs} +4 -4
- package/dist/{chunk-R4Y45UGQ.mjs → chunk-EVVO67QO.mjs} +2 -2
- package/dist/{chunk-U6EFKGUQ.mjs → chunk-GGLAHG3I.mjs} +13 -13
- package/dist/{chunk-3WUDRJTT.mjs → chunk-GT5WI3AF.mjs} +4 -4
- package/dist/{chunk-OXHA67SG.mjs → chunk-MIXSWZSB.mjs} +5 -5
- package/dist/{chunk-E6ER5C5U.mjs → chunk-MQYWH4E6.mjs} +2 -2
- package/dist/{chunk-L3I57GMV.mjs → chunk-N4VN2B5S.mjs} +4 -4
- package/dist/{chunk-E3DNTN4X.mjs → chunk-NSBAWITG.mjs} +8 -8
- package/dist/{chunk-K5CYESBQ.mjs → chunk-OAGAFMUM.mjs} +2 -2
- package/dist/{chunk-TUTNHDM3.mjs → chunk-OKCYPO4I.mjs} +4 -4
- package/dist/{chunk-R4YSN6OK.mjs → chunk-OT5NHMEC.mjs} +6 -6
- package/dist/{chunk-HI6SPUOX.mjs → chunk-T3376SZS.mjs} +4 -4
- package/dist/{chunk-GIGUZ2OK.mjs → chunk-U7QULEVO.mjs} +2 -2
- package/dist/components/copilot-provider/copilot-messages.mjs +3 -3
- package/dist/components/copilot-provider/copilotkit.js +7 -17
- package/dist/components/copilot-provider/copilotkit.js.map +1 -1
- package/dist/components/copilot-provider/copilotkit.mjs +10 -10
- package/dist/components/copilot-provider/index.js +7 -17
- package/dist/components/copilot-provider/index.js.map +1 -1
- 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.js +7 -17
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +10 -10
- package/dist/context/index.mjs +4 -4
- package/dist/hooks/index.js +7 -32
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +42 -42
- package/dist/hooks/use-chat.js +7 -32
- package/dist/hooks/use-chat.js.map +1 -1
- package/dist/hooks/use-chat.mjs +3 -4
- package/dist/hooks/use-coagent-state-render.mjs +2 -2
- package/dist/hooks/use-coagent.js +7 -32
- 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 +7 -32
- 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 +7 -32
- 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 +7 -32
- 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-copilot-runtime-client.js +7 -32
- package/dist/hooks/use-copilot-runtime-client.js.map +1 -1
- package/dist/hooks/use-copilot-runtime-client.mjs +1 -2
- package/dist/hooks/use-default-tool.mjs +3 -3
- package/dist/hooks/use-frontend-tool.mjs +3 -3
- package/dist/hooks/use-human-in-the-loop.mjs +3 -3
- package/dist/hooks/use-langgraph-interrupt-render.mjs +1 -1
- package/dist/hooks/use-langgraph-interrupt.js +7 -32
- package/dist/hooks/use-langgraph-interrupt.js.map +1 -1
- package/dist/hooks/use-langgraph-interrupt.mjs +15 -15
- package/dist/hooks/use-render-tool-call.mjs +3 -3
- package/dist/index.js +7 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +47 -47
- 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 +12 -12
- package/dist/utils/suggestions.mjs +10 -10
- package/package.json +3 -3
- package/src/hooks/use-copilot-runtime-client.ts +10 -21
- package/dist/chunk-Q3MCVRO3.mjs.map +0 -1
- /package/dist/{chunk-X5GRTEAW.mjs.map → chunk-6GPVUMBU.mjs.map} +0 -0
- /package/dist/{chunk-H4AHA2Y7.mjs.map → chunk-AKR2SSUJ.mjs.map} +0 -0
- /package/dist/{chunk-HPENLSA7.mjs.map → chunk-BXXJQ2BL.mjs.map} +0 -0
- /package/dist/{chunk-M37URBJS.mjs.map → chunk-C6IANC2R.mjs.map} +0 -0
- /package/dist/{chunk-CUWOXXM5.mjs.map → chunk-DXEQPN43.mjs.map} +0 -0
- /package/dist/{chunk-O23SRQP6.mjs.map → chunk-E3624YDU.mjs.map} +0 -0
- /package/dist/{chunk-GOYHJKDZ.mjs.map → chunk-EDBI5PCJ.mjs.map} +0 -0
- /package/dist/{chunk-R4Y45UGQ.mjs.map → chunk-EVVO67QO.mjs.map} +0 -0
- /package/dist/{chunk-U6EFKGUQ.mjs.map → chunk-GGLAHG3I.mjs.map} +0 -0
- /package/dist/{chunk-3WUDRJTT.mjs.map → chunk-GT5WI3AF.mjs.map} +0 -0
- /package/dist/{chunk-OXHA67SG.mjs.map → chunk-MIXSWZSB.mjs.map} +0 -0
- /package/dist/{chunk-E6ER5C5U.mjs.map → chunk-MQYWH4E6.mjs.map} +0 -0
- /package/dist/{chunk-L3I57GMV.mjs.map → chunk-N4VN2B5S.mjs.map} +0 -0
- /package/dist/{chunk-E3DNTN4X.mjs.map → chunk-NSBAWITG.mjs.map} +0 -0
- /package/dist/{chunk-K5CYESBQ.mjs.map → chunk-OAGAFMUM.mjs.map} +0 -0
- /package/dist/{chunk-TUTNHDM3.mjs.map → chunk-OKCYPO4I.mjs.map} +0 -0
- /package/dist/{chunk-R4YSN6OK.mjs.map → chunk-OT5NHMEC.mjs.map} +0 -0
- /package/dist/{chunk-HI6SPUOX.mjs.map → chunk-T3376SZS.mjs.map} +0 -0
- /package/dist/{chunk-GIGUZ2OK.mjs.map → chunk-U7QULEVO.mjs.map} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotKit,
|
|
3
3
|
defaultCopilotContextCategories
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-GGLAHG3I.mjs";
|
|
5
|
+
import "../../chunk-DXEQPN43.mjs";
|
|
6
|
+
import "../../chunk-OKCYPO4I.mjs";
|
|
7
7
|
import "../../chunk-PIF5KJYI.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-N4VN2B5S.mjs";
|
|
9
9
|
import "../../chunk-2IDV5OHF.mjs";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-C6IANC2R.mjs";
|
|
11
|
+
import "../../chunk-ICIK2BSB.mjs";
|
|
11
12
|
import "../../chunk-RKTVJRK7.mjs";
|
|
12
13
|
import "../../chunk-PMAFHQ7P.mjs";
|
|
13
14
|
import "../../chunk-5FHSUKQL.mjs";
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-6ZLPNY7X.mjs";
|
|
15
|
+
import "../../chunk-6ESSSQ7Q.mjs";
|
|
16
16
|
import "../../chunk-N4WEHORG.mjs";
|
|
17
17
|
import "../../chunk-O7ARI5CV.mjs";
|
|
18
|
-
import "../../chunk-Q3MCVRO3.mjs";
|
|
19
|
-
import "../../chunk-ICIK2BSB.mjs";
|
|
20
|
-
import "../../chunk-EUX2P2E7.mjs";
|
|
21
18
|
import "../../chunk-EFL5OBKN.mjs";
|
|
19
|
+
import "../../chunk-6ZLPNY7X.mjs";
|
|
20
|
+
import "../../chunk-EUX2P2E7.mjs";
|
|
21
|
+
import "../../chunk-ZLQVRPDS.mjs";
|
|
22
22
|
import "../../chunk-SKC7AJIV.mjs";
|
|
23
23
|
export {
|
|
24
24
|
CopilotKit,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
ConsoleTrigger
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-DXEQPN43.mjs";
|
|
5
|
+
import "../../chunk-OKCYPO4I.mjs";
|
|
6
6
|
import "../../chunk-PIF5KJYI.mjs";
|
|
7
|
-
import "../../chunk-ZLQVRPDS.mjs";
|
|
8
7
|
import "../../chunk-EUX2P2E7.mjs";
|
|
8
|
+
import "../../chunk-ZLQVRPDS.mjs";
|
|
9
9
|
import "../../chunk-SKC7AJIV.mjs";
|
|
10
10
|
export {
|
|
11
11
|
ConsoleTrigger
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
DeveloperConsoleModal
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-OKCYPO4I.mjs";
|
|
5
5
|
import "../../chunk-PIF5KJYI.mjs";
|
|
6
|
-
import "../../chunk-ZLQVRPDS.mjs";
|
|
7
6
|
import "../../chunk-EUX2P2E7.mjs";
|
|
7
|
+
import "../../chunk-ZLQVRPDS.mjs";
|
|
8
8
|
import "../../chunk-SKC7AJIV.mjs";
|
|
9
9
|
export {
|
|
10
10
|
DeveloperConsoleModal
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotErrorBoundary,
|
|
3
3
|
ErrorToast
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-N4VN2B5S.mjs";
|
|
5
5
|
import "../../chunk-PMAFHQ7P.mjs";
|
|
6
|
-
import "../../chunk-6ZLPNY7X.mjs";
|
|
7
6
|
import "../../chunk-N4WEHORG.mjs";
|
|
8
7
|
import "../../chunk-O7ARI5CV.mjs";
|
|
9
8
|
import "../../chunk-EFL5OBKN.mjs";
|
|
9
|
+
import "../../chunk-6ZLPNY7X.mjs";
|
|
10
10
|
import "../../chunk-SKC7AJIV.mjs";
|
|
11
11
|
export {
|
|
12
12
|
CopilotErrorBoundary,
|
package/dist/components/index.js
CHANGED
|
@@ -1154,15 +1154,10 @@ var useCopilotRuntimeClient = (options) => {
|
|
|
1154
1154
|
const routeError = (gqlError) => {
|
|
1155
1155
|
const extensions = gqlError.extensions;
|
|
1156
1156
|
const visibility = extensions == null ? void 0 : extensions.visibility;
|
|
1157
|
-
const isDev = shouldShowDevConsole(showDevConsole != null ? showDevConsole : false);
|
|
1158
1157
|
if (visibility === import_shared6.ErrorVisibility.SILENT) {
|
|
1159
1158
|
console.error("CopilotKit Silent Error:", gqlError.message);
|
|
1160
1159
|
return;
|
|
1161
1160
|
}
|
|
1162
|
-
if (!isDev) {
|
|
1163
|
-
console.error("CopilotKit Error (hidden in production):", gqlError.message);
|
|
1164
|
-
return;
|
|
1165
|
-
}
|
|
1166
1161
|
const now = Date.now();
|
|
1167
1162
|
const errorMessage = gqlError.message;
|
|
1168
1163
|
if (lastStructuredErrorRef.current && lastStructuredErrorRef.current.message === errorMessage && now - lastStructuredErrorRef.current.timestamp < 150) {
|
|
@@ -1184,17 +1179,12 @@ var useCopilotRuntimeClient = (options) => {
|
|
|
1184
1179
|
};
|
|
1185
1180
|
graphQLErrors.forEach(routeError);
|
|
1186
1181
|
} else {
|
|
1187
|
-
const
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
code: import_shared6.CopilotKitErrorCode.UNKNOWN
|
|
1194
|
-
});
|
|
1195
|
-
setBannerError(fallbackError);
|
|
1196
|
-
traceUIError(fallbackError, error);
|
|
1197
|
-
}
|
|
1182
|
+
const fallbackError = new import_shared6.CopilotKitError({
|
|
1183
|
+
message: (error == null ? void 0 : error.message) || String(error),
|
|
1184
|
+
code: import_shared6.CopilotKitErrorCode.UNKNOWN
|
|
1185
|
+
});
|
|
1186
|
+
setBannerError(fallbackError);
|
|
1187
|
+
traceUIError(fallbackError, error);
|
|
1198
1188
|
}
|
|
1199
1189
|
},
|
|
1200
1190
|
handleGQLWarning: (message) => {
|
|
@@ -1206,7 +1196,7 @@ var useCopilotRuntimeClient = (options) => {
|
|
|
1206
1196
|
setBannerError(warningError);
|
|
1207
1197
|
}
|
|
1208
1198
|
}));
|
|
1209
|
-
}, [runtimeOptions, setBannerError,
|
|
1199
|
+
}, [runtimeOptions, setBannerError, onError]);
|
|
1210
1200
|
return runtimeClient;
|
|
1211
1201
|
};
|
|
1212
1202
|
function createStructuredError(gqlError) {
|