@copilotkit/react-core 2.0.0-rc.7 → 2.0.0-rc.8

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 (45) hide show
  1. package/dist/{MarkdownRendererContext-B4Us6mwL.d.cts → MarkdownRendererContext-DAuVISwv.d.cts} +14 -30
  2. package/dist/MarkdownRendererContext-DAuVISwv.d.cts.map +1 -0
  3. package/dist/{MarkdownRendererContext-CRKFzsEB.d.mts → MarkdownRendererContext-XWC2OXD5.d.mts} +15 -31
  4. package/dist/MarkdownRendererContext-XWC2OXD5.d.mts.map +1 -0
  5. package/dist/{MarkdownSurfaces-Bd--93O1.mjs → MarkdownSurfaces-BXaxgpm_.mjs} +91 -74
  6. package/dist/MarkdownSurfaces-BXaxgpm_.mjs.map +1 -0
  7. package/dist/{MarkdownSurfaces-S4wfUl3J.cjs → MarkdownSurfaces-DQZM4lSI.cjs} +96 -73
  8. package/dist/MarkdownSurfaces-DQZM4lSI.cjs.map +1 -0
  9. package/dist/context.cjs +20 -17
  10. package/dist/context.cjs.map +1 -1
  11. package/dist/context.d.cts +38 -98
  12. package/dist/context.d.cts.map +1 -1
  13. package/dist/context.d.mts +38 -98
  14. package/dist/context.d.mts.map +1 -1
  15. package/dist/context.mjs +20 -17
  16. package/dist/context.mjs.map +1 -1
  17. package/dist/generative-ui.cjs +35 -15
  18. package/dist/generative-ui.cjs.map +1 -1
  19. package/dist/generative-ui.d.cts +9 -9
  20. package/dist/generative-ui.d.mts +9 -9
  21. package/dist/generative-ui.mjs +35 -15
  22. package/dist/generative-ui.mjs.map +1 -1
  23. package/dist/headless.cjs +50 -76
  24. package/dist/headless.cjs.map +1 -1
  25. package/dist/headless.d.cts +78 -253
  26. package/dist/headless.d.cts.map +1 -1
  27. package/dist/headless.d.mts +56 -202
  28. package/dist/headless.d.mts.map +1 -1
  29. package/dist/headless.mjs +43 -74
  30. package/dist/headless.mjs.map +1 -1
  31. package/dist/index.cjs +664 -958
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.cts +168 -472
  34. package/dist/index.d.cts.map +1 -1
  35. package/dist/index.d.mts +168 -472
  36. package/dist/index.d.mts.map +1 -1
  37. package/dist/index.mjs +443 -949
  38. package/dist/index.mjs.map +1 -1
  39. package/dist/index.umd.js +754 -1029
  40. package/dist/index.umd.js.map +1 -1
  41. package/package.json +9 -10
  42. package/dist/MarkdownRendererContext-B4Us6mwL.d.cts.map +0 -1
  43. package/dist/MarkdownRendererContext-CRKFzsEB.d.mts.map +0 -1
  44. package/dist/MarkdownSurfaces-Bd--93O1.mjs.map +0 -1
  45. package/dist/MarkdownSurfaces-S4wfUl3J.cjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,32 +1,17 @@
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 { 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-DAuVISwv.cjs";
2
2
  import * as react from "react";
3
3
  import React$1, { ComponentType, ReactNode } from "react";
4
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
5
  import { z } from "zod";
6
6
  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";
7
+ import { A2UIMarkdownOperation, A2UI_FENCE_LANGUAGE, ActionConfig, ActionCreator, ActionFromCreator, ActionFromCreators, ActionGroupConfig, ActionGroupResult, ActivityMessageRenderProps, ActivityMessageRendererDef, AgentRegistry, AgentThreadLockedError, AnyAction, ChildIdsOf, ChildWalkOptions, ContextStore, CopilotChatDefaultLabels, CopilotChatLabels, CopilotChatLabels as CopilotChatLabels$1, CopilotChatToolCallDisplay, CopilotChatToolCallDisplay as CopilotChatToolCallDisplay$1, CopilotIconData, CopilotIconDefinition, CopilotIconName, CopilotIconNode, CopilotKitCore, CopilotKitCore as CopilotKitCore$1, CopilotKitCoreAddAgentParams, CopilotKitCoreCatalogComponent, CopilotKitCoreConfig, CopilotKitCoreConfig as CopilotKitCoreConfig$1, CopilotKitCoreConnectAgentParams, CopilotKitCoreContinuationHandoff, CopilotKitCoreErrorCode, CopilotKitCoreErrorCode as CopilotKitCoreErrorCode$1, CopilotKitCoreFriendsAccess, CopilotKitCoreGetSuggestionsResult, CopilotKitCoreGetToolParams, CopilotKitCoreRegisterProxiedAgentParams, CopilotKitCoreRegisterProxiedAgentResult, CopilotKitCoreRunAgentParams, CopilotKitCoreRunToolParams, CopilotKitCoreRunToolResult, CopilotKitCoreRuntimeConnectionStatus, CopilotKitCoreStopAgentParams, CopilotKitCoreSubscriber, CopilotKitCoreSubscriber as CopilotKitCoreSubscriber$1, CopilotKitCoreSubscription, CopilotKitCoreSubscription as CopilotKitCoreSubscription$1, CopilotKitHeaderResolutionError, CopilotKitHeadersSource, CopilotKitHeadersSource as CopilotKitHeadersSource$1, CopilotKitMessageFilter, CopilotKitMessageFilter as CopilotKitMessageFilter$1, CopilotRuntimeTransport, CustomMessageRenderProps, CustomMessageRenderProps as CustomMessageRenderProps$1, CustomMessageRendererDef, CustomMessageRendererDef as CustomMessageRendererDef$1, CustomMessageRendererPosition, CustomMessageRendererPosition as CustomMessageRendererPosition$1, DispatchingEffect, DispatchingEffectOptions, DynamicSuggestionsConfig, DynamicSuggestionsConfig as DynamicSuggestionsConfig$1, Effect, EmptyActionConfig, FrontendTool, FrontendTool as FrontendTool$1, FrontendToolHandlerContext, FrontendToolReconnectBehavior, HumanInTheLoopRenderProps, HumanInTheLoopRenderProps as HumanInTheLoopRenderProps$1, INSPECTOR_THREAD_BRIDGE_PLUGIN_ID, INTERRUPT_EVENT_NAME, InspectorActiveThreadPayload, InspectorMetadataV1, InspectorStopViewingPayload, InspectorViewThreadPayload, InspectorViewThreadResultPayload, IntelligenceAgent, IntelligenceAgentConfig, IntelligenceRuntimeInfo, InterruptCancelFn, InterruptEvent, InterruptHandlerProps, InterruptRenderProps, InterruptResolveFn, JsonValue, LearningConfig, LearningConfig as LearningConfig$1, LegacyLearningConfig, MEMORY_ERROR_REGISTRY, MarkdownSegment, Memory, Memory as Memory$1, MemoryChanges, MemoryChanges as MemoryChanges$1, MemoryError, MemoryErrorCategory, MemoryErrorCode, MemoryErrorRegistryEntry, MemoryKind, MemoryRealtimeStatus, MemoryRealtimeStatus as MemoryRealtimeStatus$1, MemoryScope, NewMemory, NewMemory as NewMemory$1, NonDispatchingEffect, NonDispatchingEffectOptions, OpenThreadRegistration, PropsActionConfig, ProxiedCopilotRuntimeAgent, ProxiedCopilotRuntimeAgentConfig, Reducer, RunCompletionAware, RunHandler, RuntimeLicenseStatus, RuntimeMode, ScopedContext, ScopedProperties, Selector, StartResult, StateManager, StaticSuggestionsConfig, StaticSuggestionsConfig as StaticSuggestionsConfig$1, Store, StoreLifecycleAction, SubscribeToAgentOptions, SubscribeToAgentSubscriber, Suggestion, Suggestion as Suggestion$1, SuggestionAvailability, SuggestionEngine, SuggestionsConfig, SurfaceSegment, ThreadEndpointRuntimeInfo, ThreadRunActivityNotification, ToolCallEntry, ToolCallEntry as ToolCallEntry$1, ToolCallRenderProps, ToolCallRenderProps as ToolCallRenderProps$1, ToolCallRendererDef, ToolCallRendererDef as ToolCallRendererDef$1, ToolCallStatus, ToolCallStatus as ToolCallStatus$1, TrajectoryStartOptions, TranscriptionError, TranscriptionErrorCode, TranscriptionErrorInfo, TranscriptionResult, WebMCPModelContext, WebMCPRegistry, WebMCPToolAnnotations, WebMCPToolConfig, classifySurfaceCards, completePartialMarkdown, createActionGroup, createEffect, createInspectorThreadRequestId, createReducer, createSelector, createStore, emitInspectorActiveThread, emitInspectorStopViewing, emitInspectorViewThread, emitInspectorViewThreadResult, empty, ensureObjectArgs, extractCompleteArrayItems, extractFenceOperations, extractStringField, flattenInformationalCards, getMarkdownOperationSurfaceId, getWebMCPModelContext, isAbortError, isInspectorThreadBridgeEnabled, isRunCompletionAware, ofType, on, onInspectorActiveThread, onInspectorStopViewing, onInspectorViewThread, onInspectorViewThreadResult, parseToolArguments, prepareSurfaceOperations, props, segmentSurfaceProse, select, splitA2UIMarkdown, ɵActivityRendererQuery, ɵCOPILOTKIT_FEATURES, ɵComposerInput, ɵComposerKeyEvent, ɵComposerMode, ɵCopilotKitFeature, ɵGenerativeUIDebugFunction, ɵGenerativeUIDebugPromptSection, ɵGenerativeUIDebugRun, ɵGenerativeUIDebugSnapshot, ɵGenerativeUIDebugSource, ɵGenerativeUIDebugSurface, ɵInterruptDecision, ɵInterruptEvent, ɵInterruptState, ɵInterruptToolResult, ɵLicenseStateInput, ɵMAX_SOCKET_RETRIES, ɵMemoryEnvironment, ɵMemoryMetadataEvent, ɵMemoryRuntimeContext, ɵMemoryState, ɵMemoryStore, ɵPendingInterrupt, ɵPhoenixChannelLike, ɵPhoenixChannelOptions, ɵPhoenixChannelSession, ɵPhoenixJoinOutcome, ɵPhoenixPushLike, ɵPhoenixSocketLike, ɵPhoenixSocketOptions, ɵPhoenixSocketSession, ɵPhoenixSocketSignal, ɵRUNTIME_PROBE_TIMEOUT_MS, ɵReasoningDuration, ɵTHREAD_REQUEST_TIMEOUT_MS, ɵThread, ɵThreadEnvironment, ɵThreadMetadataEvent, ɵThreadRuntimeContext, ɵThreadSelectors, ɵThreadStore, ɵToolCallDisplayContextValue, ɵToolCallLayout, ɵToolCallRendererNames, ɵToolCallRendererNamesOptions, ɵToolCallRowStatus, ɵToolCallSegment, ɵTranscriptionCore, ɵTranscriptionErrorLabelKey, ɵTurnOpenState, ɵTurnWork, ɵWorkTime, ɵclearAgentInterruptState, ɵcomposerButtonState, ɵcopilotIconSvgAttributes, ɵcopilotIcons, ɵcountFailedToolCalls, ɵcreateMemoryStore, ɵcreateThreadSelectors, ɵcreateThreadStore, ɵdeduplicateMessages, ɵformatCountLabel, ɵformatLabel, ɵformatReasoningDuration, ɵformatToolNames, ɵformatWorkDuration, ɵgetAgentInterruptState, ɵgetArgumentPreview, ɵgetLatestTurnKey, ɵgetToolCallLayouts, ɵgetToolCallPreview, ɵgetToolCallRendererNames, ɵgetToolCallRowStatus, ɵgetToolResults, ɵgetTurnWork, ɵgetWorkOpenState, ɵisCopilotKitFeature, ɵisHttpAgent, ɵisRetryableMemoryStatus, ɵisTurnWorkOpen, ɵisTurnWorking, ɵjoinPhoenixChannel$, ɵmapMemoryMetadataEvent, ɵmemoryAdapterEvents, ɵmemoryDomainEvents, ɵmemoryReducer, ɵmemoryRestEvents, ɵmessagesFingerprint, ɵobservePhoenixEvent$, ɵobservePhoenixJoinOutcome$, ɵobservePhoenixSocketHealth$, ɵobservePhoenixSocketSignals$, ɵphoenixChannel$, ɵphoenixSocket$, ɵpluralize, ɵrecordWorkTime, ɵresolveActivityRenderer, ɵresolveComposerKey, ɵresolveCustomMessageRenderers, ɵresolveLicenseState, ɵresolveThreadsLicense, ɵresolveToolCallRenderer, ɵselectFetchMoreError, ɵselectHasNextPage, ɵselectIsFetchingNextPage, ɵselectIsMutating, ɵselectMemories, ɵselectMemoriesAvailable, ɵselectMemoriesError, ɵselectMemoriesIsLoading, ɵselectMemoriesIsMutating, ɵselectMemoriesRealtimeStatus, ɵselectThreads, ɵselectThreadsError, ɵselectThreadsIsLoading, ɵstringifyToolCallPayload, ɵthreadAdapterEvents, ɵtranscribeAudio, ɵtranscriptionErrorMessageKey, ɵwithHeaderDefaults } from "@copilotkit/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, 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
9
  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";
10
+ 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
11
  import { MCPAppsActivityContent, MCPAppsActivityContent as MCPAppsActivityContent$1, MCPAppsActivityContentSchema, MCPAppsActivityType, ɵMcpFollowUpHost, ɵrunMcpFollowUp } from "@copilotkit/mcp-apps-renderer/activity";
12
12
  import { Theme, Theme as A2UITheme, defaultTheme as a2uiDefaultTheme } from "@copilotkit/a2ui-renderer";
13
13
  import { Anchor as InspectorAnchor } from "@copilotkit/web-inspector";
14
14
 
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
15
  //#region src/components/chat/StreamingMarkdownDefaultRenderer.d.ts
31
16
  /**
32
17
  * react-core's built-in default markdown renderer — a thin adapter over
@@ -64,139 +49,6 @@ interface AudioRecorderRef {
64
49
  }
65
50
  declare const CopilotChatAudioRecorder: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & react.RefAttributes<AudioRecorderRef>>;
66
51
  //#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
52
  //#region src/lib/slots.d.ts
201
53
  /** Existing union (unchanged) */
202
54
  type SlotValue<C extends React$1.ComponentType<any>> = C | string | Partial<React$1.ComponentProps<C>>;
@@ -316,7 +168,7 @@ declare namespace CopilotChatInput {
316
168
  */
317
169
  const ToolbarButton: React$1.FC<React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
318
170
  icon: React$1.ReactNode;
319
- labelKey: keyof CopilotChatLabels;
171
+ labelKey: keyof CopilotChatLabels$1;
320
172
  defaultClassName?: string;
321
173
  }>;
322
174
  const StartTranscribeButton: React$1.FC<React$1.ButtonHTMLAttributes<HTMLButtonElement>>;
@@ -336,38 +188,13 @@ declare namespace CopilotChatInput {
336
188
  const Disclaimer: React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>;
337
189
  }
338
190
  //#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
191
  //#region src/components/chat/CopilotChatToolCallGroup.d.ts
365
192
  type CopilotChatToolCallGroupAppearance = "card" | "line" | "stack";
366
193
  interface CopilotChatToolCallGroupProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> {
367
194
  /** The calls in the group, in order. */
368
- calls: ToolCallEntry[];
195
+ calls: ToolCallEntry$1[];
369
196
  /** Renders one call through the registered renderers. */
370
- renderCall: (call: ToolCallEntry) => React$1.ReactNode;
197
+ renderCall: (call: ToolCallEntry$1) => React$1.ReactNode;
371
198
  /**
372
199
  * - `"card"` (default): one card with a summary header and a row per call.
373
200
  * - `"line"`: a quiet line of text that opens to a list of rows.
@@ -405,7 +232,7 @@ type CopilotChatToolCallsViewProps = {
405
232
  * view it follows the view's `toolCallDisplay`; on its own it defaults to
406
233
  * `"grouped"`.
407
234
  */
408
- display?: CopilotChatToolCallDisplay;
235
+ display?: CopilotChatToolCallDisplay$1;
409
236
  /**
410
237
  * Draws a group of calls made in a row: a component, a class name for the
411
238
  * default group, or props for it (e.g. `{ appearance: "line" }`).
@@ -611,7 +438,8 @@ type CopilotChatReasoningMessageProps = WithSlots<{
611
438
  /**
612
439
  * A reasoning message as a collapsible block. While the model reasons it is
613
440
  * open and the header shows `labels.reasoningMessageThinkingLabel`; when
614
- * streaming ends it collapses and the header reads "Thought for …". The
441
+ * streaming ends it collapses and the header reads
442
+ * `labels.reasoningMessageThoughtForLabel` ("Thought for 4 seconds"). The
615
443
  * `header` slot also receives `elapsedSeconds`.
616
444
  */
617
445
  declare function CopilotChatReasoningMessage({
@@ -692,7 +520,7 @@ interface CopilotChatWorkSummaryProps extends React$1.ButtonHTMLAttributes<HTMLB
692
520
  /** Whether the work (narration and tool calls) is showing. */
693
521
  isOpen: boolean;
694
522
  /** The tool calls the reply made. */
695
- calls: ToolCallEntry[];
523
+ calls: ToolCallEntry$1[];
696
524
  /**
697
525
  * How long the agent has worked on the reply, in ms, summed over its runs
698
526
  * so time spent waiting between them doesn't count. Only known for replies
@@ -704,8 +532,9 @@ interface CopilotChatWorkSummaryProps extends React$1.ButtonHTMLAttributes<HTMLB
704
532
  }
705
533
  /**
706
534
  * 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.
535
+ * agent works it reads "Working 4s". Once the reply is done it reads "Worked
536
+ * for 9s" and "7 tools", and toggles the work it folded away. The text comes
537
+ * from the `workSummary...` and `toolCall...` chat labels.
709
538
  */
710
539
  declare function CopilotChatWorkSummary({
711
540
  isWorking,
@@ -960,7 +789,7 @@ type CopilotChatMessageViewProps = Omit<WithSlots<{
960
789
  * "Worked for 9s" once it's done; `"separate"` gives every call its own
961
790
  * card. Calls with a renderer of their own always show on their own.
962
791
  */
963
- toolCallDisplay?: CopilotChatToolCallDisplay;
792
+ toolCallDisplay?: CopilotChatToolCallDisplay$1;
964
793
  } & React$1.HTMLAttributes<HTMLDivElement>>, "children"> & {
965
794
  children?: (props: {
966
795
  isRunning: boolean;
@@ -1112,7 +941,7 @@ declare namespace CopilotChatView {
1112
941
  type CopilotChatProps = Omit<CopilotChatViewProps, "messages" | "isRunning" | "suggestions" | "suggestionLoadingIndexes" | "onSelectSuggestion" | "attachments" | "onRemoveAttachment" | "onAddFile" | "dragOver" | "onDragOver" | "onDragLeave" | "onDrop" | "onError"> & {
1113
942
  agentId?: string;
1114
943
  threadId?: string;
1115
- labels?: Partial<CopilotChatLabels>;
944
+ labels?: Partial<CopilotChatLabels$1>;
1116
945
  /**
1117
946
  * Enable Inspector message shortcuts for this chat (enabled by default).
1118
947
  * An explicit CopilotKit provider enableInspector value takes priority.
@@ -1210,7 +1039,7 @@ declare function CopilotModalHeader({
1210
1039
  children,
1211
1040
  className,
1212
1041
  ...rest
1213
- }: 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;
1042
+ }: 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;
1214
1043
  declare namespace CopilotModalHeader {
1215
1044
  var displayName: string;
1216
1045
  }
@@ -1894,45 +1723,16 @@ declare const OpenGenerativeUIToolRenderer: React$1.FC<{
1894
1723
  declare function CopilotKitStyles(): react_jsx_runtime0.JSX.Element | null;
1895
1724
  //#endregion
1896
1725
  //#region src/types/react-tool-call-renderer.d.ts
1897
- interface ReactToolCallRenderer<T = unknown> {
1898
- name: string;
1899
- /**
1900
- * Schema describing the tool arguments. Optional — renderers registered for
1901
- * tools without parameters (e.g. HITL confirm dialogs) have no schema.
1902
- */
1903
- args?: StandardSchemaV1<any, T>;
1904
- /**
1905
- * Optional agent ID to constrain this tool renderer to a specific agent.
1906
- * If specified, this renderer will only be used for the specified agent.
1907
- */
1908
- agentId?: string;
1909
- /**
1910
- * Whether calls this renderer draws join the chat's tool-call groups (see
1911
- * `toolCallDisplay` on `CopilotChatMessageView`). CopilotKit's built-in card
1912
- * sets it; a renderer that leaves it unset always shows its calls on their
1913
- * own, since the chat can't tell what it draws (it may even draw nothing).
1914
- */
1915
- group?: boolean;
1916
- render: React.ComponentType<{
1917
- name: string;
1918
- toolCallId: string;
1919
- args: Partial<T>;
1920
- status: ToolCallStatus$1.InProgress;
1921
- result: undefined;
1922
- } | {
1923
- name: string;
1924
- toolCallId: string;
1925
- args: T;
1926
- status: ToolCallStatus$1.Executing;
1927
- result: undefined;
1928
- } | {
1929
- name: string;
1930
- toolCallId: string;
1931
- args: T;
1932
- status: ToolCallStatus$1.Complete;
1933
- result: string;
1934
- }>;
1935
- }
1726
+ /**
1727
+ * A tool call renderer for React: a React component that draws one tool call
1728
+ * in the chat. The component receives {@link ToolCallRenderProps}.
1729
+ *
1730
+ * Pass a list of these to `renderToolCalls` on `CopilotKitProvider`, or build
1731
+ * one with `defineToolCallRenderer`.
1732
+ *
1733
+ * @typeParam T - The shape of the tool arguments.
1734
+ */
1735
+ type ReactToolCallRenderer<T = unknown> = ToolCallRendererDef$1<T, React$1.ComponentType<ToolCallRenderProps$1<T>>>;
1936
1736
  //#endregion
1937
1737
  //#region src/hooks/use-render-tool-call.d.ts
1938
1738
  interface UseRenderToolCallProps {
@@ -1951,20 +1751,22 @@ declare function useRenderToolCall(): ({
1951
1751
  }: UseRenderToolCallProps) => React$1.ReactElement | null;
1952
1752
  //#endregion
1953
1753
  //#region src/types/react-custom-message-renderer.d.ts
1954
- type ReactCustomMessageRendererPosition = "before" | "after";
1955
- interface ReactCustomMessageRenderer {
1956
- agentId?: string;
1957
- render: React.ComponentType<{
1958
- message: Message$1;
1959
- position: ReactCustomMessageRendererPosition;
1960
- runId: string;
1961
- messageIndex: number;
1962
- messageIndexInRun: number;
1963
- numberOfMessagesInRun: number;
1964
- agentId: string;
1965
- stateSnapshot: any;
1966
- }> | null;
1967
- }
1754
+ /** Where a custom message renderer draws, relative to its message. */
1755
+ type ReactCustomMessageRendererPosition = CustomMessageRendererPosition$1;
1756
+ /**
1757
+ * Props a React custom message renderer receives: the same as
1758
+ * {@link CustomMessageRenderProps}, with `stateSnapshot` typed `any` so a
1759
+ * component can read the agent state without a cast.
1760
+ */
1761
+ type ReactCustomMessageRenderProps = Omit<CustomMessageRenderProps$1, "stateSnapshot"> & {
1762
+ stateSnapshot: any;
1763
+ };
1764
+ /**
1765
+ * A custom message renderer for React: a component that draws before or
1766
+ * after each chat message. Return `null` from the component to draw nothing
1767
+ * for a message. A `null` render is skipped.
1768
+ */
1769
+ type ReactCustomMessageRenderer = CustomMessageRendererDef$1<React$1.ComponentType<ReactCustomMessageRenderProps> | null>;
1968
1770
  //#endregion
1969
1771
  //#region src/hooks/use-render-custom-messages.d.ts
1970
1772
  interface UseRenderCustomMessagesParams {
@@ -1979,51 +1781,19 @@ type ReactFrontendTool<T extends Record<string, unknown> = Record<string, unknow
1979
1781
  };
1980
1782
  //#endregion
1981
1783
  //#region src/types/human-in-the-loop.d.ts
1784
+ /**
1785
+ * A human-in-the-loop tool for React. It has no handler: the agent waits until
1786
+ * the `render` component calls `respond` with the user's answer.
1787
+ *
1788
+ * @typeParam T - The shape of the tool arguments.
1789
+ */
1982
1790
  type ReactHumanInTheLoop<T extends Record<string, unknown> = Record<string, unknown>> = Omit<FrontendTool$1<T>, "handler"> & {
1983
1791
  /**
1984
- * Render the human-in-the-loop UI for this tool call.
1985
- *
1986
- * Beyond the tool call's `args`/`status`/`result`, the render props carry
1987
- * attribution:
1988
- * - `toolCallId` — the AG-UI tool call id, unique per interrupt. It is the
1989
- * stable key for correlating this interrupt with runtime (sub)agent
1990
- * attribution — e.g. the `agentId` reported by `onToolExecutionStart`, or
1991
- * per-run attribution stamped on the event stream — so the UI can label
1992
- * the interrupt with the agent that actually raised it.
1993
- * - `agentId` — the agent this tool was *registered* to (the tool's own
1994
- * `agentId`), or `undefined` for an unscoped tool. This is the static
1995
- * registration scope; it is NOT necessarily the runtime (sub)agent that
1996
- * raised the interrupt. For runtime attribution, correlate `toolCallId`
1997
- * with the event-stream/`onToolExecutionStart` agent id.
1998
- */
1999
- render: React$1.ComponentType<{
2000
- name: string;
2001
- description: string;
2002
- toolCallId: string;
2003
- agentId?: string;
2004
- args: Partial<T>;
2005
- status: ToolCallStatus$1.InProgress;
2006
- result: undefined;
2007
- respond: undefined;
2008
- } | {
2009
- name: string;
2010
- description: string;
2011
- toolCallId: string;
2012
- agentId?: string;
2013
- args: T;
2014
- status: ToolCallStatus$1.Executing;
2015
- result: undefined;
2016
- respond: (result: unknown) => Promise<void>;
2017
- } | {
2018
- name: string;
2019
- description: string;
2020
- toolCallId: string;
2021
- agentId?: string;
2022
- args: T;
2023
- status: ToolCallStatus$1.Complete;
2024
- result: string;
2025
- respond: undefined;
2026
- }>;
1792
+ * Render the human-in-the-loop UI for this tool call. The component
1793
+ * receives {@link HumanInTheLoopRenderProps}, which also carry `toolCallId`
1794
+ * and `agentId` for attribution.
1795
+ */
1796
+ render: React$1.ComponentType<HumanInTheLoopRenderProps$1<T>>;
2027
1797
  };
2028
1798
  //#endregion
2029
1799
  //#region src/types/defineToolCallRenderer.d.ts
@@ -2032,89 +1802,22 @@ type ReactHumanInTheLoop<T extends Record<string, unknown> = Record<string, unkn
2032
1802
  * - Accepts a single object whose keys match ReactToolCallRenderer's fields: { name, args, render, agentId? }.
2033
1803
  * - Derives `args` type from the provided schema (any Standard Schema V1 compatible library).
2034
1804
  * - Ensures the render function param type exactly matches ReactToolCallRenderer<T>["render"]'s param.
2035
- * - For wildcard tools (name: "*"), args is optional and defaults to z.any()
1805
+ * - For wildcard tools (name: "*"), args is optional and defaults to a schema that accepts any value.
2036
1806
  */
2037
- type RenderProps<T> = {
2038
- name: string;
2039
- toolCallId: string;
2040
- args: Partial<T>;
2041
- status: ToolCallStatus$1.InProgress;
2042
- result: undefined;
2043
- } | {
2044
- name: string;
2045
- toolCallId: string;
2046
- args: T;
2047
- status: ToolCallStatus$1.Executing;
2048
- result: undefined;
2049
- } | {
2050
- name: string;
2051
- toolCallId: string;
2052
- args: T;
2053
- status: ToolCallStatus$1.Complete;
2054
- result: string;
2055
- };
2056
1807
  declare function defineToolCallRenderer(def: {
2057
1808
  name: "*";
2058
- render: (props: RenderProps<any>) => React$1.ReactElement | null;
1809
+ render: (props: ToolCallRenderProps$1<any>) => React$1.ReactElement | null;
2059
1810
  agentId?: string;
2060
1811
  group?: boolean;
2061
1812
  }): ReactToolCallRenderer<any>;
2062
1813
  declare function defineToolCallRenderer<S extends StandardSchemaV1>(def: {
2063
1814
  name: string;
2064
1815
  args: S;
2065
- render: (props: RenderProps<InferSchemaOutput<S>>) => React$1.ReactElement | null;
1816
+ render: (props: ToolCallRenderProps$1<InferSchemaOutput<S>>) => React$1.ReactElement | null;
2066
1817
  agentId?: string;
2067
1818
  group?: boolean;
2068
1819
  }): ReactToolCallRenderer<InferSchemaOutput<S>>;
2069
1820
  //#endregion
2070
- //#region src/types/interrupt.d.ts
2071
- /** Name of the legacy custom event agents emit to signal an interrupt. */
2072
- declare const INTERRUPT_EVENT_NAME = "on_interrupt";
2073
- /** Legacy custom-event interrupt payload (agent emits a custom `on_interrupt` event). */
2074
- interface InterruptEvent<TValue = unknown> {
2075
- name: string;
2076
- value: TValue;
2077
- }
2078
- /**
2079
- * Resolve the agent with user input for an interrupt.
2080
- *
2081
- * - Standard interrupts: records `{ status: "resolved", payload }` for the target
2082
- * interrupt (defaults to the primary one). Resumes once every open interrupt is
2083
- * addressed; returns the resume run result, or `void` while still awaiting others.
2084
- * - Legacy interrupts: resumes immediately via `command.resume = payload`.
2085
- */
2086
- type InterruptResolveFn = (payload?: unknown, interruptId?: string) => Promise<RunAgentResult$1 | void>;
2087
- /**
2088
- * Cancel an interrupt.
2089
- *
2090
- * - Standard interrupts: records `{ status: "cancelled" }` for the target interrupt
2091
- * (defaults to the primary one), then resumes once all are addressed.
2092
- * - Legacy interrupts: dismisses the pending interrupt without resuming.
2093
- */
2094
- type InterruptCancelFn = (interruptId?: string) => Promise<RunAgentResult$1 | void>;
2095
- interface InterruptHandlerProps<TValue = unknown> {
2096
- /**
2097
- * Legacy event shape (`{ name, value }`). Always present for back-compat: for
2098
- * standard interrupts, `value` is the primary `Interrupt` and `name` is `"on_interrupt"`.
2099
- * Prefer `interrupt` / `interrupts` for standard interrupts.
2100
- */
2101
- event: InterruptEvent<TValue>;
2102
- /** Primary standard interrupt (`interrupts[0]`), or `null` for legacy interrupts. */
2103
- interrupt: Interrupt | null;
2104
- /** All open standard interrupts (empty array for legacy interrupts). */
2105
- interrupts: Interrupt[];
2106
- resolve: InterruptResolveFn;
2107
- cancel: InterruptCancelFn;
2108
- }
2109
- interface InterruptRenderProps<TValue = unknown, TResult = unknown> {
2110
- event: InterruptEvent<TValue>;
2111
- interrupt: Interrupt | null;
2112
- interrupts: Interrupt[];
2113
- result: TResult;
2114
- resolve: InterruptResolveFn;
2115
- cancel: InterruptCancelFn;
2116
- }
2117
- //#endregion
2118
1821
  //#region src/types/sandbox-function.d.ts
2119
1822
  type SandboxFunction<TParams extends StandardSchemaV1 = StandardSchemaV1> = {
2120
1823
  name: string;
@@ -2130,6 +1833,30 @@ declare function useRenderActivityMessage(): {
2130
1833
  };
2131
1834
  //#endregion
2132
1835
  //#region src/hooks/use-frontend-tool.d.ts
1836
+ /**
1837
+ * Register a frontend tool while the component is mounted. The agent can
1838
+ * call it, and its `render` component draws the call in the chat.
1839
+ *
1840
+ * A tool with the same name and agentId as a tool that is already registered
1841
+ * (for example one from the provider's `tools`) overrides it while this
1842
+ * component is mounted. When the component unmounts, the overridden tool is
1843
+ * active again. The renderer stays registered after unmount, so past tool
1844
+ * calls still render in the chat history.
1845
+ *
1846
+ * @param tool - The tool to register.
1847
+ * @param deps - Extra values that re-register the tool when they change. Use
1848
+ * it when the handler closes over a value that is not part of the tool.
1849
+ *
1850
+ * @example
1851
+ * ```tsx
1852
+ * useFrontendTool({
1853
+ * name: "showWeather",
1854
+ * description: "Show the weather for a city",
1855
+ * parameters: z.object({ city: z.string() }),
1856
+ * handler: async ({ city }) => `Sunny in ${city}`,
1857
+ * });
1858
+ * ```
1859
+ */
2133
1860
  declare function useFrontendTool<T extends Record<string, unknown> = Record<string, unknown>>(tool: ReactFrontendTool<T>, deps?: ReadonlyArray<unknown>): void;
2134
1861
  //#endregion
2135
1862
  //#region src/hooks/use-frontend-tools.d.ts
@@ -2143,8 +1870,10 @@ declare function useFrontendTool<T extends Record<string, unknown> = Record<stri
2143
1870
  *
2144
1871
  * Tools are keyed by `name` plus `agentId`, the same as `useFrontendTool`. A
2145
1872
  * tool that disappears from the array is unregistered on the next render, and
2146
- * every tool is unregistered on unmount. Renderers stay registered after
2147
- * unmount so past tool calls still render in the chat history.
1873
+ * every tool is unregistered on unmount. A listed tool hides a tool with the
1874
+ * same name and agentId (for example one from the provider's `tools`) until it
1875
+ * is unregistered, and then the hidden tool is active again. Renderers stay
1876
+ * registered after unmount so past tool calls still render in the chat history.
2148
1877
  *
2149
1878
  * @param tools - The tools to register. May be empty and may change length.
2150
1879
  * @param deps - Extra dependencies that force re-registration, compared by
@@ -2934,111 +2663,92 @@ declare function useAttachments({
2934
2663
  config
2935
2664
  }: UseAttachmentsProps): UseAttachmentsReturn;
2936
2665
  //#endregion
2937
- //#region src/hooks/use-learning-containers.d.ts
2938
- /**
2939
- * Arguments for {@link useLearningContainers}.
2940
- *
2941
- * @deprecated This interface supports only the legacy plural-container
2942
- * annotation. Configure `getLearningContainerId` on `CopilotKitIntelligence`
2943
- * for new Intelligence runtimes.
2944
- */
2945
- interface UseLearningContainersArgs {
2946
- /** Thread to apply the learning-container selection to. */
2666
+ //#region src/providers/CopilotChatConfigurationProvider.d.ts
2667
+ interface CopilotChatConfigurationValue {
2668
+ labels: CopilotChatLabels$1;
2669
+ agentId: string;
2947
2670
  threadId: string;
2671
+ isModalOpen: boolean;
2672
+ setModalOpen: (open: boolean) => void;
2948
2673
  /**
2949
- * The ordered list of learning container identifiers to activate for this
2950
- * thread. Defaults to `["project"]` on the backend when absent.
2674
+ * Whether the thread-list drawer is open. A sibling boolean to `isModalOpen`
2675
+ * (deliberately NOT folded into a tri-state enum): on desktop the chat modal
2676
+ * and the drawer coexist, so two independent booleans are required.
2951
2677
  */
2952
- learningContainers: readonly string[];
2678
+ drawerOpen: boolean;
2679
+ /**
2680
+ * Toggles the drawer open state. On mobile viewports (`<768px`) opening the
2681
+ * drawer closes the chat modal (mutual exclusion); on desktop there is no
2682
+ * constraint.
2683
+ */
2684
+ setDrawerOpen: (open: boolean) => void;
2685
+ /**
2686
+ * True once a `<CopilotThreadsDrawer>` wrapper has registered itself with this chat
2687
+ * configuration. The header thread-list launcher renders ONLY when this is
2688
+ * set, so chats with no drawer stay byte-for-byte unchanged.
2689
+ */
2690
+ drawerRegistered: boolean;
2691
+ /**
2692
+ * Called by the drawer wrapper on mount to announce its presence (and flip
2693
+ * `drawerRegistered`). Returns a cleanup function that de-registers the
2694
+ * drawer on unmount.
2695
+ *
2696
+ * @returns A cleanup callback that reverses the registration.
2697
+ */
2698
+ registerDrawer: () => () => void;
2699
+ /**
2700
+ * Internal: registers the modal-close setter of the provider that actually
2701
+ * owns the rendered modal (a descendant that supplied `isModalDefaultOpen`),
2702
+ * so the drawer's mobile mutual-exclusion — owned by the top-most provider —
2703
+ * closes the modal that is genuinely on screen rather than the top-most
2704
+ * provider's own (possibly unrendered) modal state.
2705
+ *
2706
+ * @param closeModal - A setter the drawer may call to close the rendered modal.
2707
+ * @returns A cleanup callback that de-registers the closer.
2708
+ */
2709
+ ɵregisterModalCloser: (closeModal: (open: boolean) => void) => () => void;
2710
+ hasExplicitThreadId: boolean;
2711
+ /**
2712
+ * Imperatively sets the active thread for this chat configuration.
2713
+ *
2714
+ * Use this to drive the rendered thread without a host callback — e.g. a
2715
+ * `<CopilotThreadsDrawer>` selecting a thread row sets it explicitly so the chat
2716
+ * connects to that backend thread.
2717
+ *
2718
+ * Guarded like the top-level `<CopilotKit>` provider's `setThreadId`: when
2719
+ * the consumer controls the threadId via the `threadId` prop on this
2720
+ * provider, this is a no-op (a warning is logged) so a prop-controlled
2721
+ * threadId is never silently overridden.
2722
+ *
2723
+ * @param threadId - The thread id to make active.
2724
+ * @param options.explicit - Whether the thread is a caller choice. Defaults
2725
+ * to `true` (a picked thread). Pass `false` to set a non-explicit thread
2726
+ * so the welcome screen shows (see {@link startNewThread}).
2727
+ */
2728
+ setActiveThreadId: (threadId: string, options?: {
2729
+ explicit?: boolean;
2730
+ }) => void;
2731
+ /**
2732
+ * Resets the active thread to a fresh, non-explicit client-side thread: a
2733
+ * newly minted UUID with `hasExplicitThreadId=false`, so the welcome screen
2734
+ * shows. Pairs with the core `startNewThread()` to clear the conversation
2735
+ * with no host wiring.
2736
+ *
2737
+ * Guarded identically to {@link setActiveThreadId}: a no-op when the
2738
+ * threadId is prop-controlled.
2739
+ */
2740
+ startNewThread: () => void;
2953
2741
  }
2954
- /**
2955
- * Legacy compatibility hook that keeps a thread's plural learning-container
2956
- * annotation in sync by emitting
2957
- * `set_learning_containers` annotations via the CopilotKit runtime annotate
2958
- * endpoint (`POST ${runtimeUrl}/annotate`).
2959
- *
2960
- * **Emit rules:**
2961
- * - On mount with `["project"]` (the backend default) → does NOT emit.
2962
- * Absence of an annotation equals the default, so the round-trip is skipped.
2963
- * - On mount with any other value → emits immediately.
2964
- * - On any subsequent content change (including a switch back to
2965
- * `["project"]`) → emits (a deliberate switch is always recorded).
2966
- * - On unmount or threadId change → emits a reset to `["project"]`
2967
- * so the backend is left in a clean state for the next consumer.
2968
- * Changing `learningContainers` within the same thread does NOT reset the
2969
- * thread; only the new value is emitted.
2970
- *
2971
- * Content-equality is evaluated via `JSON.stringify` so a fresh array literal
2972
- * with the same items does NOT trigger a redundant emit.
2973
- *
2974
- * If `runtimeUrl` is absent, all emits are silently skipped.
2975
- *
2976
- * @example
2977
- * ```tsx
2978
- * function ThreadPane({ threadId, userScope }: Props) {
2979
- * useLearningContainers({
2980
- * threadId,
2981
- * learningContainers: [userScope],
2982
- * });
2983
- * // ...
2984
- * }
2985
- * ```
2986
- *
2987
- * @deprecated This hook supports only the legacy plural-container annotation.
2988
- * Configure `getLearningContainerId` on `CopilotKitIntelligence` for new
2989
- * Intelligence runtimes.
2990
- */
2991
- declare function useLearningContainers({
2992
- threadId,
2993
- learningContainers
2994
- }: UseLearningContainersArgs): void;
2995
- //#endregion
2996
- //#region src/hooks/use-learning-containers-in-current-thread.d.ts
2997
- /**
2998
- * Arguments for {@link useLearningContainersInCurrentThread}.
2999
- * Same as {@link UseLearningContainersArgs} minus `threadId`, which is
3000
- * sourced from the surrounding `<CopilotChatConfigurationProvider>` at
3001
- * render time.
3002
- *
3003
- * @deprecated This type supports only the legacy plural-container annotation.
3004
- * Configure `getLearningContainerId` on `CopilotKitIntelligence` for new
3005
- * Intelligence runtimes.
3006
- */
3007
- type UseLearningContainersInCurrentThreadArgs = Omit<UseLearningContainersArgs, "threadId">;
3008
- /**
3009
- * Legacy compatibility hook that keeps the **current chat thread's** plural
3010
- * learning-container annotation in sync. The `threadId` is sourced from the surrounding
3011
- * `<CopilotChatConfigurationProvider>` (the same provider `<CopilotChat>`,
3012
- * `<CopilotSidebar>`, and friends set up), so callers in a chat-aware
3013
- * subtree don't need to thread an id through manually.
3014
- *
3015
- * **Throws on render** when there is no chat-config provider in scope or
3016
- * when the provider does not yet have an active `threadId`. Mount the hook
3017
- * inside a subtree that is guaranteed to have a thread context.
3018
- *
3019
- * If you need to manage an explicit thread, use {@link useLearningContainers}
3020
- * directly — two hooks, two crisp contracts, no mode confusion.
3021
- *
3022
- * @throws When no `CopilotChatConfigurationProvider` is in scope or when the
3023
- * active `threadId` is absent/empty.
3024
- *
3025
- * @example
3026
- * ```tsx
3027
- * function ThreadPanel({ scope }: Props) {
3028
- * useLearningContainersInCurrentThread({
3029
- * learningContainers: [scope],
3030
- * });
3031
- * // ...
3032
- * }
3033
- * ```
3034
- *
3035
- * @deprecated This hook supports only the legacy plural-container annotation.
3036
- * Configure `getLearningContainerId` on `CopilotKitIntelligence` for new
3037
- * Intelligence runtimes.
3038
- */
3039
- declare function useLearningContainersInCurrentThread({
3040
- learningContainers
3041
- }: UseLearningContainersInCurrentThreadArgs): void;
2742
+ interface CopilotChatConfigurationProviderProps {
2743
+ children: ReactNode;
2744
+ labels?: Partial<CopilotChatLabels$1>;
2745
+ agentId?: string;
2746
+ threadId?: string;
2747
+ hasExplicitThreadId?: boolean;
2748
+ isModalDefaultOpen?: boolean;
2749
+ }
2750
+ declare const CopilotChatConfigurationProvider: React$1.FC<CopilotChatConfigurationProviderProps>;
2751
+ declare const useCopilotChatConfiguration: () => CopilotChatConfigurationValue | null;
3042
2752
  //#endregion
3043
2753
  //#region src/lib/react-core.d.ts
3044
2754
  interface CopilotKitCoreReactConfig extends CopilotKitCoreConfig$1 {
@@ -3076,20 +2786,6 @@ declare class CopilotKitCoreReact extends CopilotKitCore$1 {
3076
2786
  get interruptElement(): React$1.ReactElement | null;
3077
2787
  setInterruptElement(element: React$1.ReactElement | null): void;
3078
2788
  subscribe(subscriber: CopilotKitCoreReactSubscriber): CopilotKitCoreSubscription$1;
3079
- /**
3080
- * Wait for pending React state updates before the follow-up agent run.
3081
- *
3082
- * When a frontend tool handler calls setState(), React 18 batches the update
3083
- * and schedules a commit via its internal scheduler (MessageChannel). The
3084
- * useAgentContext hook registers context via useLayoutEffect, which runs
3085
- * synchronously after React commits that batch.
3086
- *
3087
- * Awaiting a zero-delay timeout yields to the macrotask queue. React's
3088
- * MessageChannel task runs first, committing the pending state and running
3089
- * useLayoutEffect (which updates the context store). The follow-up runAgent
3090
- * call then reads fresh context.
3091
- */
3092
- waitForPendingFrameworkUpdates(): Promise<void>;
3093
2789
  }
3094
2790
  //#endregion
3095
2791
  //#region src/context.d.ts
@@ -3463,5 +3159,5 @@ type A2UIMessageRendererOptions = {
3463
3159
  };
3464
3160
  declare function createA2UIMessageRenderer(options: A2UIMessageRendererOptions): ReactActivityMessageRenderer<any>;
3465
3161
  //#endregion
3466
- 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 };
3162
+ export { type A2UIActionInterceptor, type A2UIMarkdownOperation, type A2UIMessageRendererOptions, type A2UIRecoveryRendererOptions, type A2UITheme, type A2UIUserAction, A2UI_FENCE_LANGUAGE, ACTIVITY_HISTORY_METADATA, AGUIConnectNotImplementedError, AGUIError, type AGUIEvent, type AGUIEventByType, type AGUIEventOf, AGUI_METADATA_KEY, AbstractAgent, type ActionConfig, type ActionCreator, type ActionFromCreator, type ActionFromCreators, type ActionGroupConfig, type ActionGroupResult, type ActivityDeltaEvent, type ActivityDeltaEventProps, ActivityDeltaEventSchema, type ActivityMessage, type ActivityMessageRenderProps, type ActivityMessageRendererDef, ActivityMessageSchema, type ActivitySnapshotEvent, type ActivitySnapshotEventProps, ActivitySnapshotEventSchema, type AddOperation, AddOperationSchema, type AgentCapabilities, AgentCapabilitiesSchema, type AgentConfig, type AgentContextInput, type AgentDebugConfig, AgentRegistry, type AgentStateMutation, type AgentSubscriber, type AgentSubscriberParams, AgentThreadLockedError, type AnyAction, type AssistantMessage, AssistantMessageSchema, type Attachment, type AttachmentModality, type AttachmentsConfig, type Attributable, AttributableSchema, type AudioInputContent, AudioInputContentSchema, type AudioInputPart, AudioInputPartSchema, type AudioPart, AudioPartSchema, AudioRecorderError, type AudioRecorderState, type AutoScrollMode, BackwardCompatibility_0_0_39, BackwardCompatibility_0_0_45, BackwardCompatibility_0_0_57, type BaseEvent, type BaseEventFields, type BaseEventProps, BaseEventSchema, type BaseMessage, BaseMessageSchema, type ChildIdsOf, type ChildWalkOptions, CompatibilityBoundary, type ContentPart, ContentPartSchema, type Context, ContextSchema, ContextStore, CopilotChat, CopilotChatAssistantMessage, type CopilotChatAssistantMessageProps, CopilotChatAttachmentQueue, CopilotChatAttachmentRenderer, CopilotChatAudioRecorder, CopilotChatConfigurationProvider, type CopilotChatConfigurationProviderProps, type CopilotChatConfigurationValue, CopilotChatDefaultLabels, type CopilotChatFeedbackMessage, CopilotChatInput, type CopilotChatInputProps, type CopilotChatLabels, CopilotChatMessageView, type CopilotChatMessageViewProps, type CopilotChatProps, CopilotChatReasoningMessage, type CopilotChatReasoningMessageProps, CopilotChatSuggestionPill, type CopilotChatSuggestionPillProps, CopilotChatSuggestionView, type CopilotChatSuggestionViewProps, CopilotChatToggleButton, DefaultCloseIcon as CopilotChatToggleButtonCloseIcon, DefaultOpenIcon as CopilotChatToggleButtonOpenIcon, type CopilotChatToggleButtonProps, type CopilotChatToolCallDisplay, CopilotChatToolCallGroup, type CopilotChatToolCallGroupAppearance, type CopilotChatToolCallGroupProps, CopilotChatToolCallsView, type CopilotChatToolCallsViewProps, CopilotChatUserMessage, type CopilotChatUserMessageProps, CopilotChatView, type CopilotChatViewProps, CopilotChatWorkSummary, type CopilotChatWorkSummaryProps, type CopilotIconData, type CopilotIconDefinition, type CopilotIconName, type CopilotIconNode, type CopilotKitContextValue, CopilotKitCore, type CopilotKitCoreAddAgentParams, type CopilotKitCoreCatalogComponent, type CopilotKitCoreConfig, type CopilotKitCoreConnectAgentParams, type CopilotKitCoreContinuationHandoff, CopilotKitCoreErrorCode, type CopilotKitCoreFriendsAccess, type CopilotKitCoreGetSuggestionsResult, type CopilotKitCoreGetToolParams, CopilotKitCoreReact, 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 CustomMessageRenderProps, type CustomMessageRendererDef, type CustomMessageRendererPosition, 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, 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, OpenGenerativeUIActivityRenderer, OpenGenerativeUIActivityType, OpenGenerativeUIContent, OpenGenerativeUIContentSchema, OpenGenerativeUIToolRenderer, type OpenThreadRegistration, OptionalMetadataSchema, type OutputCapabilities, OutputCapabilitiesSchema, PROTOCOL_VERSION, type PartSource, PartSourceSchema, type PropsActionConfig, ProxiedCopilotRuntimeAgent, type ProxiedCopilotRuntimeAgentConfig, type RawEvent, type RawEventProps, RawEventSchema, ReactActivityMessageRenderer, ReactCustomMessageRenderer, ReactCustomMessageRendererPosition, ReactFrontendTool, ReactHumanInTheLoop, ReactToolCallRenderer, type ReasoningCapabilities, ReasoningCapabilitiesSchema, type ReasoningEncryptedValueEvent, type ReasoningEncryptedValueEventProps, ReasoningEncryptedValueEventSchema, type ReasoningEncryptedValueSubtype, ReasoningEncryptedValueSubtypeSchema, type ReasoningEndEvent, type ReasoningEndEventProps, ReasoningEndEventSchema, type ReasoningMessage, type ReasoningMessageChunkEvent, type ReasoningMessageChunkEventProps, ReasoningMessageChunkEventSchema, type ReasoningMessageContentEvent, type ReasoningMessageContentEventProps, ReasoningMessageContentEventSchema, type ReasoningMessageEndEvent, type ReasoningMessageEndEventProps, ReasoningMessageEndEventSchema, ReasoningMessageSchema, type ReasoningMessageStartEvent, type ReasoningMessageStartEventProps, ReasoningMessageStartEventSchema, type ReasoningStartEvent, type ReasoningStartEventProps, ReasoningStartEventSchema, type Reducer, type RemoveOperation, RemoveOperationSchema, type ReplaceOperation, ReplaceOperationSchema, type ResolvedAgentDebugConfig, type ResumeEntry, ResumeEntrySchema, type ResumeStatus, type Role, RoleSchema, type RunAgentInput, RunAgentInputSchema, type RunAgentParameters, type RunAgentResult, type RunCompletionAware, type RunErrorEvent, type RunErrorEventProps, RunErrorEventSchema, type RunFinishedCancelledOutcome, RunFinishedCancelledOutcomeSchema, type RunFinishedEvent, type RunFinishedEventProps, RunFinishedEventSchema, type RunFinishedInterruptOutcome, RunFinishedInterruptOutcomeSchema, type RunFinishedOutcome, RunFinishedOutcomeSchema, type RunFinishedSuccessOutcome, RunFinishedSuccessOutcomeSchema, RunHandler, type RunStartedEvent, type RunStartedEventProps, RunStartedEventSchema, type RuntimeLicenseStatus, type RuntimeMode, SandboxFunction, SandboxFunctionsContext, type ScopedContext, type ScopedProperties, type Selector, type StartResult, type State, type StateCapabilities, StateCapabilitiesSchema, type StateDeltaEvent, type StateDeltaEventProps, StateDeltaEventSchema, StateManager, StateSchema, type StateSnapshotEvent, type StateSnapshotEventProps, StateSnapshotEventSchema, type StaticSuggestionsConfig, type StepFinishedEvent, type StepFinishedEventProps, StepFinishedEventSchema, type StepStartedEvent, type StepStartedEventProps, StepStartedEventSchema, type Store, type StoreLifecycleAction, StreamingMarkdownDefaultRenderer, type SubagentErrorEvent, type SubagentErrorEventProps, SubagentErrorEventSchema, type SubagentFinishedEvent, type SubagentFinishedEventProps, SubagentFinishedEventSchema, type SubagentFinishedOutcome, SubagentFinishedOutcomeSchema, type SubagentFinishedSuccessOutcome, SubagentFinishedSuccessOutcomeSchema, type SubagentFinishedSuspendedOutcome, SubagentFinishedSuspendedOutcomeSchema, type SubagentInfo, SubagentInfoSchema, type SubagentRunId, SubagentRunIdSchema, type SubagentStartedEvent, type SubagentStartedEventProps, SubagentStartedEventSchema, type SubscribeToAgentOptions, type SubscribeToAgentSubscriber, type Suggestion, type SuggestionAvailability, SuggestionEngine, type SuggestionsConfig, type SurfaceSegment, type SystemMessage, SystemMessageSchema, type TestOperation, TestOperationSchema, type TextInputContent, TextInputContentSchema, type TextMessageChunkEvent, type TextMessageChunkEventProps, TextMessageChunkEventSchema, type TextMessageContentEvent, type TextMessageContentEventProps, TextMessageContentEventSchema, type TextMessageEndEvent, type TextMessageEndEventProps, TextMessageEndEventSchema, type TextMessageRole, TextMessageRoleSchema, type TextMessageStartEvent, type TextMessageStartEventProps, TextMessageStartEventSchema, type TextPart, TextPartSchema, type Thread, type ThreadEndpointRuntimeInfo, type ThreadRunActivityNotification, type TokenUsage, TokenUsageSchema, type Tool, type ToolCall, type ToolCallArgsEvent, type ToolCallArgsEventProps, ToolCallArgsEventSchema, type ToolCallChunkEvent, type ToolCallChunkEventProps, ToolCallChunkEventSchema, type ToolCallEndEvent, type ToolCallEndEventProps, ToolCallEndEventSchema, type ToolCallEntry, type ToolCallRenderProps, type ToolCallRendererDef, type ToolCallResultEvent, type ToolCallResultEventProps, ToolCallResultEventSchema, ToolCallSchema, type ToolCallStartEvent, type ToolCallStartEventProps, ToolCallStartEventSchema, ToolCallStatus, type ToolMessage, ToolMessageSchema, ToolSchema, type ToolsCapabilities, ToolsCapabilitiesSchema, type ToolsMenuItem, type TrajectoryStartOptions, TranscriptionError, TranscriptionErrorCode, type TranscriptionErrorInfo, type TranscriptionResult, type TransportCapabilities, TransportCapabilitiesSchema, type UnrecognizedEvent, type UrlSource, UrlSourceSchema, UseAgentUpdate, type UseAttachmentsProps, type UseAttachmentsReturn, type UseInterruptConfig, type UseLearnFromUserActionInCurrentThreadRecorder, type UseLearnFromUserActionRecorder, type UseMemoriesResult, type UseThreadsInput, type UseThreadsResult, type UserMessage, UserMessageSchema, type VideoInputContent, VideoInputContentSchema, type VideoInputPart, VideoInputPartSchema, type VideoPart, VideoPartSchema, type WebMCPModelContext, WebMCPRegistry, type WebMCPToolAnnotations, type WebMCPToolConfig, WildcardToolCallRender, a2uiDefaultTheme, aggregateTokenUsage, authoritativeActivityTypes, buildResumeArray, classifySurfaceCards, compactEvents, completePartialMarkdown, contentHasMedia, contentToText, convertToLegacyEvents, createA2UIMessageRenderer, createActionGroup, createDebugLogger, createEffect, createInspectorThreadRequestId, createReducer, createSelector, createStore, defaultApplyEvents, defineToolCallRenderer, emitInspectorActiveThread, emitInspectorStopViewing, emitInspectorViewThread, emitInspectorViewThreadResult, empty, enforceEvents, enforceOutgoingInput, ensureObjectArgs, extractCompleteArrayItems, extractFenceOperations, extractStringField, flattenInformationalCards, getIntelligenceTurnAnchors, getMarkdownOperationSurfaceId, getRunOutcome, getWebMCPModelContext, isAbortError, isInspectorThreadBridgeEnabled, isInterruptExpired, isRecognizedEvent, isRunCompletionAware, mergeMetadata, messageGroup, messageRow, ofType, omitOptionalNulls, on, onInspectorActiveThread, onInspectorStopViewing, onInspectorViewThread, onInspectorViewThreadResult, parseProtoStream, parseSSEStream, parseToolArguments, prepareSurfaceOperations, props, randomUUID, resolveAgentDebugConfig, resolveDebugLogger, runHttpRequest, segmentSurfaceProse, select, splitA2UIMarkdown, structuredClone_, tokenUsageFromAiSdkUsage, tokenUsageFromLangChainMetadata, transformChunks, transformHttpEventStream, useAgent, useAgentContext, useAttachments, useCapabilities, useComponent, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useDefaultRenderTool, useFrontendTool, useFrontendTools, useHumanInTheLoop, useInterrupt, useLearnFromUserAction, useLearnFromUserActionInCurrentThread, useLicenseContext, useMarkdownRenderer, useMemories, useRenderActivityMessage, useRenderCustomMessages, useRenderTool, useRenderToolCall, useSandboxFunctions, useSuggestions, useThreads, verifyEvents, withAuthoritativeActivityTypes, type ɵActivityRendererQuery, ɵCOPILOTKIT_FEATURES, type ɵComposerInput, type ɵComposerKeyEvent, type ɵComposerMode, type ɵCopilotKitFeature, type ɵGenerativeUIDebugFunction, type ɵGenerativeUIDebugPromptSection, type ɵGenerativeUIDebugRun, type ɵGenerativeUIDebugSnapshot, type ɵGenerativeUIDebugSource, type ɵGenerativeUIDebugSurface, type ɵInterruptDecision, type ɵInterruptEvent, ɵInterruptState, type ɵInterruptToolResult, type ɵLicenseStateInput, ɵ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, type ɵReasoningDuration, ɵTHREAD_REQUEST_TIMEOUT_MS, type ɵThread, type ɵThreadEnvironment, type ɵThreadMetadataEvent, type ɵThreadRuntimeContext, type ɵThreadSelectors, type ɵThreadStore, type ɵToolCallDisplayContextValue, type ɵToolCallLayout, type ɵToolCallRendererNames, type ɵToolCallRendererNamesOptions, type ɵToolCallRowStatus, type ɵToolCallSegment, type ɵTranscriptionCore, type ɵTranscriptionErrorLabelKey, type ɵTurnOpenState, type ɵTurnWork, type ɵWorkTime, ɵclearAgentInterruptState, ɵcomposerButtonState, ɵcopilotIconSvgAttributes, ɵcopilotIcons, ɵcountFailedToolCalls, ɵcreateMemoryStore, ɵcreateThreadSelectors, ɵcreateThreadStore, ɵdeduplicateMessages, ɵformatCountLabel, ɵformatLabel, ɵformatReasoningDuration, ɵformatToolNames, ɵformatWorkDuration, ɵgetAgentInterruptState, ɵgetArgumentPreview, ɵgetLatestTurnKey, ɵgetToolCallLayouts, ɵgetToolCallPreview, ɵgetToolCallRendererNames, ɵgetToolCallRowStatus, ɵgetToolResults, ɵgetTurnWork, ɵgetWorkOpenState, ɵisCopilotKitFeature, ɵisHttpAgent, ɵisRetryableMemoryStatus, ɵisTurnWorkOpen, ɵisTurnWorking, ɵjoinPhoenixChannel$, ɵmapMemoryMetadataEvent, ɵmemoryAdapterEvents, ɵmemoryDomainEvents, ɵmemoryReducer, ɵmemoryRestEvents, ɵmessagesFingerprint, ɵobservePhoenixEvent$, ɵobservePhoenixJoinOutcome$, ɵobservePhoenixSocketHealth$, ɵobservePhoenixSocketSignals$, ɵphoenixChannel$, ɵphoenixSocket$, ɵpluralize, ɵrecordWorkTime, ɵresolveActivityRenderer, ɵresolveComposerKey, ɵresolveCustomMessageRenderers, ɵresolveLicenseState, ɵresolveThreadsLicense, ɵresolveToolCallRenderer, ɵrunMcpFollowUp, ɵselectFetchMoreError, ɵselectHasNextPage, ɵselectIsFetchingNextPage, ɵselectIsMutating, ɵselectMemories, ɵselectMemoriesAvailable, ɵselectMemoriesError, ɵselectMemoriesIsLoading, ɵselectMemoriesIsMutating, ɵselectMemoriesRealtimeStatus, ɵselectThreads, ɵselectThreadsError, ɵselectThreadsIsLoading, ɵstringifyToolCallPayload, ɵthreadAdapterEvents, ɵtranscribeAudio, ɵtranscriptionErrorMessageKey, ɵwithHeaderDefaults };
3467
3163
  //# sourceMappingURL=index.d.cts.map