@copilotkit/react-core 1.76.0 → 1.77.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/dist/{copilotkit-dHdNF7H5.cjs → copilotkit-CFPkj9B9.cjs} +89 -24
- package/dist/copilotkit-CFPkj9B9.cjs.map +1 -0
- package/dist/{copilotkit-LD7Gp2aV.mjs → copilotkit-CP9qPAqV.mjs} +89 -24
- package/dist/copilotkit-CP9qPAqV.mjs.map +1 -0
- package/dist/{copilotkit-B90cY0Zg.d.mts → copilotkit-Cqa0TfEo.d.mts} +28 -3
- package/dist/copilotkit-Cqa0TfEo.d.mts.map +1 -0
- package/dist/{copilotkit-W-bV_OSs.d.cts → copilotkit-DGc2YiW9.d.cts} +33 -3
- package/dist/copilotkit-DGc2YiW9.d.cts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.umd.js +70 -16
- package/dist/index.umd.js.map +1 -1
- package/dist/v2/context.cjs.map +1 -1
- package/dist/v2/context.d.cts +5 -0
- package/dist/v2/context.d.cts.map +1 -1
- package/dist/v2/context.d.mts +5 -0
- package/dist/v2/context.d.mts.map +1 -1
- package/dist/v2/context.mjs.map +1 -1
- package/dist/v2/headless.cjs +19 -0
- package/dist/v2/headless.cjs.map +1 -1
- package/dist/v2/headless.d.cts +5 -0
- package/dist/v2/headless.d.cts.map +1 -1
- package/dist/v2/headless.d.mts.map +1 -1
- package/dist/v2/headless.mjs +20 -1
- package/dist/v2/headless.mjs.map +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.d.cts +2 -2
- package/dist/v2/index.d.mts +2 -2
- package/dist/v2/index.mjs +1 -1
- package/dist/v2/index.umd.js +88 -23
- package/dist/v2/index.umd.js.map +1 -1
- package/package.json +8 -8
- package/dist/copilotkit-B90cY0Zg.d.mts.map +0 -1
- package/dist/copilotkit-LD7Gp2aV.mjs.map +0 -1
- package/dist/copilotkit-W-bV_OSs.d.cts.map +0 -1
- package/dist/copilotkit-dHdNF7H5.cjs.map +0 -1
|
@@ -142,6 +142,25 @@ const CopilotChatConfigurationProvider = ({ children, labels, agentId, threadId,
|
|
|
142
142
|
parentConfig?.threadId,
|
|
143
143
|
activeThreadOverride
|
|
144
144
|
]);
|
|
145
|
+
const copilotkit = useContext(CopilotKitContext)?.copilotkit;
|
|
146
|
+
const openThreadRef = useRef(null);
|
|
147
|
+
const latestThreadIdRef = useRef(resolvedThreadId);
|
|
148
|
+
latestThreadIdRef.current = resolvedThreadId;
|
|
149
|
+
useEffect(() => {
|
|
150
|
+
if (copilotkit === void 0) return;
|
|
151
|
+
const registration = copilotkit.registerOpenThread({
|
|
152
|
+
agentId: resolvedAgentId,
|
|
153
|
+
threadId: latestThreadIdRef.current
|
|
154
|
+
});
|
|
155
|
+
openThreadRef.current = registration;
|
|
156
|
+
return () => {
|
|
157
|
+
registration.unregister();
|
|
158
|
+
openThreadRef.current = null;
|
|
159
|
+
};
|
|
160
|
+
}, [copilotkit, resolvedAgentId]);
|
|
161
|
+
useEffect(() => {
|
|
162
|
+
openThreadRef.current?.update(resolvedThreadId);
|
|
163
|
+
}, [resolvedThreadId]);
|
|
145
164
|
const resolvedHasExplicitThreadId = (threadIdPropIsAuthoritative ? true : activeThreadOverride?.explicit ?? hasExplicitThreadId ?? false) || !!parentConfig?.hasExplicitThreadId;
|
|
146
165
|
const [internalModalOpen, setInternalModalOpen] = useState(isModalDefaultOpen ?? true);
|
|
147
166
|
const hasExplicitDefault = isModalDefaultOpen !== void 0;
|
|
@@ -1607,7 +1626,7 @@ function useRenderToolCall() {
|
|
|
1607
1626
|
|
|
1608
1627
|
//#endregion
|
|
1609
1628
|
//#region package.json
|
|
1610
|
-
var version = "1.
|
|
1629
|
+
var version = "1.77.0";
|
|
1611
1630
|
|
|
1612
1631
|
//#endregion
|
|
1613
1632
|
//#region src/v2/components/CopilotKitInspector.tsx
|
|
@@ -1843,12 +1862,14 @@ function InlineFeatureWarning({ featureName }) {
|
|
|
1843
1862
|
* Fetches resource content on-demand via proxied MCP requests. The React shell
|
|
1844
1863
|
* owns the iframe; `bindMcpApp` owns the protocol.
|
|
1845
1864
|
*/
|
|
1846
|
-
const MCPAppsActivityRenderer = function MCPAppsActivityRenderer({ content, agent }) {
|
|
1865
|
+
const MCPAppsActivityRenderer = function MCPAppsActivityRenderer({ content, message, agent }) {
|
|
1847
1866
|
const { copilotkit } = useCopilotKit$1();
|
|
1867
|
+
const messageId = message?.id;
|
|
1848
1868
|
const containerRef = useRef(null);
|
|
1849
1869
|
const iframeRef = useRef(null);
|
|
1850
1870
|
const sessionRef = useRef(null);
|
|
1851
1871
|
const [error, setError] = useState(null);
|
|
1872
|
+
const [contentError, setContentError] = useState(null);
|
|
1852
1873
|
const [isLoading, setIsLoading] = useState(true);
|
|
1853
1874
|
const [iframeSize, setIframeSize] = useState({});
|
|
1854
1875
|
const [fetchedResource, setFetchedResource] = useState(null);
|
|
@@ -1867,6 +1888,7 @@ const MCPAppsActivityRenderer = function MCPAppsActivityRenderer({ content, agen
|
|
|
1867
1888
|
let mounted = true;
|
|
1868
1889
|
setIsLoading(true);
|
|
1869
1890
|
setError(null);
|
|
1891
|
+
setContentError(null);
|
|
1870
1892
|
const iframe = document.createElement("iframe");
|
|
1871
1893
|
iframe.style.width = "100%";
|
|
1872
1894
|
iframe.style.height = "100px";
|
|
@@ -1889,6 +1911,7 @@ const MCPAppsActivityRenderer = function MCPAppsActivityRenderer({ content, agen
|
|
|
1889
1911
|
getContent: () => contentRef.current,
|
|
1890
1912
|
getAgent: () => agentRef.current,
|
|
1891
1913
|
host: copilotkit,
|
|
1914
|
+
messageId,
|
|
1892
1915
|
hooks: {
|
|
1893
1916
|
onResource: (resource) => {
|
|
1894
1917
|
if (!mounted) return;
|
|
@@ -1898,6 +1921,9 @@ const MCPAppsActivityRenderer = function MCPAppsActivityRenderer({ content, agen
|
|
|
1898
1921
|
onSizeChanged: (size) => {
|
|
1899
1922
|
if (mounted) setIframeSize(size);
|
|
1900
1923
|
},
|
|
1924
|
+
onContentError: (err) => {
|
|
1925
|
+
if (mounted) setContentError(err);
|
|
1926
|
+
},
|
|
1901
1927
|
onError: (err) => {
|
|
1902
1928
|
if (!mounted) return;
|
|
1903
1929
|
setError(err);
|
|
@@ -1906,9 +1932,7 @@ const MCPAppsActivityRenderer = function MCPAppsActivityRenderer({ content, agen
|
|
|
1906
1932
|
}
|
|
1907
1933
|
});
|
|
1908
1934
|
sessionRef.current = session;
|
|
1909
|
-
|
|
1910
|
-
if (current.toolInput) session.sendToolInput(current.toolInput);
|
|
1911
|
-
if (current.result) session.sendToolResult(current.result);
|
|
1935
|
+
session.syncContent(contentRef.current);
|
|
1912
1936
|
} catch (err) {
|
|
1913
1937
|
console.error("[MCPAppsRenderer] Setup error:", err);
|
|
1914
1938
|
if (mounted) {
|
|
@@ -1928,6 +1952,7 @@ const MCPAppsActivityRenderer = function MCPAppsActivityRenderer({ content, agen
|
|
|
1928
1952
|
}, [
|
|
1929
1953
|
agent,
|
|
1930
1954
|
copilotkit,
|
|
1955
|
+
messageId,
|
|
1931
1956
|
content.resourceUri,
|
|
1932
1957
|
content.serverHash,
|
|
1933
1958
|
content.serverId
|
|
@@ -1942,11 +1967,8 @@ const MCPAppsActivityRenderer = function MCPAppsActivityRenderer({ content, agen
|
|
|
1942
1967
|
}
|
|
1943
1968
|
}, [iframeSize]);
|
|
1944
1969
|
useEffect(() => {
|
|
1945
|
-
|
|
1946
|
-
}, [content.toolInput]);
|
|
1947
|
-
useEffect(() => {
|
|
1948
|
-
if (content.result) sessionRef.current?.sendToolResult(content.result);
|
|
1949
|
-
}, [content.result]);
|
|
1970
|
+
sessionRef.current?.syncContent(contentRef.current);
|
|
1971
|
+
}, [content.toolInput, content.result]);
|
|
1950
1972
|
const borderStyle = fetchedResource?._meta?.ui?.prefersBorder === true ? {
|
|
1951
1973
|
borderRadius: "8px",
|
|
1952
1974
|
backgroundColor: "#f9f9f9",
|
|
@@ -1968,12 +1990,12 @@ const MCPAppsActivityRenderer = function MCPAppsActivityRenderer({ content, agen
|
|
|
1968
1990
|
color: "#666"
|
|
1969
1991
|
},
|
|
1970
1992
|
children: "Loading..."
|
|
1971
|
-
}), error && /* @__PURE__ */ jsxs("div", {
|
|
1993
|
+
}), (error ?? contentError) && /* @__PURE__ */ jsxs("div", {
|
|
1972
1994
|
style: {
|
|
1973
1995
|
color: "red",
|
|
1974
1996
|
padding: "1rem"
|
|
1975
1997
|
},
|
|
1976
|
-
children: ["Error: ", error.message]
|
|
1998
|
+
children: ["Error: ", (error ?? contentError).message]
|
|
1977
1999
|
})]
|
|
1978
2000
|
});
|
|
1979
2001
|
};
|
|
@@ -3371,7 +3393,7 @@ function useStableArrayProp(prop, warningMessage, isMeaningfulChange) {
|
|
|
3371
3393
|
}, [value, warningMessage]);
|
|
3372
3394
|
return value;
|
|
3373
3395
|
}
|
|
3374
|
-
const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY_HEADERS, credentials, messageFilter, publicApiKey, publicLicenseKey, licenseToken, properties = EMPTY_PROPERTIES, agents__unsafe_dev_only: agents = EMPTY_AGENTS, selfManagedAgents = EMPTY_AGENTS, renderToolCalls, renderActivityMessages, renderCustomMessages, frontendTools, humanInTheLoop, openGenerativeUI, enableInspector, agentId, useSingleEndpoint, onError, a2ui, defaultThrottleMs, debug }) => {
|
|
3396
|
+
const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY_HEADERS, credentials, messageFilter, publicApiKey, publicLicenseKey, licenseToken, properties = EMPTY_PROPERTIES, agents__unsafe_dev_only: agents = EMPTY_AGENTS, selfManagedAgents = EMPTY_AGENTS, renderToolCalls, renderActivityMessages, renderCustomMessages, frontendTools, humanInTheLoop, openGenerativeUI, enableInspector, agentId, showIntelligenceIndicator = true, useSingleEndpoint, onError, a2ui, defaultThrottleMs, debug, learning }) => {
|
|
3375
3397
|
const [shouldRenderInspector, setShouldRenderInspector] = useState(false);
|
|
3376
3398
|
const [inspectorVisible, setInspectorVisible] = useState(false);
|
|
3377
3399
|
useEffect(() => {
|
|
@@ -3606,7 +3628,8 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
|
|
|
3606
3628
|
renderToolCalls: allRenderToolCalls,
|
|
3607
3629
|
renderActivityMessages: allActivityRenderers,
|
|
3608
3630
|
renderCustomMessages: renderCustomMessagesList,
|
|
3609
|
-
debug
|
|
3631
|
+
debug,
|
|
3632
|
+
learning
|
|
3610
3633
|
});
|
|
3611
3634
|
if (defaultThrottleMs !== void 0) copilotkitRef.current.setDefaultThrottleMs(defaultThrottleMs);
|
|
3612
3635
|
}
|
|
@@ -3711,6 +3734,32 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
|
|
|
3711
3734
|
useSingleEndpoint,
|
|
3712
3735
|
debug
|
|
3713
3736
|
]);
|
|
3737
|
+
const learningEnabled = learning !== void 0;
|
|
3738
|
+
const trajectoryId = learning?.trajectoryId;
|
|
3739
|
+
const learningContainerIdsRef = useRef(learning?.learningContainerIds);
|
|
3740
|
+
useEffect(() => {
|
|
3741
|
+
copilotkit.setLearningConfig(learning);
|
|
3742
|
+
learningContainerIdsRef.current = learning?.learningContainerIds;
|
|
3743
|
+
if (learning?.sink === void 0 && learning?.trajectoryId === void 0 && learning?.learningContainerIds !== void 0) console.warn("[CopilotKit] learningContainerIds is supported only with a custom sink. Authenticated Trajectory capture does not assign Learning Containers; remove learningContainerIds from the capture options.");
|
|
3744
|
+
}, [copilotkit, learning]);
|
|
3745
|
+
useEffect(() => {
|
|
3746
|
+
if (!learningEnabled) return;
|
|
3747
|
+
let disposed = false;
|
|
3748
|
+
if (trajectoryId !== void 0) copilotkit.startTrajectory({
|
|
3749
|
+
trajectoryId,
|
|
3750
|
+
learningContainerIds: learningContainerIdsRef.current
|
|
3751
|
+
}).catch(() => {
|
|
3752
|
+
if (!disposed) console.warn("[CopilotKit] Failed to start interaction capture.");
|
|
3753
|
+
});
|
|
3754
|
+
return () => {
|
|
3755
|
+
disposed = true;
|
|
3756
|
+
copilotkit.stopTrajectory();
|
|
3757
|
+
};
|
|
3758
|
+
}, [
|
|
3759
|
+
copilotkit,
|
|
3760
|
+
learningEnabled,
|
|
3761
|
+
trajectoryId
|
|
3762
|
+
]);
|
|
3714
3763
|
const didMountRef = useRef(false);
|
|
3715
3764
|
useEffect(() => {
|
|
3716
3765
|
if (!didMountRef.current) return;
|
|
@@ -3773,8 +3822,13 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
|
|
|
3773
3822
|
]);
|
|
3774
3823
|
const contextValue = useMemo(() => ({
|
|
3775
3824
|
copilotkit,
|
|
3776
|
-
executingToolCallIds
|
|
3777
|
-
|
|
3825
|
+
executingToolCallIds,
|
|
3826
|
+
showIntelligenceIndicator
|
|
3827
|
+
}), [
|
|
3828
|
+
copilotkit,
|
|
3829
|
+
executingToolCallIds,
|
|
3830
|
+
showIntelligenceIndicator
|
|
3831
|
+
]);
|
|
3778
3832
|
const retryableRuntimeEntitlementFailure = runtimeEntitlements?.status !== "ready" && runtimeEntitlements?.error.retryable === true;
|
|
3779
3833
|
const hasNonReadyRuntimeEntitlement = runtimeEntitlements !== void 0 && runtimeEntitlements.status !== "ready";
|
|
3780
3834
|
const hasLegacyRuntimeEntitlementFallback = runtimeLicenseStatus === "valid" || runtimeLicenseStatus === "expiring";
|
|
@@ -6008,13 +6062,23 @@ function useLearningContainersInCurrentThread({ learningContainers }) {
|
|
|
6008
6062
|
//#region src/v2/components/chat/CopilotChatToolCallsView.tsx
|
|
6009
6063
|
function CopilotChatToolCallsView({ message, messages = [] }) {
|
|
6010
6064
|
const renderToolCall = useRenderToolCall();
|
|
6065
|
+
const { copilotkit } = useCopilotKit();
|
|
6066
|
+
const subscribe = useCallback((onChange) => copilotkit.ɵsubscribeToLearningConfigured(onChange), [copilotkit]);
|
|
6067
|
+
const getSnapshot = () => copilotkit.ɵlearningConfigured;
|
|
6068
|
+
const learningConfigured = useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
|
|
6011
6069
|
if (!message.toolCalls || message.toolCalls.length === 0) return null;
|
|
6012
6070
|
return /* @__PURE__ */ jsx(Fragment$1, { children: message.toolCalls.map((toolCall) => {
|
|
6013
|
-
const
|
|
6014
|
-
return /* @__PURE__ */ jsx(React.Fragment, { children: renderToolCall({
|
|
6071
|
+
const rendered = renderToolCall({
|
|
6015
6072
|
toolCall,
|
|
6016
|
-
toolMessage
|
|
6017
|
-
})
|
|
6073
|
+
toolMessage: messages.find((m) => m.role === "tool" && m.toolCallId === toolCall.id)
|
|
6074
|
+
});
|
|
6075
|
+
if (rendered === null) return null;
|
|
6076
|
+
if (!learningConfigured) return rendered;
|
|
6077
|
+
return /* @__PURE__ */ jsx("div", {
|
|
6078
|
+
"data-tool-call-id": toolCall.id,
|
|
6079
|
+
style: { display: "contents" },
|
|
6080
|
+
children: rendered
|
|
6081
|
+
}, toolCall.id);
|
|
6018
6082
|
}) });
|
|
6019
6083
|
}
|
|
6020
6084
|
|
|
@@ -6358,6 +6422,7 @@ function CopilotChatAssistantMessage({ message, messages, isRunning, isLatest, o
|
|
|
6358
6422
|
const shouldShowToolbar = toolbarVisible && (hasContent || showInspectorShortcut) && !(isRunning && isLatestAssistantMessage);
|
|
6359
6423
|
if (children) return /* @__PURE__ */ jsx("div", {
|
|
6360
6424
|
"data-copilotkit": true,
|
|
6425
|
+
"data-message-id": message.id,
|
|
6361
6426
|
style: { display: "contents" },
|
|
6362
6427
|
children: children({
|
|
6363
6428
|
markdownRenderer: boundMarkdownRenderer,
|
|
@@ -7595,7 +7660,7 @@ function CopilotChatMessageView({ messages = [], assistantMessage, userMessage,
|
|
|
7595
7660
|
const isPinnedToBottom = useContext(ScrollPinnedContext);
|
|
7596
7661
|
const renderCustomMessage = useRenderCustomMessages();
|
|
7597
7662
|
const { renderActivityMessage } = useRenderActivityMessage();
|
|
7598
|
-
const { copilotkit } = useCopilotKit$1();
|
|
7663
|
+
const { copilotkit, showIntelligenceIndicator = true } = useCopilotKit$1();
|
|
7599
7664
|
const config = useCopilotChatConfiguration();
|
|
7600
7665
|
const [, forceUpdate] = useReducer((x) => x + 1, 0);
|
|
7601
7666
|
useEffect(() => {
|
|
@@ -7782,7 +7847,7 @@ function CopilotChatMessageView({ messages = [], assistantMessage, userMessage,
|
|
|
7782
7847
|
renderCustomMessage,
|
|
7783
7848
|
stateSnapshot
|
|
7784
7849
|
}, `${rowKey}-custom-after`));
|
|
7785
|
-
const intelligenceTurnId = intelligenceTurnAnchors.get(message.id);
|
|
7850
|
+
const intelligenceTurnId = showIntelligenceIndicator ? intelligenceTurnAnchors.get(message.id) : void 0;
|
|
7786
7851
|
if (intelligenceTurnId !== void 0) elements.push(/* @__PURE__ */ jsx(IntelligenceIndicator, {
|
|
7787
7852
|
message,
|
|
7788
7853
|
agentId: config?.agentId ?? DEFAULT_AGENT_ID,
|
|
@@ -9909,7 +9974,7 @@ function CopilotPopupViewInternal({ header, toggleButton, width, height, clickOu
|
|
|
9909
9974
|
const popupAnimationClass = isPopupOpen && !isAnimatingOut ? "cpk:pointer-events-auto cpk:translate-y-0 cpk:opacity-100 cpk:md:scale-100" : "cpk:pointer-events-none cpk:translate-y-4 cpk:opacity-0 cpk:md:translate-y-5 cpk:md:scale-[0.95]";
|
|
9910
9975
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [toggleButtonElement, isRendered ? /* @__PURE__ */ jsx("div", {
|
|
9911
9976
|
"data-copilotkit": true,
|
|
9912
|
-
className: cn("cpk:fixed cpk:inset-0 cpk:z-[1200] cpk:flex cpk:max-w-full cpk:flex-col cpk:items-stretch", "cpk:md:inset-auto cpk:md:bottom-24 cpk:md:right-6 cpk:md:items-end cpk:md:gap-4"),
|
|
9977
|
+
className: cn("cpk:fixed cpk:inset-0 cpk:z-[1200] cpk:flex cpk:max-w-full cpk:flex-col cpk:items-stretch cpk:bg-transparent", "cpk:md:inset-auto cpk:md:bottom-24 cpk:md:right-6 cpk:md:items-end cpk:md:gap-4"),
|
|
9913
9978
|
children: /* @__PURE__ */ jsxs("div", {
|
|
9914
9979
|
ref: containerRef,
|
|
9915
9980
|
tabIndex: -1,
|
|
@@ -12609,4 +12674,4 @@ function validateProps(props) {
|
|
|
12609
12674
|
|
|
12610
12675
|
//#endregion
|
|
12611
12676
|
export { useAgentContext as $, ɵselectThreadsError$1 as $a, onInspectorActiveThread as $i, MultimodalOutputCapabilitiesSchema as $n, TextPartSchema as $r, BackwardCompatibility_0_0_45 as $t, CopilotChatMessageView as A, ɵjoinPhoenixChannel$ as Aa, createReducer as Ai, IdentityCapabilitiesSchema as An, StateDeltaEventSchema as Ar, CopilotChatInput_default as At, CopilotChatAssistantMessage_default as B, ɵphoenixChannel$ as Ba, enforceOutgoingInput as Bi, JsonPatchOperationSchema as Bn, SubagentFinishedSuspendedOutcomeSchema as Br, ActivityDeltaEventSchema as Bt, CopilotModalHeader as C, ɵTHREAD_REQUEST_TIMEOUT_MS as Ca, contentHasMedia as Ci, FileSourceSchema as Cn, RunFinishedEventSchema as Cr, useSandboxFunctions as Ct, CopilotChat as D, ɵisCopilotKitFeature as Da, createDebugLogger as Di, HttpAgent as Dn, RunHandler as Dr, ɵrunMcpFollowUp as Dt, DefaultOpenIcon as E, ɵcreateThreadStore$1 as Ea, createActionGroup as Ei, FunctionMiddleware as En, RunFinishedSuccessOutcomeSchema as Er, MCPAppsActivityType as Et, CopilotChatSuggestionView as F, ɵmemoryRestEvents as Fa, emitInspectorStopViewing as Fi, InputContentSchema as Fn, StepStartedEventSchema as Fr, ACTIVITY_HISTORY_METADATA as Ft, useLearnFromUserActionInCurrentThread as G, ɵselectIsMutating$1 as Ga, isInspectorThreadBridgeEnabled$1 as Gi, MessageSchema as Gn, SystemMessageSchema as Gr, AgentRegistry as Gt, useLearningContainersInCurrentThread as H, ɵselectFetchMoreError$1 as Ha, getRunOutcome as Hi, JsonPointerSchema as Hn, SubagentRunIdSchema as Hr, ActivitySnapshotEventSchema as Ht, CopilotChatSuggestionPill as I, ɵobservePhoenixEvent$ as Ia, emitInspectorViewThread as Ii, InputContentSourceSchema as In, SubagentErrorEventSchema as Ir, AGUIConnectNotImplementedError$1 as It, useThreads$1 as J, ɵselectMemoriesError$1 as Ja, isRunCompletionAware$1 as Ji, Middleware as Jn, TextMessageChunkEventSchema as Jr, AttributableSchema as Jt, useLearnFromUserAction as K, ɵselectMemories$1 as Ka, isInterruptExpired as Ki, MessagesSnapshotEventSchema as Kn, TestOperationSchema as Kr, AgentThreadLockedError as Kt, CopilotChatReasoningMessage_default as L, ɵobservePhoenixJoinOutcome$ as La, emitInspectorViewThreadResult$1 as Li, InputContentUrlSourceSchema as Ln, SubagentFinishedEventSchema as Lr, AGUIError as Lt, IntelligenceIndicator as M, ɵmemoryAdapterEvents as Ma, createStore as Mi, ImageInputPartSchema as Mn, StateSchema as Mr, CopilotChatAudioRecorder as Mt, getIntelligenceTurnAnchors as N, ɵmemoryDomainEvents as Na, defaultApplyEvents as Ni, ImagePartSchema as Nn, StateSnapshotEventSchema as Nr, CopilotChatConfigurationProvider as Nt, CopilotChatView_default as O, ɵisHttpAgent$1 as Oa, createEffect as Oi, HumanInTheLoopCapabilitiesSchema as On, RunStartedEventSchema as Or, CopilotKitInspector as Ot, IntelligenceIndicatorView as P, ɵmemoryReducer as Pa, emitInspectorActiveThread$1 as Pi, InputContentDataSourceSchema as Pn, StepFinishedEventSchema as Pr, useCopilotChatConfiguration as Pt, useSuggestions as Q, ɵselectThreads$1 as Qa, on as Qi, MultimodalInputCapabilitiesSchema as Qn, TextMessageStartEventSchema as Qr, BackwardCompatibility_0_0_39 as Qt, CopilotChatUserMessage_default as R, ɵobservePhoenixSocketHealth$ as Ra, empty as Ri, IntelligenceAgent as Rn, SubagentFinishedOutcomeSchema as Rr, AGUI_METADATA_KEY as Rt, CopilotSidebarView as S, ɵRUNTIME_PROBE_TIMEOUT_MS as Sa, completePartialMarkdown as Si, ExecutionCapabilitiesSchema as Sn, RunFinishedCancelledOutcomeSchema as Sr, SandboxFunctionsContext as St, DefaultCloseIcon as T, ɵcreateThreadSelectors as Ta, convertToLegacyEvents as Ti, FunctionCallSchema as Tn, RunFinishedOutcomeSchema as Tr, MCPAppsActivityRenderer as Tt, useLearningContainers as U, ɵselectHasNextPage$1 as Ua, getWebMCPModelContext as Ui, MEMORY_ERROR_REGISTRY as Un, SubagentStartedEventSchema as Ur, AddOperationSchema as Ut, CopilotChatToolCallsView as V, ɵphoenixSocket$ as Va, ensureObjectArgs as Vi, JsonPatchSchema as Vn, SubagentInfoSchema as Vr, ActivityMessageSchema as Vt, useAttachments as W, ɵselectIsFetchingNextPage$1 as Wa, isAbortError as Wi, MemoryError as Wn, SuggestionEngine as Wr, AgentCapabilitiesSchema as Wt, INTERRUPT_EVENT_NAME as X, ɵselectMemoriesIsMutating as Xa, ofType as Xi, MultiAgentCapabilitiesSchema as Xn, TextMessageEndEventSchema as Xr, AudioInputPartSchema as Xt, useInterrupt as Y, ɵselectMemoriesIsLoading$1 as Ya, mergeMetadata as Yi, MoveOperationSchema as Yn, TextMessageContentEventSchema as Yr, AudioInputContentSchema as Yt, useConfigureSuggestions as Z, ɵselectMemoriesRealtimeStatus$1 as Za, omitOptionalNulls as Zi, MultimodalCapabilitiesSchema as Zn, TextMessageRoleSchema as Zr, AudioPartSchema as Zt, WildcardToolCallRender as _, verifyEvents as _a, WebMCPRegistry as _i, DocumentPartSchema as _n, ReplaceOperationSchema as _r, GenerateSandboxedUiArgsSchema as _t, ThreadsProvider as a, parseToolArguments as aa, ToolCallSchema as ai, ContextSchema as an, RawEventSchema as ar, useRenderTool as at, CopilotSidebar as b, ɵInterruptState$1 as ba, buildResumeArray as bi, EventType as bn, RunAgentInputSchema as br, OpenGenerativeUIContentSchema as bt, CoAgentStateRendersProvider as c, resolveAgentDebugConfig as ca, ToolMessageSchema as ci, CopilotKitCoreErrorCode$1 as cn, ReasoningEncryptedValueSubtypeSchema as cr, useFrontendTool as ct, shouldShowDevConsole as d, select as da, TransportCapabilitiesSchema as di, CustomEventSchema as dn, ReasoningMessageContentEventSchema as dr, CopilotKitProvider as dt, onInspectorStopViewing$1 as ea, TokenUsageSchema as ei, BackwardCompatibility_0_0_57 as en, ɵselectThreadsIsLoading$1 as eo, OptionalMetadataSchema as er, useCapabilities as et, useToast as f, structuredClone_ as fa, UrlSourceSchema as fi, DataSourceSchema as fn, ReasoningMessageEndEventSchema as fr, useCopilotKit$1 as ft, useCopilotContext as g, transformHttpEventStream as ga, VideoPartSchema as gi, DocumentInputPartSchema as gn, RemoveOperationSchema as gr, createA2UIMessageRenderer as gt, CopilotContext as h, transformChunks as ha, VideoInputPartSchema as hi, DocumentInputContentSchema as hn, ReasoningStartEventSchema as hr, defineToolCallRenderer as ht, ThreadsContext as i, parseSSEStream as ia, ToolCallResultEventSchema as ii, ContentPartSchema as in, ProxiedCopilotRuntimeAgent$1 as ir, useDefaultRenderTool as it, INTELLIGENCE_TURN_HEAD as j, ɵmapMemoryMetadataEvent as ja, createSelector as ji, ImageInputContentSchema as jn, StateManager as jr, AudioRecorderError as jt, CopilotChatAttachmentQueue as k, ɵisRetryableMemoryStatus as ka, createInspectorThreadRequestId as ki, INSPECTOR_THREAD_BRIDGE_PLUGIN_ID as kn, StateCapabilitiesSchema as kr, useRenderToolCall as kt, useCoAgentStateRenders as l, resolveDebugLogger as la, ToolSchema as li, CopilotKitCoreRuntimeConnectionStatus$1 as ln, ReasoningEndEventSchema as lr, useRenderActivityMessage as lt, useCopilotMessagesContext as m, tokenUsageFromLangChainMetadata as ma, VideoInputContentSchema as mi, DeveloperMessageSchema as mn, ReasoningMessageStartEventSchema as mr, CopilotKitCoreReact as mt, defaultCopilotContextCategories as n, onInspectorViewThreadResult as na, ToolCallChunkEventSchema as ni, BaseMessageSchema as nn, PROTOCOL_VERSION as nr, useAgent as nt, useThreads as o, props as oa, ToolCallStartEventSchema as oi, ContextStore as on, ReasoningCapabilitiesSchema as or, useComponent as ot, CopilotMessagesContext as p, tokenUsageFromAiSdkUsage as pa, UserMessageSchema as pi, DebugLogger as pn, ReasoningMessageSchema as pr, useLicenseContext$1 as pt, useMemories as q, ɵselectMemoriesAvailable$1 as qa, isRecognizedEvent as qi, MetadataSchema as qn, TextInputContentSchema as qr, AssistantMessageSchema as qt, CoAgentStateRenderBridge as r, parseProtoStream as ra, ToolCallEndEventSchema as ri, CompatibilityBoundary as rn, PartSourceSchema as rr, useHumanInTheLoop as rt, CoAgentStateRendersContext as s, randomUUID$2 as sa, ToolCallStatus$1 as si, CopilotKitCore$1 as sn, ReasoningEncryptedValueEventSchema as sr, useFrontendTools as st, CopilotKit as t, onInspectorViewThread$1 as ta, ToolCallArgsEventSchema as ti, BaseEventSchema as tn, ɵthreadAdapterEvents as to, OutputCapabilitiesSchema as tr, UseAgentUpdate as tt, useAsyncCallback as u, runHttpRequest as ua, ToolsCapabilitiesSchema as ui, CopyOperationSchema as un, ReasoningMessageChunkEventSchema as ur, useRenderCustomMessages as ut, CopilotThreadsDrawer as v, withAuthoritativeActivityTypes as va, aggregateTokenUsage as vi, EventSchema as vn, ResumeEntrySchema as vr, OpenGenerativeUIActivityRenderer as vt, CopilotChatToggleButton as w, ɵcreateMemoryStore as wa, contentToText$1 as wi, FilterToolCallsMiddleware as wn, RunFinishedInterruptOutcomeSchema as wr, MCPAppsActivityContentSchema as wt, CopilotPopupView as x, ɵMAX_SOCKET_RETRIES as xa, compactEvents as xi, EventTypeSchema as xn, RunErrorEventSchema as xr, OpenGenerativeUIToolRenderer as xt, CopilotPopup as y, ɵCOPILOTKIT_FEATURES as ya, authoritativeActivityTypes as yi, EventSchemas as yn, RoleSchema as yr, OpenGenerativeUIActivityType as yt, CopilotChatAttachmentRenderer as z, ɵobservePhoenixSocketSignals$ as za, enforceEvents as zi, InterruptSchema as zn, SubagentFinishedSuccessOutcomeSchema as zr, AbstractAgent$1 as zt };
|
|
12612
|
-
//# sourceMappingURL=copilotkit-
|
|
12677
|
+
//# sourceMappingURL=copilotkit-CP9qPAqV.mjs.map
|