@copilotkit/react-core 1.85.0 → 1.86.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 (70) hide show
  1. package/dist/MarkdownSurfaces-BCVdnDAk.cjs +161 -0
  2. package/dist/MarkdownSurfaces-BCVdnDAk.cjs.map +1 -0
  3. package/dist/MarkdownSurfaces-CjJduaJR.mjs +149 -0
  4. package/dist/MarkdownSurfaces-CjJduaJR.mjs.map +1 -0
  5. package/dist/{MarkdownSurfaces-3cGU5_0H.cjs → chat-BnsrQ0VS.cjs} +667 -320
  6. package/dist/chat-BnsrQ0VS.cjs.map +1 -0
  7. package/dist/{MarkdownSurfaces-D-W4f9Dy.mjs → chat-IWySXWXP.mjs} +647 -312
  8. package/dist/chat-IWySXWXP.mjs.map +1 -0
  9. package/dist/{copilotkit-D6mTCuNU.mjs → copilotkit-B1OLgEU8.mjs} +6 -354
  10. package/dist/copilotkit-B1OLgEU8.mjs.map +1 -0
  11. package/dist/{copilotkit-Dn4PbHJV.d.mts → copilotkit-C7G95NO-.d.mts} +4 -4
  12. package/dist/{copilotkit-Dn4PbHJV.d.mts.map → copilotkit-C7G95NO-.d.mts.map} +1 -1
  13. package/dist/{copilotkit-BpKHgURs.cjs → copilotkit-Ca0IcTZU.cjs} +79 -427
  14. package/dist/copilotkit-Ca0IcTZU.cjs.map +1 -0
  15. package/dist/{copilotkit-CuTAoQF2.d.cts → copilotkit-DwD7D6jJ.d.cts} +2 -2
  16. package/dist/{copilotkit-CuTAoQF2.d.cts.map → copilotkit-DwD7D6jJ.d.cts.map} +1 -1
  17. package/dist/hooks-DMSkcNOl.d.cts +89 -0
  18. package/dist/hooks-DMSkcNOl.d.cts.map +1 -0
  19. package/dist/hooks-EwGvqYsW.d.mts +89 -0
  20. package/dist/hooks-EwGvqYsW.d.mts.map +1 -0
  21. package/dist/index.cjs +8 -8
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +2 -2
  24. package/dist/index.d.mts +2 -2
  25. package/dist/index.mjs +2 -2
  26. package/dist/index.umd.js +645 -140
  27. package/dist/index.umd.js.map +1 -1
  28. package/dist/refs-DL7ITFFD.cjs +43 -0
  29. package/dist/refs-DL7ITFFD.cjs.map +1 -0
  30. package/dist/refs-DiZXJ63p.mjs +31 -0
  31. package/dist/refs-DiZXJ63p.mjs.map +1 -0
  32. package/dist/{runtime-context-Er5UIbZA.d.mts → runtime-context-B4fKyzo6.d.mts} +31 -9
  33. package/dist/runtime-context-B4fKyzo6.d.mts.map +1 -0
  34. package/dist/{runtime-context-DrVNUYLi.d.cts → runtime-context-Da7T5vy4.d.cts} +31 -9
  35. package/dist/runtime-context-Da7T5vy4.d.cts.map +1 -0
  36. package/dist/use-generative-ui-root-CaTyBFNR.cjs +390 -0
  37. package/dist/use-generative-ui-root-CaTyBFNR.cjs.map +1 -0
  38. package/dist/use-generative-ui-root-WI9ERMpo.mjs +385 -0
  39. package/dist/use-generative-ui-root-WI9ERMpo.mjs.map +1 -0
  40. package/dist/v2/generative-ui/native.cjs +66 -0
  41. package/dist/v2/generative-ui/native.cjs.map +1 -0
  42. package/dist/v2/generative-ui/native.d.cts +155 -0
  43. package/dist/v2/generative-ui/native.d.cts.map +1 -0
  44. package/dist/v2/generative-ui/native.d.mts +155 -0
  45. package/dist/v2/generative-ui/native.d.mts.map +1 -0
  46. package/dist/v2/generative-ui/native.mjs +24 -0
  47. package/dist/v2/generative-ui/native.mjs.map +1 -0
  48. package/dist/v2/generative-ui.cjs +45 -70
  49. package/dist/v2/generative-ui.cjs.map +1 -1
  50. package/dist/v2/generative-ui.d.cts +229 -308
  51. package/dist/v2/generative-ui.d.cts.map +1 -1
  52. package/dist/v2/generative-ui.d.mts +229 -308
  53. package/dist/v2/generative-ui.d.mts.map +1 -1
  54. package/dist/v2/generative-ui.mjs +4 -29
  55. package/dist/v2/generative-ui.mjs.map +1 -1
  56. package/dist/v2/headless.d.cts +185 -294
  57. package/dist/v2/headless.d.cts.map +1 -1
  58. package/dist/v2/index.cjs +5 -5
  59. package/dist/v2/index.d.cts +2 -2
  60. package/dist/v2/index.d.mts +2 -2
  61. package/dist/v2/index.mjs +2 -2
  62. package/dist/v2/index.umd.js +645 -140
  63. package/dist/v2/index.umd.js.map +1 -1
  64. package/package.json +14 -10
  65. package/dist/MarkdownSurfaces-3cGU5_0H.cjs.map +0 -1
  66. package/dist/MarkdownSurfaces-D-W4f9Dy.mjs.map +0 -1
  67. package/dist/copilotkit-BpKHgURs.cjs.map +0 -1
  68. package/dist/copilotkit-D6mTCuNU.mjs.map +0 -1
  69. package/dist/runtime-context-DrVNUYLi.d.cts.map +0 -1
  70. package/dist/runtime-context-Er5UIbZA.d.mts.map +0 -1
@@ -1,4 +1,6 @@
1
- import { C as ControlledModalOpenScope, D as shallowEqual, E as useCopilotChatConfiguration, O as useShallowStableRef, S as useKatexStyles, T as CopilotChatDefaultLabels, _ as useGenerativeUIRuntime, a as createGenerativeUIActivityRenderer, g as GenerativeUIRuntimeContext, i as GenerativeUIToolCallRenderer, o as createGenerativeUIFunctionCallActivityRenderer, r as GenerativeUIChatSlotContext, t as MarkdownSurfaces, w as CopilotChatConfigurationProvider, x as defineToolCallRenderer, y as catalogIdsOf } from "./MarkdownSurfaces-D-W4f9Dy.mjs";
1
+ import { A as useCopilotChatConfiguration, C as GenerativeUIRuntimeContext, D as ControlledModalOpenScope, E as defineToolCallRenderer, M as useShallowStableRef, O as CopilotChatConfigurationProvider, a as createGenerativeUIFunctionCallActivityRenderer, i as createGenerativeUIActivityRenderer, j as shallowEqual, k as CopilotChatDefaultLabels, n as GenerativeUIChatSlotContext, r as GenerativeUIToolCallRenderer, w as useGenerativeUIRuntime } from "./chat-IWySXWXP.mjs";
2
+ import { n as useKatexStyles, t as MarkdownSurfaces } from "./MarkdownSurfaces-CjJduaJR.mjs";
3
+ import { t as useGenerativeUIRoot } from "./use-generative-ui-root-WI9ERMpo.mjs";
2
4
  import * as React$1 from "react";
3
5
  import React, { Fragment, createContext, createElement, forwardRef, memo, useCallback, useContext, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
4
6
  import { A2UI_FENCE_LANGUAGE, AgentRegistry, AgentThreadLockedError, ContextStore, CopilotKitCore, CopilotKitCore as CopilotKitCore$1, CopilotKitCoreErrorCode, CopilotKitCoreErrorCode as CopilotKitCoreErrorCode$1, CopilotKitCoreRuntimeConnectionStatus, CopilotKitCoreRuntimeConnectionStatus as CopilotKitCoreRuntimeConnectionStatus$1, CopilotKitHeaderResolutionError, INSPECTOR_THREAD_BRIDGE_PLUGIN_ID, IntelligenceAgent, MEMORY_ERROR_REGISTRY, MemoryError, ProxiedCopilotRuntimeAgent, ProxiedCopilotRuntimeAgent as ProxiedCopilotRuntimeAgent$1, RunHandler, StateManager, SuggestionEngine, ToolCallStatus, ToolCallStatus as ToolCallStatus$1, WebMCPRegistry, classifySurfaceCards, completePartialMarkdown, createActionGroup, createEffect, createInspectorThreadRequestId, createReducer, createSelector, createStore, emitInspectorActiveThread, emitInspectorActiveThread as emitInspectorActiveThread$1, emitInspectorStopViewing, emitInspectorViewThread, emitInspectorViewThreadResult, emitInspectorViewThreadResult as emitInspectorViewThreadResult$1, empty, ensureObjectArgs, extractCompleteArrayItems, extractFenceOperations, extractStringField, flattenInformationalCards, getMarkdownOperationSurfaceId, getWebMCPModelContext, isAbortError, isInspectorThreadBridgeEnabled, isInspectorThreadBridgeEnabled as isInspectorThreadBridgeEnabled$1, isRunCompletionAware, isRunCompletionAware as isRunCompletionAware$1, ofType, on, onInspectorActiveThread, onInspectorStopViewing, onInspectorStopViewing as onInspectorStopViewing$1, onInspectorViewThread, onInspectorViewThread as onInspectorViewThread$1, onInspectorViewThreadResult, parseToolArguments, prepareSurfaceOperations, props, segmentSurfaceProse, select, splitA2UIMarkdown as splitA2UIMarkdown$1, ɵCOPILOTKIT_FEATURES, ɵInterruptState, ɵInterruptState as ɵInterruptState$1, ɵMAX_SOCKET_RETRIES, ɵRUNTIME_PROBE_TIMEOUT_MS, ɵTHREAD_REQUEST_TIMEOUT_MS, ɵclearAgentInterruptState, ɵclearAgentInterruptState as ɵclearAgentInterruptState$1, ɵcreateMemoryStore, ɵcreateThreadSelectors, ɵcreateThreadStore, ɵcreateThreadStore as ɵcreateThreadStore$1, ɵgetAgentInterruptState, ɵgetAgentInterruptState as ɵgetAgentInterruptState$1, ɵisCopilotKitFeature, ɵisHttpAgent, ɵisHttpAgent as ɵisHttpAgent$1, ɵisRetryableMemoryStatus, ɵjoinPhoenixChannel$, ɵmapMemoryMetadataEvent, ɵmemoryAdapterEvents, ɵmemoryDomainEvents, ɵmemoryReducer, ɵmemoryRestEvents, ɵobservePhoenixEvent$, ɵobservePhoenixJoinOutcome$, ɵobservePhoenixSocketHealth$, ɵobservePhoenixSocketSignals$, ɵphoenixChannel$, ɵphoenixSocket$, ɵselectFetchMoreError, ɵselectFetchMoreError as ɵselectFetchMoreError$1, ɵselectHasNextPage, ɵselectHasNextPage as ɵselectHasNextPage$1, ɵselectIsFetchingNextPage, ɵselectIsFetchingNextPage as ɵselectIsFetchingNextPage$1, ɵselectIsMutating, ɵselectIsMutating as ɵselectIsMutating$1, ɵselectMemories, ɵselectMemories as ɵselectMemories$1, ɵselectMemoriesAvailable, ɵselectMemoriesAvailable as ɵselectMemoriesAvailable$1, ɵselectMemoriesError, ɵselectMemoriesError as ɵselectMemoriesError$1, ɵselectMemoriesIsLoading, ɵselectMemoriesIsLoading as ɵselectMemoriesIsLoading$1, ɵselectMemoriesIsMutating, ɵselectMemoriesRealtimeStatus, ɵselectMemoriesRealtimeStatus as ɵselectMemoriesRealtimeStatus$1, ɵselectThreads, ɵselectThreads as ɵselectThreads$1, ɵselectThreadsError, ɵselectThreadsError as ɵselectThreadsError$1, ɵselectThreadsIsLoading, ɵselectThreadsIsLoading as ɵselectThreadsIsLoading$1, ɵthreadAdapterEvents, ɵwithHeaderDefaults, ɵwithHeaderDefaults as ɵwithHeaderDefaults$1 } from "@copilotkit/core";
@@ -6,7 +8,7 @@ import { ACTIVITY_HISTORY_METADATA, AGUIConnectNotImplementedError as AGUIConnec
6
8
  import { ActivityDeltaEventSchema, ActivityMessageSchema, ActivitySnapshotEventSchema, AddOperationSchema, AgentCapabilitiesSchema, AssistantMessageSchema, AttributableSchema, AudioInputContentSchema, AudioInputPartSchema, AudioPartSchema, BaseEventSchema, BaseMessageSchema, ContentPartSchema, ContextSchema, CopyOperationSchema, CustomEventSchema, DataSourceSchema, DeveloperMessageSchema, DocumentInputContentSchema, DocumentInputPartSchema, DocumentPartSchema, EventSchema, EventSchemas, EventTypeSchema, ExecutionCapabilitiesSchema, FileSourceSchema, FunctionCallSchema, HumanInTheLoopCapabilitiesSchema, IdentityCapabilitiesSchema, ImageInputContentSchema, ImageInputPartSchema, ImagePartSchema, InputContentDataSourceSchema, InputContentSchema, InputContentSourceSchema, InputContentUrlSourceSchema, InterruptSchema, JsonPatchOperationSchema, JsonPatchSchema, JsonPointerSchema, MessageSchema, MessagesSnapshotEventSchema, MetadataSchema, MoveOperationSchema, MultiAgentCapabilitiesSchema, MultimodalCapabilitiesSchema, MultimodalInputCapabilitiesSchema, MultimodalOutputCapabilitiesSchema, OptionalMetadataSchema, OutputCapabilitiesSchema, PartSourceSchema, RawEventSchema, ReasoningCapabilitiesSchema, ReasoningEncryptedValueEventSchema, ReasoningEncryptedValueSubtypeSchema, ReasoningEndEventSchema, ReasoningMessageChunkEventSchema, ReasoningMessageContentEventSchema, ReasoningMessageEndEventSchema, ReasoningMessageSchema, ReasoningMessageStartEventSchema, ReasoningStartEventSchema, RemoveOperationSchema, ReplaceOperationSchema, ResumeEntrySchema, RoleSchema, RunAgentInputSchema, RunErrorEventSchema, RunFinishedCancelledOutcomeSchema, RunFinishedEventSchema, RunFinishedInterruptOutcomeSchema, RunFinishedOutcomeSchema, RunFinishedSuccessOutcomeSchema, RunStartedEventSchema, StateCapabilitiesSchema, StateDeltaEventSchema, StateSchema, StateSnapshotEventSchema, StepFinishedEventSchema, StepStartedEventSchema, SubagentErrorEventSchema, SubagentFinishedEventSchema, SubagentFinishedOutcomeSchema, SubagentFinishedSuccessOutcomeSchema, SubagentFinishedSuspendedOutcomeSchema, SubagentInfoSchema, SubagentRunIdSchema, SubagentStartedEventSchema, SystemMessageSchema, TestOperationSchema, TextInputContentSchema, TextMessageChunkEventSchema, TextMessageContentEventSchema, TextMessageEndEventSchema, TextMessageRoleSchema, TextMessageStartEventSchema, TextPartSchema, TokenUsageSchema, ToolCallArgsEventSchema, ToolCallChunkEventSchema, ToolCallEndEventSchema, ToolCallResultEventSchema, ToolCallSchema, ToolCallStartEventSchema, ToolMessageSchema, ToolSchema, ToolsCapabilitiesSchema, TransportCapabilitiesSchema, UrlSourceSchema, UserMessageSchema, VideoInputContentSchema, VideoInputPartSchema, VideoPartSchema } from "@ag-ui/core/schemas";
7
9
  import { extendTailwindMerge, twMerge } from "tailwind-merge";
8
10
  import { ArrowUp, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronRightIcon, Circle, Copy, Edit, EyeOff, Loader2, MessageCircle, Mic, PanelLeftOpen, Play, Plus, RefreshCw, Square, ThumbsDown, ThumbsUp, Upload, Volume2, Wrench, X } from "lucide-react";
9
- import { A2UI_DEFAULT_DESIGN_GUIDELINES, A2UI_DEFAULT_GENERATION_GUIDELINES, COPILOTKIT_FORWARDED_PROPS_KEY, COPILOT_CLOUD_API_URL, COPILOT_CLOUD_CHAT_URL, COPILOT_CLOUD_PUBLIC_API_KEY_HEADER, ConfigurationError, CopilotKitAgentDiscoveryError, CopilotKitApiDiscoveryError, CopilotKitError, CopilotKitErrorCode, CopilotKitLowLevelError, CopilotKitRemoteEndpointDiscoveryError, DEFAULT_AGENT_ID, ErrorVisibility, GENERATE_SANDBOXED_UI_DESCRIPTION, GENERATIVE_UI_ACTIVITY_TYPE, GENERATIVE_UI_MARKDOWN_GUIDELINES_DESCRIPTION, GENERATIVE_UI_MARKDOWN_SCHEMA_CONTEXT_DESCRIPTION, MissingPublicApiKeyError, Severity, TranscriptionErrorCode, TranscriptionErrorCode as TranscriptionErrorCode$1, buildGenerativeUIMarkdownGuidelines, commitRowKeyStore, copyToClipboard, createAttachmentContent, createLicenseContextValue, createRowKeyStore, dataToUUID, defaultGenerativeUIPromptSpec, exceedsMaxSize, formatFileSize, generateVideoThumbnail, generativeUIGuideFeatures, getDocumentIcon, getModalityFromMimeType, getSourceUrl, matchesAcceptFilter, parseJson, partialJSONParse, randomId, randomUUID as randomUUID$1, readFileAsBase64, renderGenerativeUISchema, resolveRowRenderKeysById, schemaToJsonSchema, shouldEnableInspector, toA2UIActionMessage } from "@copilotkit/shared";
11
+ import { A2UI_DEFAULT_DESIGN_GUIDELINES, A2UI_DEFAULT_GENERATION_GUIDELINES, COPILOT_CLOUD_API_URL, COPILOT_CLOUD_CHAT_URL, COPILOT_CLOUD_PUBLIC_API_KEY_HEADER, ConfigurationError, CopilotKitAgentDiscoveryError, CopilotKitApiDiscoveryError, CopilotKitError, CopilotKitErrorCode, CopilotKitLowLevelError, CopilotKitRemoteEndpointDiscoveryError, DEFAULT_AGENT_ID, ErrorVisibility, GENERATE_SANDBOXED_UI_DESCRIPTION, MissingPublicApiKeyError, Severity, TranscriptionErrorCode, TranscriptionErrorCode as TranscriptionErrorCode$1, commitRowKeyStore, copyToClipboard, createAttachmentContent, createLicenseContextValue, createRowKeyStore, dataToUUID, exceedsMaxSize, formatFileSize, generateVideoThumbnail, getDocumentIcon, getModalityFromMimeType, getSourceUrl, matchesAcceptFilter, parseJson, partialJSONParse, randomId, randomUUID as randomUUID$1, readFileAsBase64, resolveRowRenderKeysById, schemaToJsonSchema, shouldEnableInspector } from "@copilotkit/shared";
10
12
  import { CopilotKitAgentIdContext, CopilotKitContext, LicenseContext, useCopilotKit, useCopilotKit as useCopilotKit$1, useDefaultAgentId, useLicenseContext, useLicenseContext as useLicenseContext$1 } from "@copilotkit/react-core/v2/context";
11
13
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
12
14
  import { Slot } from "@radix-ui/react-slot";
@@ -19,8 +21,6 @@ import { contentToText } from "@ag-ui/core";
19
21
  import { z } from "zod";
20
22
  import { MCPAppsActivityContentSchema, MCPAppsActivityType, ɵrunMcpFollowUp } from "@copilotkit/mcp-apps-renderer/activity";
21
23
  import { A2UIProvider, A2UIRenderer, A2UI_SCHEMA_CONTEXT_DESCRIPTION, Catalog, DEFAULT_SURFACE_ID, ROOT_COMPONENT_ID, buildCatalogContextValue, extractCatalogComponentSchemas, filterCatalog, initializeDefaultCatalog, injectStyles, useA2UIActions, useA2UIError, viewerTheme } from "@copilotkit/a2ui-renderer";
22
- import { GenerativeUISurfaceManager, activityFunctionCalls, buildActionMessageText, buildGenerativeUIEnvelope, buildGenerativeUIManifest, createFunctionCallRunner, createGenerativeUIDebugSource, createGenerativeUIDispatcher, describeGenerativeUIRun, envelopeOptionsFor, getMarkdownSurfaceSource, markdownFunctionCalls, surfaceLabelResolver } from "@copilotkit/core/generative-ui";
23
- import { GenerativeUIError } from "@copilotkit/shared/generative-ui";
24
24
  import { zodToJsonSchema } from "zod-to-json-schema";
25
25
  import * as PopoverPrimitive from "@radix-ui/react-popover";
26
26
  import { createPortal, flushSync } from "react-dom";
@@ -1323,7 +1323,7 @@ function useRenderToolCall() {
1323
1323
 
1324
1324
  //#endregion
1325
1325
  //#region package.json
1326
- var version = "1.85.0";
1326
+ var version = "1.86.0";
1327
1327
 
1328
1328
  //#endregion
1329
1329
  //#region src/v2/components/CopilotKitInspector.tsx
@@ -2976,354 +2976,6 @@ function A2UICatalogContext({ catalog, includeSchema }) {
2976
2976
  return null;
2977
2977
  }
2978
2978
 
2979
- //#endregion
2980
- //#region src/v2/generative-ui/markdown/context.ts
2981
- /**
2982
- * Registers the two context entries of the markdown transport: the compact
2983
- * component schema and the fence guideline. Both go only to `agentIds`.
2984
- *
2985
- * The schema is built again at each run start and when a
2986
- * `<GenerativeUISurface>` mounts, unmounts, or changes its description or
2987
- * its components, so its targets, functions, and surfaces stay current. The surfaces are those of the running thread.
2988
- *
2989
- * @param copilotkit - The CopilotKit core of the provider.
2990
- * @param runtime - The generative UI runtime parts, or null without one.
2991
- * @param options - `enabled` and `agentIds`.
2992
- *
2993
- * @example
2994
- * ```ts
2995
- * useGenerativeUIMarkdownContext(copilotkit, core, {
2996
- * enabled: config?.transport === "markdown" && config.sendContext !== false,
2997
- * agentIds: config?.agentIds,
2998
- * });
2999
- * ```
3000
- */
3001
- function useGenerativeUIMarkdownContext(copilotkit, runtime, options) {
3002
- const { enabled, agentIds } = options;
3003
- const agentIdsKey = agentIds === void 0 ? "" : JSON.stringify(agentIds);
3004
- useEffect(() => {
3005
- if (!runtime || !enabled) return;
3006
- const scopedAgentIds = agentIdsKey ? JSON.parse(agentIdsKey) : void 0;
3007
- const scope = scopedAgentIds ? { agentIds: scopedAgentIds } : {};
3008
- let guidelineId;
3009
- let guidelineValue;
3010
- let schemaId;
3011
- let schemaValue;
3012
- const refreshSchema = (threadId) => {
3013
- const manifest = buildGenerativeUIManifest(runtime, threadId);
3014
- const guideline = buildGenerativeUIMarkdownGuidelines(generativeUIGuideFeatures(manifest));
3015
- if (guideline !== guidelineValue) {
3016
- if (guidelineId !== void 0) copilotkit.removeContext(guidelineId);
3017
- guidelineValue = guideline;
3018
- guidelineId = copilotkit.addContext({
3019
- description: GENERATIVE_UI_MARKDOWN_GUIDELINES_DESCRIPTION,
3020
- value: guideline,
3021
- ...scope
3022
- });
3023
- }
3024
- const value = renderGenerativeUISchema(manifest, defaultGenerativeUIPromptSpec().schema.markdown);
3025
- if (value === schemaValue) return;
3026
- if (schemaId !== void 0) copilotkit.removeContext(schemaId);
3027
- schemaValue = value;
3028
- schemaId = copilotkit.addContext({
3029
- description: GENERATIVE_UI_MARKDOWN_SCHEMA_CONTEXT_DESCRIPTION,
3030
- value,
3031
- ...scope
3032
- });
3033
- };
3034
- refreshSchema(runtime.manager.getActiveThread());
3035
- let targetsKey = JSON.stringify(runtime.manager.getMountedTargets());
3036
- const unsubscribeManager = runtime.manager.subscribe(() => {
3037
- const nextKey = JSON.stringify(runtime.manager.getMountedTargets());
3038
- if (nextKey === targetsKey) return;
3039
- targetsKey = nextKey;
3040
- refreshSchema(runtime.manager.getActiveThread());
3041
- });
3042
- const subscription = copilotkit.subscribe({ onAgentRunStarted: ({ agent }) => refreshSchema(agent.threadId) });
3043
- return () => {
3044
- subscription.unsubscribe();
3045
- unsubscribeManager();
3046
- if (guidelineId !== void 0) copilotkit.removeContext(guidelineId);
3047
- if (schemaId !== void 0) copilotkit.removeContext(schemaId);
3048
- };
3049
- }, [
3050
- copilotkit,
3051
- runtime,
3052
- enabled,
3053
- agentIdsKey
3054
- ]);
3055
- }
3056
-
3057
- //#endregion
3058
- //#region src/v2/generative-ui/use-generative-ui-root.ts
3059
- const isDevelopment = () => process.env.NODE_ENV !== "production";
3060
- function ingestMessages(manager, agent, messages) {
3061
- if (!agent.threadId) return;
3062
- for (const message of messages) if (message.role === "activity" && message.activityType === GENERATIVE_UI_ACTIVITY_TYPE) manager.ingest(agent.threadId, agent.agentId, message.content);
3063
- }
3064
- /** Provider-side wiring: manager, dispatcher, agent subscriptions, envelope. */
3065
- function useGenerativeUIRoot(copilotkit, config) {
3066
- const configRef = useRef(config);
3067
- configRef.current = config;
3068
- const ui = config?.ui;
3069
- const transport = config?.transport ?? "tool";
3070
- const theme = useShallowStableRef(config?.theme);
3071
- const core = useMemo(() => {
3072
- if (!ui) return null;
3073
- const reportError = (info) => {
3074
- try {
3075
- configRef.current?.errorBoundary?.onError?.(info);
3076
- } catch (hostError) {
3077
- if (isDevelopment()) console.error("[generativeUI] errorBoundary.onError threw:", hostError);
3078
- }
3079
- if (isDevelopment()) console.warn(`[generativeUI] ${info.kind} error in ${info.surfaceId}${info.componentId ? `/${info.componentId}` : ""}: ${info.error?.message}`);
3080
- };
3081
- const manager = new GenerativeUISurfaceManager(ui, { onOperationRejected: ({ surfaceId, index, reason }) => reportError({
3082
- kind: "operation",
3083
- surfaceId,
3084
- error: /* @__PURE__ */ new Error(`operation ${index} rejected: ${reason}`)
3085
- }) });
3086
- const dispatcher = createGenerativeUIDispatcher({
3087
- getDeclared: () => ui.functions,
3088
- onError: ({ name, origin, error }) => {
3089
- if ("functionCallId" in origin) {
3090
- if (isDevelopment()) console.warn(`[generativeUI] function call ${origin.functionCallId} to "${name}" failed: ${error.message}`);
3091
- return;
3092
- }
3093
- reportError({
3094
- kind: "function",
3095
- ...origin,
3096
- error
3097
- });
3098
- }
3099
- });
3100
- const functionCalls = createFunctionCallRunner({
3101
- core: copilotkit,
3102
- dispatcher,
3103
- manifest: {
3104
- catalogId: ui.id,
3105
- catalogIds: catalogIdsOf(ui),
3106
- components: ui.manifestComponents
3107
- },
3108
- settle: () => copilotkit.waitForPendingFrameworkUpdates(),
3109
- warn: (message, error) => {
3110
- if (isDevelopment()) console.warn(message, error);
3111
- }
3112
- });
3113
- const forwardingAgents = /* @__PURE__ */ new Set();
3114
- /**
3115
- * The action of a user event, as an envelope entry scoped to the agent
3116
- * the user acted on, for the run that the event starts: the structured
3117
- * form of the user message. It is set before the run starts and dropped
3118
- * when the run is over, so a suggestion request or a follow-up run
3119
- * (both read the properties with no run start) does not carry the same
3120
- * action again, and another agent never gets a click meant for this one.
3121
- * The entry comes after the shared envelope, so it wins for its agent;
3122
- * `refreshActions` keeps it last when the shared envelope is set again.
3123
- */
3124
- const actions = /* @__PURE__ */ new Map();
3125
- const dropAction = (agent) => {
3126
- const entry = actions.get(agent);
3127
- if (!entry) return;
3128
- entry.subscription.unsubscribe();
3129
- copilotkit.removeScopedProperties(entry.id);
3130
- actions.delete(agent);
3131
- };
3132
- const setAction = (agent, action) => {
3133
- const previous = actions.get(agent);
3134
- previous?.subscription.unsubscribe();
3135
- if (previous) copilotkit.removeScopedProperties(previous.id);
3136
- actions.delete(agent);
3137
- const latest = configRef.current;
3138
- if (!latest) return;
3139
- const envelope = buildGenerativeUIEnvelope({
3140
- ui,
3141
- manager,
3142
- dispatcher
3143
- }, agent.threadId, {
3144
- ...envelopeOptionsFor(latest),
3145
- action
3146
- });
3147
- const id = copilotkit.addScopedProperties({
3148
- properties: { [COPILOTKIT_FORWARDED_PROPS_KEY]: { ui: envelope } },
3149
- agentIds: agent.agentId === void 0 ? latest.agentIds : [agent.agentId]
3150
- });
3151
- const subscription = agent.subscribe({
3152
- onRunFinalized: () => dropAction(agent),
3153
- onRunFailed: () => dropAction(agent)
3154
- });
3155
- actions.set(agent, {
3156
- id,
3157
- action,
3158
- subscription
3159
- });
3160
- };
3161
- const refreshActions = () => {
3162
- for (const [agent, { action }] of [...actions]) setAction(agent, action);
3163
- };
3164
- const dropAllActions = () => {
3165
- for (const agent of [...actions.keys()]) dropAction(agent);
3166
- };
3167
- const forwardEvent = async (event, agentId) => {
3168
- const fail = (message) => {
3169
- const error = new GenerativeUIError("event_forward_failed", message);
3170
- reportError({
3171
- kind: "event",
3172
- surfaceId: event.surfaceId,
3173
- componentId: event.componentId,
3174
- error
3175
- });
3176
- return {
3177
- ok: false,
3178
- error
3179
- };
3180
- };
3181
- const agent = copilotkit.getAgent(agentId ?? DEFAULT_AGENT_ID);
3182
- if (!agent) return fail(`No agent "${agentId}" to receive "${event.name}"`);
3183
- if (agent.isRunning || forwardingAgents.has(agent)) return {
3184
- ok: false,
3185
- error: new GenerativeUIError("agent_busy", `"${event.name}" was not sent: the agent is running`)
3186
- };
3187
- forwardingAgents.add(agent);
3188
- try {
3189
- const surface = agent.threadId ? manager.getSurface(agent.threadId, event.surfaceId) : void 0;
3190
- const resolveLabel = surface ? surfaceLabelResolver(surface) : void 0;
3191
- agent.addMessage({
3192
- id: randomUUID$1(),
3193
- role: "user",
3194
- content: buildActionMessageText(event, resolveLabel)
3195
- });
3196
- setAction(agent, toA2UIActionMessage(event));
3197
- await copilotkit.runAgent({ agent });
3198
- return {
3199
- ok: true,
3200
- result: void 0
3201
- };
3202
- } catch (cause) {
3203
- return fail(`Forwarding "${event.name}" failed: ${cause instanceof Error ? cause.message : String(cause)}`);
3204
- } finally {
3205
- forwardingAgents.delete(agent);
3206
- dropAction(agent);
3207
- }
3208
- };
3209
- return {
3210
- manager,
3211
- dispatcher,
3212
- ui,
3213
- forwardEvent,
3214
- reportError,
3215
- functionCalls,
3216
- refreshActions,
3217
- dropAllActions
3218
- };
3219
- }, [ui, copilotkit]);
3220
- const runtime = useMemo(() => {
3221
- if (!core) return null;
3222
- const { manager, dispatcher, forwardEvent, reportError } = core;
3223
- return {
3224
- manager,
3225
- dispatcher,
3226
- ui: core.ui,
3227
- forwardEvent,
3228
- reportError,
3229
- transport,
3230
- theme,
3231
- get config() {
3232
- return configRef.current ?? { ui: core.ui };
3233
- },
3234
- get errorFallback() {
3235
- return configRef.current?.errorBoundary?.fallback;
3236
- }
3237
- };
3238
- }, [
3239
- core,
3240
- transport,
3241
- theme
3242
- ]);
3243
- useEffect(() => {
3244
- if (!core) return;
3245
- const watched = /* @__PURE__ */ new WeakSet();
3246
- const agentSubscriptions = [];
3247
- let envelopeId;
3248
- const debug = createGenerativeUIDebugSource(core, () => {
3249
- const latest = configRef.current ?? { ui: core.ui };
3250
- return {
3251
- options: envelopeOptionsFor(latest),
3252
- agentIds: latest.agentIds
3253
- };
3254
- });
3255
- copilotkit.ɵsetGenerativeUIDebugSource(debug.source);
3256
- const removeEnvelope = () => {
3257
- if (envelopeId === void 0) return;
3258
- copilotkit.removeScopedProperties(envelopeId);
3259
- envelopeId = void 0;
3260
- };
3261
- /**
3262
- * Sets the shared envelope of the run. The action entries of the agents
3263
- * with a user event under way (see `forwardEvent`) are set again after
3264
- * it, so they stay the last entries and win for their agents.
3265
- */
3266
- const setEnvelope = (agent, latest) => {
3267
- removeEnvelope();
3268
- const run = describeGenerativeUIRun(core, agent.threadId, envelopeOptionsFor(latest));
3269
- envelopeId = copilotkit.addScopedProperties({
3270
- properties: { [COPILOTKIT_FORWARDED_PROPS_KEY]: { ui: run.envelope } },
3271
- agentIds: latest.agentIds
3272
- });
3273
- core.refreshActions();
3274
- if (!latest.agentIds || latest.agentIds.includes(agent.agentId ?? "")) debug.recordRun({
3275
- ...run,
3276
- agentId: agent.agentId,
3277
- threadId: agent.threadId,
3278
- startedAt: Date.now()
3279
- });
3280
- };
3281
- /**
3282
- * The tool transport reads the surface activity messages. The markdown
3283
- * transport reads the ```a2ui fences of the assistant messages, and
3284
- * builds the surfaces of the thread from them again on each change.
3285
- * Both give their function calls to the one runner.
3286
- */
3287
- const readMessages = (agent, messages, running) => {
3288
- const requests = activityFunctionCalls(messages);
3289
- const { threadId } = agent;
3290
- if (configRef.current?.transport !== "markdown") ingestMessages(core.manager, agent, messages);
3291
- else if (threadId) {
3292
- core.manager.setActiveThread(threadId);
3293
- const calls = getMarkdownSurfaceSource(core).sync(threadId, agent.agentId, messages, { running });
3294
- requests.push(...markdownFunctionCalls(calls));
3295
- }
3296
- core.functionCalls.run(agent, requests, messages, running);
3297
- };
3298
- const subscription = copilotkit.subscribe({ onAgentRunStarted: ({ agent }) => {
3299
- core.manager.setActiveThread(agent.threadId);
3300
- const latest = configRef.current;
3301
- if (latest) setEnvelope(agent, latest);
3302
- if (!watched.has(agent)) {
3303
- watched.add(agent);
3304
- agentSubscriptions.push(agent.subscribe({
3305
- onMessagesChanged: ({ messages }) => readMessages(agent, messages, agent.isRunning),
3306
- onRunFinalized: () => readMessages(agent, agent.messages, false),
3307
- onRunFailed: () => readMessages(agent, agent.messages, false)
3308
- }));
3309
- }
3310
- readMessages(agent, agent.messages, true);
3311
- } });
3312
- return () => {
3313
- subscription.unsubscribe();
3314
- for (const s of agentSubscriptions) s.unsubscribe();
3315
- core.dropAllActions();
3316
- removeEnvelope();
3317
- if (copilotkit.ɵgenerativeUIDebugSource === debug.source) copilotkit.ɵsetGenerativeUIDebugSource(void 0);
3318
- };
3319
- }, [core, copilotkit]);
3320
- useGenerativeUIMarkdownContext(copilotkit, core, {
3321
- enabled: config?.transport === "markdown" && config.sendContext !== false,
3322
- agentIds: config?.agentIds
3323
- });
3324
- return runtime;
3325
- }
3326
-
3327
2979
  //#endregion
3328
2980
  //#region src/v2/lib/react-core.ts
3329
2981
  var CopilotKitCoreReact = class extends CopilotKitCore {
@@ -14736,4 +14388,4 @@ function validateProps(props) {
14736
14388
 
14737
14389
  //#endregion
14738
14390
  export { INTERRUPT_EVENT_NAME as $, ɵobservePhoenixSocketSignals$ as $a, isAbortError as $i, MultiAgentCapabilitiesSchema as $n, TextMessageEndEventSchema as $r, AudioPartSchema as $t, CopilotChatMessageView as A, withAuthoritativeActivityTypes as Aa, createActionGroup as Ai, HttpAgent as An, RunHandler as Ar, ɵrunMcpFollowUp as At, CopilotChatReasoningMessage_default as B, ɵgetAgentInterruptState$1 as Ba, emitInspectorViewThread as Bi, InputContentUrlSourceSchema as Bn, SubagentFinishedEventSchema as Br, AGUI_METADATA_KEY as Bt, CopilotModalHeader as C, splitA2UIMarkdown$1 as Ca, buildResumeArray as Ci, EventType as Cn, RunAgentInputSchema as Cr, OpenGenerativeUIContentSchema as Ct, CopilotChat as D, transformChunks as Da, contentHasMedia as Di, FilterToolCallsMiddleware as Dn, RunFinishedInterruptOutcomeSchema as Dr, MCPAppsActivityContentSchema as Dt, DefaultOpenIcon as E, tokenUsageFromLangChainMetadata as Ea, completePartialMarkdown as Ei, FileSourceSchema as En, RunFinishedEventSchema as Er, useSandboxFunctions as Et, getIntelligenceTurnAnchors as F, ɵTHREAD_REQUEST_TIMEOUT_MS as Fa, createSelector as Fi, ImageInputPartSchema as Fn, StateSchema as Fr, CopilotChatAudioRecorder as Ft, useLearningContainersInCurrentThread as G, ɵmapMemoryMetadataEvent as Ga, ensureObjectArgs as Gi, JsonPointerSchema as Gn, SubagentRunIdSchema as Gr, AddOperationSchema as Gt, CopilotChatAttachmentRenderer as H, ɵisHttpAgent$1 as Ha, empty as Hi, InterruptSchema as Hn, SubagentFinishedSuccessOutcomeSchema as Hr, ActivityDeltaEventSchema as Ht, IntelligenceIndicatorView as I, ɵclearAgentInterruptState$1 as Ia, createStore as Ii, ImagePartSchema as In, StateSnapshotEventSchema as Ir, A2UI_FENCE_LANGUAGE as It, useLearnFromUserActionInCurrentThread as J, ɵmemoryReducer as Ja, extractStringField as Ji, MessageSchema as Jn, SystemMessageSchema as Jr, AgentThreadLockedError as Jt, useLearningContainers as K, ɵmemoryAdapterEvents as Ka, extractCompleteArrayItems as Ki, MEMORY_ERROR_REGISTRY as Kn, SubagentStartedEventSchema as Kr, AgentCapabilitiesSchema as Kt, CopilotChatWorkSummary as L, ɵcreateMemoryStore as La, defaultApplyEvents as Li, InputContentDataSourceSchema as Ln, StepFinishedEventSchema as Lr, ACTIVITY_HISTORY_METADATA as Lt, messageRow as M, ɵInterruptState$1 as Ma, createEffect as Mi, INSPECTOR_THREAD_BRIDGE_PLUGIN_ID as Mn, StateCapabilitiesSchema as Mr, useRenderToolCall as Mt, INTELLIGENCE_TURN_HEAD as N, ɵMAX_SOCKET_RETRIES as Na, createInspectorThreadRequestId as Ni, IdentityCapabilitiesSchema as Nn, StateDeltaEventSchema as Nr, CopilotChatInput_default as Nt, CopilotChatView_default as O, transformHttpEventStream as Oa, contentToText$1 as Oi, FunctionCallSchema as On, RunFinishedOutcomeSchema as Or, MCPAppsActivityRenderer as Ot, IntelligenceIndicator as P, ɵRUNTIME_PROBE_TIMEOUT_MS as Pa, createReducer as Pi, ImageInputContentSchema as Pn, StateManager as Pr, AudioRecorderError as Pt, useInterrupt as Q, ɵobservePhoenixSocketHealth$ as Qa, getWebMCPModelContext as Qi, MoveOperationSchema as Qn, TextMessageContentEventSchema as Qr, AudioInputPartSchema as Qt, CopilotChatSuggestionView as R, ɵcreateThreadSelectors as Ra, emitInspectorActiveThread$1 as Ri, InputContentSchema as Rn, StepStartedEventSchema as Rr, AGUIConnectNotImplementedError$1 as Rt, CopilotSidebarView as S, select as Sa, authoritativeActivityTypes as Si, EventSchemas as Sn, RoleSchema as Sr, OpenGenerativeUIActivityType as St, DefaultCloseIcon as T, tokenUsageFromAiSdkUsage as Ta, compactEvents as Ti, ExecutionCapabilitiesSchema as Tn, RunFinishedCancelledOutcomeSchema as Tr, SandboxFunctionsContext as Tt, CopilotChatAssistantMessage_default as U, ɵisRetryableMemoryStatus as Ua, enforceEvents as Ui, JsonPatchOperationSchema as Un, SubagentFinishedSuspendedOutcomeSchema as Ur, ActivityMessageSchema as Ut, CopilotChatUserMessage_default as V, ɵisCopilotKitFeature as Va, emitInspectorViewThreadResult$1 as Vi, IntelligenceAgent as Vn, SubagentFinishedOutcomeSchema as Vr, AbstractAgent$1 as Vt, CopilotChatToolCallsView as W, ɵjoinPhoenixChannel$ as Wa, enforceOutgoingInput as Wi, JsonPatchSchema as Wn, SubagentInfoSchema as Wr, ActivitySnapshotEventSchema as Wt, useMemories as X, ɵobservePhoenixEvent$ as Xa, getMarkdownOperationSurfaceId as Xi, MetadataSchema as Xn, TextInputContentSchema as Xr, AttributableSchema as Xt, useLearnFromUserAction as Y, ɵmemoryRestEvents as Ya, flattenInformationalCards as Yi, MessagesSnapshotEventSchema as Yn, TestOperationSchema as Yr, AssistantMessageSchema as Yt, useThreads$1 as Z, ɵobservePhoenixJoinOutcome$ as Za, getRunOutcome as Zi, Middleware as Zn, TextMessageChunkEventSchema as Zr, AudioInputContentSchema as Zt, WildcardToolCallRender as _, randomUUID$2 as _a, VideoInputContentSchema as _i, DeveloperMessageSchema as _n, ReasoningMessageStartEventSchema as _r, useLicenseContext$1 as _t, ThreadsProvider as a, ofType as aa, ToolCallChunkEventSchema as ai, CompatibilityBoundary as an, ɵselectIsMutating$1 as ao, PROTOCOL_VERSION as ar, useAgent as at, CopilotSidebar as b, runHttpRequest as ba, WebMCPRegistry as bi, DocumentPartSchema as bn, ReplaceOperationSchema as br, GenerateSandboxedUiArgsSchema as bt, CoAgentStateRendersProvider as c, onInspectorActiveThread as ca, ToolCallSchema as ci, ContextStore as cn, ɵselectMemoriesError$1 as co, RawEventSchema as cr, CopilotChatToolCallGroup as ct, shouldShowDevConsole as d, onInspectorViewThreadResult as da, ToolMessageSchema as di, CopilotKitCoreRuntimeConnectionStatus$1 as dn, ɵselectMemoriesRealtimeStatus$1 as do, ReasoningEncryptedValueSubtypeSchema as dr, useFrontendTools as dt, isInspectorThreadBridgeEnabled$1 as ea, TextMessageRoleSchema as ei, BackwardCompatibility_0_0_39 as en, ɵphoenixChannel$ as eo, MultimodalCapabilitiesSchema as er, useConfigureSuggestions as et, useToast as f, parseProtoStream as fa, ToolSchema as fi, CopilotKitHeaderResolutionError as fn, ɵselectThreads$1 as fo, ReasoningEndEventSchema as fr, useFrontendTool as ft, useCopilotContext as g, props as ga, UserMessageSchema as gi, DebugLogger as gn, ɵwithHeaderDefaults$1 as go, ReasoningMessageSchema as gr, useCopilotKit$1 as gt, CopilotContext as h, prepareSurfaceOperations as ha, UrlSourceSchema as hi, DataSourceSchema as hn, ɵthreadAdapterEvents as ho, ReasoningMessageEndEventSchema as hr, CopilotKitProvider as ht, ThreadsContext as i, mergeMetadata as ia, ToolCallArgsEventSchema as ii, BaseMessageSchema as in, ɵselectIsFetchingNextPage$1 as io, OutputCapabilitiesSchema as ir, UseAgentUpdate as it, messageGroup as j, ɵCOPILOTKIT_FEATURES as ja, createDebugLogger as ji, HumanInTheLoopCapabilitiesSchema as jn, RunStartedEventSchema as jr, CopilotKitInspector as jt, CopilotChatAttachmentQueue as k, verifyEvents as ka, convertToLegacyEvents as ki, FunctionMiddleware as kn, RunFinishedSuccessOutcomeSchema as kr, MCPAppsActivityType as kt, useCoAgentStateRenders as l, onInspectorStopViewing$1 as la, ToolCallStartEventSchema as li, CopilotKitCore$1 as ln, ɵselectMemoriesIsLoading$1 as lo, ReasoningCapabilitiesSchema as lr, useRenderTool as lt, useCopilotMessagesContext as m, parseToolArguments as ma, TransportCapabilitiesSchema as mi, CustomEventSchema as mn, ɵselectThreadsIsLoading$1 as mo, ReasoningMessageContentEventSchema as mr, useRenderCustomMessages as mt, defaultCopilotContextCategories as n, isRecognizedEvent as na, TextPartSchema as ni, BackwardCompatibility_0_0_57 as nn, ɵselectFetchMoreError$1 as no, MultimodalOutputCapabilitiesSchema as nr, useAgentContext as nt, useThreads as o, omitOptionalNulls as oa, ToolCallEndEventSchema as oi, ContentPartSchema as on, ɵselectMemories$1 as oo, PartSourceSchema as or, useHumanInTheLoop as ot, CopilotMessagesContext as p, parseSSEStream as pa, ToolsCapabilitiesSchema as pi, CopyOperationSchema as pn, ɵselectThreadsError$1 as po, ReasoningMessageChunkEventSchema as pr, useRenderActivityMessage as pt, useAttachments as q, ɵmemoryDomainEvents as qa, extractFenceOperations as qi, MemoryError as qn, SuggestionEngine as qr, AgentRegistry as qt, CoAgentStateRenderBridge as r, isRunCompletionAware$1 as ra, TokenUsageSchema as ri, BaseEventSchema as rn, ɵselectHasNextPage$1 as ro, OptionalMetadataSchema as rr, useCapabilities as rt, CoAgentStateRendersContext as s, on as sa, ToolCallResultEventSchema as si, ContextSchema as sn, ɵselectMemoriesAvailable$1 as so, ProxiedCopilotRuntimeAgent$1 as sr, useDefaultRenderTool as st, CopilotKit as t, isInterruptExpired as ta, TextMessageStartEventSchema as ti, BackwardCompatibility_0_0_45 as tn, ɵphoenixSocket$ as to, MultimodalInputCapabilitiesSchema as tr, useSuggestions as tt, useAsyncCallback as u, onInspectorViewThread$1 as ua, ToolCallStatus$1 as ui, CopilotKitCoreErrorCode$1 as un, ɵselectMemoriesIsMutating as uo, ReasoningEncryptedValueEventSchema as ur, useComponent as ut, CopilotThreadsDrawer as v, resolveAgentDebugConfig as va, VideoInputPartSchema as vi, DocumentInputContentSchema as vn, ReasoningStartEventSchema as vr, CopilotKitCoreReact as vt, CopilotChatToggleButton as w, structuredClone_ as wa, classifySurfaceCards as wi, EventTypeSchema as wn, RunErrorEventSchema as wr, OpenGenerativeUIToolRenderer as wt, CopilotPopupView as x, segmentSurfaceProse as xa, aggregateTokenUsage as xi, EventSchema as xn, ResumeEntrySchema as xr, OpenGenerativeUIActivityRenderer as xt, CopilotPopup as y, resolveDebugLogger as ya, VideoPartSchema as yi, DocumentInputPartSchema as yn, RemoveOperationSchema as yr, createA2UIMessageRenderer as yt, CopilotChatSuggestionPill as z, ɵcreateThreadStore$1 as za, emitInspectorStopViewing as zi, InputContentSourceSchema as zn, SubagentErrorEventSchema as zr, AGUIError as zt };
14739
- //# sourceMappingURL=copilotkit-D6mTCuNU.mjs.map
14391
+ //# sourceMappingURL=copilotkit-B1OLgEU8.mjs.map