@copilotkit/react-core 1.9.2-next.9 → 1.9.3-next.0
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 +191 -0
- package/dist/{chunk-ERXWDCY6.mjs → chunk-36MGCCPZ.mjs} +2 -2
- package/dist/{chunk-UBNRUXEK.mjs → chunk-5BSUSFHM.mjs} +2 -2
- package/dist/{chunk-G7LYGERN.mjs → chunk-6ZLSC4KB.mjs} +124 -73
- package/dist/chunk-6ZLSC4KB.mjs.map +1 -0
- package/dist/{chunk-JDEWNLNP.mjs → chunk-BSAVFYRQ.mjs} +11 -11
- package/dist/{chunk-JDEWNLNP.mjs.map → chunk-BSAVFYRQ.mjs.map} +1 -1
- package/dist/{chunk-JPMIAGI6.mjs → chunk-BVK7PLK6.mjs} +2 -2
- package/dist/{chunk-FXK6RQIN.mjs → chunk-CUAFWKTQ.mjs} +4 -4
- package/dist/{chunk-XFOTNHYA.mjs → chunk-DKZTPL66.mjs} +2 -2
- package/dist/{chunk-XFOTNHYA.mjs.map → chunk-DKZTPL66.mjs.map} +1 -1
- package/dist/{chunk-EF5BNM34.mjs → chunk-FN3UA2ZE.mjs} +3 -3
- package/dist/{chunk-EXU7GWLC.mjs → chunk-GEE5AMYL.mjs} +9 -9
- package/dist/{chunk-WOGURSAL.mjs → chunk-GIMSRCVW.mjs} +64 -23
- package/dist/chunk-GIMSRCVW.mjs.map +1 -0
- package/dist/{chunk-55QZ2SVJ.mjs → chunk-JWAXDYOW.mjs} +8 -8
- package/dist/chunk-JWAXDYOW.mjs.map +1 -0
- package/dist/{chunk-3YHYWAHK.mjs → chunk-KIXKBJUV.mjs} +2 -2
- package/dist/{chunk-ADIITPD2.mjs → chunk-KLENTCQV.mjs} +34 -8
- package/dist/{chunk-ADIITPD2.mjs.map → chunk-KLENTCQV.mjs.map} +1 -1
- package/dist/{chunk-OF4SZTLL.mjs → chunk-NGQN3JRJ.mjs} +3 -3
- package/dist/{chunk-NQVCZQ5T.mjs → chunk-NJA5ZLAZ.mjs} +27 -8
- package/dist/chunk-NJA5ZLAZ.mjs.map +1 -0
- package/dist/{chunk-SJJNFYGQ.mjs → chunk-SGF6C7I6.mjs} +4 -4
- package/dist/{chunk-CMQV4XNY.mjs → chunk-VDADWRS3.mjs} +2 -2
- package/dist/components/copilot-provider/copilot-messages.js +7 -7
- package/dist/components/copilot-provider/copilot-messages.js.map +1 -1
- package/dist/components/copilot-provider/copilot-messages.mjs +3 -3
- package/dist/components/copilot-provider/copilotkit-props.d.ts +14 -9
- package/dist/components/copilot-provider/copilotkit-props.js.map +1 -1
- package/dist/components/copilot-provider/copilotkit.d.ts +1 -1
- package/dist/components/copilot-provider/copilotkit.js +70 -29
- package/dist/components/copilot-provider/copilotkit.js.map +1 -1
- package/dist/components/copilot-provider/copilotkit.mjs +9 -9
- package/dist/components/copilot-provider/index.d.ts +1 -1
- package/dist/components/copilot-provider/index.js +70 -29
- package/dist/components/copilot-provider/index.js.map +1 -1
- package/dist/components/copilot-provider/index.mjs +9 -9
- package/dist/components/error-boundary/error-boundary.mjs +2 -2
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +70 -29
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +9 -9
- package/dist/context/copilot-context.d.ts +1 -1
- package/dist/context/copilot-context.js +1 -1
- package/dist/context/copilot-context.js.map +1 -1
- package/dist/context/copilot-context.mjs +1 -1
- package/dist/context/index.d.ts +1 -1
- package/dist/context/index.js +1 -1
- package/dist/context/index.js.map +1 -1
- package/dist/context/index.mjs +4 -4
- package/dist/{copilot-context-3da805ab.d.ts → copilot-context-3ab4fdf5.d.ts} +3 -3
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +179 -83
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +23 -23
- package/dist/hooks/use-chat.d.ts +1 -1
- package/dist/hooks/use-chat.js +220 -169
- package/dist/hooks/use-chat.js.map +1 -1
- package/dist/hooks/use-chat.mjs +4 -4
- package/dist/hooks/use-coagent-state-render.js +1 -1
- package/dist/hooks/use-coagent-state-render.js.map +1 -1
- package/dist/hooks/use-coagent-state-render.mjs +2 -2
- package/dist/hooks/use-coagent.d.ts +1 -1
- package/dist/hooks/use-coagent.js +154 -77
- package/dist/hooks/use-coagent.js.map +1 -1
- package/dist/hooks/use-coagent.mjs +14 -14
- package/dist/hooks/use-copilot-action.js +26 -7
- package/dist/hooks/use-copilot-action.js.map +1 -1
- package/dist/hooks/use-copilot-action.mjs +2 -2
- package/dist/hooks/use-copilot-additional-instructions.js +1 -1
- package/dist/hooks/use-copilot-additional-instructions.js.map +1 -1
- package/dist/hooks/use-copilot-additional-instructions.mjs +2 -2
- package/dist/hooks/use-copilot-authenticated-action.js +26 -7
- package/dist/hooks/use-copilot-authenticated-action.js.map +1 -1
- package/dist/hooks/use-copilot-authenticated-action.mjs +3 -3
- package/dist/hooks/use-copilot-chat.d.ts +1 -1
- package/dist/hooks/use-copilot-chat.js +128 -77
- package/dist/hooks/use-copilot-chat.js.map +1 -1
- package/dist/hooks/use-copilot-chat.mjs +13 -13
- package/dist/hooks/use-copilot-readable.js +1 -1
- package/dist/hooks/use-copilot-readable.js.map +1 -1
- package/dist/hooks/use-copilot-readable.mjs +2 -2
- package/dist/hooks/use-copilot-runtime-client.d.ts +2 -2
- package/dist/hooks/use-copilot-runtime-client.js +7 -7
- package/dist/hooks/use-copilot-runtime-client.js.map +1 -1
- package/dist/hooks/use-copilot-runtime-client.mjs +1 -1
- package/dist/hooks/use-langgraph-interrupt-render.js +1 -1
- package/dist/hooks/use-langgraph-interrupt-render.js.map +1 -1
- package/dist/hooks/use-langgraph-interrupt-render.mjs +2 -2
- package/dist/hooks/use-langgraph-interrupt.d.ts +1 -1
- package/dist/hooks/use-langgraph-interrupt.js +128 -77
- package/dist/hooks/use-langgraph-interrupt.js.map +1 -1
- package/dist/hooks/use-langgraph-interrupt.mjs +14 -14
- package/dist/hooks/use-make-copilot-document-readable.js +1 -1
- package/dist/hooks/use-make-copilot-document-readable.js.map +1 -1
- package/dist/hooks/use-make-copilot-document-readable.mjs +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +240 -103
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -27
- package/dist/lib/copilot-task.d.ts +1 -1
- package/dist/lib/copilot-task.js.map +1 -1
- package/dist/lib/copilot-task.mjs +11 -11
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +11 -11
- package/dist/setupTests.d.ts +2 -0
- package/dist/setupTests.js +26 -0
- package/dist/setupTests.js.map +1 -0
- package/dist/setupTests.mjs +24 -0
- package/dist/setupTests.mjs.map +1 -0
- package/dist/types/interrupt-action.d.ts +1 -1
- package/dist/utils/extract.d.ts +1 -1
- package/dist/utils/extract.js.map +1 -1
- package/dist/utils/extract.mjs +9 -9
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +10 -10
- package/jest.config.js +4 -0
- package/package.json +6 -3
- package/src/components/copilot-provider/__tests__/{copilotkit-trace.test.tsx → copilotkit-error.test.tsx} +17 -17
- package/src/components/copilot-provider/copilot-messages.tsx +7 -7
- package/src/components/copilot-provider/copilotkit-props.tsx +13 -8
- package/src/components/copilot-provider/copilotkit.tsx +61 -19
- package/src/context/copilot-context.tsx +4 -4
- package/src/hooks/__tests__/use-coagent-config.test.ts +284 -0
- package/src/hooks/use-chat.ts +149 -61
- package/src/hooks/use-coagent.ts +36 -0
- package/src/hooks/use-copilot-action.ts +51 -9
- package/src/hooks/use-copilot-runtime-client.ts +11 -12
- package/src/setupTests.ts +26 -0
- package/tsconfig.json +5 -2
- package/dist/chunk-55QZ2SVJ.mjs.map +0 -1
- package/dist/chunk-G7LYGERN.mjs.map +0 -1
- package/dist/chunk-NQVCZQ5T.mjs.map +0 -1
- package/dist/chunk-WOGURSAL.mjs.map +0 -1
- /package/dist/{chunk-ERXWDCY6.mjs.map → chunk-36MGCCPZ.mjs.map} +0 -0
- /package/dist/{chunk-UBNRUXEK.mjs.map → chunk-5BSUSFHM.mjs.map} +0 -0
- /package/dist/{chunk-JPMIAGI6.mjs.map → chunk-BVK7PLK6.mjs.map} +0 -0
- /package/dist/{chunk-FXK6RQIN.mjs.map → chunk-CUAFWKTQ.mjs.map} +0 -0
- /package/dist/{chunk-EF5BNM34.mjs.map → chunk-FN3UA2ZE.mjs.map} +0 -0
- /package/dist/{chunk-EXU7GWLC.mjs.map → chunk-GEE5AMYL.mjs.map} +0 -0
- /package/dist/{chunk-3YHYWAHK.mjs.map → chunk-KIXKBJUV.mjs.map} +0 -0
- /package/dist/{chunk-OF4SZTLL.mjs.map → chunk-NGQN3JRJ.mjs.map} +0 -0
- /package/dist/{chunk-SJJNFYGQ.mjs.map → chunk-SGF6C7I6.mjs.map} +0 -0
- /package/dist/{chunk-CMQV4XNY.mjs.map → chunk-VDADWRS3.mjs.map} +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotKit,
|
|
3
3
|
defaultCopilotContextCategories
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-GIMSRCVW.mjs";
|
|
5
|
+
import "../../chunk-SGF6C7I6.mjs";
|
|
6
|
+
import "../../chunk-BSAVFYRQ.mjs";
|
|
7
|
+
import "../../chunk-PMAFHQ7P.mjs";
|
|
7
8
|
import "../../chunk-5FHSUKQL.mjs";
|
|
8
9
|
import "../../chunk-RKTVJRK7.mjs";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-DCTJZ742.mjs";
|
|
10
|
+
import "../../chunk-JWAXDYOW.mjs";
|
|
11
|
+
import "../../chunk-GFJW4RIM.mjs";
|
|
12
12
|
import "../../chunk-3OQM3NEK.mjs";
|
|
13
13
|
import "../../chunk-O7ARI5CV.mjs";
|
|
14
|
-
import "../../chunk-55QZ2SVJ.mjs";
|
|
15
|
-
import "../../chunk-GFJW4RIM.mjs";
|
|
16
14
|
import "../../chunk-YAF2LATQ.mjs";
|
|
17
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-57K2ZJ5F.mjs";
|
|
16
|
+
import "../../chunk-DKZTPL66.mjs";
|
|
17
|
+
import "../../chunk-DCTJZ742.mjs";
|
|
18
18
|
import "../../chunk-SKC7AJIV.mjs";
|
|
19
19
|
export {
|
|
20
20
|
CopilotKit,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotErrorBoundary,
|
|
3
3
|
ErrorToast
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-SGF6C7I6.mjs";
|
|
5
5
|
import "../../chunk-PMAFHQ7P.mjs";
|
|
6
|
-
import "../../chunk-57K2ZJ5F.mjs";
|
|
7
6
|
import "../../chunk-3OQM3NEK.mjs";
|
|
8
7
|
import "../../chunk-O7ARI5CV.mjs";
|
|
9
8
|
import "../../chunk-YAF2LATQ.mjs";
|
|
9
|
+
import "../../chunk-57K2ZJ5F.mjs";
|
|
10
10
|
import "../../chunk-SKC7AJIV.mjs";
|
|
11
11
|
export {
|
|
12
12
|
CopilotErrorBoundary,
|
|
@@ -3,7 +3,7 @@ export { CopilotKitProps } from './copilot-provider/copilotkit-props.js';
|
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import '@copilotkit/runtime-client-gql';
|
|
5
5
|
import 'react';
|
|
6
|
-
import '../copilot-context-
|
|
6
|
+
import '../copilot-context-3ab4fdf5.js';
|
|
7
7
|
import '@copilotkit/shared';
|
|
8
8
|
import '../types/frontend-action.js';
|
|
9
9
|
import '../hooks/use-tree.js';
|
package/dist/components/index.js
CHANGED
|
@@ -162,7 +162,7 @@ var emptyCopilotContext = {
|
|
|
162
162
|
langGraphInterruptAction: null,
|
|
163
163
|
setLangGraphInterruptAction: () => null,
|
|
164
164
|
removeLangGraphInterruptAction: () => null,
|
|
165
|
-
|
|
165
|
+
onError: void 0
|
|
166
166
|
};
|
|
167
167
|
var CopilotContext = import_react.default.createContext(emptyCopilotContext);
|
|
168
168
|
function useCopilotContext() {
|
|
@@ -707,11 +707,11 @@ function CopilotMessages({ children }) {
|
|
|
707
707
|
const lastLoadedThreadId = (0, import_react6.useRef)();
|
|
708
708
|
const lastLoadedAgentName = (0, import_react6.useRef)();
|
|
709
709
|
const lastLoadedMessages = (0, import_react6.useRef)();
|
|
710
|
-
const { threadId, agentSession, runtimeClient, showDevConsole,
|
|
710
|
+
const { threadId, agentSession, runtimeClient, showDevConsole, onError, copilotApiConfig } = useCopilotContext();
|
|
711
711
|
const { setBannerError } = useToast();
|
|
712
712
|
const traceUIError = (0, import_react6.useCallback)(
|
|
713
713
|
(error, originalError) => __async(this, null, function* () {
|
|
714
|
-
if (!
|
|
714
|
+
if (!onError || !copilotApiConfig.publicApiKey)
|
|
715
715
|
return;
|
|
716
716
|
try {
|
|
717
717
|
const traceEvent = {
|
|
@@ -732,12 +732,12 @@ function CopilotMessages({ children }) {
|
|
|
732
732
|
},
|
|
733
733
|
error
|
|
734
734
|
};
|
|
735
|
-
yield
|
|
735
|
+
yield onError(traceEvent);
|
|
736
736
|
} catch (traceError) {
|
|
737
|
-
console.error("Error in CopilotMessages
|
|
737
|
+
console.error("Error in CopilotMessages onError handler:", traceError);
|
|
738
738
|
}
|
|
739
739
|
}),
|
|
740
|
-
[
|
|
740
|
+
[onError, copilotApiConfig.publicApiKey, copilotApiConfig.chatApiEndpoint]
|
|
741
741
|
);
|
|
742
742
|
const createStructuredError2 = (gqlError) => {
|
|
743
743
|
const extensions = gqlError.extensions;
|
|
@@ -842,7 +842,7 @@ function CopilotMessages({ children }) {
|
|
|
842
842
|
}
|
|
843
843
|
});
|
|
844
844
|
void fetchMessages();
|
|
845
|
-
}, [threadId, agentSession == null ? void 0 : agentSession.agentName
|
|
845
|
+
}, [threadId, agentSession == null ? void 0 : agentSession.agentName]);
|
|
846
846
|
const memoizedChildren = (0, import_react6.useMemo)(() => children, [children]);
|
|
847
847
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
848
848
|
CopilotMessagesContext.Provider,
|
|
@@ -862,13 +862,13 @@ var import_react7 = require("react");
|
|
|
862
862
|
var import_shared5 = require("@copilotkit/shared");
|
|
863
863
|
var useCopilotRuntimeClient = (options) => {
|
|
864
864
|
const { setBannerError } = useToast();
|
|
865
|
-
const _a = options, { showDevConsole,
|
|
865
|
+
const _a = options, { showDevConsole, onError } = _a, runtimeOptions = __objRest(_a, ["showDevConsole", "onError"]);
|
|
866
866
|
const lastStructuredErrorRef = (0, import_react7.useRef)(null);
|
|
867
867
|
const traceUIError = (error, originalError) => __async(void 0, null, function* () {
|
|
868
|
-
if (!
|
|
868
|
+
if (!onError || !runtimeOptions.publicApiKey)
|
|
869
869
|
return;
|
|
870
870
|
try {
|
|
871
|
-
const
|
|
871
|
+
const errorEvent = {
|
|
872
872
|
type: "error",
|
|
873
873
|
timestamp: Date.now(),
|
|
874
874
|
context: {
|
|
@@ -886,9 +886,9 @@ var useCopilotRuntimeClient = (options) => {
|
|
|
886
886
|
},
|
|
887
887
|
error
|
|
888
888
|
};
|
|
889
|
-
yield
|
|
890
|
-
} catch (
|
|
891
|
-
console.error("Error in
|
|
889
|
+
yield onError(errorEvent);
|
|
890
|
+
} catch (error2) {
|
|
891
|
+
console.error("Error in onError handler:", error2);
|
|
892
892
|
}
|
|
893
893
|
});
|
|
894
894
|
const runtimeClient = (0, import_react7.useMemo)(() => {
|
|
@@ -952,7 +952,7 @@ var useCopilotRuntimeClient = (options) => {
|
|
|
952
952
|
setBannerError(warningError);
|
|
953
953
|
}
|
|
954
954
|
}));
|
|
955
|
-
}, [runtimeOptions, setBannerError, showDevConsole,
|
|
955
|
+
}, [runtimeOptions, setBannerError, showDevConsole, onError]);
|
|
956
956
|
return runtimeClient;
|
|
957
957
|
};
|
|
958
958
|
function createStructuredError(gqlError) {
|
|
@@ -1722,18 +1722,24 @@ ${nonDocumentStrings}`;
|
|
|
1722
1722
|
headers,
|
|
1723
1723
|
credentials: copilotApiConfig.credentials,
|
|
1724
1724
|
showDevConsole: (_b = props.showDevConsole) != null ? _b : false,
|
|
1725
|
-
|
|
1725
|
+
onError: props.onError
|
|
1726
1726
|
});
|
|
1727
1727
|
const [chatSuggestionConfiguration, setChatSuggestionConfiguration] = (0, import_react10.useState)({});
|
|
1728
|
-
const addChatSuggestionConfiguration = (
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
setChatSuggestionConfiguration
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1728
|
+
const addChatSuggestionConfiguration = (0, import_react10.useCallback)(
|
|
1729
|
+
(id, suggestion) => {
|
|
1730
|
+
setChatSuggestionConfiguration((prev) => __spreadProps(__spreadValues({}, prev), { [id]: suggestion }));
|
|
1731
|
+
},
|
|
1732
|
+
[setChatSuggestionConfiguration]
|
|
1733
|
+
);
|
|
1734
|
+
const removeChatSuggestionConfiguration = (0, import_react10.useCallback)(
|
|
1735
|
+
(id) => {
|
|
1736
|
+
setChatSuggestionConfiguration((prev) => {
|
|
1737
|
+
const _a2 = prev, { [id]: _ } = _a2, rest = __objRest(_a2, [__restKey(id)]);
|
|
1738
|
+
return rest;
|
|
1739
|
+
});
|
|
1740
|
+
},
|
|
1741
|
+
[setChatSuggestionConfiguration]
|
|
1742
|
+
);
|
|
1737
1743
|
const [availableAgents, setAvailableAgents] = (0, import_react10.useState)([]);
|
|
1738
1744
|
const [coagentStates, setCoagentStates] = (0, import_react10.useState)({});
|
|
1739
1745
|
const coagentStatesRef = (0, import_react10.useRef)({});
|
|
@@ -1813,6 +1819,41 @@ ${nonDocumentStrings}`;
|
|
|
1813
1819
|
setLangGraphInterruptAction(null);
|
|
1814
1820
|
}, []);
|
|
1815
1821
|
const memoizedChildren = (0, import_react10.useMemo)(() => children, [children]);
|
|
1822
|
+
const agentLock = (0, import_react10.useMemo)(() => {
|
|
1823
|
+
var _a2;
|
|
1824
|
+
return (_a2 = props.agent) != null ? _a2 : null;
|
|
1825
|
+
}, [props.agent]);
|
|
1826
|
+
const forwardedParameters = (0, import_react10.useMemo)(
|
|
1827
|
+
() => {
|
|
1828
|
+
var _a2;
|
|
1829
|
+
return (_a2 = props.forwardedParameters) != null ? _a2 : {};
|
|
1830
|
+
},
|
|
1831
|
+
[props.forwardedParameters]
|
|
1832
|
+
);
|
|
1833
|
+
const updateExtensions = (0, import_react10.useCallback)(
|
|
1834
|
+
(newExtensions) => {
|
|
1835
|
+
setExtensions((prev) => {
|
|
1836
|
+
const resolved = typeof newExtensions === "function" ? newExtensions(prev) : newExtensions;
|
|
1837
|
+
const isSameLength = Object.keys(resolved).length === Object.keys(prev).length;
|
|
1838
|
+
const isEqual = isSameLength && // @ts-ignore
|
|
1839
|
+
Object.entries(resolved).every(([key, value]) => prev[key] === value);
|
|
1840
|
+
return isEqual ? prev : resolved;
|
|
1841
|
+
});
|
|
1842
|
+
},
|
|
1843
|
+
[setExtensions]
|
|
1844
|
+
);
|
|
1845
|
+
const updateAuthStates = (0, import_react10.useCallback)(
|
|
1846
|
+
(newAuthStates) => {
|
|
1847
|
+
setAuthStates((prev) => {
|
|
1848
|
+
const resolved = typeof newAuthStates === "function" ? newAuthStates(prev) : newAuthStates;
|
|
1849
|
+
const isSameLength = Object.keys(resolved).length === Object.keys(prev).length;
|
|
1850
|
+
const isEqual = isSameLength && // @ts-ignore
|
|
1851
|
+
Object.entries(resolved).every(([key, value]) => prev[key] === value);
|
|
1852
|
+
return isEqual ? prev : resolved;
|
|
1853
|
+
});
|
|
1854
|
+
},
|
|
1855
|
+
[setAuthStates]
|
|
1856
|
+
);
|
|
1816
1857
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1817
1858
|
CopilotContext.Provider,
|
|
1818
1859
|
{
|
|
@@ -1850,8 +1891,8 @@ ${nonDocumentStrings}`;
|
|
|
1850
1891
|
agentSession,
|
|
1851
1892
|
setAgentSession,
|
|
1852
1893
|
runtimeClient,
|
|
1853
|
-
forwardedParameters
|
|
1854
|
-
agentLock
|
|
1894
|
+
forwardedParameters,
|
|
1895
|
+
agentLock,
|
|
1855
1896
|
threadId: internalThreadId,
|
|
1856
1897
|
setThreadId,
|
|
1857
1898
|
runId,
|
|
@@ -1860,13 +1901,13 @@ ${nonDocumentStrings}`;
|
|
|
1860
1901
|
availableAgents,
|
|
1861
1902
|
authConfig_c: props.authConfig_c,
|
|
1862
1903
|
authStates_c: authStates,
|
|
1863
|
-
setAuthStates_c:
|
|
1904
|
+
setAuthStates_c: updateAuthStates,
|
|
1864
1905
|
extensions,
|
|
1865
|
-
setExtensions,
|
|
1906
|
+
setExtensions: updateExtensions,
|
|
1866
1907
|
langGraphInterruptAction,
|
|
1867
1908
|
setLangGraphInterruptAction,
|
|
1868
1909
|
removeLangGraphInterruptAction,
|
|
1869
|
-
|
|
1910
|
+
onError: props.onError
|
|
1870
1911
|
},
|
|
1871
1912
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CopilotMessages, { children: memoizedChildren })
|
|
1872
1913
|
}
|