@copilotkit/react-core 2.0.0-rc.2 → 2.0.0-rc.20

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 (47) hide show
  1. package/dist/{MarkdownRendererContext-B4Us6mwL.d.cts → MarkdownRendererContext-Bsl28Gmn.d.mts} +17 -33
  2. package/dist/MarkdownRendererContext-Bsl28Gmn.d.mts.map +1 -0
  3. package/dist/{MarkdownRendererContext-CRKFzsEB.d.mts → MarkdownRendererContext-CBppkb5j.d.cts} +17 -33
  4. package/dist/MarkdownRendererContext-CBppkb5j.d.cts.map +1 -0
  5. package/dist/{MarkdownSurfaces-Bd--93O1.mjs → MarkdownSurfaces-Bt7TD_U1.mjs} +177 -136
  6. package/dist/MarkdownSurfaces-Bt7TD_U1.mjs.map +1 -0
  7. package/dist/{MarkdownSurfaces-S4wfUl3J.cjs → MarkdownSurfaces-CoUoPhR9.cjs} +198 -156
  8. package/dist/MarkdownSurfaces-CoUoPhR9.cjs.map +1 -0
  9. package/dist/context.cjs +28 -26
  10. package/dist/context.cjs.map +1 -1
  11. package/dist/context.d.cts +38 -98
  12. package/dist/context.d.cts.map +1 -1
  13. package/dist/context.d.mts +38 -98
  14. package/dist/context.d.mts.map +1 -1
  15. package/dist/context.mjs +28 -26
  16. package/dist/context.mjs.map +1 -1
  17. package/dist/generative-ui.cjs +570 -567
  18. package/dist/generative-ui.cjs.map +1 -1
  19. package/dist/generative-ui.d.cts +2137 -4178
  20. package/dist/generative-ui.d.cts.map +1 -1
  21. package/dist/generative-ui.d.mts +2137 -4178
  22. package/dist/generative-ui.d.mts.map +1 -1
  23. package/dist/generative-ui.mjs +75 -73
  24. package/dist/generative-ui.mjs.map +1 -1
  25. package/dist/headless.cjs +55 -84
  26. package/dist/headless.cjs.map +1 -1
  27. package/dist/headless.d.cts +78 -253
  28. package/dist/headless.d.cts.map +1 -1
  29. package/dist/headless.d.mts +56 -202
  30. package/dist/headless.d.mts.map +1 -1
  31. package/dist/headless.mjs +48 -82
  32. package/dist/headless.mjs.map +1 -1
  33. package/dist/index.cjs +1628 -2398
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.d.cts +203 -540
  36. package/dist/index.d.cts.map +1 -1
  37. package/dist/index.d.mts +202 -539
  38. package/dist/index.d.mts.map +1 -1
  39. package/dist/index.mjs +965 -2248
  40. package/dist/index.mjs.map +1 -1
  41. package/dist/index.umd.js +1776 -2466
  42. package/dist/index.umd.js.map +1 -1
  43. package/package.json +17 -18
  44. package/dist/MarkdownRendererContext-B4Us6mwL.d.cts.map +0 -1
  45. package/dist/MarkdownRendererContext-CRKFzsEB.d.mts.map +0 -1
  46. package/dist/MarkdownSurfaces-Bd--93O1.mjs.map +0 -1
  47. package/dist/MarkdownSurfaces-S4wfUl3J.cjs.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,37 +1,22 @@
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 { 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-Bsl28Gmn.mjs";
2
+ 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, 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, CustomMessageRenderProps, CustomMessageRenderProps as CustomMessageRenderProps$1, CustomMessageRendererDef, CustomMessageRendererDef as CustomMessageRendererDef$1, CustomMessageRendererPosition, CustomMessageRendererPosition as CustomMessageRendererPosition$1, DEFAULT_OPEN_GENERATIVE_UI_DESIGN_SKILL, DispatchingEffect, DispatchingEffectOptions, DynamicSuggestionsConfig, DynamicSuggestionsConfig as DynamicSuggestionsConfig$1, 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, LearningConfig as LearningConfig$1, 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, StaticSuggestionsConfig as StaticSuggestionsConfig$1, 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, ɵActivityRendererQuery, ɵAssistantToolbarInput, ɵAutoScrollMode, ɵAutoScrollMode as AutoScrollMode, ɵBranchNavInput, ɵCOPILOTKIT_FEATURES, ɵCOPY_FEEDBACK_RESET_MS, ɵClassValue, ɵComposerInput, ɵComposerKeyEvent, ɵComposerMode, ɵCopilotKitFeature, ɵCopyFeedback, ɵFEEDBACK_COMMENT_CLOSE_DELAY_MS, ɵFeedbackCommentController, ɵFeedbackCommentControllerOptions, ɵFeedbackCommentState, ɵFeedbackCommentVia, ɵGenerativeUIDebugFunction, ɵGenerativeUIDebugPromptSection, ɵGenerativeUIDebugRun, ɵGenerativeUIDebugSnapshot, ɵGenerativeUIDebugSource, ɵGenerativeUIDebugSurface, ɵHOVER_MENU_CLOSE_DELAY_MS, ɵHoverMenuController, ɵHoverMenuState, ɵINLINE_FEATURE_WARNING_STYLE, ɵInspectorKiteArtwork, ɵInspectorKiteGradient, ɵInspectorKitePath, ɵInspectorKiteStop, ɵInterruptDecision, ɵInterruptEvent, ɵInterruptState, ɵInterruptToolResult, ɵKEYBOARD_OPEN_THRESHOLD_PX, ɵKeyboardState, ɵLICENSE_BANNER_OFFSET, ɵLICENSE_BANNER_STYLE, ɵ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, ɵOpenGenerativeUIController, ɵOpenGenerativeUIControllerOptions, ɵOpenGenerativeUIPhase, ɵOpenGenerativeUIState, ɵPendingInterrupt, ɵPhoenixChannelLike, ɵPhoenixChannelOptions, ɵPhoenixChannelSession, ɵPhoenixJoinOutcome, ɵPhoenixPushLike, ɵPhoenixSocketLike, ɵPhoenixSocketOptions, ɵPhoenixSocketSession, ɵPhoenixSocketSignal, ɵPinMessageToTopOptions, ɵRUNTIME_PROBE_TIMEOUT_MS, ɵReasoningDuration, ɵSandboxFunctionHandle, ɵSandboxLocalApi, ɵTHREAD_REQUEST_TIMEOUT_MS, ɵThread, ɵThreadEnvironment, ɵThreadMetadataEvent, ɵThreadRuntimeContext, ɵThreadSelectors, ɵThreadStore, ɵToolCallDisplayContextValue, ɵToolCallLayout, ɵToolCallRendererNames, ɵToolCallRendererNamesOptions, ɵToolCallRowStatus, ɵToolCallSegment, ɵTranscriptionCore, ɵTranscriptionErrorLabelKey, ɵTurnOpenState, ɵTurnWork, ɵUserMessageMediaPart, ɵWebsandboxConstructor, ɵWebsandboxInstance, ɵWebsandboxLoader, ɵWorkSummaryInput, ɵWorkTime, ɵclearAgentInterruptState, ɵcn, ɵcomposerButtonState, ɵcopilotIconSvgAttributes, ɵcopilotIcons, ɵcountFailedToolCalls, ɵcreateMemoryStore, ɵcreateThreadSelectors, ɵcreateThreadStore, ɵdeduplicateMessages, ɵextractCompleteStyles, ɵflattenUserMessageContent, ɵformatCountLabel, ɵformatLabel, ɵformatReasoningDuration, ɵformatReasoningDurationLabel, ɵformatToolNames, ɵformatWorkDuration, ɵgetAgentInterruptState, ɵgetArgumentPreview, ɵgetBranchNavState, ɵgetInlineFeatureWarningSpec, ɵgetLatestTurnKey, ɵgetLicenseBannerSpec, ɵgetMessageFeedback, ɵgetMessageFeedbackControls, ɵgetToolCallLayouts, ɵgetToolCallPreview, ɵgetToolCallRendererNames, ɵgetToolCallRowStatus, ɵgetToolResults, ɵgetTurnWork, ɵgetUserMessageMediaFilename, ɵgetUserMessageMediaParts, ɵgetWorkOpenState, ɵgetWorkSummaryText, ɵhasAssistantMessageText, ɵinitialKeyboardState, ɵinspectorKiteFill, ɵinspectorKiteIcon, ɵinspectorShortcuts, ɵisCopilotKitFeature, ɵisHttpAgent, ɵisLearningFeedbackEnabled, ɵisMobileViewport, ɵisRetryableMemoryStatus, ɵisTurnWorkOpen, ɵisTurnWorking, ɵjoinPhoenixChannel$, ɵloadWebsandbox, ɵmapMemoryMetadataEvent, ɵmemoryAdapterEvents, ɵmemoryDomainEvents, ɵmemoryReducer, ɵmemoryRestEvents, ɵmessagesFingerprint, ɵnormalizeAutoScroll, ɵobservePhoenixEvent$, ɵobservePhoenixJoinOutcome$, ɵobservePhoenixSocketHealth$, ɵobservePhoenixSocketSignals$, ɵphoenixChannel$, ɵphoenixSocket$, ɵpinMessageToTop, ɵpluralize, ɵprocessPartialHtml, ɵreadKeyboardState, ɵrecordWorkTime, ɵreserveLicenseBannerOffset, ɵresetMessageFeedbackCache, ɵresolveActivityRenderer, ɵresolveComposerKey, ɵresolveCustomMessageRenderers, ɵresolveLicenseState, ɵresolveThreadsLicense, ɵresolveToolCallRenderer, ɵselectFetchMoreError, ɵselectHasNextPage, ɵselectIsFetchingNextPage, ɵselectIsMutating, ɵselectMemories, ɵselectMemoriesAvailable, ɵselectMemoriesError, ɵselectMemoriesIsLoading, ɵselectMemoriesIsMutating, ɵselectMemoriesRealtimeStatus, ɵselectThreads, ɵselectThreadsError, ɵselectThreadsIsLoading, ɵsetMessageFeedback, ɵshallowEqualRecord, ɵshouldShowAssistantToolbar, ɵstringifyToolCallPayload, ɵsubscribeToLearningFeedbackEnabled, ɵsubscribeToMessageFeedback, ɵthreadAdapterEvents, ɵtranscribeAudio, ɵtranscriptionErrorMessageKey, ɵwatchKeyboardState, ɵwatchMobileViewport, ɵ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, 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
4
  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
5
  import * as react from "react";
6
6
  import React$1, { ComponentType, ReactNode } from "react";
7
7
  import * as react_jsx_runtime0 from "react/jsx-runtime";
8
8
  import { Attachment, Attachment as Attachment$1, AttachmentModality, AttachmentsConfig, AttachmentsConfig as AttachmentsConfig$1, DebugConfig, InferSchemaOutput, InputContentSource as InputContentSource$1, StandardSchemaV1 } from "@copilotkit/shared";
9
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";
11
10
  import { MCPAppsActivityContent, MCPAppsActivityContent as MCPAppsActivityContent$1, MCPAppsActivityContentSchema, MCPAppsActivityType, ɵMcpFollowUpHost, ɵrunMcpFollowUp } from "@copilotkit/mcp-apps-renderer/activity";
11
+ import * as z from "zod";
12
12
  import { Theme, Theme as A2UITheme, defaultTheme as a2uiDefaultTheme } from "@copilotkit/a2ui-renderer";
13
13
  import { Anchor as InspectorAnchor } from "@copilotkit/web-inspector";
14
14
  import { CopilotKitContextValue, useCopilotKit, useLicenseContext } from "@copilotkit/react-core/context";
15
15
 
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
16
  //#region src/components/chat/StreamingMarkdownDefaultRenderer.d.ts
32
17
  /**
33
18
  * react-core's built-in default markdown renderer — a thin adapter over
34
- * `@copilotkit/markdown-renderer`'s streaming renderer. Maps the pluggable
19
+ * `@copilotkit/markdown`'s streaming renderer. Maps the pluggable
35
20
  * renderer contract (`{ content, isStreaming, className }`) onto the streaming
36
21
  * renderer for streaming-safe incremental rendering + per-token animation.
37
22
  * Still overridable via the slot/provider pluggable interface.
@@ -65,139 +50,6 @@ interface AudioRecorderRef {
65
50
  }
66
51
  declare const CopilotChatAudioRecorder: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & react.RefAttributes<AudioRecorderRef>>;
67
52
  //#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
53
  //#region src/lib/slots.d.ts
202
54
  /** Existing union (unchanged) */
203
55
  type SlotValue<C extends React$1.ComponentType<any>> = C | string | Partial<React$1.ComponentProps<C>>;
@@ -317,7 +169,7 @@ declare namespace CopilotChatInput {
317
169
  */
318
170
  const ToolbarButton: React$1.FC<React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
319
171
  icon: React$1.ReactNode;
320
- labelKey: keyof CopilotChatLabels;
172
+ labelKey: keyof CopilotChatLabels$1;
321
173
  defaultClassName?: string;
322
174
  }>;
323
175
  const StartTranscribeButton: React$1.FC<React$1.ButtonHTMLAttributes<HTMLButtonElement>>;
@@ -337,38 +189,13 @@ declare namespace CopilotChatInput {
337
189
  const Disclaimer: React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>;
338
190
  }
339
191
  //#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
192
  //#region src/components/chat/CopilotChatToolCallGroup.d.ts
366
193
  type CopilotChatToolCallGroupAppearance = "card" | "line" | "stack";
367
194
  interface CopilotChatToolCallGroupProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> {
368
195
  /** The calls in the group, in order. */
369
- calls: ToolCallEntry[];
196
+ calls: ToolCallEntry$1[];
370
197
  /** Renders one call through the registered renderers. */
371
- renderCall: (call: ToolCallEntry) => React$1.ReactNode;
198
+ renderCall: (call: ToolCallEntry$1) => React$1.ReactNode;
372
199
  /**
373
200
  * - `"card"` (default): one card with a summary header and a row per call.
374
201
  * - `"line"`: a quiet line of text that opens to a list of rows.
@@ -406,7 +233,7 @@ type CopilotChatToolCallsViewProps = {
406
233
  * view it follows the view's `toolCallDisplay`; on its own it defaults to
407
234
  * `"grouped"`.
408
235
  */
409
- display?: CopilotChatToolCallDisplay;
236
+ display?: CopilotChatToolCallDisplay$1;
410
237
  /**
411
238
  * Draws a group of calls made in a row: a component, a class name for the
412
239
  * default group, or props for it (e.g. `{ appearance: "line" }`).
@@ -612,7 +439,8 @@ type CopilotChatReasoningMessageProps = WithSlots<{
612
439
  /**
613
440
  * A reasoning message as a collapsible block. While the model reasons it is
614
441
  * open and the header shows `labels.reasoningMessageThinkingLabel`; when
615
- * streaming ends it collapses and the header reads "Thought for …". The
442
+ * streaming ends it collapses and the header reads
443
+ * `labels.reasoningMessageThoughtForLabel` ("Thought for 4 seconds"). The
616
444
  * `header` slot also receives `elapsedSeconds`.
617
445
  */
618
446
  declare function CopilotChatReasoningMessage({
@@ -693,7 +521,7 @@ interface CopilotChatWorkSummaryProps extends React$1.ButtonHTMLAttributes<HTMLB
693
521
  /** Whether the work (narration and tool calls) is showing. */
694
522
  isOpen: boolean;
695
523
  /** The tool calls the reply made. */
696
- calls: ToolCallEntry[];
524
+ calls: ToolCallEntry$1[];
697
525
  /**
698
526
  * How long the agent has worked on the reply, in ms, summed over its runs
699
527
  * so time spent waiting between them doesn't count. Only known for replies
@@ -705,8 +533,9 @@ interface CopilotChatWorkSummaryProps extends React$1.ButtonHTMLAttributes<HTMLB
705
533
  }
706
534
  /**
707
535
  * 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.
536
+ * agent works it reads "Working 4s". Once the reply is done it reads "Worked
537
+ * for 9s" and "7 tools", and toggles the work it folded away. The text comes
538
+ * from the `workSummary...` and `toolCall...` chat labels.
710
539
  */
711
540
  declare function CopilotChatWorkSummary({
712
541
  isWorking,
@@ -913,9 +742,9 @@ declare function messageRow(message: Message$1): MessageRow;
913
742
  /** A row holding a group of messages, rendered inside `wrapper`. */
914
743
  declare function messageGroup<S>(group: Omit<MessageGroup<S>, "type">): MessageRow;
915
744
  type CopilotChatMessageViewProps = Omit<WithSlots<{
916
- assistantMessage: typeof CopilotChatAssistantMessage;
917
- userMessage: typeof CopilotChatUserMessage;
918
- reasoningMessage: typeof CopilotChatReasoningMessage;
745
+ assistantMessage: React$1.ComponentType<CopilotChatAssistantMessageProps>;
746
+ userMessage: React$1.ComponentType<CopilotChatUserMessageProps>;
747
+ reasoningMessage: React$1.ComponentType<CopilotChatReasoningMessageProps>;
919
748
  cursor: typeof CopilotChatMessageView.Cursor;
920
749
  intelligenceIndicator: typeof IntelligenceIndicatorView; /** The "Working… / Worked for 9s" line of the `"turn"` tool-call display. */
921
750
  workSummary: typeof CopilotChatWorkSummary;
@@ -961,7 +790,7 @@ type CopilotChatMessageViewProps = Omit<WithSlots<{
961
790
  * "Worked for 9s" once it's done; `"separate"` gives every call its own
962
791
  * card. Calls with a renderer of their own always show on their own.
963
792
  */
964
- toolCallDisplay?: CopilotChatToolCallDisplay;
793
+ toolCallDisplay?: CopilotChatToolCallDisplay$1;
965
794
  } & React$1.HTMLAttributes<HTMLDivElement>>, "children"> & {
966
795
  children?: (props: {
967
796
  isRunning: boolean;
@@ -994,9 +823,6 @@ declare namespace CopilotChatMessageView {
994
823
  }: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime0.JSX.Element;
995
824
  }
996
825
  //#endregion
997
- //#region src/components/chat/normalize-auto-scroll.d.ts
998
- type AutoScrollMode = "pin-to-bottom" | "pin-to-send" | "none";
999
- //#endregion
1000
826
  //#region src/components/chat/CopilotChatView.d.ts
1001
827
  type WelcomeScreenProps = WithSlots<{
1002
828
  welcomeMessage: React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>;
@@ -1005,7 +831,7 @@ type WelcomeScreenProps = WithSlots<{
1005
831
  suggestionView: React$1.ReactElement;
1006
832
  } & React$1.HTMLAttributes<HTMLDivElement>>;
1007
833
  type CopilotChatViewProps = WithSlots<{
1008
- messageView: typeof CopilotChatMessageView;
834
+ messageView: React$1.ComponentType<CopilotChatMessageViewProps>;
1009
835
  scrollView: typeof CopilotChatView.ScrollView;
1010
836
  input: React$1.ComponentType<CopilotChatInputProps>;
1011
837
  suggestionView: typeof CopilotChatSuggestionView;
@@ -1040,6 +866,13 @@ type CopilotChatViewProps = WithSlots<{
1040
866
  * and the bootstrap messages arriving from /connect.
1041
867
  */
1042
868
  isConnecting?: boolean;
869
+ /**
870
+ * Indicator shown while `isConnecting` is `true` and no messages have
871
+ * arrived yet, so restoring a thread's history doesn't render as an
872
+ * empty panel. Pass `false` to disable it, or a component, className, or
873
+ * props object to customize it.
874
+ */
875
+ connectingIndicator?: SlotValue<React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>> | boolean;
1043
876
  /**
1044
877
  * When `true`, the caller has explicitly picked a thread (via `threadId`
1045
878
  * prop or `CopilotChatConfigurationProvider`). Suppresses the welcome
@@ -1048,13 +881,6 @@ type CopilotChatViewProps = WithSlots<{
1048
881
  * connect) rather than a generic "start a new chat" greeting.
1049
882
  */
1050
883
  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
884
  /**
1059
885
  * Slot for the "Using CopilotKit Intelligence" indicator. Pass-through
1060
886
  * to `CopilotChatMessageView`'s `intelligenceIndicator` slot — accepts a
@@ -1091,8 +917,8 @@ declare function CopilotChatView({
1091
917
  onDragLeave,
1092
918
  onDrop,
1093
919
  isConnecting,
920
+ connectingIndicator,
1094
921
  hasExplicitThreadId,
1095
- disclaimer,
1096
922
  intelligenceIndicator,
1097
923
  children,
1098
924
  className,
@@ -1113,15 +939,28 @@ declare namespace CopilotChatView {
1113
939
  */
1114
940
  const ScrollToBottomButton: React$1.FC<React$1.ButtonHTMLAttributes<HTMLButtonElement>>;
1115
941
  const Feather: React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>;
942
+ /**
943
+ * Default indicator shown while a thread's history is being restored.
944
+ * Renders a spinner plus visually hidden `labels.chatConnectingLabel` text
945
+ * inside a `role="status"` region. Replace it via the `connectingIndicator`
946
+ * slot.
947
+ */
948
+ const ConnectingIndicator: React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>;
1116
949
  const WelcomeMessage: React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>;
1117
950
  const WelcomeScreen: React$1.FC<WelcomeScreenProps>;
1118
951
  }
1119
952
  //#endregion
1120
953
  //#region src/components/chat/CopilotChat.d.ts
1121
- type CopilotChatProps = Omit<CopilotChatViewProps, "messages" | "isRunning" | "suggestions" | "suggestionLoadingIndexes" | "onSelectSuggestion" | "attachments" | "onRemoveAttachment" | "onAddFile" | "dragOver" | "onDragOver" | "onDragLeave" | "onDrop"> & {
954
+ type CopilotChatProps = Omit<CopilotChatViewProps, "messages" | "isRunning" | "suggestions" | "suggestionLoadingIndexes" | "onSelectSuggestion" | "attachments" | "onRemoveAttachment" | "onAddFile" | "dragOver" | "onDragOver" | "onDragLeave" | "onDrop" | "onError" | "inputMode"> & {
955
+ /**
956
+ * @deprecated Has no effect. `CopilotChat` sets the input mode from its own
957
+ * transcription state. To set it yourself, render `CopilotChatView` and pass
958
+ * `inputMode` there.
959
+ */
960
+ inputMode?: CopilotChatViewProps["inputMode"];
1122
961
  agentId?: string;
1123
962
  threadId?: string;
1124
- labels?: Partial<CopilotChatLabels>;
963
+ labels?: Partial<CopilotChatLabels$1>;
1125
964
  /**
1126
965
  * Enable Inspector message shortcuts for this chat (enabled by default).
1127
966
  * An explicit CopilotKit provider enableInspector value takes priority.
@@ -1794,63 +1633,25 @@ declare const OpenGenerativeUIContentSchema: z.ZodObject<{
1794
1633
  generating: z.ZodOptional<z.ZodBoolean>;
1795
1634
  css: z.ZodOptional<z.ZodString>;
1796
1635
  cssComplete: z.ZodOptional<z.ZodBoolean>;
1797
- html: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1636
+ html: z.ZodOptional<z.ZodArray<z.ZodString>>;
1798
1637
  htmlComplete: z.ZodOptional<z.ZodBoolean>;
1799
1638
  jsFunctions: z.ZodOptional<z.ZodString>;
1800
1639
  jsFunctionsComplete: z.ZodOptional<z.ZodBoolean>;
1801
- jsExpressions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1640
+ jsExpressions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1802
1641
  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>;
1642
+ }, z.core.$strip>;
1827
1643
  /**
1828
1644
  * Schema for the generateSandboxedUi tool call arguments.
1829
1645
  * Used by the frontend tool renderer to display placeholder messages.
1830
1646
  */
1831
1647
  declare const GenerateSandboxedUiArgsSchema: z.ZodObject<{
1832
1648
  initialHeight: z.ZodOptional<z.ZodNumber>;
1833
- placeholderMessages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1649
+ placeholderMessages: z.ZodOptional<z.ZodArray<z.ZodString>>;
1834
1650
  css: z.ZodOptional<z.ZodString>;
1835
1651
  html: z.ZodOptional<z.ZodString>;
1836
1652
  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>;
1653
+ jsExpressions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1654
+ }, z.core.$strip>;
1854
1655
  interface OpenGenerativeUIActivityRendererProps {
1855
1656
  activityType: string;
1856
1657
  content: OpenGenerativeUIContent;
@@ -1858,8 +1659,8 @@ interface OpenGenerativeUIActivityRendererProps {
1858
1659
  agent: unknown;
1859
1660
  }
1860
1661
  /**
1861
- * Outer wrapper — absorbs every parent re-render but only forwards
1862
- * throttled content snapshots to the memoized inner component.
1662
+ * Renders an Open Generative UI activity. The core controller throttles the
1663
+ * content and runs the websandbox iframes inside the container div.
1863
1664
  */
1864
1665
  declare const OpenGenerativeUIActivityRenderer: React$1.FC<OpenGenerativeUIActivityRendererProps>;
1865
1666
  /**
@@ -1903,45 +1704,16 @@ declare const OpenGenerativeUIToolRenderer: React$1.FC<{
1903
1704
  declare function CopilotKitStyles(): react_jsx_runtime0.JSX.Element | null;
1904
1705
  //#endregion
1905
1706
  //#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
- }
1707
+ /**
1708
+ * A tool call renderer for React: a React component that draws one tool call
1709
+ * in the chat. The component receives {@link ToolCallRenderProps}.
1710
+ *
1711
+ * Pass a list of these to `renderToolCalls` on `CopilotKitProvider`, or build
1712
+ * one with `defineToolCallRenderer`.
1713
+ *
1714
+ * @typeParam T - The shape of the tool arguments.
1715
+ */
1716
+ type ReactToolCallRenderer<T = unknown> = ToolCallRendererDef$1<T, React$1.ComponentType<ToolCallRenderProps$1<T>>>;
1945
1717
  //#endregion
1946
1718
  //#region src/hooks/use-render-tool-call.d.ts
1947
1719
  interface UseRenderToolCallProps {
@@ -1960,20 +1732,22 @@ declare function useRenderToolCall(): ({
1960
1732
  }: UseRenderToolCallProps) => React$1.ReactElement | null;
1961
1733
  //#endregion
1962
1734
  //#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
- }
1735
+ /** Where a custom message renderer draws, relative to its message. */
1736
+ type ReactCustomMessageRendererPosition = CustomMessageRendererPosition$1;
1737
+ /**
1738
+ * Props a React custom message renderer receives: the same as
1739
+ * {@link CustomMessageRenderProps}, with `stateSnapshot` typed `any` so a
1740
+ * component can read the agent state without a cast.
1741
+ */
1742
+ type ReactCustomMessageRenderProps = Omit<CustomMessageRenderProps$1, "stateSnapshot"> & {
1743
+ stateSnapshot: any;
1744
+ };
1745
+ /**
1746
+ * A custom message renderer for React: a component that draws before or
1747
+ * after each chat message. Return `null` from the component to draw nothing
1748
+ * for a message. A `null` render is skipped.
1749
+ */
1750
+ type ReactCustomMessageRenderer = CustomMessageRendererDef$1<React$1.ComponentType<ReactCustomMessageRenderProps> | null>;
1977
1751
  //#endregion
1978
1752
  //#region src/hooks/use-render-custom-messages.d.ts
1979
1753
  interface UseRenderCustomMessagesParams {
@@ -1988,51 +1762,19 @@ type ReactFrontendTool<T extends Record<string, unknown> = Record<string, unknow
1988
1762
  };
1989
1763
  //#endregion
1990
1764
  //#region src/types/human-in-the-loop.d.ts
1765
+ /**
1766
+ * A human-in-the-loop tool for React. It has no handler: the agent waits until
1767
+ * the `render` component calls `respond` with the user's answer.
1768
+ *
1769
+ * @typeParam T - The shape of the tool arguments.
1770
+ */
1991
1771
  type ReactHumanInTheLoop<T extends Record<string, unknown> = Record<string, unknown>> = Omit<FrontendTool$1<T>, "handler"> & {
1992
1772
  /**
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
- }>;
1773
+ * Render the human-in-the-loop UI for this tool call. The component
1774
+ * receives {@link HumanInTheLoopRenderProps}, which also carry `toolCallId`
1775
+ * and `agentId` for attribution.
1776
+ */
1777
+ render: React$1.ComponentType<HumanInTheLoopRenderProps$1<T>>;
2036
1778
  };
2037
1779
  //#endregion
2038
1780
  //#region src/types/defineToolCallRenderer.d.ts
@@ -2041,89 +1783,22 @@ type ReactHumanInTheLoop<T extends Record<string, unknown> = Record<string, unkn
2041
1783
  * - Accepts a single object whose keys match ReactToolCallRenderer's fields: { name, args, render, agentId? }.
2042
1784
  * - Derives `args` type from the provided schema (any Standard Schema V1 compatible library).
2043
1785
  * - 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()
1786
+ * - For wildcard tools (name: "*"), args is optional and defaults to a schema that accepts any value.
2045
1787
  */
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
1788
  declare function defineToolCallRenderer(def: {
2066
1789
  name: "*";
2067
- render: (props: RenderProps<any>) => React$1.ReactElement | null;
1790
+ render: (props: ToolCallRenderProps$1<any>) => React$1.ReactElement | null;
2068
1791
  agentId?: string;
2069
1792
  group?: boolean;
2070
1793
  }): ReactToolCallRenderer<any>;
2071
1794
  declare function defineToolCallRenderer<S extends StandardSchemaV1>(def: {
2072
1795
  name: string;
2073
1796
  args: S;
2074
- render: (props: RenderProps<InferSchemaOutput<S>>) => React$1.ReactElement | null;
1797
+ render: (props: ToolCallRenderProps$1<InferSchemaOutput<S>>) => React$1.ReactElement | null;
2075
1798
  agentId?: string;
2076
1799
  group?: boolean;
2077
1800
  }): ReactToolCallRenderer<InferSchemaOutput<S>>;
2078
1801
  //#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
1802
  //#region src/types/sandbox-function.d.ts
2128
1803
  type SandboxFunction<TParams extends StandardSchemaV1 = StandardSchemaV1> = {
2129
1804
  name: string;
@@ -2139,6 +1814,30 @@ declare function useRenderActivityMessage(): {
2139
1814
  };
2140
1815
  //#endregion
2141
1816
  //#region src/hooks/use-frontend-tool.d.ts
1817
+ /**
1818
+ * Register a frontend tool while the component is mounted. The agent can
1819
+ * call it, and its `render` component draws the call in the chat.
1820
+ *
1821
+ * A tool with the same name and agentId as a tool that is already registered
1822
+ * (for example one from the provider's `tools`) overrides it while this
1823
+ * component is mounted. When the component unmounts, the overridden tool is
1824
+ * active again. The renderer stays registered after unmount, so past tool
1825
+ * calls still render in the chat history.
1826
+ *
1827
+ * @param tool - The tool to register.
1828
+ * @param deps - Extra values that re-register the tool when they change. Use
1829
+ * it when the handler closes over a value that is not part of the tool.
1830
+ *
1831
+ * @example
1832
+ * ```tsx
1833
+ * useFrontendTool({
1834
+ * name: "showWeather",
1835
+ * description: "Show the weather for a city",
1836
+ * parameters: z.object({ city: z.string() }),
1837
+ * handler: async ({ city }) => `Sunny in ${city}`,
1838
+ * });
1839
+ * ```
1840
+ */
2142
1841
  declare function useFrontendTool<T extends Record<string, unknown> = Record<string, unknown>>(tool: ReactFrontendTool<T>, deps?: ReadonlyArray<unknown>): void;
2143
1842
  //#endregion
2144
1843
  //#region src/hooks/use-frontend-tools.d.ts
@@ -2152,8 +1851,10 @@ declare function useFrontendTool<T extends Record<string, unknown> = Record<stri
2152
1851
  *
2153
1852
  * Tools are keyed by `name` plus `agentId`, the same as `useFrontendTool`. A
2154
1853
  * 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.
1854
+ * every tool is unregistered on unmount. A listed tool hides a tool with the
1855
+ * same name and agentId (for example one from the provider's `tools`) until it
1856
+ * is unregistered, and then the hidden tool is active again. Renderers stay
1857
+ * registered after unmount so past tool calls still render in the chat history.
2157
1858
  *
2158
1859
  * @param tools - The tools to register. May be empty and may change length.
2159
1860
  * @param deps - Extra dependencies that force re-registration, compared by
@@ -2943,111 +2644,92 @@ declare function useAttachments({
2943
2644
  config
2944
2645
  }: UseAttachmentsProps): UseAttachmentsReturn;
2945
2646
  //#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. */
2647
+ //#region src/providers/CopilotChatConfigurationProvider.d.ts
2648
+ interface CopilotChatConfigurationValue {
2649
+ labels: CopilotChatLabels$1;
2650
+ agentId: string;
2956
2651
  threadId: string;
2652
+ isModalOpen: boolean;
2653
+ setModalOpen: (open: boolean) => void;
2957
2654
  /**
2958
- * The ordered list of learning container identifiers to activate for this
2959
- * thread. Defaults to `["project"]` on the backend when absent.
2655
+ * Whether the thread-list drawer is open. A sibling boolean to `isModalOpen`
2656
+ * (deliberately NOT folded into a tri-state enum): on desktop the chat modal
2657
+ * and the drawer coexist, so two independent booleans are required.
2658
+ */
2659
+ drawerOpen: boolean;
2660
+ /**
2661
+ * Toggles the drawer open state. On mobile viewports (`<768px`) opening the
2662
+ * drawer closes the chat modal (mutual exclusion); on desktop there is no
2663
+ * constraint.
2960
2664
  */
2961
- learningContainers: readonly string[];
2665
+ setDrawerOpen: (open: boolean) => void;
2666
+ /**
2667
+ * True once a `<CopilotThreadsDrawer>` wrapper has registered itself with this chat
2668
+ * configuration. The header thread-list launcher renders ONLY when this is
2669
+ * set, so chats with no drawer stay byte-for-byte unchanged.
2670
+ */
2671
+ drawerRegistered: boolean;
2672
+ /**
2673
+ * Called by the drawer wrapper on mount to announce its presence (and flip
2674
+ * `drawerRegistered`). Returns a cleanup function that de-registers the
2675
+ * drawer on unmount.
2676
+ *
2677
+ * @returns A cleanup callback that reverses the registration.
2678
+ */
2679
+ registerDrawer: () => () => void;
2680
+ /**
2681
+ * Internal: registers the modal-close setter of the provider that actually
2682
+ * owns the rendered modal (a descendant that supplied `isModalDefaultOpen`),
2683
+ * so the drawer's mobile mutual-exclusion — owned by the top-most provider —
2684
+ * closes the modal that is genuinely on screen rather than the top-most
2685
+ * provider's own (possibly unrendered) modal state.
2686
+ *
2687
+ * @param closeModal - A setter the drawer may call to close the rendered modal.
2688
+ * @returns A cleanup callback that de-registers the closer.
2689
+ */
2690
+ ɵregisterModalCloser: (closeModal: (open: boolean) => void) => () => void;
2691
+ hasExplicitThreadId: boolean;
2692
+ /**
2693
+ * Imperatively sets the active thread for this chat configuration.
2694
+ *
2695
+ * Use this to drive the rendered thread without a host callback — e.g. a
2696
+ * `<CopilotThreadsDrawer>` selecting a thread row sets it explicitly so the chat
2697
+ * connects to that backend thread.
2698
+ *
2699
+ * Guarded like the top-level `<CopilotKit>` provider's `setThreadId`: when
2700
+ * the consumer controls the threadId via the `threadId` prop on this
2701
+ * provider, this is a no-op (a warning is logged) so a prop-controlled
2702
+ * threadId is never silently overridden.
2703
+ *
2704
+ * @param threadId - The thread id to make active.
2705
+ * @param options.explicit - Whether the thread is a caller choice. Defaults
2706
+ * to `true` (a picked thread). Pass `false` to set a non-explicit thread
2707
+ * so the welcome screen shows (see {@link startNewThread}).
2708
+ */
2709
+ setActiveThreadId: (threadId: string, options?: {
2710
+ explicit?: boolean;
2711
+ }) => void;
2712
+ /**
2713
+ * Resets the active thread to a fresh, non-explicit client-side thread: a
2714
+ * newly minted UUID with `hasExplicitThreadId=false`, so the welcome screen
2715
+ * shows. Pairs with the core `startNewThread()` to clear the conversation
2716
+ * with no host wiring.
2717
+ *
2718
+ * Guarded identically to {@link setActiveThreadId}: a no-op when the
2719
+ * threadId is prop-controlled.
2720
+ */
2721
+ startNewThread: () => void;
2962
2722
  }
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;
2723
+ interface CopilotChatConfigurationProviderProps {
2724
+ children: ReactNode;
2725
+ labels?: Partial<CopilotChatLabels$1>;
2726
+ agentId?: string;
2727
+ threadId?: string;
2728
+ hasExplicitThreadId?: boolean;
2729
+ isModalDefaultOpen?: boolean;
2730
+ }
2731
+ declare const CopilotChatConfigurationProvider: React$1.FC<CopilotChatConfigurationProviderProps>;
2732
+ declare const useCopilotChatConfiguration: () => CopilotChatConfigurationValue | null;
3051
2733
  //#endregion
3052
2734
  //#region src/a2ui/A2UIRecoveryStates.d.ts
3053
2735
  /**
@@ -3194,11 +2876,6 @@ interface CopilotKitProviderProps {
3194
2876
  */
3195
2877
  designSkill?: string;
3196
2878
  };
3197
- /**
3198
- * @deprecated This prop no longer controls the Inspector. Use
3199
- * `enableInspector` instead.
3200
- */
3201
- showDevConsole?: boolean | "auto";
3202
2879
  /**
3203
2880
  * Disable the CopilotKit Inspector in development.
3204
2881
  * The Inspector is enabled by default in development browser builds on
@@ -3397,20 +3074,6 @@ declare class CopilotKitCoreReact extends CopilotKitCore$1 {
3397
3074
  get interruptElement(): React$1.ReactElement | null;
3398
3075
  setInterruptElement(element: React$1.ReactElement | null): void;
3399
3076
  subscribe(subscriber: CopilotKitCoreReactSubscriber): CopilotKitCoreSubscription$1;
3400
- /**
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.
3407
- *
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.
3412
- */
3413
- waitForPendingFrameworkUpdates(): Promise<void>;
3414
3077
  }
3415
3078
  //#endregion
3416
3079
  //#region src/a2ui/A2UIMessageRenderer.d.ts
@@ -3459,5 +3122,5 @@ type A2UIMessageRendererOptions = {
3459
3122
  };
3460
3123
  declare function createA2UIMessageRenderer(options: A2UIMessageRendererOptions): ReactActivityMessageRenderer<any>;
3461
3124
  //#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 };
3125
+ 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, 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, 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 CustomMessageRenderProps, type CustomMessageRendererDef, type CustomMessageRendererPosition, 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 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, 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, 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, type ɵActivityRendererQuery, type ɵAssistantToolbarInput, type ɵAutoScrollMode, type ɵBranchNavInput, ɵCOPILOTKIT_FEATURES, ɵCOPY_FEEDBACK_RESET_MS, type ɵClassValue, type ɵComposerInput, type ɵComposerKeyEvent, type ɵComposerMode, type ɵCopilotKitFeature, ɵCopyFeedback, ɵFEEDBACK_COMMENT_CLOSE_DELAY_MS, ɵFeedbackCommentController, type ɵFeedbackCommentControllerOptions, type ɵFeedbackCommentState, type ɵFeedbackCommentVia, type ɵGenerativeUIDebugFunction, type ɵGenerativeUIDebugPromptSection, type ɵGenerativeUIDebugRun, type ɵGenerativeUIDebugSnapshot, type ɵGenerativeUIDebugSource, type ɵGenerativeUIDebugSurface, ɵHOVER_MENU_CLOSE_DELAY_MS, ɵHoverMenuController, type ɵHoverMenuState, ɵINLINE_FEATURE_WARNING_STYLE, type ɵInspectorKiteArtwork, type ɵInspectorKiteGradient, type ɵInspectorKitePath, type ɵInspectorKiteStop, type ɵInterruptDecision, type ɵInterruptEvent, ɵInterruptState, type ɵInterruptToolResult, ɵKEYBOARD_OPEN_THRESHOLD_PX, type ɵKeyboardState, ɵLICENSE_BANNER_OFFSET, ɵLICENSE_BANNER_STYLE, 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, ɵOpenGenerativeUIController, type ɵOpenGenerativeUIControllerOptions, type ɵOpenGenerativeUIPhase, type ɵOpenGenerativeUIState, type ɵPendingInterrupt, type ɵPhoenixChannelLike, type ɵPhoenixChannelOptions, type ɵPhoenixChannelSession, type ɵPhoenixJoinOutcome, type ɵPhoenixPushLike, type ɵPhoenixSocketLike, type ɵPhoenixSocketOptions, type ɵPhoenixSocketSession, type ɵPhoenixSocketSignal, type ɵPinMessageToTopOptions, ɵRUNTIME_PROBE_TIMEOUT_MS, type ɵReasoningDuration, type ɵSandboxFunctionHandle, type ɵSandboxLocalApi, ɵTHREAD_REQUEST_TIMEOUT_MS, type ɵThread, type ɵThreadEnvironment, type ɵThreadMetadataEvent, type ɵThreadRuntimeContext, type ɵThreadSelectors, type ɵThreadStore, type ɵToolCallDisplayContextValue, type ɵToolCallLayout, type ɵToolCallRendererNames, type ɵToolCallRendererNamesOptions, type ɵToolCallRowStatus, type ɵToolCallSegment, type ɵTranscriptionCore, type ɵTranscriptionErrorLabelKey, type ɵTurnOpenState, type ɵTurnWork, type ɵUserMessageMediaPart, type ɵWebsandboxConstructor, type ɵWebsandboxInstance, type ɵWebsandboxLoader, type ɵWorkSummaryInput, type ɵWorkTime, ɵclearAgentInterruptState, ɵcn, ɵcomposerButtonState, ɵcopilotIconSvgAttributes, ɵcopilotIcons, ɵcountFailedToolCalls, ɵcreateMemoryStore, ɵcreateThreadSelectors, ɵcreateThreadStore, ɵdeduplicateMessages, ɵextractCompleteStyles, ɵflattenUserMessageContent, ɵformatCountLabel, ɵformatLabel, ɵformatReasoningDuration, ɵformatReasoningDurationLabel, ɵformatToolNames, ɵformatWorkDuration, ɵgetAgentInterruptState, ɵgetArgumentPreview, ɵgetBranchNavState, ɵgetInlineFeatureWarningSpec, ɵgetLatestTurnKey, ɵgetLicenseBannerSpec, ɵgetMessageFeedback, ɵgetMessageFeedbackControls, ɵgetToolCallLayouts, ɵgetToolCallPreview, ɵgetToolCallRendererNames, ɵgetToolCallRowStatus, ɵgetToolResults, ɵgetTurnWork, ɵgetUserMessageMediaFilename, ɵgetUserMessageMediaParts, ɵgetWorkOpenState, ɵgetWorkSummaryText, ɵhasAssistantMessageText, ɵinitialKeyboardState, ɵinspectorKiteFill, ɵinspectorKiteIcon, ɵinspectorShortcuts, ɵisCopilotKitFeature, ɵisHttpAgent, ɵisLearningFeedbackEnabled, ɵisMobileViewport, ɵisRetryableMemoryStatus, ɵisTurnWorkOpen, ɵisTurnWorking, ɵjoinPhoenixChannel$, ɵloadWebsandbox, ɵmapMemoryMetadataEvent, ɵmemoryAdapterEvents, ɵmemoryDomainEvents, ɵmemoryReducer, ɵmemoryRestEvents, ɵmessagesFingerprint, ɵnormalizeAutoScroll, ɵobservePhoenixEvent$, ɵobservePhoenixJoinOutcome$, ɵobservePhoenixSocketHealth$, ɵobservePhoenixSocketSignals$, ɵphoenixChannel$, ɵphoenixSocket$, ɵpinMessageToTop, ɵpluralize, ɵprocessPartialHtml, ɵreadKeyboardState, ɵrecordWorkTime, ɵreserveLicenseBannerOffset, ɵresetMessageFeedbackCache, ɵresolveActivityRenderer, ɵresolveComposerKey, ɵresolveCustomMessageRenderers, ɵresolveLicenseState, ɵresolveThreadsLicense, ɵresolveToolCallRenderer, ɵrunMcpFollowUp, ɵselectFetchMoreError, ɵselectHasNextPage, ɵselectIsFetchingNextPage, ɵselectIsMutating, ɵselectMemories, ɵselectMemoriesAvailable, ɵselectMemoriesError, ɵselectMemoriesIsLoading, ɵselectMemoriesIsMutating, ɵselectMemoriesRealtimeStatus, ɵselectThreads, ɵselectThreadsError, ɵselectThreadsIsLoading, ɵsetMessageFeedback, ɵshallowEqualRecord, ɵshouldShowAssistantToolbar, ɵstringifyToolCallPayload, ɵsubscribeToLearningFeedbackEnabled, ɵsubscribeToMessageFeedback, ɵthreadAdapterEvents, ɵtranscribeAudio, ɵtranscriptionErrorMessageKey, ɵwatchKeyboardState, ɵwatchMobileViewport, ɵwithHeaderDefaults };
3463
3126
  //# sourceMappingURL=index.d.mts.map