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

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