@copilotkit/react-core 2.0.0-rc.5 → 2.0.0-rc.50

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 (104) hide show
  1. package/README.md +1 -1
  2. package/dist/MarkdownRendererContext-QFCldfW_.d.cts +34 -0
  3. package/dist/MarkdownRendererContext-QFCldfW_.d.cts.map +1 -0
  4. package/dist/MarkdownRendererContext-aK63ZFd-.d.mts +34 -0
  5. package/dist/MarkdownRendererContext-aK63ZFd-.d.mts.map +1 -0
  6. package/dist/MarkdownSurfaces-Do948N1P.cjs +141 -0
  7. package/dist/MarkdownSurfaces-Do948N1P.cjs.map +1 -0
  8. package/dist/MarkdownSurfaces-rtE9wRUP.mjs +135 -0
  9. package/dist/MarkdownSurfaces-rtE9wRUP.mjs.map +1 -0
  10. package/dist/ProviderMarkdown-D0eI0aPo.cjs +268 -0
  11. package/dist/ProviderMarkdown-D0eI0aPo.cjs.map +1 -0
  12. package/dist/ProviderMarkdown-epL7F3Vt.mjs +214 -0
  13. package/dist/ProviderMarkdown-epL7F3Vt.mjs.map +1 -0
  14. package/dist/accessibility-BLK-gE0R.mjs +129 -0
  15. package/dist/accessibility-BLK-gE0R.mjs.map +1 -0
  16. package/dist/accessibility-GnodqxkH.cjs +228 -0
  17. package/dist/accessibility-GnodqxkH.cjs.map +1 -0
  18. package/dist/chat-B1zczXUD.mjs +1476 -0
  19. package/dist/chat-B1zczXUD.mjs.map +1 -0
  20. package/dist/chat-BZ_bvAkg.d.mts +38 -0
  21. package/dist/chat-BZ_bvAkg.d.mts.map +1 -0
  22. package/dist/chat-CkFZMo5E.cjs +1579 -0
  23. package/dist/chat-CkFZMo5E.cjs.map +1 -0
  24. package/dist/chat-CpZVyF_t.d.cts +38 -0
  25. package/dist/chat-CpZVyF_t.d.cts.map +1 -0
  26. package/dist/context.cjs +75 -63
  27. package/dist/context.cjs.map +1 -1
  28. package/dist/context.d.cts +62 -107
  29. package/dist/context.d.cts.map +1 -1
  30. package/dist/context.d.mts +62 -107
  31. package/dist/context.d.mts.map +1 -1
  32. package/dist/context.mjs +76 -64
  33. package/dist/context.mjs.map +1 -1
  34. package/dist/generative-ui/map.cjs +26 -0
  35. package/dist/generative-ui/map.cjs.map +1 -0
  36. package/dist/generative-ui/map.d.cts +23 -0
  37. package/dist/generative-ui/map.d.cts.map +1 -0
  38. package/dist/generative-ui/map.d.mts +23 -0
  39. package/dist/generative-ui/map.d.mts.map +1 -0
  40. package/dist/generative-ui/map.mjs +24 -0
  41. package/dist/generative-ui/map.mjs.map +1 -0
  42. package/dist/generative-ui/native.cjs +67 -0
  43. package/dist/generative-ui/native.cjs.map +1 -0
  44. package/dist/generative-ui/native.d.cts +156 -0
  45. package/dist/generative-ui/native.d.cts.map +1 -0
  46. package/dist/generative-ui/native.d.mts +156 -0
  47. package/dist/generative-ui/native.d.mts.map +1 -0
  48. package/dist/generative-ui/native.mjs +25 -0
  49. package/dist/generative-ui/native.mjs.map +1 -0
  50. package/dist/generative-ui.cjs +33 -8088
  51. package/dist/generative-ui.cjs.map +1 -1
  52. package/dist/generative-ui.d.cts +2472 -4789
  53. package/dist/generative-ui.d.cts.map +1 -1
  54. package/dist/generative-ui.d.mts +2472 -4789
  55. package/dist/generative-ui.d.mts.map +1 -1
  56. package/dist/generative-ui.mjs +9 -8074
  57. package/dist/generative-ui.mjs.map +1 -1
  58. package/dist/headless.cjs +289 -1054
  59. package/dist/headless.cjs.map +1 -1
  60. package/dist/headless.d.cts +149 -372
  61. package/dist/headless.d.cts.map +1 -1
  62. package/dist/headless.d.mts +123 -237
  63. package/dist/headless.d.mts.map +1 -1
  64. package/dist/headless.mjs +283 -1054
  65. package/dist/headless.mjs.map +1 -1
  66. package/dist/hooks-D2H3iL0N.d.mts +84 -0
  67. package/dist/hooks-D2H3iL0N.d.mts.map +1 -0
  68. package/dist/hooks-Dy8HeEdr.d.cts +84 -0
  69. package/dist/hooks-Dy8HeEdr.d.cts.map +1 -0
  70. package/dist/index.cjs +8683 -13241
  71. package/dist/index.cjs.map +1 -1
  72. package/dist/index.d.cts +303 -875
  73. package/dist/index.d.cts.map +1 -1
  74. package/dist/index.d.mts +302 -874
  75. package/dist/index.d.mts.map +1 -1
  76. package/dist/index.mjs +1773 -7808
  77. package/dist/index.mjs.map +1 -1
  78. package/dist/index.umd.js +13886 -13661
  79. package/dist/index.umd.js.map +1 -1
  80. package/dist/refs-B5Dn59Pn.cjs +43 -0
  81. package/dist/refs-B5Dn59Pn.cjs.map +1 -0
  82. package/dist/refs-BW15wX_V.mjs +31 -0
  83. package/dist/refs-BW15wX_V.mjs.map +1 -0
  84. package/dist/runtime-context-B7f4M85q.d.mts +215 -0
  85. package/dist/runtime-context-B7f4M85q.d.mts.map +1 -0
  86. package/dist/runtime-context-CIkZS0ap.d.cts +215 -0
  87. package/dist/runtime-context-CIkZS0ap.d.cts.map +1 -0
  88. package/dist/standard-CSBR4FhM.mjs +5800 -0
  89. package/dist/standard-CSBR4FhM.mjs.map +1 -0
  90. package/dist/standard-DBjcBGyd.cjs +5796 -0
  91. package/dist/standard-DBjcBGyd.cjs.map +1 -0
  92. package/dist/use-generative-ui-root-CIp0ytE6.cjs +390 -0
  93. package/dist/use-generative-ui-root-CIp0ytE6.cjs.map +1 -0
  94. package/dist/use-generative-ui-root-oBqPa6uy.mjs +386 -0
  95. package/dist/use-generative-ui-root-oBqPa6uy.mjs.map +1 -0
  96. package/package.json +49 -23
  97. package/dist/MarkdownRendererContext-B4Us6mwL.d.cts +0 -954
  98. package/dist/MarkdownRendererContext-B4Us6mwL.d.cts.map +0 -1
  99. package/dist/MarkdownRendererContext-CRKFzsEB.d.mts +0 -954
  100. package/dist/MarkdownRendererContext-CRKFzsEB.d.mts.map +0 -1
  101. package/dist/MarkdownSurfaces-Bd--93O1.mjs +0 -3676
  102. package/dist/MarkdownSurfaces-Bd--93O1.mjs.map +0 -1
  103. package/dist/MarkdownSurfaces-S4wfUl3J.cjs +0 -3991
  104. package/dist/MarkdownSurfaces-S4wfUl3J.cjs.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,37 +1,24 @@
1
- import { a as useMarkdownRenderer, c as ReactActivityMessageRenderer, i as MarkdownRendererProvider, l as GenerativeUIConfig, n as MarkdownRenderer, r as MarkdownRendererProps, s as GenerativeUIChatSurfaceProps, t as DefaultMarkdownRendererProps } from "./MarkdownRendererContext-CRKFzsEB.mjs";
2
- import { A2UIMarkdownOperation, A2UI_FENCE_LANGUAGE, ActionConfig, ActionCreator, ActionFromCreator, ActionFromCreators, ActionGroupConfig, ActionGroupResult, AgentRegistry, AgentThreadLockedError, AnyAction, ChildIdsOf, ChildWalkOptions, ContextStore, CopilotKitCore, CopilotKitCore as CopilotKitCore$1, CopilotKitCoreAddAgentParams, CopilotKitCoreCatalogComponent, CopilotKitCoreConfig, CopilotKitCoreConfig as CopilotKitCoreConfig$1, CopilotKitCoreConnectAgentParams, CopilotKitCoreContinuationHandoff, CopilotKitCoreErrorCode, CopilotKitCoreErrorCode as CopilotKitCoreErrorCode$1, CopilotKitCoreFriendsAccess, CopilotKitCoreGetSuggestionsResult, CopilotKitCoreGetToolParams, CopilotKitCoreRegisterProxiedAgentParams, CopilotKitCoreRegisterProxiedAgentResult, CopilotKitCoreRunAgentParams, CopilotKitCoreRunToolParams, CopilotKitCoreRunToolResult, CopilotKitCoreRuntimeConnectionStatus, CopilotKitCoreStopAgentParams, CopilotKitCoreSubscriber, CopilotKitCoreSubscriber as CopilotKitCoreSubscriber$1, CopilotKitCoreSubscription, CopilotKitCoreSubscription as CopilotKitCoreSubscription$1, CopilotKitHeaderResolutionError, CopilotKitHeadersSource, CopilotKitHeadersSource as CopilotKitHeadersSource$1, CopilotKitMessageFilter, CopilotKitMessageFilter as CopilotKitMessageFilter$1, CopilotRuntimeTransport, DispatchingEffect, DispatchingEffectOptions, DynamicSuggestionsConfig, DynamicSuggestionsConfig as DynamicSuggestionsConfig$1, Effect, EmptyActionConfig, FrontendTool, FrontendTool as FrontendTool$1, FrontendToolHandlerContext, FrontendToolReconnectBehavior, INSPECTOR_THREAD_BRIDGE_PLUGIN_ID, InspectorActiveThreadPayload, InspectorMetadataV1, InspectorStopViewingPayload, InspectorViewThreadPayload, InspectorViewThreadResultPayload, IntelligenceAgent, IntelligenceAgentConfig, IntelligenceRuntimeInfo, JsonValue, LearningConfig, LearningConfig as LearningConfig$1, LegacyLearningConfig, MEMORY_ERROR_REGISTRY, MarkdownSegment, MarkdownToken, MarkdownTokenList, Memory, Memory as Memory$1, MemoryChanges, MemoryChanges as MemoryChanges$1, MemoryError, MemoryErrorCategory, MemoryErrorCode, MemoryErrorRegistryEntry, MemoryKind, MemoryRealtimeStatus, MemoryRealtimeStatus as MemoryRealtimeStatus$1, MemoryScope, NewMemory, NewMemory as NewMemory$1, NonDispatchingEffect, NonDispatchingEffectOptions, OpenThreadRegistration, ParseMarkdownOptions, PropsActionConfig, ProxiedCopilotRuntimeAgent, ProxiedCopilotRuntimeAgentConfig, Reducer, RunCompletionAware, RunHandler, RuntimeLicenseStatus, RuntimeMode, ScopedContext, ScopedProperties, Selector, StartResult, StateManager, StaticSuggestionsConfig, StaticSuggestionsConfig as StaticSuggestionsConfig$1, Store, StoreLifecycleAction, SubscribeToAgentOptions, SubscribeToAgentSubscriber, Suggestion, Suggestion as Suggestion$1, SuggestionAvailability, SuggestionEngine, SuggestionsConfig, SurfaceSegment, ThreadEndpointRuntimeInfo, ThreadRunActivityNotification, Tokens, ToolCallStatus, ToolCallStatus as ToolCallStatus$1, TrajectoryStartOptions, WebMCPModelContext, WebMCPRegistry, WebMCPToolAnnotations, WebMCPToolConfig, classifySurfaceCards, completePartialMarkdown, createActionGroup, createEffect, createInspectorThreadRequestId, createReducer, createSelector, createStore, emitInspectorActiveThread, emitInspectorStopViewing, emitInspectorViewThread, emitInspectorViewThreadResult, empty, ensureObjectArgs, extractCompleteArrayItems, extractFenceOperations, extractStringField, flattenInformationalCards, getMarkdownOperationSurfaceId, getWebMCPModelContext, isAbortError, isInspectorThreadBridgeEnabled, isRunCompletionAware, ofType, on, onInspectorActiveThread, onInspectorStopViewing, onInspectorViewThread, onInspectorViewThreadResult, parseMarkdown, parseToolArguments, prepareSurfaceOperations, props, segmentSurfaceProse, select, splitA2UIMarkdown, ɵCOPILOTKIT_FEATURES, ɵCopilotKitFeature, ɵGenerativeUIDebugFunction, ɵGenerativeUIDebugPromptSection, ɵGenerativeUIDebugRun, ɵGenerativeUIDebugSnapshot, ɵGenerativeUIDebugSource, ɵGenerativeUIDebugSurface, ɵInterruptDecision, ɵInterruptEvent, ɵInterruptState, ɵInterruptToolResult, ɵMAX_SOCKET_RETRIES, ɵMemoryEnvironment, ɵMemoryMetadataEvent, ɵMemoryRuntimeContext, ɵMemoryState, ɵMemoryStore, ɵPendingInterrupt, ɵPhoenixChannelLike, ɵPhoenixChannelOptions, ɵPhoenixChannelSession, ɵPhoenixJoinOutcome, ɵPhoenixPushLike, ɵPhoenixSocketLike, ɵPhoenixSocketOptions, ɵPhoenixSocketSession, ɵPhoenixSocketSignal, ɵRUNTIME_PROBE_TIMEOUT_MS, ɵTHREAD_REQUEST_TIMEOUT_MS, ɵThread, ɵThreadEnvironment, ɵThreadMetadataEvent, ɵThreadRuntimeContext, ɵThreadSelectors, ɵThreadStore, ɵclearAgentInterruptState, ɵcreateMemoryStore, ɵcreateThreadSelectors, ɵcreateThreadStore, ɵgetAgentInterruptState, ɵisCopilotKitFeature, ɵisHttpAgent, ɵisRetryableMemoryStatus, ɵjoinPhoenixChannel$, ɵmapMemoryMetadataEvent, ɵmemoryAdapterEvents, ɵmemoryDomainEvents, ɵmemoryReducer, ɵmemoryRestEvents, ɵobservePhoenixEvent$, ɵobservePhoenixJoinOutcome$, ɵobservePhoenixSocketHealth$, ɵobservePhoenixSocketSignals$, ɵphoenixChannel$, ɵphoenixSocket$, ɵselectFetchMoreError, ɵselectHasNextPage, ɵselectIsFetchingNextPage, ɵselectIsMutating, ɵselectMemories, ɵselectMemoriesAvailable, ɵselectMemoriesError, ɵselectMemoriesIsLoading, ɵselectMemoriesIsMutating, ɵselectMemoriesRealtimeStatus, ɵselectThreads, ɵselectThreadsError, ɵselectThreadsIsLoading, ɵthreadAdapterEvents, ɵwithHeaderDefaults } from "@copilotkit/core";
3
- import { ACTIVITY_HISTORY_METADATA, AGUIConnectNotImplementedError, AGUIError, AGUIEvent, AGUIEventByType, AGUIEventOf, AGUI_METADATA_KEY, AbstractAgent, AbstractAgent as AbstractAgent$1, ActivityDeltaEvent, ActivityDeltaEventProps, ActivityMessage, ActivitySnapshotEvent, ActivitySnapshotEventProps, AddOperation, AgentCapabilities, AgentConfig, AgentDebugConfig, AgentStateMutation, AgentSubscriber, AgentSubscriberParams, AssistantMessage, Attributable, AudioInputContent, AudioInputPart, AudioPart, BackwardCompatibility_0_0_39, BackwardCompatibility_0_0_45, BackwardCompatibility_0_0_57, BaseEvent, BaseEventFields, BaseEventProps, BaseMessage, CompatibilityBoundary, ContentPart, Context, CopyOperation, CustomEvent, CustomEventProps, DataSource, DebugLogger, DebugLoggerInput, DeveloperMessage, DocumentInputContent, DocumentInputPart, DocumentPart, Event, EventPayloadOf, EventType, ExecutionCapabilities, FileSource, FilterToolCallsMiddleware, FunctionCall, FunctionMiddleware, HttpAgent, HttpAgentConfig, HttpAgentFetchFn, HumanInTheLoopCapabilities, IdentityCapabilities, ImageInputContent, ImageInputPart, ImagePart, InputContent, InputContentDataSource, InputContentPart, InputContentSource, InputContentUrlSource, Interrupt, JsonPatch, JsonPatchOperation, JsonPointer, Message, MessagesSnapshotEvent, MessagesSnapshotEventProps, Metadata, Middleware, MiddlewareFunction, MoveOperation, MultiAgentCapabilities, MultimodalCapabilities, MultimodalInputCapabilities, MultimodalOutputCapabilities, OutputCapabilities, PROTOCOL_VERSION, PartSource, RawEvent, RawEventProps, ReasoningCapabilities, ReasoningEncryptedValueEvent, ReasoningEncryptedValueEventProps, ReasoningEncryptedValueSubtype, ReasoningEndEvent, ReasoningEndEventProps, ReasoningMessage, ReasoningMessageChunkEvent, ReasoningMessageChunkEventProps, ReasoningMessageContentEvent, ReasoningMessageContentEventProps, ReasoningMessageEndEvent, ReasoningMessageEndEventProps, ReasoningMessageStartEvent, ReasoningMessageStartEventProps, ReasoningStartEvent, ReasoningStartEventProps, RemoveOperation, ReplaceOperation, ResolvedAgentDebugConfig, ResumeEntry, ResumeStatus, Role, RunAgentInput, RunAgentParameters, RunAgentResult, RunAgentResult as RunAgentResult$1, RunErrorEvent, RunErrorEventProps, RunFinishedCancelledOutcome, RunFinishedEvent, RunFinishedEventProps, RunFinishedInterruptOutcome, RunFinishedOutcome, RunFinishedSuccessOutcome, RunStartedEvent, RunStartedEventProps, State, StateCapabilities, StateDeltaEvent, StateDeltaEventProps, StateSnapshotEvent, StateSnapshotEventProps, StepFinishedEvent, StepFinishedEventProps, StepStartedEvent, StepStartedEventProps, SubagentErrorEvent, SubagentErrorEventProps, SubagentFinishedEvent, SubagentFinishedEventProps, SubagentFinishedOutcome, SubagentFinishedSuccessOutcome, SubagentFinishedSuspendedOutcome, SubagentInfo, SubagentRunId, SubagentStartedEvent, SubagentStartedEventProps, SystemMessage, TestOperation, TextInputContent, TextMessageChunkEvent, TextMessageChunkEventProps, TextMessageContentEvent, TextMessageContentEventProps, TextMessageEndEvent, TextMessageEndEventProps, TextMessageRole, TextMessageStartEvent, TextMessageStartEventProps, TextPart, TokenUsage, Tool, ToolCall, ToolCallArgsEvent, ToolCallArgsEventProps, ToolCallChunkEvent, ToolCallChunkEventProps, ToolCallEndEvent, ToolCallEndEventProps, ToolCallResultEvent, ToolCallResultEventProps, ToolCallStartEvent, ToolCallStartEventProps, ToolMessage, ToolsCapabilities, TransportCapabilities, UnrecognizedEvent, UrlSource, UserMessage, VideoInputContent, VideoInputPart, VideoPart, aggregateTokenUsage, authoritativeActivityTypes, buildResumeArray, compactEvents, contentHasMedia, contentToText, convertToLegacyEvents, createDebugLogger, defaultApplyEvents, enforceEvents, enforceOutgoingInput, getRunOutcome, isInterruptExpired, isRecognizedEvent, mergeMetadata, omitOptionalNulls, parseProtoStream, parseSSEStream, randomUUID, resolveAgentDebugConfig, resolveDebugLogger, runHttpRequest, structuredClone_, tokenUsageFromAiSdkUsage, tokenUsageFromLangChainMetadata, transformChunks, transformHttpEventStream, verifyEvents, withAuthoritativeActivityTypes } from "@ag-ui/client";
1
+ import { t as GenerativeUIConfig } from "./runtime-context-B7f4M85q.mjs";
2
+ import { i as ReactActivityMessageRenderer, n as GenerativeUIChatSurfaceProps } from "./chat-BZ_bvAkg.mjs";
3
+ import { a as useMarkdownRenderer, i as MarkdownRendererProvider, n as MarkdownRenderer, r as MarkdownRendererProps, t as DefaultMarkdownRendererProps } from "./MarkdownRendererContext-aK63ZFd-.mjs";
4
+ import * as _copilotkit_core0 from "@copilotkit/core";
5
+ import { A2UIMarkdownOperation, A2UI_FENCE_LANGUAGE, ActionConfig, ActionCreator, ActionFromCreator, ActionFromCreators, ActionGroupConfig, ActionGroupResult, ActivityMessageRenderProps, ActivityMessageRendererDef, AgentRegistry, AgentThreadLockedError, AnyAction, ChildIdsOf, ChildWalkOptions, ContextStore, CopilotChatDefaultLabels, CopilotChatLabels, CopilotChatLabels as CopilotChatLabels$1, CopilotChatToolCallDisplay, CopilotChatToolCallDisplay as CopilotChatToolCallDisplay$1, CopilotIconData, CopilotIconDefinition, CopilotIconName, CopilotIconNode, CopilotKitCore, CopilotKitCore as CopilotKitCore$1, CopilotKitCoreAddAgentParams, CopilotKitCoreCatalogComponent, CopilotKitCoreConfig, CopilotKitCoreConfig as CopilotKitCoreConfig$1, CopilotKitCoreConnectAgentParams, CopilotKitCoreContinuationHandoff, CopilotKitCoreErrorCode, CopilotKitCoreErrorCode as CopilotKitCoreErrorCode$1, CopilotKitCoreErrorEvent, CopilotKitCoreErrorHandler, CopilotKitCoreFriendsAccess, CopilotKitCoreGetSuggestionsResult, CopilotKitCoreGetToolParams, CopilotKitCoreRegisterProxiedAgentParams, CopilotKitCoreRegisterProxiedAgentResult, CopilotKitCoreRunAgentParams, CopilotKitCoreRunToolParams, CopilotKitCoreRunToolResult, CopilotKitCoreRuntimeConnectionStatus, CopilotKitCoreStopAgentParams, CopilotKitCoreSubscriber, CopilotKitCoreSubscriber as CopilotKitCoreSubscriber$1, CopilotKitCoreSubscription, CopilotKitCoreSubscription as CopilotKitCoreSubscription$1, CopilotKitHeaderResolutionError, CopilotKitHeadersSource, CopilotKitMessageFilter, CopilotRuntimeTransport, CustomMessageRenderProps, CustomMessageRenderProps as CustomMessageRenderProps$1, CustomMessageRendererDef, CustomMessageRendererDef as CustomMessageRendererDef$1, CustomMessageRendererPosition, CustomMessageRendererPosition as CustomMessageRendererPosition$1, DEFAULT_OPEN_GENERATIVE_UI_DESIGN_SKILL, DispatchingEffect, DispatchingEffectOptions, DynamicSuggestionsConfig, Effect, EmptyActionConfig, FrontendTool, FrontendTool as FrontendTool$1, FrontendToolHandlerContext, FrontendToolReconnectBehavior, GENERATE_SANDBOXED_UI_TOOL_NAME, GenerateSandboxedUiArgs, HumanInTheLoopRenderProps, HumanInTheLoopRenderProps as HumanInTheLoopRenderProps$1, INSPECTOR_THREAD_BRIDGE_PLUGIN_ID, INTERRUPT_EVENT_NAME, InspectorActiveThreadPayload, InspectorMetadataV1, InspectorStopViewingPayload, InspectorViewThreadPayload, InspectorViewThreadResultPayload, IntelligenceAgent, IntelligenceAgentConfig, IntelligenceRuntimeInfo, InterruptCancelFn, InterruptEvent, InterruptHandlerProps, InterruptRenderProps, InterruptResolveFn, JsonValue, LearningConfig, LegacyLearningConfig, MEMORY_ERROR_REGISTRY, MarkdownSegment, Memory, Memory as Memory$1, MemoryChanges, MemoryChanges as MemoryChanges$1, MemoryError, MemoryErrorCategory, MemoryErrorCode, MemoryErrorRegistryEntry, MemoryKind, MemoryRealtimeStatus, MemoryRealtimeStatus as MemoryRealtimeStatus$1, MemoryScope, NewMemory, NewMemory as NewMemory$1, NonDispatchingEffect, NonDispatchingEffectOptions, OPEN_GENERATIVE_UI_ACTIVITY_TYPE, OpenGenerativeUIContent, OpenThreadRegistration, PropsActionConfig, ProxiedCopilotRuntimeAgent, ProxiedCopilotRuntimeAgentConfig, Reducer, RunCompletionAware, RunHandler, RuntimeLicenseStatus, RuntimeMode, ScopedContext, ScopedProperties, Selector, StartResult, StateManager, StaticSuggestionsConfig, Store, StoreLifecycleAction, SubscribeToAgentOptions, SubscribeToAgentSubscriber, Suggestion, Suggestion as Suggestion$1, SuggestionAvailability, SuggestionEngine, SuggestionsConfig, SurfaceSegment, ThreadEndpointRuntimeInfo, ThreadRunActivityNotification, ToolCallEntry, ToolCallEntry as ToolCallEntry$1, ToolCallRenderProps, ToolCallRenderProps as ToolCallRenderProps$1, ToolCallRendererDef, ToolCallRendererDef as ToolCallRendererDef$1, ToolCallStatus, ToolCallStatus as ToolCallStatus$1, TrajectoryStartOptions, TranscriptionError, TranscriptionErrorCode, TranscriptionErrorInfo, TranscriptionResult, WebMCPModelContext, WebMCPRegistry, WebMCPToolAnnotations, WebMCPToolConfig, classifySurfaceCards, completePartialMarkdown, createActionGroup, createEffect, createInspectorThreadRequestId, createReducer, createSelector, createStore, emitInspectorActiveThread, emitInspectorStopViewing, emitInspectorViewThread, emitInspectorViewThreadResult, empty, ensureObjectArgs, extractCompleteArrayItems, extractFenceOperations, extractStringField, flattenInformationalCards, getMarkdownOperationSurfaceId, getWebMCPModelContext, isAbortError, isInspectorThreadBridgeEnabled, isRunCompletionAware, ofType, on, onInspectorActiveThread, onInspectorStopViewing, onInspectorViewThread, onInspectorViewThreadResult, parseToolArguments, prepareSurfaceOperations, props, segmentSurfaceProse, select, splitA2UIMarkdown, ɵALL_AGENT_UPDATES, ɵActivityRendererFailureReason, ɵActivityRendererLookup, ɵActivityRendererQuery, ɵActivityRenderersInput, ɵAgentBindingInput, ɵAgentContextInput, ɵAgentResolveInput, ɵAgentResolver, ɵAgentUpdateFlag, ɵAssembledHumanInTheLoop, ɵAssistantToolbarInput, ɵAttachmentQueue, ɵAudioRecorder, ɵAudioRecorderError, ɵAudioRecorderError as AudioRecorderError, ɵAudioRecorderState, ɵAudioRecorderState as ɵAudioRecorderState$1, ɵAutoScrollMode, ɵAutoScrollMode as AutoScrollMode, ɵAutoScrollMode as ɵAutoScrollMode$1, ɵBranchNavInput, ɵCOMPOSER_DEFAULT_MAX_ROWS, ɵCOPILOTKIT_FEATURES, ɵCOPILOT_CLOUD_PUBLIC_API_KEY_HEADER, ɵCOPILOT_CLOUD_RUNTIME_URL, ɵCOPY_FEEDBACK_RESET_MS, ɵChatConfigurationOptions, ɵChatConfigurationSnapshot, ɵChatConfigurationStore, ɵChatConfigurationStore as ɵChatConfigurationStore$1, ɵChatConnectHooks, ɵChatConnection, ɵChatConnectionHandle, ɵChatConnectionOptions, ɵChatConnectionSnapshot, ɵChatErrorEvent, ɵChatNotice, ɵChatRunScope, ɵChatSubmitter, ɵChatSubmitterOptions, ɵChatSubmitterSnapshot, ɵChatViewStateInput, ɵClassValue, ɵClipboardItem, ɵCommandMenuItem, ɵComposerAutosize, ɵComposerAutosizeOptions, ɵComposerController, ɵComposerControllerInputs, ɵComposerControllerOptions, ɵComposerElements, ɵComposerInput, ɵComposerKeyAction, ɵComposerKeyDownResult, ɵComposerKeyEvent, ɵComposerLayout, ɵComposerMode, ɵComposerSnapshot, ɵConnectionWaitResult, ɵCopilotKitCoreConfigPatch, ɵCopilotKitFeature, ɵCopilotKitLearningOptions, ɵCopilotKitProviderBaseOptions, ɵCopilotKitProviderBaseOptions as ɵCopilotKitProviderBaseOptions$1, ɵCopyFeedback, ɵCustomMessageRunSource, ɵDefaultToolCallRenderProps, ɵDefaultToolCallRenderProps as ɵDefaultToolCallRenderProps$1, ɵDialogFocusOptions, ɵDockedSidebar, ɵDockedSidebarPlacement, ɵDockedSidebarRegistry, ɵDockedSidebarState, ɵDockedSidebarTransition, ɵDrawerThread, ɵElementHeightState, ɵExitPresence, ɵExitPresenceState, ɵFEEDBACK_COMMENT_CLOSE_DELAY_MS, ɵFeedbackCommentController, ɵFeedbackCommentControllerOptions, ɵFeedbackCommentState, ɵFeedbackCommentVia, ɵFeedbackKeyEvent, ɵFeedbackThumb, ɵFeedbackThumbAttributes, ɵFeedbackThumbHandlers, ɵFreshThreadId, ɵFrontendToolRenderer, ɵGENERATE_SANDBOXED_UI_ARGS_SCHEMA, ɵGenerativeUIDebugFunction, ɵGenerativeUIDebugPromptSection, ɵGenerativeUIDebugRun, ɵGenerativeUIDebugSnapshot, ɵGenerativeUIDebugSource, ɵGenerativeUIDebugSurface, ɵGenerativeUIDefault, ɵGenerativeUIDefaultInput, ɵHITL_ABORTED_MESSAGE, ɵHOVER_MENU_CLOSE_DELAY_MS, ɵHoverMenuController, ɵHoverMenuState, ɵHumanInTheLoopRegistry, ɵINLINE_FEATURE_WARNING_STYLE, ɵInspectorKiteArtwork, ɵInspectorKiteGradient, ɵInspectorKitePath, ɵInspectorKiteStop, ɵInspectorThreadOverride, ɵInspectorThreadOverrideInput, ɵInspectorThreadOverrideSnapshot, ɵInterruptController, ɵInterruptControllerOptions, ɵInterruptDecision, ɵInterruptEvent, ɵInterruptExpiredError, ɵInterruptRunner, ɵInterruptSnapshot, ɵInterruptState, ɵInterruptToolResult, ɵJsonSerializable, ɵJsonSerializable as ɵJsonSerializable$1, ɵKEYBOARD_OPEN_THRESHOLD_PX, ɵKeyboardState, ɵLICENSE_BANNER_OFFSET, ɵLICENSE_BANNER_STYLE, ɵLastUserMessageState, ɵLearnFromUserActionFields, ɵLearningAutoStarter, ɵLicenseBannerDetails, ɵLicenseBannerSeverity, ɵLicenseBannerSpec, ɵLicenseBannerType, ɵLicenseStateInput, ɵMAX_SOCKET_RETRIES, ɵMESSAGE_FEEDBACK_EVENT_NAME, ɵMESSAGE_FEEDBACK_MAX_COMMENT_LENGTH, ɵMOBILE_MAX_WIDTH_QUERY, ɵMemoryEnvironment, ɵMemoryMetadataEvent, ɵMemoryRuntimeContext, ɵMemoryState, ɵMemoryStore, ɵMessageFeedback, ɵMessageFeedbackControls, ɵMessageFeedbackRating, ɵMessageFeedbackScope, ɵMessageViewInput, ɵMessageViewModel, ɵModeRecorder, ɵOPEN_GENERATIVE_UI_CONTENT_SCHEMA, ɵOPEN_GENERATIVE_UI_DESIGN_CONTEXT_DESCRIPTION, ɵOPEN_GENERATIVE_UI_SANDBOX_FUNCTIONS_CONTEXT_DESCRIPTION, ɵOpenGenerativeUIController, ɵOpenGenerativeUIControllerOptions, ɵOpenGenerativeUIPhase, ɵOpenGenerativeUISandboxFunction, ɵOpenGenerativeUISchema, ɵOpenGenerativeUIState, ɵOpenThreadRegistry, ɵPLACEHOLDER_CYCLE_MS, ɵPOPUP_ANIMATION_MS, ɵPOPUP_DEFAULT_HEIGHT, ɵPOPUP_DEFAULT_WIDTH, ɵPendingInterrupt, ɵPhoenixChannelLike, ɵPhoenixChannelOptions, ɵPhoenixChannelSession, ɵPhoenixJoinOutcome, ɵPhoenixPushLike, ɵPhoenixSocketLike, ɵPhoenixSocketOptions, ɵPhoenixSocketSession, ɵPhoenixSocketSignal, ɵPinMessageToTopOptions, ɵPlaceholderCycler, ɵPlaceholderCyclerSnapshot, ɵPopupDismissOptions, ɵProviderConfigDiagnostic, ɵProviderConfigDiagnosticCode, ɵProviderConfigInput, ɵProviderFrontendTool, ɵProviderHumanInTheLoop, ɵProviderRegistryInput, ɵProviderToolRenderer, ɵRESIZE_SETTLE_MS, ɵRUNTIME_PROBE_TIMEOUT_MS, ɵRawToolCallRenderProps, ɵReasoningDisclosure, ɵReasoningDisclosureOptions, ɵReasoningDisclosureState, ɵReasoningDuration, ɵRecordAnnotationArgs, ɵRecordAnnotationResult, ɵRendererKind, ɵRendererRegistry, ɵRendererRegistryInit, ɵReportProviderConfigDiagnosticsOptions, ɵResolvedProviderConfig, ɵRunnableCommand, ɵRuntimeInfo, ɵRuntimeInfoStore, ɵSCROLL_BOTTOM_THRESHOLD_PX, ɵSIDEBAR_DEFAULT_WIDTH, ɵSIDEBAR_TRANSITION_MS, ɵSTABLE_ARRAY_WARNINGS, ɵSandboxFunctionHandle, ɵSandboxLocalApi, ɵSidebarPosition, ɵSlashKeyResult, ɵSlashMenuState, ɵStableArrayProp, ɵStaticSuggestionInput, ɵStickToBottom, ɵStickToBottomOptions, ɵSuggestionsBinding, ɵSuggestionsBindingOptions, ɵSuggestionsConfigInput, ɵSuggestionsConfigInput as ɵSuggestionsConfigInput$1, ɵTAB_STOP_SELECTOR, ɵTHREAD_REQUEST_TIMEOUT_MS, ɵTOOL_CALL_STATUS_ICONS, ɵTOOL_CALL_STATUS_LABEL_KEYS, ɵTRANSCRIPTION_ERROR_TIMEOUT_MS, ɵTextareaMetrics, ɵThread, ɵThreadBaselineResetOptions, ɵThreadEnvironment, ɵThreadMetadataEvent, ɵThreadRuntimeContext, ɵThreadSelection, ɵThreadSelectionInput, ɵThreadSelectors, ɵThreadStore, ɵThreadSummary, ɵThreadSummary as ɵThreadSummary$1, ɵThreadSwitchCoordinator, ɵThreadsController, ɵThreadsCore, ɵThreadsDrawerCallbacks, ɵThreadsDrawerConfig, ɵThreadsDrawerThreads, ɵThreadsInput, ɵThreadsSnapshot, ɵToolCallCardStatus, ɵToolCallDisplayContextValue, ɵToolCallGroupAppearance, ɵToolCallGroupAppearance as ɵToolCallGroupAppearance$1, ɵToolCallLayout, ɵToolCallRendererNames, ɵToolCallRendererNamesOptions, ɵToolCallRowStatus, ɵToolCallSegment, ɵToolRendererShape, ɵToolsMenuDisplayEntry, ɵTranscriptionCore, ɵTranscriptionErrorLabelKey, ɵTurnOpenState, ɵTurnWork, ɵUserMessageMediaPart, ɵWebsandboxConstructor, ɵWebsandboxInstance, ɵWebsandboxLoader, ɵWorkSummaryInput, ɵWorkTime, ɵadaptDefaultToolCallRenderProps, ɵaddOpenGenerativeUIContexts, ɵagentUpdateHandlers, ɵappendTranscript, ɵassembleActivityRenderers, ɵassembleHumanInTheLoop, ɵassembleProviderRegistry, ɵassembleProviderToolRenderers, ɵassembleProviderTools, ɵbindDialogFocus, ɵbindPopupDismiss, ɵbindSuggestionsConfig, ɵbuildHumanInTheLoopTool, ɵbuildLearnFromUserActionPayload, ɵbuildOpenGenerativeUIContexts, ɵbuildToolCallRenderProps, ɵbuildUserMessage, ɵbuildUserMessageContent, ɵcanPreviewDocument, ɵclampSlashIndex, ɵclearAgentInterruptState, ɵclearAgentThreadCursors, ɵcn, ɵcomponentToolDescription, ɵcomposerButtonState, ɵcopilotIconSvgAttributes, ɵcopilotIcons, ɵcountFailedToolCalls, ɵcreateChatSubmitter, ɵcreateComposerAutosize, ɵcreateDockedSidebar, ɵcreateExitPresence, ɵcreateLastUserMessageTracker, ɵcreateMemoryStore, ɵcreateMessageViewModel, ɵcreateObjectUrlFromSource, ɵcreateOpenGenerativeUITool, ɵcreateStickToBottom, ɵcreateThreadSelectors, ɵcreateThreadStore, ɵcreateThreadsDrawerActions, ɵcreateWaveformRenderer, ɵdecodeTextSource, ɵdeduplicateMessages, ɵdescribeActivityRendererFailure, ɵdescribeUnrenderedToolCalls, ɵdimensionToCss, ɵdockedSidebarRegistryFor, ɵduplicateMessagesWarning, ɵextractCompleteStyles, ɵfilterCommands, ɵfindActivityRenderer, ɵfindChatInput, ɵfindToolMessage, ɵfitTextareaHeight, ɵflattenCommandItems, ɵflattenToolsMenuForDisplay, ɵflattenUserMessageContent, ɵformatCountLabel, ɵformatLabel, ɵformatReasoningDuration, ɵformatReasoningDurationLabel, ɵformatToolNames, ɵformatWorkDuration, ɵgetAgentCapabilities, ɵgetAgentInterruptState, ɵgetAgentResolver, ɵgetArgumentPreview, ɵgetBranchNavState, ɵgetChatViewState, ɵgetCustomMessageRenderProps, ɵgetInlineFeatureWarningSpec, ɵgetLastUserMessageId, ɵgetLatestTurnKey, ɵgetLicenseBannerSpec, ɵgetMessageFeedback, ɵgetMessageFeedbackControls, ɵgetMessageRunStateSnapshot, ɵgetReasoningHeaderLabel, ɵgetThreadsDrawerElementProps, ɵgetToolCallBadge, ɵgetToolCallGroupState, ɵgetToolCallLayouts, ɵgetToolCallPreview, ɵgetToolCallRendererNames, ɵgetToolCallRowStatus, ɵgetToolCallStatus, ɵgetToolResults, ɵgetTurnWork, ɵgetUserMessageMediaFilename, ɵgetUserMessageMediaParts, ɵgetWorkOpenState, ɵgetWorkSummaryText, ɵhasAssistantMessageText, ɵhitlRenderProps, ɵimplementsConnect, ɵinitialKeyboardState, ɵinspectorKiteFill, ɵinspectorKiteIcon, ɵinspectorShortcuts, ɵisContentPart, ɵisContentScrolledToBottom, ɵisCopilotKitFeature, ɵisFocusVisible, ɵisHttpAgent, ɵisLearningFeedbackEnabled, ɵisMobileViewport, ɵisOpenGenerativeUIActive, ɵisOwnFeedbackThumb, ɵisRetryableMemoryStatus, ɵisScrolledToBottom, ɵisTurnWorkOpen, ɵisTurnWorking, ɵjoinPhoenixChannel$, ɵloadWebsandbox, ɵmapMemoryMetadataEvent, ɵmatchActivityRenderer, ɵmeasureTextarea, ɵmemoryAdapterEvents, ɵmemoryDomainEvents, ɵmemoryReducer, ɵmemoryRestEvents, ɵmessagesFingerprint, ɵmorphViewTransition, ɵnextSlashIndex, ɵnextTabStop, ɵnormalizeAutoScroll, ɵnormalizeToolCallStatus, ɵnormalizeToolsMenu, ɵobservePhoenixEvent$, ɵobservePhoenixJoinOutcome$, ɵobservePhoenixSocketHealth$, ɵobservePhoenixSocketSignals$, ɵparseSlashQuery, ɵparseToolCallArguments, ɵphoenixChannel$, ɵphoenixSocket$, ɵpinMessageToTop, ɵpluralize, ɵprocessPartialHtml, ɵprojectThread, ɵpublicKeyHeaderDefaults, ɵreadKeyboardState, ɵrecordAnnotation, ɵrecordWorkTime, ɵregisterFrontendTools, ɵreportProviderConfigDiagnostics, ɵreserveLicenseBannerOffset, ɵresetAgentThreadBaseline, ɵresetMessageFeedbackCache, ɵresolveActivityRenderer, ɵresolveAgentId, ɵresolveAgentThreadId, ɵresolveChatNotice, ɵresolveComposerKey, ɵresolveCustomMessageRenderContext, ɵresolveCustomMessageRenderers, ɵresolveGenerativeUIDefault, ɵresolveLicenseState, ɵresolveProviderConfig, ɵresolveSlashKey, ɵresolveThreadsLicense, ɵresolveToolCallAgentId, ɵresolveToolCallRenderer, ɵrmsAmplitude, ɵselectFetchMoreError, ɵselectHasNextPage, ɵselectIsFetchingNextPage, ɵselectIsMutating, ɵselectMemories, ɵselectMemoriesAvailable, ɵselectMemoriesError, ɵselectMemoriesIsLoading, ɵselectMemoriesIsMutating, ɵselectMemoriesRealtimeStatus, ɵselectThreads, ɵselectThreadsError, ɵselectThreadsIsLoading, ɵserializeContextValue, ɵsetMessageFeedback, ɵshallowEqualRecord, ɵshouldShowAssistantToolbar, ɵshouldShowMessageCursor, ɵshowsComposerDisclaimer, ɵsnapshotAgentState, ɵstableArrayPropWarning, ɵstopAgentWithFallback, ɵstringifyToolCallAttr, ɵstringifyToolCallPayload, ɵsubscribeToAgentErrors, ɵsubscribeToAgentSuggestions, ɵsubscribeToAgentUpdates, ɵsubscribeToLearningFeedbackEnabled, ɵsubscribeToMessageFeedback, ɵsyncRecorderToMode, ɵthreadAdapterEvents, ɵtoDefaultToolCallStatus, ɵtoDrawerThread, ɵtoLearningConfig, ɵtoolCallAppearance, ɵtoolRendererShapeChanged, ɵtranscribeAudio, ɵtranscriptionErrorMessageKey, ɵtranscriptionErrorNotice, ɵvalidateAgentBinding, ɵwaitForActiveRun, ɵwatchElementHeight, ɵwatchElementWidth, ɵwatchKeyboardState, ɵwatchMobileViewport, ɵwithHeaderDefaults } from "@copilotkit/core";
6
+ import * as _ag_ui_client0 from "@ag-ui/client";
7
+ import { ACTIVITY_HISTORY_METADATA, AGUIConnectNotImplementedError, AGUIEnforcementLimitError, AGUIError, AGUIEvent, AGUIEventByType, AGUIEventOf, AGUI_METADATA_KEY, AbstractAgent, AbstractAgent as AbstractAgent$1, ActivityDeltaEvent, ActivityDeltaEventProps, ActivityMessage, ActivitySnapshotEvent, ActivitySnapshotEventProps, AddOperation, AgentCapabilities, AgentConfig, AgentDebugConfig, AgentStateMutation, AgentSubscriber, AgentSubscriberParams, AssistantMessage, Attributable, AudioInputContent, AudioInputPart, AudioPart, BackwardCompatibility_0_0_39, BackwardCompatibility_0_0_45, BackwardCompatibility_0_0_57, BaseEvent, BaseEventFields, BaseEventProps, BaseMessage, CompatibilityBoundary, ContentPart, Context, CopyOperation, CustomEvent, CustomEventProps, DEFAULT_MAX_ENFORCED_ENTRIES, DataSource, DebugLogger, DebugLoggerInput, DeveloperMessage, DocumentInputContent, DocumentInputPart, DocumentPart, EnforcementOptions, Event, EventPayloadOf, EventType, ExecutionCapabilities, FileSource, FilterToolCallsMiddleware, FunctionCall, FunctionMiddleware, HttpAgent, HttpAgentConfig, HttpAgentFetchFn, HumanInTheLoopCapabilities, IdentityCapabilities, ImageInputContent, ImageInputPart, ImagePart, InputContent, InputContentDataSource, InputContentPart, InputContentSource, InputContentUrlSource, Interrupt, JsonPatch, JsonPatchOperation, JsonPointer, Message, MessagesSnapshotEvent, MessagesSnapshotEventProps, Metadata, Middleware, MiddlewareFunction, MoveOperation, MultiAgentCapabilities, MultimodalCapabilities, MultimodalInputCapabilities, MultimodalOutputCapabilities, OutputCapabilities, PROTOCOL_VERSION, PartSource, RawEvent, RawEventProps, ReasoningCapabilities, ReasoningEncryptedValueEvent, ReasoningEncryptedValueEventProps, ReasoningEncryptedValueSubtype, ReasoningEndEvent, ReasoningEndEventProps, ReasoningMessage, ReasoningMessageChunkEvent, ReasoningMessageChunkEventProps, ReasoningMessageContentEvent, ReasoningMessageContentEventProps, ReasoningMessageEndEvent, ReasoningMessageEndEventProps, ReasoningMessageStartEvent, ReasoningMessageStartEventProps, ReasoningStartEvent, ReasoningStartEventProps, RemoveOperation, ReplaceOperation, ResolvedAgentDebugConfig, ResumeEntry, ResumeStatus, Role, RunAgentInput, RunAgentParameters, RunAgentResult, RunErrorEvent, RunErrorEventProps, RunFinishedCancelledOutcome, RunFinishedEvent, RunFinishedEventProps, RunFinishedInterruptOutcome, RunFinishedOutcome, RunFinishedSuccessOutcome, RunStartedEvent, RunStartedEventProps, State, StateCapabilities, StateDeltaEvent, StateDeltaEventProps, StateSnapshotEvent, StateSnapshotEventProps, StepFinishedEvent, StepFinishedEventProps, StepStartedEvent, StepStartedEventProps, SubagentErrorEvent, SubagentErrorEventProps, SubagentFinishedEvent, SubagentFinishedEventProps, SubagentFinishedOutcome, SubagentFinishedSuccessOutcome, SubagentFinishedSuspendedOutcome, SubagentInfo, SubagentRunId, SubagentStartedEvent, SubagentStartedEventProps, SystemMessage, TestOperation, TextInputContent, TextMessageChunkEvent, TextMessageChunkEventProps, TextMessageContentEvent, TextMessageContentEventProps, TextMessageEndEvent, TextMessageEndEventProps, TextMessageRole, TextMessageStartEvent, TextMessageStartEventProps, TextPart, TokenUsage, Tool, ToolCall, ToolCallArgsEvent, ToolCallArgsEventProps, ToolCallChunkEvent, ToolCallChunkEventProps, ToolCallEndEvent, ToolCallEndEventProps, ToolCallResultEvent, ToolCallResultEventProps, ToolCallStartEvent, ToolCallStartEventProps, ToolMessage, ToolsCapabilities, TransportCapabilities, UnrecognizedEvent, UrlSource, UserMessage, VideoInputContent, VideoInputPart, VideoPart, aggregateTokenUsage, authoritativeActivityTypes, buildResumeArray, compactEvents, contentHasMedia, contentToText, convertToLegacyEvents, createDebugLogger, defaultApplyEvents, enforceEvents, enforceOutgoingInput, getRunOutcome, isInterruptExpired, isRecognizedEvent, mergeMetadata, omitOptionalNulls, parseProtoStream, parseSSEStream, randomUUID, resolveAgentDebugConfig, resolveDebugLogger, runHttpRequest, structuredClone_, tokenUsageFromAiSdkUsage, tokenUsageFromLangChainMetadata, transformChunks, transformHttpEventStream, verifyEvents, withAuthoritativeActivityTypes } from "@ag-ui/client";
4
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";
5
9
  import * as react from "react";
6
10
  import React$1, { ComponentType, ReactNode } from "react";
7
11
  import * as react_jsx_runtime0 from "react/jsx-runtime";
8
- import { Attachment, Attachment as Attachment$1, AttachmentModality, AttachmentsConfig, AttachmentsConfig as AttachmentsConfig$1, DebugConfig, InferSchemaOutput, InputContentSource as InputContentSource$1, StandardSchemaV1 } from "@copilotkit/shared";
9
- import { ActivityMessage as ActivityMessage$1, AgentCapabilities as AgentCapabilities$1, AssistantMessage as AssistantMessage$1, Message as Message$1, ReasoningMessage as ReasoningMessage$1, ToolCall as ToolCall$1, ToolMessage as ToolMessage$1, UserMessage as UserMessage$1 } from "@ag-ui/core";
10
- import { z } from "zod";
12
+ import { Attachment, Attachment as Attachment$1, AttachmentModality, AttachmentsConfig, AttachmentsConfig as AttachmentsConfig$1, InferSchemaOutput, InputContentSource as InputContentSource$1, StandardSchemaV1 } from "@copilotkit/shared";
11
13
  import { MCPAppsActivityContent, MCPAppsActivityContent as MCPAppsActivityContent$1, MCPAppsActivityContentSchema, MCPAppsActivityType, ɵMcpFollowUpHost, ɵrunMcpFollowUp } from "@copilotkit/mcp-apps-renderer/activity";
12
- import { Theme, Theme as A2UITheme, defaultTheme as a2uiDefaultTheme } from "@copilotkit/a2ui-renderer";
13
14
  import { Anchor as InspectorAnchor } from "@copilotkit/web-inspector";
14
15
  import { CopilotKitContextValue, useCopilotKit, useLicenseContext } from "@copilotkit/react-core/context";
16
+ import { ActivityMessage as ActivityMessage$1, AgentCapabilities as AgentCapabilities$1, AssistantMessage as AssistantMessage$1, Message as Message$1, ReasoningMessage as ReasoningMessage$1, ToolCall as ToolCall$1, ToolMessage as ToolMessage$1, UserMessage as UserMessage$1 } from "@ag-ui/core";
15
17
 
16
- //#region src/components/chat/BasicMarkdownRenderer.d.ts
17
- /**
18
- * Dependency-light built-in markdown renderer (basic GFM). Walks the
19
- * framework-agnostic token tree from `@copilotkit/core` into React elements.
20
- * No syntax highlighting, no math, no table/image action buttons — plug in a
21
- * custom renderer via `CopilotKitProvider markdownRenderer={...}` for those.
22
- */
23
- declare function BasicMarkdownRenderer({
24
- content,
25
- className
26
- }: MarkdownRendererProps): react_jsx_runtime0.JSX.Element | null;
27
- declare namespace BasicMarkdownRenderer {
28
- var displayName: string;
29
- }
30
- //#endregion
31
18
  //#region src/components/chat/StreamingMarkdownDefaultRenderer.d.ts
32
19
  /**
33
20
  * react-core's built-in default markdown renderer — a thin adapter over
34
- * `@copilotkit/markdown-renderer`'s streaming renderer. Maps the pluggable
21
+ * `@copilotkit/markdown`'s streaming renderer. Maps the pluggable
35
22
  * renderer contract (`{ content, isStreaming, className }`) onto the streaming
36
23
  * renderer for streaming-safe incremental rendering + per-token animation.
37
24
  * Still overridable via the slot/provider pluggable interface.
@@ -52,152 +39,20 @@ declare namespace StreamingMarkdownDefaultRenderer {
52
39
  //#endregion
53
40
  //#region src/components/chat/CopilotChatAudioRecorder.d.ts
54
41
  /** Finite-state machine for every recorder implementation */
55
- type AudioRecorderState = "idle" | "recording" | "processing";
56
- /** Error subclass so callers can `instanceof`-guard recorder failures */
57
- declare class AudioRecorderError extends Error {
58
- constructor(message: string);
59
- }
42
+ type AudioRecorderState = ɵAudioRecorderState$1;
60
43
  interface AudioRecorderRef {
61
44
  state: AudioRecorderState;
62
45
  start: () => Promise<void>;
63
46
  stop: () => Promise<Blob>;
64
47
  dispose: () => void;
65
48
  }
49
+ /**
50
+ * Records from the microphone and draws the live level as a scrolling
51
+ * waveform. The recording itself is `ɵAudioRecorder` from
52
+ * `@copilotkit/core`; control it through the ref.
53
+ */
66
54
  declare const CopilotChatAudioRecorder: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & react.RefAttributes<AudioRecorderRef>>;
67
55
  //#endregion
68
- //#region src/providers/CopilotChatConfigurationProvider.d.ts
69
- declare const CopilotChatDefaultLabels: {
70
- chatInputPlaceholder: string;
71
- chatInputToolbarStartTranscribeButtonLabel: string;
72
- chatInputToolbarCancelTranscribeButtonLabel: string;
73
- chatInputToolbarFinishTranscribeButtonLabel: string;
74
- chatInputToolbarAddButtonLabel: string;
75
- chatInputToolbarToolsButtonLabel: string;
76
- chatInputToolbarSendButtonLabel: string;
77
- chatInputToolbarStopButtonLabel: string;
78
- assistantMessageToolbarCopyCodeLabel: string;
79
- assistantMessageToolbarCopyCodeCopiedLabel: string;
80
- assistantMessageToolbarCopyMessageLabel: string;
81
- assistantMessageToolbarInspectorLabel: string;
82
- assistantMessageToolbarInspectorDescription: string;
83
- assistantMessageToolbarInspectorLocalOnlyLabel: string;
84
- assistantMessageToolbarInspectorLocalOnlyDescription: string;
85
- assistantMessageToolbarInspectorTitle: string;
86
- assistantMessageToolbarInspectorHideLabel: string;
87
- assistantMessageToolbarInspectorHideDescription: string;
88
- assistantMessageToolbarThumbsUpLabel: string;
89
- assistantMessageToolbarThumbsDownLabel: string;
90
- assistantMessageFeedbackCommentPlaceholder: string;
91
- assistantMessageFeedbackCommentSubmitLabel: string;
92
- assistantMessageToolbarReadAloudLabel: string;
93
- assistantMessageToolbarRegenerateLabel: string;
94
- userMessageToolbarCopyMessageLabel: string;
95
- userMessageToolbarEditMessageLabel: string;
96
- userMessageToolbarPreviousBranchLabel: string;
97
- userMessageToolbarNextBranchLabel: string;
98
- chatDisclaimerText: string;
99
- chatToggleOpenLabel: string;
100
- chatToggleCloseLabel: string;
101
- chatScrollToBottomLabel: string;
102
- modalHeaderTitle: string;
103
- welcomeMessageText: string;
104
- reasoningMessageThinkingLabel: string;
105
- chatInputSlashMenuLabel: string;
106
- chatInputSlashMenuEmptyText: string;
107
- attachmentRemoveButtonLabel: string;
108
- attachmentPlayVideoButtonLabel: string;
109
- attachmentPreviewCloseButtonLabel: string;
110
- modalHeaderCloseButtonLabel: string;
111
- modalHeaderThreadsButtonLabel: string;
112
- sidebarLabel: string;
113
- };
114
- type CopilotChatLabels = typeof CopilotChatDefaultLabels;
115
- interface CopilotChatConfigurationValue {
116
- labels: CopilotChatLabels;
117
- agentId: string;
118
- threadId: string;
119
- isModalOpen: boolean;
120
- setModalOpen: (open: boolean) => void;
121
- /**
122
- * Whether the thread-list drawer is open. A sibling boolean to `isModalOpen`
123
- * (deliberately NOT folded into a tri-state enum): on desktop the chat modal
124
- * and the drawer coexist, so two independent booleans are required.
125
- */
126
- drawerOpen: boolean;
127
- /**
128
- * Toggles the drawer open state. On mobile viewports (`<768px`) opening the
129
- * drawer closes the chat modal (mutual exclusion); on desktop there is no
130
- * constraint.
131
- */
132
- setDrawerOpen: (open: boolean) => void;
133
- /**
134
- * True once a `<CopilotThreadsDrawer>` wrapper has registered itself with this chat
135
- * configuration. The header thread-list launcher renders ONLY when this is
136
- * set, so chats with no drawer stay byte-for-byte unchanged.
137
- */
138
- drawerRegistered: boolean;
139
- /**
140
- * Called by the drawer wrapper on mount to announce its presence (and flip
141
- * `drawerRegistered`). Returns a cleanup function that de-registers the
142
- * drawer on unmount.
143
- *
144
- * @returns A cleanup callback that reverses the registration.
145
- */
146
- registerDrawer: () => () => void;
147
- /**
148
- * Internal: registers the modal-close setter of the provider that actually
149
- * owns the rendered modal (a descendant that supplied `isModalDefaultOpen`),
150
- * so the drawer's mobile mutual-exclusion — owned by the top-most provider —
151
- * closes the modal that is genuinely on screen rather than the top-most
152
- * provider's own (possibly unrendered) modal state.
153
- *
154
- * @param closeModal - A setter the drawer may call to close the rendered modal.
155
- * @returns A cleanup callback that de-registers the closer.
156
- */
157
- ɵregisterModalCloser: (closeModal: (open: boolean) => void) => () => void;
158
- hasExplicitThreadId: boolean;
159
- /**
160
- * Imperatively sets the active thread for this chat configuration.
161
- *
162
- * Use this to drive the rendered thread without a host callback — e.g. a
163
- * `<CopilotThreadsDrawer>` selecting a thread row sets it explicitly so the chat
164
- * connects to that backend thread.
165
- *
166
- * Guarded like the top-level `<CopilotKit>` provider's `setThreadId`: when
167
- * the consumer controls the threadId via the `threadId` prop on this
168
- * provider, this is a no-op (a warning is logged) so a prop-controlled
169
- * threadId is never silently overridden.
170
- *
171
- * @param threadId - The thread id to make active.
172
- * @param options.explicit - Whether the thread is a caller choice. Defaults
173
- * to `true` (a picked thread). Pass `false` to set a non-explicit thread
174
- * so the welcome screen shows (see {@link startNewThread}).
175
- */
176
- setActiveThreadId: (threadId: string, options?: {
177
- explicit?: boolean;
178
- }) => void;
179
- /**
180
- * Resets the active thread to a fresh, non-explicit client-side thread: a
181
- * newly minted UUID with `hasExplicitThreadId=false`, so the welcome screen
182
- * shows. Pairs with the core `startNewThread()` to clear the conversation
183
- * with no host wiring.
184
- *
185
- * Guarded identically to {@link setActiveThreadId}: a no-op when the
186
- * threadId is prop-controlled.
187
- */
188
- startNewThread: () => void;
189
- }
190
- interface CopilotChatConfigurationProviderProps {
191
- children: ReactNode;
192
- labels?: Partial<CopilotChatLabels>;
193
- agentId?: string;
194
- threadId?: string;
195
- hasExplicitThreadId?: boolean;
196
- isModalDefaultOpen?: boolean;
197
- }
198
- declare const CopilotChatConfigurationProvider: React$1.FC<CopilotChatConfigurationProviderProps>;
199
- declare const useCopilotChatConfiguration: () => CopilotChatConfigurationValue | null;
200
- //#endregion
201
56
  //#region src/lib/slots.d.ts
202
57
  /** Existing union (unchanged) */
203
58
  type SlotValue<C extends React$1.ComponentType<any>> = C | string | Partial<React$1.ComponentProps<C>>;
@@ -317,7 +172,7 @@ declare namespace CopilotChatInput {
317
172
  */
318
173
  const ToolbarButton: React$1.FC<React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
319
174
  icon: React$1.ReactNode;
320
- labelKey: keyof CopilotChatLabels;
175
+ labelKey: keyof CopilotChatLabels$1;
321
176
  defaultClassName?: string;
322
177
  }>;
323
178
  const StartTranscribeButton: React$1.FC<React$1.ButtonHTMLAttributes<HTMLButtonElement>>;
@@ -337,38 +192,13 @@ declare namespace CopilotChatInput {
337
192
  const Disclaimer: React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>;
338
193
  }
339
194
  //#endregion
340
- //#region src/components/chat/tool-call-layout.d.ts
341
- /**
342
- * How the chat shows tool calls.
343
- *
344
- * - `"grouped"` (default): calls made in a row share one card, collapsed to a
345
- * summary ("Used 3 tools") that opens to a row per call.
346
- * - `"line"`: the same grouping as a quiet line of text, like the reasoning
347
- * message's "Thought for 4 seconds".
348
- * - `"stacked"`: the latest call on top of a stack of the earlier ones; click
349
- * to fan the stack out into its cards.
350
- * - `"turn"`: the agent works in the open (narration, then a row per call),
351
- * and when the reply is done everything before it folds into "Worked for 9s".
352
- * - `"separate"`: every call gets its own card, as before grouping existed.
353
- *
354
- * Only calls drawn by a renderer that opts into grouping (`group: true`) are
355
- * grouped; CopilotKit's built-in card from `useDefaultRenderTool()` does. Any
356
- * other call always shows on its own and splits the group around it.
357
- */
358
- type CopilotChatToolCallDisplay = "grouped" | "line" | "stacked" | "turn" | "separate";
359
- /** One tool call and, once it has finished, the message carrying its result. */
360
- interface ToolCallEntry {
361
- toolCall: ToolCall$1;
362
- toolMessage?: ToolMessage$1;
363
- }
364
- //#endregion
365
195
  //#region src/components/chat/CopilotChatToolCallGroup.d.ts
366
- type CopilotChatToolCallGroupAppearance = "card" | "line" | "stack";
196
+ type CopilotChatToolCallGroupAppearance = ɵToolCallGroupAppearance$1;
367
197
  interface CopilotChatToolCallGroupProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> {
368
198
  /** The calls in the group, in order. */
369
- calls: ToolCallEntry[];
199
+ calls: ToolCallEntry$1[];
370
200
  /** Renders one call through the registered renderers. */
371
- renderCall: (call: ToolCallEntry) => React$1.ReactNode;
201
+ renderCall: (call: ToolCallEntry$1) => React$1.ReactNode;
372
202
  /**
373
203
  * - `"card"` (default): one card with a summary header and a row per call.
374
204
  * - `"line"`: a quiet line of text that opens to a list of rows.
@@ -406,7 +236,7 @@ type CopilotChatToolCallsViewProps = {
406
236
  * view it follows the view's `toolCallDisplay`; on its own it defaults to
407
237
  * `"grouped"`.
408
238
  */
409
- display?: CopilotChatToolCallDisplay;
239
+ display?: CopilotChatToolCallDisplay$1;
410
240
  /**
411
241
  * Draws a group of calls made in a row: a component, a class name for the
412
242
  * default group, or props for it (e.g. `{ appearance: "line" }`).
@@ -612,7 +442,8 @@ type CopilotChatReasoningMessageProps = WithSlots<{
612
442
  /**
613
443
  * A reasoning message as a collapsible block. While the model reasons it is
614
444
  * open and the header shows `labels.reasoningMessageThinkingLabel`; when
615
- * streaming ends it collapses and the header reads "Thought for …". The
445
+ * streaming ends it collapses and the header reads
446
+ * `labels.reasoningMessageThoughtForLabel` ("Thought for 4 seconds"). The
616
447
  * `header` slot also receives `elapsedSeconds`.
617
448
  */
618
449
  declare function CopilotChatReasoningMessage({
@@ -693,7 +524,7 @@ interface CopilotChatWorkSummaryProps extends React$1.ButtonHTMLAttributes<HTMLB
693
524
  /** Whether the work (narration and tool calls) is showing. */
694
525
  isOpen: boolean;
695
526
  /** The tool calls the reply made. */
696
- calls: ToolCallEntry[];
527
+ calls: ToolCallEntry$1[];
697
528
  /**
698
529
  * How long the agent has worked on the reply, in ms, summed over its runs
699
530
  * so time spent waiting between them doesn't count. Only known for replies
@@ -705,8 +536,9 @@ interface CopilotChatWorkSummaryProps extends React$1.ButtonHTMLAttributes<HTMLB
705
536
  }
706
537
  /**
707
538
  * The line at the top of a reply in the `"turn"` tool-call display. While the
708
- * agent works it reads "Working 4s"; once the reply is done it reads "Worked
709
- * for 9s · 7 tools" and toggles the work it folded away.
539
+ * agent works it reads "Working 4s". Once the reply is done it reads "Worked
540
+ * for 9s" and "7 tools", and toggles the work it folded away. The text comes
541
+ * from the `workSummary...` and `toolCall...` chat labels.
710
542
  */
711
543
  declare function CopilotChatWorkSummary({
712
544
  isWorking,
@@ -961,7 +793,7 @@ type CopilotChatMessageViewProps = Omit<WithSlots<{
961
793
  * "Worked for 9s" once it's done; `"separate"` gives every call its own
962
794
  * card. Calls with a renderer of their own always show on their own.
963
795
  */
964
- toolCallDisplay?: CopilotChatToolCallDisplay;
796
+ toolCallDisplay?: CopilotChatToolCallDisplay$1;
965
797
  } & React$1.HTMLAttributes<HTMLDivElement>>, "children"> & {
966
798
  children?: (props: {
967
799
  isRunning: boolean;
@@ -994,9 +826,6 @@ declare namespace CopilotChatMessageView {
994
826
  }: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime0.JSX.Element;
995
827
  }
996
828
  //#endregion
997
- //#region src/components/chat/normalize-auto-scroll.d.ts
998
- type AutoScrollMode = "pin-to-bottom" | "pin-to-send" | "none";
999
- //#endregion
1000
829
  //#region src/components/chat/CopilotChatView.d.ts
1001
830
  type WelcomeScreenProps = WithSlots<{
1002
831
  welcomeMessage: React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>;
@@ -1011,7 +840,7 @@ type CopilotChatViewProps = WithSlots<{
1011
840
  suggestionView: typeof CopilotChatSuggestionView;
1012
841
  }, {
1013
842
  messages?: Message$1[];
1014
- autoScroll?: AutoScrollMode | boolean;
843
+ autoScroll?: ɵAutoScrollMode$1 | boolean;
1015
844
  isRunning?: boolean;
1016
845
  suggestions?: Suggestion$1[];
1017
846
  suggestionLoadingIndexes?: ReadonlyArray<number>;
@@ -1040,6 +869,13 @@ type CopilotChatViewProps = WithSlots<{
1040
869
  * and the bootstrap messages arriving from /connect.
1041
870
  */
1042
871
  isConnecting?: boolean;
872
+ /**
873
+ * Indicator shown while `isConnecting` is `true` and no messages have
874
+ * arrived yet, so restoring a thread's history doesn't render as an
875
+ * empty panel. Pass `false` to disable it, or a component, className, or
876
+ * props object to customize it.
877
+ */
878
+ connectingIndicator?: SlotValue<React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>> | boolean;
1043
879
  /**
1044
880
  * When `true`, the caller has explicitly picked a thread (via `threadId`
1045
881
  * prop or `CopilotChatConfigurationProvider`). Suppresses the welcome
@@ -1048,13 +884,6 @@ type CopilotChatViewProps = WithSlots<{
1048
884
  * connect) rather than a generic "start a new chat" greeting.
1049
885
  */
1050
886
  hasExplicitThreadId?: boolean;
1051
- /**
1052
- * @deprecated Use the `input` slot's `disclaimer` prop instead:
1053
- * ```tsx
1054
- * <CopilotChat input={{ disclaimer: MyDisclaimer }} />
1055
- * ```
1056
- */
1057
- disclaimer?: SlotValue<React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>>;
1058
887
  /**
1059
888
  * Slot for the "Using CopilotKit Intelligence" indicator. Pass-through
1060
889
  * to `CopilotChatMessageView`'s `intelligenceIndicator` slot — accepts a
@@ -1091,8 +920,8 @@ declare function CopilotChatView({
1091
920
  onDragLeave,
1092
921
  onDrop,
1093
922
  isConnecting,
923
+ connectingIndicator,
1094
924
  hasExplicitThreadId,
1095
- disclaimer,
1096
925
  intelligenceIndicator,
1097
926
  children,
1098
927
  className,
@@ -1100,7 +929,7 @@ declare function CopilotChatView({
1100
929
  }: CopilotChatViewProps): react_jsx_runtime0.JSX.Element;
1101
930
  declare namespace CopilotChatView {
1102
931
  const ScrollView: React$1.FC<React$1.HTMLAttributes<HTMLDivElement> & {
1103
- autoScroll?: AutoScrollMode | boolean;
932
+ autoScroll?: ɵAutoScrollMode$1 | boolean;
1104
933
  scrollThreadId?: string;
1105
934
  scrollToBottomButton?: SlotValue<React$1.FC<React$1.ButtonHTMLAttributes<HTMLButtonElement>>>;
1106
935
  feather?: SlotValue<React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>>;
@@ -1113,15 +942,28 @@ declare namespace CopilotChatView {
1113
942
  */
1114
943
  const ScrollToBottomButton: React$1.FC<React$1.ButtonHTMLAttributes<HTMLButtonElement>>;
1115
944
  const Feather: React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>;
945
+ /**
946
+ * Default indicator shown while a thread's history is being restored.
947
+ * Renders a spinner plus visually hidden `labels.chatConnectingLabel` text
948
+ * inside a `role="status"` region. Replace it via the `connectingIndicator`
949
+ * slot.
950
+ */
951
+ const ConnectingIndicator: React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>;
1116
952
  const WelcomeMessage: React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>;
1117
953
  const WelcomeScreen: React$1.FC<WelcomeScreenProps>;
1118
954
  }
1119
955
  //#endregion
1120
956
  //#region src/components/chat/CopilotChat.d.ts
1121
- type CopilotChatProps = Omit<CopilotChatViewProps, "messages" | "isRunning" | "suggestions" | "suggestionLoadingIndexes" | "onSelectSuggestion" | "attachments" | "onRemoveAttachment" | "onAddFile" | "dragOver" | "onDragOver" | "onDragLeave" | "onDrop" | "onError"> & {
957
+ type CopilotChatProps = Omit<CopilotChatViewProps, "messages" | "isRunning" | "suggestions" | "suggestionLoadingIndexes" | "onSelectSuggestion" | "attachments" | "onRemoveAttachment" | "onAddFile" | "dragOver" | "onDragOver" | "onDragLeave" | "onDrop" | "onError" | "inputMode"> & {
958
+ /**
959
+ * @deprecated Has no effect. `CopilotChat` sets the input mode from its own
960
+ * transcription state. To set it yourself, render `CopilotChatView` and pass
961
+ * `inputMode` there.
962
+ */
963
+ inputMode?: CopilotChatViewProps["inputMode"];
1122
964
  agentId?: string;
1123
965
  threadId?: string;
1124
- labels?: Partial<CopilotChatLabels>;
966
+ labels?: Partial<CopilotChatLabels$1>;
1125
967
  /**
1126
968
  * Enable Inspector message shortcuts for this chat (enabled by default).
1127
969
  * An explicit CopilotKit provider enableInspector value takes priority.
@@ -1219,7 +1061,7 @@ declare function CopilotModalHeader({
1219
1061
  children,
1220
1062
  className,
1221
1063
  ...rest
1222
- }: CopilotModalHeaderProps): string | number | bigint | boolean | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | react_jsx_runtime0.JSX.Element | null | undefined;
1064
+ }: CopilotModalHeaderProps): string | number | bigint | boolean | react_jsx_runtime0.JSX.Element | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | null | undefined;
1223
1065
  declare namespace CopilotModalHeader {
1224
1066
  var displayName: string;
1225
1067
  }
@@ -1381,23 +1223,12 @@ declare namespace CopilotPopup {
1381
1223
  * A conversation thread managed by CopilotKit Intelligence.
1382
1224
  *
1383
1225
  * Each thread has a unique `id`, an optional human-readable `name`, and
1384
- * timestamp fields tracking creation and update times.
1226
+ * ISO-8601 `createdAt` and `updatedAt` timestamps. `lastRunAt` is the time of
1227
+ * the most recent agent run, absent when the thread has never run; prefer it
1228
+ * over `updatedAt` for "last activity", since rename and archive do not bump
1229
+ * it. The shape is core's thread summary, which Angular also exposes.
1385
1230
  */
1386
- interface Thread {
1387
- id: string;
1388
- agentId: string;
1389
- name: string | null;
1390
- archived: boolean;
1391
- createdAt: string;
1392
- updatedAt: string;
1393
- /**
1394
- * ISO-8601 timestamp of the most recent agent run on this thread. Absent
1395
- * when the thread has never been run. Prefer this over `updatedAt` for
1396
- * user-facing "last activity" displays — it is not bumped by metadata-only
1397
- * actions like rename or archive.
1398
- */
1399
- lastRunAt?: string;
1400
- }
1231
+ type Thread = ɵThreadSummary$1;
1401
1232
  /**
1402
1233
  * Configuration for the {@link useThreads} hook.
1403
1234
  *
@@ -1457,7 +1288,9 @@ interface UseThreadsResult {
1457
1288
  * `null`. Unlike {@link error}, this EXCLUDES developer/config errors (a
1458
1289
  * missing runtime URL, or a runtime that does not advertise thread
1459
1290
  * endpoints), so an end-user surface can render it directly without leaking
1460
- * a developer-facing configuration message into the UI.
1291
+ * a developer-facing configuration message into the UI. It does report a
1292
+ * runtime that refuses to list threads because the caller has no identity
1293
+ * (no `identifyUser`), since the list cannot load until that is set.
1461
1294
  */
1462
1295
  listError: Error | null;
1463
1296
  /**
@@ -1781,76 +1614,22 @@ interface MCPAppsActivityRendererProps {
1781
1614
  /**
1782
1615
  * MCP Apps Extension Activity Renderer
1783
1616
  *
1784
- * Renders MCP Apps UI in a sandboxed iframe with full protocol support.
1785
- * Fetches resource content on-demand via proxied MCP requests. The React shell
1786
- * owns the iframe; `bindMcpApp` owns the protocol.
1617
+ * Renders MCP Apps UI in a sandboxed iframe with full protocol support. The
1618
+ * shared `ɵMcpAppHost` owns the iframe, its size and its state, and binds the
1619
+ * protocol session (`bindMcpApp`, loaded lazily); this component only draws
1620
+ * the state around it.
1787
1621
  */
1788
1622
  declare const MCPAppsActivityRenderer: React$1.FC<MCPAppsActivityRendererProps>;
1789
1623
  //#endregion
1790
1624
  //#region src/components/OpenGenerativeUIRenderer.d.ts
1791
1625
  declare const OpenGenerativeUIActivityType = "open-generative-ui";
1792
- declare const OpenGenerativeUIContentSchema: z.ZodObject<{
1793
- initialHeight: z.ZodOptional<z.ZodNumber>;
1794
- generating: z.ZodOptional<z.ZodBoolean>;
1795
- css: z.ZodOptional<z.ZodString>;
1796
- cssComplete: z.ZodOptional<z.ZodBoolean>;
1797
- html: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1798
- htmlComplete: z.ZodOptional<z.ZodBoolean>;
1799
- jsFunctions: z.ZodOptional<z.ZodString>;
1800
- jsFunctionsComplete: z.ZodOptional<z.ZodBoolean>;
1801
- jsExpressions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1802
- jsExpressionsComplete: z.ZodOptional<z.ZodBoolean>;
1803
- }, "strip", z.ZodTypeAny, {
1804
- html?: string[] | undefined;
1805
- initialHeight?: number | undefined;
1806
- generating?: boolean | undefined;
1807
- css?: string | undefined;
1808
- cssComplete?: boolean | undefined;
1809
- htmlComplete?: boolean | undefined;
1810
- jsFunctions?: string | undefined;
1811
- jsFunctionsComplete?: boolean | undefined;
1812
- jsExpressions?: string[] | undefined;
1813
- jsExpressionsComplete?: boolean | undefined;
1814
- }, {
1815
- html?: string[] | undefined;
1816
- initialHeight?: number | undefined;
1817
- generating?: boolean | undefined;
1818
- css?: string | undefined;
1819
- cssComplete?: boolean | undefined;
1820
- htmlComplete?: boolean | undefined;
1821
- jsFunctions?: string | undefined;
1822
- jsFunctionsComplete?: boolean | undefined;
1823
- jsExpressions?: string[] | undefined;
1824
- jsExpressionsComplete?: boolean | undefined;
1825
- }>;
1826
- type OpenGenerativeUIContent = z.infer<typeof OpenGenerativeUIContentSchema>;
1626
+ /** Validates Open Generative UI activity content (shared with Vue and Angular). */
1627
+ declare const OpenGenerativeUIContentSchema: _copilotkit_core0.ɵOpenGenerativeUISchema<OpenGenerativeUIContent>;
1827
1628
  /**
1828
- * Schema for the generateSandboxedUi tool call arguments.
1829
- * Used by the frontend tool renderer to display placeholder messages.
1629
+ * Schema for the generateSandboxedUi tool call arguments (shared with Vue and
1630
+ * Angular). It also describes the arguments to the model as JSON Schema.
1830
1631
  */
1831
- declare const GenerateSandboxedUiArgsSchema: z.ZodObject<{
1832
- initialHeight: z.ZodOptional<z.ZodNumber>;
1833
- placeholderMessages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1834
- css: z.ZodOptional<z.ZodString>;
1835
- html: z.ZodOptional<z.ZodString>;
1836
- jsFunctions: z.ZodOptional<z.ZodString>;
1837
- jsExpressions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1838
- }, "strip", z.ZodTypeAny, {
1839
- html?: string | undefined;
1840
- initialHeight?: number | undefined;
1841
- css?: string | undefined;
1842
- jsFunctions?: string | undefined;
1843
- jsExpressions?: string[] | undefined;
1844
- placeholderMessages?: string[] | undefined;
1845
- }, {
1846
- html?: string | undefined;
1847
- initialHeight?: number | undefined;
1848
- css?: string | undefined;
1849
- jsFunctions?: string | undefined;
1850
- jsExpressions?: string[] | undefined;
1851
- placeholderMessages?: string[] | undefined;
1852
- }>;
1853
- type GenerateSandboxedUiArgs = z.infer<typeof GenerateSandboxedUiArgsSchema>;
1632
+ declare const GenerateSandboxedUiArgsSchema: _copilotkit_core0.ɵOpenGenerativeUISchema<GenerateSandboxedUiArgs>;
1854
1633
  interface OpenGenerativeUIActivityRendererProps {
1855
1634
  activityType: string;
1856
1635
  content: OpenGenerativeUIContent;
@@ -1858,8 +1637,8 @@ interface OpenGenerativeUIActivityRendererProps {
1858
1637
  agent: unknown;
1859
1638
  }
1860
1639
  /**
1861
- * Outer wrapper — absorbs every parent re-render but only forwards
1862
- * throttled content snapshots to the memoized inner component.
1640
+ * Renders an Open Generative UI activity. The core controller throttles the
1641
+ * content and runs the websandbox iframes inside the container div.
1863
1642
  */
1864
1643
  declare const OpenGenerativeUIActivityRenderer: React$1.FC<OpenGenerativeUIActivityRendererProps>;
1865
1644
  /**
@@ -1903,45 +1682,16 @@ declare const OpenGenerativeUIToolRenderer: React$1.FC<{
1903
1682
  declare function CopilotKitStyles(): react_jsx_runtime0.JSX.Element | null;
1904
1683
  //#endregion
1905
1684
  //#region src/types/react-tool-call-renderer.d.ts
1906
- interface ReactToolCallRenderer<T = unknown> {
1907
- name: string;
1908
- /**
1909
- * Schema describing the tool arguments. Optional — renderers registered for
1910
- * tools without parameters (e.g. HITL confirm dialogs) have no schema.
1911
- */
1912
- args?: StandardSchemaV1<any, T>;
1913
- /**
1914
- * Optional agent ID to constrain this tool renderer to a specific agent.
1915
- * If specified, this renderer will only be used for the specified agent.
1916
- */
1917
- agentId?: string;
1918
- /**
1919
- * Whether calls this renderer draws join the chat's tool-call groups (see
1920
- * `toolCallDisplay` on `CopilotChatMessageView`). CopilotKit's built-in card
1921
- * sets it; a renderer that leaves it unset always shows its calls on their
1922
- * own, since the chat can't tell what it draws (it may even draw nothing).
1923
- */
1924
- group?: boolean;
1925
- render: React.ComponentType<{
1926
- name: string;
1927
- toolCallId: string;
1928
- args: Partial<T>;
1929
- status: ToolCallStatus$1.InProgress;
1930
- result: undefined;
1931
- } | {
1932
- name: string;
1933
- toolCallId: string;
1934
- args: T;
1935
- status: ToolCallStatus$1.Executing;
1936
- result: undefined;
1937
- } | {
1938
- name: string;
1939
- toolCallId: string;
1940
- args: T;
1941
- status: ToolCallStatus$1.Complete;
1942
- result: string;
1943
- }>;
1944
- }
1685
+ /**
1686
+ * A tool call renderer for React: a React component that draws one tool call
1687
+ * in the chat. The component receives {@link ToolCallRenderProps}.
1688
+ *
1689
+ * Pass a list of these to `renderToolCalls` on `CopilotKitProvider`, or build
1690
+ * one with `defineToolCallRenderer`.
1691
+ *
1692
+ * @typeParam T - The shape of the tool arguments.
1693
+ */
1694
+ type ReactToolCallRenderer<T = unknown> = ToolCallRendererDef$1<T, React$1.ComponentType<ToolCallRenderProps$1<T>>>;
1945
1695
  //#endregion
1946
1696
  //#region src/hooks/use-render-tool-call.d.ts
1947
1697
  interface UseRenderToolCallProps {
@@ -1960,20 +1710,22 @@ declare function useRenderToolCall(): ({
1960
1710
  }: UseRenderToolCallProps) => React$1.ReactElement | null;
1961
1711
  //#endregion
1962
1712
  //#region src/types/react-custom-message-renderer.d.ts
1963
- type ReactCustomMessageRendererPosition = "before" | "after";
1964
- interface ReactCustomMessageRenderer {
1965
- agentId?: string;
1966
- render: React.ComponentType<{
1967
- message: Message$1;
1968
- position: ReactCustomMessageRendererPosition;
1969
- runId: string;
1970
- messageIndex: number;
1971
- messageIndexInRun: number;
1972
- numberOfMessagesInRun: number;
1973
- agentId: string;
1974
- stateSnapshot: any;
1975
- }> | null;
1976
- }
1713
+ /** Where a custom message renderer draws, relative to its message. */
1714
+ type ReactCustomMessageRendererPosition = CustomMessageRendererPosition$1;
1715
+ /**
1716
+ * Props a React custom message renderer receives: the same as
1717
+ * {@link CustomMessageRenderProps}, with `stateSnapshot` typed `any` so a
1718
+ * component can read the agent state without a cast.
1719
+ */
1720
+ type ReactCustomMessageRenderProps = Omit<CustomMessageRenderProps$1, "stateSnapshot"> & {
1721
+ stateSnapshot: any;
1722
+ };
1723
+ /**
1724
+ * A custom message renderer for React: a component that draws before or
1725
+ * after each chat message. Return `null` from the component to draw nothing
1726
+ * for a message. A `null` render is skipped.
1727
+ */
1728
+ type ReactCustomMessageRenderer = CustomMessageRendererDef$1<React$1.ComponentType<ReactCustomMessageRenderProps> | null>;
1977
1729
  //#endregion
1978
1730
  //#region src/hooks/use-render-custom-messages.d.ts
1979
1731
  interface UseRenderCustomMessagesParams {
@@ -1988,51 +1740,19 @@ type ReactFrontendTool<T extends Record<string, unknown> = Record<string, unknow
1988
1740
  };
1989
1741
  //#endregion
1990
1742
  //#region src/types/human-in-the-loop.d.ts
1743
+ /**
1744
+ * A human-in-the-loop tool for React. It has no handler: the agent waits until
1745
+ * the `render` component calls `respond` with the user's answer.
1746
+ *
1747
+ * @typeParam T - The shape of the tool arguments.
1748
+ */
1991
1749
  type ReactHumanInTheLoop<T extends Record<string, unknown> = Record<string, unknown>> = Omit<FrontendTool$1<T>, "handler"> & {
1992
1750
  /**
1993
- * Render the human-in-the-loop UI for this tool call.
1994
- *
1995
- * Beyond the tool call's `args`/`status`/`result`, the render props carry
1996
- * attribution:
1997
- * - `toolCallId` — the AG-UI tool call id, unique per interrupt. It is the
1998
- * stable key for correlating this interrupt with runtime (sub)agent
1999
- * attribution — e.g. the `agentId` reported by `onToolExecutionStart`, or
2000
- * per-run attribution stamped on the event stream — so the UI can label
2001
- * the interrupt with the agent that actually raised it.
2002
- * - `agentId` — the agent this tool was *registered* to (the tool's own
2003
- * `agentId`), or `undefined` for an unscoped tool. This is the static
2004
- * registration scope; it is NOT necessarily the runtime (sub)agent that
2005
- * raised the interrupt. For runtime attribution, correlate `toolCallId`
2006
- * with the event-stream/`onToolExecutionStart` agent id.
2007
- */
2008
- render: React$1.ComponentType<{
2009
- name: string;
2010
- description: string;
2011
- toolCallId: string;
2012
- agentId?: string;
2013
- args: Partial<T>;
2014
- status: ToolCallStatus$1.InProgress;
2015
- result: undefined;
2016
- respond: undefined;
2017
- } | {
2018
- name: string;
2019
- description: string;
2020
- toolCallId: string;
2021
- agentId?: string;
2022
- args: T;
2023
- status: ToolCallStatus$1.Executing;
2024
- result: undefined;
2025
- respond: (result: unknown) => Promise<void>;
2026
- } | {
2027
- name: string;
2028
- description: string;
2029
- toolCallId: string;
2030
- agentId?: string;
2031
- args: T;
2032
- status: ToolCallStatus$1.Complete;
2033
- result: string;
2034
- respond: undefined;
2035
- }>;
1751
+ * Render the human-in-the-loop UI for this tool call. The component
1752
+ * receives {@link HumanInTheLoopRenderProps}, which also carry `toolCallId`
1753
+ * and `agentId` for attribution.
1754
+ */
1755
+ render: React$1.ComponentType<HumanInTheLoopRenderProps$1<T>>;
2036
1756
  };
2037
1757
  //#endregion
2038
1758
  //#region src/types/defineToolCallRenderer.d.ts
@@ -2041,89 +1761,22 @@ type ReactHumanInTheLoop<T extends Record<string, unknown> = Record<string, unkn
2041
1761
  * - Accepts a single object whose keys match ReactToolCallRenderer's fields: { name, args, render, agentId? }.
2042
1762
  * - Derives `args` type from the provided schema (any Standard Schema V1 compatible library).
2043
1763
  * - Ensures the render function param type exactly matches ReactToolCallRenderer<T>["render"]'s param.
2044
- * - For wildcard tools (name: "*"), args is optional and defaults to z.any()
1764
+ * - For wildcard tools (name: "*"), args is optional and defaults to a schema that accepts any value.
2045
1765
  */
2046
- type RenderProps<T> = {
2047
- name: string;
2048
- toolCallId: string;
2049
- args: Partial<T>;
2050
- status: ToolCallStatus$1.InProgress;
2051
- result: undefined;
2052
- } | {
2053
- name: string;
2054
- toolCallId: string;
2055
- args: T;
2056
- status: ToolCallStatus$1.Executing;
2057
- result: undefined;
2058
- } | {
2059
- name: string;
2060
- toolCallId: string;
2061
- args: T;
2062
- status: ToolCallStatus$1.Complete;
2063
- result: string;
2064
- };
2065
1766
  declare function defineToolCallRenderer(def: {
2066
1767
  name: "*";
2067
- render: (props: RenderProps<any>) => React$1.ReactElement | null;
1768
+ render: (props: ToolCallRenderProps$1<any>) => React$1.ReactElement | null;
2068
1769
  agentId?: string;
2069
1770
  group?: boolean;
2070
1771
  }): ReactToolCallRenderer<any>;
2071
1772
  declare function defineToolCallRenderer<S extends StandardSchemaV1>(def: {
2072
1773
  name: string;
2073
1774
  args: S;
2074
- render: (props: RenderProps<InferSchemaOutput<S>>) => React$1.ReactElement | null;
1775
+ render: (props: ToolCallRenderProps$1<InferSchemaOutput<S>>) => React$1.ReactElement | null;
2075
1776
  agentId?: string;
2076
1777
  group?: boolean;
2077
1778
  }): ReactToolCallRenderer<InferSchemaOutput<S>>;
2078
1779
  //#endregion
2079
- //#region src/types/interrupt.d.ts
2080
- /** Name of the legacy custom event agents emit to signal an interrupt. */
2081
- declare const INTERRUPT_EVENT_NAME = "on_interrupt";
2082
- /** Legacy custom-event interrupt payload (agent emits a custom `on_interrupt` event). */
2083
- interface InterruptEvent<TValue = unknown> {
2084
- name: string;
2085
- value: TValue;
2086
- }
2087
- /**
2088
- * Resolve the agent with user input for an interrupt.
2089
- *
2090
- * - Standard interrupts: records `{ status: "resolved", payload }` for the target
2091
- * interrupt (defaults to the primary one). Resumes once every open interrupt is
2092
- * addressed; returns the resume run result, or `void` while still awaiting others.
2093
- * - Legacy interrupts: resumes immediately via `command.resume = payload`.
2094
- */
2095
- type InterruptResolveFn = (payload?: unknown, interruptId?: string) => Promise<RunAgentResult$1 | void>;
2096
- /**
2097
- * Cancel an interrupt.
2098
- *
2099
- * - Standard interrupts: records `{ status: "cancelled" }` for the target interrupt
2100
- * (defaults to the primary one), then resumes once all are addressed.
2101
- * - Legacy interrupts: dismisses the pending interrupt without resuming.
2102
- */
2103
- type InterruptCancelFn = (interruptId?: string) => Promise<RunAgentResult$1 | void>;
2104
- interface InterruptHandlerProps<TValue = unknown> {
2105
- /**
2106
- * Legacy event shape (`{ name, value }`). Always present for back-compat: for
2107
- * standard interrupts, `value` is the primary `Interrupt` and `name` is `"on_interrupt"`.
2108
- * Prefer `interrupt` / `interrupts` for standard interrupts.
2109
- */
2110
- event: InterruptEvent<TValue>;
2111
- /** Primary standard interrupt (`interrupts[0]`), or `null` for legacy interrupts. */
2112
- interrupt: Interrupt | null;
2113
- /** All open standard interrupts (empty array for legacy interrupts). */
2114
- interrupts: Interrupt[];
2115
- resolve: InterruptResolveFn;
2116
- cancel: InterruptCancelFn;
2117
- }
2118
- interface InterruptRenderProps<TValue = unknown, TResult = unknown> {
2119
- event: InterruptEvent<TValue>;
2120
- interrupt: Interrupt | null;
2121
- interrupts: Interrupt[];
2122
- result: TResult;
2123
- resolve: InterruptResolveFn;
2124
- cancel: InterruptCancelFn;
2125
- }
2126
- //#endregion
2127
1780
  //#region src/types/sandbox-function.d.ts
2128
1781
  type SandboxFunction<TParams extends StandardSchemaV1 = StandardSchemaV1> = {
2129
1782
  name: string;
@@ -2139,6 +1792,30 @@ declare function useRenderActivityMessage(): {
2139
1792
  };
2140
1793
  //#endregion
2141
1794
  //#region src/hooks/use-frontend-tool.d.ts
1795
+ /**
1796
+ * Register a frontend tool while the component is mounted. The agent can
1797
+ * call it, and its `render` component draws the call in the chat.
1798
+ *
1799
+ * A tool with the same name and agentId as a tool that is already registered
1800
+ * (for example one from the provider's `tools`) overrides it while this
1801
+ * component is mounted. When the component unmounts, the overridden tool is
1802
+ * active again. The renderer stays registered after unmount, so past tool
1803
+ * calls still render in the chat history.
1804
+ *
1805
+ * @param tool - The tool to register.
1806
+ * @param deps - Extra values that re-register the tool when they change. Use
1807
+ * it when the handler closes over a value that is not part of the tool.
1808
+ *
1809
+ * @example
1810
+ * ```tsx
1811
+ * useFrontendTool({
1812
+ * name: "showWeather",
1813
+ * description: "Show the weather for a city",
1814
+ * parameters: z.object({ city: z.string() }),
1815
+ * handler: async ({ city }) => `Sunny in ${city}`,
1816
+ * });
1817
+ * ```
1818
+ */
2142
1819
  declare function useFrontendTool<T extends Record<string, unknown> = Record<string, unknown>>(tool: ReactFrontendTool<T>, deps?: ReadonlyArray<unknown>): void;
2143
1820
  //#endregion
2144
1821
  //#region src/hooks/use-frontend-tools.d.ts
@@ -2152,8 +1829,10 @@ declare function useFrontendTool<T extends Record<string, unknown> = Record<stri
2152
1829
  *
2153
1830
  * Tools are keyed by `name` plus `agentId`, the same as `useFrontendTool`. A
2154
1831
  * tool that disappears from the array is unregistered on the next render, and
2155
- * every tool is unregistered on unmount. Renderers stay registered after
2156
- * unmount so past tool calls still render in the chat history.
1832
+ * every tool is unregistered on unmount. A listed tool hides a tool with the
1833
+ * same name and agentId (for example one from the provider's `tools`) until it
1834
+ * is unregistered, and then the hidden tool is active again. Renderers stay
1835
+ * registered after unmount so past tool calls still render in the chat history.
2157
1836
  *
2158
1837
  * @param tools - The tools to register. May be empty and may change length.
2159
1838
  * @param deps - Extra dependencies that force re-registration, compared by
@@ -2343,13 +2022,8 @@ declare function useRenderTool<S extends StandardSchemaV1>(config: {
2343
2022
  }, deps?: ReadonlyArray<unknown>): void;
2344
2023
  //#endregion
2345
2024
  //#region src/hooks/use-default-render-tool.d.ts
2346
- type DefaultRenderProps = {
2347
- /** The name of the tool being called. */name: string; /** The id of the tool call being rendered. */
2348
- toolCallId: string; /** The parsed parameters passed to the tool call. */
2349
- parameters: unknown; /** Current execution status of the tool call. */
2350
- status: "inProgress" | "executing" | "complete"; /** The tool call result string, available only when `status` is `"complete"`. */
2351
- result: string | undefined;
2352
- };
2025
+ /** What a custom `useDefaultRenderTool` render receives. */
2026
+ type DefaultRenderProps = ɵDefaultToolCallRenderProps$1;
2353
2027
  /**
2354
2028
  * Registers a wildcard (`"*"`) tool-call renderer via `useRenderTool`.
2355
2029
  *
@@ -2524,7 +2198,7 @@ declare function useAgent({
2524
2198
  updates,
2525
2199
  throttleMs
2526
2200
  }?: UseAgentProps): {
2527
- agent: AbstractAgent$1;
2201
+ agent: _ag_ui_client0.AbstractAgent | _copilotkit_core0.ProxiedCopilotRuntimeAgent;
2528
2202
  /**
2529
2203
  * Whether `agent` is the real, runtime-synced (or locally-registered) agent
2530
2204
  * rather than a provisional stand-in returned while the runtime is still
@@ -2562,18 +2236,20 @@ declare function useCapabilities(agentId?: string): AgentCapabilities$1 | undefi
2562
2236
  /**
2563
2237
  * Represents any value that can be serialized to JSON.
2564
2238
  */
2565
- type JsonSerializable = string | number | boolean | null | JsonSerializable[] | {
2566
- [key: string]: JsonSerializable;
2567
- };
2239
+ type JsonSerializable = ɵJsonSerializable$1;
2568
2240
  /**
2569
2241
  * Context configuration for useAgentContext.
2570
- * Accepts any JSON-serializable value which will be converted to a string.
2242
+ * Accepts any value; a value that is not a string is sent as its JSON text.
2571
2243
  */
2572
2244
  interface AgentContextInput {
2573
2245
  /** A human-readable description of what this context represents */
2574
2246
  description: string;
2575
- /** The context value - will be converted to a JSON string if not already a string */
2576
- value: JsonSerializable;
2247
+ /**
2248
+ * The context value. A string is sent as-is; any other value is sent as its
2249
+ * JSON text, so it should be JSON-serializable. Interface types and optional
2250
+ * fields are accepted.
2251
+ */
2252
+ value: unknown;
2577
2253
  }
2578
2254
  declare function useAgentContext(context: AgentContextInput): void;
2579
2255
  //#endregion
@@ -2592,12 +2268,20 @@ declare function useSuggestions({
2592
2268
  }?: UseSuggestionsOptions): UseSuggestionsResult;
2593
2269
  //#endregion
2594
2270
  //#region src/hooks/use-configure-suggestions.d.ts
2595
- type StaticSuggestionInput = Omit<Suggestion$1, "isLoading"> & Partial<Pick<Suggestion$1, "isLoading">>;
2596
- type StaticSuggestionsConfigInput = Omit<StaticSuggestionsConfig$1, "suggestions"> & {
2597
- suggestions: StaticSuggestionInput[];
2598
- };
2599
- type SuggestionsConfigInput = DynamicSuggestionsConfig$1 | StaticSuggestionsConfigInput;
2600
- declare function useConfigureSuggestions(config: SuggestionsConfigInput | null | undefined, deps?: ReadonlyArray<unknown>): void;
2271
+ /**
2272
+ * Registers a suggestions configuration (dynamic or static) for the current
2273
+ * chat. A global config (no `consumerAgentId`, or `"*"`) applies to every
2274
+ * agent and loads for the surrounding chat's agent first.
2275
+ *
2276
+ * Pass `deps` to reload suggestions when values the config reads change.
2277
+ *
2278
+ * @example
2279
+ * useConfigureSuggestions({
2280
+ * instructions: "Suggest concise next steps for the user",
2281
+ * available: "always",
2282
+ * });
2283
+ */
2284
+ declare function useConfigureSuggestions(config: ɵSuggestionsConfigInput$1 | null | undefined, deps?: ReadonlyArray<unknown>): void;
2601
2285
  //#endregion
2602
2286
  //#region src/hooks/use-interrupt.d.ts
2603
2287
  type InterruptHandlerFn<TValue, TResult> = (props: InterruptHandlerProps<TValue>) => TResult | PromiseLike<TResult>;
@@ -2605,7 +2289,6 @@ type InterruptResultFromHandler<THandler> = THandler extends ((...args: never[])
2605
2289
  type InterruptResult<TValue, TResult> = InterruptResultFromHandler<InterruptHandlerFn<TValue, TResult>>;
2606
2290
  type InterruptRenderInChat = boolean | undefined;
2607
2291
  type UseInterruptReturn<TRenderInChat extends InterruptRenderInChat> = TRenderInChat extends false ? React$1.ReactElement | null : TRenderInChat extends true | undefined ? void : React$1.ReactElement | null | void;
2608
- /** Recognize thenables returned by interrupt preprocessing handlers. */
2609
2292
  /**
2610
2293
  * Configuration options for `useInterrupt`.
2611
2294
  */
@@ -2795,7 +2478,7 @@ interface LearnFromUserActionInput {
2795
2478
  /** ISO-8601 client-asserted timestamp. Defaults to server NOW() when absent. */
2796
2479
  occurredAt?: string;
2797
2480
  /**
2798
- * Caller-supplied idempotency key. When omitted, `recordAnnotation` generates a
2481
+ * Caller-supplied idempotency key. When omitted, `ɵrecordAnnotation` generates a
2799
2482
  * fresh UUID per call so retries collapse to the original row at the
2800
2483
  * platform. Supply your own to keep a single semantic event idempotent
2801
2484
  * across calls (e.g. a React re-render or a manual retry button).
@@ -2915,7 +2598,7 @@ interface UseAttachmentsReturn {
2915
2598
  fileInputRef: React$1.RefObject<HTMLInputElement | null>;
2916
2599
  /** Ref for the container element (used for scoped paste handling). */
2917
2600
  containerRef: React$1.RefObject<HTMLDivElement | null>;
2918
- /** Process an array of files (validate, upload, add to state). */
2601
+ /** Process an array of files (validate, upload, add to state). No-op while attachments are disabled. */
2919
2602
  processFiles: (files: File[]) => Promise<void>;
2920
2603
  /** Handler for `<input type="file" onChange>`. */
2921
2604
  handleFileUpload: (e: React$1.ChangeEvent<HTMLInputElement>) => Promise<void>;
@@ -2936,207 +2619,120 @@ interface UseAttachmentsReturn {
2936
2619
  }
2937
2620
  /**
2938
2621
  * Hook that manages file attachment state — uploads, drag-and-drop, paste,
2939
- * and lifecycle. All returned callbacks are referentially stable across
2940
- * renders (via useCallback) to avoid destabilizing downstream memoization.
2622
+ * and lifecycle. The queue itself (validation, uploads, ready state) lives in
2623
+ * `@copilotkit/core`'s `ɵAttachmentQueue`; this hook adds the DOM wiring. All
2624
+ * returned callbacks are referentially stable across renders.
2941
2625
  */
2942
2626
  declare function useAttachments({
2943
2627
  config
2944
2628
  }: UseAttachmentsProps): UseAttachmentsReturn;
2945
2629
  //#endregion
2946
- //#region src/hooks/use-learning-containers.d.ts
2947
- /**
2948
- * Arguments for {@link useLearningContainers}.
2949
- *
2950
- * @deprecated This interface supports only the legacy plural-container
2951
- * annotation. Configure `getLearningContainerId` on `CopilotKitIntelligence`
2952
- * for new Intelligence runtimes.
2953
- */
2954
- interface UseLearningContainersArgs {
2955
- /** Thread to apply the learning-container selection to. */
2630
+ //#region src/providers/CopilotChatConfigurationProvider.d.ts
2631
+ interface CopilotChatConfigurationValue {
2632
+ labels: CopilotChatLabels$1;
2633
+ agentId: string;
2956
2634
  threadId: string;
2635
+ isModalOpen: boolean;
2636
+ setModalOpen: (open: boolean) => void;
2957
2637
  /**
2958
- * The ordered list of learning container identifiers to activate for this
2959
- * thread. Defaults to `["project"]` on the backend when absent.
2638
+ * Whether the thread-list drawer is open. A sibling boolean to `isModalOpen`
2639
+ * (deliberately NOT folded into a tri-state enum): on desktop the chat modal
2640
+ * and the drawer coexist, so two independent booleans are required.
2960
2641
  */
2961
- learningContainers: readonly string[];
2962
- }
2963
- /**
2964
- * Legacy compatibility hook that keeps a thread's plural learning-container
2965
- * annotation in sync by emitting
2966
- * `set_learning_containers` annotations via the CopilotKit runtime annotate
2967
- * endpoint (`POST ${runtimeUrl}/annotate`).
2968
- *
2969
- * **Emit rules:**
2970
- * - On mount with `["project"]` (the backend default) → does NOT emit.
2971
- * Absence of an annotation equals the default, so the round-trip is skipped.
2972
- * - On mount with any other value → emits immediately.
2973
- * - On any subsequent content change (including a switch back to
2974
- * `["project"]`) → emits (a deliberate switch is always recorded).
2975
- * - On unmount or threadId change → emits a reset to `["project"]`
2976
- * so the backend is left in a clean state for the next consumer.
2977
- * Changing `learningContainers` within the same thread does NOT reset the
2978
- * thread; only the new value is emitted.
2979
- *
2980
- * Content-equality is evaluated via `JSON.stringify` so a fresh array literal
2981
- * with the same items does NOT trigger a redundant emit.
2982
- *
2983
- * If `runtimeUrl` is absent, all emits are silently skipped.
2984
- *
2985
- * @example
2986
- * ```tsx
2987
- * function ThreadPane({ threadId, userScope }: Props) {
2988
- * useLearningContainers({
2989
- * threadId,
2990
- * learningContainers: [userScope],
2991
- * });
2992
- * // ...
2993
- * }
2994
- * ```
2995
- *
2996
- * @deprecated This hook supports only the legacy plural-container annotation.
2997
- * Configure `getLearningContainerId` on `CopilotKitIntelligence` for new
2998
- * Intelligence runtimes.
2999
- */
3000
- declare function useLearningContainers({
3001
- threadId,
3002
- learningContainers
3003
- }: UseLearningContainersArgs): void;
3004
- //#endregion
3005
- //#region src/hooks/use-learning-containers-in-current-thread.d.ts
3006
- /**
3007
- * Arguments for {@link useLearningContainersInCurrentThread}.
3008
- * Same as {@link UseLearningContainersArgs} minus `threadId`, which is
3009
- * sourced from the surrounding `<CopilotChatConfigurationProvider>` at
3010
- * render time.
3011
- *
3012
- * @deprecated This type supports only the legacy plural-container annotation.
3013
- * Configure `getLearningContainerId` on `CopilotKitIntelligence` for new
3014
- * Intelligence runtimes.
3015
- */
3016
- type UseLearningContainersInCurrentThreadArgs = Omit<UseLearningContainersArgs, "threadId">;
3017
- /**
3018
- * Legacy compatibility hook that keeps the **current chat thread's** plural
3019
- * learning-container annotation in sync. The `threadId` is sourced from the surrounding
3020
- * `<CopilotChatConfigurationProvider>` (the same provider `<CopilotChat>`,
3021
- * `<CopilotSidebar>`, and friends set up), so callers in a chat-aware
3022
- * subtree don't need to thread an id through manually.
3023
- *
3024
- * **Throws on render** when there is no chat-config provider in scope or
3025
- * when the provider does not yet have an active `threadId`. Mount the hook
3026
- * inside a subtree that is guaranteed to have a thread context.
3027
- *
3028
- * If you need to manage an explicit thread, use {@link useLearningContainers}
3029
- * directly — two hooks, two crisp contracts, no mode confusion.
3030
- *
3031
- * @throws When no `CopilotChatConfigurationProvider` is in scope or when the
3032
- * active `threadId` is absent/empty.
3033
- *
3034
- * @example
3035
- * ```tsx
3036
- * function ThreadPanel({ scope }: Props) {
3037
- * useLearningContainersInCurrentThread({
3038
- * learningContainers: [scope],
3039
- * });
3040
- * // ...
3041
- * }
3042
- * ```
3043
- *
3044
- * @deprecated This hook supports only the legacy plural-container annotation.
3045
- * Configure `getLearningContainerId` on `CopilotKitIntelligence` for new
3046
- * Intelligence runtimes.
3047
- */
3048
- declare function useLearningContainersInCurrentThread({
3049
- learningContainers
3050
- }: UseLearningContainersInCurrentThreadArgs): void;
3051
- //#endregion
3052
- //#region src/a2ui/A2UIRecoveryStates.d.ts
3053
- /**
3054
- * Shared pre-paint lifecycle states for the A2UI surface renderer (OSS-162).
3055
- *
3056
- * The A2UI middleware drives the WHOLE generative-UI lifecycle on a single
3057
- * `a2ui-surface` activity (one stable messageId, `replace: true`), so the states
3058
- * below swap IN PLACE and the painted surface ultimately replaces them:
3059
- *
3060
- * building → animated skeleton + "Building interface" (+ optional ~N tokens)
3061
- * retrying → same skeleton; once perceptible, the sub-label becomes
3062
- * "Retrying generation… (N/M attempts)" (threshold-gated so a fast
3063
- * transient retry never flashes), with debug detail per debugExposure
3064
- * failed → a clean hard-failure card (replacing the skeleton), developer
3065
- * detail tucked into an expander gated by debugExposure
3066
- * painted → the surface renderer owns the UI (these states render nothing)
3067
- *
3068
- * Timing (`showAfterMs` / `showAfterAttempts`) and how much debug detail to surface
3069
- * (`debugExposure`) are client concerns; the server can override `debugExposure`
3070
- * by stamping it onto the activity content (it wins over the client option).
3071
- */
3072
- type A2UIRecoveryRendererOptions = {
3073
- /** Delay (ms) before the "Retrying…" sub-label becomes visible. Default 2000. */showAfterMs?: number; /** Show the "Retrying…" sub-label immediately once `attempt` reaches this. Default 2. */
3074
- showAfterAttempts?: number; /** How much retry/debug detail to surface. Default "collapsed". */
3075
- debugExposure?: "hidden" | "collapsed" | "verbose";
3076
- };
3077
- //#endregion
3078
- //#region src/providers/CopilotKitProvider.d.ts
3079
- interface CopilotKitProviderProps {
3080
- children: ReactNode;
3081
- runtimeUrl?: string;
2642
+ drawerOpen: boolean;
3082
2643
  /**
3083
- * Headers sent with every request. A record, or a sync or async builder
3084
- * that runs when each request is sent. An inline arrow is fine. The builder
3085
- * should be cheap; cache tokens in it (Clerk's `getToken()` already does).
2644
+ * Toggles the drawer open state. On mobile viewports (`<768px`) opening the
2645
+ * drawer closes the chat modal (mutual exclusion); on desktop there is no
2646
+ * constraint.
3086
2647
  */
3087
- headers?: CopilotKitHeadersSource$1;
2648
+ setDrawerOpen: (open: boolean) => void;
3088
2649
  /**
3089
- * Credentials mode for fetch requests (e.g., "include" for HTTP-only cookies in cross-origin requests).
2650
+ * True once a `<CopilotThreadsDrawer>` wrapper has registered itself with this chat
2651
+ * configuration. The header thread-list launcher renders ONLY when this is
2652
+ * set, so chats with no drawer stay byte-for-byte unchanged.
3090
2653
  */
3091
- credentials?: RequestCredentials;
2654
+ drawerRegistered: boolean;
3092
2655
  /**
3093
- * CSP nonce for the `<style>` tags CopilotKit adds. Set it when your
3094
- * Content-Security-Policy limits `style-src` to a nonce.
2656
+ * Called by the drawer wrapper on mount to announce its presence (and flip
2657
+ * `drawerRegistered`). Returns a cleanup function that de-registers the
2658
+ * drawer on unmount.
2659
+ *
2660
+ * @returns A cleanup callback that reverses the registration.
3095
2661
  */
3096
- nonce?: string;
2662
+ registerDrawer: () => () => void;
3097
2663
  /**
3098
- * Set to `false` when you import `@copilotkit/core/styles.css` yourself, so
3099
- * browsers cache the CSS as a file. CopilotKit then adds no `<style>` tag.
3100
- * @default true
2664
+ * Internal: registers the modal-close setter of the provider that actually
2665
+ * owns the rendered modal (a descendant that supplied `isModalDefaultOpen`),
2666
+ * so the drawer's mobile mutual-exclusion — owned by the top-most provider —
2667
+ * closes the modal that is genuinely on screen rather than the top-most
2668
+ * provider's own (possibly unrendered) modal state.
2669
+ *
2670
+ * @param closeModal - A setter the drawer may call to close the rendered modal.
2671
+ * @returns A cleanup callback that de-registers the closer.
3101
2672
  */
3102
- injectStyles?: boolean;
2673
+ ɵregisterModalCloser: (closeModal: (open: boolean) => void) => () => void;
2674
+ hasExplicitThreadId: boolean;
3103
2675
  /**
3104
- * Rewrites the message list sent to runtime agents on every run.
3105
- *
3106
- * CopilotKit sends the whole thread each time. When your agent already
3107
- * stores the conversation, most of that payload is waste, and an agent that
3108
- * merges the inbound list with its own store can show the model every turn
3109
- * twice. Return the messages to send:
2676
+ * Imperatively sets the active thread for this chat configuration.
3110
2677
  *
3111
- * ```tsx
3112
- * <CopilotKit
3113
- * runtimeUrl="/api/copilotkit"
3114
- * messageFilter={(messages) => messages.slice(-1)}
3115
- * />
3116
- * ```
2678
+ * Use this to drive the rendered thread without a host callback — e.g. a
2679
+ * `<CopilotThreadsDrawer>` selecting a thread row sets it explicitly so the chat
2680
+ * connects to that backend thread.
3117
2681
  *
3118
- * The filter changes the request body only. The transcript the UI renders is
3119
- * untouched. Broken tool-call pairs are repaired before the request is sent,
3120
- * so a filter this blunt cannot strand a tool result mid-HITL.
2682
+ * Guarded like the top-level `<CopilotKitProvider>`'s `setThreadId`: when
2683
+ * the consumer controls the threadId via the `threadId` prop on this
2684
+ * provider, this is a no-op (a warning is logged) so a prop-controlled
2685
+ * threadId is never silently overridden.
3121
2686
  *
3122
- * Agents reached through your CopilotRuntime honor this. An agent your app
3123
- * passes in directly does not, and neither Intelligence runs nor suggestion
3124
- * runs are ever filtered.
2687
+ * @param threadId - The thread id to make active.
2688
+ * @param options.explicit - Whether the thread is a caller choice. Defaults
2689
+ * to `true` (a picked thread). Pass `false` to set a non-explicit thread
2690
+ * so the welcome screen shows (see {@link startNewThread}).
2691
+ */
2692
+ setActiveThreadId: (threadId: string, options?: {
2693
+ explicit?: boolean;
2694
+ }) => void;
2695
+ /**
2696
+ * Resets the active thread to a fresh, non-explicit client-side thread: a
2697
+ * newly minted UUID with `hasExplicitThreadId=false`, so the welcome screen
2698
+ * shows. Pairs with the core `startNewThread()` to clear the conversation
2699
+ * with no host wiring.
3125
2700
  *
3126
- * Prefer a stable reference (`useCallback`). An inline arrow re-registers the
3127
- * filter on every render, which is harmless but needless.
2701
+ * Guarded identically to {@link setActiveThreadId}: a no-op when the
2702
+ * threadId is prop-controlled.
3128
2703
  */
3129
- messageFilter?: CopilotKitMessageFilter$1;
3130
- /** Your CopilotKit public license key. */
3131
- publicApiKey?: string;
3132
- /** Your public license key for accessing CopilotKit Intelligence features. */
3133
- publicLicenseKey?: string;
2704
+ startNewThread: () => void;
3134
2705
  /**
3135
- * Signed license token for offline verification of CopilotKit Intelligence features.
3136
- * Obtain from https://dashboard.operations.copilotkit.ai.
2706
+ * Internal: the core store behind this value, so a nested provider can link
2707
+ * its own store to it.
3137
2708
  */
3138
- licenseToken?: string;
3139
- properties?: Record<string, unknown>;
2709
+ ɵstore?: ɵChatConfigurationStore$1;
2710
+ }
2711
+ interface CopilotChatConfigurationProviderProps {
2712
+ children: ReactNode;
2713
+ labels?: Partial<CopilotChatLabels$1>;
2714
+ agentId?: string;
2715
+ threadId?: string;
2716
+ hasExplicitThreadId?: boolean;
2717
+ isModalDefaultOpen?: boolean;
2718
+ }
2719
+ declare const CopilotChatConfigurationProvider: React$1.FC<CopilotChatConfigurationProviderProps>;
2720
+ declare const useCopilotChatConfiguration: () => CopilotChatConfigurationValue | null;
2721
+ //#endregion
2722
+ //#region src/providers/CopilotKitProvider.d.ts
2723
+ interface CopilotKitProviderProps extends ɵCopilotKitProviderBaseOptions$1 {
2724
+ children: ReactNode;
2725
+ /**
2726
+ * CSP nonce for the `<style>` tags CopilotKit adds. Set it when your
2727
+ * Content-Security-Policy limits `style-src` to a nonce.
2728
+ */
2729
+ nonce?: string;
2730
+ /**
2731
+ * Set to `false` when you import `@copilotkit/core/styles.css` yourself, so
2732
+ * browsers cache the CSS as a file. CopilotKit then adds no `<style>` tag.
2733
+ * @default true
2734
+ */
2735
+ injectStyles?: boolean;
3140
2736
  /**
3141
2737
  * The id of the agent every `<CopilotChat>` under this provider talks to,
3142
2738
  * unless a chat names its own with the `agentId` prop.
@@ -3146,9 +2742,6 @@ interface CopilotKitProviderProps {
3146
2742
  * agent. Defaults to `"default"`.
3147
2743
  */
3148
2744
  agentId?: string;
3149
- useSingleEndpoint?: boolean;
3150
- agents__unsafe_dev_only?: Record<string, AbstractAgent$1>;
3151
- selfManagedAgents?: Record<string, AbstractAgent$1>;
3152
2745
  renderToolCalls?: ReactToolCallRenderer<any>[];
3153
2746
  renderActivityMessages?: ReactActivityMessageRenderer<any>[];
3154
2747
  renderCustomMessages?: ReactCustomMessageRenderer[];
@@ -3166,7 +2759,7 @@ interface CopilotKitProviderProps {
3166
2759
  *
3167
2760
  * @example
3168
2761
  * ```tsx
3169
- * <CopilotKit
2762
+ * <CopilotKitProvider
3170
2763
  * runtimeUrl="/api/copilotkit"
3171
2764
  * openGenerativeUI={{
3172
2765
  * sandboxFunctions: [{ name: "addToCart", description: "…", parameters: schema, handler: fn }],
@@ -3194,11 +2787,6 @@ interface CopilotKitProviderProps {
3194
2787
  */
3195
2788
  designSkill?: string;
3196
2789
  };
3197
- /**
3198
- * @deprecated This prop no longer controls the Inspector. Use
3199
- * `enableInspector` instead.
3200
- */
3201
- showDevConsole?: boolean | "auto";
3202
2790
  /**
3203
2791
  * Disable the CopilotKit Inspector in development.
3204
2792
  * The Inspector is enabled by default in development browser builds on
@@ -3214,148 +2802,33 @@ interface CopilotKitProviderProps {
3214
2802
  * @default true
3215
2803
  */
3216
2804
  showIntelligenceIndicator?: boolean;
3217
- /**
3218
- * Error handler called when CopilotKit encounters an error.
3219
- * Fires for all error types (runtime connection failures, agent errors, tool errors).
3220
- */
3221
- onError?: (event: {
3222
- error: Error;
3223
- code: CopilotKitCoreErrorCode$1;
3224
- context: Record<string, any>;
3225
- }) => void | Promise<void>;
3226
- /**
3227
- * Configuration for the A2UI (Agent-to-UI) renderer.
3228
- * The built-in A2UI renderer is activated automatically when the runtime reports
3229
- * that `a2ui` is configured in `CopilotRuntime`. This prop is optional and only
3230
- * needed if you want to override the default theme.
3231
- *
3232
- * @example
3233
- * ```tsx
3234
- * <CopilotKit runtimeUrl="/api/copilotkit" a2ui={{ theme: myCustomTheme }}>
3235
- * {children}
3236
- * </CopilotKit>
3237
- * ```
3238
- */
3239
- a2ui?: {
3240
- /**
3241
- * Override the default A2UI viewer theme.
3242
- * When omitted, the built-in `viewerTheme` from `@copilotkit/a2ui-renderer` is used.
3243
- */
3244
- theme?: Theme;
3245
- /**
3246
- * Optional component catalog to pass to the A2UI renderer.
3247
- * When omitted, the default basicCatalog is used.
3248
- */
3249
- catalog?: any;
3250
- /**
3251
- * Optional custom loading component shown while an A2UI surface is generating.
3252
- * When omitted, a default animated skeleton is shown.
3253
- */
3254
- loadingComponent?: React$1.ComponentType;
3255
- /**
3256
- * When true (the default), the full component schemas from the catalog are
3257
- * sent as agent context so the agent knows what components and props are
3258
- * available. The A2UI middleware can overwrite this with a server-side
3259
- * schema if configured.
3260
- *
3261
- * When false, the agent context still describes the catalog, but only by its
3262
- * catalog ID and the names of its custom components, without their JSON
3263
- * schemas. The component schema entry and the A2UI generation and design
3264
- * guidelines are not sent. With the CopilotKit LangGraph middleware's
3265
- * injected A2UI tool, the A2UI subagent then gets the component names only;
3266
- * a host can still give it a composition guide through the middleware's
3267
- * guidelines (`a2uiParams.guidelines.compositionGuide` in TypeScript,
3268
- * `a2ui_params["guidelines"]["composition_guide"]` in Python).
3269
- */
3270
- includeSchema?: boolean;
3271
- /**
3272
- * Options for the A2UI error-recovery status UI (OSS-162): how long before
3273
- * the transient "Retrying…" hint appears, after how many attempts, and how
3274
- * much retry/debug detail to surface. When omitted, sane defaults apply.
3275
- */
3276
- recovery?: A2UIRecoveryRendererOptions;
3277
- };
3278
2805
  /**
3279
2806
  * Experimental. Native generative UI: `generativeUI={{ ui }}`, where `ui`
3280
2807
  * comes from `createGenerativeUI`. The agent renders your React components
3281
2808
  * into chat or into `<GenerativeUISurface id>` mounts. Props that match
3282
2809
  * the declared state and events that match the declared functions are
3283
2810
  * bound by the library, and the model does not see them.
3284
- */
3285
- generativeUI?: GenerativeUIConfig;
3286
- /**
3287
- * Configuration for the built-in MCP Apps renderer.
3288
2811
  *
3289
- * @example
3290
- * ```tsx
3291
- * <CopilotKit runtimeUrl="/api/copilotkit" mcpApps={{ allowSameOriginFallback: true }}>
3292
- * {children}
3293
- * </CopilotKit>
3294
- * ```
2812
+ * When it is left out and the runtime turns generative UI on, the provider
2813
+ * uses `standardUI` for the agents the runtime names. The standard
2814
+ * components load on demand, the first time the runtime turns it on.
3295
2815
  */
3296
- mcpApps?: {
3297
- /**
3298
- * Restore `allow-same-origin` on the MCP App sandbox. Default `false`.
3299
- *
3300
- * **Unsafe.** The widget then runs with your page's origin: it can read
3301
- * your cookies, storage and DOM, and call your APIs as the signed-in user.
3302
- * Only set it for widgets you wrote and trust that need `localStorage`,
3303
- * `IndexedDB` or cookies. By default widgets get an opaque origin.
3304
- */
3305
- allowSameOriginFallback?: boolean;
3306
- };
3307
- /**
3308
- * Default throttle interval (in milliseconds) for `useAgent` re-renders
3309
- * triggered by `OnMessagesChanged` notifications. This value is used as
3310
- * a fallback when neither the `useAgent()` hook nor `<CopilotChat>` /
3311
- * `<CopilotSidebar>` / `<CopilotPopup>` specify an explicit `throttleMs`.
3312
- *
3313
- * @default undefined (components/hooks without an explicit throttleMs will be unthrottled)
3314
- */
3315
- defaultThrottleMs?: number;
3316
- /**
3317
- * Enable debug logging for the client-side event pipeline.
3318
- */
3319
- debug?: DebugConfig;
3320
- /**
3321
- * Turns on interaction capture (`@copilotkit/learning`). `learning` (short
3322
- * for `learning={true}`) records with the default options; pass an object
3323
- * for options. `false` or omitting the prop turns capture off and cancels
3324
- * startup. Without a sink, Core authenticates with the runtime and sends
3325
- * browser events to Intelligence; a custom sink keeps the standalone
3326
- * collector behavior. Updated settings apply to the next Trajectory.
3327
- *
3328
- * Capture starts after mount. Set `trajectoryId` to use your own ID;
3329
- * otherwise the provider generates one. The generated ID stays the same
3330
- * across rerenders, reconnects and option changes; turning capture off,
3331
- * setting `autoStart: false` or supplying a `trajectoryId` ends it, and the
3332
- * next generated Trajectory gets a new ID. Read the active ID from
3333
- * `copilotkit.trajectoryId`.
3334
- *
3335
- * Set `autoStart: false` to start capture yourself with `startTrajectory()`.
3336
- * Capture stops on unmount, including manually started Trajectories.
3337
- *
3338
- * @example
3339
- * <CopilotKitProvider runtimeUrl="/api/copilotkit" learning>
3340
- */
3341
- learning?: boolean | LearningProp;
2816
+ generativeUI?: GenerativeUIConfig;
3342
2817
  }
3343
- type LearningProp = LearningConfig$1 & {
3344
- /**
3345
- * Starts a Trajectory after mount. Defaults to `true`; set `false` to call
3346
- * `startTrajectory()` yourself.
3347
- */
3348
- autoStart?: boolean;
3349
- trajectoryId?: string;
3350
- /**
3351
- * Used only by explicit custom sinks. Authenticated capture warns and ignores
3352
- * this option; assign Learning Spaces on the server with
3353
- * `getTrajectoryLearningContainerIds` on `CopilotKitIntelligence`.
3354
- */
3355
- learningContainerIds?: string[];
3356
- };
3357
2818
  /** Provide a shared core instance and synchronize runtime, tool, and UI configuration. */
3358
2819
  declare const CopilotKitProvider: React$1.FC<CopilotKitProviderProps>;
2820
+ /**
2821
+ * Alias of {@link CopilotKitProvider}: the same component under its v1 name,
2822
+ * so `<CopilotKit>` keeps working. `CopilotKitProvider` is the preferred name.
2823
+ *
2824
+ * @alias
2825
+ */
2826
+ declare const CopilotKit: React$1.FC<CopilotKitProviderProps>;
2827
+ /**
2828
+ * Alias of {@link CopilotKitProviderProps}, the props of {@link CopilotKit}.
2829
+ * Prefer `CopilotKitProviderProps` in new code.
2830
+ */
2831
+ type CopilotKitProps = CopilotKitProviderProps;
3359
2832
  //#endregion
3360
2833
  //#region src/providers/SandboxFunctionsContext.d.ts
3361
2834
  declare const SandboxFunctionsContext: react.Context<readonly SandboxFunction[]>;
@@ -3370,7 +2843,15 @@ interface CopilotKitCoreReactConfig extends CopilotKitCoreConfig$1 {
3370
2843
  interface CopilotKitCoreReactSubscriber extends CopilotKitCoreSubscriber$1 {
3371
2844
  onRenderToolCallsChanged?: (event: {
3372
2845
  copilotkit: CopilotKitCore$1;
3373
- renderToolCalls: ReactToolCallRenderer<any>[];
2846
+ renderToolCalls: readonly ReactToolCallRenderer<any>[];
2847
+ }) => void | Promise<void>;
2848
+ onRenderActivityMessagesChanged?: (event: {
2849
+ copilotkit: CopilotKitCore$1;
2850
+ renderActivityMessages: readonly ReactActivityMessageRenderer<any>[];
2851
+ }) => void | Promise<void>;
2852
+ onRenderCustomMessagesChanged?: (event: {
2853
+ copilotkit: CopilotKitCore$1;
2854
+ renderCustomMessages: readonly ReactCustomMessageRenderer[];
3374
2855
  }) => void | Promise<void>;
3375
2856
  onInterruptElementChanged?: (event: {
3376
2857
  copilotkit: CopilotKitCore$1;
@@ -3378,86 +2859,33 @@ interface CopilotKitCoreReactSubscriber extends CopilotKitCoreSubscriber$1 {
3378
2859
  }) => void | Promise<void>;
3379
2860
  }
3380
2861
  declare class CopilotKitCoreReact extends CopilotKitCore$1 {
3381
- private _renderToolCalls;
3382
- private _hookRenderToolCalls;
3383
- private _cachedMergedRenderToolCalls;
3384
- private _renderCustomMessages;
3385
- private _renderActivityMessages;
3386
- private _interruptElement;
2862
+ private readonly _renderers;
3387
2863
  constructor(config: CopilotKitCoreReactConfig);
3388
- get renderCustomMessages(): Readonly<ReactCustomMessageRenderer[]>;
3389
- get renderActivityMessages(): Readonly<ReactActivityMessageRenderer<any>>[];
3390
- get renderToolCalls(): Readonly<ReactToolCallRenderer<any>>[];
2864
+ get renderCustomMessages(): readonly ReactCustomMessageRenderer[];
2865
+ get renderActivityMessages(): readonly ReactActivityMessageRenderer<any>[];
2866
+ /**
2867
+ * Prop, hook and built-in renderers merged. For one name and agentId, a
2868
+ * hook renderer wins over a prop one, and both win over a built-in one.
2869
+ */
2870
+ get renderToolCalls(): readonly ReactToolCallRenderer<any>[];
3391
2871
  setRenderActivityMessages(renderers: ReactActivityMessageRenderer<any>[]): void;
3392
2872
  setRenderCustomMessages(renderers: ReactCustomMessageRenderer[]): void;
3393
2873
  setRenderToolCalls(renderToolCalls: ReactToolCallRenderer<any>[]): void;
3394
2874
  addHookRenderToolCall(entry: ReactToolCallRenderer<any>): void;
3395
2875
  removeHookRenderToolCall(name: string, agentId?: string): void;
3396
- private _notifyRenderToolCallsChanged;
3397
- get interruptElement(): React$1.ReactElement | null;
3398
- setInterruptElement(element: React$1.ReactElement | null): void;
3399
- subscribe(subscriber: CopilotKitCoreReactSubscriber): CopilotKitCoreSubscription$1;
3400
2876
  /**
3401
- * Wait for pending React state updates before the follow-up agent run.
3402
- *
3403
- * When a frontend tool handler calls setState(), React 18 batches the update
3404
- * and schedules a commit via its internal scheduler (MessageChannel). The
3405
- * useAgentContext hook registers context via useLayoutEffect, which runs
3406
- * synchronously after React commits that batch.
2877
+ * @internal Add a renderer for a tool a built-in feature owns
2878
+ * (generative UI). Prop and hook renderers with the same name and agent win
2879
+ * over it, and `setRenderToolCalls` never removes it.
3407
2880
  *
3408
- * Awaiting a zero-delay timeout yields to the macrotask queue. React's
3409
- * MessageChannel task runs first, committing the pending state and running
3410
- * useLayoutEffect (which updates the context store). The follow-up runAgent
3411
- * call then reads fresh context.
2881
+ * @returns A function that removes the renderer.
3412
2882
  */
3413
- waitForPendingFrameworkUpdates(): Promise<void>;
2883
+ ɵaddBuiltInRenderToolCall(entry: ReactToolCallRenderer): () => void;
2884
+ private notifyRenderersChanged;
2885
+ get interruptElement(): React$1.ReactElement | null;
2886
+ setInterruptElement(element: React$1.ReactElement | null): void;
2887
+ subscribe(subscriber: CopilotKitCoreReactSubscriber): CopilotKitCoreSubscription$1;
3414
2888
  }
3415
2889
  //#endregion
3416
- //#region src/a2ui/A2UIMessageRenderer.d.ts
3417
- /**
3418
- * User action with dataContextPath, as dispatched by A2UI components.
3419
- */
3420
- type A2UIUserAction = {
3421
- name: string;
3422
- sourceComponentId: string;
3423
- surfaceId: string;
3424
- timestamp: string;
3425
- context?: Record<string, unknown>;
3426
- dataContextPath?: string;
3427
- };
3428
- /**
3429
- * Intercept an A2UI user action before it reaches the agent.
3430
- *
3431
- * Called with the dispatched action and a `forward` helper that runs the agent
3432
- * with the (optionally modified) action. The return value drives the default
3433
- * forwarding:
3434
- * - return `null` → the app handled it client-side (e.g. a `navigate` event);
3435
- * the action is NOT forwarded to the agent.
3436
- * - return an `A2UIUserAction` → that (possibly modified) action is forwarded.
3437
- * - return `undefined` / `void` → the original action is forwarded unchanged.
3438
- *
3439
- * `forward` is provided for advanced cases where you want to do async work and
3440
- * forward manually; if you call it yourself, return `null` to suppress the
3441
- * default forward and avoid running the agent twice.
3442
- */
3443
- type A2UIActionInterceptor = (action: A2UIUserAction, forward: (action?: A2UIUserAction) => Promise<void>) => void | A2UIUserAction | null | Promise<void | A2UIUserAction | null>;
3444
- type A2UIMessageRendererOptions = {
3445
- theme: Theme; /** Optional component catalog to pass to A2UIProvider */
3446
- catalog?: any; /** Optional custom loading component shown while the A2UI surface is building. */
3447
- loadingComponent?: React.ComponentType;
3448
- /**
3449
- * Pre-paint recovery/loading UX options (OSS-162): timing before the
3450
- * "Retrying…" sub-label appears + how much retry/debug detail to surface.
3451
- */
3452
- recovery?: A2UIRecoveryRendererOptions;
3453
- /**
3454
- * Intercept actions before they reach the agent. Lets an app handle an action
3455
- * client-side (e.g. `navigate`) instead of forwarding every action. See
3456
- * {@link A2UIActionInterceptor}.
3457
- */
3458
- onAction?: A2UIActionInterceptor;
3459
- };
3460
- declare function createA2UIMessageRenderer(options: A2UIMessageRendererOptions): ReactActivityMessageRenderer<any>;
3461
- //#endregion
3462
- export { type A2UIActionInterceptor, type A2UIMarkdownOperation, type A2UIMessageRendererOptions, type A2UIRecoveryRendererOptions, type A2UITheme, type A2UIUserAction, A2UI_FENCE_LANGUAGE, ACTIVITY_HISTORY_METADATA, AGUIConnectNotImplementedError, AGUIError, type AGUIEvent, type AGUIEventByType, type AGUIEventOf, AGUI_METADATA_KEY, AbstractAgent, type ActionConfig, type ActionCreator, type ActionFromCreator, type ActionFromCreators, type ActionGroupConfig, type ActionGroupResult, type ActivityDeltaEvent, type ActivityDeltaEventProps, ActivityDeltaEventSchema, type ActivityMessage, ActivityMessageSchema, type ActivitySnapshotEvent, type ActivitySnapshotEventProps, ActivitySnapshotEventSchema, type AddOperation, AddOperationSchema, type AgentCapabilities, AgentCapabilitiesSchema, type AgentConfig, type AgentContextInput, type AgentDebugConfig, AgentRegistry, type AgentStateMutation, type AgentSubscriber, type AgentSubscriberParams, AgentThreadLockedError, type AnyAction, type AssistantMessage, AssistantMessageSchema, type Attachment, type AttachmentModality, type AttachmentsConfig, type Attributable, AttributableSchema, type AudioInputContent, AudioInputContentSchema, type AudioInputPart, AudioInputPartSchema, type AudioPart, AudioPartSchema, AudioRecorderError, type AudioRecorderState, type AutoScrollMode, BackwardCompatibility_0_0_39, BackwardCompatibility_0_0_45, BackwardCompatibility_0_0_57, type BaseEvent, type BaseEventFields, type BaseEventProps, BaseEventSchema, type BaseMessage, BaseMessageSchema, BasicMarkdownRenderer, type ChildIdsOf, type ChildWalkOptions, CompatibilityBoundary, type ContentPart, ContentPartSchema, type Context, ContextSchema, ContextStore, CopilotChat, CopilotChatAssistantMessage, type CopilotChatAssistantMessageProps, CopilotChatAttachmentQueue, CopilotChatAttachmentRenderer, CopilotChatAudioRecorder, CopilotChatConfigurationProvider, type CopilotChatConfigurationProviderProps, type CopilotChatConfigurationValue, type CopilotChatFeedbackMessage, CopilotChatInput, type CopilotChatInputProps, type CopilotChatLabels, CopilotChatMessageView, type CopilotChatMessageViewProps, type CopilotChatProps, CopilotChatReasoningMessage, type CopilotChatReasoningMessageProps, CopilotChatSuggestionPill, type CopilotChatSuggestionPillProps, CopilotChatSuggestionView, type CopilotChatSuggestionViewProps, CopilotChatToggleButton, DefaultCloseIcon as CopilotChatToggleButtonCloseIcon, DefaultOpenIcon as CopilotChatToggleButtonOpenIcon, type CopilotChatToggleButtonProps, type CopilotChatToolCallDisplay, CopilotChatToolCallGroup, type CopilotChatToolCallGroupAppearance, type CopilotChatToolCallGroupProps, CopilotChatToolCallsView, type CopilotChatToolCallsViewProps, CopilotChatUserMessage, type CopilotChatUserMessageProps, CopilotChatView, type CopilotChatViewProps, CopilotChatWorkSummary, type CopilotChatWorkSummaryProps, type CopilotKitContextValue, CopilotKitCore, type CopilotKitCoreAddAgentParams, type CopilotKitCoreCatalogComponent, type CopilotKitCoreConfig, type CopilotKitCoreConnectAgentParams, type CopilotKitCoreContinuationHandoff, CopilotKitCoreErrorCode, type CopilotKitCoreFriendsAccess, type CopilotKitCoreGetSuggestionsResult, type CopilotKitCoreGetToolParams, CopilotKitCoreReact, CopilotKitCoreReactConfig, CopilotKitCoreReactSubscriber, type CopilotKitCoreRegisterProxiedAgentParams, type CopilotKitCoreRegisterProxiedAgentResult, type CopilotKitCoreRunAgentParams, type CopilotKitCoreRunToolParams, type CopilotKitCoreRunToolResult, CopilotKitCoreRuntimeConnectionStatus, type CopilotKitCoreStopAgentParams, type CopilotKitCoreSubscriber, type CopilotKitCoreSubscription, CopilotKitHeaderResolutionError, type CopilotKitHeadersSource, CopilotKitInspector, CopilotKitInspectorProps, type CopilotKitMessageFilter, CopilotKitProvider, type CopilotKitProviderProps, CopilotKitStyles, CopilotModalHeader, type CopilotModalHeaderProps, CopilotPopup, type CopilotPopupProps, CopilotPopupView, type CopilotPopupViewProps, type CopilotRuntimeTransport, CopilotSidebar, type CopilotSidebarProps, CopilotSidebarView, type CopilotSidebarViewProps, CopilotThreadsDrawer, type CopilotThreadsDrawerProps, type CopilotThreadsDrawerRowRenderer, type CopyOperation, CopyOperationSchema, type CustomEvent, type CustomEventProps, CustomEventSchema, type DataSource, DataSourceSchema, DebugLogger, type DebugLoggerInput, DefaultMarkdownRendererProps, type DeveloperMessage, DeveloperMessageSchema, type DispatchingEffect, type DispatchingEffectOptions, type DocumentInputContent, DocumentInputContentSchema, type DocumentInputPart, DocumentInputPartSchema, type DocumentPart, DocumentPartSchema, type DynamicSuggestionsConfig, type Effect, type EmptyActionConfig, type Event, type EventPayloadOf, EventSchema, EventSchemas, EventType, EventTypeSchema, type ExecutionCapabilities, ExecutionCapabilitiesSchema, type FileSource, FileSourceSchema, FilterToolCallsMiddleware, type FrontendTool, type FrontendToolHandlerContext, type FrontendToolReconnectBehavior, type FunctionCall, FunctionCallSchema, FunctionMiddleware, GenerateSandboxedUiArgs, GenerateSandboxedUiArgsSchema, HttpAgent, type HttpAgentConfig, type HttpAgentFetchFn, type HumanInTheLoopCapabilities, HumanInTheLoopCapabilitiesSchema, INSPECTOR_THREAD_BRIDGE_PLUGIN_ID, INTELLIGENCE_TURN_HEAD, INTERRUPT_EVENT_NAME, type IdentityCapabilities, IdentityCapabilitiesSchema, type ImageInputContent, ImageInputContentSchema, type ImageInputPart, ImageInputPartSchema, type ImagePart, ImagePartSchema, type InputContent, type InputContentDataSource, InputContentDataSourceSchema, type InputContentPart, InputContentSchema, type InputContentSource, InputContentSourceSchema, type InputContentUrlSource, InputContentUrlSourceSchema, type InspectorActiveThreadPayload, type InspectorAnchor, type InspectorMetadataV1, type InspectorStopViewingPayload, type InspectorViewThreadPayload, type InspectorViewThreadResultPayload, IntelligenceAgent, type IntelligenceAgentConfig, IntelligenceIndicator, type IntelligenceIndicatorProps, type IntelligenceIndicatorStatus, IntelligenceIndicatorView, type IntelligenceIndicatorViewProps, type IntelligenceRuntimeInfo, type Interrupt, InterruptCancelFn, type InterruptEvent, type InterruptHandlerProps, type InterruptRenderProps, InterruptResolveFn, InterruptSchema, type JsonPatch, type JsonPatchOperation, JsonPatchOperationSchema, JsonPatchSchema, type JsonPointer, JsonPointerSchema, type JsonSerializable, type JsonValue, type LearnFromUserActionInCurrentThreadInput, type LearnFromUserActionInput, type LearnFromUserActionResult, type LearningConfig, type LegacyLearningConfig, type MCPAppsActivityContent, MCPAppsActivityContentSchema, MCPAppsActivityRenderer, MCPAppsActivityType, MEMORY_ERROR_REGISTRY, MarkdownRenderer, MarkdownRendererProps, MarkdownRendererProvider, type MarkdownSegment, type MarkdownToken, type MarkdownTokenList, type Memory, type MemoryChanges, MemoryError, type MemoryErrorCategory, type MemoryErrorCode, type MemoryErrorRegistryEntry, type MemoryKind, type MemoryRealtimeStatus, type MemoryScope, type Message, type MessageGroup, type MessageGroupWrapperProps, type MessageRow, MessageSchema, type MessagesSnapshotEvent, type MessagesSnapshotEventProps, MessagesSnapshotEventSchema, type Metadata, MetadataSchema, Middleware, type MiddlewareFunction, type MoveOperation, MoveOperationSchema, type MultiAgentCapabilities, MultiAgentCapabilitiesSchema, type MultimodalCapabilities, MultimodalCapabilitiesSchema, type MultimodalInputCapabilities, MultimodalInputCapabilitiesSchema, type MultimodalOutputCapabilities, MultimodalOutputCapabilitiesSchema, type NewMemory, type NonDispatchingEffect, type NonDispatchingEffectOptions, OpenGenerativeUIActivityRenderer, OpenGenerativeUIActivityType, OpenGenerativeUIContent, OpenGenerativeUIContentSchema, OpenGenerativeUIToolRenderer, type OpenThreadRegistration, OptionalMetadataSchema, type OutputCapabilities, OutputCapabilitiesSchema, PROTOCOL_VERSION, type ParseMarkdownOptions, type PartSource, PartSourceSchema, type PropsActionConfig, ProxiedCopilotRuntimeAgent, type ProxiedCopilotRuntimeAgentConfig, type RawEvent, type RawEventProps, RawEventSchema, ReactActivityMessageRenderer, ReactCustomMessageRenderer, ReactCustomMessageRendererPosition, ReactFrontendTool, ReactHumanInTheLoop, ReactToolCallRenderer, type ReasoningCapabilities, ReasoningCapabilitiesSchema, type ReasoningEncryptedValueEvent, type ReasoningEncryptedValueEventProps, ReasoningEncryptedValueEventSchema, type ReasoningEncryptedValueSubtype, ReasoningEncryptedValueSubtypeSchema, type ReasoningEndEvent, type ReasoningEndEventProps, ReasoningEndEventSchema, type ReasoningMessage, type ReasoningMessageChunkEvent, type ReasoningMessageChunkEventProps, ReasoningMessageChunkEventSchema, type ReasoningMessageContentEvent, type ReasoningMessageContentEventProps, ReasoningMessageContentEventSchema, type ReasoningMessageEndEvent, type ReasoningMessageEndEventProps, ReasoningMessageEndEventSchema, ReasoningMessageSchema, type ReasoningMessageStartEvent, type ReasoningMessageStartEventProps, ReasoningMessageStartEventSchema, type ReasoningStartEvent, type ReasoningStartEventProps, ReasoningStartEventSchema, type Reducer, type RemoveOperation, RemoveOperationSchema, type ReplaceOperation, ReplaceOperationSchema, type ResolvedAgentDebugConfig, type ResumeEntry, ResumeEntrySchema, type ResumeStatus, type Role, RoleSchema, type RunAgentInput, RunAgentInputSchema, type RunAgentParameters, type RunAgentResult, type RunCompletionAware, type RunErrorEvent, type RunErrorEventProps, RunErrorEventSchema, type RunFinishedCancelledOutcome, RunFinishedCancelledOutcomeSchema, type RunFinishedEvent, type RunFinishedEventProps, RunFinishedEventSchema, type RunFinishedInterruptOutcome, RunFinishedInterruptOutcomeSchema, type RunFinishedOutcome, RunFinishedOutcomeSchema, type RunFinishedSuccessOutcome, RunFinishedSuccessOutcomeSchema, RunHandler, type RunStartedEvent, type RunStartedEventProps, RunStartedEventSchema, type RuntimeLicenseStatus, type RuntimeMode, SandboxFunction, SandboxFunctionsContext, type ScopedContext, type ScopedProperties, type Selector, type StartResult, type State, type StateCapabilities, StateCapabilitiesSchema, type StateDeltaEvent, type StateDeltaEventProps, StateDeltaEventSchema, StateManager, StateSchema, type StateSnapshotEvent, type StateSnapshotEventProps, StateSnapshotEventSchema, type StaticSuggestionsConfig, type StepFinishedEvent, type StepFinishedEventProps, StepFinishedEventSchema, type StepStartedEvent, type StepStartedEventProps, StepStartedEventSchema, type Store, type StoreLifecycleAction, StreamingMarkdownDefaultRenderer, type SubagentErrorEvent, type SubagentErrorEventProps, SubagentErrorEventSchema, type SubagentFinishedEvent, type SubagentFinishedEventProps, SubagentFinishedEventSchema, type SubagentFinishedOutcome, SubagentFinishedOutcomeSchema, type SubagentFinishedSuccessOutcome, SubagentFinishedSuccessOutcomeSchema, type SubagentFinishedSuspendedOutcome, SubagentFinishedSuspendedOutcomeSchema, type SubagentInfo, SubagentInfoSchema, type SubagentRunId, SubagentRunIdSchema, type SubagentStartedEvent, type SubagentStartedEventProps, SubagentStartedEventSchema, type SubscribeToAgentOptions, type SubscribeToAgentSubscriber, type Suggestion, type SuggestionAvailability, SuggestionEngine, type SuggestionsConfig, type SurfaceSegment, type SystemMessage, SystemMessageSchema, type TestOperation, TestOperationSchema, type TextInputContent, TextInputContentSchema, type TextMessageChunkEvent, type TextMessageChunkEventProps, TextMessageChunkEventSchema, type TextMessageContentEvent, type TextMessageContentEventProps, TextMessageContentEventSchema, type TextMessageEndEvent, type TextMessageEndEventProps, TextMessageEndEventSchema, type TextMessageRole, TextMessageRoleSchema, type TextMessageStartEvent, type TextMessageStartEventProps, TextMessageStartEventSchema, type TextPart, TextPartSchema, type Thread, type ThreadEndpointRuntimeInfo, type ThreadRunActivityNotification, type TokenUsage, TokenUsageSchema, type Tokens, type Tool, type ToolCall, type ToolCallArgsEvent, type ToolCallArgsEventProps, ToolCallArgsEventSchema, type ToolCallChunkEvent, type ToolCallChunkEventProps, ToolCallChunkEventSchema, type ToolCallEndEvent, type ToolCallEndEventProps, ToolCallEndEventSchema, type ToolCallEntry, type ToolCallResultEvent, type ToolCallResultEventProps, ToolCallResultEventSchema, ToolCallSchema, type ToolCallStartEvent, type ToolCallStartEventProps, ToolCallStartEventSchema, ToolCallStatus, type ToolMessage, ToolMessageSchema, ToolSchema, type ToolsCapabilities, ToolsCapabilitiesSchema, type ToolsMenuItem, type TrajectoryStartOptions, type TransportCapabilities, TransportCapabilitiesSchema, type UnrecognizedEvent, type UrlSource, UrlSourceSchema, UseAgentUpdate, type UseAttachmentsProps, type UseAttachmentsReturn, type UseInterruptConfig, type UseLearnFromUserActionInCurrentThreadRecorder, type UseLearnFromUserActionRecorder, type UseLearningContainersArgs, type UseLearningContainersInCurrentThreadArgs, type UseMemoriesResult, type UseThreadsInput, type UseThreadsResult, type UserMessage, UserMessageSchema, type VideoInputContent, VideoInputContentSchema, type VideoInputPart, VideoInputPartSchema, type VideoPart, VideoPartSchema, type WebMCPModelContext, WebMCPRegistry, type WebMCPToolAnnotations, type WebMCPToolConfig, WildcardToolCallRender, a2uiDefaultTheme, aggregateTokenUsage, authoritativeActivityTypes, buildResumeArray, classifySurfaceCards, compactEvents, completePartialMarkdown, contentHasMedia, contentToText, convertToLegacyEvents, createA2UIMessageRenderer, createActionGroup, createDebugLogger, createEffect, createInspectorThreadRequestId, createReducer, createSelector, createStore, defaultApplyEvents, defineToolCallRenderer, emitInspectorActiveThread, emitInspectorStopViewing, emitInspectorViewThread, emitInspectorViewThreadResult, empty, enforceEvents, enforceOutgoingInput, ensureObjectArgs, extractCompleteArrayItems, extractFenceOperations, extractStringField, flattenInformationalCards, getIntelligenceTurnAnchors, getMarkdownOperationSurfaceId, getRunOutcome, getWebMCPModelContext, isAbortError, isInspectorThreadBridgeEnabled, isInterruptExpired, isRecognizedEvent, isRunCompletionAware, mergeMetadata, messageGroup, messageRow, ofType, omitOptionalNulls, on, onInspectorActiveThread, onInspectorStopViewing, onInspectorViewThread, onInspectorViewThreadResult, parseMarkdown, parseProtoStream, parseSSEStream, parseToolArguments, prepareSurfaceOperations, props, randomUUID, resolveAgentDebugConfig, resolveDebugLogger, runHttpRequest, segmentSurfaceProse, select, splitA2UIMarkdown, structuredClone_, tokenUsageFromAiSdkUsage, tokenUsageFromLangChainMetadata, transformChunks, transformHttpEventStream, useAgent, useAgentContext, useAttachments, useCapabilities, useComponent, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useDefaultRenderTool, useFrontendTool, useFrontendTools, useHumanInTheLoop, useInterrupt, useLearnFromUserAction, useLearnFromUserActionInCurrentThread, useLearningContainers, useLearningContainersInCurrentThread, useLicenseContext, useMarkdownRenderer, useMemories, useRenderActivityMessage, useRenderCustomMessages, useRenderTool, useRenderToolCall, useSandboxFunctions, useSuggestions, useThreads, verifyEvents, withAuthoritativeActivityTypes, ɵCOPILOTKIT_FEATURES, type ɵCopilotKitFeature, type ɵGenerativeUIDebugFunction, type ɵGenerativeUIDebugPromptSection, type ɵGenerativeUIDebugRun, type ɵGenerativeUIDebugSnapshot, type ɵGenerativeUIDebugSource, type ɵGenerativeUIDebugSurface, type ɵInterruptDecision, type ɵInterruptEvent, ɵInterruptState, type ɵInterruptToolResult, ɵMAX_SOCKET_RETRIES, type ɵMcpFollowUpHost, type ɵMemoryEnvironment, type ɵMemoryMetadataEvent, type ɵMemoryRuntimeContext, type ɵMemoryState, type ɵMemoryStore, type ɵPendingInterrupt, type ɵPhoenixChannelLike, type ɵPhoenixChannelOptions, type ɵPhoenixChannelSession, type ɵPhoenixJoinOutcome, type ɵPhoenixPushLike, type ɵPhoenixSocketLike, type ɵPhoenixSocketOptions, type ɵPhoenixSocketSession, type ɵPhoenixSocketSignal, ɵRUNTIME_PROBE_TIMEOUT_MS, ɵTHREAD_REQUEST_TIMEOUT_MS, type ɵThread, type ɵThreadEnvironment, type ɵThreadMetadataEvent, type ɵThreadRuntimeContext, type ɵThreadSelectors, type ɵThreadStore, ɵclearAgentInterruptState, ɵcreateMemoryStore, ɵcreateThreadSelectors, ɵcreateThreadStore, ɵgetAgentInterruptState, ɵisCopilotKitFeature, ɵisHttpAgent, ɵisRetryableMemoryStatus, ɵjoinPhoenixChannel$, ɵmapMemoryMetadataEvent, ɵmemoryAdapterEvents, ɵmemoryDomainEvents, ɵmemoryReducer, ɵmemoryRestEvents, ɵobservePhoenixEvent$, ɵobservePhoenixJoinOutcome$, ɵobservePhoenixSocketHealth$, ɵobservePhoenixSocketSignals$, ɵphoenixChannel$, ɵphoenixSocket$, ɵrunMcpFollowUp, ɵselectFetchMoreError, ɵselectHasNextPage, ɵselectIsFetchingNextPage, ɵselectIsMutating, ɵselectMemories, ɵselectMemoriesAvailable, ɵselectMemoriesError, ɵselectMemoriesIsLoading, ɵselectMemoriesIsMutating, ɵselectMemoriesRealtimeStatus, ɵselectThreads, ɵselectThreadsError, ɵselectThreadsIsLoading, ɵthreadAdapterEvents, ɵwithHeaderDefaults };
2890
+ export { type A2UIMarkdownOperation, A2UI_FENCE_LANGUAGE, ACTIVITY_HISTORY_METADATA, AGUIConnectNotImplementedError, AGUIEnforcementLimitError, AGUIError, type AGUIEvent, type AGUIEventByType, type AGUIEventOf, AGUI_METADATA_KEY, AbstractAgent, type ActionConfig, type ActionCreator, type ActionFromCreator, type ActionFromCreators, type ActionGroupConfig, type ActionGroupResult, type ActivityDeltaEvent, type ActivityDeltaEventProps, ActivityDeltaEventSchema, type ActivityMessage, type ActivityMessageRenderProps, type ActivityMessageRendererDef, ActivityMessageSchema, type ActivitySnapshotEvent, type ActivitySnapshotEventProps, ActivitySnapshotEventSchema, type AddOperation, AddOperationSchema, type AgentCapabilities, AgentCapabilitiesSchema, type AgentConfig, type AgentContextInput, type AgentDebugConfig, AgentRegistry, type AgentStateMutation, type AgentSubscriber, type AgentSubscriberParams, AgentThreadLockedError, type AnyAction, type AssistantMessage, AssistantMessageSchema, type Attachment, type AttachmentModality, type AttachmentsConfig, type Attributable, AttributableSchema, type AudioInputContent, AudioInputContentSchema, type AudioInputPart, AudioInputPartSchema, type AudioPart, AudioPartSchema, AudioRecorderError, type AudioRecorderState, type AutoScrollMode, BackwardCompatibility_0_0_39, BackwardCompatibility_0_0_45, BackwardCompatibility_0_0_57, type BaseEvent, type BaseEventFields, type BaseEventProps, BaseEventSchema, type BaseMessage, BaseMessageSchema, type ChildIdsOf, type ChildWalkOptions, CompatibilityBoundary, type ContentPart, ContentPartSchema, type Context, ContextSchema, ContextStore, CopilotChat, CopilotChatAssistantMessage, type CopilotChatAssistantMessageProps, CopilotChatAttachmentQueue, CopilotChatAttachmentRenderer, CopilotChatAudioRecorder, CopilotChatConfigurationProvider, type CopilotChatConfigurationProviderProps, type CopilotChatConfigurationValue, CopilotChatDefaultLabels, type CopilotChatFeedbackMessage, CopilotChatInput, type CopilotChatInputProps, type CopilotChatLabels, CopilotChatMessageView, type CopilotChatMessageViewProps, type CopilotChatProps, CopilotChatReasoningMessage, type CopilotChatReasoningMessageProps, CopilotChatSuggestionPill, type CopilotChatSuggestionPillProps, CopilotChatSuggestionView, type CopilotChatSuggestionViewProps, CopilotChatToggleButton, DefaultCloseIcon as CopilotChatToggleButtonCloseIcon, DefaultOpenIcon as CopilotChatToggleButtonOpenIcon, type CopilotChatToggleButtonProps, type CopilotChatToolCallDisplay, CopilotChatToolCallGroup, type CopilotChatToolCallGroupAppearance, type CopilotChatToolCallGroupProps, CopilotChatToolCallsView, type CopilotChatToolCallsViewProps, CopilotChatUserMessage, type CopilotChatUserMessageProps, CopilotChatView, type CopilotChatViewProps, CopilotChatWorkSummary, type CopilotChatWorkSummaryProps, type CopilotIconData, type CopilotIconDefinition, type CopilotIconName, type CopilotIconNode, CopilotKit, type CopilotKitContextValue, CopilotKitCore, type CopilotKitCoreAddAgentParams, type CopilotKitCoreCatalogComponent, type CopilotKitCoreConfig, type CopilotKitCoreConnectAgentParams, type CopilotKitCoreContinuationHandoff, CopilotKitCoreErrorCode, type CopilotKitCoreErrorEvent, type CopilotKitCoreErrorHandler, type CopilotKitCoreFriendsAccess, type CopilotKitCoreGetSuggestionsResult, type CopilotKitCoreGetToolParams, CopilotKitCoreReact, CopilotKitCoreReactConfig, CopilotKitCoreReactSubscriber, type CopilotKitCoreRegisterProxiedAgentParams, type CopilotKitCoreRegisterProxiedAgentResult, type CopilotKitCoreRunAgentParams, type CopilotKitCoreRunToolParams, type CopilotKitCoreRunToolResult, CopilotKitCoreRuntimeConnectionStatus, type CopilotKitCoreStopAgentParams, type CopilotKitCoreSubscriber, type CopilotKitCoreSubscription, CopilotKitHeaderResolutionError, type CopilotKitHeadersSource, CopilotKitInspector, CopilotKitInspectorProps, type CopilotKitMessageFilter, type CopilotKitProps, CopilotKitProvider, type CopilotKitProviderProps, CopilotKitStyles, CopilotModalHeader, type CopilotModalHeaderProps, CopilotPopup, type CopilotPopupProps, CopilotPopupView, type CopilotPopupViewProps, type CopilotRuntimeTransport, CopilotSidebar, type CopilotSidebarProps, CopilotSidebarView, type CopilotSidebarViewProps, CopilotThreadsDrawer, type CopilotThreadsDrawerProps, type CopilotThreadsDrawerRowRenderer, type CopyOperation, CopyOperationSchema, type CustomEvent, type CustomEventProps, CustomEventSchema, type CustomMessageRenderProps, type CustomMessageRendererDef, type CustomMessageRendererPosition, DEFAULT_MAX_ENFORCED_ENTRIES, DEFAULT_OPEN_GENERATIVE_UI_DESIGN_SKILL, type DataSource, DataSourceSchema, DebugLogger, type DebugLoggerInput, DefaultMarkdownRendererProps, type DeveloperMessage, DeveloperMessageSchema, type DispatchingEffect, type DispatchingEffectOptions, type DocumentInputContent, DocumentInputContentSchema, type DocumentInputPart, DocumentInputPartSchema, type DocumentPart, DocumentPartSchema, type DynamicSuggestionsConfig, type Effect, type EmptyActionConfig, type EnforcementOptions, type Event, type EventPayloadOf, EventSchema, EventSchemas, EventType, EventTypeSchema, type ExecutionCapabilities, ExecutionCapabilitiesSchema, type FileSource, FileSourceSchema, FilterToolCallsMiddleware, type FrontendTool, type FrontendToolHandlerContext, type FrontendToolReconnectBehavior, type FunctionCall, FunctionCallSchema, FunctionMiddleware, GENERATE_SANDBOXED_UI_TOOL_NAME, type GenerateSandboxedUiArgs, GenerateSandboxedUiArgsSchema, HttpAgent, type HttpAgentConfig, type HttpAgentFetchFn, type HumanInTheLoopCapabilities, HumanInTheLoopCapabilitiesSchema, type HumanInTheLoopRenderProps, INSPECTOR_THREAD_BRIDGE_PLUGIN_ID, INTELLIGENCE_TURN_HEAD, INTERRUPT_EVENT_NAME, type IdentityCapabilities, IdentityCapabilitiesSchema, type ImageInputContent, ImageInputContentSchema, type ImageInputPart, ImageInputPartSchema, type ImagePart, ImagePartSchema, type InputContent, type InputContentDataSource, InputContentDataSourceSchema, type InputContentPart, InputContentSchema, type InputContentSource, InputContentSourceSchema, type InputContentUrlSource, InputContentUrlSourceSchema, type InspectorActiveThreadPayload, type InspectorAnchor, type InspectorMetadataV1, type InspectorStopViewingPayload, type InspectorViewThreadPayload, type InspectorViewThreadResultPayload, IntelligenceAgent, type IntelligenceAgentConfig, IntelligenceIndicator, type IntelligenceIndicatorProps, type IntelligenceIndicatorStatus, IntelligenceIndicatorView, type IntelligenceIndicatorViewProps, type IntelligenceRuntimeInfo, type Interrupt, type InterruptCancelFn, type InterruptEvent, type InterruptHandlerProps, type InterruptRenderProps, type InterruptResolveFn, InterruptSchema, type JsonPatch, type JsonPatchOperation, JsonPatchOperationSchema, JsonPatchSchema, type JsonPointer, JsonPointerSchema, type JsonSerializable, type JsonValue, type LearnFromUserActionInCurrentThreadInput, type LearnFromUserActionInput, type LearnFromUserActionResult, type LearningConfig, type LegacyLearningConfig, type MCPAppsActivityContent, MCPAppsActivityContentSchema, MCPAppsActivityRenderer, MCPAppsActivityType, MEMORY_ERROR_REGISTRY, MarkdownRenderer, MarkdownRendererProps, MarkdownRendererProvider, type MarkdownSegment, type Memory, type MemoryChanges, MemoryError, type MemoryErrorCategory, type MemoryErrorCode, type MemoryErrorRegistryEntry, type MemoryKind, type MemoryRealtimeStatus, type MemoryScope, type Message, type MessageGroup, type MessageGroupWrapperProps, type MessageRow, MessageSchema, type MessagesSnapshotEvent, type MessagesSnapshotEventProps, MessagesSnapshotEventSchema, type Metadata, MetadataSchema, Middleware, type MiddlewareFunction, type MoveOperation, MoveOperationSchema, type MultiAgentCapabilities, MultiAgentCapabilitiesSchema, type MultimodalCapabilities, MultimodalCapabilitiesSchema, type MultimodalInputCapabilities, MultimodalInputCapabilitiesSchema, type MultimodalOutputCapabilities, MultimodalOutputCapabilitiesSchema, type NewMemory, type NonDispatchingEffect, type NonDispatchingEffectOptions, OPEN_GENERATIVE_UI_ACTIVITY_TYPE, OpenGenerativeUIActivityRenderer, OpenGenerativeUIActivityType, type OpenGenerativeUIContent, OpenGenerativeUIContentSchema, OpenGenerativeUIToolRenderer, type OpenThreadRegistration, OptionalMetadataSchema, type OutputCapabilities, OutputCapabilitiesSchema, PROTOCOL_VERSION, type PartSource, PartSourceSchema, type PropsActionConfig, ProxiedCopilotRuntimeAgent, type ProxiedCopilotRuntimeAgentConfig, type RawEvent, type RawEventProps, RawEventSchema, ReactActivityMessageRenderer, ReactCustomMessageRenderer, ReactCustomMessageRendererPosition, ReactFrontendTool, ReactHumanInTheLoop, ReactToolCallRenderer, type ReasoningCapabilities, ReasoningCapabilitiesSchema, type ReasoningEncryptedValueEvent, type ReasoningEncryptedValueEventProps, ReasoningEncryptedValueEventSchema, type ReasoningEncryptedValueSubtype, ReasoningEncryptedValueSubtypeSchema, type ReasoningEndEvent, type ReasoningEndEventProps, ReasoningEndEventSchema, type ReasoningMessage, type ReasoningMessageChunkEvent, type ReasoningMessageChunkEventProps, ReasoningMessageChunkEventSchema, type ReasoningMessageContentEvent, type ReasoningMessageContentEventProps, ReasoningMessageContentEventSchema, type ReasoningMessageEndEvent, type ReasoningMessageEndEventProps, ReasoningMessageEndEventSchema, ReasoningMessageSchema, type ReasoningMessageStartEvent, type ReasoningMessageStartEventProps, ReasoningMessageStartEventSchema, type ReasoningStartEvent, type ReasoningStartEventProps, ReasoningStartEventSchema, type Reducer, type RemoveOperation, RemoveOperationSchema, type ReplaceOperation, ReplaceOperationSchema, type ResolvedAgentDebugConfig, type ResumeEntry, ResumeEntrySchema, type ResumeStatus, type Role, RoleSchema, type RunAgentInput, RunAgentInputSchema, type RunAgentParameters, type RunAgentResult, type RunCompletionAware, type RunErrorEvent, type RunErrorEventProps, RunErrorEventSchema, type RunFinishedCancelledOutcome, RunFinishedCancelledOutcomeSchema, type RunFinishedEvent, type RunFinishedEventProps, RunFinishedEventSchema, type RunFinishedInterruptOutcome, RunFinishedInterruptOutcomeSchema, type RunFinishedOutcome, RunFinishedOutcomeSchema, type RunFinishedSuccessOutcome, RunFinishedSuccessOutcomeSchema, RunHandler, type RunStartedEvent, type RunStartedEventProps, RunStartedEventSchema, type RuntimeLicenseStatus, type RuntimeMode, SandboxFunction, SandboxFunctionsContext, type ScopedContext, type ScopedProperties, type Selector, type StartResult, type State, type StateCapabilities, StateCapabilitiesSchema, type StateDeltaEvent, type StateDeltaEventProps, StateDeltaEventSchema, StateManager, StateSchema, type StateSnapshotEvent, type StateSnapshotEventProps, StateSnapshotEventSchema, type StaticSuggestionsConfig, type StepFinishedEvent, type StepFinishedEventProps, StepFinishedEventSchema, type StepStartedEvent, type StepStartedEventProps, StepStartedEventSchema, type Store, type StoreLifecycleAction, StreamingMarkdownDefaultRenderer, type SubagentErrorEvent, type SubagentErrorEventProps, SubagentErrorEventSchema, type SubagentFinishedEvent, type SubagentFinishedEventProps, SubagentFinishedEventSchema, type SubagentFinishedOutcome, SubagentFinishedOutcomeSchema, type SubagentFinishedSuccessOutcome, SubagentFinishedSuccessOutcomeSchema, type SubagentFinishedSuspendedOutcome, SubagentFinishedSuspendedOutcomeSchema, type SubagentInfo, SubagentInfoSchema, type SubagentRunId, SubagentRunIdSchema, type SubagentStartedEvent, type SubagentStartedEventProps, SubagentStartedEventSchema, type SubscribeToAgentOptions, type SubscribeToAgentSubscriber, type Suggestion, type SuggestionAvailability, SuggestionEngine, type SuggestionsConfig, type SurfaceSegment, type SystemMessage, SystemMessageSchema, type TestOperation, TestOperationSchema, type TextInputContent, TextInputContentSchema, type TextMessageChunkEvent, type TextMessageChunkEventProps, TextMessageChunkEventSchema, type TextMessageContentEvent, type TextMessageContentEventProps, TextMessageContentEventSchema, type TextMessageEndEvent, type TextMessageEndEventProps, TextMessageEndEventSchema, type TextMessageRole, TextMessageRoleSchema, type TextMessageStartEvent, type TextMessageStartEventProps, TextMessageStartEventSchema, type TextPart, TextPartSchema, type Thread, type ThreadEndpointRuntimeInfo, type ThreadRunActivityNotification, type TokenUsage, TokenUsageSchema, type Tool, type ToolCall, type ToolCallArgsEvent, type ToolCallArgsEventProps, ToolCallArgsEventSchema, type ToolCallChunkEvent, type ToolCallChunkEventProps, ToolCallChunkEventSchema, type ToolCallEndEvent, type ToolCallEndEventProps, ToolCallEndEventSchema, type ToolCallEntry, type ToolCallRenderProps, type ToolCallRendererDef, type ToolCallResultEvent, type ToolCallResultEventProps, ToolCallResultEventSchema, ToolCallSchema, type ToolCallStartEvent, type ToolCallStartEventProps, ToolCallStartEventSchema, ToolCallStatus, type ToolMessage, ToolMessageSchema, ToolSchema, type ToolsCapabilities, ToolsCapabilitiesSchema, type ToolsMenuItem, type TrajectoryStartOptions, TranscriptionError, TranscriptionErrorCode, type TranscriptionErrorInfo, type TranscriptionResult, type TransportCapabilities, TransportCapabilitiesSchema, type UnrecognizedEvent, type UrlSource, UrlSourceSchema, UseAgentUpdate, type UseAttachmentsProps, type UseAttachmentsReturn, type UseInterruptConfig, type UseLearnFromUserActionInCurrentThreadRecorder, type UseLearnFromUserActionRecorder, type UseMemoriesResult, type UseThreadsInput, type UseThreadsResult, type UserMessage, UserMessageSchema, type VideoInputContent, VideoInputContentSchema, type VideoInputPart, VideoInputPartSchema, type VideoPart, VideoPartSchema, type WebMCPModelContext, WebMCPRegistry, type WebMCPToolAnnotations, type WebMCPToolConfig, WildcardToolCallRender, aggregateTokenUsage, authoritativeActivityTypes, buildResumeArray, classifySurfaceCards, compactEvents, completePartialMarkdown, contentHasMedia, contentToText, convertToLegacyEvents, createActionGroup, createDebugLogger, createEffect, createInspectorThreadRequestId, createReducer, createSelector, createStore, defaultApplyEvents, defineToolCallRenderer, emitInspectorActiveThread, emitInspectorStopViewing, emitInspectorViewThread, emitInspectorViewThreadResult, empty, enforceEvents, enforceOutgoingInput, ensureObjectArgs, extractCompleteArrayItems, extractFenceOperations, extractStringField, flattenInformationalCards, getIntelligenceTurnAnchors, getMarkdownOperationSurfaceId, getRunOutcome, getWebMCPModelContext, isAbortError, isInspectorThreadBridgeEnabled, isInterruptExpired, isRecognizedEvent, isRunCompletionAware, mergeMetadata, messageGroup, messageRow, ofType, omitOptionalNulls, on, onInspectorActiveThread, onInspectorStopViewing, onInspectorViewThread, onInspectorViewThreadResult, parseProtoStream, parseSSEStream, parseToolArguments, prepareSurfaceOperations, props, randomUUID, resolveAgentDebugConfig, resolveDebugLogger, runHttpRequest, segmentSurfaceProse, select, splitA2UIMarkdown, structuredClone_, tokenUsageFromAiSdkUsage, tokenUsageFromLangChainMetadata, transformChunks, transformHttpEventStream, useAgent, useAgentContext, useAttachments, useCapabilities, useComponent, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useDefaultRenderTool, useFrontendTool, useFrontendTools, useHumanInTheLoop, useInterrupt, useLearnFromUserAction, useLearnFromUserActionInCurrentThread, useLicenseContext, useMarkdownRenderer, useMemories, useRenderActivityMessage, useRenderCustomMessages, useRenderTool, useRenderToolCall, useSandboxFunctions, useSuggestions, useThreads, verifyEvents, withAuthoritativeActivityTypes, ɵALL_AGENT_UPDATES, type ɵActivityRendererFailureReason, type ɵActivityRendererLookup, type ɵActivityRendererQuery, type ɵActivityRenderersInput, type ɵAgentBindingInput, type ɵAgentContextInput, type ɵAgentResolveInput, ɵAgentResolver, type ɵAgentUpdateFlag, type ɵAssembledHumanInTheLoop, type ɵAssistantToolbarInput, ɵAttachmentQueue, ɵAudioRecorder, ɵAudioRecorderError, type ɵAudioRecorderState, type ɵAutoScrollMode, type ɵBranchNavInput, ɵCOMPOSER_DEFAULT_MAX_ROWS, ɵCOPILOTKIT_FEATURES, ɵCOPILOT_CLOUD_PUBLIC_API_KEY_HEADER, ɵCOPILOT_CLOUD_RUNTIME_URL, ɵCOPY_FEEDBACK_RESET_MS, type ɵChatConfigurationOptions, type ɵChatConfigurationSnapshot, ɵChatConfigurationStore, type ɵChatConnectHooks, ɵChatConnection, type ɵChatConnectionHandle, type ɵChatConnectionOptions, type ɵChatConnectionSnapshot, type ɵChatErrorEvent, type ɵChatNotice, type ɵChatRunScope, ɵChatSubmitter, type ɵChatSubmitterOptions, type ɵChatSubmitterSnapshot, type ɵChatViewStateInput, type ɵClassValue, type ɵClipboardItem, type ɵCommandMenuItem, ɵComposerAutosize, type ɵComposerAutosizeOptions, ɵComposerController, type ɵComposerControllerInputs, type ɵComposerControllerOptions, type ɵComposerElements, type ɵComposerInput, type ɵComposerKeyAction, type ɵComposerKeyDownResult, type ɵComposerKeyEvent, type ɵComposerLayout, type ɵComposerMode, type ɵComposerSnapshot, type ɵConnectionWaitResult, type ɵCopilotKitCoreConfigPatch, type ɵCopilotKitFeature, type ɵCopilotKitLearningOptions, type ɵCopilotKitProviderBaseOptions, ɵCopyFeedback, type ɵCustomMessageRunSource, type ɵDefaultToolCallRenderProps, type ɵDialogFocusOptions, ɵDockedSidebar, type ɵDockedSidebarPlacement, ɵDockedSidebarRegistry, type ɵDockedSidebarState, type ɵDockedSidebarTransition, type ɵDrawerThread, type ɵElementHeightState, ɵExitPresence, type ɵExitPresenceState, ɵFEEDBACK_COMMENT_CLOSE_DELAY_MS, ɵFeedbackCommentController, type ɵFeedbackCommentControllerOptions, type ɵFeedbackCommentState, type ɵFeedbackCommentVia, type ɵFeedbackKeyEvent, type ɵFeedbackThumb, type ɵFeedbackThumbAttributes, type ɵFeedbackThumbHandlers, ɵFreshThreadId, type ɵFrontendToolRenderer, ɵGENERATE_SANDBOXED_UI_ARGS_SCHEMA, type ɵGenerativeUIDebugFunction, type ɵGenerativeUIDebugPromptSection, type ɵGenerativeUIDebugRun, type ɵGenerativeUIDebugSnapshot, type ɵGenerativeUIDebugSource, type ɵGenerativeUIDebugSurface, type ɵGenerativeUIDefault, type ɵGenerativeUIDefaultInput, ɵHITL_ABORTED_MESSAGE, ɵHOVER_MENU_CLOSE_DELAY_MS, ɵHoverMenuController, type ɵHoverMenuState, ɵHumanInTheLoopRegistry, ɵINLINE_FEATURE_WARNING_STYLE, type ɵInspectorKiteArtwork, type ɵInspectorKiteGradient, type ɵInspectorKitePath, type ɵInspectorKiteStop, ɵInspectorThreadOverride, type ɵInspectorThreadOverrideInput, type ɵInspectorThreadOverrideSnapshot, ɵInterruptController, type ɵInterruptControllerOptions, type ɵInterruptDecision, type ɵInterruptEvent, ɵInterruptExpiredError, type ɵInterruptRunner, type ɵInterruptSnapshot, ɵInterruptState, type ɵInterruptToolResult, type ɵJsonSerializable, ɵKEYBOARD_OPEN_THRESHOLD_PX, type ɵKeyboardState, ɵLICENSE_BANNER_OFFSET, ɵLICENSE_BANNER_STYLE, type ɵLastUserMessageState, type ɵLearnFromUserActionFields, ɵLearningAutoStarter, type ɵLicenseBannerDetails, type ɵLicenseBannerSeverity, type ɵLicenseBannerSpec, type ɵLicenseBannerType, type ɵLicenseStateInput, ɵMAX_SOCKET_RETRIES, ɵMESSAGE_FEEDBACK_EVENT_NAME, ɵMESSAGE_FEEDBACK_MAX_COMMENT_LENGTH, ɵMOBILE_MAX_WIDTH_QUERY, type ɵMcpFollowUpHost, type ɵMemoryEnvironment, type ɵMemoryMetadataEvent, type ɵMemoryRuntimeContext, type ɵMemoryState, type ɵMemoryStore, type ɵMessageFeedback, type ɵMessageFeedbackControls, type ɵMessageFeedbackRating, type ɵMessageFeedbackScope, type ɵMessageViewInput, ɵMessageViewModel, type ɵModeRecorder, ɵOPEN_GENERATIVE_UI_CONTENT_SCHEMA, ɵOPEN_GENERATIVE_UI_DESIGN_CONTEXT_DESCRIPTION, ɵOPEN_GENERATIVE_UI_SANDBOX_FUNCTIONS_CONTEXT_DESCRIPTION, ɵOpenGenerativeUIController, type ɵOpenGenerativeUIControllerOptions, type ɵOpenGenerativeUIPhase, type ɵOpenGenerativeUISandboxFunction, type ɵOpenGenerativeUISchema, type ɵOpenGenerativeUIState, type ɵOpenThreadRegistry, ɵPLACEHOLDER_CYCLE_MS, ɵPOPUP_ANIMATION_MS, ɵPOPUP_DEFAULT_HEIGHT, ɵPOPUP_DEFAULT_WIDTH, type ɵPendingInterrupt, type ɵPhoenixChannelLike, type ɵPhoenixChannelOptions, type ɵPhoenixChannelSession, type ɵPhoenixJoinOutcome, type ɵPhoenixPushLike, type ɵPhoenixSocketLike, type ɵPhoenixSocketOptions, type ɵPhoenixSocketSession, type ɵPhoenixSocketSignal, type ɵPinMessageToTopOptions, ɵPlaceholderCycler, type ɵPlaceholderCyclerSnapshot, type ɵPopupDismissOptions, type ɵProviderConfigDiagnostic, type ɵProviderConfigDiagnosticCode, type ɵProviderConfigInput, type ɵProviderFrontendTool, type ɵProviderHumanInTheLoop, type ɵProviderRegistryInput, type ɵProviderToolRenderer, ɵRESIZE_SETTLE_MS, ɵRUNTIME_PROBE_TIMEOUT_MS, type ɵRawToolCallRenderProps, ɵReasoningDisclosure, type ɵReasoningDisclosureOptions, type ɵReasoningDisclosureState, type ɵReasoningDuration, type ɵRecordAnnotationArgs, type ɵRecordAnnotationResult, type ɵRendererKind, ɵRendererRegistry, type ɵRendererRegistryInit, type ɵReportProviderConfigDiagnosticsOptions, type ɵResolvedProviderConfig, type ɵRunnableCommand, type ɵRuntimeInfo, ɵRuntimeInfoStore, ɵSCROLL_BOTTOM_THRESHOLD_PX, ɵSIDEBAR_DEFAULT_WIDTH, ɵSIDEBAR_TRANSITION_MS, ɵSTABLE_ARRAY_WARNINGS, type ɵSandboxFunctionHandle, type ɵSandboxLocalApi, type ɵSidebarPosition, type ɵSlashKeyResult, type ɵSlashMenuState, type ɵStableArrayProp, type ɵStaticSuggestionInput, ɵStickToBottom, type ɵStickToBottomOptions, type ɵSuggestionsBinding, type ɵSuggestionsBindingOptions, type ɵSuggestionsConfigInput, ɵTAB_STOP_SELECTOR, ɵTHREAD_REQUEST_TIMEOUT_MS, ɵTOOL_CALL_STATUS_ICONS, ɵTOOL_CALL_STATUS_LABEL_KEYS, ɵTRANSCRIPTION_ERROR_TIMEOUT_MS, type ɵTextareaMetrics, type ɵThread, type ɵThreadBaselineResetOptions, type ɵThreadEnvironment, type ɵThreadMetadataEvent, type ɵThreadRuntimeContext, ɵThreadSelection, type ɵThreadSelectionInput, type ɵThreadSelectors, type ɵThreadStore, type ɵThreadSummary, ɵThreadSwitchCoordinator, ɵThreadsController, type ɵThreadsCore, type ɵThreadsDrawerCallbacks, type ɵThreadsDrawerConfig, type ɵThreadsDrawerThreads, type ɵThreadsInput, type ɵThreadsSnapshot, type ɵToolCallCardStatus, type ɵToolCallDisplayContextValue, type ɵToolCallGroupAppearance, type ɵToolCallLayout, type ɵToolCallRendererNames, type ɵToolCallRendererNamesOptions, type ɵToolCallRowStatus, type ɵToolCallSegment, type ɵToolRendererShape, type ɵToolsMenuDisplayEntry, type ɵTranscriptionCore, type ɵTranscriptionErrorLabelKey, type ɵTurnOpenState, type ɵTurnWork, type ɵUserMessageMediaPart, type ɵWebsandboxConstructor, type ɵWebsandboxInstance, type ɵWebsandboxLoader, type ɵWorkSummaryInput, type ɵWorkTime, ɵadaptDefaultToolCallRenderProps, ɵaddOpenGenerativeUIContexts, ɵagentUpdateHandlers, ɵappendTranscript, ɵassembleActivityRenderers, ɵassembleHumanInTheLoop, ɵassembleProviderRegistry, ɵassembleProviderToolRenderers, ɵassembleProviderTools, ɵbindDialogFocus, ɵbindPopupDismiss, ɵbindSuggestionsConfig, ɵbuildHumanInTheLoopTool, ɵbuildLearnFromUserActionPayload, ɵbuildOpenGenerativeUIContexts, ɵbuildToolCallRenderProps, ɵbuildUserMessage, ɵbuildUserMessageContent, ɵcanPreviewDocument, ɵclampSlashIndex, ɵclearAgentInterruptState, ɵclearAgentThreadCursors, ɵcn, ɵcomponentToolDescription, ɵcomposerButtonState, ɵcopilotIconSvgAttributes, ɵcopilotIcons, ɵcountFailedToolCalls, ɵcreateChatSubmitter, ɵcreateComposerAutosize, ɵcreateDockedSidebar, ɵcreateExitPresence, ɵcreateLastUserMessageTracker, ɵcreateMemoryStore, ɵcreateMessageViewModel, ɵcreateObjectUrlFromSource, ɵcreateOpenGenerativeUITool, ɵcreateStickToBottom, ɵcreateThreadSelectors, ɵcreateThreadStore, ɵcreateThreadsDrawerActions, ɵcreateWaveformRenderer, ɵdecodeTextSource, ɵdeduplicateMessages, ɵdescribeActivityRendererFailure, ɵdescribeUnrenderedToolCalls, ɵdimensionToCss, ɵdockedSidebarRegistryFor, ɵduplicateMessagesWarning, ɵextractCompleteStyles, ɵfilterCommands, ɵfindActivityRenderer, ɵfindChatInput, ɵfindToolMessage, ɵfitTextareaHeight, ɵflattenCommandItems, ɵflattenToolsMenuForDisplay, ɵflattenUserMessageContent, ɵformatCountLabel, ɵformatLabel, ɵformatReasoningDuration, ɵformatReasoningDurationLabel, ɵformatToolNames, ɵformatWorkDuration, ɵgetAgentCapabilities, ɵgetAgentInterruptState, ɵgetAgentResolver, ɵgetArgumentPreview, ɵgetBranchNavState, ɵgetChatViewState, ɵgetCustomMessageRenderProps, ɵgetInlineFeatureWarningSpec, ɵgetLastUserMessageId, ɵgetLatestTurnKey, ɵgetLicenseBannerSpec, ɵgetMessageFeedback, ɵgetMessageFeedbackControls, ɵgetMessageRunStateSnapshot, ɵgetReasoningHeaderLabel, ɵgetThreadsDrawerElementProps, ɵgetToolCallBadge, ɵgetToolCallGroupState, ɵgetToolCallLayouts, ɵgetToolCallPreview, ɵgetToolCallRendererNames, ɵgetToolCallRowStatus, ɵgetToolCallStatus, ɵgetToolResults, ɵgetTurnWork, ɵgetUserMessageMediaFilename, ɵgetUserMessageMediaParts, ɵgetWorkOpenState, ɵgetWorkSummaryText, ɵhasAssistantMessageText, ɵhitlRenderProps, ɵimplementsConnect, ɵinitialKeyboardState, ɵinspectorKiteFill, ɵinspectorKiteIcon, ɵinspectorShortcuts, ɵisContentPart, ɵisContentScrolledToBottom, ɵisCopilotKitFeature, ɵisFocusVisible, ɵisHttpAgent, ɵisLearningFeedbackEnabled, ɵisMobileViewport, ɵisOpenGenerativeUIActive, ɵisOwnFeedbackThumb, ɵisRetryableMemoryStatus, ɵisScrolledToBottom, ɵisTurnWorkOpen, ɵisTurnWorking, ɵjoinPhoenixChannel$, ɵloadWebsandbox, ɵmapMemoryMetadataEvent, ɵmatchActivityRenderer, ɵmeasureTextarea, ɵmemoryAdapterEvents, ɵmemoryDomainEvents, ɵmemoryReducer, ɵmemoryRestEvents, ɵmessagesFingerprint, ɵmorphViewTransition, ɵnextSlashIndex, ɵnextTabStop, ɵnormalizeAutoScroll, ɵnormalizeToolCallStatus, ɵnormalizeToolsMenu, ɵobservePhoenixEvent$, ɵobservePhoenixJoinOutcome$, ɵobservePhoenixSocketHealth$, ɵobservePhoenixSocketSignals$, ɵparseSlashQuery, ɵparseToolCallArguments, ɵphoenixChannel$, ɵphoenixSocket$, ɵpinMessageToTop, ɵpluralize, ɵprocessPartialHtml, ɵprojectThread, ɵpublicKeyHeaderDefaults, ɵreadKeyboardState, ɵrecordAnnotation, ɵrecordWorkTime, ɵregisterFrontendTools, ɵreportProviderConfigDiagnostics, ɵreserveLicenseBannerOffset, ɵresetAgentThreadBaseline, ɵresetMessageFeedbackCache, ɵresolveActivityRenderer, ɵresolveAgentId, ɵresolveAgentThreadId, ɵresolveChatNotice, ɵresolveComposerKey, ɵresolveCustomMessageRenderContext, ɵresolveCustomMessageRenderers, ɵresolveGenerativeUIDefault, ɵresolveLicenseState, ɵresolveProviderConfig, ɵresolveSlashKey, ɵresolveThreadsLicense, ɵresolveToolCallAgentId, ɵresolveToolCallRenderer, ɵrmsAmplitude, ɵrunMcpFollowUp, ɵselectFetchMoreError, ɵselectHasNextPage, ɵselectIsFetchingNextPage, ɵselectIsMutating, ɵselectMemories, ɵselectMemoriesAvailable, ɵselectMemoriesError, ɵselectMemoriesIsLoading, ɵselectMemoriesIsMutating, ɵselectMemoriesRealtimeStatus, ɵselectThreads, ɵselectThreadsError, ɵselectThreadsIsLoading, ɵserializeContextValue, ɵsetMessageFeedback, ɵshallowEqualRecord, ɵshouldShowAssistantToolbar, ɵshouldShowMessageCursor, ɵshowsComposerDisclaimer, ɵsnapshotAgentState, ɵstableArrayPropWarning, ɵstopAgentWithFallback, ɵstringifyToolCallAttr, ɵstringifyToolCallPayload, ɵsubscribeToAgentErrors, ɵsubscribeToAgentSuggestions, ɵsubscribeToAgentUpdates, ɵsubscribeToLearningFeedbackEnabled, ɵsubscribeToMessageFeedback, ɵsyncRecorderToMode, ɵthreadAdapterEvents, ɵtoDefaultToolCallStatus, ɵtoDrawerThread, ɵtoLearningConfig, ɵtoolCallAppearance, ɵtoolRendererShapeChanged, ɵtranscribeAudio, ɵtranscriptionErrorMessageKey, ɵtranscriptionErrorNotice, ɵvalidateAgentBinding, ɵwaitForActiveRun, ɵwatchElementHeight, ɵwatchElementWidth, ɵwatchKeyboardState, ɵwatchMobileViewport, ɵwithHeaderDefaults };
3463
2891
  //# sourceMappingURL=index.d.mts.map