@copilotkit/react-core 2.0.0-rc.42 → 2.0.0-rc.44
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-BL8ct_3U.d.mts → MarkdownRendererContext-QFCldfW_.d.cts} +1 -1
- package/dist/{MarkdownRendererContext-BL8ct_3U.d.mts.map → MarkdownRendererContext-QFCldfW_.d.cts.map} +1 -1
- package/dist/{MarkdownRendererContext-C2J_lgqF.d.cts → MarkdownRendererContext-aK63ZFd-.d.mts} +1 -1
- package/dist/{MarkdownRendererContext-C2J_lgqF.d.cts.map → MarkdownRendererContext-aK63ZFd-.d.mts.map} +1 -1
- package/dist/MarkdownSurfaces-Do948N1P.cjs +141 -0
- package/dist/MarkdownSurfaces-Do948N1P.cjs.map +1 -0
- package/dist/MarkdownSurfaces-rtE9wRUP.mjs +135 -0
- package/dist/MarkdownSurfaces-rtE9wRUP.mjs.map +1 -0
- package/dist/{MarkdownSurfaces-D2Ck-cbb.cjs → ProviderMarkdown-D0eI0aPo.cjs} +26 -136
- package/dist/ProviderMarkdown-D0eI0aPo.cjs.map +1 -0
- package/dist/{MarkdownSurfaces-Byz821bg.mjs → ProviderMarkdown-epL7F3Vt.mjs} +22 -132
- package/dist/ProviderMarkdown-epL7F3Vt.mjs.map +1 -0
- package/dist/accessibility-BLK-gE0R.mjs +129 -0
- package/dist/accessibility-BLK-gE0R.mjs.map +1 -0
- package/dist/accessibility-GnodqxkH.cjs +228 -0
- package/dist/accessibility-GnodqxkH.cjs.map +1 -0
- package/dist/{chat-Bf0vVdo7.mjs → chat-B1zczXUD.mjs} +21 -145
- package/dist/chat-B1zczXUD.mjs.map +1 -0
- package/dist/chat-BZ_bvAkg.d.mts +38 -0
- package/dist/chat-BZ_bvAkg.d.mts.map +1 -0
- package/dist/{chat-D3fxo6Ah.cjs → chat-CkFZMo5E.cjs} +29 -234
- package/dist/chat-CkFZMo5E.cjs.map +1 -0
- package/dist/chat-CpZVyF_t.d.cts +38 -0
- package/dist/chat-CpZVyF_t.d.cts.map +1 -0
- package/dist/context.cjs +2 -2
- package/dist/context.cjs.map +1 -1
- package/dist/context.d.cts +2 -2
- package/dist/context.d.mts +2 -2
- package/dist/context.mjs +2 -2
- package/dist/context.mjs.map +1 -1
- package/dist/generative-ui/map.cjs +26 -0
- package/dist/generative-ui/map.cjs.map +1 -0
- package/dist/generative-ui/map.d.cts +23 -0
- package/dist/generative-ui/map.d.cts.map +1 -0
- package/dist/generative-ui/map.d.mts +23 -0
- package/dist/generative-ui/map.d.mts.map +1 -0
- package/dist/generative-ui/map.mjs +24 -0
- package/dist/generative-ui/map.mjs.map +1 -0
- package/dist/generative-ui/native.cjs +9 -8
- package/dist/generative-ui/native.cjs.map +1 -1
- package/dist/generative-ui/native.d.cts +3 -2
- package/dist/generative-ui/native.d.cts.map +1 -1
- package/dist/generative-ui/native.d.mts +3 -2
- package/dist/generative-ui/native.d.mts.map +1 -1
- package/dist/generative-ui/native.mjs +4 -3
- package/dist/generative-ui/native.mjs.map +1 -1
- package/dist/generative-ui.cjs +11 -5767
- package/dist/generative-ui.cjs.map +1 -1
- package/dist/generative-ui.d.cts +5 -4
- package/dist/generative-ui.d.cts.map +1 -1
- package/dist/generative-ui.d.mts +6 -5
- package/dist/generative-ui.d.mts.map +1 -1
- package/dist/generative-ui.mjs +8 -5764
- package/dist/generative-ui.mjs.map +1 -1
- package/dist/{hooks-BRYonCVu.d.mts → hooks-D2H3iL0N.d.mts} +3 -3
- package/dist/{hooks-BRYonCVu.d.mts.map → hooks-D2H3iL0N.d.mts.map} +1 -1
- package/dist/{hooks-2Ur8NQhj.d.cts → hooks-Dy8HeEdr.d.cts} +2 -2
- package/dist/{hooks-2Ur8NQhj.d.cts.map → hooks-Dy8HeEdr.d.cts.map} +1 -1
- package/dist/index.cjs +183 -700
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -103
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +11 -103
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +66 -425
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +6157 -799
- package/dist/index.umd.js.map +1 -1
- package/dist/{refs-BIUfn1wb.cjs → refs-B5Dn59Pn.cjs} +2 -2
- package/dist/{refs-BIUfn1wb.cjs.map → refs-B5Dn59Pn.cjs.map} +1 -1
- package/dist/{refs-CMrRm3ta.mjs → refs-BW15wX_V.mjs} +1 -1
- package/dist/{refs-CMrRm3ta.mjs.map → refs-BW15wX_V.mjs.map} +1 -1
- package/dist/{chat-DgP2N7bD.d.mts → runtime-context-B7f4M85q.d.mts} +21 -39
- package/dist/runtime-context-B7f4M85q.d.mts.map +1 -0
- package/dist/{chat-DtHs4alO.d.cts → runtime-context-CIkZS0ap.d.cts} +21 -39
- package/dist/runtime-context-CIkZS0ap.d.cts.map +1 -0
- package/dist/standard-CSBR4FhM.mjs +5800 -0
- package/dist/standard-CSBR4FhM.mjs.map +1 -0
- package/dist/standard-DBjcBGyd.cjs +5796 -0
- package/dist/standard-DBjcBGyd.cjs.map +1 -0
- package/dist/{use-generative-ui-root-C12htqbK.cjs → use-generative-ui-root-CIp0ytE6.cjs} +3 -3
- package/dist/{use-generative-ui-root-C12htqbK.cjs.map → use-generative-ui-root-CIp0ytE6.cjs.map} +1 -1
- package/dist/{use-generative-ui-root-CVgsDy1f.mjs → use-generative-ui-root-oBqPa6uy.mjs} +3 -2
- package/dist/{use-generative-ui-root-CVgsDy1f.mjs.map → use-generative-ui-root-oBqPa6uy.mjs.map} +1 -1
- package/package.json +14 -10
- package/dist/MarkdownSurfaces-Byz821bg.mjs.map +0 -1
- package/dist/MarkdownSurfaces-D2Ck-cbb.cjs.map +0 -1
- package/dist/chat-Bf0vVdo7.mjs.map +0 -1
- package/dist/chat-D3fxo6Ah.cjs.map +0 -1
- package/dist/chat-DgP2N7bD.d.mts.map +0 -1
- package/dist/chat-DtHs4alO.d.cts.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { A2UI_FENCE_LANGUAGE, AgentRegistry, AgentThreadLockedError, ContextStore, CopilotChatDefaultLabels, CopilotChatDefaultLabels as CopilotChatDefaultLabels$1, CopilotKitCore, CopilotKitCore as CopilotKitCore$1, CopilotKitCoreErrorCode, CopilotKitCoreRuntimeConnectionStatus, CopilotKitCoreRuntimeConnectionStatus as CopilotKitCoreRuntimeConnectionStatus$1, CopilotKitHeaderResolutionError, DEFAULT_OPEN_GENERATIVE_UI_DESIGN_SKILL, GENERATE_SANDBOXED_UI_TOOL_NAME, INSPECTOR_THREAD_BRIDGE_PLUGIN_ID, INTERRUPT_EVENT_NAME, IntelligenceAgent, MEMORY_ERROR_REGISTRY, MemoryError, OPEN_GENERATIVE_UI_ACTIVITY_TYPE, OPEN_GENERATIVE_UI_ACTIVITY_TYPE as OPEN_GENERATIVE_UI_ACTIVITY_TYPE$1, ProxiedCopilotRuntimeAgent, RunHandler, StateManager, SuggestionEngine, ToolCallStatus, ToolCallStatus as ToolCallStatus$1, TranscriptionError, TranscriptionErrorCode, WebMCPRegistry, 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, ɵA2UIActivityController, ɵA2UIActivityController as ɵA2UIActivityController$1, ɵA2UI_DEFAULT_SURFACE_ID, ɵA2UI_LIFECYCLE_TEXT, ɵA2UI_LIFECYCLE_TEXT as ɵA2UI_LIFECYCLE_TEXT$1, ɵA2UI_OPERATIONS_KEY, ɵA2UI_PAINT_FALLBACK_MS, ɵA2UI_RECOVERY_DEFAULTS, ɵA2UI_ROOT_COMPONENT_ID, ɵA2UI_SKELETON_ROWS, ɵA2UI_SKELETON_ROWS as ɵA2UI_SKELETON_ROWS$1, ɵA2UI_SURFACE_ACTIVITY_TYPE, ɵA2UI_SURFACE_ACTIVITY_TYPE as ɵA2UI_SURFACE_ACTIVITY_TYPE$1, ɵA2UI_SURFACE_CONTENT_SCHEMA, ɵA2UI_SURFACE_CONTENT_SCHEMA as ɵA2UI_SURFACE_CONTENT_SCHEMA$1, ɵALL_AGENT_UPDATES, ɵAgentResolver, ɵAttachmentQueue, ɵAttachmentQueue as ɵAttachmentQueue$1, ɵAudioRecorder, ɵAudioRecorder as ɵAudioRecorder$1, ɵAudioRecorderError, ɵAudioRecorderError as AudioRecorderError, ɵCOMPOSER_DEFAULT_MAX_ROWS, ɵCOPILOTKIT_FEATURES, ɵCOPILOT_CLOUD_PUBLIC_API_KEY_HEADER, ɵCOPILOT_CLOUD_RUNTIME_URL, ɵCOPY_FEEDBACK_RESET_MS, ɵChatConfigurationStore, ɵChatConnection, ɵChatConnection as ɵChatConnection$1, ɵChatSubmitter, ɵComposerAutosize, ɵComposerController, ɵComposerController as ɵComposerController$1, ɵCopyFeedback, ɵCopyFeedback as ɵCopyFeedback$1, ɵDockedSidebar, ɵDockedSidebarRegistry, ɵExitPresence, ɵFEEDBACK_COMMENT_CLOSE_DELAY_MS, ɵFeedbackCommentController, ɵFeedbackCommentController as ɵFeedbackCommentController$1, ɵFreshThreadId, ɵFreshThreadId as ɵFreshThreadId$1, ɵGENERATE_SANDBOXED_UI_ARGS_SCHEMA, ɵGENERATE_SANDBOXED_UI_ARGS_SCHEMA as ɵGENERATE_SANDBOXED_UI_ARGS_SCHEMA$1, ɵHITL_ABORTED_MESSAGE, ɵHOVER_MENU_CLOSE_DELAY_MS, ɵHoverMenuController, ɵHoverMenuController as ɵHoverMenuController$1, ɵHumanInTheLoopRegistry, ɵINLINE_FEATURE_WARNING_STYLE, ɵINLINE_FEATURE_WARNING_STYLE as ɵINLINE_FEATURE_WARNING_STYLE$1, ɵInspectorThreadOverride, ɵInspectorThreadOverride as ɵInspectorThreadOverride$1, ɵInterruptController, ɵInterruptController as ɵInterruptController$1, ɵInterruptExpiredError, ɵInterruptState, ɵKEYBOARD_OPEN_THRESHOLD_PX, ɵLICENSE_BANNER_OFFSET, ɵLICENSE_BANNER_STYLE, ɵLICENSE_BANNER_STYLE as ɵLICENSE_BANNER_STYLE$1, ɵLearningAutoStarter, ɵLearningAutoStarter as ɵLearningAutoStarter$1, ɵMAX_SOCKET_RETRIES, ɵMESSAGE_FEEDBACK_EVENT_NAME, ɵMESSAGE_FEEDBACK_MAX_COMMENT_LENGTH, ɵMESSAGE_FEEDBACK_MAX_COMMENT_LENGTH as ɵMESSAGE_FEEDBACK_MAX_COMMENT_LENGTH$1, ɵMOBILE_MAX_WIDTH_QUERY, ɵMessageViewModel, ɵOPEN_GENERATIVE_UI_CONTENT_SCHEMA, ɵOPEN_GENERATIVE_UI_CONTENT_SCHEMA as ɵOPEN_GENERATIVE_UI_CONTENT_SCHEMA$1, ɵOPEN_GENERATIVE_UI_DESIGN_CONTEXT_DESCRIPTION, ɵOPEN_GENERATIVE_UI_SANDBOX_FUNCTIONS_CONTEXT_DESCRIPTION, ɵOpenGenerativeUIController, ɵOpenGenerativeUIController as ɵOpenGenerativeUIController$1, ɵPLACEHOLDER_CYCLE_MS, ɵPOPUP_ANIMATION_MS, ɵPOPUP_DEFAULT_HEIGHT, ɵPOPUP_DEFAULT_HEIGHT as ɵPOPUP_DEFAULT_HEIGHT$1, ɵPOPUP_DEFAULT_WIDTH, ɵPOPUP_DEFAULT_WIDTH as ɵPOPUP_DEFAULT_WIDTH$1, ɵPlaceholderCycler, ɵPlaceholderCycler as ɵPlaceholderCycler$1, ɵRENDER_A2UI_TOOL_NAME, ɵRENDER_A2UI_TOOL_NAME as ɵRENDER_A2UI_TOOL_NAME$1, ɵRESIZE_SETTLE_MS, ɵRUNTIME_PROBE_TIMEOUT_MS, ɵReasoningDisclosure, ɵReasoningDisclosure as ɵReasoningDisclosure$1, ɵRendererRegistry, ɵRendererRegistry as ɵRendererRegistry$1, ɵRuntimeInfoStore, ɵSCROLL_BOTTOM_THRESHOLD_PX, ɵSIDEBAR_DEFAULT_WIDTH, ɵSIDEBAR_DEFAULT_WIDTH as ɵSIDEBAR_DEFAULT_WIDTH$1, ɵSIDEBAR_TRANSITION_MS, ɵSIDEBAR_TRANSITION_MS as ɵSIDEBAR_TRANSITION_MS$1, ɵSTABLE_ARRAY_WARNINGS, ɵStickToBottom, ɵTAB_STOP_SELECTOR, ɵTHREAD_REQUEST_TIMEOUT_MS, ɵTOOL_CALL_STATUS_ICONS, ɵTOOL_CALL_STATUS_ICONS as ɵTOOL_CALL_STATUS_ICONS$1, ɵTOOL_CALL_STATUS_LABEL_KEYS, ɵTOOL_CALL_STATUS_LABEL_KEYS as ɵTOOL_CALL_STATUS_LABEL_KEYS$1, ɵTRANSCRIPTION_ERROR_TIMEOUT_MS, ɵThreadSelection, ɵThreadSwitchCoordinator, ɵThreadsController, ɵThreadsController as ɵThreadsController$1, ɵadaptDefaultToolCallRenderProps, ɵadaptDefaultToolCallRenderProps as ɵadaptDefaultToolCallRenderProps$1, ɵaddOpenGenerativeUIContexts, ɵaddOpenGenerativeUIContexts as ɵaddOpenGenerativeUIContexts$1, ɵagentUpdateHandlers, ɵappendTranscript, ɵassembleActivityRenderers, ɵassembleActivityRenderers as ɵassembleActivityRenderers$1, ɵassembleHumanInTheLoop, ɵassembleHumanInTheLoop as ɵassembleHumanInTheLoop$1, ɵassembleProviderRegistry, ɵassembleProviderToolRenderers, ɵassembleProviderToolRenderers as ɵassembleProviderToolRenderers$1, ɵassembleProviderTools, ɵassembleProviderTools as ɵassembleProviderTools$1, ɵbindDialogFocus, ɵbindDialogFocus as ɵbindDialogFocus$1, ɵbindPopupDismiss, ɵbindPopupDismiss as ɵbindPopupDismiss$1, ɵbindSuggestionsConfig, ɵbindSuggestionsConfig as ɵbindSuggestionsConfig$1, ɵbuildHumanInTheLoopTool, ɵbuildHumanInTheLoopTool as ɵbuildHumanInTheLoopTool$1, ɵbuildLearnFromUserActionPayload, ɵbuildLearnFromUserActionPayload as ɵbuildLearnFromUserActionPayload$1, ɵbuildOpenGenerativeUIContexts, ɵbuildToolCallRenderProps, ɵbuildToolCallRenderProps as ɵbuildToolCallRenderProps$1, ɵbuildUserMessage, ɵbuildUserMessageContent, ɵcanPreviewDocument, ɵcanPreviewDocument as ɵcanPreviewDocument$1, ɵclampSlashIndex, ɵclearAgentInterruptState, ɵclearAgentThreadCursors, ɵcn, ɵcomponentToolDescription, ɵcomponentToolDescription as ɵcomponentToolDescription$1, ɵcomposerButtonState, ɵcomposerButtonState as ɵcomposerButtonState$1, ɵcopilotIconSvgAttributes, ɵcopilotIcons, ɵcountFailedToolCalls, ɵcountFailedToolCalls as ɵcountFailedToolCalls$1, ɵcreateChatSubmitter, ɵcreateChatSubmitter as ɵcreateChatSubmitter$1, ɵcreateComposerAutosize, ɵcreateComposerAutosize as ɵcreateComposerAutosize$1, ɵcreateDockedSidebar, ɵcreateDockedSidebar as ɵcreateDockedSidebar$1, ɵcreateExitPresence, ɵcreateExitPresence as ɵcreateExitPresence$1, ɵcreateLastUserMessageTracker, ɵcreateLastUserMessageTracker as ɵcreateLastUserMessageTracker$1, ɵcreateMemoryStore, ɵcreateMessageViewModel, ɵcreateMessageViewModel as ɵcreateMessageViewModel$1, ɵcreateObjectUrlFromSource, ɵcreateObjectUrlFromSource as ɵcreateObjectUrlFromSource$1, ɵcreateOpenGenerativeUITool, ɵcreateOpenGenerativeUITool as ɵcreateOpenGenerativeUITool$1, ɵcreateStickToBottom, ɵcreateThreadSelectors, ɵcreateThreadStore, ɵcreateThreadStore as ɵcreateThreadStore$1, ɵcreateThreadsDrawerActions, ɵcreateThreadsDrawerActions as ɵcreateThreadsDrawerActions$1, ɵcreateWaveformRenderer, ɵcreateWaveformRenderer as ɵcreateWaveformRenderer$1, ɵdecodeTextSource, ɵdecodeTextSource as ɵdecodeTextSource$1, ɵdeduplicateMessages, ɵdeduplicateMessages as ɵdeduplicateMessages$1, ɵdescribeActivityRendererFailure, ɵdescribeActivityRendererFailure as ɵdescribeActivityRendererFailure$1, ɵdescribeUnrenderedToolCalls, ɵdescribeUnrenderedToolCalls as ɵdescribeUnrenderedToolCalls$1, ɵdiagnoseMissingSurface, ɵdiagnoseUnpaintedSurface, ɵdiagnoseUnresolvedRoot, ɵdimensionToCss, ɵdimensionToCss as ɵdimensionToCss$1, ɵdockedSidebarRegistryFor, ɵduplicateMessagesWarning, ɵduplicateMessagesWarning as ɵduplicateMessagesWarning$1, ɵextractCompleteStyles, ɵfilterCommands, ɵfindActivityRenderer, ɵfindActivityRenderer as ɵfindActivityRenderer$1, ɵfindChatInput, ɵfindToolMessage, ɵfitTextareaHeight, ɵflattenCommandItems, ɵflattenToolsMenuForDisplay, ɵflattenUserMessageContent, ɵflattenUserMessageContent as ɵflattenUserMessageContent$1, ɵformatA2UIDebugPayload, ɵformatA2UIRetryLabel, ɵformatCountLabel, ɵformatCountLabel as ɵformatCountLabel$1, ɵformatLabel, ɵformatLabel as ɵformatLabel$1, ɵformatReasoningDuration, ɵformatReasoningDurationLabel, ɵformatToolNames, ɵformatToolNames as ɵformatToolNames$1, ɵformatWorkDuration, ɵgetA2UIOperationSurfaceId, ɵgetA2UIOperations, ɵgetA2UIProgressPhase, ɵgetAgentCapabilities, ɵgetAgentCapabilities as ɵgetAgentCapabilities$1, ɵgetAgentInterruptState, ɵgetAgentResolver, ɵgetAgentResolver as ɵgetAgentResolver$1, ɵgetArgumentPreview, ɵgetArgumentPreview as ɵgetArgumentPreview$1, ɵgetBranchNavState, ɵgetBranchNavState as ɵgetBranchNavState$1, ɵgetChatViewState, ɵgetChatViewState as ɵgetChatViewState$1, ɵgetCustomMessageRenderProps, ɵgetCustomMessageRenderProps as ɵgetCustomMessageRenderProps$1, ɵgetInlineFeatureWarningSpec, ɵgetInlineFeatureWarningSpec as ɵgetInlineFeatureWarningSpec$1, ɵgetLastUserMessageId, ɵgetLatestTurnKey, ɵgetLicenseBannerSpec, ɵgetLicenseBannerSpec as ɵgetLicenseBannerSpec$1, ɵgetMessageFeedback, ɵgetMessageFeedback as ɵgetMessageFeedback$1, ɵgetMessageFeedbackControls, ɵgetMessageFeedbackControls as ɵgetMessageFeedbackControls$1, ɵgetMessageRunStateSnapshot, ɵgetMessageRunStateSnapshot as ɵgetMessageRunStateSnapshot$1, ɵgetReasoningHeaderLabel, ɵgetReasoningHeaderLabel as ɵgetReasoningHeaderLabel$1, ɵgetThreadsDrawerElementProps, ɵgetThreadsDrawerElementProps as ɵgetThreadsDrawerElementProps$1, ɵgetToolCallBadge, ɵgetToolCallBadge as ɵgetToolCallBadge$1, ɵgetToolCallGroupState, ɵgetToolCallGroupState as ɵgetToolCallGroupState$1, ɵgetToolCallLayouts, ɵgetToolCallLayouts as ɵgetToolCallLayouts$1, ɵgetToolCallPreview, ɵgetToolCallRendererNames, ɵgetToolCallRendererNames as ɵgetToolCallRendererNames$1, ɵgetToolCallRowStatus, ɵgetToolCallStatus, ɵgetToolResults, ɵgetTurnWork, ɵgetUserMessageMediaFilename, ɵgetUserMessageMediaFilename as ɵgetUserMessageMediaFilename$1, ɵgetUserMessageMediaParts, ɵgetUserMessageMediaParts as ɵgetUserMessageMediaParts$1, ɵgetWorkOpenState, ɵgetWorkSummaryText, ɵgetWorkSummaryText as ɵgetWorkSummaryText$1, ɵgroupA2UIOperationsBySurface, ɵgroupA2UIOperationsBySurface as ɵgroupA2UIOperationsBySurface$1, ɵhasAssistantMessageText, ɵhasAssistantMessageText as ɵhasAssistantMessageText$1, ɵhitlRenderProps, ɵhitlRenderProps as ɵhitlRenderProps$1, ɵimplementsConnect, ɵinitialKeyboardState, ɵinitialKeyboardState as ɵinitialKeyboardState$1, ɵinspectorKiteFill, ɵinspectorKiteFill as ɵinspectorKiteFill$1, ɵinspectorKiteIcon, ɵinspectorKiteIcon as ɵinspectorKiteIcon$1, ɵinspectorShortcuts, ɵinspectorShortcuts as ɵinspectorShortcuts$1, ɵisContentPart, ɵisContentScrolledToBottom, ɵisContentScrolledToBottom as ɵisContentScrolledToBottom$1, ɵisCopilotKitFeature, ɵisFocusVisible, ɵisHttpAgent, ɵisLearningFeedbackEnabled, ɵisLearningFeedbackEnabled as ɵisLearningFeedbackEnabled$1, ɵisMobileViewport, ɵisOpenGenerativeUIActive, ɵisOpenGenerativeUIActive as ɵisOpenGenerativeUIActive$1, ɵisOwnFeedbackThumb, ɵisOwnFeedbackThumb as ɵisOwnFeedbackThumb$1, ɵisRetryableMemoryStatus, ɵisScrolledToBottom, ɵisScrolledToBottom as ɵisScrolledToBottom$1, ɵisTurnWorkOpen, ɵisTurnWorking, ɵjoinPhoenixChannel$, ɵloadWebsandbox, ɵmapMemoryMetadataEvent, ɵmatchActivityRenderer, ɵmatchActivityRenderer as ɵmatchActivityRenderer$1, ɵmeasureTextarea, ɵmemoryAdapterEvents, ɵmemoryDomainEvents, ɵmemoryReducer, ɵmemoryRestEvents, ɵmessagesFingerprint, ɵmessagesFingerprint as ɵmessagesFingerprint$1, ɵmorphViewTransition, ɵmorphViewTransition as ɵmorphViewTransition$1, ɵnextSlashIndex, ɵnextTabStop, ɵnormalizeAutoScroll, ɵnormalizeAutoScroll as ɵnormalizeAutoScroll$1, ɵnormalizeToolCallStatus, ɵnormalizeToolCallStatus as ɵnormalizeToolCallStatus$1, ɵnormalizeToolsMenu, ɵnormalizeToolsMenu as ɵnormalizeToolsMenu$1, ɵobservePhoenixEvent$, ɵobservePhoenixJoinOutcome$, ɵobservePhoenixSocketHealth$, ɵobservePhoenixSocketSignals$, ɵparseSlashQuery, ɵparseToolCallArguments, ɵphoenixChannel$, ɵphoenixSocket$, ɵpinMessageToTop, ɵpinMessageToTop as ɵpinMessageToTop$1, ɵpluralize, ɵprocessPartialHtml, ɵprojectThread, ɵpublicKeyHeaderDefaults, ɵpublicKeyHeaderDefaults as ɵpublicKeyHeaderDefaults$1, ɵreadA2UILifecycle, ɵreadKeyboardState, ɵrecordAnnotation, ɵrecordAnnotation as ɵrecordAnnotation$1, ɵrecordWorkTime, ɵregisterFrontendTools, ɵregisterFrontendTools as ɵregisterFrontendTools$1, ɵreportProviderConfigDiagnostics, ɵreportProviderConfigDiagnostics as ɵreportProviderConfigDiagnostics$1, ɵreserveLicenseBannerOffset, ɵreserveLicenseBannerOffset as ɵreserveLicenseBannerOffset$1, ɵresetAgentThreadBaseline, ɵresetMessageFeedbackCache, ɵresolveA2UIActivation, ɵresolveA2UIActivation as ɵresolveA2UIActivation$1, ɵresolveA2UIDebugExposure, ɵresolveActivityRenderer, ɵresolveAgentId, ɵresolveAgentId as ɵresolveAgentId$1, ɵresolveAgentThreadId, ɵresolveAgentThreadId as ɵresolveAgentThreadId$1, ɵresolveChatNotice, ɵresolveChatNotice as ɵresolveChatNotice$1, ɵresolveComposerKey, ɵresolveCustomMessageRenderContext, ɵresolveCustomMessageRenderContext as ɵresolveCustomMessageRenderContext$1, ɵresolveCustomMessageRenderers, ɵresolveLicenseState, ɵresolveLicenseState as ɵresolveLicenseState$1, ɵresolveProviderConfig, ɵresolveProviderConfig as ɵresolveProviderConfig$1, ɵresolveSlashKey, ɵresolveThreadsLicense, ɵresolveThreadsLicense as ɵresolveThreadsLicense$1, ɵresolveToolCallAgentId, ɵresolveToolCallAgentId as ɵresolveToolCallAgentId$1, ɵresolveToolCallRenderer, ɵresolveToolCallRenderer as ɵresolveToolCallRenderer$1, ɵrmsAmplitude, ɵrunA2UIAction, ɵrunA2UIAction as ɵrunA2UIAction$1, ɵselectFetchMoreError, ɵselectHasNextPage, ɵselectIsFetchingNextPage, ɵselectIsMutating, ɵselectMemories, ɵselectMemories as ɵselectMemories$1, ɵselectMemoriesAvailable, ɵselectMemoriesAvailable as ɵselectMemoriesAvailable$1, ɵselectMemoriesError, ɵselectMemoriesError as ɵselectMemoriesError$1, ɵselectMemoriesIsLoading, ɵselectMemoriesIsLoading as ɵselectMemoriesIsLoading$1, ɵselectMemoriesIsMutating, ɵselectMemoriesRealtimeStatus, ɵselectMemoriesRealtimeStatus as ɵselectMemoriesRealtimeStatus$1, ɵselectThreads, ɵselectThreadsError, ɵselectThreadsIsLoading, ɵserializeContextValue, ɵserializeContextValue as ɵserializeContextValue$1, ɵsetMessageFeedback, ɵshallowEqualRecord, ɵshouldShowAssistantToolbar, ɵshouldShowAssistantToolbar as ɵshouldShowAssistantToolbar$1, ɵshouldShowMessageCursor, ɵshowsComposerDisclaimer, ɵshowsComposerDisclaimer as ɵshowsComposerDisclaimer$1, ɵsnapshotAgentState, ɵstableArrayPropWarning, ɵstableArrayPropWarning as ɵstableArrayPropWarning$1, ɵstopAgentWithFallback, ɵstringifyToolCallAttr, ɵstringifyToolCallAttr as ɵstringifyToolCallAttr$1, ɵstringifyToolCallPayload, ɵstringifyToolCallPayload as ɵstringifyToolCallPayload$1, ɵsubscribeToAgentErrors, ɵsubscribeToAgentErrors as ɵsubscribeToAgentErrors$1, ɵsubscribeToAgentSuggestions, ɵsubscribeToAgentSuggestions as ɵsubscribeToAgentSuggestions$1, ɵsubscribeToAgentUpdates, ɵsubscribeToAgentUpdates as ɵsubscribeToAgentUpdates$1, ɵsubscribeToLearningFeedbackEnabled, ɵsubscribeToLearningFeedbackEnabled as ɵsubscribeToLearningFeedbackEnabled$1, ɵsubscribeToMessageFeedback, ɵsubscribeToMessageFeedback as ɵsubscribeToMessageFeedback$1, ɵsurfaceHasRenderableContent, ɵsyncRecorderToMode, ɵsyncRecorderToMode as ɵsyncRecorderToMode$1, ɵthreadAdapterEvents, ɵtoA2UIClientEvent, ɵtoA2UIClientEvent as ɵtoA2UIClientEvent$1, ɵtoDefaultToolCallStatus, ɵtoDrawerThread, ɵtoDrawerThread as ɵtoDrawerThread$1, ɵtoLearningConfig, ɵtoLearningConfig as ɵtoLearningConfig$1, ɵtoolCallAppearance, ɵtoolCallAppearance as ɵtoolCallAppearance$1, ɵtoolRendererShapeChanged, ɵtranscribeAudio, ɵtranscriptionErrorMessageKey, ɵtranscriptionErrorNotice, ɵvalidateAgentBinding, ɵvalidateAgentBinding as ɵvalidateAgentBinding$1, ɵwaitForActiveRun, ɵwatchElementHeight, ɵwatchElementHeight as ɵwatchElementHeight$1, ɵwatchElementWidth, ɵwatchElementWidth as ɵwatchElementWidth$1, ɵwatchKeyboardState, ɵwatchKeyboardState as ɵwatchKeyboardState$1, ɵwatchMobileViewport, ɵwatchMobileViewport as ɵwatchMobileViewport$1, ɵwithHeaderDefaults, ɵwithHeaderDefaults as ɵwithHeaderDefaults$1 } from "@copilotkit/core";
|
|
3
|
+
import { a as renderSlot, c as cn, i as isReactComponentType, l as useLatestRef, n as MarkdownRendererProvider, o as CopilotIcon, r as useMarkdownRenderer, u as StreamingMarkdownDefaultRenderer } from "./ProviderMarkdown-epL7F3Vt.mjs";
|
|
4
|
+
import { d as GenerativeUIRuntimeContext, g as useShallowStableRef, p as useGenerativeUIRuntime } from "./accessibility-BLK-gE0R.mjs";
|
|
5
|
+
import { _ as ControlledModalOpenScope, a as createGenerativeUIFunctionCallActivityRenderer, i as createGenerativeUIActivityRenderer, l as defineToolCallRenderer, n as GenerativeUIChatSlotContext, r as GenerativeUIToolCallRenderer, v as CopilotChatConfigurationProvider, y as useCopilotChatConfiguration } from "./chat-B1zczXUD.mjs";
|
|
6
|
+
import { t as useGenerativeUIRoot } from "./use-generative-ui-root-oBqPa6uy.mjs";
|
|
7
|
+
import { t as MarkdownSurfaces } from "./MarkdownSurfaces-rtE9wRUP.mjs";
|
|
8
|
+
import { A2UI_FENCE_LANGUAGE, AgentRegistry, AgentThreadLockedError, ContextStore, CopilotChatDefaultLabels, CopilotChatDefaultLabels as CopilotChatDefaultLabels$1, CopilotKitCore, CopilotKitCore as CopilotKitCore$1, CopilotKitCoreErrorCode, CopilotKitCoreRuntimeConnectionStatus, CopilotKitCoreRuntimeConnectionStatus as CopilotKitCoreRuntimeConnectionStatus$1, CopilotKitHeaderResolutionError, DEFAULT_OPEN_GENERATIVE_UI_DESIGN_SKILL, GENERATE_SANDBOXED_UI_TOOL_NAME, INSPECTOR_THREAD_BRIDGE_PLUGIN_ID, INTERRUPT_EVENT_NAME, IntelligenceAgent, MEMORY_ERROR_REGISTRY, MemoryError, OPEN_GENERATIVE_UI_ACTIVITY_TYPE, OPEN_GENERATIVE_UI_ACTIVITY_TYPE as OPEN_GENERATIVE_UI_ACTIVITY_TYPE$1, ProxiedCopilotRuntimeAgent, RunHandler, StateManager, SuggestionEngine, ToolCallStatus, ToolCallStatus as ToolCallStatus$1, TranscriptionError, TranscriptionErrorCode, WebMCPRegistry, classifySurfaceCards, completePartialMarkdown, createActionGroup, createEffect, createInspectorThreadRequestId, createReducer, createSelector, createStore, emitInspectorActiveThread, emitInspectorStopViewing, emitInspectorViewThread, emitInspectorViewThreadResult, empty, ensureObjectArgs, extractCompleteArrayItems, extractFenceOperations, extractStringField, flattenInformationalCards, getMarkdownOperationSurfaceId, getWebMCPModelContext, isAbortError, isInspectorThreadBridgeEnabled, isRunCompletionAware, ofType, on, onInspectorActiveThread, onInspectorStopViewing, onInspectorViewThread, onInspectorViewThreadResult, parseToolArguments, prepareSurfaceOperations, props, segmentSurfaceProse, select, splitA2UIMarkdown, ɵALL_AGENT_UPDATES, ɵAgentResolver, ɵAttachmentQueue, ɵAttachmentQueue as ɵAttachmentQueue$1, ɵAudioRecorder, ɵAudioRecorder as ɵAudioRecorder$1, ɵAudioRecorderError, ɵAudioRecorderError as AudioRecorderError, ɵCOMPOSER_DEFAULT_MAX_ROWS, ɵCOPILOTKIT_FEATURES, ɵCOPILOT_CLOUD_PUBLIC_API_KEY_HEADER, ɵCOPILOT_CLOUD_RUNTIME_URL, ɵCOPY_FEEDBACK_RESET_MS, ɵChatConfigurationStore, ɵChatConnection, ɵChatConnection as ɵChatConnection$1, ɵChatSubmitter, ɵComposerAutosize, ɵComposerController, ɵComposerController as ɵComposerController$1, ɵCopyFeedback, ɵCopyFeedback as ɵCopyFeedback$1, ɵDockedSidebar, ɵDockedSidebarRegistry, ɵExitPresence, ɵFEEDBACK_COMMENT_CLOSE_DELAY_MS, ɵFeedbackCommentController, ɵFeedbackCommentController as ɵFeedbackCommentController$1, ɵFreshThreadId, ɵFreshThreadId as ɵFreshThreadId$1, ɵGENERATE_SANDBOXED_UI_ARGS_SCHEMA, ɵGENERATE_SANDBOXED_UI_ARGS_SCHEMA as ɵGENERATE_SANDBOXED_UI_ARGS_SCHEMA$1, ɵHITL_ABORTED_MESSAGE, ɵHOVER_MENU_CLOSE_DELAY_MS, ɵHoverMenuController, ɵHoverMenuController as ɵHoverMenuController$1, ɵHumanInTheLoopRegistry, ɵINLINE_FEATURE_WARNING_STYLE, ɵINLINE_FEATURE_WARNING_STYLE as ɵINLINE_FEATURE_WARNING_STYLE$1, ɵInspectorThreadOverride, ɵInspectorThreadOverride as ɵInspectorThreadOverride$1, ɵInterruptController, ɵInterruptController as ɵInterruptController$1, ɵInterruptExpiredError, ɵInterruptState, ɵKEYBOARD_OPEN_THRESHOLD_PX, ɵLICENSE_BANNER_OFFSET, ɵLICENSE_BANNER_STYLE, ɵLICENSE_BANNER_STYLE as ɵLICENSE_BANNER_STYLE$1, ɵLearningAutoStarter, ɵLearningAutoStarter as ɵLearningAutoStarter$1, ɵMAX_SOCKET_RETRIES, ɵMESSAGE_FEEDBACK_EVENT_NAME, ɵMESSAGE_FEEDBACK_MAX_COMMENT_LENGTH, ɵMESSAGE_FEEDBACK_MAX_COMMENT_LENGTH as ɵMESSAGE_FEEDBACK_MAX_COMMENT_LENGTH$1, ɵMOBILE_MAX_WIDTH_QUERY, ɵMessageViewModel, ɵOPEN_GENERATIVE_UI_CONTENT_SCHEMA, ɵOPEN_GENERATIVE_UI_CONTENT_SCHEMA as ɵOPEN_GENERATIVE_UI_CONTENT_SCHEMA$1, ɵOPEN_GENERATIVE_UI_DESIGN_CONTEXT_DESCRIPTION, ɵOPEN_GENERATIVE_UI_SANDBOX_FUNCTIONS_CONTEXT_DESCRIPTION, ɵOpenGenerativeUIController, ɵOpenGenerativeUIController as ɵOpenGenerativeUIController$1, ɵPLACEHOLDER_CYCLE_MS, ɵPOPUP_ANIMATION_MS, ɵPOPUP_DEFAULT_HEIGHT, ɵPOPUP_DEFAULT_HEIGHT as ɵPOPUP_DEFAULT_HEIGHT$1, ɵPOPUP_DEFAULT_WIDTH, ɵPOPUP_DEFAULT_WIDTH as ɵPOPUP_DEFAULT_WIDTH$1, ɵPlaceholderCycler, ɵPlaceholderCycler as ɵPlaceholderCycler$1, ɵRESIZE_SETTLE_MS, ɵRUNTIME_PROBE_TIMEOUT_MS, ɵReasoningDisclosure, ɵReasoningDisclosure as ɵReasoningDisclosure$1, ɵRendererRegistry, ɵRendererRegistry as ɵRendererRegistry$1, ɵRuntimeInfoStore, ɵSCROLL_BOTTOM_THRESHOLD_PX, ɵSIDEBAR_DEFAULT_WIDTH, ɵSIDEBAR_DEFAULT_WIDTH as ɵSIDEBAR_DEFAULT_WIDTH$1, ɵSIDEBAR_TRANSITION_MS, ɵSIDEBAR_TRANSITION_MS as ɵSIDEBAR_TRANSITION_MS$1, ɵSTABLE_ARRAY_WARNINGS, ɵStickToBottom, ɵTAB_STOP_SELECTOR, ɵTHREAD_REQUEST_TIMEOUT_MS, ɵTOOL_CALL_STATUS_ICONS, ɵTOOL_CALL_STATUS_ICONS as ɵTOOL_CALL_STATUS_ICONS$1, ɵTOOL_CALL_STATUS_LABEL_KEYS, ɵTOOL_CALL_STATUS_LABEL_KEYS as ɵTOOL_CALL_STATUS_LABEL_KEYS$1, ɵTRANSCRIPTION_ERROR_TIMEOUT_MS, ɵThreadSelection, ɵThreadSwitchCoordinator, ɵThreadsController, ɵThreadsController as ɵThreadsController$1, ɵadaptDefaultToolCallRenderProps, ɵadaptDefaultToolCallRenderProps as ɵadaptDefaultToolCallRenderProps$1, ɵaddOpenGenerativeUIContexts, ɵaddOpenGenerativeUIContexts as ɵaddOpenGenerativeUIContexts$1, ɵagentUpdateHandlers, ɵappendTranscript, ɵassembleActivityRenderers, ɵassembleActivityRenderers as ɵassembleActivityRenderers$1, ɵassembleHumanInTheLoop, ɵassembleHumanInTheLoop as ɵassembleHumanInTheLoop$1, ɵassembleProviderRegistry, ɵassembleProviderToolRenderers, ɵassembleProviderToolRenderers as ɵassembleProviderToolRenderers$1, ɵassembleProviderTools, ɵassembleProviderTools as ɵassembleProviderTools$1, ɵbindDialogFocus, ɵbindDialogFocus as ɵbindDialogFocus$1, ɵbindPopupDismiss, ɵbindPopupDismiss as ɵbindPopupDismiss$1, ɵbindSuggestionsConfig, ɵbindSuggestionsConfig as ɵbindSuggestionsConfig$1, ɵbuildHumanInTheLoopTool, ɵbuildHumanInTheLoopTool as ɵbuildHumanInTheLoopTool$1, ɵbuildLearnFromUserActionPayload, ɵbuildLearnFromUserActionPayload as ɵbuildLearnFromUserActionPayload$1, ɵbuildOpenGenerativeUIContexts, ɵbuildToolCallRenderProps, ɵbuildToolCallRenderProps as ɵbuildToolCallRenderProps$1, ɵbuildUserMessage, ɵbuildUserMessageContent, ɵcanPreviewDocument, ɵcanPreviewDocument as ɵcanPreviewDocument$1, ɵclampSlashIndex, ɵclearAgentInterruptState, ɵclearAgentThreadCursors, ɵcn, ɵcomponentToolDescription, ɵcomponentToolDescription as ɵcomponentToolDescription$1, ɵcomposerButtonState, ɵcomposerButtonState as ɵcomposerButtonState$1, ɵcopilotIconSvgAttributes, ɵcopilotIcons, ɵcountFailedToolCalls, ɵcountFailedToolCalls as ɵcountFailedToolCalls$1, ɵcreateChatSubmitter, ɵcreateChatSubmitter as ɵcreateChatSubmitter$1, ɵcreateComposerAutosize, ɵcreateComposerAutosize as ɵcreateComposerAutosize$1, ɵcreateDockedSidebar, ɵcreateDockedSidebar as ɵcreateDockedSidebar$1, ɵcreateExitPresence, ɵcreateExitPresence as ɵcreateExitPresence$1, ɵcreateLastUserMessageTracker, ɵcreateLastUserMessageTracker as ɵcreateLastUserMessageTracker$1, ɵcreateMemoryStore, ɵcreateMessageViewModel, ɵcreateMessageViewModel as ɵcreateMessageViewModel$1, ɵcreateObjectUrlFromSource, ɵcreateObjectUrlFromSource as ɵcreateObjectUrlFromSource$1, ɵcreateOpenGenerativeUITool, ɵcreateOpenGenerativeUITool as ɵcreateOpenGenerativeUITool$1, ɵcreateStickToBottom, ɵcreateThreadSelectors, ɵcreateThreadStore, ɵcreateThreadStore as ɵcreateThreadStore$1, ɵcreateThreadsDrawerActions, ɵcreateThreadsDrawerActions as ɵcreateThreadsDrawerActions$1, ɵcreateWaveformRenderer, ɵcreateWaveformRenderer as ɵcreateWaveformRenderer$1, ɵdecodeTextSource, ɵdecodeTextSource as ɵdecodeTextSource$1, ɵdeduplicateMessages, ɵdeduplicateMessages as ɵdeduplicateMessages$1, ɵdescribeActivityRendererFailure, ɵdescribeActivityRendererFailure as ɵdescribeActivityRendererFailure$1, ɵdescribeUnrenderedToolCalls, ɵdescribeUnrenderedToolCalls as ɵdescribeUnrenderedToolCalls$1, ɵdimensionToCss, ɵdimensionToCss as ɵdimensionToCss$1, ɵdockedSidebarRegistryFor, ɵduplicateMessagesWarning, ɵduplicateMessagesWarning as ɵduplicateMessagesWarning$1, ɵextractCompleteStyles, ɵfilterCommands, ɵfindActivityRenderer, ɵfindActivityRenderer as ɵfindActivityRenderer$1, ɵfindChatInput, ɵfindToolMessage, ɵfitTextareaHeight, ɵflattenCommandItems, ɵflattenToolsMenuForDisplay, ɵflattenUserMessageContent, ɵflattenUserMessageContent as ɵflattenUserMessageContent$1, ɵformatCountLabel, ɵformatCountLabel as ɵformatCountLabel$1, ɵformatLabel, ɵformatLabel as ɵformatLabel$1, ɵformatReasoningDuration, ɵformatReasoningDurationLabel, ɵformatToolNames, ɵformatToolNames as ɵformatToolNames$1, ɵformatWorkDuration, ɵgetAgentCapabilities, ɵgetAgentCapabilities as ɵgetAgentCapabilities$1, ɵgetAgentInterruptState, ɵgetAgentResolver, ɵgetAgentResolver as ɵgetAgentResolver$1, ɵgetArgumentPreview, ɵgetArgumentPreview as ɵgetArgumentPreview$1, ɵgetBranchNavState, ɵgetBranchNavState as ɵgetBranchNavState$1, ɵgetChatViewState, ɵgetChatViewState as ɵgetChatViewState$1, ɵgetCustomMessageRenderProps, ɵgetCustomMessageRenderProps as ɵgetCustomMessageRenderProps$1, ɵgetInlineFeatureWarningSpec, ɵgetInlineFeatureWarningSpec as ɵgetInlineFeatureWarningSpec$1, ɵgetLastUserMessageId, ɵgetLatestTurnKey, ɵgetLicenseBannerSpec, ɵgetLicenseBannerSpec as ɵgetLicenseBannerSpec$1, ɵgetMessageFeedback, ɵgetMessageFeedback as ɵgetMessageFeedback$1, ɵgetMessageFeedbackControls, ɵgetMessageFeedbackControls as ɵgetMessageFeedbackControls$1, ɵgetMessageRunStateSnapshot, ɵgetMessageRunStateSnapshot as ɵgetMessageRunStateSnapshot$1, ɵgetReasoningHeaderLabel, ɵgetReasoningHeaderLabel as ɵgetReasoningHeaderLabel$1, ɵgetThreadsDrawerElementProps, ɵgetThreadsDrawerElementProps as ɵgetThreadsDrawerElementProps$1, ɵgetToolCallBadge, ɵgetToolCallBadge as ɵgetToolCallBadge$1, ɵgetToolCallGroupState, ɵgetToolCallGroupState as ɵgetToolCallGroupState$1, ɵgetToolCallLayouts, ɵgetToolCallLayouts as ɵgetToolCallLayouts$1, ɵgetToolCallPreview, ɵgetToolCallRendererNames, ɵgetToolCallRendererNames as ɵgetToolCallRendererNames$1, ɵgetToolCallRowStatus, ɵgetToolCallStatus, ɵgetToolResults, ɵgetTurnWork, ɵgetUserMessageMediaFilename, ɵgetUserMessageMediaFilename as ɵgetUserMessageMediaFilename$1, ɵgetUserMessageMediaParts, ɵgetUserMessageMediaParts as ɵgetUserMessageMediaParts$1, ɵgetWorkOpenState, ɵgetWorkSummaryText, ɵgetWorkSummaryText as ɵgetWorkSummaryText$1, ɵhasAssistantMessageText, ɵhasAssistantMessageText as ɵhasAssistantMessageText$1, ɵhitlRenderProps, ɵhitlRenderProps as ɵhitlRenderProps$1, ɵimplementsConnect, ɵinitialKeyboardState, ɵinitialKeyboardState as ɵinitialKeyboardState$1, ɵinspectorKiteFill, ɵinspectorKiteFill as ɵinspectorKiteFill$1, ɵinspectorKiteIcon, ɵinspectorKiteIcon as ɵinspectorKiteIcon$1, ɵinspectorShortcuts, ɵinspectorShortcuts as ɵinspectorShortcuts$1, ɵisContentPart, ɵisContentScrolledToBottom, ɵisContentScrolledToBottom as ɵisContentScrolledToBottom$1, ɵisCopilotKitFeature, ɵisFocusVisible, ɵisHttpAgent, ɵisLearningFeedbackEnabled, ɵisLearningFeedbackEnabled as ɵisLearningFeedbackEnabled$1, ɵisMobileViewport, ɵisOpenGenerativeUIActive, ɵisOpenGenerativeUIActive as ɵisOpenGenerativeUIActive$1, ɵisOwnFeedbackThumb, ɵisOwnFeedbackThumb as ɵisOwnFeedbackThumb$1, ɵisRetryableMemoryStatus, ɵisScrolledToBottom, ɵisScrolledToBottom as ɵisScrolledToBottom$1, ɵisTurnWorkOpen, ɵisTurnWorking, ɵjoinPhoenixChannel$, ɵloadWebsandbox, ɵmapMemoryMetadataEvent, ɵmatchActivityRenderer, ɵmatchActivityRenderer as ɵmatchActivityRenderer$1, ɵmeasureTextarea, ɵmemoryAdapterEvents, ɵmemoryDomainEvents, ɵmemoryReducer, ɵmemoryRestEvents, ɵmessagesFingerprint, ɵmessagesFingerprint as ɵmessagesFingerprint$1, ɵmorphViewTransition, ɵmorphViewTransition as ɵmorphViewTransition$1, ɵnextSlashIndex, ɵnextTabStop, ɵnormalizeAutoScroll, ɵnormalizeAutoScroll as ɵnormalizeAutoScroll$1, ɵnormalizeToolCallStatus, ɵnormalizeToolCallStatus as ɵnormalizeToolCallStatus$1, ɵnormalizeToolsMenu, ɵnormalizeToolsMenu as ɵnormalizeToolsMenu$1, ɵobservePhoenixEvent$, ɵobservePhoenixJoinOutcome$, ɵobservePhoenixSocketHealth$, ɵobservePhoenixSocketSignals$, ɵparseSlashQuery, ɵparseToolCallArguments, ɵphoenixChannel$, ɵphoenixSocket$, ɵpinMessageToTop, ɵpinMessageToTop as ɵpinMessageToTop$1, ɵpluralize, ɵprocessPartialHtml, ɵprojectThread, ɵpublicKeyHeaderDefaults, ɵpublicKeyHeaderDefaults as ɵpublicKeyHeaderDefaults$1, ɵreadKeyboardState, ɵrecordAnnotation, ɵrecordAnnotation as ɵrecordAnnotation$1, ɵrecordWorkTime, ɵregisterFrontendTools, ɵregisterFrontendTools as ɵregisterFrontendTools$1, ɵreportProviderConfigDiagnostics, ɵreportProviderConfigDiagnostics as ɵreportProviderConfigDiagnostics$1, ɵreserveLicenseBannerOffset, ɵreserveLicenseBannerOffset as ɵreserveLicenseBannerOffset$1, ɵresetAgentThreadBaseline, ɵresetMessageFeedbackCache, ɵresolveActivityRenderer, ɵresolveAgentId, ɵresolveAgentId as ɵresolveAgentId$1, ɵresolveAgentThreadId, ɵresolveAgentThreadId as ɵresolveAgentThreadId$1, ɵresolveChatNotice, ɵresolveChatNotice as ɵresolveChatNotice$1, ɵresolveComposerKey, ɵresolveCustomMessageRenderContext, ɵresolveCustomMessageRenderContext as ɵresolveCustomMessageRenderContext$1, ɵresolveCustomMessageRenderers, ɵresolveGenerativeUIDefault, ɵresolveGenerativeUIDefault as ɵresolveGenerativeUIDefault$1, ɵresolveLicenseState, ɵresolveLicenseState as ɵresolveLicenseState$1, ɵresolveProviderConfig, ɵresolveProviderConfig as ɵresolveProviderConfig$1, ɵresolveSlashKey, ɵresolveThreadsLicense, ɵresolveThreadsLicense as ɵresolveThreadsLicense$1, ɵresolveToolCallAgentId, ɵresolveToolCallAgentId as ɵresolveToolCallAgentId$1, ɵresolveToolCallRenderer, ɵresolveToolCallRenderer as ɵresolveToolCallRenderer$1, ɵrmsAmplitude, ɵselectFetchMoreError, ɵselectHasNextPage, ɵselectIsFetchingNextPage, ɵselectIsMutating, ɵselectMemories, ɵselectMemories as ɵselectMemories$1, ɵselectMemoriesAvailable, ɵselectMemoriesAvailable as ɵselectMemoriesAvailable$1, ɵselectMemoriesError, ɵselectMemoriesError as ɵselectMemoriesError$1, ɵselectMemoriesIsLoading, ɵselectMemoriesIsLoading as ɵselectMemoriesIsLoading$1, ɵselectMemoriesIsMutating, ɵselectMemoriesRealtimeStatus, ɵselectMemoriesRealtimeStatus as ɵselectMemoriesRealtimeStatus$1, ɵselectThreads, ɵselectThreadsError, ɵselectThreadsIsLoading, ɵserializeContextValue, ɵserializeContextValue as ɵserializeContextValue$1, ɵsetMessageFeedback, ɵshallowEqualRecord, ɵshouldShowAssistantToolbar, ɵshouldShowAssistantToolbar as ɵshouldShowAssistantToolbar$1, ɵshouldShowMessageCursor, ɵshowsComposerDisclaimer, ɵshowsComposerDisclaimer as ɵshowsComposerDisclaimer$1, ɵsnapshotAgentState, ɵstableArrayPropWarning, ɵstableArrayPropWarning as ɵstableArrayPropWarning$1, ɵstopAgentWithFallback, ɵstringifyToolCallAttr, ɵstringifyToolCallAttr as ɵstringifyToolCallAttr$1, ɵstringifyToolCallPayload, ɵstringifyToolCallPayload as ɵstringifyToolCallPayload$1, ɵsubscribeToAgentErrors, ɵsubscribeToAgentErrors as ɵsubscribeToAgentErrors$1, ɵsubscribeToAgentSuggestions, ɵsubscribeToAgentSuggestions as ɵsubscribeToAgentSuggestions$1, ɵsubscribeToAgentUpdates, ɵsubscribeToAgentUpdates as ɵsubscribeToAgentUpdates$1, ɵsubscribeToLearningFeedbackEnabled, ɵsubscribeToLearningFeedbackEnabled as ɵsubscribeToLearningFeedbackEnabled$1, ɵsubscribeToMessageFeedback, ɵsubscribeToMessageFeedback as ɵsubscribeToMessageFeedback$1, ɵsyncRecorderToMode, ɵsyncRecorderToMode as ɵsyncRecorderToMode$1, ɵthreadAdapterEvents, ɵtoDefaultToolCallStatus, ɵtoDrawerThread, ɵtoDrawerThread as ɵtoDrawerThread$1, ɵtoLearningConfig, ɵtoLearningConfig as ɵtoLearningConfig$1, ɵtoolCallAppearance, ɵtoolCallAppearance as ɵtoolCallAppearance$1, ɵtoolRendererShapeChanged, ɵtranscribeAudio, ɵtranscriptionErrorMessageKey, ɵtranscriptionErrorNotice, ɵvalidateAgentBinding, ɵvalidateAgentBinding as ɵvalidateAgentBinding$1, ɵwaitForActiveRun, ɵwatchElementHeight, ɵwatchElementHeight as ɵwatchElementHeight$1, ɵwatchElementWidth, ɵwatchElementWidth as ɵwatchElementWidth$1, ɵwatchKeyboardState, ɵwatchKeyboardState as ɵwatchKeyboardState$1, ɵwatchMobileViewport, ɵwatchMobileViewport as ɵwatchMobileViewport$1, ɵwithHeaderDefaults, ɵwithHeaderDefaults as ɵwithHeaderDefaults$1 } from "@copilotkit/core";
|
|
7
9
|
import { ACTIVITY_HISTORY_METADATA, AGUIConnectNotImplementedError, AGUIEnforcementLimitError, AGUIError, AGUI_METADATA_KEY, AbstractAgent, BackwardCompatibility_0_0_39, BackwardCompatibility_0_0_45, BackwardCompatibility_0_0_57, CompatibilityBoundary, DEFAULT_MAX_ENFORCED_ENTRIES, DebugLogger, EventType, FilterToolCallsMiddleware, FunctionMiddleware, HttpAgent, Middleware, PROTOCOL_VERSION, 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";
|
|
8
10
|
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";
|
|
9
11
|
import * as React$1 from "react";
|
|
@@ -15,10 +17,6 @@ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
|
15
17
|
import { commitRowKeyStore, copyToClipboard, createRowKeyStore, formatFileSize, getDocumentIcon, getSourceUrl, randomUUID as randomUUID$1, resolveRowRenderKeysById, shouldEnableInspector } from "@copilotkit/shared";
|
|
16
18
|
import { ɵmountInspector } from "@copilotkit/web-inspector/mount";
|
|
17
19
|
import { MCPAppsActivityContentSchema, MCPAppsActivityType, ɵMcpAppHost, ɵrunMcpFollowUp } from "@copilotkit/mcp-apps-renderer/activity";
|
|
18
|
-
import { A2UIProvider, A2UIRenderer, Catalog, basicCatalog, defaultTheme as a2uiDefaultTheme, filterCatalog, initializeDefaultCatalog, injectStyles, useA2UIActions, useA2UIError, viewerTheme } from "@copilotkit/a2ui-renderer";
|
|
19
|
-
import { A2UISurfaceDiagnostics } from "@copilotkit/a2ui-renderer/engine-core";
|
|
20
|
-
import * as z from "zod";
|
|
21
|
-
import { A2UICatalogController } from "@copilotkit/a2ui-renderer/catalog-schema";
|
|
22
20
|
import { stylesheet } from "@copilotkit/core/styles";
|
|
23
21
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
24
22
|
import { createPortal, flushSync } from "react-dom";
|
|
@@ -26,22 +24,6 @@ import { observeElementRect, useVirtualizer } from "@tanstack/react-virtual";
|
|
|
26
24
|
import { StickToBottom, useStickToBottomContext } from "use-stick-to-bottom";
|
|
27
25
|
import { COPILOTKIT_THREADS_DRAWER_TAG, defineCopilotKitThreadsDrawer } from "@copilotkit/web-components/threads-drawer";
|
|
28
26
|
|
|
29
|
-
//#region src/lib/use-latest-ref.ts
|
|
30
|
-
const useIsomorphicLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect;
|
|
31
|
-
/**
|
|
32
|
-
* A ref that holds the latest `value`, for callbacks that run after render
|
|
33
|
-
* (event handlers, controller callbacks). The ref changes in a layout effect,
|
|
34
|
-
* not during render, so a render that React throws away leaves it alone.
|
|
35
|
-
*/
|
|
36
|
-
function useLatestRef(value) {
|
|
37
|
-
const ref = useRef(value);
|
|
38
|
-
useIsomorphicLayoutEffect(() => {
|
|
39
|
-
ref.current = value;
|
|
40
|
-
});
|
|
41
|
-
return ref;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
//#endregion
|
|
45
27
|
//#region src/components/ui/button.tsx
|
|
46
28
|
const variantClasses = {
|
|
47
29
|
default: "cpk-button-default",
|
|
@@ -819,7 +801,7 @@ function ɵuseOwnedCore(ref, create) {
|
|
|
819
801
|
|
|
820
802
|
//#endregion
|
|
821
803
|
//#region package.json
|
|
822
|
-
var version$1 = "2.0.0-rc.
|
|
804
|
+
var version$1 = "2.0.0-rc.44";
|
|
823
805
|
|
|
824
806
|
//#endregion
|
|
825
807
|
//#region src/components/CopilotKitInspector.tsx
|
|
@@ -1108,364 +1090,64 @@ const OpenGenerativeUIToolRenderer = function OpenGenerativeUIToolRenderer(props
|
|
|
1108
1090
|
};
|
|
1109
1091
|
|
|
1110
1092
|
//#endregion
|
|
1111
|
-
//#region src/
|
|
1112
|
-
/**
|
|
1113
|
-
* Draws the lifecycle state of an `a2ui-surface` activity: the failure card,
|
|
1114
|
-
* the host's loading component while building, or the skeleton.
|
|
1115
|
-
*/
|
|
1116
|
-
function A2UILifecycleState({ snapshot, loadingComponent: LoadingComponent }) {
|
|
1117
|
-
const { lifecycle } = snapshot;
|
|
1118
|
-
const details = snapshot.showDebugDetails ? /* @__PURE__ */ jsx(A2UIDebugDetails, {
|
|
1119
|
-
label: snapshot.debugDetailsLabel,
|
|
1120
|
-
open: snapshot.debugDetailsOpen,
|
|
1121
|
-
payload: snapshot.debugPayload
|
|
1122
|
-
}) : null;
|
|
1123
|
-
if (lifecycle.status === "failed") return /* @__PURE__ */ jsxs("div", {
|
|
1124
|
-
className: "cpk-a2ui-recovery-failure",
|
|
1125
|
-
children: [
|
|
1126
|
-
/* @__PURE__ */ jsx("div", {
|
|
1127
|
-
className: "cpk-a2ui-recovery-failure-title",
|
|
1128
|
-
children: ɵA2UI_LIFECYCLE_TEXT$1.failureTitle
|
|
1129
|
-
}),
|
|
1130
|
-
/* @__PURE__ */ jsx("div", {
|
|
1131
|
-
className: "cpk-a2ui-recovery-failure-description",
|
|
1132
|
-
children: ɵA2UI_LIFECYCLE_TEXT$1.failureDescription
|
|
1133
|
-
}),
|
|
1134
|
-
details
|
|
1135
|
-
]
|
|
1136
|
-
});
|
|
1137
|
-
if (lifecycle.status === "building" && LoadingComponent) return /* @__PURE__ */ jsx(LoadingComponent, {});
|
|
1138
|
-
return /* @__PURE__ */ jsx(A2UIGeneratingSkeleton, {
|
|
1139
|
-
label: snapshot.label,
|
|
1140
|
-
tokens: lifecycle.progressTokens,
|
|
1141
|
-
phase: snapshot.progressPhase,
|
|
1142
|
-
children: details
|
|
1143
|
-
});
|
|
1144
|
-
}
|
|
1093
|
+
//#region src/generative-ui/use-standard-ui-fallback.ts
|
|
1145
1094
|
/**
|
|
1146
|
-
*
|
|
1147
|
-
*
|
|
1095
|
+
* The standard UI, loaded once on first use. It is a dynamic import so the
|
|
1096
|
+
* standard components (chart, map, media, ...) stay out of the main entry:
|
|
1097
|
+
* an app that does not use generative UI never downloads them.
|
|
1148
1098
|
*/
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
/* @__PURE__ */ jsxs("div", {
|
|
1157
|
-
style: {
|
|
1158
|
-
position: "relative",
|
|
1159
|
-
overflow: "hidden",
|
|
1160
|
-
borderRadius: 12,
|
|
1161
|
-
border: "1px solid rgba(228,228,231,0.8)",
|
|
1162
|
-
backgroundColor: "#fff",
|
|
1163
|
-
boxShadow: "0 1px 2px rgba(0,0,0,0.04)",
|
|
1164
|
-
padding: "16px 18px 14px"
|
|
1165
|
-
},
|
|
1166
|
-
children: [
|
|
1167
|
-
/* @__PURE__ */ jsxs("div", {
|
|
1168
|
-
style: {
|
|
1169
|
-
display: "flex",
|
|
1170
|
-
alignItems: "center",
|
|
1171
|
-
gap: 8,
|
|
1172
|
-
marginBottom: 12
|
|
1173
|
-
},
|
|
1174
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
1175
|
-
style: {
|
|
1176
|
-
display: "flex",
|
|
1177
|
-
gap: 4
|
|
1178
|
-
},
|
|
1179
|
-
children: [
|
|
1180
|
-
/* @__PURE__ */ jsx(Dot, {}),
|
|
1181
|
-
/* @__PURE__ */ jsx(Dot, {}),
|
|
1182
|
-
/* @__PURE__ */ jsx(Dot, {})
|
|
1183
|
-
]
|
|
1184
|
-
}), /* @__PURE__ */ jsx("div", { style: {
|
|
1185
|
-
width: 64,
|
|
1186
|
-
height: 6,
|
|
1187
|
-
borderRadius: 9999,
|
|
1188
|
-
backgroundColor: "#e4e4e7",
|
|
1189
|
-
opacity: phase >= 1 ? 1 : .4,
|
|
1190
|
-
transition: "opacity 0.5s"
|
|
1191
|
-
} })]
|
|
1192
|
-
}),
|
|
1193
|
-
/* @__PURE__ */ jsx("div", {
|
|
1194
|
-
style: {
|
|
1195
|
-
display: "grid",
|
|
1196
|
-
gap: 7
|
|
1197
|
-
},
|
|
1198
|
-
children: ɵA2UI_SKELETON_ROWS$1.map((row, rowIndex) => /* @__PURE__ */ jsx("div", {
|
|
1199
|
-
style: {
|
|
1200
|
-
display: "flex",
|
|
1201
|
-
alignItems: "center",
|
|
1202
|
-
gap: 6,
|
|
1203
|
-
opacity: phase >= row.phase ? 1 : 0,
|
|
1204
|
-
transition: `opacity 0.4s ${String(row.delay)}s`
|
|
1205
|
-
},
|
|
1206
|
-
children: row.parts.map((part, partIndex) => /* @__PURE__ */ jsx(SkeletonPart, { part }, partIndex))
|
|
1207
|
-
}, rowIndex))
|
|
1208
|
-
}),
|
|
1209
|
-
/* @__PURE__ */ jsx("div", { style: {
|
|
1210
|
-
pointerEvents: "none",
|
|
1211
|
-
position: "absolute",
|
|
1212
|
-
inset: 0,
|
|
1213
|
-
background: "linear-gradient(105deg, transparent 0%, transparent 40%, rgba(255,255,255,0.6) 50%, transparent 60%, transparent 100%)",
|
|
1214
|
-
backgroundSize: "250% 100%",
|
|
1215
|
-
animation: "cpk-a2ui-sweep 3s ease-in-out infinite"
|
|
1216
|
-
} })
|
|
1217
|
-
]
|
|
1218
|
-
}),
|
|
1219
|
-
/* @__PURE__ */ jsxs("div", {
|
|
1220
|
-
style: {
|
|
1221
|
-
display: "flex",
|
|
1222
|
-
alignItems: "center",
|
|
1223
|
-
justifyContent: "center",
|
|
1224
|
-
gap: 8,
|
|
1225
|
-
marginTop: 8
|
|
1226
|
-
},
|
|
1227
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
1228
|
-
style: {
|
|
1229
|
-
fontSize: 12,
|
|
1230
|
-
color: "#a1a1aa",
|
|
1231
|
-
letterSpacing: "0.025em"
|
|
1232
|
-
},
|
|
1233
|
-
children: label
|
|
1234
|
-
}), typeof tokens === "number" && tokens > 0 && /* @__PURE__ */ jsxs("span", {
|
|
1235
|
-
style: {
|
|
1236
|
-
fontSize: 11,
|
|
1237
|
-
color: "#d4d4d8",
|
|
1238
|
-
fontVariantNumeric: "tabular-nums"
|
|
1239
|
-
},
|
|
1240
|
-
children: [
|
|
1241
|
-
"~",
|
|
1242
|
-
tokens.toLocaleString(),
|
|
1243
|
-
" tokens"
|
|
1244
|
-
]
|
|
1245
|
-
})]
|
|
1246
|
-
}),
|
|
1247
|
-
children,
|
|
1248
|
-
/* @__PURE__ */ jsx("style", { children: `
|
|
1249
|
-
@keyframes cpk-a2ui-fade {
|
|
1250
|
-
0%, 100% { opacity: 1; }
|
|
1251
|
-
50% { opacity: 0.5; }
|
|
1252
|
-
}
|
|
1253
|
-
@keyframes cpk-a2ui-sweep {
|
|
1254
|
-
0% { background-position: 250% 0; }
|
|
1255
|
-
100% { background-position: -250% 0; }
|
|
1256
|
-
}
|
|
1257
|
-
` })
|
|
1258
|
-
]
|
|
1259
|
-
});
|
|
1260
|
-
}
|
|
1261
|
-
function A2UIDebugDetails({ label, open, payload }) {
|
|
1262
|
-
return /* @__PURE__ */ jsxs("details", {
|
|
1263
|
-
open,
|
|
1264
|
-
className: "cpk-a2ui-debug-details",
|
|
1265
|
-
children: [/* @__PURE__ */ jsx("summary", {
|
|
1266
|
-
className: "cpk-a2ui-debug-details-summary",
|
|
1267
|
-
children: label
|
|
1268
|
-
}), /* @__PURE__ */ jsx("pre", {
|
|
1269
|
-
className: "cpk-a2ui-debug-details-payload",
|
|
1270
|
-
style: { fontSize: 11 },
|
|
1271
|
-
children: payload
|
|
1272
|
-
})]
|
|
1273
|
-
});
|
|
1274
|
-
}
|
|
1275
|
-
function Dot() {
|
|
1276
|
-
return /* @__PURE__ */ jsx("div", { style: {
|
|
1277
|
-
width: 7,
|
|
1278
|
-
height: 7,
|
|
1279
|
-
borderRadius: "50%",
|
|
1280
|
-
backgroundColor: "#d4d4d8",
|
|
1281
|
-
flexShrink: 0
|
|
1282
|
-
} });
|
|
1283
|
-
}
|
|
1284
|
-
function SkeletonPart({ part }) {
|
|
1285
|
-
if (part === "dot") return /* @__PURE__ */ jsx(Dot, {});
|
|
1286
|
-
if (part === "spacer") return /* @__PURE__ */ jsx("div", { style: { width: 12 } });
|
|
1287
|
-
return /* @__PURE__ */ jsx("div", { style: {
|
|
1288
|
-
width: part.w,
|
|
1289
|
-
height: 7,
|
|
1290
|
-
borderRadius: 9999,
|
|
1291
|
-
backgroundColor: part.bg,
|
|
1292
|
-
animation: `cpk-a2ui-fade 2.4s ease-in-out ${String(part.anim)}s infinite`
|
|
1293
|
-
} });
|
|
1294
|
-
}
|
|
1295
|
-
|
|
1296
|
-
//#endregion
|
|
1297
|
-
//#region src/a2ui/A2UIMessageRenderer.tsx
|
|
1298
|
-
let initialized = false;
|
|
1299
|
-
function ensureInitialized() {
|
|
1300
|
-
if (!initialized) {
|
|
1301
|
-
initializeDefaultCatalog();
|
|
1302
|
-
injectStyles();
|
|
1303
|
-
initialized = true;
|
|
1099
|
+
let standardUIPromise;
|
|
1100
|
+
function loadStandardUI() {
|
|
1101
|
+
if (!standardUIPromise) {
|
|
1102
|
+
standardUIPromise = import("./standard-CSBR4FhM.mjs").then((n) => n.n).then((module) => module.standardUI);
|
|
1103
|
+
standardUIPromise.catch(() => {
|
|
1104
|
+
standardUIPromise = void 0;
|
|
1105
|
+
});
|
|
1304
1106
|
}
|
|
1305
|
-
|
|
1306
|
-
const warnInDevelopment = process.env.NODE_ENV !== "production" ? (message) => console.warn(message) : void 0;
|
|
1307
|
-
/**
|
|
1308
|
-
* The `a2ui-surface` activity carries the WHOLE generative-UI lifecycle on one
|
|
1309
|
-
* stable messageId (OSS-162): pre-paint `status` ("building" | "retrying" |
|
|
1310
|
-
* "failed") with recovery detail, then `a2ui_operations` on paint. Core's
|
|
1311
|
-
* `ɵA2UIActivityController` decides what shows; this renderer draws it and
|
|
1312
|
-
* keeps the surface mounted across the loader → surface hand-off.
|
|
1313
|
-
*/
|
|
1314
|
-
function createA2UIMessageRenderer(options) {
|
|
1315
|
-
const { theme, catalog, loadingComponent, recovery, onAction } = options;
|
|
1316
|
-
return {
|
|
1317
|
-
activityType: ɵA2UI_SURFACE_ACTIVITY_TYPE$1,
|
|
1318
|
-
content: ɵA2UI_SURFACE_CONTENT_SCHEMA$1,
|
|
1319
|
-
render: ({ content, agent }) => {
|
|
1320
|
-
ensureInitialized();
|
|
1321
|
-
const { copilotkit } = useCopilotKit();
|
|
1322
|
-
const [controller] = useState(() => {
|
|
1323
|
-
const created = new ɵA2UIActivityController$1({
|
|
1324
|
-
recovery,
|
|
1325
|
-
warn: warnInDevelopment
|
|
1326
|
-
});
|
|
1327
|
-
created.setContent(content);
|
|
1328
|
-
return created;
|
|
1329
|
-
});
|
|
1330
|
-
const snapshot = useSyncExternalStore(controller.subscribe, controller.getSnapshot, controller.getSnapshot);
|
|
1331
|
-
useEffect(() => {
|
|
1332
|
-
controller.setContent(content);
|
|
1333
|
-
}, [controller, content]);
|
|
1334
|
-
useEffect(() => () => controller.dispose(), [controller]);
|
|
1335
|
-
const markRendered = useCallback(() => controller.markRendered(), [controller]);
|
|
1336
|
-
const groups = useMemo(() => ɵgroupA2UIOperationsBySurface$1(snapshot.operations), [snapshot.operations]);
|
|
1337
|
-
if (snapshot.view === "lifecycle") return /* @__PURE__ */ jsx(A2UILifecycleState, {
|
|
1338
|
-
snapshot,
|
|
1339
|
-
loadingComponent
|
|
1340
|
-
});
|
|
1341
|
-
const surfaces = /* @__PURE__ */ jsx("div", {
|
|
1342
|
-
className: "cpk-a2ui-message-surfaces",
|
|
1343
|
-
children: Array.from(groups.entries()).map(([surfaceId, operations]) => /* @__PURE__ */ jsx(ReactSurfaceHost, {
|
|
1344
|
-
surfaceId,
|
|
1345
|
-
operations,
|
|
1346
|
-
theme,
|
|
1347
|
-
agent,
|
|
1348
|
-
copilotkit,
|
|
1349
|
-
catalog,
|
|
1350
|
-
onAction,
|
|
1351
|
-
onRendered: markRendered
|
|
1352
|
-
}, surfaceId))
|
|
1353
|
-
});
|
|
1354
|
-
const handingOff = snapshot.view === "handoff";
|
|
1355
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
1356
|
-
style: { position: "relative" },
|
|
1357
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
1358
|
-
"aria-hidden": handingOff,
|
|
1359
|
-
style: handingOff ? {
|
|
1360
|
-
position: "absolute",
|
|
1361
|
-
inset: 0,
|
|
1362
|
-
opacity: 0,
|
|
1363
|
-
pointerEvents: "none"
|
|
1364
|
-
} : void 0,
|
|
1365
|
-
children: surfaces
|
|
1366
|
-
}), handingOff && /* @__PURE__ */ jsx(A2UILifecycleState, {
|
|
1367
|
-
snapshot,
|
|
1368
|
-
loadingComponent
|
|
1369
|
-
})]
|
|
1370
|
-
});
|
|
1371
|
-
}
|
|
1372
|
-
};
|
|
1107
|
+
return standardUIPromise;
|
|
1373
1108
|
}
|
|
1374
1109
|
/**
|
|
1375
|
-
*
|
|
1376
|
-
*
|
|
1110
|
+
* The generative UI config of the provider. That is the `generativeUI` prop
|
|
1111
|
+
* when it has a `ui`. Otherwise, when the runtime turns generative UI on, it
|
|
1112
|
+
* is the standard UI for the agents of the runtime, once the standard UI has
|
|
1113
|
+
* loaded, with the other options of the prop (such as `map` or `theme`).
|
|
1114
|
+
* `undefined` while generative UI is off, or still loading.
|
|
1377
1115
|
*/
|
|
1378
|
-
function
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
}), [
|
|
1388
|
-
agent,
|
|
1389
|
-
copilotkit,
|
|
1390
|
-
onAction
|
|
1391
|
-
]),
|
|
1392
|
-
theme,
|
|
1393
|
-
catalog,
|
|
1394
|
-
children: [/* @__PURE__ */ jsx(SurfaceMessageProcessor, {
|
|
1395
|
-
operations,
|
|
1396
|
-
onRendered
|
|
1397
|
-
}), /* @__PURE__ */ jsx(A2UISurfaceOrError, { surfaceId })]
|
|
1398
|
-
})
|
|
1399
|
-
});
|
|
1400
|
-
}
|
|
1401
|
-
/**
|
|
1402
|
-
* Renders the A2UI surface, with an error message above it if processing
|
|
1403
|
-
* failed. A rejected snapshot leaves the surface as it was, so the card the
|
|
1404
|
-
* user already sees stays visible next to the error.
|
|
1405
|
-
* Must be a child of A2UIProvider to access the error state.
|
|
1406
|
-
*/
|
|
1407
|
-
function A2UISurfaceOrError({ surfaceId }) {
|
|
1408
|
-
const error = useA2UIError();
|
|
1409
|
-
return /* @__PURE__ */ jsxs(Fragment$1, { children: [error && /* @__PURE__ */ jsxs("div", {
|
|
1410
|
-
role: "alert",
|
|
1411
|
-
className: "cpk-a2ui-message-error",
|
|
1412
|
-
children: ["A2UI render error: ", error]
|
|
1413
|
-
}), /* @__PURE__ */ jsx(A2UIRenderer, {
|
|
1414
|
-
surfaceId,
|
|
1415
|
-
className: "cpk-a2ui-message-surface"
|
|
1416
|
-
})] });
|
|
1417
|
-
}
|
|
1418
|
-
/**
|
|
1419
|
-
* Applies the surface's operations to the provider's processor, reports each
|
|
1420
|
-
* applied batch to the activity controller, and runs the development
|
|
1421
|
-
* diagnostics. Must be a child of A2UIProvider.
|
|
1422
|
-
*/
|
|
1423
|
-
function SurfaceMessageProcessor({ operations, onRendered }) {
|
|
1424
|
-
const { applyOperations, getSurface } = useA2UIActions();
|
|
1425
|
-
const [diagnostics] = useState(() => warnInDevelopment ? new A2UISurfaceDiagnostics({ warn: warnInDevelopment }) : null);
|
|
1426
|
-
useEffect(() => () => diagnostics?.dispose(), [diagnostics]);
|
|
1116
|
+
function useStandardUIFallback(generativeUI, runtimeInfo) {
|
|
1117
|
+
const fallback = ɵresolveGenerativeUIDefault$1({
|
|
1118
|
+
runtimeEnabled: runtimeInfo?.generativeUIEnabled ?? false,
|
|
1119
|
+
runtimeAgents: runtimeInfo?.generativeUIAgents,
|
|
1120
|
+
hasUI: !!generativeUI?.ui
|
|
1121
|
+
});
|
|
1122
|
+
const active = fallback.active;
|
|
1123
|
+
const agentIds = fallback.active ? fallback.agentIds : void 0;
|
|
1124
|
+
const [standardUI, setStandardUI] = useState();
|
|
1427
1125
|
useEffect(() => {
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1126
|
+
if (!active || standardUI) return;
|
|
1127
|
+
let cancelled = false;
|
|
1128
|
+
loadStandardUI().then((ui) => {
|
|
1129
|
+
if (!cancelled) setStandardUI(ui);
|
|
1130
|
+
}, (error) => {
|
|
1131
|
+
console.error("[generativeUI] could not load the standard UI for the runtime's generative UI:", error);
|
|
1132
|
+
});
|
|
1133
|
+
return () => {
|
|
1134
|
+
cancelled = true;
|
|
1135
|
+
};
|
|
1136
|
+
}, [active, standardUI]);
|
|
1137
|
+
return useMemo(() => {
|
|
1138
|
+
if (generativeUI?.ui) return generativeUI;
|
|
1139
|
+
if (!active || !standardUI) return void 0;
|
|
1140
|
+
return {
|
|
1141
|
+
...generativeUI,
|
|
1142
|
+
ui: standardUI,
|
|
1143
|
+
agentIds: generativeUI?.agentIds ?? agentIds
|
|
1144
|
+
};
|
|
1431
1145
|
}, [
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
diagnostics
|
|
1146
|
+
generativeUI,
|
|
1147
|
+
active,
|
|
1148
|
+
standardUI,
|
|
1149
|
+
agentIds
|
|
1437
1150
|
]);
|
|
1438
|
-
return null;
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
//#endregion
|
|
1442
|
-
//#region src/a2ui/A2UIToolCallRenderer.tsx
|
|
1443
|
-
/**
|
|
1444
|
-
* Registers a no-op renderer for the `render_a2ui` tool call so its raw streamed
|
|
1445
|
-
* args are never surfaced in the transcript.
|
|
1446
|
-
*
|
|
1447
|
-
* The generation skeleton / retry / failure UX is NO LONGER owned here (OSS-162):
|
|
1448
|
-
* the A2UI middleware drives the whole lifecycle on the `a2ui-surface` activity
|
|
1449
|
-
* (one stable messageId, building → retrying → failed → painted), rendered in
|
|
1450
|
-
* place by `createA2UIMessageRenderer`. Owning a skeleton per tool call caused a
|
|
1451
|
-
* duplicate skeleton on retries / multi-call generations and a skeleton that
|
|
1452
|
-
* lingered after the surface painted — both fixed by retiring it here.
|
|
1453
|
-
*
|
|
1454
|
-
* It is a built-in renderer, so a `renderToolCalls` entry or a
|
|
1455
|
-
* `useRenderTool({ name: "render_a2ui" })` hook replaces it, and it never
|
|
1456
|
-
* removes the app's renderers. It is removed when A2UI turns off.
|
|
1457
|
-
*/
|
|
1458
|
-
function A2UIBuiltInToolCallRenderer() {
|
|
1459
|
-
const { copilotkit } = useCopilotKit();
|
|
1460
|
-
useEffect(() => {
|
|
1461
|
-
const renderer = defineToolCallRenderer({
|
|
1462
|
-
name: ɵRENDER_A2UI_TOOL_NAME$1,
|
|
1463
|
-
args: z.any(),
|
|
1464
|
-
render: () => /* @__PURE__ */ jsx(Fragment$1, {})
|
|
1465
|
-
});
|
|
1466
|
-
return copilotkit.ɵaddBuiltInRenderToolCall(renderer);
|
|
1467
|
-
}, [copilotkit]);
|
|
1468
|
-
return null;
|
|
1469
1151
|
}
|
|
1470
1152
|
|
|
1471
1153
|
//#endregion
|
|
@@ -1537,8 +1219,8 @@ var CopilotKitCoreReact = class extends CopilotKitCore$1 {
|
|
|
1537
1219
|
this._renderers.removeHookToolCall(name, agentId);
|
|
1538
1220
|
}
|
|
1539
1221
|
/**
|
|
1540
|
-
* @internal Add a renderer for a tool a built-in feature owns
|
|
1541
|
-
* generative UI). Prop and hook renderers with the same name and agent win
|
|
1222
|
+
* @internal Add a renderer for a tool a built-in feature owns
|
|
1223
|
+
* (generative UI). Prop and hook renderers with the same name and agent win
|
|
1542
1224
|
* over it, and `setRenderToolCalls` never removes it.
|
|
1543
1225
|
*
|
|
1544
1226
|
* @returns A function that removes the renderer.
|
|
@@ -1634,7 +1316,7 @@ function useStableArrayProp(prop, name) {
|
|
|
1634
1316
|
return value;
|
|
1635
1317
|
}
|
|
1636
1318
|
/** Provide a shared core instance and synchronize runtime, tool, and UI configuration. */
|
|
1637
|
-
const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY_HEADERS, credentials, nonce, injectStyles = true, messageFilter, publicApiKey, publicLicenseKey, properties = EMPTY_PROPERTIES, agents__unsafe_dev_only: agents = EMPTY_AGENTS, selfManagedAgents = EMPTY_AGENTS, renderToolCalls, renderActivityMessages, renderCustomMessages, markdownRenderer, frontendTools, humanInTheLoop, openGenerativeUI, enableInspector, agentId, showIntelligenceIndicator = true, useSingleEndpoint, onError,
|
|
1319
|
+
const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY_HEADERS, credentials, nonce, injectStyles = true, messageFilter, publicApiKey, publicLicenseKey, properties = EMPTY_PROPERTIES, agents__unsafe_dev_only: agents = EMPTY_AGENTS, selfManagedAgents = EMPTY_AGENTS, renderToolCalls, renderActivityMessages, renderCustomMessages, markdownRenderer, frontendTools, humanInTheLoop, openGenerativeUI, enableInspector, agentId, showIntelligenceIndicator = true, useSingleEndpoint, onError, generativeUI, mcpApps, defaultThrottleMs, debug, learning }) => {
|
|
1638
1320
|
const learningConfig = useMemo(() => ɵtoLearningConfig$1(learning), [learning]);
|
|
1639
1321
|
const [shouldRenderInspector, setShouldRenderInspector] = useState(false);
|
|
1640
1322
|
const [inspectorVisible, setInspectorVisible] = useState(false);
|
|
@@ -1648,18 +1330,12 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
|
|
|
1648
1330
|
}, [enableInspector]);
|
|
1649
1331
|
const [inspectorOpenRequest, setInspectorOpenRequest] = useState(null);
|
|
1650
1332
|
const [runtimeInfo, setRuntimeInfo] = useState(null);
|
|
1651
|
-
const runtimeA2UIEnabled = runtimeInfo?.a2uiEnabled ?? false;
|
|
1652
|
-
const runtimeOpenGenUIEnabled = runtimeInfo?.openGenerativeUIEnabled ?? false;
|
|
1653
|
-
const [catalogToggleVersion, setCatalogToggleVersion] = useState(0);
|
|
1654
1333
|
const openGenUIActive = ɵisOpenGenerativeUIActive$1({
|
|
1655
|
-
runtimeEnabled:
|
|
1334
|
+
runtimeEnabled: runtimeInfo?.openGenerativeUIEnabled ?? false,
|
|
1656
1335
|
configured: !!openGenerativeUI
|
|
1657
1336
|
});
|
|
1658
|
-
const
|
|
1659
|
-
|
|
1660
|
-
hasCatalog: !!a2ui?.catalog
|
|
1661
|
-
}).active;
|
|
1662
|
-
const generativeUIActive = !!generativeUI?.ui;
|
|
1337
|
+
const generativeUIConfig = useStandardUIFallback(generativeUI, runtimeInfo);
|
|
1338
|
+
const generativeUIActive = !!generativeUIConfig?.ui;
|
|
1663
1339
|
const runtimeLicenseStatus = runtimeInfo?.licenseStatus;
|
|
1664
1340
|
const runtimeEntitlements = runtimeInfo?.runtimeEntitlements;
|
|
1665
1341
|
const runtimeEntitlementRetryPending = runtimeInfo?.runtimeEntitlementRetryPending ?? false;
|
|
@@ -1680,23 +1356,9 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
|
|
|
1680
1356
|
const renderCustomMessagesList = useStableArrayProp(renderCustomMessages, "renderCustomMessages");
|
|
1681
1357
|
const renderActivityMessagesList = useStableArrayProp(renderActivityMessages, "renderActivityMessages");
|
|
1682
1358
|
const copilotkitRef = useRef(null);
|
|
1683
|
-
const rawCatalog = a2ui?.catalog;
|
|
1684
|
-
const filteredCatalog = useMemo(() => {
|
|
1685
|
-
if (!rawCatalog) return rawCatalog;
|
|
1686
|
-
if (!(rawCatalog instanceof Catalog)) return rawCatalog;
|
|
1687
|
-
const core = copilotkitRef.current;
|
|
1688
|
-
return filterCatalog(rawCatalog, (name) => core ? core.isCatalogComponentEnabled(name) : true);
|
|
1689
|
-
}, [rawCatalog, catalogToggleVersion]);
|
|
1690
1359
|
const mcpAppsAllowSameOrigin = mcpApps?.allowSameOriginFallback === true;
|
|
1691
1360
|
const allActivityRenderers = useMemo(() => ɵassembleActivityRenderers$1({
|
|
1692
1361
|
app: renderActivityMessagesList,
|
|
1693
|
-
a2ui: a2uiActive ? createA2UIMessageRenderer({
|
|
1694
|
-
theme: a2ui?.theme ?? viewerTheme,
|
|
1695
|
-
catalog: filteredCatalog,
|
|
1696
|
-
loadingComponent: a2ui?.loadingComponent,
|
|
1697
|
-
recovery: a2ui?.recovery,
|
|
1698
|
-
onAction: a2ui?.onAction
|
|
1699
|
-
}) : void 0,
|
|
1700
1362
|
builtIns: [
|
|
1701
1363
|
{
|
|
1702
1364
|
activityType: MCPAppsActivityType,
|
|
@@ -1713,11 +1375,8 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
|
|
|
1713
1375
|
]
|
|
1714
1376
|
}), [
|
|
1715
1377
|
renderActivityMessagesList,
|
|
1716
|
-
a2uiActive,
|
|
1717
1378
|
openGenUIActive,
|
|
1718
1379
|
generativeUIActive,
|
|
1719
|
-
a2ui,
|
|
1720
|
-
filteredCatalog,
|
|
1721
1380
|
mcpAppsAllowSameOrigin
|
|
1722
1381
|
]);
|
|
1723
1382
|
const resolvedConfig = useMemo(() => ɵresolveProviderConfig$1({
|
|
@@ -1727,8 +1386,7 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
|
|
|
1727
1386
|
useSingleEndpoint,
|
|
1728
1387
|
agents__unsafe_dev_only: agents,
|
|
1729
1388
|
selfManagedAgents,
|
|
1730
|
-
properties
|
|
1731
|
-
a2uiCatalog: a2ui?.catalog
|
|
1389
|
+
properties
|
|
1732
1390
|
}), [
|
|
1733
1391
|
runtimeUrl,
|
|
1734
1392
|
publicApiKey,
|
|
@@ -1736,8 +1394,7 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
|
|
|
1736
1394
|
useSingleEndpoint,
|
|
1737
1395
|
agents,
|
|
1738
1396
|
selfManagedAgents,
|
|
1739
|
-
properties
|
|
1740
|
-
a2ui?.catalog
|
|
1397
|
+
properties
|
|
1741
1398
|
]);
|
|
1742
1399
|
const resolvedPublicKey = resolvedConfig.publicKey;
|
|
1743
1400
|
const loggedDiagnosticsRef = useRef(/* @__PURE__ */ new Set());
|
|
@@ -1807,22 +1464,7 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
|
|
|
1807
1464
|
onError,
|
|
1808
1465
|
learning: learningConfig
|
|
1809
1466
|
}));
|
|
1810
|
-
const generativeUIRuntime = useGenerativeUIRoot(copilotkit,
|
|
1811
|
-
const [a2uiCatalogController] = useState(() => new A2UICatalogController(copilotkit, basicCatalog));
|
|
1812
|
-
useEffect(() => a2uiCatalogController.subscribe(() => setCatalogToggleVersion((v) => v + 1)), [a2uiCatalogController]);
|
|
1813
|
-
useEffect(() => {
|
|
1814
|
-
a2uiCatalogController.update({
|
|
1815
|
-
enabled: a2uiActive,
|
|
1816
|
-
catalog: rawCatalog,
|
|
1817
|
-
includeSchema: a2ui?.includeSchema
|
|
1818
|
-
});
|
|
1819
|
-
}, [
|
|
1820
|
-
a2uiCatalogController,
|
|
1821
|
-
a2uiActive,
|
|
1822
|
-
rawCatalog,
|
|
1823
|
-
a2ui?.includeSchema
|
|
1824
|
-
]);
|
|
1825
|
-
useEffect(() => () => a2uiCatalogController.dispose(), [a2uiCatalogController]);
|
|
1467
|
+
const generativeUIRuntime = useGenerativeUIRoot(copilotkit, generativeUIConfig);
|
|
1826
1468
|
useEffect(() => {
|
|
1827
1469
|
const syncRuntimeInfo = () => setRuntimeInfo(copilotkit.ɵruntimeInfo);
|
|
1828
1470
|
const unsubscribe = copilotkit.ɵsubscribeToRuntimeInfo(syncRuntimeInfo);
|
|
@@ -1944,7 +1586,6 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
|
|
|
1944
1586
|
children: /* @__PURE__ */ jsxs(LicenseContext.Provider, {
|
|
1945
1587
|
value: licenseState.context,
|
|
1946
1588
|
children: [
|
|
1947
|
-
a2uiActive && /* @__PURE__ */ jsx(A2UIBuiltInToolCallRenderer, {}),
|
|
1948
1589
|
generativeUIActive && /* @__PURE__ */ jsx(GenerativeUIToolCallRenderer, {}),
|
|
1949
1590
|
/* @__PURE__ */ jsx(MarkdownRendererProvider, {
|
|
1950
1591
|
renderer: markdownRenderer,
|
|
@@ -8242,5 +7883,5 @@ const WildcardToolCallRender = defineToolCallRenderer({
|
|
|
8242
7883
|
});
|
|
8243
7884
|
|
|
8244
7885
|
//#endregion
|
|
8245
|
-
export { A2UI_FENCE_LANGUAGE, ACTIVITY_HISTORY_METADATA, AGUIConnectNotImplementedError, AGUIEnforcementLimitError, AGUIError, AGUI_METADATA_KEY, AbstractAgent, ActivityDeltaEventSchema, ActivityMessageSchema, ActivitySnapshotEventSchema, AddOperationSchema, AgentCapabilitiesSchema, AgentRegistry, AgentThreadLockedError, AssistantMessageSchema, AttributableSchema, AudioInputContentSchema, AudioInputPartSchema, AudioPartSchema, AudioRecorderError, BackwardCompatibility_0_0_39, BackwardCompatibility_0_0_45, BackwardCompatibility_0_0_57, BaseEventSchema, BaseMessageSchema, CompatibilityBoundary, ContentPartSchema, ContextSchema, ContextStore, CopilotChat, CopilotChatAssistantMessage_default as CopilotChatAssistantMessage, CopilotChatAttachmentQueue, CopilotChatAttachmentRenderer, CopilotChatAudioRecorder, CopilotChatConfigurationProvider, CopilotChatDefaultLabels, CopilotChatInput_default as CopilotChatInput, CopilotChatMessageView, CopilotChatReasoningMessage_default as CopilotChatReasoningMessage, CopilotChatSuggestionPill, CopilotChatSuggestionView, CopilotChatToggleButton, DefaultCloseIcon as CopilotChatToggleButtonCloseIcon, DefaultOpenIcon as CopilotChatToggleButtonOpenIcon, CopilotChatToolCallGroup, CopilotChatToolCallsView, CopilotChatUserMessage_default as CopilotChatUserMessage, CopilotChatView_default as CopilotChatView, CopilotChatWorkSummary, CopilotKit, CopilotKitCore, CopilotKitCoreErrorCode, CopilotKitCoreReact, CopilotKitCoreRuntimeConnectionStatus, CopilotKitHeaderResolutionError, CopilotKitInspector, CopilotKitProvider, CopilotKitStyles, CopilotModalHeader, CopilotPopup, CopilotPopupView, CopilotSidebar, CopilotSidebarView, CopilotThreadsDrawer, CopyOperationSchema, CustomEventSchema, DEFAULT_MAX_ENFORCED_ENTRIES, DEFAULT_OPEN_GENERATIVE_UI_DESIGN_SKILL, DataSourceSchema, DebugLogger, DeveloperMessageSchema, DocumentInputContentSchema, DocumentInputPartSchema, DocumentPartSchema, EventSchema, EventSchemas, EventType, EventTypeSchema, ExecutionCapabilitiesSchema, FileSourceSchema, FilterToolCallsMiddleware, FunctionCallSchema, FunctionMiddleware, GENERATE_SANDBOXED_UI_TOOL_NAME, GenerateSandboxedUiArgsSchema, HttpAgent, HumanInTheLoopCapabilitiesSchema, INSPECTOR_THREAD_BRIDGE_PLUGIN_ID, INTELLIGENCE_TURN_HEAD, INTERRUPT_EVENT_NAME, IdentityCapabilitiesSchema, ImageInputContentSchema, ImageInputPartSchema, ImagePartSchema, InputContentDataSourceSchema, InputContentSchema, InputContentSourceSchema, InputContentUrlSourceSchema, IntelligenceAgent, IntelligenceIndicator, IntelligenceIndicatorView, InterruptSchema, JsonPatchOperationSchema, JsonPatchSchema, JsonPointerSchema, MCPAppsActivityContentSchema, MCPAppsActivityRenderer, MCPAppsActivityType, MEMORY_ERROR_REGISTRY, MarkdownRendererProvider, MemoryError, MessageSchema, MessagesSnapshotEventSchema, MetadataSchema, Middleware, MoveOperationSchema, MultiAgentCapabilitiesSchema, MultimodalCapabilitiesSchema, MultimodalInputCapabilitiesSchema, MultimodalOutputCapabilitiesSchema, OPEN_GENERATIVE_UI_ACTIVITY_TYPE, OpenGenerativeUIActivityRenderer, OpenGenerativeUIActivityType, OpenGenerativeUIContentSchema, OpenGenerativeUIToolRenderer, OptionalMetadataSchema, OutputCapabilitiesSchema, PROTOCOL_VERSION, PartSourceSchema, ProxiedCopilotRuntimeAgent, RawEventSchema, ReasoningCapabilitiesSchema, ReasoningEncryptedValueEventSchema, ReasoningEncryptedValueSubtypeSchema, ReasoningEndEventSchema, ReasoningMessageChunkEventSchema, ReasoningMessageContentEventSchema, ReasoningMessageEndEventSchema, ReasoningMessageSchema, ReasoningMessageStartEventSchema, ReasoningStartEventSchema, RemoveOperationSchema, ReplaceOperationSchema, ResumeEntrySchema, RoleSchema, RunAgentInputSchema, RunErrorEventSchema, RunFinishedCancelledOutcomeSchema, RunFinishedEventSchema, RunFinishedInterruptOutcomeSchema, RunFinishedOutcomeSchema, RunFinishedSuccessOutcomeSchema, RunHandler, RunStartedEventSchema, SandboxFunctionsContext, StateCapabilitiesSchema, StateDeltaEventSchema, StateManager, StateSchema, StateSnapshotEventSchema, StepFinishedEventSchema, StepStartedEventSchema, StreamingMarkdownDefaultRenderer, SubagentErrorEventSchema, SubagentFinishedEventSchema, SubagentFinishedOutcomeSchema, SubagentFinishedSuccessOutcomeSchema, SubagentFinishedSuspendedOutcomeSchema, SubagentInfoSchema, SubagentRunIdSchema, SubagentStartedEventSchema, SuggestionEngine, SystemMessageSchema, TestOperationSchema, TextInputContentSchema, TextMessageChunkEventSchema, TextMessageContentEventSchema, TextMessageEndEventSchema, TextMessageRoleSchema, TextMessageStartEventSchema, TextPartSchema, TokenUsageSchema, ToolCallArgsEventSchema, ToolCallChunkEventSchema, ToolCallEndEventSchema, ToolCallResultEventSchema, ToolCallSchema, ToolCallStartEventSchema, ToolCallStatus, ToolMessageSchema, ToolSchema, ToolsCapabilitiesSchema, TranscriptionError, TranscriptionErrorCode, TransportCapabilitiesSchema, UrlSourceSchema, UseAgentUpdate, UserMessageSchema, VideoInputContentSchema, VideoInputPartSchema, VideoPartSchema, WebMCPRegistry, 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, ɵA2UIActivityController, ɵA2UI_DEFAULT_SURFACE_ID, ɵA2UI_LIFECYCLE_TEXT, ɵA2UI_OPERATIONS_KEY, ɵA2UI_PAINT_FALLBACK_MS, ɵA2UI_RECOVERY_DEFAULTS, ɵA2UI_ROOT_COMPONENT_ID, ɵA2UI_SKELETON_ROWS, ɵA2UI_SURFACE_ACTIVITY_TYPE, ɵA2UI_SURFACE_CONTENT_SCHEMA, ɵALL_AGENT_UPDATES, ɵAgentResolver, ɵAttachmentQueue, ɵAudioRecorder, ɵAudioRecorderError, ɵCOMPOSER_DEFAULT_MAX_ROWS, ɵCOPILOTKIT_FEATURES, ɵCOPILOT_CLOUD_PUBLIC_API_KEY_HEADER, ɵCOPILOT_CLOUD_RUNTIME_URL, ɵCOPY_FEEDBACK_RESET_MS, ɵChatConfigurationStore, ɵChatConnection, ɵChatSubmitter, ɵComposerAutosize, ɵComposerController, ɵCopyFeedback, ɵDockedSidebar, ɵDockedSidebarRegistry, ɵExitPresence, ɵFEEDBACK_COMMENT_CLOSE_DELAY_MS, ɵFeedbackCommentController, ɵFreshThreadId, ɵGENERATE_SANDBOXED_UI_ARGS_SCHEMA, ɵHITL_ABORTED_MESSAGE, ɵHOVER_MENU_CLOSE_DELAY_MS, ɵHoverMenuController, ɵHumanInTheLoopRegistry, ɵINLINE_FEATURE_WARNING_STYLE, ɵInspectorThreadOverride, ɵInterruptController, ɵInterruptExpiredError, ɵInterruptState, ɵKEYBOARD_OPEN_THRESHOLD_PX, ɵLICENSE_BANNER_OFFSET, ɵLICENSE_BANNER_STYLE, ɵLearningAutoStarter, ɵMAX_SOCKET_RETRIES, ɵMESSAGE_FEEDBACK_EVENT_NAME, ɵMESSAGE_FEEDBACK_MAX_COMMENT_LENGTH, ɵMOBILE_MAX_WIDTH_QUERY, ɵMessageViewModel, ɵOPEN_GENERATIVE_UI_CONTENT_SCHEMA, ɵOPEN_GENERATIVE_UI_DESIGN_CONTEXT_DESCRIPTION, ɵOPEN_GENERATIVE_UI_SANDBOX_FUNCTIONS_CONTEXT_DESCRIPTION, ɵOpenGenerativeUIController, ɵPLACEHOLDER_CYCLE_MS, ɵPOPUP_ANIMATION_MS, ɵPOPUP_DEFAULT_HEIGHT, ɵPOPUP_DEFAULT_WIDTH, ɵPlaceholderCycler, ɵRENDER_A2UI_TOOL_NAME, ɵRESIZE_SETTLE_MS, ɵRUNTIME_PROBE_TIMEOUT_MS, ɵReasoningDisclosure, ɵRendererRegistry, ɵRuntimeInfoStore, ɵSCROLL_BOTTOM_THRESHOLD_PX, ɵSIDEBAR_DEFAULT_WIDTH, ɵSIDEBAR_TRANSITION_MS, ɵSTABLE_ARRAY_WARNINGS, ɵStickToBottom, ɵTAB_STOP_SELECTOR, ɵTHREAD_REQUEST_TIMEOUT_MS, ɵTOOL_CALL_STATUS_ICONS, ɵTOOL_CALL_STATUS_LABEL_KEYS, ɵTRANSCRIPTION_ERROR_TIMEOUT_MS, ɵThreadSelection, ɵThreadSwitchCoordinator, ɵThreadsController, ɵadaptDefaultToolCallRenderProps, ɵaddOpenGenerativeUIContexts, ɵagentUpdateHandlers, ɵappendTranscript, ɵassembleActivityRenderers, ɵassembleHumanInTheLoop, ɵassembleProviderRegistry, ɵassembleProviderToolRenderers, ɵassembleProviderTools, ɵbindDialogFocus, ɵbindPopupDismiss, ɵbindSuggestionsConfig, ɵbuildHumanInTheLoopTool, ɵbuildLearnFromUserActionPayload, ɵbuildOpenGenerativeUIContexts, ɵbuildToolCallRenderProps, ɵbuildUserMessage, ɵbuildUserMessageContent, ɵcanPreviewDocument, ɵclampSlashIndex, ɵclearAgentInterruptState, ɵclearAgentThreadCursors, ɵcn, ɵcomponentToolDescription, ɵcomposerButtonState, ɵcopilotIconSvgAttributes, ɵcopilotIcons, ɵcountFailedToolCalls, ɵcreateChatSubmitter, ɵcreateComposerAutosize, ɵcreateDockedSidebar, ɵcreateExitPresence, ɵcreateLastUserMessageTracker, ɵcreateMemoryStore, ɵcreateMessageViewModel, ɵcreateObjectUrlFromSource, ɵcreateOpenGenerativeUITool, ɵcreateStickToBottom, ɵcreateThreadSelectors, ɵcreateThreadStore, ɵcreateThreadsDrawerActions, ɵcreateWaveformRenderer, ɵdecodeTextSource, ɵdeduplicateMessages, ɵdescribeActivityRendererFailure, ɵdescribeUnrenderedToolCalls, ɵdiagnoseMissingSurface, ɵdiagnoseUnpaintedSurface, ɵdiagnoseUnresolvedRoot, ɵdimensionToCss, ɵdockedSidebarRegistryFor, ɵduplicateMessagesWarning, ɵextractCompleteStyles, ɵfilterCommands, ɵfindActivityRenderer, ɵfindChatInput, ɵfindToolMessage, ɵfitTextareaHeight, ɵflattenCommandItems, ɵflattenToolsMenuForDisplay, ɵflattenUserMessageContent, ɵformatA2UIDebugPayload, ɵformatA2UIRetryLabel, ɵformatCountLabel, ɵformatLabel, ɵformatReasoningDuration, ɵformatReasoningDurationLabel, ɵformatToolNames, ɵformatWorkDuration, ɵgetA2UIOperationSurfaceId, ɵgetA2UIOperations, ɵgetA2UIProgressPhase, ɵgetAgentCapabilities, ɵgetAgentInterruptState, ɵgetAgentResolver, ɵgetArgumentPreview, ɵgetBranchNavState, ɵgetChatViewState, ɵgetCustomMessageRenderProps, ɵgetInlineFeatureWarningSpec, ɵgetLastUserMessageId, ɵgetLatestTurnKey, ɵgetLicenseBannerSpec, ɵgetMessageFeedback, ɵgetMessageFeedbackControls, ɵgetMessageRunStateSnapshot, ɵgetReasoningHeaderLabel, ɵgetThreadsDrawerElementProps, ɵgetToolCallBadge, ɵgetToolCallGroupState, ɵgetToolCallLayouts, ɵgetToolCallPreview, ɵgetToolCallRendererNames, ɵgetToolCallRowStatus, ɵgetToolCallStatus, ɵgetToolResults, ɵgetTurnWork, ɵgetUserMessageMediaFilename, ɵgetUserMessageMediaParts, ɵgetWorkOpenState, ɵgetWorkSummaryText, ɵgroupA2UIOperationsBySurface, ɵhasAssistantMessageText, ɵhitlRenderProps, ɵimplementsConnect, ɵinitialKeyboardState, ɵinspectorKiteFill, ɵinspectorKiteIcon, ɵinspectorShortcuts, ɵisContentPart, ɵisContentScrolledToBottom, ɵisCopilotKitFeature, ɵisFocusVisible, ɵisHttpAgent, ɵisLearningFeedbackEnabled, ɵisMobileViewport, ɵisOpenGenerativeUIActive, ɵisOwnFeedbackThumb, ɵisRetryableMemoryStatus, ɵisScrolledToBottom, ɵisTurnWorkOpen, ɵisTurnWorking, ɵjoinPhoenixChannel$, ɵloadWebsandbox, ɵmapMemoryMetadataEvent, ɵmatchActivityRenderer, ɵmeasureTextarea, ɵmemoryAdapterEvents, ɵmemoryDomainEvents, ɵmemoryReducer, ɵmemoryRestEvents, ɵmessagesFingerprint, ɵmorphViewTransition, ɵnextSlashIndex, ɵnextTabStop, ɵnormalizeAutoScroll, ɵnormalizeToolCallStatus, ɵnormalizeToolsMenu, ɵobservePhoenixEvent$, ɵobservePhoenixJoinOutcome$, ɵobservePhoenixSocketHealth$, ɵobservePhoenixSocketSignals$, ɵparseSlashQuery, ɵparseToolCallArguments, ɵphoenixChannel$, ɵphoenixSocket$, ɵpinMessageToTop, ɵpluralize, ɵprocessPartialHtml, ɵprojectThread, ɵpublicKeyHeaderDefaults, ɵreadA2UILifecycle, ɵreadKeyboardState, ɵrecordAnnotation, ɵrecordWorkTime, ɵregisterFrontendTools, ɵreportProviderConfigDiagnostics, ɵreserveLicenseBannerOffset, ɵresetAgentThreadBaseline, ɵresetMessageFeedbackCache, ɵresolveA2UIActivation, ɵresolveA2UIDebugExposure, ɵresolveActivityRenderer, ɵresolveAgentId, ɵresolveAgentThreadId, ɵresolveChatNotice, ɵresolveComposerKey, ɵresolveCustomMessageRenderContext, ɵresolveCustomMessageRenderers, ɵresolveLicenseState, ɵresolveProviderConfig, ɵresolveSlashKey, ɵresolveThreadsLicense, ɵresolveToolCallAgentId, ɵresolveToolCallRenderer, ɵrmsAmplitude, ɵrunA2UIAction, ɵrunMcpFollowUp, ɵselectFetchMoreError, ɵselectHasNextPage, ɵselectIsFetchingNextPage, ɵselectIsMutating, ɵselectMemories, ɵselectMemoriesAvailable, ɵselectMemoriesError, ɵselectMemoriesIsLoading, ɵselectMemoriesIsMutating, ɵselectMemoriesRealtimeStatus, ɵselectThreads, ɵselectThreadsError, ɵselectThreadsIsLoading, ɵserializeContextValue, ɵsetMessageFeedback, ɵshallowEqualRecord, ɵshouldShowAssistantToolbar, ɵshouldShowMessageCursor, ɵshowsComposerDisclaimer, ɵsnapshotAgentState, ɵstableArrayPropWarning, ɵstopAgentWithFallback, ɵstringifyToolCallAttr, ɵstringifyToolCallPayload, ɵsubscribeToAgentErrors, ɵsubscribeToAgentSuggestions, ɵsubscribeToAgentUpdates, ɵsubscribeToLearningFeedbackEnabled, ɵsubscribeToMessageFeedback, ɵsurfaceHasRenderableContent, ɵsyncRecorderToMode, ɵthreadAdapterEvents, ɵtoA2UIClientEvent, ɵtoDefaultToolCallStatus, ɵtoDrawerThread, ɵtoLearningConfig, ɵtoolCallAppearance, ɵtoolRendererShapeChanged, ɵtranscribeAudio, ɵtranscriptionErrorMessageKey, ɵtranscriptionErrorNotice, ɵvalidateAgentBinding, ɵwaitForActiveRun, ɵwatchElementHeight, ɵwatchElementWidth, ɵwatchKeyboardState, ɵwatchMobileViewport, ɵwithHeaderDefaults };
|
|
7886
|
+
export { A2UI_FENCE_LANGUAGE, ACTIVITY_HISTORY_METADATA, AGUIConnectNotImplementedError, AGUIEnforcementLimitError, AGUIError, AGUI_METADATA_KEY, AbstractAgent, ActivityDeltaEventSchema, ActivityMessageSchema, ActivitySnapshotEventSchema, AddOperationSchema, AgentCapabilitiesSchema, AgentRegistry, AgentThreadLockedError, AssistantMessageSchema, AttributableSchema, AudioInputContentSchema, AudioInputPartSchema, AudioPartSchema, AudioRecorderError, BackwardCompatibility_0_0_39, BackwardCompatibility_0_0_45, BackwardCompatibility_0_0_57, BaseEventSchema, BaseMessageSchema, CompatibilityBoundary, ContentPartSchema, ContextSchema, ContextStore, CopilotChat, CopilotChatAssistantMessage_default as CopilotChatAssistantMessage, CopilotChatAttachmentQueue, CopilotChatAttachmentRenderer, CopilotChatAudioRecorder, CopilotChatConfigurationProvider, CopilotChatDefaultLabels, CopilotChatInput_default as CopilotChatInput, CopilotChatMessageView, CopilotChatReasoningMessage_default as CopilotChatReasoningMessage, CopilotChatSuggestionPill, CopilotChatSuggestionView, CopilotChatToggleButton, DefaultCloseIcon as CopilotChatToggleButtonCloseIcon, DefaultOpenIcon as CopilotChatToggleButtonOpenIcon, CopilotChatToolCallGroup, CopilotChatToolCallsView, CopilotChatUserMessage_default as CopilotChatUserMessage, CopilotChatView_default as CopilotChatView, CopilotChatWorkSummary, CopilotKit, CopilotKitCore, CopilotKitCoreErrorCode, CopilotKitCoreReact, CopilotKitCoreRuntimeConnectionStatus, CopilotKitHeaderResolutionError, CopilotKitInspector, CopilotKitProvider, CopilotKitStyles, CopilotModalHeader, CopilotPopup, CopilotPopupView, CopilotSidebar, CopilotSidebarView, CopilotThreadsDrawer, CopyOperationSchema, CustomEventSchema, DEFAULT_MAX_ENFORCED_ENTRIES, DEFAULT_OPEN_GENERATIVE_UI_DESIGN_SKILL, DataSourceSchema, DebugLogger, DeveloperMessageSchema, DocumentInputContentSchema, DocumentInputPartSchema, DocumentPartSchema, EventSchema, EventSchemas, EventType, EventTypeSchema, ExecutionCapabilitiesSchema, FileSourceSchema, FilterToolCallsMiddleware, FunctionCallSchema, FunctionMiddleware, GENERATE_SANDBOXED_UI_TOOL_NAME, GenerateSandboxedUiArgsSchema, HttpAgent, HumanInTheLoopCapabilitiesSchema, INSPECTOR_THREAD_BRIDGE_PLUGIN_ID, INTELLIGENCE_TURN_HEAD, INTERRUPT_EVENT_NAME, IdentityCapabilitiesSchema, ImageInputContentSchema, ImageInputPartSchema, ImagePartSchema, InputContentDataSourceSchema, InputContentSchema, InputContentSourceSchema, InputContentUrlSourceSchema, IntelligenceAgent, IntelligenceIndicator, IntelligenceIndicatorView, InterruptSchema, JsonPatchOperationSchema, JsonPatchSchema, JsonPointerSchema, MCPAppsActivityContentSchema, MCPAppsActivityRenderer, MCPAppsActivityType, MEMORY_ERROR_REGISTRY, MarkdownRendererProvider, MemoryError, MessageSchema, MessagesSnapshotEventSchema, MetadataSchema, Middleware, MoveOperationSchema, MultiAgentCapabilitiesSchema, MultimodalCapabilitiesSchema, MultimodalInputCapabilitiesSchema, MultimodalOutputCapabilitiesSchema, OPEN_GENERATIVE_UI_ACTIVITY_TYPE, OpenGenerativeUIActivityRenderer, OpenGenerativeUIActivityType, OpenGenerativeUIContentSchema, OpenGenerativeUIToolRenderer, OptionalMetadataSchema, OutputCapabilitiesSchema, PROTOCOL_VERSION, PartSourceSchema, ProxiedCopilotRuntimeAgent, RawEventSchema, ReasoningCapabilitiesSchema, ReasoningEncryptedValueEventSchema, ReasoningEncryptedValueSubtypeSchema, ReasoningEndEventSchema, ReasoningMessageChunkEventSchema, ReasoningMessageContentEventSchema, ReasoningMessageEndEventSchema, ReasoningMessageSchema, ReasoningMessageStartEventSchema, ReasoningStartEventSchema, RemoveOperationSchema, ReplaceOperationSchema, ResumeEntrySchema, RoleSchema, RunAgentInputSchema, RunErrorEventSchema, RunFinishedCancelledOutcomeSchema, RunFinishedEventSchema, RunFinishedInterruptOutcomeSchema, RunFinishedOutcomeSchema, RunFinishedSuccessOutcomeSchema, RunHandler, RunStartedEventSchema, SandboxFunctionsContext, StateCapabilitiesSchema, StateDeltaEventSchema, StateManager, StateSchema, StateSnapshotEventSchema, StepFinishedEventSchema, StepStartedEventSchema, StreamingMarkdownDefaultRenderer, SubagentErrorEventSchema, SubagentFinishedEventSchema, SubagentFinishedOutcomeSchema, SubagentFinishedSuccessOutcomeSchema, SubagentFinishedSuspendedOutcomeSchema, SubagentInfoSchema, SubagentRunIdSchema, SubagentStartedEventSchema, SuggestionEngine, SystemMessageSchema, TestOperationSchema, TextInputContentSchema, TextMessageChunkEventSchema, TextMessageContentEventSchema, TextMessageEndEventSchema, TextMessageRoleSchema, TextMessageStartEventSchema, TextPartSchema, TokenUsageSchema, ToolCallArgsEventSchema, ToolCallChunkEventSchema, ToolCallEndEventSchema, ToolCallResultEventSchema, ToolCallSchema, ToolCallStartEventSchema, ToolCallStatus, ToolMessageSchema, ToolSchema, ToolsCapabilitiesSchema, TranscriptionError, TranscriptionErrorCode, TransportCapabilitiesSchema, UrlSourceSchema, UseAgentUpdate, UserMessageSchema, VideoInputContentSchema, VideoInputPartSchema, VideoPartSchema, WebMCPRegistry, WildcardToolCallRender, aggregateTokenUsage, authoritativeActivityTypes, buildResumeArray, classifySurfaceCards, compactEvents, completePartialMarkdown, contentHasMedia, contentToText, convertToLegacyEvents, createActionGroup, createDebugLogger, createEffect, createInspectorThreadRequestId, createReducer, createSelector, createStore, defaultApplyEvents, defineToolCallRenderer, emitInspectorActiveThread, emitInspectorStopViewing, emitInspectorViewThread, emitInspectorViewThreadResult, empty, enforceEvents, enforceOutgoingInput, ensureObjectArgs, extractCompleteArrayItems, extractFenceOperations, extractStringField, flattenInformationalCards, getIntelligenceTurnAnchors, getMarkdownOperationSurfaceId, getRunOutcome, getWebMCPModelContext, isAbortError, isInspectorThreadBridgeEnabled, isInterruptExpired, isRecognizedEvent, isRunCompletionAware, mergeMetadata, messageGroup, messageRow, ofType, omitOptionalNulls, on, onInspectorActiveThread, onInspectorStopViewing, onInspectorViewThread, onInspectorViewThreadResult, parseProtoStream, parseSSEStream, parseToolArguments, prepareSurfaceOperations, props, randomUUID, resolveAgentDebugConfig, resolveDebugLogger, runHttpRequest, segmentSurfaceProse, select, splitA2UIMarkdown, structuredClone_, tokenUsageFromAiSdkUsage, tokenUsageFromLangChainMetadata, transformChunks, transformHttpEventStream, useAgent, useAgentContext, useAttachments, useCapabilities, useComponent, useConfigureSuggestions, useCopilotChatConfiguration, useCopilotKit, useDefaultRenderTool, useFrontendTool, useFrontendTools, useHumanInTheLoop, useInterrupt, useLearnFromUserAction, useLearnFromUserActionInCurrentThread, useLicenseContext, useMarkdownRenderer, useMemories, useRenderActivityMessage, useRenderCustomMessages, useRenderTool, useRenderToolCall, useSandboxFunctions, useSuggestions, useThreads, verifyEvents, withAuthoritativeActivityTypes, ɵALL_AGENT_UPDATES, ɵAgentResolver, ɵAttachmentQueue, ɵAudioRecorder, ɵAudioRecorderError, ɵCOMPOSER_DEFAULT_MAX_ROWS, ɵCOPILOTKIT_FEATURES, ɵCOPILOT_CLOUD_PUBLIC_API_KEY_HEADER, ɵCOPILOT_CLOUD_RUNTIME_URL, ɵCOPY_FEEDBACK_RESET_MS, ɵChatConfigurationStore, ɵChatConnection, ɵChatSubmitter, ɵComposerAutosize, ɵComposerController, ɵCopyFeedback, ɵDockedSidebar, ɵDockedSidebarRegistry, ɵExitPresence, ɵFEEDBACK_COMMENT_CLOSE_DELAY_MS, ɵFeedbackCommentController, ɵFreshThreadId, ɵGENERATE_SANDBOXED_UI_ARGS_SCHEMA, ɵHITL_ABORTED_MESSAGE, ɵHOVER_MENU_CLOSE_DELAY_MS, ɵHoverMenuController, ɵHumanInTheLoopRegistry, ɵINLINE_FEATURE_WARNING_STYLE, ɵInspectorThreadOverride, ɵInterruptController, ɵInterruptExpiredError, ɵInterruptState, ɵKEYBOARD_OPEN_THRESHOLD_PX, ɵLICENSE_BANNER_OFFSET, ɵLICENSE_BANNER_STYLE, ɵLearningAutoStarter, ɵMAX_SOCKET_RETRIES, ɵMESSAGE_FEEDBACK_EVENT_NAME, ɵMESSAGE_FEEDBACK_MAX_COMMENT_LENGTH, ɵMOBILE_MAX_WIDTH_QUERY, ɵMessageViewModel, ɵOPEN_GENERATIVE_UI_CONTENT_SCHEMA, ɵOPEN_GENERATIVE_UI_DESIGN_CONTEXT_DESCRIPTION, ɵOPEN_GENERATIVE_UI_SANDBOX_FUNCTIONS_CONTEXT_DESCRIPTION, ɵOpenGenerativeUIController, ɵPLACEHOLDER_CYCLE_MS, ɵPOPUP_ANIMATION_MS, ɵPOPUP_DEFAULT_HEIGHT, ɵPOPUP_DEFAULT_WIDTH, ɵPlaceholderCycler, ɵRESIZE_SETTLE_MS, ɵRUNTIME_PROBE_TIMEOUT_MS, ɵReasoningDisclosure, ɵRendererRegistry, ɵRuntimeInfoStore, ɵSCROLL_BOTTOM_THRESHOLD_PX, ɵSIDEBAR_DEFAULT_WIDTH, ɵSIDEBAR_TRANSITION_MS, ɵSTABLE_ARRAY_WARNINGS, ɵStickToBottom, ɵTAB_STOP_SELECTOR, ɵTHREAD_REQUEST_TIMEOUT_MS, ɵTOOL_CALL_STATUS_ICONS, ɵTOOL_CALL_STATUS_LABEL_KEYS, ɵTRANSCRIPTION_ERROR_TIMEOUT_MS, ɵThreadSelection, ɵThreadSwitchCoordinator, ɵThreadsController, ɵadaptDefaultToolCallRenderProps, ɵaddOpenGenerativeUIContexts, ɵagentUpdateHandlers, ɵappendTranscript, ɵassembleActivityRenderers, ɵassembleHumanInTheLoop, ɵassembleProviderRegistry, ɵassembleProviderToolRenderers, ɵassembleProviderTools, ɵbindDialogFocus, ɵbindPopupDismiss, ɵbindSuggestionsConfig, ɵbuildHumanInTheLoopTool, ɵbuildLearnFromUserActionPayload, ɵbuildOpenGenerativeUIContexts, ɵbuildToolCallRenderProps, ɵbuildUserMessage, ɵbuildUserMessageContent, ɵcanPreviewDocument, ɵclampSlashIndex, ɵclearAgentInterruptState, ɵclearAgentThreadCursors, ɵcn, ɵcomponentToolDescription, ɵcomposerButtonState, ɵcopilotIconSvgAttributes, ɵcopilotIcons, ɵcountFailedToolCalls, ɵcreateChatSubmitter, ɵcreateComposerAutosize, ɵcreateDockedSidebar, ɵcreateExitPresence, ɵcreateLastUserMessageTracker, ɵcreateMemoryStore, ɵcreateMessageViewModel, ɵcreateObjectUrlFromSource, ɵcreateOpenGenerativeUITool, ɵcreateStickToBottom, ɵcreateThreadSelectors, ɵcreateThreadStore, ɵcreateThreadsDrawerActions, ɵcreateWaveformRenderer, ɵdecodeTextSource, ɵdeduplicateMessages, ɵdescribeActivityRendererFailure, ɵdescribeUnrenderedToolCalls, ɵdimensionToCss, ɵdockedSidebarRegistryFor, ɵduplicateMessagesWarning, ɵextractCompleteStyles, ɵfilterCommands, ɵfindActivityRenderer, ɵfindChatInput, ɵfindToolMessage, ɵfitTextareaHeight, ɵflattenCommandItems, ɵflattenToolsMenuForDisplay, ɵflattenUserMessageContent, ɵformatCountLabel, ɵformatLabel, ɵformatReasoningDuration, ɵformatReasoningDurationLabel, ɵformatToolNames, ɵformatWorkDuration, ɵgetAgentCapabilities, ɵgetAgentInterruptState, ɵgetAgentResolver, ɵgetArgumentPreview, ɵgetBranchNavState, ɵgetChatViewState, ɵgetCustomMessageRenderProps, ɵgetInlineFeatureWarningSpec, ɵgetLastUserMessageId, ɵgetLatestTurnKey, ɵgetLicenseBannerSpec, ɵgetMessageFeedback, ɵgetMessageFeedbackControls, ɵgetMessageRunStateSnapshot, ɵgetReasoningHeaderLabel, ɵgetThreadsDrawerElementProps, ɵgetToolCallBadge, ɵgetToolCallGroupState, ɵgetToolCallLayouts, ɵgetToolCallPreview, ɵgetToolCallRendererNames, ɵgetToolCallRowStatus, ɵgetToolCallStatus, ɵgetToolResults, ɵgetTurnWork, ɵgetUserMessageMediaFilename, ɵgetUserMessageMediaParts, ɵgetWorkOpenState, ɵgetWorkSummaryText, ɵhasAssistantMessageText, ɵhitlRenderProps, ɵimplementsConnect, ɵinitialKeyboardState, ɵinspectorKiteFill, ɵinspectorKiteIcon, ɵinspectorShortcuts, ɵisContentPart, ɵisContentScrolledToBottom, ɵisCopilotKitFeature, ɵisFocusVisible, ɵisHttpAgent, ɵisLearningFeedbackEnabled, ɵisMobileViewport, ɵisOpenGenerativeUIActive, ɵisOwnFeedbackThumb, ɵisRetryableMemoryStatus, ɵisScrolledToBottom, ɵisTurnWorkOpen, ɵisTurnWorking, ɵjoinPhoenixChannel$, ɵloadWebsandbox, ɵmapMemoryMetadataEvent, ɵmatchActivityRenderer, ɵmeasureTextarea, ɵmemoryAdapterEvents, ɵmemoryDomainEvents, ɵmemoryReducer, ɵmemoryRestEvents, ɵmessagesFingerprint, ɵmorphViewTransition, ɵnextSlashIndex, ɵnextTabStop, ɵnormalizeAutoScroll, ɵnormalizeToolCallStatus, ɵnormalizeToolsMenu, ɵobservePhoenixEvent$, ɵobservePhoenixJoinOutcome$, ɵobservePhoenixSocketHealth$, ɵobservePhoenixSocketSignals$, ɵparseSlashQuery, ɵparseToolCallArguments, ɵphoenixChannel$, ɵphoenixSocket$, ɵpinMessageToTop, ɵpluralize, ɵprocessPartialHtml, ɵprojectThread, ɵpublicKeyHeaderDefaults, ɵreadKeyboardState, ɵrecordAnnotation, ɵrecordWorkTime, ɵregisterFrontendTools, ɵreportProviderConfigDiagnostics, ɵreserveLicenseBannerOffset, ɵresetAgentThreadBaseline, ɵresetMessageFeedbackCache, ɵresolveActivityRenderer, ɵresolveAgentId, ɵresolveAgentThreadId, ɵresolveChatNotice, ɵresolveComposerKey, ɵresolveCustomMessageRenderContext, ɵresolveCustomMessageRenderers, ɵresolveGenerativeUIDefault, ɵresolveLicenseState, ɵresolveProviderConfig, ɵresolveSlashKey, ɵresolveThreadsLicense, ɵresolveToolCallAgentId, ɵresolveToolCallRenderer, ɵrmsAmplitude, ɵrunMcpFollowUp, ɵselectFetchMoreError, ɵselectHasNextPage, ɵselectIsFetchingNextPage, ɵselectIsMutating, ɵselectMemories, ɵselectMemoriesAvailable, ɵselectMemoriesError, ɵselectMemoriesIsLoading, ɵselectMemoriesIsMutating, ɵselectMemoriesRealtimeStatus, ɵselectThreads, ɵselectThreadsError, ɵselectThreadsIsLoading, ɵserializeContextValue, ɵsetMessageFeedback, ɵshallowEqualRecord, ɵshouldShowAssistantToolbar, ɵshouldShowMessageCursor, ɵshowsComposerDisclaimer, ɵsnapshotAgentState, ɵstableArrayPropWarning, ɵstopAgentWithFallback, ɵstringifyToolCallAttr, ɵstringifyToolCallPayload, ɵsubscribeToAgentErrors, ɵsubscribeToAgentSuggestions, ɵsubscribeToAgentUpdates, ɵsubscribeToLearningFeedbackEnabled, ɵsubscribeToMessageFeedback, ɵsyncRecorderToMode, ɵthreadAdapterEvents, ɵtoDefaultToolCallStatus, ɵtoDrawerThread, ɵtoLearningConfig, ɵtoolCallAppearance, ɵtoolRendererShapeChanged, ɵtranscribeAudio, ɵtranscriptionErrorMessageKey, ɵtranscriptionErrorNotice, ɵvalidateAgentBinding, ɵwaitForActiveRun, ɵwatchElementHeight, ɵwatchElementWidth, ɵwatchKeyboardState, ɵwatchMobileViewport, ɵwithHeaderDefaults };
|
|
8246
7887
|
//# sourceMappingURL=index.mjs.map
|