@copilotkit/react-core 2.0.0-rc.0 → 2.0.0-rc.10
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.
- package/dist/{MarkdownRendererContext-B4Us6mwL.d.cts → MarkdownRendererContext-CS35epe1.d.mts} +17 -33
- package/dist/MarkdownRendererContext-CS35epe1.d.mts.map +1 -0
- package/dist/{MarkdownRendererContext-CRKFzsEB.d.mts → MarkdownRendererContext-CfTh92vk.d.cts} +17 -33
- package/dist/MarkdownRendererContext-CfTh92vk.d.cts.map +1 -0
- package/dist/{MarkdownSurfaces-ChSlVYOk.mjs → MarkdownSurfaces-CimUSR3Y.mjs} +153 -76
- package/dist/MarkdownSurfaces-CimUSR3Y.mjs.map +1 -0
- package/dist/{MarkdownSurfaces-C2XZISKn.cjs → MarkdownSurfaces-DGDeUhbX.cjs} +175 -85
- package/dist/MarkdownSurfaces-DGDeUhbX.cjs.map +1 -0
- package/dist/context.cjs +20 -17
- package/dist/context.cjs.map +1 -1
- package/dist/context.d.cts +38 -98
- package/dist/context.d.cts.map +1 -1
- package/dist/context.d.mts +38 -98
- package/dist/context.d.mts.map +1 -1
- package/dist/context.mjs +20 -17
- package/dist/context.mjs.map +1 -1
- package/dist/generative-ui.cjs +564 -564
- package/dist/generative-ui.cjs.map +1 -1
- package/dist/generative-ui.d.cts +2137 -4178
- package/dist/generative-ui.d.cts.map +1 -1
- package/dist/generative-ui.d.mts +2137 -4178
- package/dist/generative-ui.d.mts.map +1 -1
- package/dist/generative-ui.mjs +69 -70
- package/dist/generative-ui.mjs.map +1 -1
- package/dist/headless.cjs +50 -76
- package/dist/headless.cjs.map +1 -1
- package/dist/headless.d.cts +78 -253
- package/dist/headless.d.cts.map +1 -1
- package/dist/headless.d.mts +56 -202
- package/dist/headless.d.mts.map +1 -1
- package/dist/headless.mjs +43 -74
- package/dist/headless.mjs.map +1 -1
- package/dist/index.cjs +1383 -1958
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +213 -538
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +212 -537
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1089 -1920
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1549 -2039
- package/dist/index.umd.js.map +1 -1
- package/package.json +20 -35
- package/dist/MarkdownRendererContext-B4Us6mwL.d.cts.map +0 -1
- package/dist/MarkdownRendererContext-CRKFzsEB.d.mts.map +0 -1
- package/dist/MarkdownSurfaces-C2XZISKn.cjs.map +0 -1
- package/dist/MarkdownSurfaces-ChSlVYOk.mjs.map +0 -1
- package/dist/index.css +0 -2
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-
|
|
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-CfTh92vk.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
|
-
import
|
|
5
|
+
import * as z from "zod";
|
|
6
6
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
7
|
-
import {
|
|
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,
|
|
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, DEFAULT_OPEN_GENERATIVE_UI_DESIGN_SKILL, DispatchingEffect, DispatchingEffectOptions, DynamicSuggestionsConfig, DynamicSuggestionsConfig as DynamicSuggestionsConfig$1, Effect, EmptyActionConfig, FrontendTool, FrontendTool as FrontendTool$1, FrontendToolHandlerContext, FrontendToolReconnectBehavior, GENERATE_SANDBOXED_UI_TOOL_NAME, GenerateSandboxedUiArgs, HumanInTheLoopRenderProps, HumanInTheLoopRenderProps as HumanInTheLoopRenderProps$1, INSPECTOR_THREAD_BRIDGE_PLUGIN_ID, INTERRUPT_EVENT_NAME, InspectorActiveThreadPayload, InspectorMetadataV1, InspectorStopViewingPayload, InspectorViewThreadPayload, InspectorViewThreadResultPayload, IntelligenceAgent, IntelligenceAgentConfig, IntelligenceRuntimeInfo, InterruptCancelFn, InterruptEvent, InterruptHandlerProps, InterruptRenderProps, InterruptResolveFn, JsonValue, LearningConfig, LearningConfig as LearningConfig$1, LegacyLearningConfig, MEMORY_ERROR_REGISTRY, MarkdownSegment, Memory, Memory as Memory$1, MemoryChanges, MemoryChanges as MemoryChanges$1, MemoryError, MemoryErrorCategory, MemoryErrorCode, MemoryErrorRegistryEntry, MemoryKind, MemoryRealtimeStatus, MemoryRealtimeStatus as MemoryRealtimeStatus$1, MemoryScope, NewMemory, NewMemory as NewMemory$1, NonDispatchingEffect, NonDispatchingEffectOptions, OPEN_GENERATIVE_UI_ACTIVITY_TYPE, OpenGenerativeUIContent, OpenThreadRegistration, PropsActionConfig, ProxiedCopilotRuntimeAgent, ProxiedCopilotRuntimeAgentConfig, Reducer, RunCompletionAware, RunHandler, RuntimeLicenseStatus, RuntimeMode, ScopedContext, ScopedProperties, Selector, StartResult, StateManager, StaticSuggestionsConfig, StaticSuggestionsConfig as StaticSuggestionsConfig$1, Store, StoreLifecycleAction, SubscribeToAgentOptions, SubscribeToAgentSubscriber, Suggestion, Suggestion as Suggestion$1, SuggestionAvailability, SuggestionEngine, SuggestionsConfig, SurfaceSegment, ThreadEndpointRuntimeInfo, ThreadRunActivityNotification, ToolCallEntry, ToolCallEntry as ToolCallEntry$1, ToolCallRenderProps, ToolCallRenderProps as ToolCallRenderProps$1, ToolCallRendererDef, ToolCallRendererDef as ToolCallRendererDef$1, ToolCallStatus, ToolCallStatus as ToolCallStatus$1, TrajectoryStartOptions, TranscriptionError, TranscriptionErrorCode, TranscriptionErrorInfo, TranscriptionResult, WebMCPModelContext, WebMCPRegistry, WebMCPToolAnnotations, WebMCPToolConfig, classifySurfaceCards, completePartialMarkdown, createActionGroup, createEffect, createInspectorThreadRequestId, createReducer, createSelector, createStore, emitInspectorActiveThread, emitInspectorStopViewing, emitInspectorViewThread, emitInspectorViewThreadResult, empty, ensureObjectArgs, extractCompleteArrayItems, extractFenceOperations, extractStringField, flattenInformationalCards, getMarkdownOperationSurfaceId, getWebMCPModelContext, isAbortError, isInspectorThreadBridgeEnabled, isRunCompletionAware, ofType, on, onInspectorActiveThread, onInspectorStopViewing, onInspectorViewThread, onInspectorViewThreadResult, parseToolArguments, prepareSurfaceOperations, props, segmentSurfaceProse, select, splitA2UIMarkdown, ɵActivityRendererQuery, ɵ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, ɵOpenGenerativeUIController, ɵOpenGenerativeUIControllerOptions, ɵOpenGenerativeUIPhase, ɵOpenGenerativeUIState, ɵPendingInterrupt, ɵPhoenixChannelLike, ɵPhoenixChannelOptions, ɵPhoenixChannelSession, ɵPhoenixJoinOutcome, ɵPhoenixPushLike, ɵPhoenixSocketLike, ɵPhoenixSocketOptions, ɵPhoenixSocketSession, ɵPhoenixSocketSignal, ɵRUNTIME_PROBE_TIMEOUT_MS, ɵReasoningDuration, ɵSandboxFunctionHandle, ɵSandboxLocalApi, ɵTHREAD_REQUEST_TIMEOUT_MS, ɵThread, ɵThreadEnvironment, ɵThreadMetadataEvent, ɵThreadRuntimeContext, ɵThreadSelectors, ɵThreadStore, ɵToolCallDisplayContextValue, ɵToolCallLayout, ɵToolCallRendererNames, ɵToolCallRendererNamesOptions, ɵToolCallRowStatus, ɵToolCallSegment, ɵTranscriptionCore, ɵTranscriptionErrorLabelKey, ɵTurnOpenState, ɵTurnWork, ɵWebsandboxConstructor, ɵWebsandboxInstance, ɵWebsandboxLoader, ɵWorkTime, ɵclearAgentInterruptState, ɵcomposerButtonState, ɵcopilotIconSvgAttributes, ɵcopilotIcons, ɵcountFailedToolCalls, ɵcreateMemoryStore, ɵcreateThreadSelectors, ɵcreateThreadStore, ɵdeduplicateMessages, ɵextractCompleteStyles, ɵformatCountLabel, ɵformatLabel, ɵformatReasoningDuration, ɵformatToolNames, ɵformatWorkDuration, ɵgetAgentInterruptState, ɵgetArgumentPreview, ɵgetLatestTurnKey, ɵgetToolCallLayouts, ɵgetToolCallPreview, ɵgetToolCallRendererNames, ɵgetToolCallRowStatus, ɵgetToolResults, ɵgetTurnWork, ɵgetWorkOpenState, ɵisCopilotKitFeature, ɵisHttpAgent, ɵisRetryableMemoryStatus, ɵisTurnWorkOpen, ɵisTurnWorking, ɵjoinPhoenixChannel$, ɵloadWebsandbox, ɵmapMemoryMetadataEvent, ɵmemoryAdapterEvents, ɵmemoryDomainEvents, ɵmemoryReducer, ɵmemoryRestEvents, ɵmessagesFingerprint, ɵobservePhoenixEvent$, ɵobservePhoenixJoinOutcome$, ɵobservePhoenixSocketHealth$, ɵobservePhoenixSocketSignals$, ɵphoenixChannel$, ɵphoenixSocket$, ɵpluralize, ɵprocessPartialHtml, ɵ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
|
|
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"
|
|
708
|
-
* for 9s
|
|
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,
|
|
@@ -742,7 +571,7 @@ interface IntelligenceIndicatorViewProps extends React$1.HTMLAttributes<HTMLSpan
|
|
|
742
571
|
* checkmark — whose geometry lives in each path's `d` ATTRIBUTE so it
|
|
743
572
|
* renders in every browser (the CSS `d:` property is Chrome-only).
|
|
744
573
|
*
|
|
745
|
-
* Two states, driven by the `data-status` attribute (see
|
|
574
|
+
* Two states, driven by the `data-status` attribute (see styles/css/intelligence-indicator.css
|
|
746
575
|
* for the exact timing):
|
|
747
576
|
* 1. **In-progress.** The arc spins (CSS rotation) inside the pill and
|
|
748
577
|
* the checkmark is hidden. Label + icon are a saturated purple.
|
|
@@ -756,7 +585,7 @@ interface IntelligenceIndicatorViewProps extends React$1.HTMLAttributes<HTMLSpan
|
|
|
756
585
|
* — the static check plus the color/slant shift carry the "done"
|
|
757
586
|
* meaning, so no wording change is needed.
|
|
758
587
|
*
|
|
759
|
-
* All motion is gated behind `prefers-reduced-motion` (
|
|
588
|
+
* All motion is gated behind `prefers-reduced-motion` (styles/css/intelligence-indicator.css):
|
|
760
589
|
* when reduced motion is requested the arc does not spin and the two
|
|
761
590
|
* states swap instantly, without transitions.
|
|
762
591
|
*
|
|
@@ -912,9 +741,9 @@ declare function messageRow(message: Message$1): MessageRow;
|
|
|
912
741
|
/** A row holding a group of messages, rendered inside `wrapper`. */
|
|
913
742
|
declare function messageGroup<S>(group: Omit<MessageGroup<S>, "type">): MessageRow;
|
|
914
743
|
type CopilotChatMessageViewProps = Omit<WithSlots<{
|
|
915
|
-
assistantMessage:
|
|
916
|
-
userMessage:
|
|
917
|
-
reasoningMessage:
|
|
744
|
+
assistantMessage: React$1.ComponentType<CopilotChatAssistantMessageProps>;
|
|
745
|
+
userMessage: React$1.ComponentType<CopilotChatUserMessageProps>;
|
|
746
|
+
reasoningMessage: React$1.ComponentType<CopilotChatReasoningMessageProps>;
|
|
918
747
|
cursor: typeof CopilotChatMessageView.Cursor;
|
|
919
748
|
intelligenceIndicator: typeof IntelligenceIndicatorView; /** The "Working… / Worked for 9s" line of the `"turn"` tool-call display. */
|
|
920
749
|
workSummary: typeof CopilotChatWorkSummary;
|
|
@@ -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;
|
|
@@ -1004,7 +833,7 @@ type WelcomeScreenProps = WithSlots<{
|
|
|
1004
833
|
suggestionView: React$1.ReactElement;
|
|
1005
834
|
} & React$1.HTMLAttributes<HTMLDivElement>>;
|
|
1006
835
|
type CopilotChatViewProps = WithSlots<{
|
|
1007
|
-
messageView:
|
|
836
|
+
messageView: React$1.ComponentType<CopilotChatMessageViewProps>;
|
|
1008
837
|
scrollView: typeof CopilotChatView.ScrollView;
|
|
1009
838
|
input: React$1.ComponentType<CopilotChatInputProps>;
|
|
1010
839
|
suggestionView: typeof CopilotChatSuggestionView;
|
|
@@ -1047,13 +876,6 @@ type CopilotChatViewProps = WithSlots<{
|
|
|
1047
876
|
* connect) rather than a generic "start a new chat" greeting.
|
|
1048
877
|
*/
|
|
1049
878
|
hasExplicitThreadId?: boolean;
|
|
1050
|
-
/**
|
|
1051
|
-
* @deprecated Use the `input` slot's `disclaimer` prop instead:
|
|
1052
|
-
* ```tsx
|
|
1053
|
-
* <CopilotChat input={{ disclaimer: MyDisclaimer }} />
|
|
1054
|
-
* ```
|
|
1055
|
-
*/
|
|
1056
|
-
disclaimer?: SlotValue<React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>>;
|
|
1057
879
|
/**
|
|
1058
880
|
* Slot for the "Using CopilotKit Intelligence" indicator. Pass-through
|
|
1059
881
|
* to `CopilotChatMessageView`'s `intelligenceIndicator` slot — accepts a
|
|
@@ -1091,7 +913,6 @@ declare function CopilotChatView({
|
|
|
1091
913
|
onDrop,
|
|
1092
914
|
isConnecting,
|
|
1093
915
|
hasExplicitThreadId,
|
|
1094
|
-
disclaimer,
|
|
1095
916
|
intelligenceIndicator,
|
|
1096
917
|
children,
|
|
1097
918
|
className,
|
|
@@ -1117,10 +938,10 @@ declare namespace CopilotChatView {
|
|
|
1117
938
|
}
|
|
1118
939
|
//#endregion
|
|
1119
940
|
//#region src/components/chat/CopilotChat.d.ts
|
|
1120
|
-
type CopilotChatProps = Omit<CopilotChatViewProps, "messages" | "isRunning" | "suggestions" | "suggestionLoadingIndexes" | "onSelectSuggestion" | "attachments" | "onRemoveAttachment" | "onAddFile" | "dragOver" | "onDragOver" | "onDragLeave" | "onDrop"> & {
|
|
941
|
+
type CopilotChatProps = Omit<CopilotChatViewProps, "messages" | "isRunning" | "suggestions" | "suggestionLoadingIndexes" | "onSelectSuggestion" | "attachments" | "onRemoveAttachment" | "onAddFile" | "dragOver" | "onDragOver" | "onDragLeave" | "onDrop" | "onError"> & {
|
|
1121
942
|
agentId?: string;
|
|
1122
943
|
threadId?: string;
|
|
1123
|
-
labels?: Partial<CopilotChatLabels>;
|
|
944
|
+
labels?: Partial<CopilotChatLabels$1>;
|
|
1124
945
|
/**
|
|
1125
946
|
* Enable Inspector message shortcuts for this chat (enabled by default).
|
|
1126
947
|
* An explicit CopilotKit provider enableInspector value takes priority.
|
|
@@ -1793,63 +1614,25 @@ declare const OpenGenerativeUIContentSchema: z.ZodObject<{
|
|
|
1793
1614
|
generating: z.ZodOptional<z.ZodBoolean>;
|
|
1794
1615
|
css: z.ZodOptional<z.ZodString>;
|
|
1795
1616
|
cssComplete: z.ZodOptional<z.ZodBoolean>;
|
|
1796
|
-
html: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1617
|
+
html: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1797
1618
|
htmlComplete: z.ZodOptional<z.ZodBoolean>;
|
|
1798
1619
|
jsFunctions: z.ZodOptional<z.ZodString>;
|
|
1799
1620
|
jsFunctionsComplete: z.ZodOptional<z.ZodBoolean>;
|
|
1800
|
-
jsExpressions: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1621
|
+
jsExpressions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1801
1622
|
jsExpressionsComplete: z.ZodOptional<z.ZodBoolean>;
|
|
1802
|
-
},
|
|
1803
|
-
html?: string[] | undefined;
|
|
1804
|
-
initialHeight?: number | undefined;
|
|
1805
|
-
generating?: boolean | undefined;
|
|
1806
|
-
css?: string | undefined;
|
|
1807
|
-
cssComplete?: boolean | undefined;
|
|
1808
|
-
htmlComplete?: boolean | undefined;
|
|
1809
|
-
jsFunctions?: string | undefined;
|
|
1810
|
-
jsFunctionsComplete?: boolean | undefined;
|
|
1811
|
-
jsExpressions?: string[] | undefined;
|
|
1812
|
-
jsExpressionsComplete?: boolean | undefined;
|
|
1813
|
-
}, {
|
|
1814
|
-
html?: string[] | undefined;
|
|
1815
|
-
initialHeight?: number | undefined;
|
|
1816
|
-
generating?: boolean | undefined;
|
|
1817
|
-
css?: string | undefined;
|
|
1818
|
-
cssComplete?: boolean | undefined;
|
|
1819
|
-
htmlComplete?: boolean | undefined;
|
|
1820
|
-
jsFunctions?: string | undefined;
|
|
1821
|
-
jsFunctionsComplete?: boolean | undefined;
|
|
1822
|
-
jsExpressions?: string[] | undefined;
|
|
1823
|
-
jsExpressionsComplete?: boolean | undefined;
|
|
1824
|
-
}>;
|
|
1825
|
-
type OpenGenerativeUIContent = z.infer<typeof OpenGenerativeUIContentSchema>;
|
|
1623
|
+
}, z.core.$strip>;
|
|
1826
1624
|
/**
|
|
1827
1625
|
* Schema for the generateSandboxedUi tool call arguments.
|
|
1828
1626
|
* Used by the frontend tool renderer to display placeholder messages.
|
|
1829
1627
|
*/
|
|
1830
1628
|
declare const GenerateSandboxedUiArgsSchema: z.ZodObject<{
|
|
1831
1629
|
initialHeight: z.ZodOptional<z.ZodNumber>;
|
|
1832
|
-
placeholderMessages: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1630
|
+
placeholderMessages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1833
1631
|
css: z.ZodOptional<z.ZodString>;
|
|
1834
1632
|
html: z.ZodOptional<z.ZodString>;
|
|
1835
1633
|
jsFunctions: z.ZodOptional<z.ZodString>;
|
|
1836
|
-
jsExpressions: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1837
|
-
},
|
|
1838
|
-
html?: string | undefined;
|
|
1839
|
-
initialHeight?: number | undefined;
|
|
1840
|
-
css?: string | undefined;
|
|
1841
|
-
jsFunctions?: string | undefined;
|
|
1842
|
-
jsExpressions?: string[] | undefined;
|
|
1843
|
-
placeholderMessages?: string[] | undefined;
|
|
1844
|
-
}, {
|
|
1845
|
-
html?: string | undefined;
|
|
1846
|
-
initialHeight?: number | undefined;
|
|
1847
|
-
css?: string | undefined;
|
|
1848
|
-
jsFunctions?: string | undefined;
|
|
1849
|
-
jsExpressions?: string[] | undefined;
|
|
1850
|
-
placeholderMessages?: string[] | undefined;
|
|
1851
|
-
}>;
|
|
1852
|
-
type GenerateSandboxedUiArgs = z.infer<typeof GenerateSandboxedUiArgsSchema>;
|
|
1634
|
+
jsExpressions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1635
|
+
}, z.core.$strip>;
|
|
1853
1636
|
interface OpenGenerativeUIActivityRendererProps {
|
|
1854
1637
|
activityType: string;
|
|
1855
1638
|
content: OpenGenerativeUIContent;
|
|
@@ -1857,8 +1640,8 @@ interface OpenGenerativeUIActivityRendererProps {
|
|
|
1857
1640
|
agent: unknown;
|
|
1858
1641
|
}
|
|
1859
1642
|
/**
|
|
1860
|
-
*
|
|
1861
|
-
*
|
|
1643
|
+
* Renders an Open Generative UI activity. The core controller throttles the
|
|
1644
|
+
* content and runs the websandbox iframes inside the container div.
|
|
1862
1645
|
*/
|
|
1863
1646
|
declare const OpenGenerativeUIActivityRenderer: React$1.FC<OpenGenerativeUIActivityRendererProps>;
|
|
1864
1647
|
/**
|
|
@@ -1882,46 +1665,36 @@ declare const OpenGenerativeUIToolRenderer: React$1.FC<{
|
|
|
1882
1665
|
result: string;
|
|
1883
1666
|
}>;
|
|
1884
1667
|
//#endregion
|
|
1668
|
+
//#region src/styles/copilot-kit-styles.d.ts
|
|
1669
|
+
/**
|
|
1670
|
+
* Renders the CSS for CopilotKit's UI, so apps never import a stylesheet.
|
|
1671
|
+
* `CopilotChat` (and so `CopilotPopup` and `CopilotSidebar`) renders it for
|
|
1672
|
+
* you. Render it yourself only when you build a layout from the chat parts
|
|
1673
|
+
* without `CopilotChat`.
|
|
1674
|
+
*
|
|
1675
|
+
* React 19 moves the tag into `<head>` and keeps one copy, including in the
|
|
1676
|
+
* server HTML. React 18 renders it in place, one copy per `CopilotChat`.
|
|
1677
|
+
* Each copy holds the same CSS, so a second copy changes nothing.
|
|
1678
|
+
*
|
|
1679
|
+
* With a CSP nonce the tag always renders in place. React only adds a nonce to
|
|
1680
|
+
* a hoisted style when the app renders with `nonce: { style }`, and Next.js
|
|
1681
|
+
* passes a plain string, so a hoisted tag would be blocked.
|
|
1682
|
+
*
|
|
1683
|
+
* Renders nothing when `CopilotKitProvider` has `injectStyles={false}`.
|
|
1684
|
+
*/
|
|
1685
|
+
declare function CopilotKitStyles(): react_jsx_runtime0.JSX.Element | null;
|
|
1686
|
+
//#endregion
|
|
1885
1687
|
//#region src/types/react-tool-call-renderer.d.ts
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
*/
|
|
1897
|
-
agentId?: string;
|
|
1898
|
-
/**
|
|
1899
|
-
* Whether calls this renderer draws join the chat's tool-call groups (see
|
|
1900
|
-
* `toolCallDisplay` on `CopilotChatMessageView`). CopilotKit's built-in card
|
|
1901
|
-
* sets it; a renderer that leaves it unset always shows its calls on their
|
|
1902
|
-
* own, since the chat can't tell what it draws (it may even draw nothing).
|
|
1903
|
-
*/
|
|
1904
|
-
group?: boolean;
|
|
1905
|
-
render: React.ComponentType<{
|
|
1906
|
-
name: string;
|
|
1907
|
-
toolCallId: string;
|
|
1908
|
-
args: Partial<T>;
|
|
1909
|
-
status: ToolCallStatus$1.InProgress;
|
|
1910
|
-
result: undefined;
|
|
1911
|
-
} | {
|
|
1912
|
-
name: string;
|
|
1913
|
-
toolCallId: string;
|
|
1914
|
-
args: T;
|
|
1915
|
-
status: ToolCallStatus$1.Executing;
|
|
1916
|
-
result: undefined;
|
|
1917
|
-
} | {
|
|
1918
|
-
name: string;
|
|
1919
|
-
toolCallId: string;
|
|
1920
|
-
args: T;
|
|
1921
|
-
status: ToolCallStatus$1.Complete;
|
|
1922
|
-
result: string;
|
|
1923
|
-
}>;
|
|
1924
|
-
}
|
|
1688
|
+
/**
|
|
1689
|
+
* A tool call renderer for React: a React component that draws one tool call
|
|
1690
|
+
* in the chat. The component receives {@link ToolCallRenderProps}.
|
|
1691
|
+
*
|
|
1692
|
+
* Pass a list of these to `renderToolCalls` on `CopilotKitProvider`, or build
|
|
1693
|
+
* one with `defineToolCallRenderer`.
|
|
1694
|
+
*
|
|
1695
|
+
* @typeParam T - The shape of the tool arguments.
|
|
1696
|
+
*/
|
|
1697
|
+
type ReactToolCallRenderer<T = unknown> = ToolCallRendererDef$1<T, React$1.ComponentType<ToolCallRenderProps$1<T>>>;
|
|
1925
1698
|
//#endregion
|
|
1926
1699
|
//#region src/hooks/use-render-tool-call.d.ts
|
|
1927
1700
|
interface UseRenderToolCallProps {
|
|
@@ -1940,20 +1713,22 @@ declare function useRenderToolCall(): ({
|
|
|
1940
1713
|
}: UseRenderToolCallProps) => React$1.ReactElement | null;
|
|
1941
1714
|
//#endregion
|
|
1942
1715
|
//#region src/types/react-custom-message-renderer.d.ts
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1716
|
+
/** Where a custom message renderer draws, relative to its message. */
|
|
1717
|
+
type ReactCustomMessageRendererPosition = CustomMessageRendererPosition$1;
|
|
1718
|
+
/**
|
|
1719
|
+
* Props a React custom message renderer receives: the same as
|
|
1720
|
+
* {@link CustomMessageRenderProps}, with `stateSnapshot` typed `any` so a
|
|
1721
|
+
* component can read the agent state without a cast.
|
|
1722
|
+
*/
|
|
1723
|
+
type ReactCustomMessageRenderProps = Omit<CustomMessageRenderProps$1, "stateSnapshot"> & {
|
|
1724
|
+
stateSnapshot: any;
|
|
1725
|
+
};
|
|
1726
|
+
/**
|
|
1727
|
+
* A custom message renderer for React: a component that draws before or
|
|
1728
|
+
* after each chat message. Return `null` from the component to draw nothing
|
|
1729
|
+
* for a message. A `null` render is skipped.
|
|
1730
|
+
*/
|
|
1731
|
+
type ReactCustomMessageRenderer = CustomMessageRendererDef$1<React$1.ComponentType<ReactCustomMessageRenderProps> | null>;
|
|
1957
1732
|
//#endregion
|
|
1958
1733
|
//#region src/hooks/use-render-custom-messages.d.ts
|
|
1959
1734
|
interface UseRenderCustomMessagesParams {
|
|
@@ -1968,51 +1743,19 @@ type ReactFrontendTool<T extends Record<string, unknown> = Record<string, unknow
|
|
|
1968
1743
|
};
|
|
1969
1744
|
//#endregion
|
|
1970
1745
|
//#region src/types/human-in-the-loop.d.ts
|
|
1746
|
+
/**
|
|
1747
|
+
* A human-in-the-loop tool for React. It has no handler: the agent waits until
|
|
1748
|
+
* the `render` component calls `respond` with the user's answer.
|
|
1749
|
+
*
|
|
1750
|
+
* @typeParam T - The shape of the tool arguments.
|
|
1751
|
+
*/
|
|
1971
1752
|
type ReactHumanInTheLoop<T extends Record<string, unknown> = Record<string, unknown>> = Omit<FrontendTool$1<T>, "handler"> & {
|
|
1972
1753
|
/**
|
|
1973
|
-
* Render the human-in-the-loop UI for this tool call.
|
|
1974
|
-
*
|
|
1975
|
-
*
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
* stable key for correlating this interrupt with runtime (sub)agent
|
|
1979
|
-
* attribution — e.g. the `agentId` reported by `onToolExecutionStart`, or
|
|
1980
|
-
* per-run attribution stamped on the event stream — so the UI can label
|
|
1981
|
-
* the interrupt with the agent that actually raised it.
|
|
1982
|
-
* - `agentId` — the agent this tool was *registered* to (the tool's own
|
|
1983
|
-
* `agentId`), or `undefined` for an unscoped tool. This is the static
|
|
1984
|
-
* registration scope; it is NOT necessarily the runtime (sub)agent that
|
|
1985
|
-
* raised the interrupt. For runtime attribution, correlate `toolCallId`
|
|
1986
|
-
* with the event-stream/`onToolExecutionStart` agent id.
|
|
1987
|
-
*/
|
|
1988
|
-
render: React$1.ComponentType<{
|
|
1989
|
-
name: string;
|
|
1990
|
-
description: string;
|
|
1991
|
-
toolCallId: string;
|
|
1992
|
-
agentId?: string;
|
|
1993
|
-
args: Partial<T>;
|
|
1994
|
-
status: ToolCallStatus$1.InProgress;
|
|
1995
|
-
result: undefined;
|
|
1996
|
-
respond: undefined;
|
|
1997
|
-
} | {
|
|
1998
|
-
name: string;
|
|
1999
|
-
description: string;
|
|
2000
|
-
toolCallId: string;
|
|
2001
|
-
agentId?: string;
|
|
2002
|
-
args: T;
|
|
2003
|
-
status: ToolCallStatus$1.Executing;
|
|
2004
|
-
result: undefined;
|
|
2005
|
-
respond: (result: unknown) => Promise<void>;
|
|
2006
|
-
} | {
|
|
2007
|
-
name: string;
|
|
2008
|
-
description: string;
|
|
2009
|
-
toolCallId: string;
|
|
2010
|
-
agentId?: string;
|
|
2011
|
-
args: T;
|
|
2012
|
-
status: ToolCallStatus$1.Complete;
|
|
2013
|
-
result: string;
|
|
2014
|
-
respond: undefined;
|
|
2015
|
-
}>;
|
|
1754
|
+
* Render the human-in-the-loop UI for this tool call. The component
|
|
1755
|
+
* receives {@link HumanInTheLoopRenderProps}, which also carry `toolCallId`
|
|
1756
|
+
* and `agentId` for attribution.
|
|
1757
|
+
*/
|
|
1758
|
+
render: React$1.ComponentType<HumanInTheLoopRenderProps$1<T>>;
|
|
2016
1759
|
};
|
|
2017
1760
|
//#endregion
|
|
2018
1761
|
//#region src/types/defineToolCallRenderer.d.ts
|
|
@@ -2021,89 +1764,22 @@ type ReactHumanInTheLoop<T extends Record<string, unknown> = Record<string, unkn
|
|
|
2021
1764
|
* - Accepts a single object whose keys match ReactToolCallRenderer's fields: { name, args, render, agentId? }.
|
|
2022
1765
|
* - Derives `args` type from the provided schema (any Standard Schema V1 compatible library).
|
|
2023
1766
|
* - Ensures the render function param type exactly matches ReactToolCallRenderer<T>["render"]'s param.
|
|
2024
|
-
* - For wildcard tools (name: "*"), args is optional and defaults to
|
|
1767
|
+
* - For wildcard tools (name: "*"), args is optional and defaults to a schema that accepts any value.
|
|
2025
1768
|
*/
|
|
2026
|
-
type RenderProps<T> = {
|
|
2027
|
-
name: string;
|
|
2028
|
-
toolCallId: string;
|
|
2029
|
-
args: Partial<T>;
|
|
2030
|
-
status: ToolCallStatus$1.InProgress;
|
|
2031
|
-
result: undefined;
|
|
2032
|
-
} | {
|
|
2033
|
-
name: string;
|
|
2034
|
-
toolCallId: string;
|
|
2035
|
-
args: T;
|
|
2036
|
-
status: ToolCallStatus$1.Executing;
|
|
2037
|
-
result: undefined;
|
|
2038
|
-
} | {
|
|
2039
|
-
name: string;
|
|
2040
|
-
toolCallId: string;
|
|
2041
|
-
args: T;
|
|
2042
|
-
status: ToolCallStatus$1.Complete;
|
|
2043
|
-
result: string;
|
|
2044
|
-
};
|
|
2045
1769
|
declare function defineToolCallRenderer(def: {
|
|
2046
1770
|
name: "*";
|
|
2047
|
-
render: (props:
|
|
1771
|
+
render: (props: ToolCallRenderProps$1<any>) => React$1.ReactElement | null;
|
|
2048
1772
|
agentId?: string;
|
|
2049
1773
|
group?: boolean;
|
|
2050
1774
|
}): ReactToolCallRenderer<any>;
|
|
2051
1775
|
declare function defineToolCallRenderer<S extends StandardSchemaV1>(def: {
|
|
2052
1776
|
name: string;
|
|
2053
1777
|
args: S;
|
|
2054
|
-
render: (props:
|
|
1778
|
+
render: (props: ToolCallRenderProps$1<InferSchemaOutput<S>>) => React$1.ReactElement | null;
|
|
2055
1779
|
agentId?: string;
|
|
2056
1780
|
group?: boolean;
|
|
2057
1781
|
}): ReactToolCallRenderer<InferSchemaOutput<S>>;
|
|
2058
1782
|
//#endregion
|
|
2059
|
-
//#region src/types/interrupt.d.ts
|
|
2060
|
-
/** Name of the legacy custom event agents emit to signal an interrupt. */
|
|
2061
|
-
declare const INTERRUPT_EVENT_NAME = "on_interrupt";
|
|
2062
|
-
/** Legacy custom-event interrupt payload (agent emits a custom `on_interrupt` event). */
|
|
2063
|
-
interface InterruptEvent<TValue = unknown> {
|
|
2064
|
-
name: string;
|
|
2065
|
-
value: TValue;
|
|
2066
|
-
}
|
|
2067
|
-
/**
|
|
2068
|
-
* Resolve the agent with user input for an interrupt.
|
|
2069
|
-
*
|
|
2070
|
-
* - Standard interrupts: records `{ status: "resolved", payload }` for the target
|
|
2071
|
-
* interrupt (defaults to the primary one). Resumes once every open interrupt is
|
|
2072
|
-
* addressed; returns the resume run result, or `void` while still awaiting others.
|
|
2073
|
-
* - Legacy interrupts: resumes immediately via `command.resume = payload`.
|
|
2074
|
-
*/
|
|
2075
|
-
type InterruptResolveFn = (payload?: unknown, interruptId?: string) => Promise<RunAgentResult$1 | void>;
|
|
2076
|
-
/**
|
|
2077
|
-
* Cancel an interrupt.
|
|
2078
|
-
*
|
|
2079
|
-
* - Standard interrupts: records `{ status: "cancelled" }` for the target interrupt
|
|
2080
|
-
* (defaults to the primary one), then resumes once all are addressed.
|
|
2081
|
-
* - Legacy interrupts: dismisses the pending interrupt without resuming.
|
|
2082
|
-
*/
|
|
2083
|
-
type InterruptCancelFn = (interruptId?: string) => Promise<RunAgentResult$1 | void>;
|
|
2084
|
-
interface InterruptHandlerProps<TValue = unknown> {
|
|
2085
|
-
/**
|
|
2086
|
-
* Legacy event shape (`{ name, value }`). Always present for back-compat: for
|
|
2087
|
-
* standard interrupts, `value` is the primary `Interrupt` and `name` is `"on_interrupt"`.
|
|
2088
|
-
* Prefer `interrupt` / `interrupts` for standard interrupts.
|
|
2089
|
-
*/
|
|
2090
|
-
event: InterruptEvent<TValue>;
|
|
2091
|
-
/** Primary standard interrupt (`interrupts[0]`), or `null` for legacy interrupts. */
|
|
2092
|
-
interrupt: Interrupt | null;
|
|
2093
|
-
/** All open standard interrupts (empty array for legacy interrupts). */
|
|
2094
|
-
interrupts: Interrupt[];
|
|
2095
|
-
resolve: InterruptResolveFn;
|
|
2096
|
-
cancel: InterruptCancelFn;
|
|
2097
|
-
}
|
|
2098
|
-
interface InterruptRenderProps<TValue = unknown, TResult = unknown> {
|
|
2099
|
-
event: InterruptEvent<TValue>;
|
|
2100
|
-
interrupt: Interrupt | null;
|
|
2101
|
-
interrupts: Interrupt[];
|
|
2102
|
-
result: TResult;
|
|
2103
|
-
resolve: InterruptResolveFn;
|
|
2104
|
-
cancel: InterruptCancelFn;
|
|
2105
|
-
}
|
|
2106
|
-
//#endregion
|
|
2107
1783
|
//#region src/types/sandbox-function.d.ts
|
|
2108
1784
|
type SandboxFunction<TParams extends StandardSchemaV1 = StandardSchemaV1> = {
|
|
2109
1785
|
name: string;
|
|
@@ -2119,6 +1795,30 @@ declare function useRenderActivityMessage(): {
|
|
|
2119
1795
|
};
|
|
2120
1796
|
//#endregion
|
|
2121
1797
|
//#region src/hooks/use-frontend-tool.d.ts
|
|
1798
|
+
/**
|
|
1799
|
+
* Register a frontend tool while the component is mounted. The agent can
|
|
1800
|
+
* call it, and its `render` component draws the call in the chat.
|
|
1801
|
+
*
|
|
1802
|
+
* A tool with the same name and agentId as a tool that is already registered
|
|
1803
|
+
* (for example one from the provider's `tools`) overrides it while this
|
|
1804
|
+
* component is mounted. When the component unmounts, the overridden tool is
|
|
1805
|
+
* active again. The renderer stays registered after unmount, so past tool
|
|
1806
|
+
* calls still render in the chat history.
|
|
1807
|
+
*
|
|
1808
|
+
* @param tool - The tool to register.
|
|
1809
|
+
* @param deps - Extra values that re-register the tool when they change. Use
|
|
1810
|
+
* it when the handler closes over a value that is not part of the tool.
|
|
1811
|
+
*
|
|
1812
|
+
* @example
|
|
1813
|
+
* ```tsx
|
|
1814
|
+
* useFrontendTool({
|
|
1815
|
+
* name: "showWeather",
|
|
1816
|
+
* description: "Show the weather for a city",
|
|
1817
|
+
* parameters: z.object({ city: z.string() }),
|
|
1818
|
+
* handler: async ({ city }) => `Sunny in ${city}`,
|
|
1819
|
+
* });
|
|
1820
|
+
* ```
|
|
1821
|
+
*/
|
|
2122
1822
|
declare function useFrontendTool<T extends Record<string, unknown> = Record<string, unknown>>(tool: ReactFrontendTool<T>, deps?: ReadonlyArray<unknown>): void;
|
|
2123
1823
|
//#endregion
|
|
2124
1824
|
//#region src/hooks/use-frontend-tools.d.ts
|
|
@@ -2132,8 +1832,10 @@ declare function useFrontendTool<T extends Record<string, unknown> = Record<stri
|
|
|
2132
1832
|
*
|
|
2133
1833
|
* Tools are keyed by `name` plus `agentId`, the same as `useFrontendTool`. A
|
|
2134
1834
|
* tool that disappears from the array is unregistered on the next render, and
|
|
2135
|
-
* every tool is unregistered on unmount.
|
|
2136
|
-
*
|
|
1835
|
+
* every tool is unregistered on unmount. A listed tool hides a tool with the
|
|
1836
|
+
* same name and agentId (for example one from the provider's `tools`) until it
|
|
1837
|
+
* is unregistered, and then the hidden tool is active again. Renderers stay
|
|
1838
|
+
* registered after unmount so past tool calls still render in the chat history.
|
|
2137
1839
|
*
|
|
2138
1840
|
* @param tools - The tools to register. May be empty and may change length.
|
|
2139
1841
|
* @param deps - Extra dependencies that force re-registration, compared by
|
|
@@ -2923,111 +2625,92 @@ declare function useAttachments({
|
|
|
2923
2625
|
config
|
|
2924
2626
|
}: UseAttachmentsProps): UseAttachmentsReturn;
|
|
2925
2627
|
//#endregion
|
|
2926
|
-
//#region src/
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
* @deprecated This interface supports only the legacy plural-container
|
|
2931
|
-
* annotation. Configure `getLearningContainerId` on `CopilotKitIntelligence`
|
|
2932
|
-
* for new Intelligence runtimes.
|
|
2933
|
-
*/
|
|
2934
|
-
interface UseLearningContainersArgs {
|
|
2935
|
-
/** Thread to apply the learning-container selection to. */
|
|
2628
|
+
//#region src/providers/CopilotChatConfigurationProvider.d.ts
|
|
2629
|
+
interface CopilotChatConfigurationValue {
|
|
2630
|
+
labels: CopilotChatLabels$1;
|
|
2631
|
+
agentId: string;
|
|
2936
2632
|
threadId: string;
|
|
2633
|
+
isModalOpen: boolean;
|
|
2634
|
+
setModalOpen: (open: boolean) => void;
|
|
2635
|
+
/**
|
|
2636
|
+
* Whether the thread-list drawer is open. A sibling boolean to `isModalOpen`
|
|
2637
|
+
* (deliberately NOT folded into a tri-state enum): on desktop the chat modal
|
|
2638
|
+
* and the drawer coexist, so two independent booleans are required.
|
|
2639
|
+
*/
|
|
2640
|
+
drawerOpen: boolean;
|
|
2641
|
+
/**
|
|
2642
|
+
* Toggles the drawer open state. On mobile viewports (`<768px`) opening the
|
|
2643
|
+
* drawer closes the chat modal (mutual exclusion); on desktop there is no
|
|
2644
|
+
* constraint.
|
|
2645
|
+
*/
|
|
2646
|
+
setDrawerOpen: (open: boolean) => void;
|
|
2647
|
+
/**
|
|
2648
|
+
* True once a `<CopilotThreadsDrawer>` wrapper has registered itself with this chat
|
|
2649
|
+
* configuration. The header thread-list launcher renders ONLY when this is
|
|
2650
|
+
* set, so chats with no drawer stay byte-for-byte unchanged.
|
|
2651
|
+
*/
|
|
2652
|
+
drawerRegistered: boolean;
|
|
2653
|
+
/**
|
|
2654
|
+
* Called by the drawer wrapper on mount to announce its presence (and flip
|
|
2655
|
+
* `drawerRegistered`). Returns a cleanup function that de-registers the
|
|
2656
|
+
* drawer on unmount.
|
|
2657
|
+
*
|
|
2658
|
+
* @returns A cleanup callback that reverses the registration.
|
|
2659
|
+
*/
|
|
2660
|
+
registerDrawer: () => () => void;
|
|
2661
|
+
/**
|
|
2662
|
+
* Internal: registers the modal-close setter of the provider that actually
|
|
2663
|
+
* owns the rendered modal (a descendant that supplied `isModalDefaultOpen`),
|
|
2664
|
+
* so the drawer's mobile mutual-exclusion — owned by the top-most provider —
|
|
2665
|
+
* closes the modal that is genuinely on screen rather than the top-most
|
|
2666
|
+
* provider's own (possibly unrendered) modal state.
|
|
2667
|
+
*
|
|
2668
|
+
* @param closeModal - A setter the drawer may call to close the rendered modal.
|
|
2669
|
+
* @returns A cleanup callback that de-registers the closer.
|
|
2670
|
+
*/
|
|
2671
|
+
ɵregisterModalCloser: (closeModal: (open: boolean) => void) => () => void;
|
|
2672
|
+
hasExplicitThreadId: boolean;
|
|
2673
|
+
/**
|
|
2674
|
+
* Imperatively sets the active thread for this chat configuration.
|
|
2675
|
+
*
|
|
2676
|
+
* Use this to drive the rendered thread without a host callback — e.g. a
|
|
2677
|
+
* `<CopilotThreadsDrawer>` selecting a thread row sets it explicitly so the chat
|
|
2678
|
+
* connects to that backend thread.
|
|
2679
|
+
*
|
|
2680
|
+
* Guarded like the top-level `<CopilotKit>` provider's `setThreadId`: when
|
|
2681
|
+
* the consumer controls the threadId via the `threadId` prop on this
|
|
2682
|
+
* provider, this is a no-op (a warning is logged) so a prop-controlled
|
|
2683
|
+
* threadId is never silently overridden.
|
|
2684
|
+
*
|
|
2685
|
+
* @param threadId - The thread id to make active.
|
|
2686
|
+
* @param options.explicit - Whether the thread is a caller choice. Defaults
|
|
2687
|
+
* to `true` (a picked thread). Pass `false` to set a non-explicit thread
|
|
2688
|
+
* so the welcome screen shows (see {@link startNewThread}).
|
|
2689
|
+
*/
|
|
2690
|
+
setActiveThreadId: (threadId: string, options?: {
|
|
2691
|
+
explicit?: boolean;
|
|
2692
|
+
}) => void;
|
|
2937
2693
|
/**
|
|
2938
|
-
*
|
|
2939
|
-
*
|
|
2694
|
+
* Resets the active thread to a fresh, non-explicit client-side thread: a
|
|
2695
|
+
* newly minted UUID with `hasExplicitThreadId=false`, so the welcome screen
|
|
2696
|
+
* shows. Pairs with the core `startNewThread()` to clear the conversation
|
|
2697
|
+
* with no host wiring.
|
|
2698
|
+
*
|
|
2699
|
+
* Guarded identically to {@link setActiveThreadId}: a no-op when the
|
|
2700
|
+
* threadId is prop-controlled.
|
|
2940
2701
|
*/
|
|
2941
|
-
|
|
2702
|
+
startNewThread: () => void;
|
|
2942
2703
|
}
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
* - On any subsequent content change (including a switch back to
|
|
2954
|
-
* `["project"]`) → emits (a deliberate switch is always recorded).
|
|
2955
|
-
* - On unmount or threadId change → emits a reset to `["project"]`
|
|
2956
|
-
* so the backend is left in a clean state for the next consumer.
|
|
2957
|
-
* Changing `learningContainers` within the same thread does NOT reset the
|
|
2958
|
-
* thread; only the new value is emitted.
|
|
2959
|
-
*
|
|
2960
|
-
* Content-equality is evaluated via `JSON.stringify` so a fresh array literal
|
|
2961
|
-
* with the same items does NOT trigger a redundant emit.
|
|
2962
|
-
*
|
|
2963
|
-
* If `runtimeUrl` is absent, all emits are silently skipped.
|
|
2964
|
-
*
|
|
2965
|
-
* @example
|
|
2966
|
-
* ```tsx
|
|
2967
|
-
* function ThreadPane({ threadId, userScope }: Props) {
|
|
2968
|
-
* useLearningContainers({
|
|
2969
|
-
* threadId,
|
|
2970
|
-
* learningContainers: [userScope],
|
|
2971
|
-
* });
|
|
2972
|
-
* // ...
|
|
2973
|
-
* }
|
|
2974
|
-
* ```
|
|
2975
|
-
*
|
|
2976
|
-
* @deprecated This hook supports only the legacy plural-container annotation.
|
|
2977
|
-
* Configure `getLearningContainerId` on `CopilotKitIntelligence` for new
|
|
2978
|
-
* Intelligence runtimes.
|
|
2979
|
-
*/
|
|
2980
|
-
declare function useLearningContainers({
|
|
2981
|
-
threadId,
|
|
2982
|
-
learningContainers
|
|
2983
|
-
}: UseLearningContainersArgs): void;
|
|
2984
|
-
//#endregion
|
|
2985
|
-
//#region src/hooks/use-learning-containers-in-current-thread.d.ts
|
|
2986
|
-
/**
|
|
2987
|
-
* Arguments for {@link useLearningContainersInCurrentThread}.
|
|
2988
|
-
* Same as {@link UseLearningContainersArgs} minus `threadId`, which is
|
|
2989
|
-
* sourced from the surrounding `<CopilotChatConfigurationProvider>` at
|
|
2990
|
-
* render time.
|
|
2991
|
-
*
|
|
2992
|
-
* @deprecated This type supports only the legacy plural-container annotation.
|
|
2993
|
-
* Configure `getLearningContainerId` on `CopilotKitIntelligence` for new
|
|
2994
|
-
* Intelligence runtimes.
|
|
2995
|
-
*/
|
|
2996
|
-
type UseLearningContainersInCurrentThreadArgs = Omit<UseLearningContainersArgs, "threadId">;
|
|
2997
|
-
/**
|
|
2998
|
-
* Legacy compatibility hook that keeps the **current chat thread's** plural
|
|
2999
|
-
* learning-container annotation in sync. The `threadId` is sourced from the surrounding
|
|
3000
|
-
* `<CopilotChatConfigurationProvider>` (the same provider `<CopilotChat>`,
|
|
3001
|
-
* `<CopilotSidebar>`, and friends set up), so callers in a chat-aware
|
|
3002
|
-
* subtree don't need to thread an id through manually.
|
|
3003
|
-
*
|
|
3004
|
-
* **Throws on render** when there is no chat-config provider in scope or
|
|
3005
|
-
* when the provider does not yet have an active `threadId`. Mount the hook
|
|
3006
|
-
* inside a subtree that is guaranteed to have a thread context.
|
|
3007
|
-
*
|
|
3008
|
-
* If you need to manage an explicit thread, use {@link useLearningContainers}
|
|
3009
|
-
* directly — two hooks, two crisp contracts, no mode confusion.
|
|
3010
|
-
*
|
|
3011
|
-
* @throws When no `CopilotChatConfigurationProvider` is in scope or when the
|
|
3012
|
-
* active `threadId` is absent/empty.
|
|
3013
|
-
*
|
|
3014
|
-
* @example
|
|
3015
|
-
* ```tsx
|
|
3016
|
-
* function ThreadPanel({ scope }: Props) {
|
|
3017
|
-
* useLearningContainersInCurrentThread({
|
|
3018
|
-
* learningContainers: [scope],
|
|
3019
|
-
* });
|
|
3020
|
-
* // ...
|
|
3021
|
-
* }
|
|
3022
|
-
* ```
|
|
3023
|
-
*
|
|
3024
|
-
* @deprecated This hook supports only the legacy plural-container annotation.
|
|
3025
|
-
* Configure `getLearningContainerId` on `CopilotKitIntelligence` for new
|
|
3026
|
-
* Intelligence runtimes.
|
|
3027
|
-
*/
|
|
3028
|
-
declare function useLearningContainersInCurrentThread({
|
|
3029
|
-
learningContainers
|
|
3030
|
-
}: UseLearningContainersInCurrentThreadArgs): void;
|
|
2704
|
+
interface CopilotChatConfigurationProviderProps {
|
|
2705
|
+
children: ReactNode;
|
|
2706
|
+
labels?: Partial<CopilotChatLabels$1>;
|
|
2707
|
+
agentId?: string;
|
|
2708
|
+
threadId?: string;
|
|
2709
|
+
hasExplicitThreadId?: boolean;
|
|
2710
|
+
isModalDefaultOpen?: boolean;
|
|
2711
|
+
}
|
|
2712
|
+
declare const CopilotChatConfigurationProvider: React$1.FC<CopilotChatConfigurationProviderProps>;
|
|
2713
|
+
declare const useCopilotChatConfiguration: () => CopilotChatConfigurationValue | null;
|
|
3031
2714
|
//#endregion
|
|
3032
2715
|
//#region src/lib/react-core.d.ts
|
|
3033
2716
|
interface CopilotKitCoreReactConfig extends CopilotKitCoreConfig$1 {
|
|
@@ -3065,20 +2748,6 @@ declare class CopilotKitCoreReact extends CopilotKitCore$1 {
|
|
|
3065
2748
|
get interruptElement(): React$1.ReactElement | null;
|
|
3066
2749
|
setInterruptElement(element: React$1.ReactElement | null): void;
|
|
3067
2750
|
subscribe(subscriber: CopilotKitCoreReactSubscriber): CopilotKitCoreSubscription$1;
|
|
3068
|
-
/**
|
|
3069
|
-
* Wait for pending React state updates before the follow-up agent run.
|
|
3070
|
-
*
|
|
3071
|
-
* When a frontend tool handler calls setState(), React 18 batches the update
|
|
3072
|
-
* and schedules a commit via its internal scheduler (MessageChannel). The
|
|
3073
|
-
* useAgentContext hook registers context via useLayoutEffect, which runs
|
|
3074
|
-
* synchronously after React commits that batch.
|
|
3075
|
-
*
|
|
3076
|
-
* Awaiting a zero-delay timeout yields to the macrotask queue. React's
|
|
3077
|
-
* MessageChannel task runs first, committing the pending state and running
|
|
3078
|
-
* useLayoutEffect (which updates the context store). The follow-up runAgent
|
|
3079
|
-
* call then reads fresh context.
|
|
3080
|
-
*/
|
|
3081
|
-
waitForPendingFrameworkUpdates(): Promise<void>;
|
|
3082
2751
|
}
|
|
3083
2752
|
//#endregion
|
|
3084
2753
|
//#region src/context.d.ts
|
|
@@ -3139,6 +2808,17 @@ interface CopilotKitProviderProps {
|
|
|
3139
2808
|
* Credentials mode for fetch requests (e.g., "include" for HTTP-only cookies in cross-origin requests).
|
|
3140
2809
|
*/
|
|
3141
2810
|
credentials?: RequestCredentials;
|
|
2811
|
+
/**
|
|
2812
|
+
* CSP nonce for the `<style>` tags CopilotKit adds. Set it when your
|
|
2813
|
+
* Content-Security-Policy limits `style-src` to a nonce.
|
|
2814
|
+
*/
|
|
2815
|
+
nonce?: string;
|
|
2816
|
+
/**
|
|
2817
|
+
* Set to `false` when you import `@copilotkit/core/styles.css` yourself, so
|
|
2818
|
+
* browsers cache the CSS as a file. CopilotKit then adds no `<style>` tag.
|
|
2819
|
+
* @default true
|
|
2820
|
+
*/
|
|
2821
|
+
injectStyles?: boolean;
|
|
3142
2822
|
/**
|
|
3143
2823
|
* Rewrites the message list sent to runtime agents on every run.
|
|
3144
2824
|
*
|
|
@@ -3233,11 +2913,6 @@ interface CopilotKitProviderProps {
|
|
|
3233
2913
|
*/
|
|
3234
2914
|
designSkill?: string;
|
|
3235
2915
|
};
|
|
3236
|
-
/**
|
|
3237
|
-
* @deprecated This prop no longer controls the Inspector. Use
|
|
3238
|
-
* `enableInspector` instead.
|
|
3239
|
-
*/
|
|
3240
|
-
showDevConsole?: boolean | "auto";
|
|
3241
2916
|
/**
|
|
3242
2917
|
* Disable the CopilotKit Inspector in development.
|
|
3243
2918
|
* The Inspector is enabled by default in development browser builds on
|
|
@@ -3446,5 +3121,5 @@ type A2UIMessageRendererOptions = {
|
|
|
3446
3121
|
};
|
|
3447
3122
|
declare function createA2UIMessageRenderer(options: A2UIMessageRendererOptions): ReactActivityMessageRenderer<any>;
|
|
3448
3123
|
//#endregion
|
|
3449
|
-
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, 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 };
|
|
3124
|
+
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, DEFAULT_OPEN_GENERATIVE_UI_DESIGN_SKILL, type DataSource, DataSourceSchema, DebugLogger, type DebugLoggerInput, DefaultMarkdownRendererProps, type DeveloperMessage, DeveloperMessageSchema, type DispatchingEffect, type DispatchingEffectOptions, type DocumentInputContent, DocumentInputContentSchema, type DocumentInputPart, DocumentInputPartSchema, type DocumentPart, DocumentPartSchema, type DynamicSuggestionsConfig, type Effect, type EmptyActionConfig, type Event, type EventPayloadOf, EventSchema, EventSchemas, EventType, EventTypeSchema, type ExecutionCapabilities, ExecutionCapabilitiesSchema, type FileSource, FileSourceSchema, FilterToolCallsMiddleware, type FrontendTool, type FrontendToolHandlerContext, type FrontendToolReconnectBehavior, type FunctionCall, FunctionCallSchema, FunctionMiddleware, GENERATE_SANDBOXED_UI_TOOL_NAME, type GenerateSandboxedUiArgs, GenerateSandboxedUiArgsSchema, HttpAgent, type HttpAgentConfig, type HttpAgentFetchFn, type HumanInTheLoopCapabilities, HumanInTheLoopCapabilitiesSchema, type HumanInTheLoopRenderProps, INSPECTOR_THREAD_BRIDGE_PLUGIN_ID, INTELLIGENCE_TURN_HEAD, INTERRUPT_EVENT_NAME, type IdentityCapabilities, IdentityCapabilitiesSchema, type ImageInputContent, ImageInputContentSchema, type ImageInputPart, ImageInputPartSchema, type ImagePart, ImagePartSchema, type InputContent, type InputContentDataSource, InputContentDataSourceSchema, type InputContentPart, InputContentSchema, type InputContentSource, InputContentSourceSchema, type InputContentUrlSource, InputContentUrlSourceSchema, type InspectorActiveThreadPayload, type InspectorAnchor, type InspectorMetadataV1, type InspectorStopViewingPayload, type InspectorViewThreadPayload, type InspectorViewThreadResultPayload, IntelligenceAgent, type IntelligenceAgentConfig, IntelligenceIndicator, type IntelligenceIndicatorProps, type IntelligenceIndicatorStatus, IntelligenceIndicatorView, type IntelligenceIndicatorViewProps, type IntelligenceRuntimeInfo, type Interrupt, type InterruptCancelFn, type InterruptEvent, type InterruptHandlerProps, type InterruptRenderProps, type InterruptResolveFn, InterruptSchema, type JsonPatch, type JsonPatchOperation, JsonPatchOperationSchema, JsonPatchSchema, type JsonPointer, JsonPointerSchema, type JsonSerializable, type JsonValue, type LearnFromUserActionInCurrentThreadInput, type LearnFromUserActionInput, type LearnFromUserActionResult, type LearningConfig, type LegacyLearningConfig, type MCPAppsActivityContent, MCPAppsActivityContentSchema, MCPAppsActivityRenderer, MCPAppsActivityType, MEMORY_ERROR_REGISTRY, MarkdownRenderer, MarkdownRendererProps, MarkdownRendererProvider, type MarkdownSegment, type Memory, type MemoryChanges, MemoryError, type MemoryErrorCategory, type MemoryErrorCode, type MemoryErrorRegistryEntry, type MemoryKind, type MemoryRealtimeStatus, type MemoryScope, type Message, type MessageGroup, type MessageGroupWrapperProps, type MessageRow, MessageSchema, type MessagesSnapshotEvent, type MessagesSnapshotEventProps, MessagesSnapshotEventSchema, type Metadata, MetadataSchema, Middleware, type MiddlewareFunction, type MoveOperation, MoveOperationSchema, type MultiAgentCapabilities, MultiAgentCapabilitiesSchema, type MultimodalCapabilities, MultimodalCapabilitiesSchema, type MultimodalInputCapabilities, MultimodalInputCapabilitiesSchema, type MultimodalOutputCapabilities, MultimodalOutputCapabilitiesSchema, type NewMemory, type NonDispatchingEffect, type NonDispatchingEffectOptions, OPEN_GENERATIVE_UI_ACTIVITY_TYPE, OpenGenerativeUIActivityRenderer, OpenGenerativeUIActivityType, type OpenGenerativeUIContent, OpenGenerativeUIContentSchema, OpenGenerativeUIToolRenderer, type OpenThreadRegistration, OptionalMetadataSchema, type OutputCapabilities, OutputCapabilitiesSchema, PROTOCOL_VERSION, type PartSource, PartSourceSchema, type PropsActionConfig, ProxiedCopilotRuntimeAgent, type ProxiedCopilotRuntimeAgentConfig, type RawEvent, type RawEventProps, RawEventSchema, ReactActivityMessageRenderer, ReactCustomMessageRenderer, ReactCustomMessageRendererPosition, ReactFrontendTool, ReactHumanInTheLoop, ReactToolCallRenderer, type ReasoningCapabilities, ReasoningCapabilitiesSchema, type ReasoningEncryptedValueEvent, type ReasoningEncryptedValueEventProps, ReasoningEncryptedValueEventSchema, type ReasoningEncryptedValueSubtype, ReasoningEncryptedValueSubtypeSchema, type ReasoningEndEvent, type ReasoningEndEventProps, ReasoningEndEventSchema, type ReasoningMessage, type ReasoningMessageChunkEvent, type ReasoningMessageChunkEventProps, ReasoningMessageChunkEventSchema, type ReasoningMessageContentEvent, type ReasoningMessageContentEventProps, ReasoningMessageContentEventSchema, type ReasoningMessageEndEvent, type ReasoningMessageEndEventProps, ReasoningMessageEndEventSchema, ReasoningMessageSchema, type ReasoningMessageStartEvent, type ReasoningMessageStartEventProps, ReasoningMessageStartEventSchema, type ReasoningStartEvent, type ReasoningStartEventProps, ReasoningStartEventSchema, type Reducer, type RemoveOperation, RemoveOperationSchema, type ReplaceOperation, ReplaceOperationSchema, type ResolvedAgentDebugConfig, type ResumeEntry, ResumeEntrySchema, type ResumeStatus, type Role, RoleSchema, type RunAgentInput, RunAgentInputSchema, type RunAgentParameters, type RunAgentResult, type RunCompletionAware, type RunErrorEvent, type RunErrorEventProps, RunErrorEventSchema, type RunFinishedCancelledOutcome, RunFinishedCancelledOutcomeSchema, type RunFinishedEvent, type RunFinishedEventProps, RunFinishedEventSchema, type RunFinishedInterruptOutcome, RunFinishedInterruptOutcomeSchema, type RunFinishedOutcome, RunFinishedOutcomeSchema, type RunFinishedSuccessOutcome, RunFinishedSuccessOutcomeSchema, RunHandler, type RunStartedEvent, type RunStartedEventProps, RunStartedEventSchema, type RuntimeLicenseStatus, type RuntimeMode, SandboxFunction, SandboxFunctionsContext, type ScopedContext, type ScopedProperties, type Selector, type StartResult, type State, type StateCapabilities, StateCapabilitiesSchema, type StateDeltaEvent, type StateDeltaEventProps, StateDeltaEventSchema, StateManager, StateSchema, type StateSnapshotEvent, type StateSnapshotEventProps, StateSnapshotEventSchema, type StaticSuggestionsConfig, type StepFinishedEvent, type StepFinishedEventProps, StepFinishedEventSchema, type StepStartedEvent, type StepStartedEventProps, StepStartedEventSchema, type Store, type StoreLifecycleAction, StreamingMarkdownDefaultRenderer, type SubagentErrorEvent, type SubagentErrorEventProps, SubagentErrorEventSchema, type SubagentFinishedEvent, type SubagentFinishedEventProps, SubagentFinishedEventSchema, type SubagentFinishedOutcome, SubagentFinishedOutcomeSchema, type SubagentFinishedSuccessOutcome, SubagentFinishedSuccessOutcomeSchema, type SubagentFinishedSuspendedOutcome, SubagentFinishedSuspendedOutcomeSchema, type SubagentInfo, SubagentInfoSchema, type SubagentRunId, SubagentRunIdSchema, type SubagentStartedEvent, type SubagentStartedEventProps, SubagentStartedEventSchema, type SubscribeToAgentOptions, type SubscribeToAgentSubscriber, type Suggestion, type SuggestionAvailability, SuggestionEngine, type SuggestionsConfig, type SurfaceSegment, type SystemMessage, SystemMessageSchema, type TestOperation, TestOperationSchema, type TextInputContent, TextInputContentSchema, type TextMessageChunkEvent, type TextMessageChunkEventProps, TextMessageChunkEventSchema, type TextMessageContentEvent, type TextMessageContentEventProps, TextMessageContentEventSchema, type TextMessageEndEvent, type TextMessageEndEventProps, TextMessageEndEventSchema, type TextMessageRole, TextMessageRoleSchema, type TextMessageStartEvent, type TextMessageStartEventProps, TextMessageStartEventSchema, type TextPart, TextPartSchema, type Thread, type ThreadEndpointRuntimeInfo, type ThreadRunActivityNotification, type TokenUsage, TokenUsageSchema, type Tool, type ToolCall, type ToolCallArgsEvent, type ToolCallArgsEventProps, ToolCallArgsEventSchema, type ToolCallChunkEvent, type ToolCallChunkEventProps, ToolCallChunkEventSchema, type ToolCallEndEvent, type ToolCallEndEventProps, ToolCallEndEventSchema, type ToolCallEntry, type ToolCallRenderProps, type ToolCallRendererDef, type ToolCallResultEvent, type ToolCallResultEventProps, ToolCallResultEventSchema, ToolCallSchema, type ToolCallStartEvent, type ToolCallStartEventProps, ToolCallStartEventSchema, ToolCallStatus, type ToolMessage, ToolMessageSchema, ToolSchema, type ToolsCapabilities, ToolsCapabilitiesSchema, type ToolsMenuItem, type TrajectoryStartOptions, TranscriptionError, TranscriptionErrorCode, type TranscriptionErrorInfo, type TranscriptionResult, type TransportCapabilities, TransportCapabilitiesSchema, type UnrecognizedEvent, type UrlSource, UrlSourceSchema, UseAgentUpdate, type UseAttachmentsProps, type UseAttachmentsReturn, type UseInterruptConfig, type UseLearnFromUserActionInCurrentThreadRecorder, type UseLearnFromUserActionRecorder, type UseMemoriesResult, type UseThreadsInput, type UseThreadsResult, type UserMessage, UserMessageSchema, type VideoInputContent, VideoInputContentSchema, type VideoInputPart, VideoInputPartSchema, type VideoPart, VideoPartSchema, type WebMCPModelContext, WebMCPRegistry, type WebMCPToolAnnotations, type WebMCPToolConfig, WildcardToolCallRender, a2uiDefaultTheme, aggregateTokenUsage, authoritativeActivityTypes, buildResumeArray, classifySurfaceCards, compactEvents, completePartialMarkdown, contentHasMedia, contentToText, convertToLegacyEvents, createA2UIMessageRenderer, createActionGroup, createDebugLogger, createEffect, createInspectorThreadRequestId, createReducer, createSelector, createStore, defaultApplyEvents, defineToolCallRenderer, emitInspectorActiveThread, emitInspectorStopViewing, emitInspectorViewThread, emitInspectorViewThreadResult, empty, enforceEvents, enforceOutgoingInput, ensureObjectArgs, extractCompleteArrayItems, extractFenceOperations, extractStringField, flattenInformationalCards, getIntelligenceTurnAnchors, getMarkdownOperationSurfaceId, getRunOutcome, getWebMCPModelContext, isAbortError, isInspectorThreadBridgeEnabled, isInterruptExpired, isRecognizedEvent, isRunCompletionAware, mergeMetadata, messageGroup, messageRow, ofType, omitOptionalNulls, on, onInspectorActiveThread, onInspectorStopViewing, onInspectorViewThread, onInspectorViewThreadResult, parseProtoStream, parseSSEStream, parseToolArguments, prepareSurfaceOperations, props, randomUUID, resolveAgentDebugConfig, resolveDebugLogger, runHttpRequest, segmentSurfaceProse, select, splitA2UIMarkdown, structuredClone_, tokenUsageFromAiSdkUsage, tokenUsageFromLangChainMetadata, transformChunks, transformHttpEventStream, useAgent, useAgentContext, useAttachments, useCapabilities, useComponent, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useDefaultRenderTool, useFrontendTool, useFrontendTools, useHumanInTheLoop, useInterrupt, useLearnFromUserAction, useLearnFromUserActionInCurrentThread, useLicenseContext, useMarkdownRenderer, useMemories, useRenderActivityMessage, useRenderCustomMessages, useRenderTool, useRenderToolCall, useSandboxFunctions, useSuggestions, useThreads, verifyEvents, withAuthoritativeActivityTypes, type ɵActivityRendererQuery, ɵ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, ɵOpenGenerativeUIController, type ɵOpenGenerativeUIControllerOptions, type ɵOpenGenerativeUIPhase, type ɵOpenGenerativeUIState, type ɵPendingInterrupt, type ɵPhoenixChannelLike, type ɵPhoenixChannelOptions, type ɵPhoenixChannelSession, type ɵPhoenixJoinOutcome, type ɵPhoenixPushLike, type ɵPhoenixSocketLike, type ɵPhoenixSocketOptions, type ɵPhoenixSocketSession, type ɵPhoenixSocketSignal, ɵRUNTIME_PROBE_TIMEOUT_MS, type ɵReasoningDuration, type ɵSandboxFunctionHandle, type ɵSandboxLocalApi, ɵTHREAD_REQUEST_TIMEOUT_MS, type ɵThread, type ɵThreadEnvironment, type ɵThreadMetadataEvent, type ɵThreadRuntimeContext, type ɵThreadSelectors, type ɵThreadStore, type ɵToolCallDisplayContextValue, type ɵToolCallLayout, type ɵToolCallRendererNames, type ɵToolCallRendererNamesOptions, type ɵToolCallRowStatus, type ɵToolCallSegment, type ɵTranscriptionCore, type ɵTranscriptionErrorLabelKey, type ɵTurnOpenState, type ɵTurnWork, type ɵWebsandboxConstructor, type ɵWebsandboxInstance, type ɵWebsandboxLoader, type ɵWorkTime, ɵclearAgentInterruptState, ɵcomposerButtonState, ɵcopilotIconSvgAttributes, ɵcopilotIcons, ɵcountFailedToolCalls, ɵcreateMemoryStore, ɵcreateThreadSelectors, ɵcreateThreadStore, ɵdeduplicateMessages, ɵextractCompleteStyles, ɵformatCountLabel, ɵformatLabel, ɵformatReasoningDuration, ɵformatToolNames, ɵformatWorkDuration, ɵgetAgentInterruptState, ɵgetArgumentPreview, ɵgetLatestTurnKey, ɵgetToolCallLayouts, ɵgetToolCallPreview, ɵgetToolCallRendererNames, ɵgetToolCallRowStatus, ɵgetToolResults, ɵgetTurnWork, ɵgetWorkOpenState, ɵisCopilotKitFeature, ɵisHttpAgent, ɵisRetryableMemoryStatus, ɵisTurnWorkOpen, ɵisTurnWorking, ɵjoinPhoenixChannel$, ɵloadWebsandbox, ɵmapMemoryMetadataEvent, ɵmemoryAdapterEvents, ɵmemoryDomainEvents, ɵmemoryReducer, ɵmemoryRestEvents, ɵmessagesFingerprint, ɵobservePhoenixEvent$, ɵobservePhoenixJoinOutcome$, ɵobservePhoenixSocketHealth$, ɵobservePhoenixSocketSignals$, ɵphoenixChannel$, ɵphoenixSocket$, ɵpluralize, ɵprocessPartialHtml, ɵ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 };
|
|
3450
3125
|
//# sourceMappingURL=index.d.cts.map
|