@copilotkit/react-core 1.75.2 → 1.76.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 (36) hide show
  1. package/dist/{copilotkit-CGlSOKHM.d.mts → copilotkit-B90cY0Zg.d.mts} +18 -17
  2. package/dist/copilotkit-B90cY0Zg.d.mts.map +1 -0
  3. package/dist/{copilotkit-D9iy3p2l.mjs → copilotkit-LD7Gp2aV.mjs} +72 -35
  4. package/dist/copilotkit-LD7Gp2aV.mjs.map +1 -0
  5. package/dist/{copilotkit-Cjj9wDI8.d.cts → copilotkit-W-bV_OSs.d.cts} +5 -4
  6. package/dist/copilotkit-W-bV_OSs.d.cts.map +1 -0
  7. package/dist/{copilotkit-Beiw32bn.cjs → copilotkit-dHdNF7H5.cjs} +68 -32
  8. package/dist/copilotkit-dHdNF7H5.cjs.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 +21 -29
  18. package/dist/index.umd.js.map +1 -1
  19. package/dist/v2/headless.cjs +17 -24
  20. package/dist/v2/headless.cjs.map +1 -1
  21. package/dist/v2/headless.d.cts.map +1 -1
  22. package/dist/v2/headless.d.mts +2 -2
  23. package/dist/v2/headless.d.mts.map +1 -1
  24. package/dist/v2/headless.mjs +18 -25
  25. package/dist/v2/headless.mjs.map +1 -1
  26. package/dist/v2/index.cjs +302 -121
  27. package/dist/v2/index.d.cts +2 -2
  28. package/dist/v2/index.d.mts +2 -2
  29. package/dist/v2/index.mjs +2 -2
  30. package/dist/v2/index.umd.js +370 -155
  31. package/dist/v2/index.umd.js.map +1 -1
  32. package/package.json +10 -10
  33. package/dist/copilotkit-Beiw32bn.cjs.map +0 -1
  34. package/dist/copilotkit-CGlSOKHM.d.mts.map +0 -1
  35. package/dist/copilotkit-Cjj9wDI8.d.cts.map +0 -1
  36. 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;
@@ -1651,7 +1651,7 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
1651
1651
  toolCallId: toolCall.id,
1652
1652
  args,
1653
1653
  status: _copilotkit_core.ToolCallStatus.Complete,
1654
- result: toolMessage.content
1654
+ result: (0, _ag_ui_core.contentToText)(toolMessage.content)
1655
1655
  });
1656
1656
  else if (isExecuting) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RenderComponent, {
1657
1657
  name: toolName,
@@ -1747,7 +1747,7 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
1747
1747
 
1748
1748
  //#endregion
1749
1749
  //#region package.json
1750
- var version = "1.75.2";
1750
+ var version = "1.76.0";
1751
1751
 
1752
1752
  //#endregion
1753
1753
  //#region src/v2/components/CopilotKitInspector.tsx
@@ -4699,7 +4699,7 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
4699
4699
  updateFlags
4700
4700
  ]);
4701
4701
  (0, react.useEffect)(() => {
4702
- if (agent instanceof _ag_ui_client.HttpAgent) copilotkit.applyHeadersToAgent(agent);
4702
+ if ((0, _copilotkit_core.ɵisHttpAgent)(agent)) copilotkit.applyHeadersToAgent(agent);
4703
4703
  if (agent instanceof _copilotkit_core.ProxiedCopilotRuntimeAgent) agent.credentials = copilotkit.credentials;
4704
4704
  }, [
4705
4705
  agent,
@@ -5037,7 +5037,6 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
5037
5037
  pendingRef.current = pending;
5038
5038
  const [handlerResult, setHandlerResult] = (0, react.useState)(null);
5039
5039
  const interruptStateRef = (0, react.useRef)(new _copilotkit_core.ɵInterruptState());
5040
- const legacyRunIdRef = (0, react.useRef)(void 0);
5041
5040
  (0, react.useEffect)(() => {
5042
5041
  const interruptState = interruptStateRef.current;
5043
5042
  let localLegacy = null;
@@ -5055,16 +5054,14 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
5055
5054
  onRunStartedEvent: () => {
5056
5055
  localLegacy = null;
5057
5056
  localStandard = null;
5058
- legacyRunIdRef.current = void 0;
5059
5057
  interruptState.clear();
5060
5058
  setPending(null);
5061
5059
  },
5062
- onRunFinalized: (params) => {
5060
+ onRunFinalized: () => {
5063
5061
  if (localStandard && localStandard.length > 0) {
5064
5062
  interruptState.setStandard(localStandard);
5065
5063
  setPending(interruptState.pending);
5066
5064
  } else if (localLegacy) {
5067
- legacyRunIdRef.current = params.input.runId;
5068
5065
  interruptState.setLegacy(localLegacy);
5069
5066
  setPending(interruptState.pending);
5070
5067
  }
@@ -5074,7 +5071,6 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
5074
5071
  onRunFailed: () => {
5075
5072
  localLegacy = null;
5076
5073
  localStandard = null;
5077
- legacyRunIdRef.current = void 0;
5078
5074
  interruptState.clear();
5079
5075
  setPending(null);
5080
5076
  }
@@ -5089,22 +5085,18 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
5089
5085
  if (!current) return;
5090
5086
  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
5087
  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
- }
5088
+ if (decision.kind === "legacy-resume") try {
5089
+ return await copilotkit.runAgent({
5090
+ agent,
5091
+ forwardedProps: { command: {
5092
+ resume: decision.payload,
5093
+ interruptEvent: decision.interruptValue
5094
+ } }
5095
+ });
5096
+ } catch (err) {
5097
+ console.error("[CopilotKit] useInterrupt resolve: runAgent rejected; clearing pending + rethrowing", err);
5098
+ setPending(null);
5099
+ throw err;
5108
5100
  }
5109
5101
  if (decision.kind === "expired") {
5110
5102
  console.error(`[CopilotKit] useInterrupt: interrupt ${decision.interrupt.id} expired at ${decision.interrupt.expiresAt}; not resuming.`);
@@ -8959,6 +8951,8 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
8959
8951
  const hasNativeIntelligenceRunActivity = hasExplicitThreadId && runtimeStatus === "Connected" && !!copilotkit.intelligence?.wsUrl && copilotkit.threadEndpoints?.realtimeMetadata === true;
8960
8952
  const [standaloneRunActivityStore] = (0, react.useState)(() => (0, _copilotkit_core.ɵcreateThreadStore)({ fetch: copilotkit.ɵruntimeFetch }));
8961
8953
  const previousThreadRef = (0, react.useRef)(null);
8954
+ const detachPromisesRef = (0, react.useRef)(/* @__PURE__ */ new WeakMap());
8955
+ const pendingTeardownRef = (0, react.useRef)(Promise.resolve());
8962
8956
  const hasExplicitThreadIdRef = (0, react.useRef)(hasExplicitThreadId);
8963
8957
  hasExplicitThreadIdRef.current = hasExplicitThreadId;
8964
8958
  const rememberRecentlyLocalRunId = (0, react.useCallback)((runId) => {
@@ -9001,23 +8995,59 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
9001
8995
  const previousThread = previousThreadRef.current;
9002
8996
  const threadChanged = previousThread?.threadId !== resolvedThreadId;
9003
8997
  const inspectorTransition = threadChanged && previousThread !== null && previousThread.inspectorRequestId !== inspectorRequestId && (previousThread.inspectorRequestId !== null || inspectorRequestId !== null);
9004
- previousThreadRef.current = {
8998
+ const selection = {
9005
8999
  threadId: resolvedThreadId,
9006
- inspectorRequestId
9000
+ inspectorRequestId,
9001
+ agent
9007
9002
  };
9003
+ previousThreadRef.current = selection;
9004
+ const discardedThreadId = previousThread?.agent === agent ? previousThread.threadId : agent.threadId;
9008
9005
  if (inspectorTransition) if (typeof copilotkit.stopAgent === "function") copilotkit.stopAgent({ agent });
9009
9006
  else agent.abortRun?.();
9010
9007
  agent.threadId = resolvedThreadId;
9011
9008
  if (!hasExplicitThreadId) {
9012
- if (threadChanged && agent.messages.length > 0) agent.setMessages([]);
9013
- return;
9009
+ let active = true;
9010
+ if (threadChanged && previousThread !== null) {
9011
+ let resetPending = true;
9012
+ const clearCursor = () => {
9013
+ if ("clearReplayCursor" in agent && typeof agent.clearReplayCursor === "function") agent.clearReplayCursor(discardedThreadId);
9014
+ if ("clearReconnectCursor" in agent && typeof agent.clearReconnectCursor === "function") agent.clearReconnectCursor(discardedThreadId);
9015
+ };
9016
+ const clearDiscardedBaseline = () => {
9017
+ if (!active || !resetPending || previousThreadRef.current !== selection) return;
9018
+ agent.setMessages([]);
9019
+ agent.setState({});
9020
+ agent.pendingInterrupts = [];
9021
+ clearCursor();
9022
+ };
9023
+ if (previousThread.agent === agent) previousThread.clearDiscardedBaseline = clearDiscardedBaseline;
9024
+ const detach = detachPromisesRef.current.get(agent) ?? agent.detachActiveRun();
9025
+ detachPromisesRef.current.set(agent, detach);
9026
+ const finishReset = () => {
9027
+ if (!resetPending) return;
9028
+ clearCursor();
9029
+ clearDiscardedBaseline();
9030
+ resetPending = false;
9031
+ };
9032
+ clearDiscardedBaseline();
9033
+ pendingTeardownRef.current = Promise.all([pendingTeardownRef.current, detach]).then(finishReset).catch((error) => {
9034
+ console.error("CopilotChat: detachActiveRun failed", error);
9035
+ }).finally(() => {
9036
+ if (detachPromisesRef.current.get(agent) === detach) detachPromisesRef.current.delete(agent);
9037
+ });
9038
+ }
9039
+ return () => {
9040
+ active = false;
9041
+ };
9014
9042
  }
9015
9043
  let detached = false;
9016
9044
  const connectAbortController = new AbortController();
9017
- if (agent instanceof _ag_ui_client.HttpAgent) agent.abortController = connectAbortController;
9018
9045
  const connect = async (agentToConnect) => {
9019
9046
  activeConnectCountRef.current += 1;
9020
9047
  try {
9048
+ await pendingTeardownRef.current;
9049
+ if (detached) return;
9050
+ if ((0, _copilotkit_core.ɵisHttpAgent)(agentToConnect)) agentToConnect.abortController = connectAbortController;
9021
9051
  await copilotkit.connectAgent({ agent: agentToConnect });
9022
9052
  } catch (error) {
9023
9053
  if (detached) return;
@@ -9027,7 +9057,7 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
9027
9057
  if (!detached) (typeof requestAnimationFrame === "function" ? requestAnimationFrame : (cb) => setTimeout(cb, 16))(() => {
9028
9058
  if (!detached) setLastConnectedThreadId(resolvedThreadId);
9029
9059
  });
9030
- else if (!hasExplicitThreadIdRef.current) agentToConnect.setMessages([]);
9060
+ else if (!hasExplicitThreadIdRef.current) selection.clearDiscardedBaseline?.();
9031
9061
  activeConnectCountRef.current = Math.max(0, activeConnectCountRef.current - 1);
9032
9062
  if (!detached && activeConnectCountRef.current === 0) {
9033
9063
  const startReconnect = startRunActivityReconnectRef.current;
@@ -9042,7 +9072,12 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
9042
9072
  return () => {
9043
9073
  detached = true;
9044
9074
  connectAbortController.abort();
9045
- agent.detachActiveRun().catch(() => {});
9075
+ const detach = agent.detachActiveRun().catch(() => {});
9076
+ detachPromisesRef.current.set(agent, detach);
9077
+ pendingTeardownRef.current = Promise.all([pendingTeardownRef.current, detach]).then(() => {});
9078
+ detach.then(() => {
9079
+ if (detachPromisesRef.current.get(agent) === detach) detachPromisesRef.current.delete(agent);
9080
+ });
9046
9081
  };
9047
9082
  }, [
9048
9083
  resolvedThreadId,
@@ -12503,6 +12538,12 @@ _radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
12503
12538
  }
12504
12539
 
12505
12540
  //#endregion
12541
+ Object.defineProperty(exports, 'ACTIVITY_HISTORY_METADATA', {
12542
+ enumerable: true,
12543
+ get: function () {
12544
+ return _ag_ui_client.ACTIVITY_HISTORY_METADATA;
12545
+ }
12546
+ });
12506
12547
  Object.defineProperty(exports, 'AGUIConnectNotImplementedError', {
12507
12548
  enumerable: true,
12508
12549
  get: function () {
@@ -12530,25 +12571,31 @@ Object.defineProperty(exports, 'AbstractAgent', {
12530
12571
  Object.defineProperty(exports, 'ActivityDeltaEventSchema', {
12531
12572
  enumerable: true,
12532
12573
  get: function () {
12533
- return _ag_ui_client.ActivityDeltaEventSchema;
12574
+ return _ag_ui_core_schemas.ActivityDeltaEventSchema;
12534
12575
  }
12535
12576
  });
12536
12577
  Object.defineProperty(exports, 'ActivityMessageSchema', {
12537
12578
  enumerable: true,
12538
12579
  get: function () {
12539
- return _ag_ui_client.ActivityMessageSchema;
12580
+ return _ag_ui_core_schemas.ActivityMessageSchema;
12540
12581
  }
12541
12582
  });
12542
12583
  Object.defineProperty(exports, 'ActivitySnapshotEventSchema', {
12543
12584
  enumerable: true,
12544
12585
  get: function () {
12545
- return _ag_ui_client.ActivitySnapshotEventSchema;
12586
+ return _ag_ui_core_schemas.ActivitySnapshotEventSchema;
12587
+ }
12588
+ });
12589
+ Object.defineProperty(exports, 'AddOperationSchema', {
12590
+ enumerable: true,
12591
+ get: function () {
12592
+ return _ag_ui_core_schemas.AddOperationSchema;
12546
12593
  }
12547
12594
  });
12548
12595
  Object.defineProperty(exports, 'AgentCapabilitiesSchema', {
12549
12596
  enumerable: true,
12550
12597
  get: function () {
12551
- return _ag_ui_client.AgentCapabilitiesSchema;
12598
+ return _ag_ui_core_schemas.AgentCapabilitiesSchema;
12552
12599
  }
12553
12600
  });
12554
12601
  Object.defineProperty(exports, 'AgentRegistry', {
@@ -12566,19 +12613,31 @@ Object.defineProperty(exports, 'AgentThreadLockedError', {
12566
12613
  Object.defineProperty(exports, 'AssistantMessageSchema', {
12567
12614
  enumerable: true,
12568
12615
  get: function () {
12569
- return _ag_ui_client.AssistantMessageSchema;
12616
+ return _ag_ui_core_schemas.AssistantMessageSchema;
12617
+ }
12618
+ });
12619
+ Object.defineProperty(exports, 'AttributableSchema', {
12620
+ enumerable: true,
12621
+ get: function () {
12622
+ return _ag_ui_core_schemas.AttributableSchema;
12570
12623
  }
12571
12624
  });
12572
12625
  Object.defineProperty(exports, 'AudioInputContentSchema', {
12573
12626
  enumerable: true,
12574
12627
  get: function () {
12575
- return _ag_ui_client.AudioInputContentSchema;
12628
+ return _ag_ui_core_schemas.AudioInputContentSchema;
12576
12629
  }
12577
12630
  });
12578
12631
  Object.defineProperty(exports, 'AudioInputPartSchema', {
12579
12632
  enumerable: true,
12580
12633
  get: function () {
12581
- return _ag_ui_client.AudioInputPartSchema;
12634
+ return _ag_ui_core_schemas.AudioInputPartSchema;
12635
+ }
12636
+ });
12637
+ Object.defineProperty(exports, 'AudioPartSchema', {
12638
+ enumerable: true,
12639
+ get: function () {
12640
+ return _ag_ui_core_schemas.AudioPartSchema;
12582
12641
  }
12583
12642
  });
12584
12643
  exports.AudioRecorderError = AudioRecorderError;
@@ -12594,12 +12653,6 @@ Object.defineProperty(exports, 'BackwardCompatibility_0_0_45', {
12594
12653
  return _ag_ui_client.BackwardCompatibility_0_0_45;
12595
12654
  }
12596
12655
  });
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
12656
  Object.defineProperty(exports, 'BackwardCompatibility_0_0_57', {
12604
12657
  enumerable: true,
12605
12658
  get: function () {
@@ -12609,25 +12662,31 @@ Object.defineProperty(exports, 'BackwardCompatibility_0_0_57', {
12609
12662
  Object.defineProperty(exports, 'BaseEventSchema', {
12610
12663
  enumerable: true,
12611
12664
  get: function () {
12612
- return _ag_ui_client.BaseEventSchema;
12665
+ return _ag_ui_core_schemas.BaseEventSchema;
12613
12666
  }
12614
12667
  });
12615
12668
  Object.defineProperty(exports, 'BaseMessageSchema', {
12616
12669
  enumerable: true,
12617
12670
  get: function () {
12618
- return _ag_ui_client.BaseMessageSchema;
12671
+ return _ag_ui_core_schemas.BaseMessageSchema;
12619
12672
  }
12620
12673
  });
12621
- Object.defineProperty(exports, 'BinaryInputContentSchema', {
12674
+ Object.defineProperty(exports, 'CompatibilityBoundary', {
12622
12675
  enumerable: true,
12623
12676
  get: function () {
12624
- return _ag_ui_client.BinaryInputContentSchema;
12677
+ return _ag_ui_client.CompatibilityBoundary;
12678
+ }
12679
+ });
12680
+ Object.defineProperty(exports, 'ContentPartSchema', {
12681
+ enumerable: true,
12682
+ get: function () {
12683
+ return _ag_ui_core_schemas.ContentPartSchema;
12625
12684
  }
12626
12685
  });
12627
12686
  Object.defineProperty(exports, 'ContextSchema', {
12628
12687
  enumerable: true,
12629
12688
  get: function () {
12630
- return _ag_ui_client.ContextSchema;
12689
+ return _ag_ui_core_schemas.ContextSchema;
12631
12690
  }
12632
12691
  });
12633
12692
  Object.defineProperty(exports, 'ContextStore', {
@@ -12701,10 +12760,22 @@ Object.defineProperty(exports, 'CopilotSidebarView', {
12701
12760
  }
12702
12761
  });
12703
12762
  exports.CopilotThreadsDrawer = CopilotThreadsDrawer;
12763
+ Object.defineProperty(exports, 'CopyOperationSchema', {
12764
+ enumerable: true,
12765
+ get: function () {
12766
+ return _ag_ui_core_schemas.CopyOperationSchema;
12767
+ }
12768
+ });
12704
12769
  Object.defineProperty(exports, 'CustomEventSchema', {
12705
12770
  enumerable: true,
12706
12771
  get: function () {
12707
- return _ag_ui_client.CustomEventSchema;
12772
+ return _ag_ui_core_schemas.CustomEventSchema;
12773
+ }
12774
+ });
12775
+ Object.defineProperty(exports, 'DataSourceSchema', {
12776
+ enumerable: true,
12777
+ get: function () {
12778
+ return _ag_ui_core_schemas.DataSourceSchema;
12708
12779
  }
12709
12780
  });
12710
12781
  Object.defineProperty(exports, 'DebugLogger', {
@@ -12716,25 +12787,37 @@ Object.defineProperty(exports, 'DebugLogger', {
12716
12787
  Object.defineProperty(exports, 'DeveloperMessageSchema', {
12717
12788
  enumerable: true,
12718
12789
  get: function () {
12719
- return _ag_ui_client.DeveloperMessageSchema;
12790
+ return _ag_ui_core_schemas.DeveloperMessageSchema;
12720
12791
  }
12721
12792
  });
12722
12793
  Object.defineProperty(exports, 'DocumentInputContentSchema', {
12723
12794
  enumerable: true,
12724
12795
  get: function () {
12725
- return _ag_ui_client.DocumentInputContentSchema;
12796
+ return _ag_ui_core_schemas.DocumentInputContentSchema;
12726
12797
  }
12727
12798
  });
12728
12799
  Object.defineProperty(exports, 'DocumentInputPartSchema', {
12729
12800
  enumerable: true,
12730
12801
  get: function () {
12731
- return _ag_ui_client.DocumentInputPartSchema;
12802
+ return _ag_ui_core_schemas.DocumentInputPartSchema;
12803
+ }
12804
+ });
12805
+ Object.defineProperty(exports, 'DocumentPartSchema', {
12806
+ enumerable: true,
12807
+ get: function () {
12808
+ return _ag_ui_core_schemas.DocumentPartSchema;
12809
+ }
12810
+ });
12811
+ Object.defineProperty(exports, 'EventSchema', {
12812
+ enumerable: true,
12813
+ get: function () {
12814
+ return _ag_ui_core_schemas.EventSchema;
12732
12815
  }
12733
12816
  });
12734
12817
  Object.defineProperty(exports, 'EventSchemas', {
12735
12818
  enumerable: true,
12736
12819
  get: function () {
12737
- return _ag_ui_client.EventSchemas;
12820
+ return _ag_ui_core_schemas.EventSchemas;
12738
12821
  }
12739
12822
  });
12740
12823
  Object.defineProperty(exports, 'EventType', {
@@ -12743,10 +12826,22 @@ Object.defineProperty(exports, 'EventType', {
12743
12826
  return _ag_ui_client.EventType;
12744
12827
  }
12745
12828
  });
12829
+ Object.defineProperty(exports, 'EventTypeSchema', {
12830
+ enumerable: true,
12831
+ get: function () {
12832
+ return _ag_ui_core_schemas.EventTypeSchema;
12833
+ }
12834
+ });
12746
12835
  Object.defineProperty(exports, 'ExecutionCapabilitiesSchema', {
12747
12836
  enumerable: true,
12748
12837
  get: function () {
12749
- return _ag_ui_client.ExecutionCapabilitiesSchema;
12838
+ return _ag_ui_core_schemas.ExecutionCapabilitiesSchema;
12839
+ }
12840
+ });
12841
+ Object.defineProperty(exports, 'FileSourceSchema', {
12842
+ enumerable: true,
12843
+ get: function () {
12844
+ return _ag_ui_core_schemas.FileSourceSchema;
12750
12845
  }
12751
12846
  });
12752
12847
  Object.defineProperty(exports, 'FilterToolCallsMiddleware', {
@@ -12758,7 +12853,7 @@ Object.defineProperty(exports, 'FilterToolCallsMiddleware', {
12758
12853
  Object.defineProperty(exports, 'FunctionCallSchema', {
12759
12854
  enumerable: true,
12760
12855
  get: function () {
12761
- return _ag_ui_client.FunctionCallSchema;
12856
+ return _ag_ui_core_schemas.FunctionCallSchema;
12762
12857
  }
12763
12858
  });
12764
12859
  Object.defineProperty(exports, 'FunctionMiddleware', {
@@ -12777,7 +12872,7 @@ Object.defineProperty(exports, 'HttpAgent', {
12777
12872
  Object.defineProperty(exports, 'HumanInTheLoopCapabilitiesSchema', {
12778
12873
  enumerable: true,
12779
12874
  get: function () {
12780
- return _ag_ui_client.HumanInTheLoopCapabilitiesSchema;
12875
+ return _ag_ui_core_schemas.HumanInTheLoopCapabilitiesSchema;
12781
12876
  }
12782
12877
  });
12783
12878
  Object.defineProperty(exports, 'INSPECTOR_THREAD_BRIDGE_PLUGIN_ID', {
@@ -12791,43 +12886,49 @@ exports.INTERRUPT_EVENT_NAME = INTERRUPT_EVENT_NAME;
12791
12886
  Object.defineProperty(exports, 'IdentityCapabilitiesSchema', {
12792
12887
  enumerable: true,
12793
12888
  get: function () {
12794
- return _ag_ui_client.IdentityCapabilitiesSchema;
12889
+ return _ag_ui_core_schemas.IdentityCapabilitiesSchema;
12795
12890
  }
12796
12891
  });
12797
12892
  Object.defineProperty(exports, 'ImageInputContentSchema', {
12798
12893
  enumerable: true,
12799
12894
  get: function () {
12800
- return _ag_ui_client.ImageInputContentSchema;
12895
+ return _ag_ui_core_schemas.ImageInputContentSchema;
12801
12896
  }
12802
12897
  });
12803
12898
  Object.defineProperty(exports, 'ImageInputPartSchema', {
12804
12899
  enumerable: true,
12805
12900
  get: function () {
12806
- return _ag_ui_client.ImageInputPartSchema;
12901
+ return _ag_ui_core_schemas.ImageInputPartSchema;
12902
+ }
12903
+ });
12904
+ Object.defineProperty(exports, 'ImagePartSchema', {
12905
+ enumerable: true,
12906
+ get: function () {
12907
+ return _ag_ui_core_schemas.ImagePartSchema;
12807
12908
  }
12808
12909
  });
12809
12910
  Object.defineProperty(exports, 'InputContentDataSourceSchema', {
12810
12911
  enumerable: true,
12811
12912
  get: function () {
12812
- return _ag_ui_client.InputContentDataSourceSchema;
12913
+ return _ag_ui_core_schemas.InputContentDataSourceSchema;
12813
12914
  }
12814
12915
  });
12815
12916
  Object.defineProperty(exports, 'InputContentSchema', {
12816
12917
  enumerable: true,
12817
12918
  get: function () {
12818
- return _ag_ui_client.InputContentSchema;
12919
+ return _ag_ui_core_schemas.InputContentSchema;
12819
12920
  }
12820
12921
  });
12821
12922
  Object.defineProperty(exports, 'InputContentSourceSchema', {
12822
12923
  enumerable: true,
12823
12924
  get: function () {
12824
- return _ag_ui_client.InputContentSourceSchema;
12925
+ return _ag_ui_core_schemas.InputContentSourceSchema;
12825
12926
  }
12826
12927
  });
12827
12928
  Object.defineProperty(exports, 'InputContentUrlSourceSchema', {
12828
12929
  enumerable: true,
12829
12930
  get: function () {
12830
- return _ag_ui_client.InputContentUrlSourceSchema;
12931
+ return _ag_ui_core_schemas.InputContentUrlSourceSchema;
12831
12932
  }
12832
12933
  });
12833
12934
  Object.defineProperty(exports, 'IntelligenceAgent', {
@@ -12841,7 +12942,25 @@ exports.IntelligenceIndicatorView = IntelligenceIndicatorView;
12841
12942
  Object.defineProperty(exports, 'InterruptSchema', {
12842
12943
  enumerable: true,
12843
12944
  get: function () {
12844
- return _ag_ui_client.InterruptSchema;
12945
+ return _ag_ui_core_schemas.InterruptSchema;
12946
+ }
12947
+ });
12948
+ Object.defineProperty(exports, 'JsonPatchOperationSchema', {
12949
+ enumerable: true,
12950
+ get: function () {
12951
+ return _ag_ui_core_schemas.JsonPatchOperationSchema;
12952
+ }
12953
+ });
12954
+ Object.defineProperty(exports, 'JsonPatchSchema', {
12955
+ enumerable: true,
12956
+ get: function () {
12957
+ return _ag_ui_core_schemas.JsonPatchSchema;
12958
+ }
12959
+ });
12960
+ Object.defineProperty(exports, 'JsonPointerSchema', {
12961
+ enumerable: true,
12962
+ get: function () {
12963
+ return _ag_ui_core_schemas.JsonPointerSchema;
12845
12964
  }
12846
12965
  });
12847
12966
  Object.defineProperty(exports, 'MCPAppsActivityContentSchema', {
@@ -12872,19 +12991,19 @@ Object.defineProperty(exports, 'MemoryError', {
12872
12991
  Object.defineProperty(exports, 'MessageSchema', {
12873
12992
  enumerable: true,
12874
12993
  get: function () {
12875
- return _ag_ui_client.MessageSchema;
12994
+ return _ag_ui_core_schemas.MessageSchema;
12876
12995
  }
12877
12996
  });
12878
12997
  Object.defineProperty(exports, 'MessagesSnapshotEventSchema', {
12879
12998
  enumerable: true,
12880
12999
  get: function () {
12881
- return _ag_ui_client.MessagesSnapshotEventSchema;
13000
+ return _ag_ui_core_schemas.MessagesSnapshotEventSchema;
12882
13001
  }
12883
13002
  });
12884
13003
  Object.defineProperty(exports, 'MetadataSchema', {
12885
13004
  enumerable: true,
12886
13005
  get: function () {
12887
- return _ag_ui_client.MetadataSchema;
13006
+ return _ag_ui_core_schemas.MetadataSchema;
12888
13007
  }
12889
13008
  });
12890
13009
  Object.defineProperty(exports, 'Middleware', {
@@ -12893,28 +13012,34 @@ Object.defineProperty(exports, 'Middleware', {
12893
13012
  return _ag_ui_client.Middleware;
12894
13013
  }
12895
13014
  });
13015
+ Object.defineProperty(exports, 'MoveOperationSchema', {
13016
+ enumerable: true,
13017
+ get: function () {
13018
+ return _ag_ui_core_schemas.MoveOperationSchema;
13019
+ }
13020
+ });
12896
13021
  Object.defineProperty(exports, 'MultiAgentCapabilitiesSchema', {
12897
13022
  enumerable: true,
12898
13023
  get: function () {
12899
- return _ag_ui_client.MultiAgentCapabilitiesSchema;
13024
+ return _ag_ui_core_schemas.MultiAgentCapabilitiesSchema;
12900
13025
  }
12901
13026
  });
12902
13027
  Object.defineProperty(exports, 'MultimodalCapabilitiesSchema', {
12903
13028
  enumerable: true,
12904
13029
  get: function () {
12905
- return _ag_ui_client.MultimodalCapabilitiesSchema;
13030
+ return _ag_ui_core_schemas.MultimodalCapabilitiesSchema;
12906
13031
  }
12907
13032
  });
12908
13033
  Object.defineProperty(exports, 'MultimodalInputCapabilitiesSchema', {
12909
13034
  enumerable: true,
12910
13035
  get: function () {
12911
- return _ag_ui_client.MultimodalInputCapabilitiesSchema;
13036
+ return _ag_ui_core_schemas.MultimodalInputCapabilitiesSchema;
12912
13037
  }
12913
13038
  });
12914
13039
  Object.defineProperty(exports, 'MultimodalOutputCapabilitiesSchema', {
12915
13040
  enumerable: true,
12916
13041
  get: function () {
12917
- return _ag_ui_client.MultimodalOutputCapabilitiesSchema;
13042
+ return _ag_ui_core_schemas.MultimodalOutputCapabilitiesSchema;
12918
13043
  }
12919
13044
  });
12920
13045
  exports.OpenGenerativeUIActivityRenderer = OpenGenerativeUIActivityRenderer;
@@ -12924,13 +13049,25 @@ exports.OpenGenerativeUIToolRenderer = OpenGenerativeUIToolRenderer;
12924
13049
  Object.defineProperty(exports, 'OptionalMetadataSchema', {
12925
13050
  enumerable: true,
12926
13051
  get: function () {
12927
- return _ag_ui_client.OptionalMetadataSchema;
13052
+ return _ag_ui_core_schemas.OptionalMetadataSchema;
12928
13053
  }
12929
13054
  });
12930
13055
  Object.defineProperty(exports, 'OutputCapabilitiesSchema', {
12931
13056
  enumerable: true,
12932
13057
  get: function () {
12933
- return _ag_ui_client.OutputCapabilitiesSchema;
13058
+ return _ag_ui_core_schemas.OutputCapabilitiesSchema;
13059
+ }
13060
+ });
13061
+ Object.defineProperty(exports, 'PROTOCOL_VERSION', {
13062
+ enumerable: true,
13063
+ get: function () {
13064
+ return _ag_ui_client.PROTOCOL_VERSION;
13065
+ }
13066
+ });
13067
+ Object.defineProperty(exports, 'PartSourceSchema', {
13068
+ enumerable: true,
13069
+ get: function () {
13070
+ return _ag_ui_core_schemas.PartSourceSchema;
12934
13071
  }
12935
13072
  });
12936
13073
  Object.defineProperty(exports, 'ProxiedCopilotRuntimeAgent', {
@@ -12942,115 +13079,133 @@ Object.defineProperty(exports, 'ProxiedCopilotRuntimeAgent', {
12942
13079
  Object.defineProperty(exports, 'RawEventSchema', {
12943
13080
  enumerable: true,
12944
13081
  get: function () {
12945
- return _ag_ui_client.RawEventSchema;
13082
+ return _ag_ui_core_schemas.RawEventSchema;
12946
13083
  }
12947
13084
  });
12948
13085
  Object.defineProperty(exports, 'ReasoningCapabilitiesSchema', {
12949
13086
  enumerable: true,
12950
13087
  get: function () {
12951
- return _ag_ui_client.ReasoningCapabilitiesSchema;
13088
+ return _ag_ui_core_schemas.ReasoningCapabilitiesSchema;
12952
13089
  }
12953
13090
  });
12954
13091
  Object.defineProperty(exports, 'ReasoningEncryptedValueEventSchema', {
12955
13092
  enumerable: true,
12956
13093
  get: function () {
12957
- return _ag_ui_client.ReasoningEncryptedValueEventSchema;
13094
+ return _ag_ui_core_schemas.ReasoningEncryptedValueEventSchema;
12958
13095
  }
12959
13096
  });
12960
13097
  Object.defineProperty(exports, 'ReasoningEncryptedValueSubtypeSchema', {
12961
13098
  enumerable: true,
12962
13099
  get: function () {
12963
- return _ag_ui_client.ReasoningEncryptedValueSubtypeSchema;
13100
+ return _ag_ui_core_schemas.ReasoningEncryptedValueSubtypeSchema;
12964
13101
  }
12965
13102
  });
12966
13103
  Object.defineProperty(exports, 'ReasoningEndEventSchema', {
12967
13104
  enumerable: true,
12968
13105
  get: function () {
12969
- return _ag_ui_client.ReasoningEndEventSchema;
13106
+ return _ag_ui_core_schemas.ReasoningEndEventSchema;
12970
13107
  }
12971
13108
  });
12972
13109
  Object.defineProperty(exports, 'ReasoningMessageChunkEventSchema', {
12973
13110
  enumerable: true,
12974
13111
  get: function () {
12975
- return _ag_ui_client.ReasoningMessageChunkEventSchema;
13112
+ return _ag_ui_core_schemas.ReasoningMessageChunkEventSchema;
12976
13113
  }
12977
13114
  });
12978
13115
  Object.defineProperty(exports, 'ReasoningMessageContentEventSchema', {
12979
13116
  enumerable: true,
12980
13117
  get: function () {
12981
- return _ag_ui_client.ReasoningMessageContentEventSchema;
13118
+ return _ag_ui_core_schemas.ReasoningMessageContentEventSchema;
12982
13119
  }
12983
13120
  });
12984
13121
  Object.defineProperty(exports, 'ReasoningMessageEndEventSchema', {
12985
13122
  enumerable: true,
12986
13123
  get: function () {
12987
- return _ag_ui_client.ReasoningMessageEndEventSchema;
13124
+ return _ag_ui_core_schemas.ReasoningMessageEndEventSchema;
12988
13125
  }
12989
13126
  });
12990
13127
  Object.defineProperty(exports, 'ReasoningMessageSchema', {
12991
13128
  enumerable: true,
12992
13129
  get: function () {
12993
- return _ag_ui_client.ReasoningMessageSchema;
13130
+ return _ag_ui_core_schemas.ReasoningMessageSchema;
12994
13131
  }
12995
13132
  });
12996
13133
  Object.defineProperty(exports, 'ReasoningMessageStartEventSchema', {
12997
13134
  enumerable: true,
12998
13135
  get: function () {
12999
- return _ag_ui_client.ReasoningMessageStartEventSchema;
13136
+ return _ag_ui_core_schemas.ReasoningMessageStartEventSchema;
13000
13137
  }
13001
13138
  });
13002
13139
  Object.defineProperty(exports, 'ReasoningStartEventSchema', {
13003
13140
  enumerable: true,
13004
13141
  get: function () {
13005
- return _ag_ui_client.ReasoningStartEventSchema;
13142
+ return _ag_ui_core_schemas.ReasoningStartEventSchema;
13143
+ }
13144
+ });
13145
+ Object.defineProperty(exports, 'RemoveOperationSchema', {
13146
+ enumerable: true,
13147
+ get: function () {
13148
+ return _ag_ui_core_schemas.RemoveOperationSchema;
13149
+ }
13150
+ });
13151
+ Object.defineProperty(exports, 'ReplaceOperationSchema', {
13152
+ enumerable: true,
13153
+ get: function () {
13154
+ return _ag_ui_core_schemas.ReplaceOperationSchema;
13006
13155
  }
13007
13156
  });
13008
13157
  Object.defineProperty(exports, 'ResumeEntrySchema', {
13009
13158
  enumerable: true,
13010
13159
  get: function () {
13011
- return _ag_ui_client.ResumeEntrySchema;
13160
+ return _ag_ui_core_schemas.ResumeEntrySchema;
13012
13161
  }
13013
13162
  });
13014
13163
  Object.defineProperty(exports, 'RoleSchema', {
13015
13164
  enumerable: true,
13016
13165
  get: function () {
13017
- return _ag_ui_client.RoleSchema;
13166
+ return _ag_ui_core_schemas.RoleSchema;
13018
13167
  }
13019
13168
  });
13020
13169
  Object.defineProperty(exports, 'RunAgentInputSchema', {
13021
13170
  enumerable: true,
13022
13171
  get: function () {
13023
- return _ag_ui_client.RunAgentInputSchema;
13172
+ return _ag_ui_core_schemas.RunAgentInputSchema;
13024
13173
  }
13025
13174
  });
13026
13175
  Object.defineProperty(exports, 'RunErrorEventSchema', {
13027
13176
  enumerable: true,
13028
13177
  get: function () {
13029
- return _ag_ui_client.RunErrorEventSchema;
13178
+ return _ag_ui_core_schemas.RunErrorEventSchema;
13179
+ }
13180
+ });
13181
+ Object.defineProperty(exports, 'RunFinishedCancelledOutcomeSchema', {
13182
+ enumerable: true,
13183
+ get: function () {
13184
+ return _ag_ui_core_schemas.RunFinishedCancelledOutcomeSchema;
13030
13185
  }
13031
13186
  });
13032
13187
  Object.defineProperty(exports, 'RunFinishedEventSchema', {
13033
13188
  enumerable: true,
13034
13189
  get: function () {
13035
- return _ag_ui_client.RunFinishedEventSchema;
13190
+ return _ag_ui_core_schemas.RunFinishedEventSchema;
13036
13191
  }
13037
13192
  });
13038
13193
  Object.defineProperty(exports, 'RunFinishedInterruptOutcomeSchema', {
13039
13194
  enumerable: true,
13040
13195
  get: function () {
13041
- return _ag_ui_client.RunFinishedInterruptOutcomeSchema;
13196
+ return _ag_ui_core_schemas.RunFinishedInterruptOutcomeSchema;
13042
13197
  }
13043
13198
  });
13044
13199
  Object.defineProperty(exports, 'RunFinishedOutcomeSchema', {
13045
13200
  enumerable: true,
13046
13201
  get: function () {
13047
- return _ag_ui_client.RunFinishedOutcomeSchema;
13202
+ return _ag_ui_core_schemas.RunFinishedOutcomeSchema;
13048
13203
  }
13049
13204
  });
13050
13205
  Object.defineProperty(exports, 'RunFinishedSuccessOutcomeSchema', {
13051
13206
  enumerable: true,
13052
13207
  get: function () {
13053
- return _ag_ui_client.RunFinishedSuccessOutcomeSchema;
13208
+ return _ag_ui_core_schemas.RunFinishedSuccessOutcomeSchema;
13054
13209
  }
13055
13210
  });
13056
13211
  Object.defineProperty(exports, 'RunHandler', {
@@ -13062,20 +13217,20 @@ Object.defineProperty(exports, 'RunHandler', {
13062
13217
  Object.defineProperty(exports, 'RunStartedEventSchema', {
13063
13218
  enumerable: true,
13064
13219
  get: function () {
13065
- return _ag_ui_client.RunStartedEventSchema;
13220
+ return _ag_ui_core_schemas.RunStartedEventSchema;
13066
13221
  }
13067
13222
  });
13068
13223
  exports.SandboxFunctionsContext = SandboxFunctionsContext;
13069
13224
  Object.defineProperty(exports, 'StateCapabilitiesSchema', {
13070
13225
  enumerable: true,
13071
13226
  get: function () {
13072
- return _ag_ui_client.StateCapabilitiesSchema;
13227
+ return _ag_ui_core_schemas.StateCapabilitiesSchema;
13073
13228
  }
13074
13229
  });
13075
13230
  Object.defineProperty(exports, 'StateDeltaEventSchema', {
13076
13231
  enumerable: true,
13077
13232
  get: function () {
13078
- return _ag_ui_client.StateDeltaEventSchema;
13233
+ return _ag_ui_core_schemas.StateDeltaEventSchema;
13079
13234
  }
13080
13235
  });
13081
13236
  Object.defineProperty(exports, 'StateManager', {
@@ -13087,181 +13242,175 @@ Object.defineProperty(exports, 'StateManager', {
13087
13242
  Object.defineProperty(exports, 'StateSchema', {
13088
13243
  enumerable: true,
13089
13244
  get: function () {
13090
- return _ag_ui_client.StateSchema;
13245
+ return _ag_ui_core_schemas.StateSchema;
13091
13246
  }
13092
13247
  });
13093
13248
  Object.defineProperty(exports, 'StateSnapshotEventSchema', {
13094
13249
  enumerable: true,
13095
13250
  get: function () {
13096
- return _ag_ui_client.StateSnapshotEventSchema;
13251
+ return _ag_ui_core_schemas.StateSnapshotEventSchema;
13097
13252
  }
13098
13253
  });
13099
13254
  Object.defineProperty(exports, 'StepFinishedEventSchema', {
13100
13255
  enumerable: true,
13101
13256
  get: function () {
13102
- return _ag_ui_client.StepFinishedEventSchema;
13257
+ return _ag_ui_core_schemas.StepFinishedEventSchema;
13103
13258
  }
13104
13259
  });
13105
13260
  Object.defineProperty(exports, 'StepStartedEventSchema', {
13106
13261
  enumerable: true,
13107
13262
  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;
13263
+ return _ag_ui_core_schemas.StepStartedEventSchema;
13115
13264
  }
13116
13265
  });
13117
13266
  Object.defineProperty(exports, 'SubagentErrorEventSchema', {
13118
13267
  enumerable: true,
13119
13268
  get: function () {
13120
- return _ag_ui_client.SubagentErrorEventSchema;
13269
+ return _ag_ui_core_schemas.SubagentErrorEventSchema;
13121
13270
  }
13122
13271
  });
13123
13272
  Object.defineProperty(exports, 'SubagentFinishedEventSchema', {
13124
13273
  enumerable: true,
13125
13274
  get: function () {
13126
- return _ag_ui_client.SubagentFinishedEventSchema;
13275
+ return _ag_ui_core_schemas.SubagentFinishedEventSchema;
13127
13276
  }
13128
13277
  });
13129
13278
  Object.defineProperty(exports, 'SubagentFinishedOutcomeSchema', {
13130
13279
  enumerable: true,
13131
13280
  get: function () {
13132
- return _ag_ui_client.SubagentFinishedOutcomeSchema;
13281
+ return _ag_ui_core_schemas.SubagentFinishedOutcomeSchema;
13133
13282
  }
13134
13283
  });
13135
13284
  Object.defineProperty(exports, 'SubagentFinishedSuccessOutcomeSchema', {
13136
13285
  enumerable: true,
13137
13286
  get: function () {
13138
- return _ag_ui_client.SubagentFinishedSuccessOutcomeSchema;
13287
+ return _ag_ui_core_schemas.SubagentFinishedSuccessOutcomeSchema;
13139
13288
  }
13140
13289
  });
13141
13290
  Object.defineProperty(exports, 'SubagentFinishedSuspendedOutcomeSchema', {
13142
13291
  enumerable: true,
13143
13292
  get: function () {
13144
- return _ag_ui_client.SubagentFinishedSuspendedOutcomeSchema;
13293
+ return _ag_ui_core_schemas.SubagentFinishedSuspendedOutcomeSchema;
13145
13294
  }
13146
13295
  });
13147
- Object.defineProperty(exports, 'SubagentStartedEventSchema', {
13296
+ Object.defineProperty(exports, 'SubagentInfoSchema', {
13148
13297
  enumerable: true,
13149
13298
  get: function () {
13150
- return _ag_ui_client.SubagentStartedEventSchema;
13299
+ return _ag_ui_core_schemas.SubagentInfoSchema;
13151
13300
  }
13152
13301
  });
13153
- Object.defineProperty(exports, 'SuggestionEngine', {
13302
+ Object.defineProperty(exports, 'SubagentRunIdSchema', {
13154
13303
  enumerable: true,
13155
13304
  get: function () {
13156
- return _copilotkit_core.SuggestionEngine;
13305
+ return _ag_ui_core_schemas.SubagentRunIdSchema;
13157
13306
  }
13158
13307
  });
13159
- Object.defineProperty(exports, 'SystemMessageSchema', {
13308
+ Object.defineProperty(exports, 'SubagentStartedEventSchema', {
13160
13309
  enumerable: true,
13161
13310
  get: function () {
13162
- return _ag_ui_client.SystemMessageSchema;
13311
+ return _ag_ui_core_schemas.SubagentStartedEventSchema;
13163
13312
  }
13164
13313
  });
13165
- Object.defineProperty(exports, 'TextInputContentSchema', {
13314
+ Object.defineProperty(exports, 'SuggestionEngine', {
13166
13315
  enumerable: true,
13167
13316
  get: function () {
13168
- return _ag_ui_client.TextInputContentSchema;
13317
+ return _copilotkit_core.SuggestionEngine;
13169
13318
  }
13170
13319
  });
13171
- Object.defineProperty(exports, 'TextMessageChunkEventSchema', {
13320
+ Object.defineProperty(exports, 'SystemMessageSchema', {
13172
13321
  enumerable: true,
13173
13322
  get: function () {
13174
- return _ag_ui_client.TextMessageChunkEventSchema;
13323
+ return _ag_ui_core_schemas.SystemMessageSchema;
13175
13324
  }
13176
13325
  });
13177
- Object.defineProperty(exports, 'TextMessageContentEventSchema', {
13326
+ Object.defineProperty(exports, 'TestOperationSchema', {
13178
13327
  enumerable: true,
13179
13328
  get: function () {
13180
- return _ag_ui_client.TextMessageContentEventSchema;
13329
+ return _ag_ui_core_schemas.TestOperationSchema;
13181
13330
  }
13182
13331
  });
13183
- Object.defineProperty(exports, 'TextMessageEndEventSchema', {
13332
+ Object.defineProperty(exports, 'TextInputContentSchema', {
13184
13333
  enumerable: true,
13185
13334
  get: function () {
13186
- return _ag_ui_client.TextMessageEndEventSchema;
13335
+ return _ag_ui_core_schemas.TextInputContentSchema;
13187
13336
  }
13188
13337
  });
13189
- Object.defineProperty(exports, 'TextMessageStartEventSchema', {
13338
+ Object.defineProperty(exports, 'TextMessageChunkEventSchema', {
13190
13339
  enumerable: true,
13191
13340
  get: function () {
13192
- return _ag_ui_client.TextMessageStartEventSchema;
13341
+ return _ag_ui_core_schemas.TextMessageChunkEventSchema;
13193
13342
  }
13194
13343
  });
13195
- Object.defineProperty(exports, 'ThinkingEndEventSchema', {
13344
+ Object.defineProperty(exports, 'TextMessageContentEventSchema', {
13196
13345
  enumerable: true,
13197
13346
  get: function () {
13198
- return _ag_ui_client.ThinkingEndEventSchema;
13347
+ return _ag_ui_core_schemas.TextMessageContentEventSchema;
13199
13348
  }
13200
13349
  });
13201
- Object.defineProperty(exports, 'ThinkingStartEventSchema', {
13350
+ Object.defineProperty(exports, 'TextMessageEndEventSchema', {
13202
13351
  enumerable: true,
13203
13352
  get: function () {
13204
- return _ag_ui_client.ThinkingStartEventSchema;
13353
+ return _ag_ui_core_schemas.TextMessageEndEventSchema;
13205
13354
  }
13206
13355
  });
13207
- Object.defineProperty(exports, 'ThinkingTextMessageContentEventSchema', {
13356
+ Object.defineProperty(exports, 'TextMessageRoleSchema', {
13208
13357
  enumerable: true,
13209
13358
  get: function () {
13210
- return _ag_ui_client.ThinkingTextMessageContentEventSchema;
13359
+ return _ag_ui_core_schemas.TextMessageRoleSchema;
13211
13360
  }
13212
13361
  });
13213
- Object.defineProperty(exports, 'ThinkingTextMessageEndEventSchema', {
13362
+ Object.defineProperty(exports, 'TextMessageStartEventSchema', {
13214
13363
  enumerable: true,
13215
13364
  get: function () {
13216
- return _ag_ui_client.ThinkingTextMessageEndEventSchema;
13365
+ return _ag_ui_core_schemas.TextMessageStartEventSchema;
13217
13366
  }
13218
13367
  });
13219
- Object.defineProperty(exports, 'ThinkingTextMessageStartEventSchema', {
13368
+ Object.defineProperty(exports, 'TextPartSchema', {
13220
13369
  enumerable: true,
13221
13370
  get: function () {
13222
- return _ag_ui_client.ThinkingTextMessageStartEventSchema;
13371
+ return _ag_ui_core_schemas.TextPartSchema;
13223
13372
  }
13224
13373
  });
13225
13374
  Object.defineProperty(exports, 'TokenUsageSchema', {
13226
13375
  enumerable: true,
13227
13376
  get: function () {
13228
- return _ag_ui_client.TokenUsageSchema;
13377
+ return _ag_ui_core_schemas.TokenUsageSchema;
13229
13378
  }
13230
13379
  });
13231
13380
  Object.defineProperty(exports, 'ToolCallArgsEventSchema', {
13232
13381
  enumerable: true,
13233
13382
  get: function () {
13234
- return _ag_ui_client.ToolCallArgsEventSchema;
13383
+ return _ag_ui_core_schemas.ToolCallArgsEventSchema;
13235
13384
  }
13236
13385
  });
13237
13386
  Object.defineProperty(exports, 'ToolCallChunkEventSchema', {
13238
13387
  enumerable: true,
13239
13388
  get: function () {
13240
- return _ag_ui_client.ToolCallChunkEventSchema;
13389
+ return _ag_ui_core_schemas.ToolCallChunkEventSchema;
13241
13390
  }
13242
13391
  });
13243
13392
  Object.defineProperty(exports, 'ToolCallEndEventSchema', {
13244
13393
  enumerable: true,
13245
13394
  get: function () {
13246
- return _ag_ui_client.ToolCallEndEventSchema;
13395
+ return _ag_ui_core_schemas.ToolCallEndEventSchema;
13247
13396
  }
13248
13397
  });
13249
13398
  Object.defineProperty(exports, 'ToolCallResultEventSchema', {
13250
13399
  enumerable: true,
13251
13400
  get: function () {
13252
- return _ag_ui_client.ToolCallResultEventSchema;
13401
+ return _ag_ui_core_schemas.ToolCallResultEventSchema;
13253
13402
  }
13254
13403
  });
13255
13404
  Object.defineProperty(exports, 'ToolCallSchema', {
13256
13405
  enumerable: true,
13257
13406
  get: function () {
13258
- return _ag_ui_client.ToolCallSchema;
13407
+ return _ag_ui_core_schemas.ToolCallSchema;
13259
13408
  }
13260
13409
  });
13261
13410
  Object.defineProperty(exports, 'ToolCallStartEventSchema', {
13262
13411
  enumerable: true,
13263
13412
  get: function () {
13264
- return _ag_ui_client.ToolCallStartEventSchema;
13413
+ return _ag_ui_core_schemas.ToolCallStartEventSchema;
13265
13414
  }
13266
13415
  });
13267
13416
  Object.defineProperty(exports, 'ToolCallStatus', {
@@ -13273,44 +13422,56 @@ Object.defineProperty(exports, 'ToolCallStatus', {
13273
13422
  Object.defineProperty(exports, 'ToolMessageSchema', {
13274
13423
  enumerable: true,
13275
13424
  get: function () {
13276
- return _ag_ui_client.ToolMessageSchema;
13425
+ return _ag_ui_core_schemas.ToolMessageSchema;
13277
13426
  }
13278
13427
  });
13279
13428
  Object.defineProperty(exports, 'ToolSchema', {
13280
13429
  enumerable: true,
13281
13430
  get: function () {
13282
- return _ag_ui_client.ToolSchema;
13431
+ return _ag_ui_core_schemas.ToolSchema;
13283
13432
  }
13284
13433
  });
13285
13434
  Object.defineProperty(exports, 'ToolsCapabilitiesSchema', {
13286
13435
  enumerable: true,
13287
13436
  get: function () {
13288
- return _ag_ui_client.ToolsCapabilitiesSchema;
13437
+ return _ag_ui_core_schemas.ToolsCapabilitiesSchema;
13289
13438
  }
13290
13439
  });
13291
13440
  Object.defineProperty(exports, 'TransportCapabilitiesSchema', {
13292
13441
  enumerable: true,
13293
13442
  get: function () {
13294
- return _ag_ui_client.TransportCapabilitiesSchema;
13443
+ return _ag_ui_core_schemas.TransportCapabilitiesSchema;
13444
+ }
13445
+ });
13446
+ Object.defineProperty(exports, 'UrlSourceSchema', {
13447
+ enumerable: true,
13448
+ get: function () {
13449
+ return _ag_ui_core_schemas.UrlSourceSchema;
13295
13450
  }
13296
13451
  });
13297
13452
  exports.UseAgentUpdate = UseAgentUpdate;
13298
13453
  Object.defineProperty(exports, 'UserMessageSchema', {
13299
13454
  enumerable: true,
13300
13455
  get: function () {
13301
- return _ag_ui_client.UserMessageSchema;
13456
+ return _ag_ui_core_schemas.UserMessageSchema;
13302
13457
  }
13303
13458
  });
13304
13459
  Object.defineProperty(exports, 'VideoInputContentSchema', {
13305
13460
  enumerable: true,
13306
13461
  get: function () {
13307
- return _ag_ui_client.VideoInputContentSchema;
13462
+ return _ag_ui_core_schemas.VideoInputContentSchema;
13308
13463
  }
13309
13464
  });
13310
13465
  Object.defineProperty(exports, 'VideoInputPartSchema', {
13311
13466
  enumerable: true,
13312
13467
  get: function () {
13313
- return _ag_ui_client.VideoInputPartSchema;
13468
+ return _ag_ui_core_schemas.VideoInputPartSchema;
13469
+ }
13470
+ });
13471
+ Object.defineProperty(exports, 'VideoPartSchema', {
13472
+ enumerable: true,
13473
+ get: function () {
13474
+ return _ag_ui_core_schemas.VideoPartSchema;
13314
13475
  }
13315
13476
  });
13316
13477
  Object.defineProperty(exports, 'WebMCPRegistry', {
@@ -13332,6 +13493,12 @@ Object.defineProperty(exports, 'aggregateTokenUsage', {
13332
13493
  return _ag_ui_client.aggregateTokenUsage;
13333
13494
  }
13334
13495
  });
13496
+ Object.defineProperty(exports, 'authoritativeActivityTypes', {
13497
+ enumerable: true,
13498
+ get: function () {
13499
+ return _ag_ui_client.authoritativeActivityTypes;
13500
+ }
13501
+ });
13335
13502
  Object.defineProperty(exports, 'buildResumeArray', {
13336
13503
  enumerable: true,
13337
13504
  get: function () {
@@ -13350,6 +13517,18 @@ Object.defineProperty(exports, 'completePartialMarkdown', {
13350
13517
  return _copilotkit_core.completePartialMarkdown;
13351
13518
  }
13352
13519
  });
13520
+ Object.defineProperty(exports, 'contentHasMedia', {
13521
+ enumerable: true,
13522
+ get: function () {
13523
+ return _ag_ui_client.contentHasMedia;
13524
+ }
13525
+ });
13526
+ Object.defineProperty(exports, 'contentToText', {
13527
+ enumerable: true,
13528
+ get: function () {
13529
+ return _ag_ui_client.contentToText;
13530
+ }
13531
+ });
13353
13532
  Object.defineProperty(exports, 'convertToLegacyEvents', {
13354
13533
  enumerable: true,
13355
13534
  get: function () {
@@ -13436,6 +13615,18 @@ Object.defineProperty(exports, 'empty', {
13436
13615
  return _copilotkit_core.empty;
13437
13616
  }
13438
13617
  });
13618
+ Object.defineProperty(exports, 'enforceEvents', {
13619
+ enumerable: true,
13620
+ get: function () {
13621
+ return _ag_ui_client.enforceEvents;
13622
+ }
13623
+ });
13624
+ Object.defineProperty(exports, 'enforceOutgoingInput', {
13625
+ enumerable: true,
13626
+ get: function () {
13627
+ return _ag_ui_client.enforceOutgoingInput;
13628
+ }
13629
+ });
13439
13630
  Object.defineProperty(exports, 'ensureObjectArgs', {
13440
13631
  enumerable: true,
13441
13632
  get: function () {
@@ -13473,6 +13664,12 @@ Object.defineProperty(exports, 'isInterruptExpired', {
13473
13664
  return _ag_ui_client.isInterruptExpired;
13474
13665
  }
13475
13666
  });
13667
+ Object.defineProperty(exports, 'isRecognizedEvent', {
13668
+ enumerable: true,
13669
+ get: function () {
13670
+ return _ag_ui_client.isRecognizedEvent;
13671
+ }
13672
+ });
13476
13673
  Object.defineProperty(exports, 'isRunCompletionAware', {
13477
13674
  enumerable: true,
13478
13675
  get: function () {
@@ -13491,6 +13688,12 @@ Object.defineProperty(exports, 'ofType', {
13491
13688
  return _copilotkit_core.ofType;
13492
13689
  }
13493
13690
  });
13691
+ Object.defineProperty(exports, 'omitOptionalNulls', {
13692
+ enumerable: true,
13693
+ get: function () {
13694
+ return _ag_ui_client.omitOptionalNulls;
13695
+ }
13696
+ });
13494
13697
  Object.defineProperty(exports, 'on', {
13495
13698
  enumerable: true,
13496
13699
  get: function () {
@@ -13637,6 +13840,12 @@ Object.defineProperty(exports, 'verifyEvents', {
13637
13840
  return _ag_ui_client.verifyEvents;
13638
13841
  }
13639
13842
  });
13843
+ Object.defineProperty(exports, 'withAuthoritativeActivityTypes', {
13844
+ enumerable: true,
13845
+ get: function () {
13846
+ return _ag_ui_client.withAuthoritativeActivityTypes;
13847
+ }
13848
+ });
13640
13849
  Object.defineProperty(exports, 'ɵCOPILOTKIT_FEATURES', {
13641
13850
  enumerable: true,
13642
13851
  get: function () {
@@ -13691,6 +13900,12 @@ Object.defineProperty(exports, 'ɵisCopilotKitFeature', {
13691
13900
  return _copilotkit_core.ɵisCopilotKitFeature;
13692
13901
  }
13693
13902
  });
13903
+ Object.defineProperty(exports, 'ɵisHttpAgent', {
13904
+ enumerable: true,
13905
+ get: function () {
13906
+ return _copilotkit_core.ɵisHttpAgent;
13907
+ }
13908
+ });
13694
13909
  Object.defineProperty(exports, 'ɵisRetryableMemoryStatus', {
13695
13910
  enumerable: true,
13696
13911
  get: function () {