@copilotkit/react-core 1.75.2 → 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.
Files changed (43) hide show
  1. package/dist/{copilotkit-Beiw32bn.cjs → copilotkit-CFPkj9B9.cjs} +155 -54
  2. package/dist/copilotkit-CFPkj9B9.cjs.map +1 -0
  3. package/dist/{copilotkit-D9iy3p2l.mjs → copilotkit-CP9qPAqV.mjs} +159 -57
  4. package/dist/copilotkit-CP9qPAqV.mjs.map +1 -0
  5. package/dist/{copilotkit-CGlSOKHM.d.mts → copilotkit-Cqa0TfEo.d.mts} +43 -17
  6. package/dist/copilotkit-Cqa0TfEo.d.mts.map +1 -0
  7. package/dist/{copilotkit-Cjj9wDI8.d.cts → copilotkit-DGc2YiW9.d.cts} +35 -4
  8. package/dist/copilotkit-DGc2YiW9.d.cts.map +1 -0
  9. package/dist/index.cjs +2 -2
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +1 -1
  12. package/dist/index.d.cts.map +1 -1
  13. package/dist/index.d.mts +1 -1
  14. package/dist/index.d.mts.map +1 -1
  15. package/dist/index.mjs +4 -4
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/index.umd.js +90 -44
  18. package/dist/index.umd.js.map +1 -1
  19. package/dist/v2/context.cjs.map +1 -1
  20. package/dist/v2/context.d.cts +5 -0
  21. package/dist/v2/context.d.cts.map +1 -1
  22. package/dist/v2/context.d.mts +5 -0
  23. package/dist/v2/context.d.mts.map +1 -1
  24. package/dist/v2/context.mjs.map +1 -1
  25. package/dist/v2/headless.cjs +36 -24
  26. package/dist/v2/headless.cjs.map +1 -1
  27. package/dist/v2/headless.d.cts +5 -0
  28. package/dist/v2/headless.d.cts.map +1 -1
  29. package/dist/v2/headless.d.mts +2 -2
  30. package/dist/v2/headless.d.mts.map +1 -1
  31. package/dist/v2/headless.mjs +38 -26
  32. package/dist/v2/headless.mjs.map +1 -1
  33. package/dist/v2/index.cjs +302 -121
  34. package/dist/v2/index.d.cts +2 -2
  35. package/dist/v2/index.d.mts +2 -2
  36. package/dist/v2/index.mjs +2 -2
  37. package/dist/v2/index.umd.js +457 -177
  38. package/dist/v2/index.umd.js.map +1 -1
  39. package/package.json +10 -10
  40. package/dist/copilotkit-Beiw32bn.cjs.map +0 -1
  41. package/dist/copilotkit-CGlSOKHM.d.mts.map +0 -1
  42. package/dist/copilotkit-Cjj9wDI8.d.cts.map +0 -1
  43. package/dist/copilotkit-D9iy3p2l.mjs.map +0 -1
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
 
3
3
  (function(global, factory) {
4
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('./index.css'), require('@copilotkit/core'), require('@ag-ui/client'), require('react'), require('tailwind-merge'), require('lucide-react'), require('@copilotkit/shared'), require('react/jsx-runtime'), require('@radix-ui/react-slot'), require('class-variance-authority'), require('clsx'), require('@radix-ui/react-tooltip'), require('@radix-ui/react-dropdown-menu'), require('streamdown'), require('zod'), require('@copilotkit/mcp-apps-renderer/activity'), require('@copilotkit/a2ui-renderer'), require('zod-to-json-schema'), require('react-dom'), require('@tanstack/react-virtual'), require('use-stick-to-bottom'), require('@copilotkit/web-components/threads-drawer')) :
5
- typeof define === 'function' && define.amd ? define(['exports', './index.css', '@copilotkit/core', '@ag-ui/client', 'react', 'tailwind-merge', 'lucide-react', '@copilotkit/shared', 'react/jsx-runtime', '@radix-ui/react-slot', 'class-variance-authority', 'clsx', '@radix-ui/react-tooltip', '@radix-ui/react-dropdown-menu', 'streamdown', 'zod', '@copilotkit/mcp-apps-renderer/activity', '@copilotkit/a2ui-renderer', 'zod-to-json-schema', 'react-dom', '@tanstack/react-virtual', 'use-stick-to-bottom', '@copilotkit/web-components/threads-drawer'], factory) :
6
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.CopilotKitReactCoreV2 = {}), global.src_v2_index_css,global.CopilotKitCore,global.AgUIClient,global.React,global.tailwindMerge,global.lucideReact,global.CopilotKitShared,global.ReactJsxRuntime,global.RadixReactSlot,global.classVarianceAuthority,global.clsx,global.RadixReactTooltip,global.RadixReactDropdownMenu,global.streamdown,global.Zod,global.CopilotKitMcpAppsRendererActivity,global.CopilotKitA2UIRenderer,global.zod_to_json_schema,global.ReactDOM,global._tanstack_react_virtual,global.useStickToBottom,global._copilotkit_web_components_threads_drawer));
7
- })(this, function(exports, src_v2_index_css, _copilotkit_core, _ag_ui_client, react, tailwind_merge, lucide_react, _copilotkit_shared, react_jsx_runtime, _radix_ui_react_slot, class_variance_authority, clsx, _radix_ui_react_tooltip, _radix_ui_react_dropdown_menu, streamdown, zod, _copilotkit_mcp_apps_renderer_activity, _copilotkit_a2ui_renderer, zod_to_json_schema, react_dom, _tanstack_react_virtual, use_stick_to_bottom, _copilotkit_web_components_threads_drawer) {
4
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('./index.css'), require('@copilotkit/core'), require('@ag-ui/client'), require('react'), require('tailwind-merge'), require('lucide-react'), require('@copilotkit/shared'), require('react/jsx-runtime'), require('@radix-ui/react-slot'), require('class-variance-authority'), require('clsx'), require('@radix-ui/react-tooltip'), require('@radix-ui/react-dropdown-menu'), require('streamdown'), require('@ag-ui/core'), require('zod'), require('@copilotkit/mcp-apps-renderer/activity'), require('@copilotkit/a2ui-renderer'), require('zod-to-json-schema'), require('react-dom'), require('@tanstack/react-virtual'), require('use-stick-to-bottom'), require('@copilotkit/web-components/threads-drawer')) :
5
+ typeof define === 'function' && define.amd ? define(['exports', './index.css', '@copilotkit/core', '@ag-ui/client', 'react', 'tailwind-merge', 'lucide-react', '@copilotkit/shared', 'react/jsx-runtime', '@radix-ui/react-slot', 'class-variance-authority', 'clsx', '@radix-ui/react-tooltip', '@radix-ui/react-dropdown-menu', 'streamdown', '@ag-ui/core', 'zod', '@copilotkit/mcp-apps-renderer/activity', '@copilotkit/a2ui-renderer', 'zod-to-json-schema', 'react-dom', '@tanstack/react-virtual', 'use-stick-to-bottom', '@copilotkit/web-components/threads-drawer'], factory) :
6
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.CopilotKitReactCoreV2 = {}), global.src_v2_index_css,global.CopilotKitCore,global.AgUIClient,global.React,global.tailwindMerge,global.lucideReact,global.CopilotKitShared,global.ReactJsxRuntime,global.RadixReactSlot,global.classVarianceAuthority,global.clsx,global.RadixReactTooltip,global.RadixReactDropdownMenu,global.streamdown,global.AgUICore,global.Zod,global.CopilotKitMcpAppsRendererActivity,global.CopilotKitA2UIRenderer,global.zod_to_json_schema,global.ReactDOM,global._tanstack_react_virtual,global.useStickToBottom,global._copilotkit_web_components_threads_drawer));
7
+ })(this, function(exports, src_v2_index_css, _copilotkit_core, _ag_ui_client, react, tailwind_merge, lucide_react, _copilotkit_shared, react_jsx_runtime, _radix_ui_react_slot, class_variance_authority, clsx, _radix_ui_react_tooltip, _radix_ui_react_dropdown_menu, streamdown, _ag_ui_core, zod, _copilotkit_mcp_apps_renderer_activity, _copilotkit_a2ui_renderer, zod_to_json_schema, react_dom, _tanstack_react_virtual, use_stick_to_bottom, _copilotkit_web_components_threads_drawer) {
8
8
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
9
9
  //#region \0rolldown/runtime.js
10
10
  var __create = Object.create;
@@ -282,6 +282,25 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
282
282
  parentConfig?.threadId,
283
283
  activeThreadOverride
284
284
  ]);
285
+ const copilotkit = (0, react.useContext)(CopilotKitContext)?.copilotkit;
286
+ const openThreadRef = (0, react.useRef)(null);
287
+ const latestThreadIdRef = (0, react.useRef)(resolvedThreadId);
288
+ latestThreadIdRef.current = resolvedThreadId;
289
+ (0, react.useEffect)(() => {
290
+ if (copilotkit === void 0) return;
291
+ const registration = copilotkit.registerOpenThread({
292
+ agentId: resolvedAgentId,
293
+ threadId: latestThreadIdRef.current
294
+ });
295
+ openThreadRef.current = registration;
296
+ return () => {
297
+ registration.unregister();
298
+ openThreadRef.current = null;
299
+ };
300
+ }, [copilotkit, resolvedAgentId]);
301
+ (0, react.useEffect)(() => {
302
+ openThreadRef.current?.update(resolvedThreadId);
303
+ }, [resolvedThreadId]);
285
304
  const resolvedHasExplicitThreadId = (threadIdPropIsAuthoritative ? true : activeThreadOverride?.explicit ?? hasExplicitThreadId ?? false) || !!parentConfig?.hasExplicitThreadId;
286
305
  const [internalModalOpen, setInternalModalOpen] = (0, react.useState)(isModalDefaultOpen ?? true);
287
306
  const hasExplicitDefault = isModalDefaultOpen !== void 0;
@@ -1651,7 +1670,7 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
1651
1670
  toolCallId: toolCall.id,
1652
1671
  args,
1653
1672
  status: _copilotkit_core.ToolCallStatus.Complete,
1654
- result: toolMessage.content
1673
+ result: (0, _ag_ui_core.contentToText)(toolMessage.content)
1655
1674
  });
1656
1675
  else if (isExecuting) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RenderComponent, {
1657
1676
  name: toolName,
@@ -1747,7 +1766,7 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
1747
1766
 
1748
1767
  //#endregion
1749
1768
  //#region package.json
1750
- var version = "1.75.2";
1769
+ var version = "1.77.0";
1751
1770
 
1752
1771
  //#endregion
1753
1772
  //#region src/v2/components/CopilotKitInspector.tsx
@@ -1983,12 +2002,14 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
1983
2002
  * Fetches resource content on-demand via proxied MCP requests. The React shell
1984
2003
  * owns the iframe; `bindMcpApp` owns the protocol.
1985
2004
  */
1986
- const MCPAppsActivityRenderer = function MCPAppsActivityRenderer({ content, agent }) {
2005
+ const MCPAppsActivityRenderer = function MCPAppsActivityRenderer({ content, message, agent }) {
1987
2006
  const { copilotkit } = useCopilotKit();
2007
+ const messageId = message?.id;
1988
2008
  const containerRef = (0, react.useRef)(null);
1989
2009
  const iframeRef = (0, react.useRef)(null);
1990
2010
  const sessionRef = (0, react.useRef)(null);
1991
2011
  const [error, setError] = (0, react.useState)(null);
2012
+ const [contentError, setContentError] = (0, react.useState)(null);
1992
2013
  const [isLoading, setIsLoading] = (0, react.useState)(true);
1993
2014
  const [iframeSize, setIframeSize] = (0, react.useState)({});
1994
2015
  const [fetchedResource, setFetchedResource] = (0, react.useState)(null);
@@ -2007,6 +2028,7 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
2007
2028
  let mounted = true;
2008
2029
  setIsLoading(true);
2009
2030
  setError(null);
2031
+ setContentError(null);
2010
2032
  const iframe = document.createElement("iframe");
2011
2033
  iframe.style.width = "100%";
2012
2034
  iframe.style.height = "100px";
@@ -2029,6 +2051,7 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
2029
2051
  getContent: () => contentRef.current,
2030
2052
  getAgent: () => agentRef.current,
2031
2053
  host: copilotkit,
2054
+ messageId,
2032
2055
  hooks: {
2033
2056
  onResource: (resource) => {
2034
2057
  if (!mounted) return;
@@ -2038,6 +2061,9 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
2038
2061
  onSizeChanged: (size) => {
2039
2062
  if (mounted) setIframeSize(size);
2040
2063
  },
2064
+ onContentError: (err) => {
2065
+ if (mounted) setContentError(err);
2066
+ },
2041
2067
  onError: (err) => {
2042
2068
  if (!mounted) return;
2043
2069
  setError(err);
@@ -2046,9 +2072,7 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
2046
2072
  }
2047
2073
  });
2048
2074
  sessionRef.current = session;
2049
- const current = contentRef.current;
2050
- if (current.toolInput) session.sendToolInput(current.toolInput);
2051
- if (current.result) session.sendToolResult(current.result);
2075
+ session.syncContent(contentRef.current);
2052
2076
  } catch (err) {
2053
2077
  console.error("[MCPAppsRenderer] Setup error:", err);
2054
2078
  if (mounted) {
@@ -2068,6 +2092,7 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
2068
2092
  }, [
2069
2093
  agent,
2070
2094
  copilotkit,
2095
+ messageId,
2071
2096
  content.resourceUri,
2072
2097
  content.serverHash,
2073
2098
  content.serverId
@@ -2082,11 +2107,8 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
2082
2107
  }
2083
2108
  }, [iframeSize]);
2084
2109
  (0, react.useEffect)(() => {
2085
- if (content.toolInput) sessionRef.current?.sendToolInput(content.toolInput);
2086
- }, [content.toolInput]);
2087
- (0, react.useEffect)(() => {
2088
- if (content.result) sessionRef.current?.sendToolResult(content.result);
2089
- }, [content.result]);
2110
+ sessionRef.current?.syncContent(contentRef.current);
2111
+ }, [content.toolInput, content.result]);
2090
2112
  const borderStyle = fetchedResource?._meta?.ui?.prefersBorder === true ? {
2091
2113
  borderRadius: "8px",
2092
2114
  backgroundColor: "#f9f9f9",
@@ -2108,12 +2130,12 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
2108
2130
  color: "#666"
2109
2131
  },
2110
2132
  children: "Loading..."
2111
- }), error && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2133
+ }), (error ?? contentError) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2112
2134
  style: {
2113
2135
  color: "red",
2114
2136
  padding: "1rem"
2115
2137
  },
2116
- children: ["Error: ", error.message]
2138
+ children: ["Error: ", (error ?? contentError).message]
2117
2139
  })]
2118
2140
  });
2119
2141
  };
@@ -3415,7 +3437,7 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
3415
3437
  }, [value, warningMessage]);
3416
3438
  return value;
3417
3439
  }
3418
- 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 }) => {
3440
+ 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 }) => {
3419
3441
  const [shouldRenderInspector, setShouldRenderInspector] = (0, react.useState)(false);
3420
3442
  const [inspectorVisible, setInspectorVisible] = (0, react.useState)(false);
3421
3443
  (0, react.useEffect)(() => {
@@ -3650,7 +3672,8 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
3650
3672
  renderToolCalls: allRenderToolCalls,
3651
3673
  renderActivityMessages: allActivityRenderers,
3652
3674
  renderCustomMessages: renderCustomMessagesList,
3653
- debug
3675
+ debug,
3676
+ learning
3654
3677
  });
3655
3678
  if (defaultThrottleMs !== void 0) copilotkitRef.current.setDefaultThrottleMs(defaultThrottleMs);
3656
3679
  }
@@ -3755,6 +3778,32 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
3755
3778
  useSingleEndpoint,
3756
3779
  debug
3757
3780
  ]);
3781
+ const learningEnabled = learning !== void 0;
3782
+ const trajectoryId = learning?.trajectoryId;
3783
+ const learningContainerIdsRef = (0, react.useRef)(learning?.learningContainerIds);
3784
+ (0, react.useEffect)(() => {
3785
+ copilotkit.setLearningConfig(learning);
3786
+ learningContainerIdsRef.current = learning?.learningContainerIds;
3787
+ 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.");
3788
+ }, [copilotkit, learning]);
3789
+ (0, react.useEffect)(() => {
3790
+ if (!learningEnabled) return;
3791
+ let disposed = false;
3792
+ if (trajectoryId !== void 0) copilotkit.startTrajectory({
3793
+ trajectoryId,
3794
+ learningContainerIds: learningContainerIdsRef.current
3795
+ }).catch(() => {
3796
+ if (!disposed) console.warn("[CopilotKit] Failed to start interaction capture.");
3797
+ });
3798
+ return () => {
3799
+ disposed = true;
3800
+ copilotkit.stopTrajectory();
3801
+ };
3802
+ }, [
3803
+ copilotkit,
3804
+ learningEnabled,
3805
+ trajectoryId
3806
+ ]);
3758
3807
  const didMountRef = (0, react.useRef)(false);
3759
3808
  (0, react.useEffect)(() => {
3760
3809
  if (!didMountRef.current) return;
@@ -3817,8 +3866,13 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
3817
3866
  ]);
3818
3867
  const contextValue = (0, react.useMemo)(() => ({
3819
3868
  copilotkit,
3820
- executingToolCallIds
3821
- }), [copilotkit, executingToolCallIds]);
3869
+ executingToolCallIds,
3870
+ showIntelligenceIndicator
3871
+ }), [
3872
+ copilotkit,
3873
+ executingToolCallIds,
3874
+ showIntelligenceIndicator
3875
+ ]);
3822
3876
  const retryableRuntimeEntitlementFailure = runtimeEntitlements?.status !== "ready" && runtimeEntitlements?.error.retryable === true;
3823
3877
  const hasNonReadyRuntimeEntitlement = runtimeEntitlements !== void 0 && runtimeEntitlements.status !== "ready";
3824
3878
  const hasLegacyRuntimeEntitlementFallback = runtimeLicenseStatus === "valid" || runtimeLicenseStatus === "expiring";
@@ -4699,7 +4753,7 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
4699
4753
  updateFlags
4700
4754
  ]);
4701
4755
  (0, react.useEffect)(() => {
4702
- if (agent instanceof _ag_ui_client.HttpAgent) copilotkit.applyHeadersToAgent(agent);
4756
+ if ((0, _copilotkit_core.ɵisHttpAgent)(agent)) copilotkit.applyHeadersToAgent(agent);
4703
4757
  if (agent instanceof _copilotkit_core.ProxiedCopilotRuntimeAgent) agent.credentials = copilotkit.credentials;
4704
4758
  }, [
4705
4759
  agent,
@@ -5037,7 +5091,6 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
5037
5091
  pendingRef.current = pending;
5038
5092
  const [handlerResult, setHandlerResult] = (0, react.useState)(null);
5039
5093
  const interruptStateRef = (0, react.useRef)(new _copilotkit_core.ɵInterruptState());
5040
- const legacyRunIdRef = (0, react.useRef)(void 0);
5041
5094
  (0, react.useEffect)(() => {
5042
5095
  const interruptState = interruptStateRef.current;
5043
5096
  let localLegacy = null;
@@ -5055,16 +5108,14 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
5055
5108
  onRunStartedEvent: () => {
5056
5109
  localLegacy = null;
5057
5110
  localStandard = null;
5058
- legacyRunIdRef.current = void 0;
5059
5111
  interruptState.clear();
5060
5112
  setPending(null);
5061
5113
  },
5062
- onRunFinalized: (params) => {
5114
+ onRunFinalized: () => {
5063
5115
  if (localStandard && localStandard.length > 0) {
5064
5116
  interruptState.setStandard(localStandard);
5065
5117
  setPending(interruptState.pending);
5066
5118
  } else if (localLegacy) {
5067
- legacyRunIdRef.current = params.input.runId;
5068
5119
  interruptState.setLegacy(localLegacy);
5069
5120
  setPending(interruptState.pending);
5070
5121
  }
@@ -5074,7 +5125,6 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
5074
5125
  onRunFailed: () => {
5075
5126
  localLegacy = null;
5076
5127
  localStandard = null;
5077
- legacyRunIdRef.current = void 0;
5078
5128
  interruptState.clear();
5079
5129
  setPending(null);
5080
5130
  }
@@ -5089,22 +5139,18 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
5089
5139
  if (!current) return;
5090
5140
  if (current.kind === "standard" && current.interrupts.length > 1 && interruptId === void 0) console.warn(`[CopilotKit] useInterrupt: resolve()/cancel() called without an interruptId while ${current.interrupts.length} interrupts are open; defaulting to the first. Pass an interruptId to address a specific interrupt.`);
5091
5141
  const decision = interruptStateRef.current.resolve(payload, interruptId);
5092
- if (decision.kind === "legacy-resume") {
5093
- const runId = legacyRunIdRef.current;
5094
- try {
5095
- return await copilotkit.runAgent({
5096
- agent,
5097
- ...runId !== void 0 ? { runId } : {},
5098
- forwardedProps: { command: {
5099
- resume: decision.payload,
5100
- interruptEvent: decision.interruptValue
5101
- } }
5102
- });
5103
- } catch (err) {
5104
- console.error("[CopilotKit] useInterrupt resolve: runAgent rejected; clearing pending + rethrowing", err);
5105
- setPending(null);
5106
- throw err;
5107
- }
5142
+ if (decision.kind === "legacy-resume") try {
5143
+ return await copilotkit.runAgent({
5144
+ agent,
5145
+ forwardedProps: { command: {
5146
+ resume: decision.payload,
5147
+ interruptEvent: decision.interruptValue
5148
+ } }
5149
+ });
5150
+ } catch (err) {
5151
+ console.error("[CopilotKit] useInterrupt resolve: runAgent rejected; clearing pending + rethrowing", err);
5152
+ setPending(null);
5153
+ throw err;
5108
5154
  }
5109
5155
  if (decision.kind === "expired") {
5110
5156
  console.error(`[CopilotKit] useInterrupt: interrupt ${decision.interrupt.id} expired at ${decision.interrupt.expiresAt}; not resuming.`);
@@ -6060,13 +6106,23 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
6060
6106
  //#region src/v2/components/chat/CopilotChatToolCallsView.tsx
6061
6107
  function CopilotChatToolCallsView({ message, messages = [] }) {
6062
6108
  const renderToolCall = useRenderToolCall();
6109
+ const { copilotkit } = useCopilotKit();
6110
+ const subscribe = (0, react.useCallback)((onChange) => copilotkit.ɵsubscribeToLearningConfigured(onChange), [copilotkit]);
6111
+ const getSnapshot = () => copilotkit.ɵlearningConfigured;
6112
+ const learningConfigured = (0, react.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
6063
6113
  if (!message.toolCalls || message.toolCalls.length === 0) return null;
6064
6114
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: message.toolCalls.map((toolCall) => {
6065
- const toolMessage = messages.find((m) => m.role === "tool" && m.toolCallId === toolCall.id);
6066
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.default.Fragment, { children: renderToolCall({
6115
+ const rendered = renderToolCall({
6067
6116
  toolCall,
6068
- toolMessage
6069
- }) }, toolCall.id);
6117
+ toolMessage: messages.find((m) => m.role === "tool" && m.toolCallId === toolCall.id)
6118
+ });
6119
+ if (rendered === null) return null;
6120
+ if (!learningConfigured) return rendered;
6121
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
6122
+ "data-tool-call-id": toolCall.id,
6123
+ style: { display: "contents" },
6124
+ children: rendered
6125
+ }, toolCall.id);
6070
6126
  }) });
6071
6127
  }
6072
6128
 
@@ -6410,6 +6466,7 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
6410
6466
  const shouldShowToolbar = toolbarVisible && (hasContent || showInspectorShortcut) && !(isRunning && isLatestAssistantMessage);
6411
6467
  if (children) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
6412
6468
  "data-copilotkit": true,
6469
+ "data-message-id": message.id,
6413
6470
  style: { display: "contents" },
6414
6471
  children: children({
6415
6472
  markdownRenderer: boundMarkdownRenderer,
@@ -7647,7 +7704,7 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
7647
7704
  const isPinnedToBottom = (0, react.useContext)(ScrollPinnedContext);
7648
7705
  const renderCustomMessage = useRenderCustomMessages();
7649
7706
  const { renderActivityMessage } = useRenderActivityMessage();
7650
- const { copilotkit } = useCopilotKit();
7707
+ const { copilotkit, showIntelligenceIndicator = true } = useCopilotKit();
7651
7708
  const config = useCopilotChatConfiguration();
7652
7709
  const [, forceUpdate] = (0, react.useReducer)((x) => x + 1, 0);
7653
7710
  (0, react.useEffect)(() => {
@@ -7834,7 +7891,7 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
7834
7891
  renderCustomMessage,
7835
7892
  stateSnapshot
7836
7893
  }, `${rowKey}-custom-after`));
7837
- const intelligenceTurnId = intelligenceTurnAnchors.get(message.id);
7894
+ const intelligenceTurnId = showIntelligenceIndicator ? intelligenceTurnAnchors.get(message.id) : void 0;
7838
7895
  if (intelligenceTurnId !== void 0) elements.push(/* @__PURE__ */ (0, react_jsx_runtime.jsx)(IntelligenceIndicator, {
7839
7896
  message,
7840
7897
  agentId: config?.agentId ?? _copilotkit_shared.DEFAULT_AGENT_ID,
@@ -8959,6 +9016,8 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
8959
9016
  const hasNativeIntelligenceRunActivity = hasExplicitThreadId && runtimeStatus === "Connected" && !!copilotkit.intelligence?.wsUrl && copilotkit.threadEndpoints?.realtimeMetadata === true;
8960
9017
  const [standaloneRunActivityStore] = (0, react.useState)(() => (0, _copilotkit_core.ɵcreateThreadStore)({ fetch: copilotkit.ɵruntimeFetch }));
8961
9018
  const previousThreadRef = (0, react.useRef)(null);
9019
+ const detachPromisesRef = (0, react.useRef)(/* @__PURE__ */ new WeakMap());
9020
+ const pendingTeardownRef = (0, react.useRef)(Promise.resolve());
8962
9021
  const hasExplicitThreadIdRef = (0, react.useRef)(hasExplicitThreadId);
8963
9022
  hasExplicitThreadIdRef.current = hasExplicitThreadId;
8964
9023
  const rememberRecentlyLocalRunId = (0, react.useCallback)((runId) => {
@@ -9001,23 +9060,59 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
9001
9060
  const previousThread = previousThreadRef.current;
9002
9061
  const threadChanged = previousThread?.threadId !== resolvedThreadId;
9003
9062
  const inspectorTransition = threadChanged && previousThread !== null && previousThread.inspectorRequestId !== inspectorRequestId && (previousThread.inspectorRequestId !== null || inspectorRequestId !== null);
9004
- previousThreadRef.current = {
9063
+ const selection = {
9005
9064
  threadId: resolvedThreadId,
9006
- inspectorRequestId
9065
+ inspectorRequestId,
9066
+ agent
9007
9067
  };
9068
+ previousThreadRef.current = selection;
9069
+ const discardedThreadId = previousThread?.agent === agent ? previousThread.threadId : agent.threadId;
9008
9070
  if (inspectorTransition) if (typeof copilotkit.stopAgent === "function") copilotkit.stopAgent({ agent });
9009
9071
  else agent.abortRun?.();
9010
9072
  agent.threadId = resolvedThreadId;
9011
9073
  if (!hasExplicitThreadId) {
9012
- if (threadChanged && agent.messages.length > 0) agent.setMessages([]);
9013
- return;
9074
+ let active = true;
9075
+ if (threadChanged && previousThread !== null) {
9076
+ let resetPending = true;
9077
+ const clearCursor = () => {
9078
+ if ("clearReplayCursor" in agent && typeof agent.clearReplayCursor === "function") agent.clearReplayCursor(discardedThreadId);
9079
+ if ("clearReconnectCursor" in agent && typeof agent.clearReconnectCursor === "function") agent.clearReconnectCursor(discardedThreadId);
9080
+ };
9081
+ const clearDiscardedBaseline = () => {
9082
+ if (!active || !resetPending || previousThreadRef.current !== selection) return;
9083
+ agent.setMessages([]);
9084
+ agent.setState({});
9085
+ agent.pendingInterrupts = [];
9086
+ clearCursor();
9087
+ };
9088
+ if (previousThread.agent === agent) previousThread.clearDiscardedBaseline = clearDiscardedBaseline;
9089
+ const detach = detachPromisesRef.current.get(agent) ?? agent.detachActiveRun();
9090
+ detachPromisesRef.current.set(agent, detach);
9091
+ const finishReset = () => {
9092
+ if (!resetPending) return;
9093
+ clearCursor();
9094
+ clearDiscardedBaseline();
9095
+ resetPending = false;
9096
+ };
9097
+ clearDiscardedBaseline();
9098
+ pendingTeardownRef.current = Promise.all([pendingTeardownRef.current, detach]).then(finishReset).catch((error) => {
9099
+ console.error("CopilotChat: detachActiveRun failed", error);
9100
+ }).finally(() => {
9101
+ if (detachPromisesRef.current.get(agent) === detach) detachPromisesRef.current.delete(agent);
9102
+ });
9103
+ }
9104
+ return () => {
9105
+ active = false;
9106
+ };
9014
9107
  }
9015
9108
  let detached = false;
9016
9109
  const connectAbortController = new AbortController();
9017
- if (agent instanceof _ag_ui_client.HttpAgent) agent.abortController = connectAbortController;
9018
9110
  const connect = async (agentToConnect) => {
9019
9111
  activeConnectCountRef.current += 1;
9020
9112
  try {
9113
+ await pendingTeardownRef.current;
9114
+ if (detached) return;
9115
+ if ((0, _copilotkit_core.ɵisHttpAgent)(agentToConnect)) agentToConnect.abortController = connectAbortController;
9021
9116
  await copilotkit.connectAgent({ agent: agentToConnect });
9022
9117
  } catch (error) {
9023
9118
  if (detached) return;
@@ -9027,7 +9122,7 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
9027
9122
  if (!detached) (typeof requestAnimationFrame === "function" ? requestAnimationFrame : (cb) => setTimeout(cb, 16))(() => {
9028
9123
  if (!detached) setLastConnectedThreadId(resolvedThreadId);
9029
9124
  });
9030
- else if (!hasExplicitThreadIdRef.current) agentToConnect.setMessages([]);
9125
+ else if (!hasExplicitThreadIdRef.current) selection.clearDiscardedBaseline?.();
9031
9126
  activeConnectCountRef.current = Math.max(0, activeConnectCountRef.current - 1);
9032
9127
  if (!detached && activeConnectCountRef.current === 0) {
9033
9128
  const startReconnect = startRunActivityReconnectRef.current;
@@ -9042,7 +9137,12 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
9042
9137
  return () => {
9043
9138
  detached = true;
9044
9139
  connectAbortController.abort();
9045
- agent.detachActiveRun().catch(() => {});
9140
+ const detach = agent.detachActiveRun().catch(() => {});
9141
+ detachPromisesRef.current.set(agent, detach);
9142
+ pendingTeardownRef.current = Promise.all([pendingTeardownRef.current, detach]).then(() => {});
9143
+ detach.then(() => {
9144
+ if (detachPromisesRef.current.get(agent) === detach) detachPromisesRef.current.delete(agent);
9145
+ });
9046
9146
  };
9047
9147
  }, [
9048
9148
  resolvedThreadId,
@@ -9918,7 +10018,7 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
9918
10018
  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]";
9919
10019
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [toggleButtonElement, isRendered ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9920
10020
  "data-copilotkit": true,
9921
- 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"),
10021
+ 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"),
9922
10022
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9923
10023
  ref: containerRef,
9924
10024
  tabIndex: -1,
@@ -12503,6 +12603,12 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
12503
12603
  }
12504
12604
 
12505
12605
  //#endregion
12606
+ Object.defineProperty(exports, 'ACTIVITY_HISTORY_METADATA', {
12607
+ enumerable: true,
12608
+ get: function () {
12609
+ return _ag_ui_client.ACTIVITY_HISTORY_METADATA;
12610
+ }
12611
+ });
12506
12612
  Object.defineProperty(exports, 'AGUIConnectNotImplementedError', {
12507
12613
  enumerable: true,
12508
12614
  get: function () {
@@ -12530,25 +12636,31 @@ Object.defineProperty(exports, 'AbstractAgent', {
12530
12636
  Object.defineProperty(exports, 'ActivityDeltaEventSchema', {
12531
12637
  enumerable: true,
12532
12638
  get: function () {
12533
- return _ag_ui_client.ActivityDeltaEventSchema;
12639
+ return _ag_ui_core_schemas.ActivityDeltaEventSchema;
12534
12640
  }
12535
12641
  });
12536
12642
  Object.defineProperty(exports, 'ActivityMessageSchema', {
12537
12643
  enumerable: true,
12538
12644
  get: function () {
12539
- return _ag_ui_client.ActivityMessageSchema;
12645
+ return _ag_ui_core_schemas.ActivityMessageSchema;
12540
12646
  }
12541
12647
  });
12542
12648
  Object.defineProperty(exports, 'ActivitySnapshotEventSchema', {
12543
12649
  enumerable: true,
12544
12650
  get: function () {
12545
- return _ag_ui_client.ActivitySnapshotEventSchema;
12651
+ return _ag_ui_core_schemas.ActivitySnapshotEventSchema;
12652
+ }
12653
+ });
12654
+ Object.defineProperty(exports, 'AddOperationSchema', {
12655
+ enumerable: true,
12656
+ get: function () {
12657
+ return _ag_ui_core_schemas.AddOperationSchema;
12546
12658
  }
12547
12659
  });
12548
12660
  Object.defineProperty(exports, 'AgentCapabilitiesSchema', {
12549
12661
  enumerable: true,
12550
12662
  get: function () {
12551
- return _ag_ui_client.AgentCapabilitiesSchema;
12663
+ return _ag_ui_core_schemas.AgentCapabilitiesSchema;
12552
12664
  }
12553
12665
  });
12554
12666
  Object.defineProperty(exports, 'AgentRegistry', {
@@ -12566,19 +12678,31 @@ Object.defineProperty(exports, 'AgentThreadLockedError', {
12566
12678
  Object.defineProperty(exports, 'AssistantMessageSchema', {
12567
12679
  enumerable: true,
12568
12680
  get: function () {
12569
- return _ag_ui_client.AssistantMessageSchema;
12681
+ return _ag_ui_core_schemas.AssistantMessageSchema;
12682
+ }
12683
+ });
12684
+ Object.defineProperty(exports, 'AttributableSchema', {
12685
+ enumerable: true,
12686
+ get: function () {
12687
+ return _ag_ui_core_schemas.AttributableSchema;
12570
12688
  }
12571
12689
  });
12572
12690
  Object.defineProperty(exports, 'AudioInputContentSchema', {
12573
12691
  enumerable: true,
12574
12692
  get: function () {
12575
- return _ag_ui_client.AudioInputContentSchema;
12693
+ return _ag_ui_core_schemas.AudioInputContentSchema;
12576
12694
  }
12577
12695
  });
12578
12696
  Object.defineProperty(exports, 'AudioInputPartSchema', {
12579
12697
  enumerable: true,
12580
12698
  get: function () {
12581
- return _ag_ui_client.AudioInputPartSchema;
12699
+ return _ag_ui_core_schemas.AudioInputPartSchema;
12700
+ }
12701
+ });
12702
+ Object.defineProperty(exports, 'AudioPartSchema', {
12703
+ enumerable: true,
12704
+ get: function () {
12705
+ return _ag_ui_core_schemas.AudioPartSchema;
12582
12706
  }
12583
12707
  });
12584
12708
  exports.AudioRecorderError = AudioRecorderError;
@@ -12594,12 +12718,6 @@ Object.defineProperty(exports, 'BackwardCompatibility_0_0_45', {
12594
12718
  return _ag_ui_client.BackwardCompatibility_0_0_45;
12595
12719
  }
12596
12720
  });
12597
- Object.defineProperty(exports, 'BackwardCompatibility_0_0_47', {
12598
- enumerable: true,
12599
- get: function () {
12600
- return _ag_ui_client.BackwardCompatibility_0_0_47;
12601
- }
12602
- });
12603
12721
  Object.defineProperty(exports, 'BackwardCompatibility_0_0_57', {
12604
12722
  enumerable: true,
12605
12723
  get: function () {
@@ -12609,25 +12727,31 @@ Object.defineProperty(exports, 'BackwardCompatibility_0_0_57', {
12609
12727
  Object.defineProperty(exports, 'BaseEventSchema', {
12610
12728
  enumerable: true,
12611
12729
  get: function () {
12612
- return _ag_ui_client.BaseEventSchema;
12730
+ return _ag_ui_core_schemas.BaseEventSchema;
12613
12731
  }
12614
12732
  });
12615
12733
  Object.defineProperty(exports, 'BaseMessageSchema', {
12616
12734
  enumerable: true,
12617
12735
  get: function () {
12618
- return _ag_ui_client.BaseMessageSchema;
12736
+ return _ag_ui_core_schemas.BaseMessageSchema;
12737
+ }
12738
+ });
12739
+ Object.defineProperty(exports, 'CompatibilityBoundary', {
12740
+ enumerable: true,
12741
+ get: function () {
12742
+ return _ag_ui_client.CompatibilityBoundary;
12619
12743
  }
12620
12744
  });
12621
- Object.defineProperty(exports, 'BinaryInputContentSchema', {
12745
+ Object.defineProperty(exports, 'ContentPartSchema', {
12622
12746
  enumerable: true,
12623
12747
  get: function () {
12624
- return _ag_ui_client.BinaryInputContentSchema;
12748
+ return _ag_ui_core_schemas.ContentPartSchema;
12625
12749
  }
12626
12750
  });
12627
12751
  Object.defineProperty(exports, 'ContextSchema', {
12628
12752
  enumerable: true,
12629
12753
  get: function () {
12630
- return _ag_ui_client.ContextSchema;
12754
+ return _ag_ui_core_schemas.ContextSchema;
12631
12755
  }
12632
12756
  });
12633
12757
  Object.defineProperty(exports, 'ContextStore', {
@@ -12701,10 +12825,22 @@ Object.defineProperty(exports, 'CopilotSidebarView', {
12701
12825
  }
12702
12826
  });
12703
12827
  exports.CopilotThreadsDrawer = CopilotThreadsDrawer;
12828
+ Object.defineProperty(exports, 'CopyOperationSchema', {
12829
+ enumerable: true,
12830
+ get: function () {
12831
+ return _ag_ui_core_schemas.CopyOperationSchema;
12832
+ }
12833
+ });
12704
12834
  Object.defineProperty(exports, 'CustomEventSchema', {
12705
12835
  enumerable: true,
12706
12836
  get: function () {
12707
- return _ag_ui_client.CustomEventSchema;
12837
+ return _ag_ui_core_schemas.CustomEventSchema;
12838
+ }
12839
+ });
12840
+ Object.defineProperty(exports, 'DataSourceSchema', {
12841
+ enumerable: true,
12842
+ get: function () {
12843
+ return _ag_ui_core_schemas.DataSourceSchema;
12708
12844
  }
12709
12845
  });
12710
12846
  Object.defineProperty(exports, 'DebugLogger', {
@@ -12716,25 +12852,37 @@ Object.defineProperty(exports, 'DebugLogger', {
12716
12852
  Object.defineProperty(exports, 'DeveloperMessageSchema', {
12717
12853
  enumerable: true,
12718
12854
  get: function () {
12719
- return _ag_ui_client.DeveloperMessageSchema;
12855
+ return _ag_ui_core_schemas.DeveloperMessageSchema;
12720
12856
  }
12721
12857
  });
12722
12858
  Object.defineProperty(exports, 'DocumentInputContentSchema', {
12723
12859
  enumerable: true,
12724
12860
  get: function () {
12725
- return _ag_ui_client.DocumentInputContentSchema;
12861
+ return _ag_ui_core_schemas.DocumentInputContentSchema;
12726
12862
  }
12727
12863
  });
12728
12864
  Object.defineProperty(exports, 'DocumentInputPartSchema', {
12729
12865
  enumerable: true,
12730
12866
  get: function () {
12731
- return _ag_ui_client.DocumentInputPartSchema;
12867
+ return _ag_ui_core_schemas.DocumentInputPartSchema;
12868
+ }
12869
+ });
12870
+ Object.defineProperty(exports, 'DocumentPartSchema', {
12871
+ enumerable: true,
12872
+ get: function () {
12873
+ return _ag_ui_core_schemas.DocumentPartSchema;
12874
+ }
12875
+ });
12876
+ Object.defineProperty(exports, 'EventSchema', {
12877
+ enumerable: true,
12878
+ get: function () {
12879
+ return _ag_ui_core_schemas.EventSchema;
12732
12880
  }
12733
12881
  });
12734
12882
  Object.defineProperty(exports, 'EventSchemas', {
12735
12883
  enumerable: true,
12736
12884
  get: function () {
12737
- return _ag_ui_client.EventSchemas;
12885
+ return _ag_ui_core_schemas.EventSchemas;
12738
12886
  }
12739
12887
  });
12740
12888
  Object.defineProperty(exports, 'EventType', {
@@ -12743,10 +12891,22 @@ Object.defineProperty(exports, 'EventType', {
12743
12891
  return _ag_ui_client.EventType;
12744
12892
  }
12745
12893
  });
12894
+ Object.defineProperty(exports, 'EventTypeSchema', {
12895
+ enumerable: true,
12896
+ get: function () {
12897
+ return _ag_ui_core_schemas.EventTypeSchema;
12898
+ }
12899
+ });
12746
12900
  Object.defineProperty(exports, 'ExecutionCapabilitiesSchema', {
12747
12901
  enumerable: true,
12748
12902
  get: function () {
12749
- return _ag_ui_client.ExecutionCapabilitiesSchema;
12903
+ return _ag_ui_core_schemas.ExecutionCapabilitiesSchema;
12904
+ }
12905
+ });
12906
+ Object.defineProperty(exports, 'FileSourceSchema', {
12907
+ enumerable: true,
12908
+ get: function () {
12909
+ return _ag_ui_core_schemas.FileSourceSchema;
12750
12910
  }
12751
12911
  });
12752
12912
  Object.defineProperty(exports, 'FilterToolCallsMiddleware', {
@@ -12758,7 +12918,7 @@ Object.defineProperty(exports, 'FilterToolCallsMiddleware', {
12758
12918
  Object.defineProperty(exports, 'FunctionCallSchema', {
12759
12919
  enumerable: true,
12760
12920
  get: function () {
12761
- return _ag_ui_client.FunctionCallSchema;
12921
+ return _ag_ui_core_schemas.FunctionCallSchema;
12762
12922
  }
12763
12923
  });
12764
12924
  Object.defineProperty(exports, 'FunctionMiddleware', {
@@ -12777,7 +12937,7 @@ Object.defineProperty(exports, 'HttpAgent', {
12777
12937
  Object.defineProperty(exports, 'HumanInTheLoopCapabilitiesSchema', {
12778
12938
  enumerable: true,
12779
12939
  get: function () {
12780
- return _ag_ui_client.HumanInTheLoopCapabilitiesSchema;
12940
+ return _ag_ui_core_schemas.HumanInTheLoopCapabilitiesSchema;
12781
12941
  }
12782
12942
  });
12783
12943
  Object.defineProperty(exports, 'INSPECTOR_THREAD_BRIDGE_PLUGIN_ID', {
@@ -12791,43 +12951,49 @@ exports.INTERRUPT_EVENT_NAME = INTERRUPT_EVENT_NAME;
12791
12951
  Object.defineProperty(exports, 'IdentityCapabilitiesSchema', {
12792
12952
  enumerable: true,
12793
12953
  get: function () {
12794
- return _ag_ui_client.IdentityCapabilitiesSchema;
12954
+ return _ag_ui_core_schemas.IdentityCapabilitiesSchema;
12795
12955
  }
12796
12956
  });
12797
12957
  Object.defineProperty(exports, 'ImageInputContentSchema', {
12798
12958
  enumerable: true,
12799
12959
  get: function () {
12800
- return _ag_ui_client.ImageInputContentSchema;
12960
+ return _ag_ui_core_schemas.ImageInputContentSchema;
12801
12961
  }
12802
12962
  });
12803
12963
  Object.defineProperty(exports, 'ImageInputPartSchema', {
12804
12964
  enumerable: true,
12805
12965
  get: function () {
12806
- return _ag_ui_client.ImageInputPartSchema;
12966
+ return _ag_ui_core_schemas.ImageInputPartSchema;
12967
+ }
12968
+ });
12969
+ Object.defineProperty(exports, 'ImagePartSchema', {
12970
+ enumerable: true,
12971
+ get: function () {
12972
+ return _ag_ui_core_schemas.ImagePartSchema;
12807
12973
  }
12808
12974
  });
12809
12975
  Object.defineProperty(exports, 'InputContentDataSourceSchema', {
12810
12976
  enumerable: true,
12811
12977
  get: function () {
12812
- return _ag_ui_client.InputContentDataSourceSchema;
12978
+ return _ag_ui_core_schemas.InputContentDataSourceSchema;
12813
12979
  }
12814
12980
  });
12815
12981
  Object.defineProperty(exports, 'InputContentSchema', {
12816
12982
  enumerable: true,
12817
12983
  get: function () {
12818
- return _ag_ui_client.InputContentSchema;
12984
+ return _ag_ui_core_schemas.InputContentSchema;
12819
12985
  }
12820
12986
  });
12821
12987
  Object.defineProperty(exports, 'InputContentSourceSchema', {
12822
12988
  enumerable: true,
12823
12989
  get: function () {
12824
- return _ag_ui_client.InputContentSourceSchema;
12990
+ return _ag_ui_core_schemas.InputContentSourceSchema;
12825
12991
  }
12826
12992
  });
12827
12993
  Object.defineProperty(exports, 'InputContentUrlSourceSchema', {
12828
12994
  enumerable: true,
12829
12995
  get: function () {
12830
- return _ag_ui_client.InputContentUrlSourceSchema;
12996
+ return _ag_ui_core_schemas.InputContentUrlSourceSchema;
12831
12997
  }
12832
12998
  });
12833
12999
  Object.defineProperty(exports, 'IntelligenceAgent', {
@@ -12841,7 +13007,25 @@ exports.IntelligenceIndicatorView = IntelligenceIndicatorView;
12841
13007
  Object.defineProperty(exports, 'InterruptSchema', {
12842
13008
  enumerable: true,
12843
13009
  get: function () {
12844
- return _ag_ui_client.InterruptSchema;
13010
+ return _ag_ui_core_schemas.InterruptSchema;
13011
+ }
13012
+ });
13013
+ Object.defineProperty(exports, 'JsonPatchOperationSchema', {
13014
+ enumerable: true,
13015
+ get: function () {
13016
+ return _ag_ui_core_schemas.JsonPatchOperationSchema;
13017
+ }
13018
+ });
13019
+ Object.defineProperty(exports, 'JsonPatchSchema', {
13020
+ enumerable: true,
13021
+ get: function () {
13022
+ return _ag_ui_core_schemas.JsonPatchSchema;
13023
+ }
13024
+ });
13025
+ Object.defineProperty(exports, 'JsonPointerSchema', {
13026
+ enumerable: true,
13027
+ get: function () {
13028
+ return _ag_ui_core_schemas.JsonPointerSchema;
12845
13029
  }
12846
13030
  });
12847
13031
  Object.defineProperty(exports, 'MCPAppsActivityContentSchema', {
@@ -12872,19 +13056,19 @@ Object.defineProperty(exports, 'MemoryError', {
12872
13056
  Object.defineProperty(exports, 'MessageSchema', {
12873
13057
  enumerable: true,
12874
13058
  get: function () {
12875
- return _ag_ui_client.MessageSchema;
13059
+ return _ag_ui_core_schemas.MessageSchema;
12876
13060
  }
12877
13061
  });
12878
13062
  Object.defineProperty(exports, 'MessagesSnapshotEventSchema', {
12879
13063
  enumerable: true,
12880
13064
  get: function () {
12881
- return _ag_ui_client.MessagesSnapshotEventSchema;
13065
+ return _ag_ui_core_schemas.MessagesSnapshotEventSchema;
12882
13066
  }
12883
13067
  });
12884
13068
  Object.defineProperty(exports, 'MetadataSchema', {
12885
13069
  enumerable: true,
12886
13070
  get: function () {
12887
- return _ag_ui_client.MetadataSchema;
13071
+ return _ag_ui_core_schemas.MetadataSchema;
12888
13072
  }
12889
13073
  });
12890
13074
  Object.defineProperty(exports, 'Middleware', {
@@ -12893,28 +13077,34 @@ Object.defineProperty(exports, 'Middleware', {
12893
13077
  return _ag_ui_client.Middleware;
12894
13078
  }
12895
13079
  });
13080
+ Object.defineProperty(exports, 'MoveOperationSchema', {
13081
+ enumerable: true,
13082
+ get: function () {
13083
+ return _ag_ui_core_schemas.MoveOperationSchema;
13084
+ }
13085
+ });
12896
13086
  Object.defineProperty(exports, 'MultiAgentCapabilitiesSchema', {
12897
13087
  enumerable: true,
12898
13088
  get: function () {
12899
- return _ag_ui_client.MultiAgentCapabilitiesSchema;
13089
+ return _ag_ui_core_schemas.MultiAgentCapabilitiesSchema;
12900
13090
  }
12901
13091
  });
12902
13092
  Object.defineProperty(exports, 'MultimodalCapabilitiesSchema', {
12903
13093
  enumerable: true,
12904
13094
  get: function () {
12905
- return _ag_ui_client.MultimodalCapabilitiesSchema;
13095
+ return _ag_ui_core_schemas.MultimodalCapabilitiesSchema;
12906
13096
  }
12907
13097
  });
12908
13098
  Object.defineProperty(exports, 'MultimodalInputCapabilitiesSchema', {
12909
13099
  enumerable: true,
12910
13100
  get: function () {
12911
- return _ag_ui_client.MultimodalInputCapabilitiesSchema;
13101
+ return _ag_ui_core_schemas.MultimodalInputCapabilitiesSchema;
12912
13102
  }
12913
13103
  });
12914
13104
  Object.defineProperty(exports, 'MultimodalOutputCapabilitiesSchema', {
12915
13105
  enumerable: true,
12916
13106
  get: function () {
12917
- return _ag_ui_client.MultimodalOutputCapabilitiesSchema;
13107
+ return _ag_ui_core_schemas.MultimodalOutputCapabilitiesSchema;
12918
13108
  }
12919
13109
  });
12920
13110
  exports.OpenGenerativeUIActivityRenderer = OpenGenerativeUIActivityRenderer;
@@ -12924,13 +13114,25 @@ exports.OpenGenerativeUIToolRenderer = OpenGenerativeUIToolRenderer;
12924
13114
  Object.defineProperty(exports, 'OptionalMetadataSchema', {
12925
13115
  enumerable: true,
12926
13116
  get: function () {
12927
- return _ag_ui_client.OptionalMetadataSchema;
13117
+ return _ag_ui_core_schemas.OptionalMetadataSchema;
12928
13118
  }
12929
13119
  });
12930
13120
  Object.defineProperty(exports, 'OutputCapabilitiesSchema', {
12931
13121
  enumerable: true,
12932
13122
  get: function () {
12933
- return _ag_ui_client.OutputCapabilitiesSchema;
13123
+ return _ag_ui_core_schemas.OutputCapabilitiesSchema;
13124
+ }
13125
+ });
13126
+ Object.defineProperty(exports, 'PROTOCOL_VERSION', {
13127
+ enumerable: true,
13128
+ get: function () {
13129
+ return _ag_ui_client.PROTOCOL_VERSION;
13130
+ }
13131
+ });
13132
+ Object.defineProperty(exports, 'PartSourceSchema', {
13133
+ enumerable: true,
13134
+ get: function () {
13135
+ return _ag_ui_core_schemas.PartSourceSchema;
12934
13136
  }
12935
13137
  });
12936
13138
  Object.defineProperty(exports, 'ProxiedCopilotRuntimeAgent', {
@@ -12942,115 +13144,133 @@ Object.defineProperty(exports, 'ProxiedCopilotRuntimeAgent', {
12942
13144
  Object.defineProperty(exports, 'RawEventSchema', {
12943
13145
  enumerable: true,
12944
13146
  get: function () {
12945
- return _ag_ui_client.RawEventSchema;
13147
+ return _ag_ui_core_schemas.RawEventSchema;
12946
13148
  }
12947
13149
  });
12948
13150
  Object.defineProperty(exports, 'ReasoningCapabilitiesSchema', {
12949
13151
  enumerable: true,
12950
13152
  get: function () {
12951
- return _ag_ui_client.ReasoningCapabilitiesSchema;
13153
+ return _ag_ui_core_schemas.ReasoningCapabilitiesSchema;
12952
13154
  }
12953
13155
  });
12954
13156
  Object.defineProperty(exports, 'ReasoningEncryptedValueEventSchema', {
12955
13157
  enumerable: true,
12956
13158
  get: function () {
12957
- return _ag_ui_client.ReasoningEncryptedValueEventSchema;
13159
+ return _ag_ui_core_schemas.ReasoningEncryptedValueEventSchema;
12958
13160
  }
12959
13161
  });
12960
13162
  Object.defineProperty(exports, 'ReasoningEncryptedValueSubtypeSchema', {
12961
13163
  enumerable: true,
12962
13164
  get: function () {
12963
- return _ag_ui_client.ReasoningEncryptedValueSubtypeSchema;
13165
+ return _ag_ui_core_schemas.ReasoningEncryptedValueSubtypeSchema;
12964
13166
  }
12965
13167
  });
12966
13168
  Object.defineProperty(exports, 'ReasoningEndEventSchema', {
12967
13169
  enumerable: true,
12968
13170
  get: function () {
12969
- return _ag_ui_client.ReasoningEndEventSchema;
13171
+ return _ag_ui_core_schemas.ReasoningEndEventSchema;
12970
13172
  }
12971
13173
  });
12972
13174
  Object.defineProperty(exports, 'ReasoningMessageChunkEventSchema', {
12973
13175
  enumerable: true,
12974
13176
  get: function () {
12975
- return _ag_ui_client.ReasoningMessageChunkEventSchema;
13177
+ return _ag_ui_core_schemas.ReasoningMessageChunkEventSchema;
12976
13178
  }
12977
13179
  });
12978
13180
  Object.defineProperty(exports, 'ReasoningMessageContentEventSchema', {
12979
13181
  enumerable: true,
12980
13182
  get: function () {
12981
- return _ag_ui_client.ReasoningMessageContentEventSchema;
13183
+ return _ag_ui_core_schemas.ReasoningMessageContentEventSchema;
12982
13184
  }
12983
13185
  });
12984
13186
  Object.defineProperty(exports, 'ReasoningMessageEndEventSchema', {
12985
13187
  enumerable: true,
12986
13188
  get: function () {
12987
- return _ag_ui_client.ReasoningMessageEndEventSchema;
13189
+ return _ag_ui_core_schemas.ReasoningMessageEndEventSchema;
12988
13190
  }
12989
13191
  });
12990
13192
  Object.defineProperty(exports, 'ReasoningMessageSchema', {
12991
13193
  enumerable: true,
12992
13194
  get: function () {
12993
- return _ag_ui_client.ReasoningMessageSchema;
13195
+ return _ag_ui_core_schemas.ReasoningMessageSchema;
12994
13196
  }
12995
13197
  });
12996
13198
  Object.defineProperty(exports, 'ReasoningMessageStartEventSchema', {
12997
13199
  enumerable: true,
12998
13200
  get: function () {
12999
- return _ag_ui_client.ReasoningMessageStartEventSchema;
13201
+ return _ag_ui_core_schemas.ReasoningMessageStartEventSchema;
13000
13202
  }
13001
13203
  });
13002
13204
  Object.defineProperty(exports, 'ReasoningStartEventSchema', {
13003
13205
  enumerable: true,
13004
13206
  get: function () {
13005
- return _ag_ui_client.ReasoningStartEventSchema;
13207
+ return _ag_ui_core_schemas.ReasoningStartEventSchema;
13208
+ }
13209
+ });
13210
+ Object.defineProperty(exports, 'RemoveOperationSchema', {
13211
+ enumerable: true,
13212
+ get: function () {
13213
+ return _ag_ui_core_schemas.RemoveOperationSchema;
13214
+ }
13215
+ });
13216
+ Object.defineProperty(exports, 'ReplaceOperationSchema', {
13217
+ enumerable: true,
13218
+ get: function () {
13219
+ return _ag_ui_core_schemas.ReplaceOperationSchema;
13006
13220
  }
13007
13221
  });
13008
13222
  Object.defineProperty(exports, 'ResumeEntrySchema', {
13009
13223
  enumerable: true,
13010
13224
  get: function () {
13011
- return _ag_ui_client.ResumeEntrySchema;
13225
+ return _ag_ui_core_schemas.ResumeEntrySchema;
13012
13226
  }
13013
13227
  });
13014
13228
  Object.defineProperty(exports, 'RoleSchema', {
13015
13229
  enumerable: true,
13016
13230
  get: function () {
13017
- return _ag_ui_client.RoleSchema;
13231
+ return _ag_ui_core_schemas.RoleSchema;
13018
13232
  }
13019
13233
  });
13020
13234
  Object.defineProperty(exports, 'RunAgentInputSchema', {
13021
13235
  enumerable: true,
13022
13236
  get: function () {
13023
- return _ag_ui_client.RunAgentInputSchema;
13237
+ return _ag_ui_core_schemas.RunAgentInputSchema;
13024
13238
  }
13025
13239
  });
13026
13240
  Object.defineProperty(exports, 'RunErrorEventSchema', {
13027
13241
  enumerable: true,
13028
13242
  get: function () {
13029
- return _ag_ui_client.RunErrorEventSchema;
13243
+ return _ag_ui_core_schemas.RunErrorEventSchema;
13244
+ }
13245
+ });
13246
+ Object.defineProperty(exports, 'RunFinishedCancelledOutcomeSchema', {
13247
+ enumerable: true,
13248
+ get: function () {
13249
+ return _ag_ui_core_schemas.RunFinishedCancelledOutcomeSchema;
13030
13250
  }
13031
13251
  });
13032
13252
  Object.defineProperty(exports, 'RunFinishedEventSchema', {
13033
13253
  enumerable: true,
13034
13254
  get: function () {
13035
- return _ag_ui_client.RunFinishedEventSchema;
13255
+ return _ag_ui_core_schemas.RunFinishedEventSchema;
13036
13256
  }
13037
13257
  });
13038
13258
  Object.defineProperty(exports, 'RunFinishedInterruptOutcomeSchema', {
13039
13259
  enumerable: true,
13040
13260
  get: function () {
13041
- return _ag_ui_client.RunFinishedInterruptOutcomeSchema;
13261
+ return _ag_ui_core_schemas.RunFinishedInterruptOutcomeSchema;
13042
13262
  }
13043
13263
  });
13044
13264
  Object.defineProperty(exports, 'RunFinishedOutcomeSchema', {
13045
13265
  enumerable: true,
13046
13266
  get: function () {
13047
- return _ag_ui_client.RunFinishedOutcomeSchema;
13267
+ return _ag_ui_core_schemas.RunFinishedOutcomeSchema;
13048
13268
  }
13049
13269
  });
13050
13270
  Object.defineProperty(exports, 'RunFinishedSuccessOutcomeSchema', {
13051
13271
  enumerable: true,
13052
13272
  get: function () {
13053
- return _ag_ui_client.RunFinishedSuccessOutcomeSchema;
13273
+ return _ag_ui_core_schemas.RunFinishedSuccessOutcomeSchema;
13054
13274
  }
13055
13275
  });
13056
13276
  Object.defineProperty(exports, 'RunHandler', {
@@ -13062,20 +13282,20 @@ Object.defineProperty(exports, 'RunHandler', {
13062
13282
  Object.defineProperty(exports, 'RunStartedEventSchema', {
13063
13283
  enumerable: true,
13064
13284
  get: function () {
13065
- return _ag_ui_client.RunStartedEventSchema;
13285
+ return _ag_ui_core_schemas.RunStartedEventSchema;
13066
13286
  }
13067
13287
  });
13068
13288
  exports.SandboxFunctionsContext = SandboxFunctionsContext;
13069
13289
  Object.defineProperty(exports, 'StateCapabilitiesSchema', {
13070
13290
  enumerable: true,
13071
13291
  get: function () {
13072
- return _ag_ui_client.StateCapabilitiesSchema;
13292
+ return _ag_ui_core_schemas.StateCapabilitiesSchema;
13073
13293
  }
13074
13294
  });
13075
13295
  Object.defineProperty(exports, 'StateDeltaEventSchema', {
13076
13296
  enumerable: true,
13077
13297
  get: function () {
13078
- return _ag_ui_client.StateDeltaEventSchema;
13298
+ return _ag_ui_core_schemas.StateDeltaEventSchema;
13079
13299
  }
13080
13300
  });
13081
13301
  Object.defineProperty(exports, 'StateManager', {
@@ -13087,181 +13307,175 @@ Object.defineProperty(exports, 'StateManager', {
13087
13307
  Object.defineProperty(exports, 'StateSchema', {
13088
13308
  enumerable: true,
13089
13309
  get: function () {
13090
- return _ag_ui_client.StateSchema;
13310
+ return _ag_ui_core_schemas.StateSchema;
13091
13311
  }
13092
13312
  });
13093
13313
  Object.defineProperty(exports, 'StateSnapshotEventSchema', {
13094
13314
  enumerable: true,
13095
13315
  get: function () {
13096
- return _ag_ui_client.StateSnapshotEventSchema;
13316
+ return _ag_ui_core_schemas.StateSnapshotEventSchema;
13097
13317
  }
13098
13318
  });
13099
13319
  Object.defineProperty(exports, 'StepFinishedEventSchema', {
13100
13320
  enumerable: true,
13101
13321
  get: function () {
13102
- return _ag_ui_client.StepFinishedEventSchema;
13322
+ return _ag_ui_core_schemas.StepFinishedEventSchema;
13103
13323
  }
13104
13324
  });
13105
13325
  Object.defineProperty(exports, 'StepStartedEventSchema', {
13106
13326
  enumerable: true,
13107
13327
  get: function () {
13108
- return _ag_ui_client.StepStartedEventSchema;
13109
- }
13110
- });
13111
- Object.defineProperty(exports, 'SubAgentInfoSchema', {
13112
- enumerable: true,
13113
- get: function () {
13114
- return _ag_ui_client.SubAgentInfoSchema;
13328
+ return _ag_ui_core_schemas.StepStartedEventSchema;
13115
13329
  }
13116
13330
  });
13117
13331
  Object.defineProperty(exports, 'SubagentErrorEventSchema', {
13118
13332
  enumerable: true,
13119
13333
  get: function () {
13120
- return _ag_ui_client.SubagentErrorEventSchema;
13334
+ return _ag_ui_core_schemas.SubagentErrorEventSchema;
13121
13335
  }
13122
13336
  });
13123
13337
  Object.defineProperty(exports, 'SubagentFinishedEventSchema', {
13124
13338
  enumerable: true,
13125
13339
  get: function () {
13126
- return _ag_ui_client.SubagentFinishedEventSchema;
13340
+ return _ag_ui_core_schemas.SubagentFinishedEventSchema;
13127
13341
  }
13128
13342
  });
13129
13343
  Object.defineProperty(exports, 'SubagentFinishedOutcomeSchema', {
13130
13344
  enumerable: true,
13131
13345
  get: function () {
13132
- return _ag_ui_client.SubagentFinishedOutcomeSchema;
13346
+ return _ag_ui_core_schemas.SubagentFinishedOutcomeSchema;
13133
13347
  }
13134
13348
  });
13135
13349
  Object.defineProperty(exports, 'SubagentFinishedSuccessOutcomeSchema', {
13136
13350
  enumerable: true,
13137
13351
  get: function () {
13138
- return _ag_ui_client.SubagentFinishedSuccessOutcomeSchema;
13352
+ return _ag_ui_core_schemas.SubagentFinishedSuccessOutcomeSchema;
13139
13353
  }
13140
13354
  });
13141
13355
  Object.defineProperty(exports, 'SubagentFinishedSuspendedOutcomeSchema', {
13142
13356
  enumerable: true,
13143
13357
  get: function () {
13144
- return _ag_ui_client.SubagentFinishedSuspendedOutcomeSchema;
13358
+ return _ag_ui_core_schemas.SubagentFinishedSuspendedOutcomeSchema;
13145
13359
  }
13146
13360
  });
13147
- Object.defineProperty(exports, 'SubagentStartedEventSchema', {
13361
+ Object.defineProperty(exports, 'SubagentInfoSchema', {
13148
13362
  enumerable: true,
13149
13363
  get: function () {
13150
- return _ag_ui_client.SubagentStartedEventSchema;
13364
+ return _ag_ui_core_schemas.SubagentInfoSchema;
13151
13365
  }
13152
13366
  });
13153
- Object.defineProperty(exports, 'SuggestionEngine', {
13367
+ Object.defineProperty(exports, 'SubagentRunIdSchema', {
13154
13368
  enumerable: true,
13155
13369
  get: function () {
13156
- return _copilotkit_core.SuggestionEngine;
13370
+ return _ag_ui_core_schemas.SubagentRunIdSchema;
13157
13371
  }
13158
13372
  });
13159
- Object.defineProperty(exports, 'SystemMessageSchema', {
13373
+ Object.defineProperty(exports, 'SubagentStartedEventSchema', {
13160
13374
  enumerable: true,
13161
13375
  get: function () {
13162
- return _ag_ui_client.SystemMessageSchema;
13376
+ return _ag_ui_core_schemas.SubagentStartedEventSchema;
13163
13377
  }
13164
13378
  });
13165
- Object.defineProperty(exports, 'TextInputContentSchema', {
13379
+ Object.defineProperty(exports, 'SuggestionEngine', {
13166
13380
  enumerable: true,
13167
13381
  get: function () {
13168
- return _ag_ui_client.TextInputContentSchema;
13382
+ return _copilotkit_core.SuggestionEngine;
13169
13383
  }
13170
13384
  });
13171
- Object.defineProperty(exports, 'TextMessageChunkEventSchema', {
13385
+ Object.defineProperty(exports, 'SystemMessageSchema', {
13172
13386
  enumerable: true,
13173
13387
  get: function () {
13174
- return _ag_ui_client.TextMessageChunkEventSchema;
13388
+ return _ag_ui_core_schemas.SystemMessageSchema;
13175
13389
  }
13176
13390
  });
13177
- Object.defineProperty(exports, 'TextMessageContentEventSchema', {
13391
+ Object.defineProperty(exports, 'TestOperationSchema', {
13178
13392
  enumerable: true,
13179
13393
  get: function () {
13180
- return _ag_ui_client.TextMessageContentEventSchema;
13394
+ return _ag_ui_core_schemas.TestOperationSchema;
13181
13395
  }
13182
13396
  });
13183
- Object.defineProperty(exports, 'TextMessageEndEventSchema', {
13397
+ Object.defineProperty(exports, 'TextInputContentSchema', {
13184
13398
  enumerable: true,
13185
13399
  get: function () {
13186
- return _ag_ui_client.TextMessageEndEventSchema;
13400
+ return _ag_ui_core_schemas.TextInputContentSchema;
13187
13401
  }
13188
13402
  });
13189
- Object.defineProperty(exports, 'TextMessageStartEventSchema', {
13403
+ Object.defineProperty(exports, 'TextMessageChunkEventSchema', {
13190
13404
  enumerable: true,
13191
13405
  get: function () {
13192
- return _ag_ui_client.TextMessageStartEventSchema;
13406
+ return _ag_ui_core_schemas.TextMessageChunkEventSchema;
13193
13407
  }
13194
13408
  });
13195
- Object.defineProperty(exports, 'ThinkingEndEventSchema', {
13409
+ Object.defineProperty(exports, 'TextMessageContentEventSchema', {
13196
13410
  enumerable: true,
13197
13411
  get: function () {
13198
- return _ag_ui_client.ThinkingEndEventSchema;
13412
+ return _ag_ui_core_schemas.TextMessageContentEventSchema;
13199
13413
  }
13200
13414
  });
13201
- Object.defineProperty(exports, 'ThinkingStartEventSchema', {
13415
+ Object.defineProperty(exports, 'TextMessageEndEventSchema', {
13202
13416
  enumerable: true,
13203
13417
  get: function () {
13204
- return _ag_ui_client.ThinkingStartEventSchema;
13418
+ return _ag_ui_core_schemas.TextMessageEndEventSchema;
13205
13419
  }
13206
13420
  });
13207
- Object.defineProperty(exports, 'ThinkingTextMessageContentEventSchema', {
13421
+ Object.defineProperty(exports, 'TextMessageRoleSchema', {
13208
13422
  enumerable: true,
13209
13423
  get: function () {
13210
- return _ag_ui_client.ThinkingTextMessageContentEventSchema;
13424
+ return _ag_ui_core_schemas.TextMessageRoleSchema;
13211
13425
  }
13212
13426
  });
13213
- Object.defineProperty(exports, 'ThinkingTextMessageEndEventSchema', {
13427
+ Object.defineProperty(exports, 'TextMessageStartEventSchema', {
13214
13428
  enumerable: true,
13215
13429
  get: function () {
13216
- return _ag_ui_client.ThinkingTextMessageEndEventSchema;
13430
+ return _ag_ui_core_schemas.TextMessageStartEventSchema;
13217
13431
  }
13218
13432
  });
13219
- Object.defineProperty(exports, 'ThinkingTextMessageStartEventSchema', {
13433
+ Object.defineProperty(exports, 'TextPartSchema', {
13220
13434
  enumerable: true,
13221
13435
  get: function () {
13222
- return _ag_ui_client.ThinkingTextMessageStartEventSchema;
13436
+ return _ag_ui_core_schemas.TextPartSchema;
13223
13437
  }
13224
13438
  });
13225
13439
  Object.defineProperty(exports, 'TokenUsageSchema', {
13226
13440
  enumerable: true,
13227
13441
  get: function () {
13228
- return _ag_ui_client.TokenUsageSchema;
13442
+ return _ag_ui_core_schemas.TokenUsageSchema;
13229
13443
  }
13230
13444
  });
13231
13445
  Object.defineProperty(exports, 'ToolCallArgsEventSchema', {
13232
13446
  enumerable: true,
13233
13447
  get: function () {
13234
- return _ag_ui_client.ToolCallArgsEventSchema;
13448
+ return _ag_ui_core_schemas.ToolCallArgsEventSchema;
13235
13449
  }
13236
13450
  });
13237
13451
  Object.defineProperty(exports, 'ToolCallChunkEventSchema', {
13238
13452
  enumerable: true,
13239
13453
  get: function () {
13240
- return _ag_ui_client.ToolCallChunkEventSchema;
13454
+ return _ag_ui_core_schemas.ToolCallChunkEventSchema;
13241
13455
  }
13242
13456
  });
13243
13457
  Object.defineProperty(exports, 'ToolCallEndEventSchema', {
13244
13458
  enumerable: true,
13245
13459
  get: function () {
13246
- return _ag_ui_client.ToolCallEndEventSchema;
13460
+ return _ag_ui_core_schemas.ToolCallEndEventSchema;
13247
13461
  }
13248
13462
  });
13249
13463
  Object.defineProperty(exports, 'ToolCallResultEventSchema', {
13250
13464
  enumerable: true,
13251
13465
  get: function () {
13252
- return _ag_ui_client.ToolCallResultEventSchema;
13466
+ return _ag_ui_core_schemas.ToolCallResultEventSchema;
13253
13467
  }
13254
13468
  });
13255
13469
  Object.defineProperty(exports, 'ToolCallSchema', {
13256
13470
  enumerable: true,
13257
13471
  get: function () {
13258
- return _ag_ui_client.ToolCallSchema;
13472
+ return _ag_ui_core_schemas.ToolCallSchema;
13259
13473
  }
13260
13474
  });
13261
13475
  Object.defineProperty(exports, 'ToolCallStartEventSchema', {
13262
13476
  enumerable: true,
13263
13477
  get: function () {
13264
- return _ag_ui_client.ToolCallStartEventSchema;
13478
+ return _ag_ui_core_schemas.ToolCallStartEventSchema;
13265
13479
  }
13266
13480
  });
13267
13481
  Object.defineProperty(exports, 'ToolCallStatus', {
@@ -13273,44 +13487,56 @@ Object.defineProperty(exports, 'ToolCallStatus', {
13273
13487
  Object.defineProperty(exports, 'ToolMessageSchema', {
13274
13488
  enumerable: true,
13275
13489
  get: function () {
13276
- return _ag_ui_client.ToolMessageSchema;
13490
+ return _ag_ui_core_schemas.ToolMessageSchema;
13277
13491
  }
13278
13492
  });
13279
13493
  Object.defineProperty(exports, 'ToolSchema', {
13280
13494
  enumerable: true,
13281
13495
  get: function () {
13282
- return _ag_ui_client.ToolSchema;
13496
+ return _ag_ui_core_schemas.ToolSchema;
13283
13497
  }
13284
13498
  });
13285
13499
  Object.defineProperty(exports, 'ToolsCapabilitiesSchema', {
13286
13500
  enumerable: true,
13287
13501
  get: function () {
13288
- return _ag_ui_client.ToolsCapabilitiesSchema;
13502
+ return _ag_ui_core_schemas.ToolsCapabilitiesSchema;
13289
13503
  }
13290
13504
  });
13291
13505
  Object.defineProperty(exports, 'TransportCapabilitiesSchema', {
13292
13506
  enumerable: true,
13293
13507
  get: function () {
13294
- return _ag_ui_client.TransportCapabilitiesSchema;
13508
+ return _ag_ui_core_schemas.TransportCapabilitiesSchema;
13509
+ }
13510
+ });
13511
+ Object.defineProperty(exports, 'UrlSourceSchema', {
13512
+ enumerable: true,
13513
+ get: function () {
13514
+ return _ag_ui_core_schemas.UrlSourceSchema;
13295
13515
  }
13296
13516
  });
13297
13517
  exports.UseAgentUpdate = UseAgentUpdate;
13298
13518
  Object.defineProperty(exports, 'UserMessageSchema', {
13299
13519
  enumerable: true,
13300
13520
  get: function () {
13301
- return _ag_ui_client.UserMessageSchema;
13521
+ return _ag_ui_core_schemas.UserMessageSchema;
13302
13522
  }
13303
13523
  });
13304
13524
  Object.defineProperty(exports, 'VideoInputContentSchema', {
13305
13525
  enumerable: true,
13306
13526
  get: function () {
13307
- return _ag_ui_client.VideoInputContentSchema;
13527
+ return _ag_ui_core_schemas.VideoInputContentSchema;
13308
13528
  }
13309
13529
  });
13310
13530
  Object.defineProperty(exports, 'VideoInputPartSchema', {
13311
13531
  enumerable: true,
13312
13532
  get: function () {
13313
- return _ag_ui_client.VideoInputPartSchema;
13533
+ return _ag_ui_core_schemas.VideoInputPartSchema;
13534
+ }
13535
+ });
13536
+ Object.defineProperty(exports, 'VideoPartSchema', {
13537
+ enumerable: true,
13538
+ get: function () {
13539
+ return _ag_ui_core_schemas.VideoPartSchema;
13314
13540
  }
13315
13541
  });
13316
13542
  Object.defineProperty(exports, 'WebMCPRegistry', {
@@ -13332,6 +13558,12 @@ Object.defineProperty(exports, 'aggregateTokenUsage', {
13332
13558
  return _ag_ui_client.aggregateTokenUsage;
13333
13559
  }
13334
13560
  });
13561
+ Object.defineProperty(exports, 'authoritativeActivityTypes', {
13562
+ enumerable: true,
13563
+ get: function () {
13564
+ return _ag_ui_client.authoritativeActivityTypes;
13565
+ }
13566
+ });
13335
13567
  Object.defineProperty(exports, 'buildResumeArray', {
13336
13568
  enumerable: true,
13337
13569
  get: function () {
@@ -13350,6 +13582,18 @@ Object.defineProperty(exports, 'completePartialMarkdown', {
13350
13582
  return _copilotkit_core.completePartialMarkdown;
13351
13583
  }
13352
13584
  });
13585
+ Object.defineProperty(exports, 'contentHasMedia', {
13586
+ enumerable: true,
13587
+ get: function () {
13588
+ return _ag_ui_client.contentHasMedia;
13589
+ }
13590
+ });
13591
+ Object.defineProperty(exports, 'contentToText', {
13592
+ enumerable: true,
13593
+ get: function () {
13594
+ return _ag_ui_client.contentToText;
13595
+ }
13596
+ });
13353
13597
  Object.defineProperty(exports, 'convertToLegacyEvents', {
13354
13598
  enumerable: true,
13355
13599
  get: function () {
@@ -13436,6 +13680,18 @@ Object.defineProperty(exports, 'empty', {
13436
13680
  return _copilotkit_core.empty;
13437
13681
  }
13438
13682
  });
13683
+ Object.defineProperty(exports, 'enforceEvents', {
13684
+ enumerable: true,
13685
+ get: function () {
13686
+ return _ag_ui_client.enforceEvents;
13687
+ }
13688
+ });
13689
+ Object.defineProperty(exports, 'enforceOutgoingInput', {
13690
+ enumerable: true,
13691
+ get: function () {
13692
+ return _ag_ui_client.enforceOutgoingInput;
13693
+ }
13694
+ });
13439
13695
  Object.defineProperty(exports, 'ensureObjectArgs', {
13440
13696
  enumerable: true,
13441
13697
  get: function () {
@@ -13473,6 +13729,12 @@ Object.defineProperty(exports, 'isInterruptExpired', {
13473
13729
  return _ag_ui_client.isInterruptExpired;
13474
13730
  }
13475
13731
  });
13732
+ Object.defineProperty(exports, 'isRecognizedEvent', {
13733
+ enumerable: true,
13734
+ get: function () {
13735
+ return _ag_ui_client.isRecognizedEvent;
13736
+ }
13737
+ });
13476
13738
  Object.defineProperty(exports, 'isRunCompletionAware', {
13477
13739
  enumerable: true,
13478
13740
  get: function () {
@@ -13491,6 +13753,12 @@ Object.defineProperty(exports, 'ofType', {
13491
13753
  return _copilotkit_core.ofType;
13492
13754
  }
13493
13755
  });
13756
+ Object.defineProperty(exports, 'omitOptionalNulls', {
13757
+ enumerable: true,
13758
+ get: function () {
13759
+ return _ag_ui_client.omitOptionalNulls;
13760
+ }
13761
+ });
13494
13762
  Object.defineProperty(exports, 'on', {
13495
13763
  enumerable: true,
13496
13764
  get: function () {
@@ -13637,6 +13905,12 @@ Object.defineProperty(exports, 'verifyEvents', {
13637
13905
  return _ag_ui_client.verifyEvents;
13638
13906
  }
13639
13907
  });
13908
+ Object.defineProperty(exports, 'withAuthoritativeActivityTypes', {
13909
+ enumerable: true,
13910
+ get: function () {
13911
+ return _ag_ui_client.withAuthoritativeActivityTypes;
13912
+ }
13913
+ });
13640
13914
  Object.defineProperty(exports, 'ɵCOPILOTKIT_FEATURES', {
13641
13915
  enumerable: true,
13642
13916
  get: function () {
@@ -13691,6 +13965,12 @@ Object.defineProperty(exports, 'ɵisCopilotKitFeature', {
13691
13965
  return _copilotkit_core.ɵisCopilotKitFeature;
13692
13966
  }
13693
13967
  });
13968
+ Object.defineProperty(exports, 'ɵisHttpAgent', {
13969
+ enumerable: true,
13970
+ get: function () {
13971
+ return _copilotkit_core.ɵisHttpAgent;
13972
+ }
13973
+ });
13694
13974
  Object.defineProperty(exports, 'ɵisRetryableMemoryStatus', {
13695
13975
  enumerable: true,
13696
13976
  get: function () {