@copilotkit/react-core 1.10.5-next.0 → 1.10.5-next.1
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-MY2BUA6F.mjs → chunk-2MGJO3FY.mjs} +6 -6
- package/dist/{chunk-CLQLVMW4.mjs → chunk-2QZSAQTX.mjs} +4 -4
- package/dist/{chunk-23SOG4FI.mjs → chunk-DSDAZA3B.mjs} +4 -4
- package/dist/{chunk-G2GQX4FI.mjs → chunk-FRXYSJGZ.mjs} +2 -2
- package/dist/{chunk-AR7HJPGU.mjs → chunk-JEMBA7PE.mjs} +4 -4
- package/dist/{chunk-4JBVPOHK.mjs → chunk-KWS75AOU.mjs} +2 -2
- package/dist/{chunk-L3I57GMV.mjs → chunk-N4VN2B5S.mjs} +4 -4
- package/dist/{chunk-AGP7SAEE.mjs → chunk-O73FZGSU.mjs} +8 -8
- package/dist/{chunk-FCRODLLL.mjs → chunk-OLXYK6PP.mjs} +8 -8
- package/dist/{chunk-HHLBUGRA.mjs → chunk-RLT4KZR4.mjs} +2 -2
- package/dist/{chunk-7D4OASUM.mjs → chunk-UPQPBCUW.mjs} +4 -4
- package/dist/{chunk-6INCKUL6.mjs → chunk-WBBJMOZI.mjs} +23 -11
- package/dist/chunk-WBBJMOZI.mjs.map +1 -0
- package/dist/{chunk-NALRM7KT.mjs → chunk-WRPXFDFL.mjs} +5 -5
- package/dist/{chunk-KA3NCZEJ.mjs → chunk-XFJNMZ6X.mjs} +2 -2
- package/dist/{chunk-7LZXD5RJ.mjs → chunk-ZRDV3MVW.mjs} +11 -11
- 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 +16 -4
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +31 -31
- package/dist/hooks/use-chat.js +16 -4
- 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 +16 -4
- 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 +16 -4
- 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 +16 -4
- 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 +16 -4
- 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 +16 -4
- package/dist/hooks/use-langgraph-interrupt.js.map +1 -1
- package/dist/hooks/use-langgraph-interrupt.mjs +15 -15
- package/dist/index.js +16 -4
- 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 +18 -4
- package/dist/chunk-6INCKUL6.mjs.map +0 -1
- /package/dist/{chunk-MY2BUA6F.mjs.map → chunk-2MGJO3FY.mjs.map} +0 -0
- /package/dist/{chunk-CLQLVMW4.mjs.map → chunk-2QZSAQTX.mjs.map} +0 -0
- /package/dist/{chunk-23SOG4FI.mjs.map → chunk-DSDAZA3B.mjs.map} +0 -0
- /package/dist/{chunk-G2GQX4FI.mjs.map → chunk-FRXYSJGZ.mjs.map} +0 -0
- /package/dist/{chunk-AR7HJPGU.mjs.map → chunk-JEMBA7PE.mjs.map} +0 -0
- /package/dist/{chunk-4JBVPOHK.mjs.map → chunk-KWS75AOU.mjs.map} +0 -0
- /package/dist/{chunk-L3I57GMV.mjs.map → chunk-N4VN2B5S.mjs.map} +0 -0
- /package/dist/{chunk-AGP7SAEE.mjs.map → chunk-O73FZGSU.mjs.map} +0 -0
- /package/dist/{chunk-FCRODLLL.mjs.map → chunk-OLXYK6PP.mjs.map} +0 -0
- /package/dist/{chunk-HHLBUGRA.mjs.map → chunk-RLT4KZR4.mjs.map} +0 -0
- /package/dist/{chunk-7D4OASUM.mjs.map → chunk-UPQPBCUW.mjs.map} +0 -0
- /package/dist/{chunk-NALRM7KT.mjs.map → chunk-WRPXFDFL.mjs.map} +0 -0
- /package/dist/{chunk-KA3NCZEJ.mjs.map → chunk-XFJNMZ6X.mjs.map} +0 -0
- /package/dist/{chunk-7LZXD5RJ.mjs.map → chunk-ZRDV3MVW.mjs.map} +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useLangGraphInterrupt
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-WRPXFDFL.mjs";
|
|
4
|
+
import "../chunk-OLXYK6PP.mjs";
|
|
5
5
|
import "../chunk-QF3Q5LUN.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-WBBJMOZI.mjs";
|
|
7
|
+
import "../chunk-4CEQJ2X6.mjs";
|
|
8
|
+
import "../chunk-ZRDV3MVW.mjs";
|
|
9
|
+
import "../chunk-N4VN2B5S.mjs";
|
|
10
|
+
import "../chunk-2MGJO3FY.mjs";
|
|
11
|
+
import "../chunk-FRXYSJGZ.mjs";
|
|
12
|
+
import "../chunk-DSDAZA3B.mjs";
|
|
12
13
|
import "../chunk-PIF5KJYI.mjs";
|
|
13
14
|
import "../chunk-2IDV5OHF.mjs";
|
|
14
15
|
import "../chunk-PMAFHQ7P.mjs";
|
|
15
16
|
import "../chunk-5FHSUKQL.mjs";
|
|
16
17
|
import "../chunk-RKTVJRK7.mjs";
|
|
17
|
-
import "../chunk-ZLQVRPDS.mjs";
|
|
18
|
-
import "../chunk-6ZLPNY7X.mjs";
|
|
19
|
-
import "../chunk-6INCKUL6.mjs";
|
|
20
|
-
import "../chunk-4CEQJ2X6.mjs";
|
|
21
|
-
import "../chunk-N4WEHORG.mjs";
|
|
22
|
-
import "../chunk-O7ARI5CV.mjs";
|
|
23
18
|
import "../chunk-Q3MCVRO3.mjs";
|
|
24
19
|
import "../chunk-ICIK2BSB.mjs";
|
|
25
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-N4WEHORG.mjs";
|
|
21
|
+
import "../chunk-O7ARI5CV.mjs";
|
|
26
22
|
import "../chunk-EFL5OBKN.mjs";
|
|
23
|
+
import "../chunk-6ZLPNY7X.mjs";
|
|
24
|
+
import "../chunk-YPSGKPDA.mjs";
|
|
25
|
+
import "../chunk-YHT6CWIY.mjs";
|
|
26
|
+
import "../chunk-ZLQVRPDS.mjs";
|
|
27
27
|
import "../chunk-SKC7AJIV.mjs";
|
|
28
28
|
export {
|
|
29
29
|
useLangGraphInterrupt
|
package/dist/index.js
CHANGED
|
@@ -3305,7 +3305,18 @@ function useChat(options) {
|
|
|
3305
3305
|
const runChatCompletionRef = (0, import_react13.useRef)();
|
|
3306
3306
|
const addErrorToast = useErrorToast();
|
|
3307
3307
|
const { setBannerError } = useToast();
|
|
3308
|
-
const { onError } = useCopilotContext();
|
|
3308
|
+
const { onError, showDevConsole, getAllContext } = useCopilotContext();
|
|
3309
|
+
const copilotReadableContext = getAllContext();
|
|
3310
|
+
const context = (0, import_react13.useMemo)(
|
|
3311
|
+
() => copilotReadableContext.map((contextItem) => {
|
|
3312
|
+
const [description, ...valueParts] = contextItem.value.split(":");
|
|
3313
|
+
return {
|
|
3314
|
+
description: description.trim(),
|
|
3315
|
+
value: valueParts.join(":").trim()
|
|
3316
|
+
};
|
|
3317
|
+
}),
|
|
3318
|
+
[copilotReadableContext]
|
|
3319
|
+
);
|
|
3309
3320
|
const traceUIError = (error, originalError) => __async(this, null, function* () {
|
|
3310
3321
|
try {
|
|
3311
3322
|
const traceEvent = {
|
|
@@ -3339,7 +3350,6 @@ function useChat(options) {
|
|
|
3339
3350
|
extensionsRef.current = extensions;
|
|
3340
3351
|
const publicApiKey = copilotConfig.publicApiKey;
|
|
3341
3352
|
const headers = __spreadValues(__spreadValues({}, copilotConfig.headers || {}), publicApiKey ? { [import_shared14.COPILOT_CLOUD_PUBLIC_API_KEY_HEADER]: publicApiKey } : {});
|
|
3342
|
-
const { showDevConsole } = useCopilotContext();
|
|
3343
3353
|
const runtimeClient = useCopilotRuntimeClient({
|
|
3344
3354
|
url: copilotConfig.chatApiEndpoint,
|
|
3345
3355
|
publicApiKey: copilotConfig.publicApiKey,
|
|
@@ -3420,7 +3430,8 @@ function useChat(options) {
|
|
|
3420
3430
|
}
|
|
3421
3431
|
return stateObject;
|
|
3422
3432
|
}),
|
|
3423
|
-
forwardedParameters: options.forwardedParameters || {}
|
|
3433
|
+
forwardedParameters: options.forwardedParameters || {},
|
|
3434
|
+
context
|
|
3424
3435
|
}),
|
|
3425
3436
|
properties: finalProperties,
|
|
3426
3437
|
signal: (_e = chatAbortControllerRef.current) == null ? void 0 : _e.signal
|
|
@@ -3732,7 +3743,8 @@ function useChat(options) {
|
|
|
3732
3743
|
coagentStatesRef,
|
|
3733
3744
|
agentSession,
|
|
3734
3745
|
setAgentSession,
|
|
3735
|
-
disableSystemMessage
|
|
3746
|
+
disableSystemMessage,
|
|
3747
|
+
context
|
|
3736
3748
|
]
|
|
3737
3749
|
);
|
|
3738
3750
|
runChatCompletionRef.current = runChatCompletion;
|