@ai-matrx/chat 0.1.77 → 0.2.1
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/CHANGELOG.md +37 -0
- package/dist/action-requests/components/ActionRequestAnswerForm.d.ts +57 -0
- package/dist/action-requests/components/ActionRequestAnswerForm.js +554 -0
- package/dist/action-requests/components/ActionRequestInlineAnswer.d.ts +6 -0
- package/dist/action-requests/components/ActionRequestInlineAnswer.js +42 -0
- package/dist/action-requests/components/ParkedOnPersonCard.d.ts +6 -0
- package/dist/action-requests/components/ParkedOnPersonCard.js +77 -0
- package/dist/action-requests/components/spendAmount.d.ts +26 -0
- package/dist/action-requests/components/spendAmount.js +29 -0
- package/dist/action-requests/hooks/usePendingActionRequest.d.ts +22 -0
- package/dist/action-requests/hooks/usePendingActionRequest.js +66 -0
- package/dist/action-requests/hooks/useToolAction.d.ts +40 -0
- package/dist/action-requests/hooks/useToolAction.js +197 -0
- package/dist/action-requests/render-types.d.ts +280 -0
- package/dist/action-requests/render-types.js +0 -0
- package/dist/action-requests/screen-run.d.ts +70 -0
- package/dist/action-requests/screen-run.js +36 -0
- package/dist/action-requests/self-service.d.ts +26 -0
- package/dist/action-requests/self-service.js +28 -0
- package/dist/agent-copy/AlchemySurfaceBridge.d.ts +14 -0
- package/dist/agent-copy/AlchemySurfaceBridge.js +48 -0
- package/dist/agent-copy/alchemy-session.d.ts +46 -0
- package/dist/agent-copy/alchemy-session.js +32 -0
- package/dist/agent-copy/buildAgentPayload.d.ts +2 -0
- package/dist/agent-copy/buildAgentPayload.js +8 -0
- package/dist/agent-copy/clipboard.d.ts +8 -0
- package/dist/agent-copy/clipboard.js +19 -0
- package/dist/agent-copy/export.d.ts +37 -0
- package/dist/agent-copy/export.js +88 -0
- package/dist/agent-copy/page-capture/pageCapture.d.ts +153 -0
- package/dist/agent-copy/page-capture/pageCapture.js +411 -0
- package/dist/agents/addressing/agentAddress.d.ts +176 -0
- package/dist/agents/addressing/agentAddress.js +69 -0
- package/dist/agents/addressing/agentAddressCache.d.ts +45 -0
- package/dist/agents/addressing/agentAddressCache.js +90 -0
- package/dist/agents/addressing/useAgentHref.d.ts +29 -0
- package/dist/agents/addressing/useAgentHref.js +71 -0
- package/dist/agents/agent-context/buildAgentBuilderContextData.d.ts +26 -0
- package/dist/agents/agent-context/buildAgentBuilderContextData.js +31 -0
- package/dist/agents/agent-context/resource-reference.d.ts +21 -0
- package/dist/agents/agent-context/resource-reference.js +31 -0
- package/dist/agents/agents-hub-catalog-filter-contract.d.ts +26 -0
- package/dist/agents/agents-hub-catalog-filter-contract.js +143 -0
- package/dist/agents/api/fetch-pending-calls.d.ts +41 -0
- package/dist/agents/api/fetch-pending-calls.js +73 -0
- package/dist/agents/api/person-declined-tool-output.d.ts +46 -0
- package/dist/agents/api/person-declined-tool-output.js +18 -0
- package/dist/agents/api/settle-client-tool-call.d.ts +45 -0
- package/dist/agents/api/settle-client-tool-call.js +70 -0
- package/dist/agents/api/submit-tool-results.d.ts +106 -0
- package/dist/agents/api/submit-tool-results.js +264 -0
- package/dist/agents/components/AutoSubmitForm.d.ts +5 -0
- package/dist/agents/components/AutoSubmitForm.js +16 -0
- package/dist/agents/components/agent-widgets/AgentChatBubble.d.ts +6 -0
- package/dist/agents/components/agent-widgets/AgentChatBubble.js +67 -0
- package/dist/agents/components/agent-widgets/AgentChatHistorySidebar.d.ts +5 -0
- package/dist/agents/components/agent-widgets/AgentChatHistorySidebar.js +131 -0
- package/dist/agents/components/agent-widgets/AgentCompactModal.d.ts +6 -0
- package/dist/agents/components/agent-widgets/AgentCompactModal.js +44 -0
- package/dist/agents/components/agent-widgets/AgentFlexiblePanel.d.ts +8 -0
- package/dist/agents/components/agent-widgets/AgentFlexiblePanel.js +48 -0
- package/dist/agents/components/agent-widgets/AgentFloatingChat.d.ts +8 -0
- package/dist/agents/components/agent-widgets/AgentFloatingChat.js +48 -0
- package/dist/agents/components/agent-widgets/AgentFullModal.d.ts +6 -0
- package/dist/agents/components/agent-widgets/AgentFullModal.js +43 -0
- package/dist/agents/components/agent-widgets/AgentInlineOverlay.d.ts +6 -0
- package/dist/agents/components/agent-widgets/AgentInlineOverlay.js +88 -0
- package/dist/agents/components/agent-widgets/AgentPanelOverlay.d.ts +6 -0
- package/dist/agents/components/agent-widgets/AgentPanelOverlay.js +45 -0
- package/dist/agents/components/agent-widgets/AgentSidebarOverlay.d.ts +6 -0
- package/dist/agents/components/agent-widgets/AgentSidebarOverlay.js +45 -0
- package/dist/agents/components/agent-widgets/AgentToastOverlay.d.ts +7 -0
- package/dist/agents/components/agent-widgets/AgentToastOverlay.js +190 -0
- package/dist/agents/components/agent-widgets/ChatCollapsible.d.ts +6 -0
- package/dist/agents/components/agent-widgets/ChatCollapsible.js +150 -0
- package/dist/agents/components/agent-widgets/chat-assistant/AgentChatAssistant.d.ts +7 -0
- package/dist/agents/components/agent-widgets/chat-assistant/AgentChatAssistant.js +162 -0
- package/dist/agents/components/agent-widgets/chat-assistant/AssistantCardStack.d.ts +11 -0
- package/dist/agents/components/agent-widgets/chat-assistant/AssistantCardStack.js +131 -0
- package/dist/agents/components/agent-widgets/chat-assistant/AssistantControlBar.d.ts +12 -0
- package/dist/agents/components/agent-widgets/chat-assistant/AssistantControlBar.js +82 -0
- package/dist/agents/components/agent-widgets/chat-assistant/AssistantMessageCard.d.ts +7 -0
- package/dist/agents/components/agent-widgets/chat-assistant/AssistantMessageCard.js +33 -0
- package/dist/agents/components/agent-widgets/chat-assistant/ChatAssistantVariableInputs.d.ts +6 -0
- package/dist/agents/components/agent-widgets/chat-assistant/ChatAssistantVariableInputs.js +199 -0
- package/dist/agents/components/agent-widgets/chat-assistant/CompactAssistantInput.d.ts +5 -0
- package/dist/agents/components/agent-widgets/chat-assistant/CompactAssistantInput.js +224 -0
- package/dist/agents/components/agent-widgets/chat-assistant/StatusCard.d.ts +6 -0
- package/dist/agents/components/agent-widgets/chat-assistant/StatusCard.js +21 -0
- package/dist/agents/components/agent-widgets/chat-assistant/UserMessageCard.d.ts +6 -0
- package/dist/agents/components/agent-widgets/chat-assistant/UserMessageCard.js +11 -0
- package/dist/agents/components/agent-widgets/chat-assistant/VariableInputCard.d.ts +12 -0
- package/dist/agents/components/agent-widgets/chat-assistant/VariableInputCard.js +7 -0
- package/dist/agents/components/agent-widgets/chat-assistant/useAssistantHeartbeat.d.ts +7 -0
- package/dist/agents/components/agent-widgets/chat-assistant/useAssistantHeartbeat.js +43 -0
- package/dist/agents/components/agent-widgets/execution-gates/AgentGateInput.d.ts +7 -0
- package/dist/agents/components/agent-widgets/execution-gates/AgentGateInput.js +150 -0
- package/dist/agents/components/agent-widgets/execution-gates/PreExecutionCard.d.ts +4 -0
- package/dist/agents/components/agent-widgets/execution-gates/PreExecutionCard.js +81 -0
- package/dist/agents/components/agent-widgets/useAgentShellAddress.d.ts +2 -0
- package/dist/agents/components/agent-widgets/useAgentShellAddress.js +17 -0
- package/dist/agents/components/ambient-assistant/ScrollAssistantLauncher.d.ts +13 -0
- package/dist/agents/components/ambient-assistant/ScrollAssistantLauncher.js +91 -0
- package/dist/agents/components/ambient-assistant/ScrollAssistantLauncherImpl.d.ts +4 -0
- package/dist/agents/components/ambient-assistant/ScrollAssistantLauncherImpl.js +249 -0
- package/dist/agents/components/ambient-assistant/ScrollVoiceAssistantLauncherImpl.d.ts +1 -0
- package/dist/agents/components/ambient-assistant/ScrollVoiceAssistantLauncherImpl.js +440 -0
- package/dist/agents/components/ambient-assistant/ambientAssistantMandates.d.ts +32 -0
- package/dist/agents/components/ambient-assistant/ambientAssistantMandates.js +67 -0
- package/dist/agents/components/ambient-assistant/ambientAssistantSuppression.d.ts +4 -0
- package/dist/agents/components/ambient-assistant/ambientAssistantSuppression.js +32 -0
- package/dist/agents/components/ambient-assistant/intelligence-places.d.ts +2 -0
- package/dist/agents/components/ambient-assistant/intelligence-places.js +26 -0
- package/dist/agents/components/chat/ChatConversationRoom.d.ts +38 -0
- package/dist/agents/components/chat/ChatConversationRoom.js +71 -0
- package/dist/agents/components/chat/ChatConversationSurface.d.ts +26 -0
- package/dist/agents/components/chat/ChatConversationSurface.js +456 -0
- package/dist/agents/components/chat/ChatHistorySidebar.d.ts +52 -0
- package/dist/agents/components/chat/ChatHistorySidebar.js +41 -0
- package/dist/agents/components/chat/ChatIncognitoHeaderButton.d.ts +1 -0
- package/dist/agents/components/chat/ChatIncognitoHeaderButton.js +24 -0
- package/dist/agents/components/chat/ChatIncognitoProvider.d.ts +10 -0
- package/dist/agents/components/chat/ChatIncognitoProvider.js +59 -0
- package/dist/agents/components/chat/ChatNewClient.d.ts +42 -0
- package/dist/agents/components/chat/ChatNewClient.js +96 -0
- package/dist/agents/components/chat/ChatNewHeader.d.ts +8 -0
- package/dist/agents/components/chat/ChatNewHeader.js +28 -0
- package/dist/agents/components/chat/ChatRoomClient.d.ts +120 -0
- package/dist/agents/components/chat/ChatRoomClient.js +543 -0
- package/dist/agents/components/chat/ChatRoomSkeleton.d.ts +7 -0
- package/dist/agents/components/chat/ChatRoomSkeleton.js +69 -0
- package/dist/agents/components/chat/ChatRunHeader.d.ts +33 -0
- package/dist/agents/components/chat/ChatRunHeader.js +96 -0
- package/dist/agents/components/chat/ChatSidebarMenu.d.ts +11 -0
- package/dist/agents/components/chat/ChatSidebarMenu.js +316 -0
- package/dist/agents/components/chat/ConversationAttachmentsChip.d.ts +3 -0
- package/dist/agents/components/chat/ConversationAttachmentsChip.js +84 -0
- package/dist/agents/components/chat/ConversationPageMenu.d.ts +10 -0
- package/dist/agents/components/chat/ConversationPageMenu.js +197 -0
- package/dist/agents/components/chat/ConversationRecordsChip.d.ts +3 -0
- package/dist/agents/components/chat/ConversationRecordsChip.js +50 -0
- package/dist/agents/components/chat/ConversationRoomNotice.d.ts +3 -0
- package/dist/agents/components/chat/ConversationRoomNotice.js +76 -0
- package/dist/agents/components/chat/NewChatGreeting.d.ts +25 -0
- package/dist/agents/components/chat/NewChatGreeting.js +70 -0
- package/dist/agents/components/chat/PinnedAgentsSection.d.ts +24 -0
- package/dist/agents/components/chat/PinnedAgentsSection.js +105 -0
- package/dist/agents/components/chat/SandboxPanel.d.ts +5 -0
- package/dist/agents/components/chat/SandboxPanel.js +418 -0
- package/dist/agents/components/chat/agent-context/buildChatContextData.d.ts +103 -0
- package/dist/agents/components/chat/agent-context/buildChatContextData.js +102 -0
- package/dist/agents/components/chat/agent-context/buildChatRunConfiguration.d.ts +25 -0
- package/dist/agents/components/chat/agent-context/buildChatRunConfiguration.js +53 -0
- package/dist/agents/components/chat/agent-context/chatAgentWrites.d.ts +67 -0
- package/dist/agents/components/chat/agent-context/chatAgentWrites.js +242 -0
- package/dist/agents/components/chat/agent-context/chatComposerTextMenu.d.ts +16 -0
- package/dist/agents/components/chat/agent-context/chatComposerTextMenu.js +30 -0
- package/dist/agents/components/chat/agent-context/chatTranscriptScope.d.ts +103 -0
- package/dist/agents/components/chat/agent-context/chatTranscriptScope.js +94 -0
- package/dist/agents/components/chat/begin-fresh-chat.d.ts +67 -0
- package/dist/agents/components/chat/begin-fresh-chat.js +137 -0
- package/dist/agents/components/chat/chat-draft-transfer.d.ts +55 -0
- package/dist/agents/components/chat/chat-draft-transfer.js +68 -0
- package/dist/agents/components/chat/chat-incognito.routes.d.ts +2 -0
- package/dist/agents/components/chat/chat-incognito.routes.js +8 -0
- package/dist/agents/components/chat/chat-quick-actions.config.d.ts +27 -0
- package/dist/agents/components/chat/chat-quick-actions.config.js +7 -0
- package/dist/agents/components/chat/conversation-email-entrance.d.ts +23 -0
- package/dist/agents/components/chat/conversation-email-entrance.js +19 -0
- package/dist/agents/components/chat/in-place-chat-host.d.ts +19 -0
- package/dist/agents/components/chat/in-place-chat-host.js +39 -0
- package/dist/agents/components/chat/intelligence-places.d.ts +2 -0
- package/dist/agents/components/chat/intelligence-places.js +78 -0
- package/dist/agents/components/chat/new-chat-about.d.ts +57 -0
- package/dist/agents/components/chat/new-chat-about.js +65 -0
- package/dist/agents/components/chat/sandbox-insight/SandboxActivityFeed.d.ts +14 -0
- package/dist/agents/components/chat/sandbox-insight/SandboxActivityFeed.js +117 -0
- package/dist/agents/components/chat/sandbox-insight/SandboxCanvasBody.d.ts +43 -0
- package/dist/agents/components/chat/sandbox-insight/SandboxCanvasBody.js +193 -0
- package/dist/agents/components/chat/sandbox-insight/SandboxCanvasOpener.d.ts +4 -0
- package/dist/agents/components/chat/sandbox-insight/SandboxCanvasOpener.js +126 -0
- package/dist/agents/components/chat/sandbox-insight/liveSourceReachability.d.ts +59 -0
- package/dist/agents/components/chat/sandbox-insight/liveSourceReachability.js +12 -0
- package/dist/agents/components/chat/sandbox-insight/revealMemory.d.ts +39 -0
- package/dist/agents/components/chat/sandbox-insight/revealMemory.js +67 -0
- package/dist/agents/components/chat/sandbox-insight/sandbox-activity.d.ts +46 -0
- package/dist/agents/components/chat/sandbox-insight/sandbox-activity.js +120 -0
- package/dist/agents/components/chat/sandbox-insight/sandboxCanvasMemory.d.ts +19 -0
- package/dist/agents/components/chat/sandbox-insight/sandboxCanvasMemory.js +18 -0
- package/dist/agents/components/chat/sandbox-insight/useOpenSandboxCanvas.d.ts +84 -0
- package/dist/agents/components/chat/sandbox-insight/useOpenSandboxCanvas.js +76 -0
- package/dist/agents/components/chat/useCanvasScopedToConversation.d.ts +14 -0
- package/dist/agents/components/chat/useCanvasScopedToConversation.js +64 -0
- package/dist/agents/components/chat/usePreparedResourceSeed.d.ts +19 -0
- package/dist/agents/components/chat/usePreparedResourceSeed.js +40 -0
- package/dist/agents/components/coming-soon/AgentComingSoonContent.d.ts +11 -0
- package/dist/agents/components/coming-soon/AgentComingSoonContent.js +43 -0
- package/dist/agents/components/context-items/ContextItemViewer.d.ts +11 -0
- package/dist/agents/components/context-items/ContextItemViewer.js +109 -0
- package/dist/agents/components/context-items/bodies/BookmarkReferenceBody.d.ts +12 -0
- package/dist/agents/components/context-items/bodies/BookmarkReferenceBody.js +20 -0
- package/dist/agents/components/context-items/bodies/ContextInputBody.d.ts +3 -0
- package/dist/agents/components/context-items/bodies/ContextInputBody.js +37 -0
- package/dist/agents/components/context-items/bodies/ContextLayerBodies.d.ts +4 -0
- package/dist/agents/components/context-items/bodies/ContextLayerBodies.js +183 -0
- package/dist/agents/components/context-items/bodies/DataBody.d.ts +2 -0
- package/dist/agents/components/context-items/bodies/DataBody.js +18 -0
- package/dist/agents/components/context-items/bodies/EntityReferenceBody.d.ts +3 -0
- package/dist/agents/components/context-items/bodies/EntityReferenceBody.js +44 -0
- package/dist/agents/components/context-items/bodies/GenericBody.d.ts +12 -0
- package/dist/agents/components/context-items/bodies/GenericBody.js +42 -0
- package/dist/agents/components/context-items/bodies/MediaBody.d.ts +3 -0
- package/dist/agents/components/context-items/bodies/MediaBody.js +101 -0
- package/dist/agents/components/context-items/bodies/NoteBody.d.ts +3 -0
- package/dist/agents/components/context-items/bodies/NoteBody.js +15 -0
- package/dist/agents/components/context-items/bodies/ProcessedDocumentBody.d.ts +2 -0
- package/dist/agents/components/context-items/bodies/ProcessedDocumentBody.js +56 -0
- package/dist/agents/components/context-items/bodies/ProcessedDocumentTitle.d.ts +2 -0
- package/dist/agents/components/context-items/bodies/ProcessedDocumentTitle.js +48 -0
- package/dist/agents/components/context-items/bodies/RemarkBody.d.ts +2 -0
- package/dist/agents/components/context-items/bodies/RemarkBody.js +19 -0
- package/dist/agents/components/context-items/bodies/ResourceSnapshotView.d.ts +7 -0
- package/dist/agents/components/context-items/bodies/ResourceSnapshotView.js +16 -0
- package/dist/agents/components/context-items/bodies/TaskBody.d.ts +1 -0
- package/dist/agents/components/context-items/bodies/TaskBody.js +11 -0
- package/dist/agents/components/context-items/bodies/UnregisteredBody.d.ts +7 -0
- package/dist/agents/components/context-items/bodies/UnregisteredBody.js +15 -0
- package/dist/agents/components/context-items/bodies/WebpageBody.d.ts +3 -0
- package/dist/agents/components/context-items/bodies/WebpageBody.js +81 -0
- package/dist/agents/components/context-items/bodies/WorkingDocumentBody.d.ts +6 -0
- package/dist/agents/components/context-items/bodies/WorkingDocumentBody.js +58 -0
- package/dist/agents/components/context-items/context-item-block-types.d.ts +16 -0
- package/dist/agents/components/context-items/context-item-block-types.js +43 -0
- package/dist/agents/components/context-items/contextItemsTab.d.ts +42 -0
- package/dist/agents/components/context-items/contextItemsTab.js +79 -0
- package/dist/agents/components/context-items/normalize.d.ts +37 -0
- package/dist/agents/components/context-items/normalize.js +321 -0
- package/dist/agents/components/context-items/recontext.d.ts +25 -0
- package/dist/agents/components/context-items/recontext.js +21 -0
- package/dist/agents/components/context-items/registry.d.ts +34 -0
- package/dist/agents/components/context-items/registry.js +369 -0
- package/dist/agents/components/context-items/remark-display.d.ts +13 -0
- package/dist/agents/components/context-items/remark-display.js +24 -0
- package/dist/agents/components/context-items/types.d.ts +162 -0
- package/dist/agents/components/context-items/types.js +0 -0
- package/dist/agents/components/context-items/useActiveContextLayerItems.d.ts +8 -0
- package/dist/agents/components/context-items/useActiveContextLayerItems.js +105 -0
- package/dist/agents/components/context-policies-display/ContextPolicyChip.d.ts +12 -0
- package/dist/agents/components/context-policies-display/ContextPolicyChip.js +51 -0
- package/dist/agents/components/context-policies-display/ContextPolicyChipStrip.d.ts +12 -0
- package/dist/agents/components/context-policies-display/ContextPolicyChipStrip.js +66 -0
- package/dist/agents/components/context-policies-display/ContextPolicyDetail.d.ts +13 -0
- package/dist/agents/components/context-policies-display/ContextPolicyDetail.js +127 -0
- package/dist/agents/components/context-policies-display/ContextPolicyItemsPopover.d.ts +11 -0
- package/dist/agents/components/context-policies-display/ContextPolicyItemsPopover.js +98 -0
- package/dist/agents/components/context-policies-display/ContextPolicyTile.d.ts +16 -0
- package/dist/agents/components/context-policies-display/ContextPolicyTile.js +45 -0
- package/dist/agents/components/context-policies-display/ContextRulesPanel.d.ts +14 -0
- package/dist/agents/components/context-policies-display/ContextRulesPanel.js +116 -0
- package/dist/agents/components/context-policies-display/ContextValueBody.d.ts +8 -0
- package/dist/agents/components/context-policies-display/ContextValueBody.js +83 -0
- package/dist/agents/components/context-policies-display/MessageContextReceipt.d.ts +67 -0
- package/dist/agents/components/context-policies-display/MessageContextReceipt.js +211 -0
- package/dist/agents/components/context-policies-display/ValueCountPill.d.ts +20 -0
- package/dist/agents/components/context-policies-display/ValueCountPill.js +24 -0
- package/dist/agents/components/context-policies-display/contextEntryLabel.d.ts +4 -0
- package/dist/agents/components/context-policies-display/contextEntryLabel.js +9 -0
- package/dist/agents/components/context-policies-display/contextPolicyIcons.d.ts +5 -0
- package/dist/agents/components/context-policies-display/contextPolicyIcons.js +43 -0
- package/dist/agents/components/context-policies-display/contextPolicyPreview.d.ts +14 -0
- package/dist/agents/components/context-policies-display/contextPolicyPreview.js +62 -0
- package/dist/agents/components/context-policies-display/contextPolicyTile.theme.d.ts +9 -0
- package/dist/agents/components/context-policies-display/contextPolicyTile.theme.js +71 -0
- package/dist/agents/components/context-policies-display/contextValueTab.d.ts +32 -0
- package/dist/agents/components/context-policies-display/contextValueTab.js +63 -0
- package/dist/agents/components/context-policies-display/contextValueUtils.d.ts +15 -0
- package/dist/agents/components/context-policies-display/contextValueUtils.js +49 -0
- package/dist/agents/components/context-policies-display/knownContextValues.d.ts +56 -0
- package/dist/agents/components/context-policies-display/knownContextValues.js +220 -0
- package/dist/agents/components/context-policies-display/war-room-context-key.d.ts +2 -0
- package/dist/agents/components/context-policies-display/war-room-context-key.js +4 -0
- package/dist/agents/components/context-preview/AttachedContextSection.d.ts +3 -0
- package/dist/agents/components/context-preview/AttachedContextSection.js +315 -0
- package/dist/agents/components/context-preview/ContextCompareView.d.ts +42 -0
- package/dist/agents/components/context-preview/ContextCompareView.js +754 -0
- package/dist/agents/components/context-preview/ContextPreviewPanel.d.ts +5 -0
- package/dist/agents/components/context-preview/ContextPreviewPanel.js +445 -0
- package/dist/agents/components/context-preview/SystemItemsLine.d.ts +15 -0
- package/dist/agents/components/context-preview/SystemItemsLine.js +36 -0
- package/dist/agents/components/context-preview/inspector/ContextInspector.d.ts +18 -0
- package/dist/agents/components/context-preview/inspector/ContextInspector.js +262 -0
- package/dist/agents/components/context-preview/inspector/ContextParityLastRun.d.ts +30 -0
- package/dist/agents/components/context-preview/inspector/ContextParityLastRun.js +127 -0
- package/dist/agents/components/context-preview/inspector/selection.d.ts +70 -0
- package/dist/agents/components/context-preview/inspector/selection.js +81 -0
- package/dist/agents/components/context-preview/useContextPreview.d.ts +41 -0
- package/dist/agents/components/context-preview/useContextPreview.js +97 -0
- package/dist/agents/components/conversation-actions/conversation-verbs.d.ts +36 -0
- package/dist/agents/components/conversation-actions/conversation-verbs.js +88 -0
- package/dist/agents/components/conversation-actions/conversationActionRegistry.d.ts +84 -0
- package/dist/agents/components/conversation-actions/conversationActionRegistry.js +280 -0
- package/dist/agents/components/conversation-actions/rename/ConversationRenameDialogHost.d.ts +1 -0
- package/dist/agents/components/conversation-actions/rename/ConversationRenameDialogHost.js +9 -0
- package/dist/agents/components/conversation-actions/rename/ConversationRenameDialogHostImpl.d.ts +7 -0
- package/dist/agents/components/conversation-actions/rename/ConversationRenameDialogHostImpl.js +38 -0
- package/dist/agents/components/conversation-actions/rename/conversationRenameOpener.d.ts +12 -0
- package/dist/agents/components/conversation-actions/rename/conversationRenameOpener.js +8 -0
- package/dist/agents/components/conversation-history/ConversationHistorySidebar.d.ts +153 -0
- package/dist/agents/components/conversation-history/ConversationHistorySidebar.js +1110 -0
- package/dist/agents/components/conversation-history/ConversationLaneToggles.d.ts +28 -0
- package/dist/agents/components/conversation-history/ConversationLaneToggles.js +92 -0
- package/dist/agents/components/conversation-history/ConversationPickerWindow.d.ts +20 -0
- package/dist/agents/components/conversation-history/ConversationPickerWindow.js +74 -0
- package/dist/agents/components/conversation-history/ConversationSearchStatus.d.ts +9 -0
- package/dist/agents/components/conversation-history/ConversationSearchStatus.js +41 -0
- package/dist/agents/components/conversation-history/ConversationSourceFilterTree.d.ts +14 -0
- package/dist/agents/components/conversation-history/ConversationSourceFilterTree.js +725 -0
- package/dist/agents/components/conversation-history/ConversationTrashSection.d.ts +7 -0
- package/dist/agents/components/conversation-history/ConversationTrashSection.js +106 -0
- package/dist/agents/components/conversation-history/useConversationServerSearch.d.ts +31 -0
- package/dist/agents/components/conversation-history/useConversationServerSearch.js +183 -0
- package/dist/agents/components/custom-agent/CustomAgentWindow.d.ts +8 -0
- package/dist/agents/components/custom-agent/CustomAgentWindow.js +244 -0
- package/dist/agents/components/custom-agent/custom-agent-plan.d.ts +39 -0
- package/dist/agents/components/custom-agent/custom-agent-plan.js +85 -0
- package/dist/agents/components/custom-agent/session.d.ts +12 -0
- package/dist/agents/components/custom-agent/session.js +19 -0
- package/dist/agents/components/debug/DebugSessionActivator.d.ts +1 -0
- package/dist/agents/components/debug/DebugSessionActivator.js +19 -0
- package/dist/agents/components/debug/RoutingPanel.d.ts +3 -0
- package/dist/agents/components/debug/RoutingPanel.js +112 -0
- package/dist/agents/components/debug/SandboxFileViewer.d.ts +10 -0
- package/dist/agents/components/debug/SandboxFileViewer.js +104 -0
- package/dist/agents/components/debug/SandboxInsightPanel.d.ts +3 -0
- package/dist/agents/components/debug/SandboxInsightPanel.js +56 -0
- package/dist/agents/components/debug/StreamDebugFloating.d.ts +17 -0
- package/dist/agents/components/debug/StreamDebugFloating.js +40 -0
- package/dist/agents/components/debug/StreamDebugPanel.d.ts +18 -0
- package/dist/agents/components/debug/StreamDebugPanel.js +1587 -0
- package/dist/agents/components/inputs/AgentVariablesInline.d.ts +12 -0
- package/dist/agents/components/inputs/AgentVariablesInline.js +415 -0
- package/dist/agents/components/inputs/BoundVariableChips.d.ts +5 -0
- package/dist/agents/components/inputs/BoundVariableChips.js +284 -0
- package/dist/agents/components/inputs/DataBoundVariableChips.d.ts +3 -0
- package/dist/agents/components/inputs/DataBoundVariableChips.js +68 -0
- package/dist/agents/components/inputs/PreExecutionAgentInput.d.ts +5 -0
- package/dist/agents/components/inputs/PreExecutionAgentInput.js +52 -0
- package/dist/agents/components/inputs/RowChoicesButton.d.ts +9 -0
- package/dist/agents/components/inputs/RowChoicesButton.js +66 -0
- package/dist/agents/components/inputs/collapsed-row.d.ts +46 -0
- package/dist/agents/components/inputs/collapsed-row.js +42 -0
- package/dist/agents/components/inputs/input-components/AudioVariableInput.d.ts +4 -0
- package/dist/agents/components/inputs/input-components/AudioVariableInput.js +11 -0
- package/dist/agents/components/inputs/input-components/CheckboxGroupInput.d.ts +14 -0
- package/dist/agents/components/inputs/input-components/CheckboxGroupInput.js +148 -0
- package/dist/agents/components/inputs/input-components/CurrencyVariableInput.d.ts +15 -0
- package/dist/agents/components/inputs/input-components/CurrencyVariableInput.js +98 -0
- package/dist/agents/components/inputs/input-components/DocumentVariableInput.d.ts +4 -0
- package/dist/agents/components/inputs/input-components/DocumentVariableInput.js +11 -0
- package/dist/agents/components/inputs/input-components/ImageVariableInput.d.ts +4 -0
- package/dist/agents/components/inputs/input-components/ImageVariableInput.js +11 -0
- package/dist/agents/components/inputs/input-components/MediaVariableInput.d.ts +15 -0
- package/dist/agents/components/inputs/input-components/MediaVariableInput.js +333 -0
- package/dist/agents/components/inputs/input-components/NumberInput.d.ts +19 -0
- package/dist/agents/components/inputs/input-components/NumberInput.js +102 -0
- package/dist/agents/components/inputs/input-components/PicklistVariableInput.d.ts +24 -0
- package/dist/agents/components/inputs/input-components/PicklistVariableInput.js +168 -0
- package/dist/agents/components/inputs/input-components/PillToggleInput.d.ts +17 -0
- package/dist/agents/components/inputs/input-components/PillToggleInput.js +19 -0
- package/dist/agents/components/inputs/input-components/RadioGroupInput.d.ts +17 -0
- package/dist/agents/components/inputs/input-components/RadioGroupInput.js +97 -0
- package/dist/agents/components/inputs/input-components/ScalarVariableInput.d.ts +11 -0
- package/dist/agents/components/inputs/input-components/ScalarVariableInput.js +115 -0
- package/dist/agents/components/inputs/input-components/SelectInput.d.ts +20 -0
- package/dist/agents/components/inputs/input-components/SelectInput.js +175 -0
- package/dist/agents/components/inputs/input-components/SliderInput.d.ts +20 -0
- package/dist/agents/components/inputs/input-components/SliderInput.js +54 -0
- package/dist/agents/components/inputs/input-components/TableVariableInput.d.ts +14 -0
- package/dist/agents/components/inputs/input-components/TableVariableInput.js +71 -0
- package/dist/agents/components/inputs/input-components/TextareaInput.d.ts +27 -0
- package/dist/agents/components/inputs/input-components/TextareaInput.js +55 -0
- package/dist/agents/components/inputs/input-components/ToggleInput.d.ts +17 -0
- package/dist/agents/components/inputs/input-components/ToggleInput.js +61 -0
- package/dist/agents/components/inputs/input-components/VariableInputComponent.d.ts +46 -0
- package/dist/agents/components/inputs/input-components/VariableInputComponent.js +388 -0
- package/dist/agents/components/inputs/input-components/VideoVariableInput.d.ts +4 -0
- package/dist/agents/components/inputs/input-components/VideoVariableInput.js +11 -0
- package/dist/agents/components/inputs/input-components/YoutubeVariableInput.d.ts +14 -0
- package/dist/agents/components/inputs/input-components/YoutubeVariableInput.js +91 -0
- package/dist/agents/components/inputs/input-components/focusWithoutScroll.d.ts +10 -0
- package/dist/agents/components/inputs/input-components/focusWithoutScroll.js +6 -0
- package/dist/agents/components/inputs/input-components/useContainerColumns.d.ts +17 -0
- package/dist/agents/components/inputs/input-components/useContainerColumns.js +22 -0
- package/dist/agents/components/inputs/input-components/variablePlaceholder.d.ts +27 -0
- package/dist/agents/components/inputs/input-components/variablePlaceholder.js +6 -0
- package/dist/agents/components/inputs/resources/AttachedDocumentChip.d.ts +21 -0
- package/dist/agents/components/inputs/resources/AttachedDocumentChip.js +178 -0
- package/dist/agents/components/inputs/resources/AttachedDocumentChips.d.ts +10 -0
- package/dist/agents/components/inputs/resources/AttachedDocumentChips.js +344 -0
- package/dist/agents/components/inputs/resources/ResourceFamilyPolicyEditor.d.ts +14 -0
- package/dist/agents/components/inputs/resources/ResourceFamilyPolicyEditor.js +277 -0
- package/dist/agents/components/inputs/resources/SmartAgentResourceChips.d.ts +12 -0
- package/dist/agents/components/inputs/resources/SmartAgentResourceChips.js +313 -0
- package/dist/agents/components/inputs/resources/SmartAgentResourcePickerButton.d.ts +18 -0
- package/dist/agents/components/inputs/resources/SmartAgentResourcePickerButton.js +66 -0
- package/dist/agents/components/inputs/resources/attach-resource.d.ts +34 -0
- package/dist/agents/components/inputs/resources/attach-resource.js +349 -0
- package/dist/agents/components/inputs/resources/attached-documents.d.ts +86 -0
- package/dist/agents/components/inputs/resources/attached-documents.js +104 -0
- package/dist/agents/components/inputs/resources/resource-family-policy.d.ts +9 -0
- package/dist/agents/components/inputs/resources/resource-family-policy.js +84 -0
- package/dist/agents/components/inputs/resources/resource-family-words.d.ts +29 -0
- package/dist/agents/components/inputs/resources/resource-family-words.js +71 -0
- package/dist/agents/components/inputs/resources/useAttachedFileIds.d.ts +4 -0
- package/dist/agents/components/inputs/resources/useAttachedFileIds.js +46 -0
- package/dist/agents/components/inputs/resources/usePasteImageResource.d.ts +17 -0
- package/dist/agents/components/inputs/resources/usePasteImageResource.js +162 -0
- package/dist/agents/components/inputs/smart-input/AgentMicrophoneButton.d.ts +52 -0
- package/dist/agents/components/inputs/smart-input/AgentMicrophoneButton.js +99 -0
- package/dist/agents/components/inputs/smart-input/AgentTextarea.d.ts +65 -0
- package/dist/agents/components/inputs/smart-input/AgentTextarea.js +352 -0
- package/dist/agents/components/inputs/smart-input/ChatConnectionsStrip.d.ts +24 -0
- package/dist/agents/components/inputs/smart-input/ChatConnectionsStrip.js +278 -0
- package/dist/agents/components/inputs/smart-input/ComposerChip.d.ts +63 -0
- package/dist/agents/components/inputs/smart-input/ComposerChip.js +184 -0
- package/dist/agents/components/inputs/smart-input/ComposerDraftNotice.d.ts +6 -0
- package/dist/agents/components/inputs/smart-input/ComposerDraftNotice.js +35 -0
- package/dist/agents/components/inputs/smart-input/ComposerToolsNotice.d.ts +6 -0
- package/dist/agents/components/inputs/smart-input/ComposerToolsNotice.js +52 -0
- package/dist/agents/components/inputs/smart-input/ComputeLensBar.d.ts +7 -0
- package/dist/agents/components/inputs/smart-input/ComputeLensBar.js +229 -0
- package/dist/agents/components/inputs/smart-input/ContextDocsMenu.d.ts +9 -0
- package/dist/agents/components/inputs/smart-input/ContextDocsMenu.js +247 -0
- package/dist/agents/components/inputs/smart-input/ConversationContextChip.d.ts +56 -0
- package/dist/agents/components/inputs/smart-input/ConversationContextChip.js +224 -0
- package/dist/agents/components/inputs/smart-input/ConversationContextRail.d.ts +44 -0
- package/dist/agents/components/inputs/smart-input/ConversationContextRail.js +461 -0
- package/dist/agents/components/inputs/smart-input/DesktopPresenceIndicator.d.ts +5 -0
- package/dist/agents/components/inputs/smart-input/DesktopPresenceIndicator.js +101 -0
- package/dist/agents/components/inputs/smart-input/InboxQueueStrip.d.ts +30 -0
- package/dist/agents/components/inputs/smart-input/InboxQueueStrip.js +296 -0
- package/dist/agents/components/inputs/smart-input/InputActionButtons.d.ts +81 -0
- package/dist/agents/components/inputs/smart-input/InputActionButtons.js +275 -0
- package/dist/agents/components/inputs/smart-input/PlusAttachMenu.d.ts +19 -0
- package/dist/agents/components/inputs/smart-input/PlusAttachMenu.js +304 -0
- package/dist/agents/components/inputs/smart-input/QuicksetPanel.d.ts +8 -0
- package/dist/agents/components/inputs/smart-input/QuicksetPanel.js +312 -0
- package/dist/agents/components/inputs/smart-input/RunControlsMenu.d.ts +31 -0
- package/dist/agents/components/inputs/smart-input/RunControlsMenu.js +264 -0
- package/dist/agents/components/inputs/smart-input/RunControlsTabPanel.d.ts +67 -0
- package/dist/agents/components/inputs/smart-input/RunControlsTabPanel.js +306 -0
- package/dist/agents/components/inputs/smart-input/RunPicksSurface.d.ts +90 -0
- package/dist/agents/components/inputs/smart-input/RunPicksSurface.js +274 -0
- package/dist/agents/components/inputs/smart-input/RunSkillPicker.d.ts +3 -0
- package/dist/agents/components/inputs/smart-input/RunSkillPicker.js +191 -0
- package/dist/agents/components/inputs/smart-input/RunToolPicker.d.ts +3 -0
- package/dist/agents/components/inputs/smart-input/RunToolPicker.js +267 -0
- package/dist/agents/components/inputs/smart-input/ShapeChipsRow.d.ts +23 -0
- package/dist/agents/components/inputs/smart-input/ShapeChipsRow.js +68 -0
- package/dist/agents/components/inputs/smart-input/SmartAgentInput.d.ts +48 -0
- package/dist/agents/components/inputs/smart-input/SmartAgentInput.js +80 -0
- package/dist/agents/components/inputs/smart-input/SmartAgentInputStacked.d.ts +44 -0
- package/dist/agents/components/inputs/smart-input/SmartAgentInputStacked.js +349 -0
- package/dist/agents/components/inputs/smart-input/SmartInputFileDropTarget.d.ts +15 -0
- package/dist/agents/components/inputs/smart-input/SmartInputFileDropTarget.js +64 -0
- package/dist/agents/components/inputs/smart-input/UninitializedShell.d.ts +2 -0
- package/dist/agents/components/inputs/smart-input/UninitializedShell.js +30 -0
- package/dist/agents/components/inputs/smart-input/ViewOnlyComposerBar.d.ts +1 -0
- package/dist/agents/components/inputs/smart-input/ViewOnlyComposerBar.js +21 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerAgentPill.d.ts +15 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerAgentPill.js +284 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerChipsRow.d.ts +9 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerChipsRow.js +91 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerConnectPromo.d.ts +5 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerConnectPromo.js +55 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerConnectorsPanel.d.ts +5 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerConnectorsPanel.js +168 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerEffortPill.d.ts +28 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerEffortPill.js +119 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerMenu.d.ts +131 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerMenu.js +362 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerMenuSheet.d.ts +21 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerMenuSheet.js +72 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerMetaRow.d.ts +35 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerMetaRow.js +103 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerModeSwitch.d.ts +9 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerModeSwitch.js +94 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerOutput.d.ts +10 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerOutput.js +368 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerPlusMenu.d.ts +64 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerPlusMenu.js +520 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerSplash.d.ts +28 -0
- package/dist/agents/components/inputs/smart-input/composer/ComposerSplash.js +151 -0
- package/dist/agents/components/inputs/smart-input/composer/agent-output-filter.d.ts +27 -0
- package/dist/agents/components/inputs/smart-input/composer/agent-output-filter.js +43 -0
- package/dist/agents/components/inputs/smart-input/composer/already-answering.d.ts +9 -0
- package/dist/agents/components/inputs/smart-input/composer/already-answering.js +10 -0
- package/dist/agents/components/inputs/smart-input/composer/composer-chip.d.ts +16 -0
- package/dist/agents/components/inputs/smart-input/composer/composer-chip.js +13 -0
- package/dist/agents/components/inputs/smart-input/composer/composer-mode-cookie.d.ts +57 -0
- package/dist/agents/components/inputs/smart-input/composer/composer-mode-cookie.js +43 -0
- package/dist/agents/components/inputs/smart-input/composer/composer-mode-visibility.d.ts +24 -0
- package/dist/agents/components/inputs/smart-input/composer/composer-mode-visibility.js +50 -0
- package/dist/agents/components/inputs/smart-input/composer/composer-types.d.ts +86 -0
- package/dist/agents/components/inputs/smart-input/composer/composer-types.js +14 -0
- package/dist/agents/components/inputs/smart-input/composer/output-selection.d.ts +107 -0
- package/dist/agents/components/inputs/smart-input/composer/output-selection.js +186 -0
- package/dist/agents/components/inputs/smart-input/composer/useCompactInputMaxHeight.d.ts +6 -0
- package/dist/agents/components/inputs/smart-input/composer/useCompactInputMaxHeight.js +25 -0
- package/dist/agents/components/inputs/smart-input/composer/useComposerAgent.d.ts +26 -0
- package/dist/agents/components/inputs/smart-input/composer/useComposerAgent.js +87 -0
- package/dist/agents/components/inputs/smart-input/composer/useComposerAgentFilter.d.ts +6 -0
- package/dist/agents/components/inputs/smart-input/composer/useComposerAgentFilter.js +20 -0
- package/dist/agents/components/inputs/smart-input/composer/useComposerFold.d.ts +14 -0
- package/dist/agents/components/inputs/smart-input/composer/useComposerFold.js +21 -0
- package/dist/agents/components/inputs/smart-input/composer/useComposerMode.d.ts +8 -0
- package/dist/agents/components/inputs/smart-input/composer/useComposerMode.js +55 -0
- package/dist/agents/components/inputs/smart-input/composer/useOutputShapeCatalog.d.ts +37 -0
- package/dist/agents/components/inputs/smart-input/composer/useOutputShapeCatalog.js +151 -0
- package/dist/agents/components/inputs/smart-input/prepend-template-to-draft.d.ts +5 -0
- package/dist/agents/components/inputs/smart-input/prepend-template-to-draft.js +9 -0
- package/dist/agents/components/inputs/smart-input/run-tool-catalog.d.ts +23 -0
- package/dist/agents/components/inputs/smart-input/run-tool-catalog.js +35 -0
- package/dist/agents/components/inputs/smart-input/shape-chips.d.ts +29 -0
- package/dist/agents/components/inputs/smart-input/shape-chips.js +10 -0
- package/dist/agents/components/inputs/smart-input/textarea-line-grid.d.ts +17 -0
- package/dist/agents/components/inputs/smart-input/textarea-line-grid.js +17 -0
- package/dist/agents/components/inputs/smart-input/use-compute-target-actions.d.ts +34 -0
- package/dist/agents/components/inputs/smart-input/use-compute-target-actions.js +130 -0
- package/dist/agents/components/inputs/smart-input/useCompanionValuesPreview.d.ts +3 -0
- package/dist/agents/components/inputs/smart-input/useCompanionValuesPreview.js +40 -0
- package/dist/agents/components/inputs/smart-input/useConversationDisplayRows.d.ts +12 -0
- package/dist/agents/components/inputs/smart-input/useConversationDisplayRows.js +65 -0
- package/dist/agents/components/inputs/variable-input-variations/AgentVariableCards.d.ts +6 -0
- package/dist/agents/components/inputs/variable-input-variations/AgentVariableCards.js +282 -0
- package/dist/agents/components/inputs/variable-input-variations/AgentVariableForm.d.ts +5 -0
- package/dist/agents/components/inputs/variable-input-variations/AgentVariableForm.js +439 -0
- package/dist/agents/components/inputs/variable-input-variations/AgentVariablesGuided.d.ts +8 -0
- package/dist/agents/components/inputs/variable-input-variations/AgentVariablesGuided.js +708 -0
- package/dist/agents/components/inputs/variable-input-variations/AgentVariablesStacked.d.ts +5 -0
- package/dist/agents/components/inputs/variable-input-variations/AgentVariablesStacked.js +83 -0
- package/dist/agents/components/inputs/variable-input-variations/AgentVariablesWizard.d.ts +9 -0
- package/dist/agents/components/inputs/variable-input-variations/AgentVariablesWizard.js +127 -0
- package/dist/agents/components/inputs/variable-input-variations/SmartAgentVariables.d.ts +12 -0
- package/dist/agents/components/inputs/variable-input-variations/SmartAgentVariables.js +67 -0
- package/dist/agents/components/inputs/variable-input-variations/variable-input-options.d.ts +29 -0
- package/dist/agents/components/inputs/variable-input-variations/variable-input-options.js +259 -0
- package/dist/agents/components/live-run/LiveRunDisplay.d.ts +39 -0
- package/dist/agents/components/live-run/LiveRunDisplay.js +138 -0
- package/dist/agents/components/live-run/LiveRunProgress.d.ts +33 -0
- package/dist/agents/components/live-run/LiveRunProgress.js +146 -0
- package/dist/agents/components/live-run/RunSetDisplay.d.ts +48 -0
- package/dist/agents/components/live-run/RunSetDisplay.js +87 -0
- package/dist/agents/components/live-run/useLiveRunStatus.d.ts +18 -0
- package/dist/agents/components/live-run/useLiveRunStatus.js +109 -0
- package/dist/agents/components/memory/components/AgentMemoryAllView.d.ts +6 -0
- package/dist/agents/components/memory/components/AgentMemoryAllView.js +78 -0
- package/dist/agents/components/memory/components/AgentMemoryBody.d.ts +6 -0
- package/dist/agents/components/memory/components/AgentMemoryBody.js +19 -0
- package/dist/agents/components/memory/components/AgentMemoryEditor.d.ts +8 -0
- package/dist/agents/components/memory/components/AgentMemoryEditor.js +82 -0
- package/dist/agents/components/memory/components/AgentMemoryFooter.d.ts +6 -0
- package/dist/agents/components/memory/components/AgentMemoryFooter.js +94 -0
- package/dist/agents/components/memory/components/AgentMemoryInlinePanel.d.ts +1 -0
- package/dist/agents/components/memory/components/AgentMemoryInlinePanel.js +34 -0
- package/dist/agents/components/memory/components/AgentMemorySidebar.d.ts +6 -0
- package/dist/agents/components/memory/components/AgentMemorySidebar.js +196 -0
- package/dist/agents/components/memory/hooks/useAgentMemories.d.ts +82 -0
- package/dist/agents/components/memory/hooks/useAgentMemories.js +221 -0
- package/dist/agents/components/memory/service/agent-memory.service.d.ts +19 -0
- package/dist/agents/components/memory/service/agent-memory.service.js +90 -0
- package/dist/agents/components/memory/types.d.ts +34 -0
- package/dist/agents/components/memory/types.js +21 -0
- package/dist/agents/components/messages-display/AgentConversationDisplay.d.ts +16 -0
- package/dist/agents/components/messages-display/AgentConversationDisplay.js +413 -0
- package/dist/agents/components/messages-display/MessageAttachmentStrip.d.ts +9 -0
- package/dist/agents/components/messages-display/MessageAttachmentStrip.js +59 -0
- package/dist/agents/components/messages-display/MessageTimestamp.d.ts +14 -0
- package/dist/agents/components/messages-display/MessageTimestamp.js +65 -0
- package/dist/agents/components/messages-display/TranscriptIntegrityCopyButton.d.ts +7 -0
- package/dist/agents/components/messages-display/TranscriptIntegrityCopyButton.js +81 -0
- package/dist/agents/components/messages-display/assistant/AgentAssistantMessage.d.ts +45 -0
- package/dist/agents/components/messages-display/assistant/AgentAssistantMessage.js +523 -0
- package/dist/agents/components/messages-display/assistant/AgentEmptyMessageDisplay.d.ts +3 -0
- package/dist/agents/components/messages-display/assistant/AgentEmptyMessageDisplay.js +70 -0
- package/dist/agents/components/messages-display/assistant/AssistantMessageFooter.d.ts +69 -0
- package/dist/agents/components/messages-display/assistant/AssistantMessageFooter.js +248 -0
- package/dist/agents/components/messages-display/assistant/AssistantNoAnswer.d.ts +24 -0
- package/dist/agents/components/messages-display/assistant/AssistantNoAnswer.js +42 -0
- package/dist/agents/components/messages-display/assistant/AssistantTurnGroup.d.ts +22 -0
- package/dist/agents/components/messages-display/assistant/AssistantTurnGroup.js +145 -0
- package/dist/agents/components/messages-display/assistant/BreathingOrb.d.ts +20 -0
- package/dist/agents/components/messages-display/assistant/BreathingOrb.js +83 -0
- package/dist/agents/components/messages-display/assistant/InPlaceAnswerEditor.d.ts +13 -0
- package/dist/agents/components/messages-display/assistant/InPlaceAnswerEditor.js +116 -0
- package/dist/agents/components/messages-display/assistant/ProviderRetryCard.d.ts +23 -0
- package/dist/agents/components/messages-display/assistant/ProviderRetryCard.js +162 -0
- package/dist/agents/components/messages-display/assistant/answerless-turn.d.ts +156 -0
- package/dist/agents/components/messages-display/assistant/answerless-turn.js +47 -0
- package/dist/agents/components/messages-display/assistant/collapse-by-request-id.d.ts +63 -0
- package/dist/agents/components/messages-display/assistant/collapse-by-request-id.js +49 -0
- package/dist/agents/components/messages-display/assistant/continue-in-chat.d.ts +9 -0
- package/dist/agents/components/messages-display/assistant/continue-in-chat.js +10 -0
- package/dist/agents/components/messages-display/assistant/empty-state-instruction.d.ts +24 -0
- package/dist/agents/components/messages-display/assistant/empty-state-instruction.js +15 -0
- package/dist/agents/components/messages-display/citations/MessageCitationsContext.d.ts +21 -0
- package/dist/agents/components/messages-display/citations/MessageCitationsContext.js +18 -0
- package/dist/agents/components/messages-display/citations/MessageSourcesRow.d.ts +7 -0
- package/dist/agents/components/messages-display/citations/MessageSourcesRow.js +46 -0
- package/dist/agents/components/messages-display/citations/citation-source.d.ts +10 -0
- package/dist/agents/components/messages-display/citations/citation-source.js +34 -0
- package/dist/agents/components/messages-display/conversation-tools/ConversationFindBar.d.ts +16 -0
- package/dist/agents/components/messages-display/conversation-tools/ConversationFindBar.js +142 -0
- package/dist/agents/components/messages-display/conversation-tools/FollowUpSuggestions.d.ts +22 -0
- package/dist/agents/components/messages-display/conversation-tools/FollowUpSuggestions.js +40 -0
- package/dist/agents/components/messages-display/conversation-tools/conversation-view-state.d.ts +11 -0
- package/dist/agents/components/messages-display/conversation-tools/conversation-view-state.js +47 -0
- package/dist/agents/components/messages-display/conversation-tools/find-in-conversation.d.ts +31 -0
- package/dist/agents/components/messages-display/conversation-tools/find-in-conversation.js +54 -0
- package/dist/agents/components/messages-display/conversation-tools/message-keyboard-nav.d.ts +1 -0
- package/dist/agents/components/messages-display/conversation-tools/message-keyboard-nav.js +20 -0
- package/dist/agents/components/messages-display/conversation-tools/pinned-filter.d.ts +17 -0
- package/dist/agents/components/messages-display/conversation-tools/pinned-filter.js +25 -0
- package/dist/agents/components/messages-display/conversation-tools/useMessageListInteractions.d.ts +4 -0
- package/dist/agents/components/messages-display/conversation-tools/useMessageListInteractions.js +136 -0
- package/dist/agents/components/messages-display/display-groups.d.ts +92 -0
- package/dist/agents/components/messages-display/display-groups.js +217 -0
- package/dist/agents/components/messages-display/hydrateConversationForReading.d.ts +16 -0
- package/dist/agents/components/messages-display/hydrateConversationForReading.js +26 -0
- package/dist/agents/components/messages-display/message-options/DeleteMessageDialog.d.ts +15 -0
- package/dist/agents/components/messages-display/message-options/DeleteMessageDialog.js +111 -0
- package/dist/agents/components/messages-display/message-options/EditHistoryDialog.d.ts +8 -0
- package/dist/agents/components/messages-display/message-options/EditHistoryDialog.js +252 -0
- package/dist/agents/components/messages-display/message-options/buildTaskSeedFromMessage.d.ts +34 -0
- package/dist/agents/components/messages-display/message-options/buildTaskSeedFromMessage.js +56 -0
- package/dist/agents/components/messages-display/message-options/convertibleContent.d.ts +17 -0
- package/dist/agents/components/messages-display/message-options/convertibleContent.js +26 -0
- package/dist/agents/components/messages-display/message-options/openAssistantMessageEditor.d.ts +25 -0
- package/dist/agents/components/messages-display/message-options/openAssistantMessageEditor.js +25 -0
- package/dist/agents/components/messages-display/message-options/pending-source.d.ts +12 -0
- package/dist/agents/components/messages-display/message-options/pending-source.js +0 -0
- package/dist/agents/components/messages-display/message-options/promptForkOutcome.d.ts +7 -0
- package/dist/agents/components/messages-display/message-options/promptForkOutcome.js +28 -0
- package/dist/agents/components/messages-display/message-options/resolveAssistantEditTarget.d.ts +23 -0
- package/dist/agents/components/messages-display/message-options/resolveAssistantEditTarget.js +24 -0
- package/dist/agents/components/messages-display/message-options/shareMessageAsWebpage.d.ts +27 -0
- package/dist/agents/components/messages-display/message-options/shareMessageAsWebpage.js +34 -0
- package/dist/agents/components/messages-display/message-options/userEditActions.d.ts +31 -0
- package/dist/agents/components/messages-display/message-options/userEditActions.js +50 -0
- package/dist/agents/components/messages-display/transcript-integrity-report.d.ts +83 -0
- package/dist/agents/components/messages-display/transcript-integrity-report.js +202 -0
- package/dist/agents/components/messages-display/user/AgentUserMessage.d.ts +32 -0
- package/dist/agents/components/messages-display/user/AgentUserMessage.js +408 -0
- package/dist/agents/components/messages-display/user/CollabNoteMessage.d.ts +23 -0
- package/dist/agents/components/messages-display/user/CollabNoteMessage.js +53 -0
- package/dist/agents/components/messages-display/user/FirstTurnVariables.d.ts +33 -0
- package/dist/agents/components/messages-display/user/FirstTurnVariables.js +109 -0
- package/dist/agents/components/messages-display/user/PendingSendMessage.d.ts +5 -0
- package/dist/agents/components/messages-display/user/PendingSendMessage.js +106 -0
- package/dist/agents/components/messages-display/user/RemarksTranscriptView.d.ts +13 -0
- package/dist/agents/components/messages-display/user/RemarksTranscriptView.js +85 -0
- package/dist/agents/components/messages-display/user/ResourceAttachmentTile.d.ts +36 -0
- package/dist/agents/components/messages-display/user/ResourceAttachmentTile.js +294 -0
- package/dist/agents/components/messages-display/user/ResourceEditableToggleSamples.d.ts +1 -0
- package/dist/agents/components/messages-display/user/ResourceEditableToggleSamples.js +67 -0
- package/dist/agents/components/messages-display/user/UserActionBar.d.ts +35 -0
- package/dist/agents/components/messages-display/user/UserActionBar.js +268 -0
- package/dist/agents/components/messages-display/user/UserMessageAttachmentStyleComparison.d.ts +7 -0
- package/dist/agents/components/messages-display/user/UserMessageAttachmentStyleComparison.js +146 -0
- package/dist/agents/components/messages-display/user/UserMessageChipsDemo.d.ts +1 -0
- package/dist/agents/components/messages-display/user/UserMessageChipsDemo.js +335 -0
- package/dist/agents/components/messages-display/user/UserMessageHybridTileSamples.d.ts +6 -0
- package/dist/agents/components/messages-display/user/UserMessageHybridTileSamples.js +575 -0
- package/dist/agents/components/messages-display/user/compact-chip-label.d.ts +14 -0
- package/dist/agents/components/messages-display/user/compact-chip-label.js +15 -0
- package/dist/agents/components/messages-display/user/literal-user-text.d.ts +17 -0
- package/dist/agents/components/messages-display/user/literal-user-text.js +31 -0
- package/dist/agents/components/messages-display/user/resourceAttachmentTile.theme.d.ts +12 -0
- package/dist/agents/components/messages-display/user/resourceAttachmentTile.theme.js +151 -0
- package/dist/agents/components/messages-display/user/useCollapsibleMessageText.d.ts +31 -0
- package/dist/agents/components/messages-display/user/useCollapsibleMessageText.js +51 -0
- package/dist/agents/components/messages-display/user/userMessageChipsDemoData.d.ts +53 -0
- package/dist/agents/components/messages-display/user/userMessageChipsDemoData.js +618 -0
- package/dist/agents/components/model/AgentModelPanel.d.ts +4 -0
- package/dist/agents/components/model/AgentModelPanel.js +9 -0
- package/dist/agents/components/model-tiers/ModelTierIdentityList.d.ts +15 -0
- package/dist/agents/components/model-tiers/ModelTierIdentityList.js +64 -0
- package/dist/agents/components/notifications/ImageArrivalPeek.d.ts +34 -0
- package/dist/agents/components/notifications/ImageArrivalPeek.js +113 -0
- package/dist/agents/components/notifications/ImageArrivalPeekHost.d.ts +27 -0
- package/dist/agents/components/notifications/ImageArrivalPeekHost.js +53 -0
- package/dist/agents/components/notifications/useImageArrivalPeeks.d.ts +33 -0
- package/dist/agents/components/notifications/useImageArrivalPeeks.js +50 -0
- package/dist/agents/components/observational-memory/ObservationalMemoryCore.d.ts +27 -0
- package/dist/agents/components/observational-memory/ObservationalMemoryCore.js +79 -0
- package/dist/agents/components/observational-memory/components/MemoryControls.d.ts +9 -0
- package/dist/agents/components/observational-memory/components/MemoryControls.js +149 -0
- package/dist/agents/components/observational-memory/components/MemoryCostCard.d.ts +23 -0
- package/dist/agents/components/observational-memory/components/MemoryCostCard.js +208 -0
- package/dist/agents/components/observational-memory/components/MemoryEventTimeline.d.ts +9 -0
- package/dist/agents/components/observational-memory/components/MemoryEventTimeline.js +216 -0
- package/dist/agents/components/observational-memory/components/MemoryOverviewCard.d.ts +7 -0
- package/dist/agents/components/observational-memory/components/MemoryOverviewCard.js +157 -0
- package/dist/agents/components/observational-memory/components/MemoryStateInspector.d.ts +21 -0
- package/dist/agents/components/observational-memory/components/MemoryStateInspector.js +538 -0
- package/dist/agents/components/observational-memory/components/format.d.ts +11 -0
- package/dist/agents/components/observational-memory/components/format.js +29 -0
- package/dist/agents/components/run/AgentRunHeader.d.ts +10 -0
- package/dist/agents/components/run/AgentRunHeader.js +64 -0
- package/dist/agents/components/run/AgentRunnerPage.d.ts +46 -0
- package/dist/agents/components/run/AgentRunnerPage.js +330 -0
- package/dist/agents/components/run/AgentStatusIndicator.d.ts +6 -0
- package/dist/agents/components/run/AgentStatusIndicator.js +19 -0
- package/dist/agents/components/run/AssistantError.d.ts +32 -0
- package/dist/agents/components/run/AssistantError.js +128 -0
- package/dist/agents/components/run/AssistantWarning.d.ts +7 -0
- package/dist/agents/components/run/AssistantWarning.js +32 -0
- package/dist/agents/components/run/GenerationJobCard.d.ts +22 -0
- package/dist/agents/components/run/GenerationJobCard.js +123 -0
- package/dist/agents/components/run/RunJobWorkingLine.d.ts +6 -0
- package/dist/agents/components/run/RunJobWorkingLine.js +55 -0
- package/dist/agents/components/run/agent-run-variable-write.d.ts +12 -0
- package/dist/agents/components/run/agent-run-variable-write.js +32 -0
- package/dist/agents/components/run/friendlyStreamError.d.ts +49 -0
- package/dist/agents/components/run/friendlyStreamError.js +60 -0
- package/dist/agents/components/run/run-sidebar/AgentRunsSidebar.d.ts +15 -0
- package/dist/agents/components/run/run-sidebar/AgentRunsSidebar.js +201 -0
- package/dist/agents/components/run/run-sidebar/SidebarHeader.d.ts +21 -0
- package/dist/agents/components/run/run-sidebar/SidebarHeader.js +50 -0
- package/dist/agents/components/run/useVideoSecondPoints.d.ts +5 -0
- package/dist/agents/components/run/useVideoSecondPoints.js +45 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/AdvancedRunSettings.d.ts +16 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/AdvancedRunSettings.js +140 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/ComplexityBadge.d.ts +11 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/ComplexityBadge.js +43 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/bands.d.ts +19 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/bands.js +16 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/engine.d.ts +16 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/engine.js +34 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/index.d.ts +8 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/index.js +7 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/rules/artifact-skills.d.ts +10 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/rules/artifact-skills.js +42 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/rules/attributes.d.ts +18 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/rules/attributes.js +57 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/rules/constraints.d.ts +23 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/rules/constraints.js +116 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/rules/importance.d.ts +17 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/rules/importance.js +87 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/rules/input-modes.d.ts +12 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/rules/input-modes.js +24 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/rules/primary-output.d.ts +8 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/rules/primary-output.js +20 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/rules/thinking.d.ts +9 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/rules/thinking.js +22 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/rules/tools.d.ts +9 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/rules/tools.js +44 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/types.d.ts +55 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/algorithm/types.js +0 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/constants.d.ts +64 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/constants.js +129 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/index.d.ts +6 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/index.js +32 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/primitives.d.ts +61 -0
- package/dist/agents/components/run-controls/AdvancedRunSettings/primitives.js +200 -0
- package/dist/agents/components/run-controls/AgentExecutionTestModal.d.ts +36 -0
- package/dist/agents/components/run-controls/AgentExecutionTestModal.js +435 -0
- package/dist/agents/components/run-controls/AgentLauncherSidebarTester.d.ts +6 -0
- package/dist/agents/components/run-controls/AgentLauncherSidebarTester.js +127 -0
- package/dist/agents/components/run-controls/AgentWidgetInvokerTester.d.ts +6 -0
- package/dist/agents/components/run-controls/AgentWidgetInvokerTester.js +84 -0
- package/dist/agents/components/run-controls/ContextPoliciesTab.d.ts +7 -0
- package/dist/agents/components/run-controls/ContextPoliciesTab.js +499 -0
- package/dist/agents/components/run-controls/CreatorRunPanel.d.ts +22 -0
- package/dist/agents/components/run-controls/CreatorRunPanel.js +108 -0
- package/dist/agents/components/run-controls/CreatorRunTabContent.d.ts +30 -0
- package/dist/agents/components/run-controls/CreatorRunTabContent.js +319 -0
- package/dist/agents/components/run-controls/PayloadTab.d.ts +5 -0
- package/dist/agents/components/run-controls/PayloadTab.js +378 -0
- package/dist/agents/components/run-controls/RunConfigOverrides.d.ts +68 -0
- package/dist/agents/components/run-controls/RunConfigOverrides.js +502 -0
- package/dist/agents/components/run-controls/RunInputCapabilities.d.ts +6 -0
- package/dist/agents/components/run-controls/RunInputCapabilities.js +64 -0
- package/dist/agents/components/run-controls/RunModelPicker.d.ts +13 -0
- package/dist/agents/components/run-controls/RunModelPicker.js +121 -0
- package/dist/agents/components/run-controls/RunSettingsEditor.d.ts +9 -0
- package/dist/agents/components/run-controls/RunSettingsEditor.js +473 -0
- package/dist/agents/components/run-controls/RunSettingsModal.d.ts +5 -0
- package/dist/agents/components/run-controls/RunSettingsModal.js +22 -0
- package/dist/agents/components/run-controls/SimpleRunSettings/CapabilityGrid.d.ts +18 -0
- package/dist/agents/components/run-controls/SimpleRunSettings/CapabilityGrid.js +64 -0
- package/dist/agents/components/run-controls/SimpleRunSettings/ReasoningLevelSelector.d.ts +18 -0
- package/dist/agents/components/run-controls/SimpleRunSettings/ReasoningLevelSelector.js +31 -0
- package/dist/agents/components/run-controls/SimpleRunSettings/SimpleRunSettings.d.ts +28 -0
- package/dist/agents/components/run-controls/SimpleRunSettings/SimpleRunSettings.js +95 -0
- package/dist/agents/components/run-controls/SimpleRunSettings/SimpleRunSettingsButton.d.ts +19 -0
- package/dist/agents/components/run-controls/SimpleRunSettings/SimpleRunSettingsButton.js +89 -0
- package/dist/agents/components/run-controls/SimpleRunSettings/capabilities.d.ts +47 -0
- package/dist/agents/components/run-controls/SimpleRunSettings/capabilities.js +122 -0
- package/dist/agents/components/run-controls/StoredModelOverridesField.d.ts +26 -0
- package/dist/agents/components/run-controls/StoredModelOverridesField.js +125 -0
- package/dist/agents/components/run-controls/SurfaceSimulatorSelect.d.ts +10 -0
- package/dist/agents/components/run-controls/SurfaceSimulatorSelect.js +214 -0
- package/dist/agents/components/run-controls/TesterSettingsPanel.d.ts +71 -0
- package/dist/agents/components/run-controls/TesterSettingsPanel.js +470 -0
- package/dist/agents/components/run-controls/panels/BackendTargetPanel.d.ts +28 -0
- package/dist/agents/components/run-controls/panels/BackendTargetPanel.js +142 -0
- package/dist/agents/components/run-controls/panels/ClientMetricsPanel.d.ts +6 -0
- package/dist/agents/components/run-controls/panels/ClientMetricsPanel.js +101 -0
- package/dist/agents/components/run-controls/panels/ModelContextPanel.d.ts +4 -0
- package/dist/agents/components/run-controls/panels/ModelContextPanel.js +211 -0
- package/dist/agents/components/run-controls/panels/RequestStatsPanel.d.ts +6 -0
- package/dist/agents/components/run-controls/panels/RequestStatsPanel.js +126 -0
- package/dist/agents/components/run-controls/panels/SessionStatsPanel.d.ts +4 -0
- package/dist/agents/components/run-controls/panels/SessionStatsPanel.js +103 -0
- package/dist/agents/components/run-controls/panels/shared.d.ts +149 -0
- package/dist/agents/components/run-controls/panels/shared.js +110 -0
- package/dist/agents/components/send-to-agent/SendToAgentWindow.d.ts +9 -0
- package/dist/agents/components/send-to-agent/SendToAgentWindow.js +219 -0
- package/dist/agents/components/send-to-agent/send-to-agent-plan.d.ts +65 -0
- package/dist/agents/components/send-to-agent/send-to-agent-plan.js +128 -0
- package/dist/agents/components/shared/AgentConversationColumn.d.ts +119 -0
- package/dist/agents/components/shared/AgentConversationColumn.js +354 -0
- package/dist/agents/components/shared/AgentDuplicateOutcomeDialog.d.ts +33 -0
- package/dist/agents/components/shared/AgentDuplicateOutcomeDialog.js +142 -0
- package/dist/agents/components/shared/AgentHeader.d.ts +25 -0
- package/dist/agents/components/shared/AgentHeader.js +66 -0
- package/dist/agents/components/shared/AgentHeaderMobile.d.ts +13 -0
- package/dist/agents/components/shared/AgentHeaderMobile.js +265 -0
- package/dist/agents/components/shared/AgentModeController.d.ts +24 -0
- package/dist/agents/components/shared/AgentModeController.js +175 -0
- package/dist/agents/components/shared/AgentNewRunButton.d.ts +5 -0
- package/dist/agents/components/shared/AgentNewRunButton.js +32 -0
- package/dist/agents/components/shared/AgentOptionsMenu.d.ts +8 -0
- package/dist/agents/components/shared/AgentOptionsMenu.js +826 -0
- package/dist/agents/components/shared/AgentPlanningIndicator.d.ts +8 -0
- package/dist/agents/components/shared/AgentPlanningIndicator.js +18 -0
- package/dist/agents/components/shared/AgentReferenceCopyButton.d.ts +6 -0
- package/dist/agents/components/shared/AgentReferenceCopyButton.js +25 -0
- package/dist/agents/components/shared/AgentSaveStatus.d.ts +7 -0
- package/dist/agents/components/shared/AgentSaveStatus.js +107 -0
- package/dist/agents/components/shared/AgentSaveTapButton.d.ts +18 -0
- package/dist/agents/components/shared/AgentSaveTapButton.js +105 -0
- package/dist/agents/components/shared/AgentSelectorIsland.d.ts +17 -0
- package/dist/agents/components/shared/AgentSelectorIsland.js +67 -0
- package/dist/agents/components/shared/AutoInjectionSwitch.d.ts +46 -0
- package/dist/agents/components/shared/AutoInjectionSwitch.js +105 -0
- package/dist/agents/components/shared/DesktopFilterPanel.d.ts +41 -0
- package/dist/agents/components/shared/DesktopFilterPanel.js +295 -0
- package/dist/agents/components/shared/OlderMessagesSentinel.d.ts +43 -0
- package/dist/agents/components/shared/OlderMessagesSentinel.js +251 -0
- package/dist/agents/components/shared/StreamProfilerOverlay.d.ts +1 -0
- package/dist/agents/components/shared/StreamProfilerOverlay.js +88 -0
- package/dist/agents/components/shared/agent-route-context.d.ts +3 -0
- package/dist/agents/components/shared/agent-route-context.js +8 -0
- package/dist/agents/components/shared/assistant-message-layout.d.ts +8 -0
- package/dist/agents/components/shared/assistant-message-layout.js +6 -0
- package/dist/agents/components/shared/transcript-audience.d.ts +28 -0
- package/dist/agents/components/shared/transcript-audience.js +27 -0
- package/dist/agents/components/shared/useAgentSaveAction.d.ts +33 -0
- package/dist/agents/components/shared/useAgentSaveAction.js +179 -0
- package/dist/agents/components/shell/AgentBuildSidebarExtras.d.ts +6 -0
- package/dist/agents/components/shell/AgentBuildSidebarExtras.js +30 -0
- package/dist/agents/components/shell/AgentRunSidebarMenu.d.ts +5 -0
- package/dist/agents/components/shell/AgentRunSidebarMenu.js +250 -0
- package/dist/agents/components/shell/AgentsListHeader.d.ts +1 -0
- package/dist/agents/components/shell/AgentsListHeader.js +69 -0
- package/dist/agents/components/shell/agent-run-route.d.ts +10 -0
- package/dist/agents/components/shell/agent-run-route.js +33 -0
- package/dist/agents/components/smart/AgentRunWrapper.d.ts +13 -0
- package/dist/agents/components/smart/AgentRunWrapper.js +122 -0
- package/dist/agents/components/smart/AgentRunner.d.ts +12 -0
- package/dist/agents/components/smart/AgentRunner.js +176 -0
- package/dist/agents/components/smart/CreateWithAiTabs.d.ts +79 -0
- package/dist/agents/components/smart/CreateWithAiTabs.js +160 -0
- package/dist/agents/components/undo-history/AgentEditHistory.d.ts +9 -0
- package/dist/agents/components/undo-history/AgentEditHistory.js +244 -0
- package/dist/agents/components/unused/AgentSharedHeader.d.ts +3 -0
- package/dist/agents/components/unused/AgentSharedHeader.js +134 -0
- package/dist/agents/components/widgets/AgentWidgetsPage.d.ts +11 -0
- package/dist/agents/components/widgets/AgentWidgetsPage.js +571 -0
- package/dist/agents/components/widgets/WidgetVariableInputs.d.ts +8 -0
- package/dist/agents/components/widgets/WidgetVariableInputs.js +80 -0
- package/dist/agents/components/widgets/build-widget-launch.d.ts +70 -0
- package/dist/agents/components/widgets/build-widget-launch.js +90 -0
- package/dist/agents/components/working-document/DocumentLinkPicker.d.ts +20 -0
- package/dist/agents/components/working-document/DocumentLinkPicker.js +223 -0
- package/dist/agents/components/working-document/ScratchpadQuickPanel.d.ts +5 -0
- package/dist/agents/components/working-document/ScratchpadQuickPanel.js +56 -0
- package/dist/agents/components/working-document/ScratchpadSwitcherMenu.d.ts +11 -0
- package/dist/agents/components/working-document/ScratchpadSwitcherMenu.js +128 -0
- package/dist/agents/components/working-document/WorkingDocumentAgentDiff.d.ts +8 -0
- package/dist/agents/components/working-document/WorkingDocumentAgentDiff.js +32 -0
- package/dist/agents/components/working-document/WorkingDocumentEditor.d.ts +34 -0
- package/dist/agents/components/working-document/WorkingDocumentEditor.js +241 -0
- package/dist/agents/components/working-document/WorkingDocumentLatestVersionDiff.d.ts +7 -0
- package/dist/agents/components/working-document/WorkingDocumentLatestVersionDiff.js +62 -0
- package/dist/agents/components/working-document/WorkingDocumentPanel.d.ts +47 -0
- package/dist/agents/components/working-document/WorkingDocumentPanel.js +405 -0
- package/dist/agents/components/working-document/WorkingDocumentVersionHistory.d.ts +15 -0
- package/dist/agents/components/working-document/WorkingDocumentVersionHistory.js +213 -0
- package/dist/agents/components/working-document/WorkingDocumentViewControls.d.ts +41 -0
- package/dist/agents/components/working-document/WorkingDocumentViewControls.js +121 -0
- package/dist/agents/components/working-document/documents-workspace/DocumentsListRail.d.ts +28 -0
- package/dist/agents/components/working-document/documents-workspace/DocumentsListRail.js +215 -0
- package/dist/agents/components/working-document/documents-workspace/DocumentsWorkspace.d.ts +15 -0
- package/dist/agents/components/working-document/documents-workspace/DocumentsWorkspace.js +451 -0
- package/dist/agents/components/working-document/editor-mode.d.ts +1 -0
- package/dist/agents/components/working-document/editor-mode.js +0 -0
- package/dist/agents/components/working-document/markdown-headings.d.ts +31 -0
- package/dist/agents/components/working-document/markdown-headings.js +65 -0
- package/dist/agents/components/working-document/useWorkingDocumentSurfaceScope.d.ts +15 -0
- package/dist/agents/components/working-document/useWorkingDocumentSurfaceScope.js +89 -0
- package/dist/agents/components/working-document/useWorkingDocumentVersions.d.ts +13 -0
- package/dist/agents/components/working-document/useWorkingDocumentVersions.js +71 -0
- package/dist/agents/components/working-document/workingDocumentSurface.d.ts +78 -0
- package/dist/agents/components/working-document/workingDocumentSurface.js +106 -0
- package/dist/agents/components/working-document/workingDocumentViewStore.d.ts +22 -0
- package/dist/agents/components/working-document/workingDocumentViewStore.js +53 -0
- package/dist/agents/connectors/attachable-resources.d.ts +151 -0
- package/dist/agents/connectors/attachable-resources.js +63 -0
- package/dist/agents/connectors/attachments.slice.d.ts +121 -0
- package/dist/agents/connectors/attachments.slice.js +266 -0
- package/dist/agents/connectors/chat-connections.d.ts +76 -0
- package/dist/agents/connectors/chat-connections.js +53 -0
- package/dist/agents/connectors/connection-state.d.ts +79 -0
- package/dist/agents/connectors/connection-state.js +136 -0
- package/dist/agents/connectors/run-attachments.d.ts +68 -0
- package/dist/agents/connectors/run-attachments.js +85 -0
- package/dist/agents/constants/agent-identity-metadata.d.ts +88 -0
- package/dist/agents/constants/agent-identity-metadata.js +131 -0
- package/dist/agents/constants/agent-settings-surface.d.ts +29 -0
- package/dist/agents/constants/agent-settings-surface.js +6 -0
- package/dist/agents/constants/agent-system-competitors.d.ts +9 -0
- package/dist/agents/constants/agent-system-competitors.js +125 -0
- package/dist/agents/constants/blank-agent.d.ts +38 -0
- package/dist/agents/constants/blank-agent.js +28 -0
- package/dist/agents/constants/local-agent-templates.d.ts +11 -0
- package/dist/agents/constants/local-agent-templates.js +76 -0
- package/dist/agents/constants/system-agent-registry.d.ts +30 -0
- package/dist/agents/constants/system-agent-registry.js +27 -0
- package/dist/agents/constants/system-shortcuts.d.ts +93 -0
- package/dist/agents/constants/system-shortcuts.js +40 -0
- package/dist/agents/conversation-export/conversation-markdown.d.ts +14 -0
- package/dist/agents/conversation-export/conversation-markdown.js +34 -0
- package/dist/agents/conversation-export/conversation-transfer-rows.d.ts +27 -0
- package/dist/agents/conversation-export/conversation-transfer-rows.js +43 -0
- package/dist/agents/conversation-export/conversation-transfer.d.ts +71 -0
- package/dist/agents/conversation-export/conversation-transfer.js +268 -0
- package/dist/agents/conversation-export/document-markdown.d.ts +2 -0
- package/dist/agents/conversation-export/document-markdown.js +8 -0
- package/dist/agents/conversation-export/load-full-history.d.ts +5 -0
- package/dist/agents/conversation-export/load-full-history.js +26 -0
- package/dist/agents/conversation-export/turn-trust-strip.d.ts +9 -0
- package/dist/agents/conversation-export/turn-trust-strip.js +10 -0
- package/dist/agents/cost.d.ts +5 -0
- package/dist/agents/cost.js +6 -0
- package/dist/agents/decision-answers/DecisionAnswers.d.ts +16 -0
- package/dist/agents/decision-answers/DecisionAnswers.js +226 -0
- package/dist/agents/decision-questions/types.d.ts +79 -0
- package/dist/agents/decision-questions/types.js +40 -0
- package/dist/agents/format.d.ts +204 -0
- package/dist/agents/format.js +298 -0
- package/dist/agents/hooks/documentBridgeOwnership.d.ts +6 -0
- package/dist/agents/hooks/documentBridgeOwnership.js +18 -0
- package/dist/agents/hooks/mcp-connection-route.d.ts +12 -0
- package/dist/agents/hooks/mcp-connection-route.js +16 -0
- package/dist/agents/hooks/message-crud/useMessageActions.d.ts +29 -0
- package/dist/agents/hooks/message-crud/useMessageActions.js +119 -0
- package/dist/agents/hooks/useAgentAutoSave.d.ts +1 -0
- package/dist/agents/hooks/useAgentAutoSave.js +110 -0
- package/dist/agents/hooks/useAgentBuilderWriteHandlers.d.ts +9 -0
- package/dist/agents/hooks/useAgentBuilderWriteHandlers.js +102 -0
- package/dist/agents/hooks/useAgentDuplicateFlow.d.ts +15 -0
- package/dist/agents/hooks/useAgentDuplicateFlow.js +76 -0
- package/dist/agents/hooks/useAgentLauncher.d.ts +44 -0
- package/dist/agents/hooks/useAgentLauncher.js +345 -0
- package/dist/agents/hooks/useAgentLauncherTester.d.ts +74 -0
- package/dist/agents/hooks/useAgentLauncherTester.js +242 -0
- package/dist/agents/hooks/useAgentModelLabel.d.ts +13 -0
- package/dist/agents/hooks/useAgentModelLabel.js +27 -0
- package/dist/agents/hooks/useAgentRunSurfaceScope.d.ts +24 -0
- package/dist/agents/hooks/useAgentRunSurfaceScope.js +103 -0
- package/dist/agents/hooks/useAgentUndoRedo.d.ts +31 -0
- package/dist/agents/hooks/useAgentUndoRedo.js +134 -0
- package/dist/agents/hooks/useAgentUsages.d.ts +17 -0
- package/dist/agents/hooks/useAgentUsages.js +36 -0
- package/dist/agents/hooks/useBoundVariableScope.d.ts +30 -0
- package/dist/agents/hooks/useBoundVariableScope.js +122 -0
- package/dist/agents/hooks/useBuilderContextSeed.d.ts +25 -0
- package/dist/agents/hooks/useBuilderContextSeed.js +86 -0
- package/dist/agents/hooks/useConversationMaterialized.d.ts +5 -0
- package/dist/agents/hooks/useConversationMaterialized.js +54 -0
- package/dist/agents/hooks/useConversationPendingCalls.d.ts +30 -0
- package/dist/agents/hooks/useConversationPendingCalls.js +42 -0
- package/dist/agents/hooks/useConversationResume.d.ts +58 -0
- package/dist/agents/hooks/useConversationResume.js +136 -0
- package/dist/agents/hooks/useConversationRoutePromotion.d.ts +29 -0
- package/dist/agents/hooks/useConversationRoutePromotion.js +95 -0
- package/dist/agents/hooks/useConversationSandboxBindingSync.d.ts +1 -0
- package/dist/agents/hooks/useConversationSandboxBindingSync.js +29 -0
- package/dist/agents/hooks/useConversationTitle.d.ts +6 -0
- package/dist/agents/hooks/useConversationTitle.js +45 -0
- package/dist/agents/hooks/useCreatorOwnershipSync.d.ts +1 -0
- package/dist/agents/hooks/useCreatorOwnershipSync.js +27 -0
- package/dist/agents/hooks/useDesktopPresence.d.ts +2 -0
- package/dist/agents/hooks/useDesktopPresence.js +25 -0
- package/dist/agents/hooks/useDiffEnrichment.d.ts +2 -0
- package/dist/agents/hooks/useDiffEnrichment.js +39 -0
- package/dist/agents/hooks/useDriftAlerts.d.ts +11 -0
- package/dist/agents/hooks/useDriftAlerts.js +36 -0
- package/dist/agents/hooks/useDriftReport.d.ts +20 -0
- package/dist/agents/hooks/useDriftReport.js +34 -0
- package/dist/agents/hooks/useFloatingAgentRun.d.ts +77 -0
- package/dist/agents/hooks/useFloatingAgentRun.js +119 -0
- package/dist/agents/hooks/useHeadlessAgentJson.d.ts +41 -0
- package/dist/agents/hooks/useHeadlessAgentJson.js +70 -0
- package/dist/agents/hooks/useInstanceInputUndoRedo.d.ts +23 -0
- package/dist/agents/hooks/useInstanceInputUndoRedo.js +94 -0
- package/dist/agents/hooks/useLiveAgentRun.d.ts +26 -0
- package/dist/agents/hooks/useLiveAgentRun.js +71 -0
- package/dist/agents/hooks/useLiveRunHandle.d.ts +13 -0
- package/dist/agents/hooks/useLiveRunHandle.js +31 -0
- package/dist/agents/hooks/useMcpTools.d.ts +88 -0
- package/dist/agents/hooks/useMcpTools.js +231 -0
- package/dist/agents/hooks/useModelControls.d.ts +359 -0
- package/dist/agents/hooks/useModelControls.js +297 -0
- package/dist/agents/hooks/useShortcutTrigger.d.ts +89 -0
- package/dist/agents/hooks/useShortcutTrigger.js +51 -0
- package/dist/agents/hooks/useSurfaceExecution.d.ts +8 -0
- package/dist/agents/hooks/useSurfaceExecution.js +27 -0
- package/dist/agents/hooks/useWarmAgent.d.ts +8 -0
- package/dist/agents/hooks/useWarmAgent.js +25 -0
- package/dist/agents/hooks/useWidgetHandle.d.ts +41 -0
- package/dist/agents/hooks/useWidgetHandle.js +91 -0
- package/dist/agents/hooks/useWorkingDocument.d.ts +66 -0
- package/dist/agents/hooks/useWorkingDocument.js +682 -0
- package/dist/agents/image-roles/ImageRoleSelector.d.ts +18 -0
- package/dist/agents/image-roles/ImageRoleSelector.js +94 -0
- package/dist/agents/image-roles/ReferenceRoleCaption.d.ts +8 -0
- package/dist/agents/image-roles/ReferenceRoleCaption.js +21 -0
- package/dist/agents/image-roles/class-aware-rpc.d.ts +22 -0
- package/dist/agents/image-roles/class-aware-rpc.js +28 -0
- package/dist/agents/image-roles/useImageRoleLimits.d.ts +4 -0
- package/dist/agents/image-roles/useImageRoleLimits.js +70 -0
- package/dist/agents/lifecycle/useAgentLifecycleActions.d.ts +17 -0
- package/dist/agents/lifecycle/useAgentLifecycleActions.js +63 -0
- package/dist/agents/mcp-copy.d.ts +77 -0
- package/dist/agents/mcp-copy.js +96 -0
- package/dist/agents/menu/agent-actions.d.ts +15 -0
- package/dist/agents/menu/agent-actions.js +72 -0
- package/dist/agents/message-flags/ExampleTurnsGroup.d.ts +11 -0
- package/dist/agents/message-flags/ExampleTurnsGroup.js +22 -0
- package/dist/agents/message-flags/MessageFlagToggles.d.ts +16 -0
- package/dist/agents/message-flags/MessageFlagToggles.js +110 -0
- package/dist/agents/message-flags/MessageFlagsPreview.d.ts +5 -0
- package/dist/agents/message-flags/MessageFlagsPreview.js +54 -0
- package/dist/agents/message-flags/PrefillNote.d.ts +20 -0
- package/dist/agents/message-flags/PrefillNote.js +46 -0
- package/dist/agents/message-flags/StoppedNote.d.ts +5 -0
- package/dist/agents/message-flags/StoppedNote.js +31 -0
- package/dist/agents/message-flags/flags.d.ts +95 -0
- package/dist/agents/message-flags/flags.js +227 -0
- package/dist/agents/message-flags/useMessageFlagProfile.d.ts +4 -0
- package/dist/agents/message-flags/useMessageFlagProfile.js +90 -0
- package/dist/agents/message-flags/useMessageFlags.d.ts +8 -0
- package/dist/agents/message-flags/useMessageFlags.js +68 -0
- package/dist/agents/message-pins/pinned-messages-store.d.ts +22 -0
- package/dist/agents/message-pins/pinned-messages-store.js +133 -0
- package/dist/agents/model-registry/model-classes.d.ts +43 -0
- package/dist/agents/model-registry/model-classes.js +40 -0
- package/dist/agents/model-registry/modelRegistrySlice.d.ts +691 -0
- package/dist/agents/model-registry/modelRegistrySlice.js +574 -0
- package/dist/agents/model-registry/parse.d.ts +88 -0
- package/dist/agents/model-registry/parse.js +246 -0
- package/dist/agents/prompt-preview/PromptPreviewContent.d.ts +5 -0
- package/dist/agents/prompt-preview/PromptPreviewContent.js +131 -0
- package/dist/agents/prompt-preview/service.d.ts +13 -0
- package/dist/agents/prompt-preview/service.js +56 -0
- package/dist/agents/prompt-preview/types.d.ts +29 -0
- package/dist/agents/prompt-preview/types.js +0 -0
- package/dist/agents/redux/agent-assistant-markdown-draft.slice.d.ts +35 -0
- package/dist/agents/redux/agent-assistant-markdown-draft.slice.js +48 -0
- package/dist/agents/redux/agent-definition/agent-cache-bust-request.d.ts +19 -0
- package/dist/agents/redux/agent-definition/agent-cache-bust-request.js +63 -0
- package/dist/agents/redux/agent-definition/agent-not-readable.d.ts +6 -0
- package/dist/agents/redux/agent-definition/agent-not-readable.js +16 -0
- package/dist/agents/redux/agent-definition/agentNameTaken.d.ts +17 -0
- package/dist/agents/redux/agent-definition/agentNameTaken.js +18 -0
- package/dist/agents/redux/agent-definition/cache-bust-middleware.d.ts +46 -0
- package/dist/agents/redux/agent-definition/cache-bust-middleware.js +95 -0
- package/dist/agents/redux/agent-definition/converters.d.ts +66 -0
- package/dist/agents/redux/agent-definition/converters.js +440 -0
- package/dist/agents/redux/agent-definition/data-issue-recovery.d.ts +31 -0
- package/dist/agents/redux/agent-definition/data-issue-recovery.js +69 -0
- package/dist/agents/redux/agent-definition/invalidate-agent-cache.thunk.d.ts +33 -0
- package/dist/agents/redux/agent-definition/invalidate-agent-cache.thunk.js +29 -0
- package/dist/agents/redux/agent-definition/parse-custom-tools.d.ts +28 -0
- package/dist/agents/redux/agent-definition/parse-custom-tools.js +114 -0
- package/dist/agents/redux/agent-definition/parse-messages-variables.d.ts +10 -0
- package/dist/agents/redux/agent-definition/parse-messages-variables.js +476 -0
- package/dist/agents/redux/agent-definition/parse-output-snapshot.d.ts +50 -0
- package/dist/agents/redux/agent-definition/parse-output-snapshot.js +401 -0
- package/dist/agents/redux/agent-definition/parse-settings-context.d.ts +19 -0
- package/dist/agents/redux/agent-definition/parse-settings-context.js +133 -0
- package/dist/agents/redux/agent-definition/sanitize-tool-ids.d.ts +8 -0
- package/dist/agents/redux/agent-definition/sanitize-tool-ids.js +26 -0
- package/dist/agents/redux/agent-definition/selectors.d.ts +22660 -0
- package/dist/agents/redux/agent-definition/selectors.js +672 -0
- package/dist/agents/redux/agent-definition/slice.d.ts +254 -0
- package/dist/agents/redux/agent-definition/slice.js +689 -0
- package/dist/agents/redux/agent-definition/synthetic-id.d.ts +18 -0
- package/dist/agents/redux/agent-definition/synthetic-id.js +8 -0
- package/dist/agents/redux/agent-definition/thunks.d.ts +349 -0
- package/dist/agents/redux/agent-definition/thunks.js +469 -0
- package/dist/agents/redux/agent-filter/selectors.d.ts +421 -0
- package/dist/agents/redux/agent-filter/selectors.js +85 -0
- package/dist/agents/redux/agent-settings/agentSettingsSlice.d.ts +1016 -0
- package/dist/agents/redux/agent-settings/agentSettingsSlice.js +644 -0
- package/dist/agents/redux/agent-settings/internal-utils.d.ts +123 -0
- package/dist/agents/redux/agent-settings/internal-utils.js +315 -0
- package/dist/agents/redux/agent-settings/selectors.d.ts +10196 -0
- package/dist/agents/redux/agent-settings/selectors.js +273 -0
- package/dist/agents/redux/agent-settings/settings-catalogue.d.ts +78 -0
- package/dist/agents/redux/agent-settings/settings-catalogue.js +176 -0
- package/dist/agents/redux/agent-settings/types.d.ts +141 -0
- package/dist/agents/redux/agent-settings/types.js +0 -0
- package/dist/agents/redux/agent-settings/ui-gates.d.ts +54 -0
- package/dist/agents/redux/agent-settings/ui-gates.js +38 -0
- package/dist/agents/redux/agent-shortcut-categories/converters.d.ts +3 -0
- package/dist/agents/redux/agent-shortcut-categories/converters.js +49 -0
- package/dist/agents/redux/agent-shortcut-categories/selectors.d.ts +3232 -0
- package/dist/agents/redux/agent-shortcut-categories/selectors.js +166 -0
- package/dist/agents/redux/agent-shortcut-categories/slice.d.ts +85 -0
- package/dist/agents/redux/agent-shortcut-categories/slice.js +284 -0
- package/dist/agents/redux/agent-shortcut-categories/thunks.d.ts +94 -0
- package/dist/agents/redux/agent-shortcut-categories/thunks.js +215 -0
- package/dist/agents/redux/agent-shortcut-categories/types.d.ts +68 -0
- package/dist/agents/redux/agent-shortcut-categories/types.js +0 -0
- package/dist/agents/redux/agent-shortcuts/converters.d.ts +112 -0
- package/dist/agents/redux/agent-shortcuts/converters.js +373 -0
- package/dist/agents/redux/agent-shortcuts/selectors.d.ts +10555 -0
- package/dist/agents/redux/agent-shortcuts/selectors.js +394 -0
- package/dist/agents/redux/agent-shortcuts/skl-types.d.ts +79 -0
- package/dist/agents/redux/agent-shortcuts/skl-types.js +20 -0
- package/dist/agents/redux/agent-shortcuts/slice.d.ts +142 -0
- package/dist/agents/redux/agent-shortcuts/slice.js +336 -0
- package/dist/agents/redux/agent-shortcuts/thunks/bulkWriteShortcuts.thunk.d.ts +38 -0
- package/dist/agents/redux/agent-shortcuts/thunks/bulkWriteShortcuts.thunk.js +83 -0
- package/dist/agents/redux/agent-shortcuts/thunks/createShortcutFromAgentSurface.thunk.d.ts +67 -0
- package/dist/agents/redux/agent-shortcuts/thunks/createShortcutFromAgentSurface.thunk.js +40 -0
- package/dist/agents/redux/agent-shortcuts/thunks.d.ts +390 -0
- package/dist/agents/redux/agent-shortcuts/thunks.js +900 -0
- package/dist/agents/redux/agent-shortcuts/types.d.ts +415 -0
- package/dist/agents/redux/agent-shortcuts/types.js +5 -0
- package/dist/agents/redux/chat/chat-incognito.slice.d.ts +8 -0
- package/dist/agents/redux/chat/chat-incognito.slice.js +25 -0
- package/dist/agents/redux/chat/chat-route.slice.d.ts +43 -0
- package/dist/agents/redux/chat/chat-route.slice.js +58 -0
- package/dist/agents/redux/conversation-history/conversation-search.d.ts +33 -0
- package/dist/agents/redux/conversation-history/conversation-search.js +108 -0
- package/dist/agents/redux/conversation-history/history-filters.d.ts +49 -0
- package/dist/agents/redux/conversation-history/history-filters.js +49 -0
- package/dist/agents/redux/conversation-history/index.d.ts +18 -0
- package/dist/agents/redux/conversation-history/index.js +4 -0
- package/dist/agents/redux/conversation-history/lanes.d.ts +54 -0
- package/dist/agents/redux/conversation-history/lanes.js +79 -0
- package/dist/agents/redux/conversation-history/selectors.d.ts +1034 -0
- package/dist/agents/redux/conversation-history/selectors.js +155 -0
- package/dist/agents/redux/conversation-history/slice.d.ts +82 -0
- package/dist/agents/redux/conversation-history/slice.js +346 -0
- package/dist/agents/redux/conversation-history/source-registry.d.ts +134 -0
- package/dist/agents/redux/conversation-history/source-registry.js +371 -0
- package/dist/agents/redux/conversation-history/thunks.d.ts +95 -0
- package/dist/agents/redux/conversation-history/thunks.js +238 -0
- package/dist/agents/redux/conversation-history/types.d.ts +152 -0
- package/dist/agents/redux/conversation-history/types.js +32 -0
- package/dist/agents/redux/conversation-history/useSurfaceSourceFilter.d.ts +2 -0
- package/dist/agents/redux/conversation-history/useSurfaceSourceFilter.js +24 -0
- package/dist/agents/redux/conversation-list/conversation-list.selectors.d.ts +197 -0
- package/dist/agents/redux/conversation-list/conversation-list.selectors.js +98 -0
- package/dist/agents/redux/conversation-list/conversation-list.slice.d.ts +176 -0
- package/dist/agents/redux/conversation-list/conversation-list.slice.js +317 -0
- package/dist/agents/redux/conversation-list/conversation-list.thunks.d.ts +96 -0
- package/dist/agents/redux/conversation-list/conversation-list.thunks.js +189 -0
- package/dist/agents/redux/conversation-list/conversation-list.types.d.ts +95 -0
- package/dist/agents/redux/conversation-list/conversation-list.types.js +15 -0
- package/dist/agents/redux/conversation-list/conversation-row-actions.thunks.d.ts +195 -0
- package/dist/agents/redux/conversation-list/conversation-row-actions.thunks.js +252 -0
- package/dist/agents/redux/conversation-list/conversation-trash.thunks.d.ts +64 -0
- package/dist/agents/redux/conversation-list/conversation-trash.thunks.js +115 -0
- package/dist/agents/redux/conversation-list/merge-live-list-row.d.ts +20 -0
- package/dist/agents/redux/conversation-list/merge-live-list-row.js +30 -0
- package/dist/agents/redux/conversation-list/record-conversation-from-execution.d.ts +33 -0
- package/dist/agents/redux/conversation-list/record-conversation-from-execution.js +66 -0
- package/dist/agents/redux/execution-system/active-requests/active-requests.selectors.d.ts +4149 -0
- package/dist/agents/redux/execution-system/active-requests/active-requests.selectors.js +1281 -0
- package/dist/agents/redux/execution-system/active-requests/active-requests.slice.d.ts +234 -0
- package/dist/agents/redux/execution-system/active-requests/active-requests.slice.js +1046 -0
- package/dist/agents/redux/execution-system/active-requests/useRetainRequestForViewer.d.ts +9 -0
- package/dist/agents/redux/execution-system/active-requests/useRetainRequestForViewer.js +31 -0
- package/dist/agents/redux/execution-system/active-tools/active-tools.slice.d.ts +44 -0
- package/dist/agents/redux/execution-system/active-tools/active-tools.slice.js +35 -0
- package/dist/agents/redux/execution-system/client-capabilities/agent-fs.provider.d.ts +17 -0
- package/dist/agents/redux/execution-system/client-capabilities/agent-fs.provider.js +10 -0
- package/dist/agents/redux/execution-system/client-capabilities/desktop-native.provider.d.ts +22 -0
- package/dist/agents/redux/execution-system/client-capabilities/desktop-native.provider.js +25 -0
- package/dist/agents/redux/execution-system/client-capabilities/desktop-presence.d.ts +46 -0
- package/dist/agents/redux/execution-system/client-capabilities/desktop-presence.js +86 -0
- package/dist/agents/redux/execution-system/client-capabilities/editor-state.provider.d.ts +11 -0
- package/dist/agents/redux/execution-system/client-capabilities/editor-state.provider.js +6 -0
- package/dist/agents/redux/execution-system/client-capabilities/register-all.d.ts +13 -0
- package/dist/agents/redux/execution-system/client-capabilities/register-all.js +5 -0
- package/dist/agents/redux/execution-system/client-capabilities/registry.d.ts +37 -0
- package/dist/agents/redux/execution-system/client-capabilities/registry.js +14 -0
- package/dist/agents/redux/execution-system/client-capabilities/sandbox-fs.provider.d.ts +11 -0
- package/dist/agents/redux/execution-system/client-capabilities/sandbox-fs.provider.js +6 -0
- package/dist/agents/redux/execution-system/client-capabilities/widget-handle.provider.d.ts +17 -0
- package/dist/agents/redux/execution-system/client-capabilities/widget-handle.provider.js +22 -0
- package/dist/agents/redux/execution-system/context-rules/context-hierarchy.d.ts +49 -0
- package/dist/agents/redux/execution-system/context-rules/context-hierarchy.js +57 -0
- package/dist/agents/redux/execution-system/context-rules/context-rules.thunks.d.ts +71 -0
- package/dist/agents/redux/execution-system/context-rules/context-rules.thunks.js +164 -0
- package/dist/agents/redux/execution-system/context-rules/context-viewer.d.ts +33 -0
- package/dist/agents/redux/execution-system/context-rules/context-viewer.js +73 -0
- package/dist/agents/redux/execution-system/context-rules/mandate-kill-switch.d.ts +18 -0
- package/dist/agents/redux/execution-system/context-rules/mandate-kill-switch.js +34 -0
- package/dist/agents/redux/execution-system/context-rules/receipt-check.d.ts +44 -0
- package/dist/agents/redux/execution-system/context-rules/receipt-check.js +120 -0
- package/dist/agents/redux/execution-system/context-rules/request-context.d.ts +202 -0
- package/dist/agents/redux/execution-system/context-rules/request-context.js +423 -0
- package/dist/agents/redux/execution-system/context-rules/surface-context-rows.d.ts +26 -0
- package/dist/agents/redux/execution-system/context-rules/surface-context-rows.js +73 -0
- package/dist/agents/redux/execution-system/context-state/context-state.selectors.d.ts +927 -0
- package/dist/agents/redux/execution-system/context-state/context-state.selectors.js +55 -0
- package/dist/agents/redux/execution-system/context-state/context-state.slice.d.ts +85 -0
- package/dist/agents/redux/execution-system/context-state/context-state.slice.js +109 -0
- package/dist/agents/redux/execution-system/conversation-focus/conversation-focus.selectors.d.ts +31 -0
- package/dist/agents/redux/execution-system/conversation-focus/conversation-focus.selectors.js +30 -0
- package/dist/agents/redux/execution-system/conversation-focus/conversation-focus.slice.d.ts +48 -0
- package/dist/agents/redux/execution-system/conversation-focus/conversation-focus.slice.js +102 -0
- package/dist/agents/redux/execution-system/conversations/conversation-persistence.d.ts +38 -0
- package/dist/agents/redux/execution-system/conversations/conversation-persistence.js +30 -0
- package/dist/agents/redux/execution-system/conversations/conversations.selectors.d.ts +393 -0
- package/dist/agents/redux/execution-system/conversations/conversations.selectors.js +87 -0
- package/dist/agents/redux/execution-system/conversations/conversations.slice.d.ts +83 -0
- package/dist/agents/redux/execution-system/conversations/conversations.slice.js +281 -0
- package/dist/agents/redux/execution-system/conversations/conversations.thunks.d.ts +30 -0
- package/dist/agents/redux/execution-system/conversations/conversations.thunks.js +39 -0
- package/dist/agents/redux/execution-system/conversations/surface-owns-output.persistence.d.ts +42 -0
- package/dist/agents/redux/execution-system/conversations/surface-owns-output.persistence.js +50 -0
- package/dist/agents/redux/execution-system/create-instance-full.d.ts +94 -0
- package/dist/agents/redux/execution-system/create-instance-full.js +7 -0
- package/dist/agents/redux/execution-system/display-mode-overlay.d.ts +28 -0
- package/dist/agents/redux/execution-system/display-mode-overlay.js +18 -0
- package/dist/agents/redux/execution-system/durable-runs/reattach-on-transport-loss.d.ts +64 -0
- package/dist/agents/redux/execution-system/durable-runs/reattach-on-transport-loss.js +79 -0
- package/dist/agents/redux/execution-system/inbox/deliver-stranded-queue.thunk.d.ts +36 -0
- package/dist/agents/redux/execution-system/inbox/deliver-stranded-queue.thunk.js +66 -0
- package/dist/agents/redux/execution-system/inbox/inbox-error.d.ts +14 -0
- package/dist/agents/redux/execution-system/inbox/inbox-error.js +17 -0
- package/dist/agents/redux/execution-system/inbox/inbox-turn-end.middleware.d.ts +3 -0
- package/dist/agents/redux/execution-system/inbox/inbox-turn-end.middleware.js +30 -0
- package/dist/agents/redux/execution-system/inbox/inbox.selectors.d.ts +24 -0
- package/dist/agents/redux/execution-system/inbox/inbox.selectors.js +23 -0
- package/dist/agents/redux/execution-system/inbox/inbox.slice.d.ts +76 -0
- package/dist/agents/redux/execution-system/inbox/inbox.slice.js +103 -0
- package/dist/agents/redux/execution-system/inbox/inbox.thunks.d.ts +147 -0
- package/dist/agents/redux/execution-system/inbox/inbox.thunks.js +229 -0
- package/dist/agents/redux/execution-system/instance-client-tools/instance-client-tools.selectors.d.ts +2 -0
- package/dist/agents/redux/execution-system/instance-client-tools/instance-client-tools.selectors.js +5 -0
- package/dist/agents/redux/execution-system/instance-client-tools/instance-client-tools.slice.d.ts +36 -0
- package/dist/agents/redux/execution-system/instance-client-tools/instance-client-tools.slice.js +65 -0
- package/dist/agents/redux/execution-system/instance-context/instance-context.selectors.d.ts +210 -0
- package/dist/agents/redux/execution-system/instance-context/instance-context.selectors.js +36 -0
- package/dist/agents/redux/execution-system/instance-context/instance-context.slice.d.ts +103 -0
- package/dist/agents/redux/execution-system/instance-context/instance-context.slice.js +243 -0
- package/dist/agents/redux/execution-system/instance-context/sync-canvas-item-context.thunk.d.ts +39 -0
- package/dist/agents/redux/execution-system/instance-context/sync-canvas-item-context.thunk.js +111 -0
- package/dist/agents/redux/execution-system/instance-input-capabilities/input-capabilities-snapshot.d.ts +11 -0
- package/dist/agents/redux/execution-system/instance-input-capabilities/input-capabilities-snapshot.js +25 -0
- package/dist/agents/redux/execution-system/instance-input-capabilities/instance-input-capabilities.persistence.d.ts +19 -0
- package/dist/agents/redux/execution-system/instance-input-capabilities/instance-input-capabilities.persistence.js +83 -0
- package/dist/agents/redux/execution-system/instance-input-capabilities/instance-input-capabilities.selectors.d.ts +12 -0
- package/dist/agents/redux/execution-system/instance-input-capabilities/instance-input-capabilities.selectors.js +37 -0
- package/dist/agents/redux/execution-system/instance-input-capabilities/instance-input-capabilities.slice.d.ts +39 -0
- package/dist/agents/redux/execution-system/instance-input-capabilities/instance-input-capabilities.slice.js +91 -0
- package/dist/agents/redux/execution-system/instance-model-overrides/auto-means-unset.d.ts +23 -0
- package/dist/agents/redux/execution-system/instance-model-overrides/auto-means-unset.js +14 -0
- package/dist/agents/redux/execution-system/instance-model-overrides/base-settings.d.ts +23 -0
- package/dist/agents/redux/execution-system/instance-model-overrides/base-settings.js +9 -0
- package/dist/agents/redux/execution-system/instance-model-overrides/instance-model-overrides.selectors.d.ts +63 -0
- package/dist/agents/redux/execution-system/instance-model-overrides/instance-model-overrides.selectors.js +78 -0
- package/dist/agents/redux/execution-system/instance-model-overrides/instance-model-overrides.slice.d.ts +47 -0
- package/dist/agents/redux/execution-system/instance-model-overrides/instance-model-overrides.slice.js +182 -0
- package/dist/agents/redux/execution-system/instance-model-overrides/launch-model-overrides.d.ts +18 -0
- package/dist/agents/redux/execution-system/instance-model-overrides/launch-model-overrides.js +23 -0
- package/dist/agents/redux/execution-system/instance-model-overrides/offering-pin.d.ts +44 -0
- package/dist/agents/redux/execution-system/instance-model-overrides/offering-pin.js +55 -0
- package/dist/agents/redux/execution-system/instance-model-overrides/useEffectiveClassPin.d.ts +17 -0
- package/dist/agents/redux/execution-system/instance-model-overrides/useEffectiveClassPin.js +36 -0
- package/dist/agents/redux/execution-system/instance-resources/answer-edit-remark.d.ts +15 -0
- package/dist/agents/redux/execution-system/instance-resources/answer-edit-remark.js +81 -0
- package/dist/agents/redux/execution-system/instance-resources/editable-resource-types.d.ts +15 -0
- package/dist/agents/redux/execution-system/instance-resources/editable-resource-types.js +20 -0
- package/dist/agents/redux/execution-system/instance-resources/instance-resources.selectors.d.ts +2035 -0
- package/dist/agents/redux/execution-system/instance-resources/instance-resources.selectors.js +572 -0
- package/dist/agents/redux/execution-system/instance-resources/instance-resources.slice.d.ts +81 -0
- package/dist/agents/redux/execution-system/instance-resources/instance-resources.slice.js +262 -0
- package/dist/agents/redux/execution-system/instance-resources/message-part-resources.d.ts +32 -0
- package/dist/agents/redux/execution-system/instance-resources/message-part-resources.js +139 -0
- package/dist/agents/redux/execution-system/instance-resources/remark-diff.d.ts +9 -0
- package/dist/agents/redux/execution-system/instance-resources/remark-diff.js +60 -0
- package/dist/agents/redux/execution-system/instance-resources/remark-handles.d.ts +73 -0
- package/dist/agents/redux/execution-system/instance-resources/remark-handles.js +123 -0
- package/dist/agents/redux/execution-system/instance-resources/remark-knob.d.ts +8 -0
- package/dist/agents/redux/execution-system/instance-resources/remark-knob.js +29 -0
- package/dist/agents/redux/execution-system/instance-resources/remark-sink.d.ts +13 -0
- package/dist/agents/redux/execution-system/instance-resources/remark-sink.js +40 -0
- package/dist/agents/redux/execution-system/instance-resources/remarks-wire.d.ts +20 -0
- package/dist/agents/redux/execution-system/instance-resources/remarks-wire.js +104 -0
- package/dist/agents/redux/execution-system/instance-resources/remarks.d.ts +201 -0
- package/dist/agents/redux/execution-system/instance-resources/remarks.js +219 -0
- package/dist/agents/redux/execution-system/instance-resources/resource-source.d.ts +36 -0
- package/dist/agents/redux/execution-system/instance-resources/resource-source.js +59 -0
- package/dist/agents/redux/execution-system/instance-resources/task-toggle-projection.d.ts +7 -0
- package/dist/agents/redux/execution-system/instance-resources/task-toggle-projection.js +55 -0
- package/dist/agents/redux/execution-system/instance-ui-state/components/InstanceUIStateCore.d.ts +7 -0
- package/dist/agents/redux/execution-system/instance-ui-state/components/InstanceUIStateCore.js +479 -0
- package/dist/agents/redux/execution-system/instance-ui-state/components/InstanceUIStateList.d.ts +11 -0
- package/dist/agents/redux/execution-system/instance-ui-state/components/InstanceUIStateList.js +188 -0
- package/dist/agents/redux/execution-system/instance-ui-state/instance-ui-state.selectors.d.ts +482 -0
- package/dist/agents/redux/execution-system/instance-ui-state/instance-ui-state.selectors.js +284 -0
- package/dist/agents/redux/execution-system/instance-ui-state/instance-ui-state.slice.d.ts +253 -0
- package/dist/agents/redux/execution-system/instance-ui-state/instance-ui-state.slice.js +695 -0
- package/dist/agents/redux/execution-system/instance-ui-state/launch-handle-release.middleware.d.ts +3 -0
- package/dist/agents/redux/execution-system/instance-ui-state/launch-handle-release.middleware.js +49 -0
- package/dist/agents/redux/execution-system/instance-ui-state/run-configuration-persist.d.ts +38 -0
- package/dist/agents/redux/execution-system/instance-ui-state/run-configuration-persist.js +172 -0
- package/dist/agents/redux/execution-system/instance-user-input/clear-composer.thunk.d.ts +11 -0
- package/dist/agents/redux/execution-system/instance-user-input/clear-composer.thunk.js +20 -0
- package/dist/agents/redux/execution-system/instance-user-input/composer-draft-store.d.ts +75 -0
- package/dist/agents/redux/execution-system/instance-user-input/composer-draft-store.js +231 -0
- package/dist/agents/redux/execution-system/instance-user-input/composer-draft.middleware.d.ts +15 -0
- package/dist/agents/redux/execution-system/instance-user-input/composer-draft.middleware.js +118 -0
- package/dist/agents/redux/execution-system/instance-user-input/input-draft-protection.d.ts +34 -0
- package/dist/agents/redux/execution-system/instance-user-input/input-draft-protection.js +44 -0
- package/dist/agents/redux/execution-system/instance-user-input/instance-user-input.selectors.d.ts +61 -0
- package/dist/agents/redux/execution-system/instance-user-input/instance-user-input.selectors.js +34 -0
- package/dist/agents/redux/execution-system/instance-user-input/instance-user-input.slice.d.ts +73 -0
- package/dist/agents/redux/execution-system/instance-user-input/instance-user-input.slice.js +329 -0
- package/dist/agents/redux/execution-system/instance-user-input/restore-composer-draft.thunk.d.ts +18 -0
- package/dist/agents/redux/execution-system/instance-user-input/restore-composer-draft.thunk.js +26 -0
- package/dist/agents/redux/execution-system/instance-user-input/restore-unsent-launch.thunk.d.ts +3 -0
- package/dist/agents/redux/execution-system/instance-user-input/restore-unsent-launch.thunk.js +44 -0
- package/dist/agents/redux/execution-system/instance-user-input/unsent-draft.selectors.d.ts +7 -0
- package/dist/agents/redux/execution-system/instance-user-input/unsent-draft.selectors.js +11 -0
- package/dist/agents/redux/execution-system/instance-user-input/unsent-launch-store.d.ts +24 -0
- package/dist/agents/redux/execution-system/instance-user-input/unsent-launch-store.js +51 -0
- package/dist/agents/redux/execution-system/instance-user-input/unsent-launch.middleware.d.ts +18 -0
- package/dist/agents/redux/execution-system/instance-user-input/unsent-launch.middleware.js +130 -0
- package/dist/agents/redux/execution-system/instance-user-input/useComposerDraftRestore.d.ts +21 -0
- package/dist/agents/redux/execution-system/instance-user-input/useComposerDraftRestore.js +72 -0
- package/dist/agents/redux/execution-system/instance-variable-values/bound-variable.selectors.d.ts +21 -0
- package/dist/agents/redux/execution-system/instance-variable-values/bound-variable.selectors.js +73 -0
- package/dist/agents/redux/execution-system/instance-variable-values/instance-variable-values.persistence.d.ts +63 -0
- package/dist/agents/redux/execution-system/instance-variable-values/instance-variable-values.persistence.js +36 -0
- package/dist/agents/redux/execution-system/instance-variable-values/instance-variable-values.selectors.d.ts +540 -0
- package/dist/agents/redux/execution-system/instance-variable-values/instance-variable-values.selectors.js +138 -0
- package/dist/agents/redux/execution-system/instance-variable-values/instance-variable-values.slice.d.ts +125 -0
- package/dist/agents/redux/execution-system/instance-variable-values/instance-variable-values.slice.js +296 -0
- package/dist/agents/redux/execution-system/instance-variable-values/instance-variable-values.thunks.d.ts +38 -0
- package/dist/agents/redux/execution-system/instance-variable-values/instance-variable-values.thunks.js +42 -0
- package/dist/agents/redux/execution-system/instance-variable-values/resolve-variables-for-request.d.ts +15 -0
- package/dist/agents/redux/execution-system/instance-variable-values/resolve-variables-for-request.js +37 -0
- package/dist/agents/redux/execution-system/instance-working-document/contextDelta.d.ts +27 -0
- package/dist/agents/redux/execution-system/instance-working-document/contextDelta.js +17 -0
- package/dist/agents/redux/execution-system/instance-working-document/cx-working-document.service.d.ts +223 -0
- package/dist/agents/redux/execution-system/instance-working-document/cx-working-document.service.js +313 -0
- package/dist/agents/redux/execution-system/instance-working-document/instance-working-document.selectors.d.ts +35 -0
- package/dist/agents/redux/execution-system/instance-working-document/instance-working-document.selectors.js +46 -0
- package/dist/agents/redux/execution-system/instance-working-document/instance-working-document.slice.d.ts +176 -0
- package/dist/agents/redux/execution-system/instance-working-document/instance-working-document.slice.js +293 -0
- package/dist/agents/redux/execution-system/instance-working-document/instance-working-document.thunks.d.ts +329 -0
- package/dist/agents/redux/execution-system/instance-working-document/instance-working-document.thunks.js +1058 -0
- package/dist/agents/redux/execution-system/instance-working-document/scratchpad.thunks.d.ts +151 -0
- package/dist/agents/redux/execution-system/instance-working-document/scratchpad.thunks.js +284 -0
- package/dist/agents/redux/execution-system/instance-working-document/useLiveWorkingDocPatch.d.ts +10 -0
- package/dist/agents/redux/execution-system/instance-working-document/useLiveWorkingDocPatch.js +93 -0
- package/dist/agents/redux/execution-system/instance-working-document/workingDocPatchDiff.d.ts +63 -0
- package/dist/agents/redux/execution-system/instance-working-document/workingDocPatchDiff.js +30 -0
- package/dist/agents/redux/execution-system/message-crud/answer-text-splice.d.ts +124 -0
- package/dist/agents/redux/execution-system/message-crud/answer-text-splice.js +379 -0
- package/dist/agents/redux/execution-system/message-crud/cache-bypass.slice.d.ts +47 -0
- package/dist/agents/redux/execution-system/message-crud/cache-bypass.slice.js +69 -0
- package/dist/agents/redux/execution-system/message-crud/commit-inline-edit.thunk.d.ts +84 -0
- package/dist/agents/redux/execution-system/message-crud/commit-inline-edit.thunk.js +108 -0
- package/dist/agents/redux/execution-system/message-crud/content-blocks.util.d.ts +27 -0
- package/dist/agents/redux/execution-system/message-crud/content-blocks.util.js +14 -0
- package/dist/agents/redux/execution-system/message-crud/delete-message.thunk.d.ts +50 -0
- package/dist/agents/redux/execution-system/message-crud/delete-message.thunk.js +106 -0
- package/dist/agents/redux/execution-system/message-crud/edit-message-text.thunk.d.ts +27 -0
- package/dist/agents/redux/execution-system/message-crud/edit-message-text.thunk.js +19 -0
- package/dist/agents/redux/execution-system/message-crud/edit-message.thunk.d.ts +48 -0
- package/dist/agents/redux/execution-system/message-crud/edit-message.thunk.js +198 -0
- package/dist/agents/redux/execution-system/message-crud/fork-and-resubmit-from-message.thunk.d.ts +57 -0
- package/dist/agents/redux/execution-system/message-crud/fork-and-resubmit-from-message.thunk.js +65 -0
- package/dist/agents/redux/execution-system/message-crud/fork-conversation.thunk.d.ts +51 -0
- package/dist/agents/redux/execution-system/message-crud/fork-conversation.thunk.js +140 -0
- package/dist/agents/redux/execution-system/message-crud/invalidate-conversation-cache.thunk.d.ts +35 -0
- package/dist/agents/redux/execution-system/message-crud/invalidate-conversation-cache.thunk.js +40 -0
- package/dist/agents/redux/execution-system/message-crud/overwrite-and-resend.thunk.d.ts +63 -0
- package/dist/agents/redux/execution-system/message-crud/overwrite-and-resend.thunk.js +74 -0
- package/dist/agents/redux/execution-system/message-crud/refetch-single-message.thunk.d.ts +57 -0
- package/dist/agents/redux/execution-system/message-crud/refetch-single-message.thunk.js +111 -0
- package/dist/agents/redux/execution-system/message-crud/regenerate-anchor.d.ts +26 -0
- package/dist/agents/redux/execution-system/message-crud/regenerate-anchor.js +25 -0
- package/dist/agents/redux/execution-system/message-crud/regenerate-answer.d.ts +35 -0
- package/dist/agents/redux/execution-system/message-crud/regenerate-answer.js +49 -0
- package/dist/agents/redux/execution-system/message-crud/retry-turn.thunk.d.ts +56 -0
- package/dist/agents/redux/execution-system/message-crud/retry-turn.thunk.js +85 -0
- package/dist/agents/redux/execution-system/message-crud/save-answer-edit.thunk.d.ts +102 -0
- package/dist/agents/redux/execution-system/message-crud/save-answer-edit.thunk.js +98 -0
- package/dist/agents/redux/execution-system/message-crud/server/batch-delete-messages.thunk.d.ts +43 -0
- package/dist/agents/redux/execution-system/message-crud/server/batch-delete-messages.thunk.js +42 -0
- package/dist/agents/redux/execution-system/message-crud/server/compact-turns.thunk.d.ts +58 -0
- package/dist/agents/redux/execution-system/message-crud/server/compact-turns.thunk.js +50 -0
- package/dist/agents/redux/execution-system/message-crud/server/fork-and-run-server.thunk.d.ts +76 -0
- package/dist/agents/redux/execution-system/message-crud/server/fork-and-run-server.thunk.js +101 -0
- package/dist/agents/redux/execution-system/message-crud/server/fork-conversation-server.thunk.d.ts +59 -0
- package/dist/agents/redux/execution-system/message-crud/server/fork-conversation-server.thunk.js +83 -0
- package/dist/agents/redux/execution-system/message-crud/server/hide-messages.thunk.d.ts +45 -0
- package/dist/agents/redux/execution-system/message-crud/server/hide-messages.thunk.js +38 -0
- package/dist/agents/redux/execution-system/message-crud/server/replace-messages.thunk.d.ts +58 -0
- package/dist/agents/redux/execution-system/message-crud/server/replace-messages.thunk.js +46 -0
- package/dist/agents/redux/execution-system/message-crud/server/restore-compaction.thunk.d.ts +39 -0
- package/dist/agents/redux/execution-system/message-crud/server/restore-compaction.thunk.js +44 -0
- package/dist/agents/redux/execution-system/message-crud/soft-delete-conversation.thunk.d.ts +35 -0
- package/dist/agents/redux/execution-system/message-crud/soft-delete-conversation.thunk.js +45 -0
- package/dist/agents/redux/execution-system/message-crud/stamp-remark-handles.thunk.d.ts +23 -0
- package/dist/agents/redux/execution-system/message-crud/stamp-remark-handles.thunk.js +46 -0
- package/dist/agents/redux/execution-system/messages/message-citations.d.ts +177 -0
- package/dist/agents/redux/execution-system/messages/message-citations.js +247 -0
- package/dist/agents/redux/execution-system/messages/message-context-receipt.d.ts +48 -0
- package/dist/agents/redux/execution-system/messages/message-context-receipt.js +67 -0
- package/dist/agents/redux/execution-system/messages/messages.selectors.d.ts +291 -0
- package/dist/agents/redux/execution-system/messages/messages.selectors.js +589 -0
- package/dist/agents/redux/execution-system/messages/messages.slice.d.ts +364 -0
- package/dist/agents/redux/execution-system/messages/messages.slice.js +565 -0
- package/dist/agents/redux/execution-system/messages/persisted-content-boundary.d.ts +36 -0
- package/dist/agents/redux/execution-system/messages/persisted-content-boundary.js +167 -0
- package/dist/agents/redux/execution-system/messages/transcript-journal.d.ts +35 -0
- package/dist/agents/redux/execution-system/messages/transcript-journal.js +35 -0
- package/dist/agents/redux/execution-system/observability/observability.selectors.d.ts +491 -0
- package/dist/agents/redux/execution-system/observability/observability.selectors.js +112 -0
- package/dist/agents/redux/execution-system/observability/observability.slice.d.ts +183 -0
- package/dist/agents/redux/execution-system/observability/observability.slice.js +205 -0
- package/dist/agents/redux/execution-system/observational-memory/fetch-memory-cost.thunk.d.ts +35 -0
- package/dist/agents/redux/execution-system/observational-memory/fetch-memory-cost.thunk.js +33 -0
- package/dist/agents/redux/execution-system/observational-memory/observational-memory.selectors.d.ts +92 -0
- package/dist/agents/redux/execution-system/observational-memory/observational-memory.selectors.js +73 -0
- package/dist/agents/redux/execution-system/observational-memory/observational-memory.slice.d.ts +142 -0
- package/dist/agents/redux/execution-system/observational-memory/observational-memory.slice.js +243 -0
- package/dist/agents/redux/execution-system/run-sets/run-sets.slice.d.ts +77 -0
- package/dist/agents/redux/execution-system/run-sets/run-sets.slice.js +49 -0
- package/dist/agents/redux/execution-system/run-sets/run-sets.thunks.d.ts +43 -0
- package/dist/agents/redux/execution-system/run-sets/run-sets.thunks.js +106 -0
- package/dist/agents/redux/execution-system/selectors/aggregate.selectors.d.ts +1378 -0
- package/dist/agents/redux/execution-system/selectors/aggregate.selectors.js +516 -0
- package/dist/agents/redux/execution-system/thunks/abort-registry.d.ts +29 -0
- package/dist/agents/redux/execution-system/thunks/abort-registry.js +55 -0
- package/dist/agents/redux/execution-system/thunks/adopt-foreign-stream.d.ts +120 -0
- package/dist/agents/redux/execution-system/thunks/adopt-foreign-stream.js +88 -0
- package/dist/agents/redux/execution-system/thunks/attach-workflow-run.d.ts +38 -0
- package/dist/agents/redux/execution-system/thunks/attach-workflow-run.js +25 -0
- package/dist/agents/redux/execution-system/thunks/conversation-bundle.d.ts +99 -0
- package/dist/agents/redux/execution-system/thunks/conversation-bundle.js +302 -0
- package/dist/agents/redux/execution-system/thunks/copy-instance-request-draft.thunk.d.ts +35 -0
- package/dist/agents/redux/execution-system/thunks/copy-instance-request-draft.thunk.js +384 -0
- package/dist/agents/redux/execution-system/thunks/create-instance.thunk.d.ts +305 -0
- package/dist/agents/redux/execution-system/thunks/create-instance.thunk.js +933 -0
- package/dist/agents/redux/execution-system/thunks/dispatch-matrx-extend-tool.thunk.d.ts +25 -0
- package/dist/agents/redux/execution-system/thunks/dispatch-matrx-extend-tool.thunk.js +139 -0
- package/dist/agents/redux/execution-system/thunks/dispatch-surface-client-tool.thunk.d.ts +43 -0
- package/dist/agents/redux/execution-system/thunks/dispatch-surface-client-tool.thunk.js +75 -0
- package/dist/agents/redux/execution-system/thunks/dispatch-surface-write.thunk.d.ts +63 -0
- package/dist/agents/redux/execution-system/thunks/dispatch-surface-write.thunk.js +95 -0
- package/dist/agents/redux/execution-system/thunks/dispatch-widget-action.thunk.d.ts +44 -0
- package/dist/agents/redux/execution-system/thunks/dispatch-widget-action.thunk.js +195 -0
- package/dist/agents/redux/execution-system/thunks/execute-builtin-with-extraction.thunks.d.ts +57 -0
- package/dist/agents/redux/execution-system/thunks/execute-builtin-with-extraction.thunks.js +175 -0
- package/dist/agents/redux/execution-system/thunks/execute-instance.thunk.d.ts +148 -0
- package/dist/agents/redux/execution-system/thunks/execute-instance.thunk.js +663 -0
- package/dist/agents/redux/execution-system/thunks/execute-manual-instance.thunk.d.ts +50 -0
- package/dist/agents/redux/execution-system/thunks/execute-manual-instance.thunk.js +737 -0
- package/dist/agents/redux/execution-system/thunks/execution-rejection-meta.d.ts +49 -0
- package/dist/agents/redux/execution-system/thunks/execution-rejection-meta.js +37 -0
- package/dist/agents/redux/execution-system/thunks/follow-workflow-run-stream.d.ts +115 -0
- package/dist/agents/redux/execution-system/thunks/follow-workflow-run-stream.js +196 -0
- package/dist/agents/redux/execution-system/thunks/frozen-submission.d.ts +47 -0
- package/dist/agents/redux/execution-system/thunks/frozen-submission.js +62 -0
- package/dist/agents/redux/execution-system/thunks/launch-agent-execution.thunk.d.ts +37 -0
- package/dist/agents/redux/execution-system/thunks/launch-agent-execution.thunk.js +753 -0
- package/dist/agents/redux/execution-system/thunks/launch-conversation.thunk.d.ts +65 -0
- package/dist/agents/redux/execution-system/thunks/launch-conversation.thunk.js +85 -0
- package/dist/agents/redux/execution-system/thunks/load-agent-call-child.thunk.d.ts +25 -0
- package/dist/agents/redux/execution-system/thunks/load-agent-call-child.thunk.js +57 -0
- package/dist/agents/redux/execution-system/thunks/load-conversation.thunk.d.ts +100 -0
- package/dist/agents/redux/execution-system/thunks/load-conversation.thunk.js +453 -0
- package/dist/agents/redux/execution-system/thunks/load-older-messages.thunk.d.ts +63 -0
- package/dist/agents/redux/execution-system/thunks/load-older-messages.thunk.js +69 -0
- package/dist/agents/redux/execution-system/thunks/matrx-transport-for-conversation.d.ts +34 -0
- package/dist/agents/redux/execution-system/thunks/matrx-transport-for-conversation.js +26 -0
- package/dist/agents/redux/execution-system/thunks/page-context.thunk.d.ts +14 -0
- package/dist/agents/redux/execution-system/thunks/page-context.thunk.js +25 -0
- package/dist/agents/redux/execution-system/thunks/process-stream.d.ts +112 -0
- package/dist/agents/redux/execution-system/thunks/process-stream.js +2582 -0
- package/dist/agents/redux/execution-system/thunks/provider-retry-control.thunk.d.ts +21 -0
- package/dist/agents/redux/execution-system/thunks/provider-retry-control.thunk.js +49 -0
- package/dist/agents/redux/execution-system/thunks/recover-dropped-stream.thunk.d.ts +50 -0
- package/dist/agents/redux/execution-system/thunks/recover-dropped-stream.thunk.js +60 -0
- package/dist/agents/redux/execution-system/thunks/refresh-conversation-binding.thunk.d.ts +34 -0
- package/dist/agents/redux/execution-system/thunks/refresh-conversation-binding.thunk.js +50 -0
- package/dist/agents/redux/execution-system/thunks/refresh-surface-scope.thunk.d.ts +43 -0
- package/dist/agents/redux/execution-system/thunks/refresh-surface-scope.thunk.js +298 -0
- package/dist/agents/redux/execution-system/thunks/request-draft-snapshot.d.ts +71 -0
- package/dist/agents/redux/execution-system/thunks/request-draft-snapshot.js +255 -0
- package/dist/agents/redux/execution-system/thunks/resolve-base-url.d.ts +64 -0
- package/dist/agents/redux/execution-system/thunks/resolve-base-url.js +113 -0
- package/dist/agents/redux/execution-system/thunks/resume-claims.d.ts +81 -0
- package/dist/agents/redux/execution-system/thunks/resume-claims.js +52 -0
- package/dist/agents/redux/execution-system/thunks/resume-conversation.thunk.d.ts +37 -0
- package/dist/agents/redux/execution-system/thunks/resume-conversation.thunk.js +66 -0
- package/dist/agents/redux/execution-system/thunks/resume-instance.thunk.d.ts +26 -0
- package/dist/agents/redux/execution-system/thunks/resume-instance.thunk.js +311 -0
- package/dist/agents/redux/execution-system/thunks/run-ai-stream.d.ts +211 -0
- package/dist/agents/redux/execution-system/thunks/run-ai-stream.js +594 -0
- package/dist/agents/redux/execution-system/thunks/run-headless-agent-json.d.ts +324 -0
- package/dist/agents/redux/execution-system/thunks/run-headless-agent-json.js +535 -0
- package/dist/agents/redux/execution-system/thunks/sandbox-gate.thunk.d.ts +103 -0
- package/dist/agents/redux/execution-system/thunks/sandbox-gate.thunk.js +134 -0
- package/dist/agents/redux/execution-system/thunks/settle-after-stop.thunk.d.ts +69 -0
- package/dist/agents/redux/execution-system/thunks/settle-after-stop.thunk.js +130 -0
- package/dist/agents/redux/execution-system/thunks/smart-execute.thunk.d.ts +83 -0
- package/dist/agents/redux/execution-system/thunks/smart-execute.thunk.js +530 -0
- package/dist/agents/redux/execution-system/thunks/stream-flush-scheduler.d.ts +18 -0
- package/dist/agents/redux/execution-system/thunks/stream-flush-scheduler.js +54 -0
- package/dist/agents/redux/execution-system/thunks/structured-output-flattening.d.ts +83 -0
- package/dist/agents/redux/execution-system/thunks/structured-output-flattening.js +60 -0
- package/dist/agents/redux/execution-system/thunks/submit-claims.d.ts +36 -0
- package/dist/agents/redux/execution-system/thunks/submit-claims.js +39 -0
- package/dist/agents/redux/execution-system/thunks/surface-cold-pending-calls.thunk.d.ts +23 -0
- package/dist/agents/redux/execution-system/thunks/surface-cold-pending-calls.thunk.js +44 -0
- package/dist/agents/redux/execution-system/thunks/surface-delegated-tool-call.thunk.d.ts +66 -0
- package/dist/agents/redux/execution-system/thunks/surface-delegated-tool-call.thunk.js +275 -0
- package/dist/agents/redux/execution-system/thunks/surface-scope-mapping.d.ts +62 -0
- package/dist/agents/redux/execution-system/thunks/surface-scope-mapping.js +181 -0
- package/dist/agents/redux/execution-system/thunks/surface-tool-call.d.ts +25 -0
- package/dist/agents/redux/execution-system/thunks/surface-tool-call.js +50 -0
- package/dist/agents/redux/execution-system/thunks/surface-write-approval-change.d.ts +57 -0
- package/dist/agents/redux/execution-system/thunks/surface-write-approval-change.js +64 -0
- package/dist/agents/redux/execution-system/thunks/watch-desktop-delegation.thunk.d.ts +26 -0
- package/dist/agents/redux/execution-system/thunks/watch-desktop-delegation.thunk.js +287 -0
- package/dist/agents/redux/execution-system/thunks/widget-action-approval-change.d.ts +16 -0
- package/dist/agents/redux/execution-system/thunks/widget-action-approval-change.js +69 -0
- package/dist/agents/redux/execution-system/utils/agent-call-trace.d.ts +64 -0
- package/dist/agents/redux/execution-system/utils/agent-call-trace.js +90 -0
- package/dist/agents/redux/execution-system/utils/assemble-cx-content-blocks.d.ts +66 -0
- package/dist/agents/redux/execution-system/utils/assemble-cx-content-blocks.js +464 -0
- package/dist/agents/redux/execution-system/utils/assert-conversation-id.d.ts +14 -0
- package/dist/agents/redux/execution-system/utils/assert-conversation-id.js +12 -0
- package/dist/agents/redux/execution-system/utils/block-media-identity.d.ts +11 -0
- package/dist/agents/redux/execution-system/utils/block-media-identity.js +31 -0
- package/dist/agents/redux/execution-system/utils/build-skill-config-for-request.d.ts +38 -0
- package/dist/agents/redux/execution-system/utils/build-skill-config-for-request.js +56 -0
- package/dist/agents/redux/execution-system/utils/build-tool-injection.d.ts +56 -0
- package/dist/agents/redux/execution-system/utils/build-tool-injection.js +269 -0
- package/dist/agents/redux/execution-system/utils/child-owned-ranges.d.ts +34 -0
- package/dist/agents/redux/execution-system/utils/child-owned-ranges.js +48 -0
- package/dist/agents/redux/execution-system/utils/content-prefilter.d.ts +50 -0
- package/dist/agents/redux/execution-system/utils/content-prefilter.js +243 -0
- package/dist/agents/redux/execution-system/utils/continuation-body.d.ts +65 -0
- package/dist/agents/redux/execution-system/utils/continuation-body.js +76 -0
- package/dist/agents/redux/execution-system/utils/handoff-stream-state.d.ts +121 -0
- package/dist/agents/redux/execution-system/utils/handoff-stream-state.js +47 -0
- package/dist/agents/redux/execution-system/utils/ids.d.ts +13 -0
- package/dist/agents/redux/execution-system/utils/ids.js +12 -0
- package/dist/agents/redux/execution-system/utils/inbound-render-block.d.ts +42 -0
- package/dist/agents/redux/execution-system/utils/inbound-render-block.js +35 -0
- package/dist/agents/redux/execution-system/utils/launch-failure-message.d.ts +22 -0
- package/dist/agents/redux/execution-system/utils/launch-failure-message.js +12 -0
- package/dist/agents/redux/execution-system/utils/loaded-skill-sources.d.ts +8 -0
- package/dist/agents/redux/execution-system/utils/loaded-skill-sources.js +13 -0
- package/dist/agents/redux/execution-system/utils/normalize-content-blocks.d.ts +22 -0
- package/dist/agents/redux/execution-system/utils/normalize-content-blocks.js +430 -0
- package/dist/agents/redux/execution-system/utils/output-contract-guard.d.ts +60 -0
- package/dist/agents/redux/execution-system/utils/output-contract-guard.js +67 -0
- package/dist/agents/redux/execution-system/utils/page-leaving.d.ts +3 -0
- package/dist/agents/redux/execution-system/utils/page-leaving.js +27 -0
- package/dist/agents/redux/execution-system/utils/page-tool-binding.d.ts +64 -0
- package/dist/agents/redux/execution-system/utils/page-tool-binding.js +63 -0
- package/dist/agents/redux/execution-system/utils/request-overrides.d.ts +25 -0
- package/dist/agents/redux/execution-system/utils/request-overrides.js +29 -0
- package/dist/agents/redux/execution-system/utils/request-user-overrides.d.ts +16 -0
- package/dist/agents/redux/execution-system/utils/request-user-overrides.js +13 -0
- package/dist/agents/redux/execution-system/utils/required-organization.d.ts +59 -0
- package/dist/agents/redux/execution-system/utils/required-organization.js +53 -0
- package/dist/agents/redux/execution-system/utils/resolve-start-path.d.ts +43 -0
- package/dist/agents/redux/execution-system/utils/resolve-start-path.js +36 -0
- package/dist/agents/redux/execution-system/utils/shortcut-tool-block.d.ts +21 -0
- package/dist/agents/redux/execution-system/utils/shortcut-tool-block.js +14 -0
- package/dist/agents/redux/execution-system/utils/source-slice-helpers.d.ts +45 -0
- package/dist/agents/redux/execution-system/utils/source-slice-helpers.js +50 -0
- package/dist/agents/redux/execution-system/utils/stream-block-accumulator.d.ts +343 -0
- package/dist/agents/redux/execution-system/utils/stream-block-accumulator.js +1945 -0
- package/dist/agents/redux/execution-system/utils/streamHandoffSignal.d.ts +22 -0
- package/dist/agents/redux/execution-system/utils/streamHandoffSignal.js +20 -0
- package/dist/agents/redux/execution-system/utils/surface-writes-note.d.ts +51 -0
- package/dist/agents/redux/execution-system/utils/surface-writes-note.js +71 -0
- package/dist/agents/redux/execution-system/utils/warn-request-context-drift.d.ts +46 -0
- package/dist/agents/redux/execution-system/utils/warn-request-context-drift.js +87 -0
- package/dist/agents/redux/execution-system/utils/wire-transcript.d.ts +40 -0
- package/dist/agents/redux/execution-system/utils/wire-transcript.js +30 -0
- package/dist/agents/redux/mcp/mcp.slice.d.ts +121 -0
- package/dist/agents/redux/mcp/mcp.slice.js +253 -0
- package/dist/agents/redux/model-registry.d.ts +6 -0
- package/dist/agents/redux/model-registry.js +10 -0
- package/dist/agents/redux/proposed-directives/proposedDirectivesSlice.d.ts +134 -0
- package/dist/agents/redux/proposed-directives/proposedDirectivesSlice.js +56 -0
- package/dist/agents/redux/shared/scope.d.ts +16 -0
- package/dist/agents/redux/shared/scope.js +61 -0
- package/dist/agents/redux/surfaces/request-surface-navigation.thunk.d.ts +42 -0
- package/dist/agents/redux/surfaces/request-surface-navigation.thunk.js +25 -0
- package/dist/agents/redux/surfaces/surfaces.slice.d.ts +76 -0
- package/dist/agents/redux/surfaces/surfaces.slice.js +46 -0
- package/dist/agents/redux/tools/database-tool.d.ts +3 -0
- package/dist/agents/redux/tools/database-tool.js +0 -0
- package/dist/agents/redux/tools/tools.selectors.d.ts +529 -0
- package/dist/agents/redux/tools/tools.selectors.js +24 -0
- package/dist/agents/redux/tools/tools.slice.d.ts +12 -0
- package/dist/agents/redux/tools/tools.slice.js +37 -0
- package/dist/agents/redux/tools/tools.thunks.d.ts +125 -0
- package/dist/agents/redux/tools/tools.thunks.js +42 -0
- package/dist/agents/resources/ResourceChips.d.ts +16 -0
- package/dist/agents/resources/ResourceChips.js +147 -0
- package/dist/agents/resources/ResourceDisplay.d.ts +20 -0
- package/dist/agents/resources/ResourceDisplay.js +132 -0
- package/dist/agents/resources/picker-view-id.d.ts +2 -0
- package/dist/agents/resources/picker-view-id.js +0 -0
- package/dist/agents/resources/types.d.ts +378 -0
- package/dist/agents/resources/types.js +0 -0
- package/dist/agents/resources/utils.d.ts +190 -0
- package/dist/agents/resources/utils.js +573 -0
- package/dist/agents/resources/webpage-snapshot.d.ts +10 -0
- package/dist/agents/resources/webpage-snapshot.js +35 -0
- package/dist/agents/route/AgentHydrator.d.ts +4 -0
- package/dist/agents/route/AgentHydrator.js +14 -0
- package/dist/agents/route/AgentHydratorServer.d.ts +8 -0
- package/dist/agents/route/AgentHydratorServer.js +11 -0
- package/dist/agents/route/AgentListHydrator.d.ts +4 -0
- package/dist/agents/route/AgentListHydrator.js +49 -0
- package/dist/agents/route/buildSystemAgentAiPayload.d.ts +14 -0
- package/dist/agents/route/buildSystemAgentAiPayload.js +79 -0
- package/dist/agents/run/useRunAgent.d.ts +69 -0
- package/dist/agents/run/useRunAgent.js +135 -0
- package/dist/agents/runtime/generation-job.d.ts +17 -0
- package/dist/agents/runtime/generation-job.js +58 -0
- package/dist/agents/runtime/get-model-capabilities.d.ts +6 -0
- package/dist/agents/runtime/get-model-capabilities.js +28 -0
- package/dist/agents/runtime/pickRuntime.d.ts +22 -0
- package/dist/agents/runtime/pickRuntime.js +69 -0
- package/dist/agents/runtime/portable-request-parity.d.ts +30 -0
- package/dist/agents/runtime/portable-request-parity.fixtures.d.ts +234 -0
- package/dist/agents/runtime/portable-request-parity.fixtures.js +127 -0
- package/dist/agents/runtime/portable-request-parity.js +117 -0
- package/dist/agents/runtime/realtime/launchRealtimeSession.thunk.d.ts +25 -0
- package/dist/agents/runtime/realtime/launchRealtimeSession.thunk.js +15 -0
- package/dist/agents/runtime/validation.d.ts +28 -0
- package/dist/agents/runtime/validation.js +38 -0
- package/dist/agents/runtime-reconnect/ServerOperationBanner.d.ts +3 -0
- package/dist/agents/runtime-reconnect/ServerOperationBanner.js +108 -0
- package/dist/agents/runtime-reconnect/api.d.ts +55 -0
- package/dist/agents/runtime-reconnect/api.js +39 -0
- package/dist/agents/runtime-reconnect/follow-what-is-still-in-flight.d.ts +19 -0
- package/dist/agents/runtime-reconnect/follow-what-is-still-in-flight.js +11 -0
- package/dist/agents/runtime-reconnect/mark-answer-following.d.ts +12 -0
- package/dist/agents/runtime-reconnect/mark-answer-following.js +20 -0
- package/dist/agents/runtime-reconnect/parked-on-person.d.ts +2 -0
- package/dist/agents/runtime-reconnect/parked-on-person.js +8 -0
- package/dist/agents/runtime-reconnect/reconnect-server-operation.thunk.d.ts +26 -0
- package/dist/agents/runtime-reconnect/reconnect-server-operation.thunk.js +393 -0
- package/dist/agents/runtime-reconnect/reread-and-follow.d.ts +20 -0
- package/dist/agents/runtime-reconnect/reread-and-follow.js +18 -0
- package/dist/agents/runtime-reconnect/retry-reconnect.d.ts +4 -0
- package/dist/agents/runtime-reconnect/retry-reconnect.js +78 -0
- package/dist/agents/runtime-reconnect/show-parked-ask.d.ts +2 -0
- package/dist/agents/runtime-reconnect/show-parked-ask.js +12 -0
- package/dist/agents/runtime-reconnect/types.d.ts +74 -0
- package/dist/agents/runtime-reconnect/types.js +4 -0
- package/dist/agents/runtime-reconnect/waiting-input-recovery.d.ts +34 -0
- package/dist/agents/runtime-reconnect/waiting-input-recovery.js +16 -0
- package/dist/agents/scribe-tools/dispatcher/dispatch-scribe-tool.thunk.d.ts +31 -0
- package/dist/agents/scribe-tools/dispatcher/dispatch-scribe-tool.thunk.js +106 -0
- package/dist/agents/scribe-tools/handlers/play-audio.handler.d.ts +21 -0
- package/dist/agents/scribe-tools/handlers/play-audio.handler.js +48 -0
- package/dist/agents/scribe-tools/handlers/types.d.ts +26 -0
- package/dist/agents/scribe-tools/handlers/types.js +0 -0
- package/dist/agents/scribe-tools/tools/names.d.ts +22 -0
- package/dist/agents/scribe-tools/tools/names.js +8 -0
- package/dist/agents/scribe-tools/tools/registry.d.ts +13 -0
- package/dist/agents/scribe-tools/tools/registry.js +18 -0
- package/dist/agents/scribe-tools/tools/schemas.d.ts +11 -0
- package/dist/agents/scribe-tools/tools/schemas.js +10 -0
- package/dist/agents/scribe-tools/tools/tool-defs.d.ts +19 -0
- package/dist/agents/scribe-tools/tools/tool-defs.js +32 -0
- package/dist/agents/services/agent-definition-snapshot.service.d.ts +15 -0
- package/dist/agents/services/agent-definition-snapshot.service.js +20 -0
- package/dist/agents/services/agentService.d.ts +12 -0
- package/dist/agents/services/agentService.js +92 -0
- package/dist/agents/services/agentService.types.d.ts +23 -0
- package/dist/agents/services/agentService.types.js +0 -0
- package/dist/agents/services/mcp-client/tool-discovery.d.ts +15 -0
- package/dist/agents/services/mcp-client/tool-discovery.js +0 -0
- package/dist/agents/services/mcp-connections.service.d.ts +63 -0
- package/dist/agents/services/mcp-connections.service.js +106 -0
- package/dist/agents/services/mcp-oauth/backend-failure.d.ts +12 -0
- package/dist/agents/services/mcp-oauth/backend-failure.js +62 -0
- package/dist/agents/services/mcp-oauth/client-registration.d.ts +6 -0
- package/dist/agents/services/mcp-oauth/client-registration.js +9 -0
- package/dist/agents/services/mcp-oauth/discovery.d.ts +81 -0
- package/dist/agents/services/mcp-oauth/discovery.js +264 -0
- package/dist/agents/services/mcp-oauth/endpoint.d.ts +12 -0
- package/dist/agents/services/mcp-oauth/endpoint.js +50 -0
- package/dist/agents/services/mcp-oauth/pkce.d.ts +3 -0
- package/dist/agents/services/mcp-oauth/pkce.js +26 -0
- package/dist/agents/services/mcp-oauth/popup.d.ts +38 -0
- package/dist/agents/services/mcp-oauth/popup.js +33 -0
- package/dist/agents/services/mcp-oauth/state.d.ts +7 -0
- package/dist/agents/services/mcp-oauth/state.js +6 -0
- package/dist/agents/services/mcp.service.d.ts +11 -0
- package/dist/agents/services/mcp.service.js +43 -0
- package/dist/agents/services/variable-binding-preview.service.d.ts +52 -0
- package/dist/agents/services/variable-binding-preview.service.js +55 -0
- package/dist/agents/shortcuts/constants.d.ts +194 -0
- package/dist/agents/shortcuts/constants.js +265 -0
- package/dist/agents/shortcuts/draft-seed.d.ts +17 -0
- package/dist/agents/shortcuts/draft-seed.js +26 -0
- package/dist/agents/shortcuts/resolveShortcutMappings.d.ts +38 -0
- package/dist/agents/shortcuts/resolveShortcutMappings.js +28 -0
- package/dist/agents/shortcuts/resolveShortcutWriteScope.d.ts +20 -0
- package/dist/agents/shortcuts/resolveShortcutWriteScope.js +43 -0
- package/dist/agents/speech-script/SpeechScriptTranscriptView.d.ts +8 -0
- package/dist/agents/speech-script/SpeechScriptTranscriptView.js +30 -0
- package/dist/agents/speech-script/types.d.ts +72 -0
- package/dist/agents/speech-script/types.js +129 -0
- package/dist/agents/surface-catalog-profile.d.ts +96 -0
- package/dist/agents/surface-catalog-profile.js +79 -0
- package/dist/agents/types/agent-api-types.d.ts +252 -0
- package/dist/agents/types/agent-api-types.js +0 -0
- package/dist/agents/types/agent-definition.types.d.ts +746 -0
- package/dist/agents/types/agent-definition.types.js +97 -0
- package/dist/agents/types/agent-execution-config.types.d.ts +204 -0
- package/dist/agents/types/agent-execution-config.types.js +47 -0
- package/dist/agents/types/agent-message-types.d.ts +328 -0
- package/dist/agents/types/agent-message-types.js +0 -0
- package/dist/agents/types/common.types.d.ts +50 -0
- package/dist/agents/types/common.types.js +0 -0
- package/dist/agents/types/conversation-invocation.types.d.ts +281 -0
- package/dist/agents/types/conversation-invocation.types.js +0 -0
- package/dist/agents/types/conversation-stream-events.d.ts +38 -0
- package/dist/agents/types/conversation-stream-events.js +8 -0
- package/dist/agents/types/instance.types.d.ts +1227 -0
- package/dist/agents/types/instance.types.js +187 -0
- package/dist/agents/types/json-schema.d.ts +36 -0
- package/dist/agents/types/json-schema.js +0 -0
- package/dist/agents/types/matrx-directives.types.d.ts +37 -0
- package/dist/agents/types/matrx-directives.types.js +4 -0
- package/dist/agents/types/mcp.types.d.ts +67 -0
- package/dist/agents/types/mcp.types.js +67 -0
- package/dist/agents/types/request.types.d.ts +679 -0
- package/dist/agents/types/request.types.js +18 -0
- package/dist/agents/types/scope.types.d.ts +14 -0
- package/dist/agents/types/scope.types.js +0 -0
- package/dist/agents/types/tool-injection.types.d.ts +156 -0
- package/dist/agents/types/tool-injection.types.js +0 -0
- package/dist/agents/types/widget-handle.types.d.ts +185 -0
- package/dist/agents/types/widget-handle.types.js +44 -0
- package/dist/agents/ui-first-tools/demo/recent-interaction-samples.d.ts +16 -0
- package/dist/agents/ui-first-tools/demo/recent-interaction-samples.js +158 -0
- package/dist/agents/ui-first-tools/dispatcher/dispatch-ui-first-tool.thunk.d.ts +39 -0
- package/dist/agents/ui-first-tools/dispatcher/dispatch-ui-first-tool.thunk.js +150 -0
- package/dist/agents/ui-first-tools/handlers/google-email-send.handler.d.ts +17 -0
- package/dist/agents/ui-first-tools/handlers/google-email-send.handler.js +67 -0
- package/dist/agents/ui-first-tools/handlers/request-takeover.handler.d.ts +11 -0
- package/dist/agents/ui-first-tools/handlers/request-takeover.handler.js +54 -0
- package/dist/agents/ui-first-tools/handlers/types.d.ts +23 -0
- package/dist/agents/ui-first-tools/handlers/types.js +0 -0
- package/dist/agents/ui-first-tools/handlers/update-plan.handler.d.ts +10 -0
- package/dist/agents/ui-first-tools/handlers/update-plan.handler.js +139 -0
- package/dist/agents/ui-first-tools/handlers/user-todos.handler.d.ts +13 -0
- package/dist/agents/ui-first-tools/handlers/user-todos.handler.js +147 -0
- package/dist/agents/ui-first-tools/redux/agent-lists.selectors.d.ts +186 -0
- package/dist/agents/ui-first-tools/redux/agent-lists.selectors.js +62 -0
- package/dist/agents/ui-first-tools/redux/agent-lists.slice.d.ts +53 -0
- package/dist/agents/ui-first-tools/redux/agent-lists.slice.js +115 -0
- package/dist/agents/ui-first-tools/redux/agent-lists.thunks.d.ts +41 -0
- package/dist/agents/ui-first-tools/redux/agent-lists.thunks.js +159 -0
- package/dist/agents/ui-first-tools/redux/ask-draft-registry.d.ts +24 -0
- package/dist/agents/ui-first-tools/redux/ask-draft-registry.js +20 -0
- package/dist/agents/ui-first-tools/redux/ask-resolver-registry.d.ts +27 -0
- package/dist/agents/ui-first-tools/redux/ask-resolver-registry.js +46 -0
- package/dist/agents/ui-first-tools/redux/build-ambient-context.d.ts +36 -0
- package/dist/agents/ui-first-tools/redux/build-ambient-context.js +86 -0
- package/dist/agents/ui-first-tools/redux/pending-asks.slice.d.ts +117 -0
- package/dist/agents/ui-first-tools/redux/pending-asks.slice.js +114 -0
- package/dist/agents/ui-first-tools/redux/request-approval.d.ts +35 -0
- package/dist/agents/ui-first-tools/redux/request-approval.js +42 -0
- package/dist/agents/ui-first-tools/redux/resolve-asks-with-input.thunk.d.ts +53 -0
- package/dist/agents/ui-first-tools/redux/resolve-asks-with-input.thunk.js +71 -0
- package/dist/agents/ui-first-tools/service/agent-plan.service.d.ts +23 -0
- package/dist/agents/ui-first-tools/service/agent-plan.service.js +49 -0
- package/dist/agents/ui-first-tools/service/agent-task.service.d.ts +31 -0
- package/dist/agents/ui-first-tools/service/agent-task.service.js +69 -0
- package/dist/agents/ui-first-tools/service/supabase-typed.d.ts +10 -0
- package/dist/agents/ui-first-tools/service/supabase-typed.js +5 -0
- package/dist/agents/ui-first-tools/service/user-todo.service.d.ts +22 -0
- package/dist/agents/ui-first-tools/service/user-todo.service.js +45 -0
- package/dist/agents/ui-first-tools/tools/names.d.ts +16 -0
- package/dist/agents/ui-first-tools/tools/names.js +23 -0
- package/dist/agents/ui-first-tools/tools/registry.d.ts +17 -0
- package/dist/agents/ui-first-tools/tools/registry.js +35 -0
- package/dist/agents/ui-first-tools/tools/schemas.d.ts +259 -0
- package/dist/agents/ui-first-tools/tools/schemas.js +183 -0
- package/dist/agents/ui-first-tools/tools/types.d.ts +108 -0
- package/dist/agents/ui-first-tools/tools/types.js +0 -0
- package/dist/agents/ui-first-tools/ui/AgentCardShell.d.ts +66 -0
- package/dist/agents/ui-first-tools/ui/AgentCardShell.js +144 -0
- package/dist/agents/ui-first-tools/ui/ApprovalCard.d.ts +70 -0
- package/dist/agents/ui-first-tools/ui/ApprovalCard.js +269 -0
- package/dist/agents/ui-first-tools/ui/AskCard.d.ts +95 -0
- package/dist/agents/ui-first-tools/ui/AskCard.js +735 -0
- package/dist/agents/ui-first-tools/ui/AskCardCountdown.d.ts +11 -0
- package/dist/agents/ui-first-tools/ui/AskCardCountdown.js +46 -0
- package/dist/agents/ui-first-tools/ui/AskWizard.d.ts +34 -0
- package/dist/agents/ui-first-tools/ui/AskWizard.js +211 -0
- package/dist/agents/ui-first-tools/ui/BatchAskCard.d.ts +7 -0
- package/dist/agents/ui-first-tools/ui/BatchAskCard.js +33 -0
- package/dist/agents/ui-first-tools/ui/PendingAsksZone.d.ts +6 -0
- package/dist/agents/ui-first-tools/ui/PendingAsksZone.js +137 -0
- package/dist/agents/ui-first-tools/ui/QuestionsAskForm.d.ts +42 -0
- package/dist/agents/ui-first-tools/ui/QuestionsAskForm.js +63 -0
- package/dist/agents/ui-first-tools/ui/approval-types.d.ts +76 -0
- package/dist/agents/ui-first-tools/ui/approval-types.js +4 -0
- package/dist/agents/ui-first-tools/ui/lists/ListsHubView.d.ts +1 -0
- package/dist/agents/ui-first-tools/ui/lists/ListsHubView.js +205 -0
- package/dist/agents/ui-first-tools/ui/lists/TaskPanel.d.ts +11 -0
- package/dist/agents/ui-first-tools/ui/lists/TaskPanel.js +369 -0
- package/dist/agents/ui-first-tools/ui/lists/TaskPanelChip.d.ts +6 -0
- package/dist/agents/ui-first-tools/ui/lists/TaskPanelChip.js +51 -0
- package/dist/agents/utils/add-editor-resources.d.ts +32 -0
- package/dist/agents/utils/add-editor-resources.js +58 -0
- package/dist/agents/utils/agent-edit-access.d.ts +68 -0
- package/dist/agents/utils/agent-edit-access.js +59 -0
- package/dist/agents/utils/agent-system-instruction.d.ts +38 -0
- package/dist/agents/utils/agent-system-instruction.js +19 -0
- package/dist/agents/utils/artifactId.d.ts +34 -0
- package/dist/agents/utils/artifactId.js +15 -0
- package/dist/agents/utils/auto-assignment.d.ts +5 -0
- package/dist/agents/utils/auto-assignment.js +24 -0
- package/dist/agents/utils/canvas-item-event.d.ts +2 -0
- package/dist/agents/utils/canvas-item-event.js +4 -0
- package/dist/agents/utils/canvasItemContext.d.ts +42 -0
- package/dist/agents/utils/canvasItemContext.js +41 -0
- package/dist/agents/utils/choice-rule.d.ts +21 -0
- package/dist/agents/utils/choice-rule.js +24 -0
- package/dist/agents/utils/context-item-policy-mapping.d.ts +33 -0
- package/dist/agents/utils/context-item-policy-mapping.js +71 -0
- package/dist/agents/utils/control-variables.d.ts +78 -0
- package/dist/agents/utils/control-variables.js +199 -0
- package/dist/agents/utils/conversation-message-title.d.ts +16 -0
- package/dist/agents/utils/conversation-message-title.js +11 -0
- package/dist/agents/utils/editor-resource-xml.d.ts +78 -0
- package/dist/agents/utils/editor-resource-xml.js +79 -0
- package/dist/agents/utils/escape-code-fences.d.ts +15 -0
- package/dist/agents/utils/escape-code-fences.js +9 -0
- package/dist/agents/utils/human-authored-text.d.ts +43 -0
- package/dist/agents/utils/human-authored-text.js +33 -0
- package/dist/agents/utils/json-extraction.d.ts +29 -0
- package/dist/agents/utils/json-extraction.js +49 -0
- package/dist/agents/utils/launch-widget-handles.d.ts +13 -0
- package/dist/agents/utils/launch-widget-handles.js +56 -0
- package/dist/agents/utils/media-variable-value.d.ts +19 -0
- package/dist/agents/utils/media-variable-value.js +20 -0
- package/dist/agents/utils/normalize-managed-options.d.ts +30 -0
- package/dist/agents/utils/normalize-managed-options.js +29 -0
- package/dist/agents/utils/processedDocumentContext.d.ts +51 -0
- package/dist/agents/utils/processedDocumentContext.js +51 -0
- package/dist/agents/utils/run-ui-utils.d.ts +111 -0
- package/dist/agents/utils/run-ui-utils.js +221 -0
- package/dist/agents/utils/scope-mapping.d.ts +75 -0
- package/dist/agents/utils/scope-mapping.js +174 -0
- package/dist/agents/utils/shortcut-context-utils.d.ts +148 -0
- package/dist/agents/utils/shortcut-context-utils.js +92 -0
- package/dist/agents/utils/source-feature-from-surface.d.ts +11 -0
- package/dist/agents/utils/source-feature-from-surface.js +101 -0
- package/dist/agents/utils/surface-key.d.ts +40 -0
- package/dist/agents/utils/surface-key.js +31 -0
- package/dist/agents/utils/table-variable.d.ts +26 -0
- package/dist/agents/utils/table-variable.js +47 -0
- package/dist/agents/utils/text-input-variable.d.ts +14 -0
- package/dist/agents/utils/text-input-variable.js +22 -0
- package/dist/agents/utils/trigger-shortcut.d.ts +49 -0
- package/dist/agents/utils/trigger-shortcut.js +35 -0
- package/dist/agents/utils/variable-binding.d.ts +32 -0
- package/dist/agents/utils/variable-binding.js +58 -0
- package/dist/agents/utils/variable-customcomponent.d.ts +65 -0
- package/dist/agents/utils/variable-customcomponent.js +133 -0
- package/dist/agents/utils/variable-display-lines.d.ts +32 -0
- package/dist/agents/utils/variable-display-lines.js +94 -0
- package/dist/agents/utils/variable-utils.d.ts +60 -0
- package/dist/agents/utils/variable-utils.js +68 -0
- package/dist/agents/utils/variable-validation.d.ts +28 -0
- package/dist/agents/utils/variable-validation.js +54 -0
- package/dist/agents/utils/workingDocumentContext.d.ts +112 -0
- package/dist/agents/utils/workingDocumentContext.js +95 -0
- package/dist/agents/war-room-master-tools/names.d.ts +45 -0
- package/dist/agents/war-room-master-tools/names.js +14 -0
- package/dist/agents/war-room-master-tools/tool-defs.d.ts +25 -0
- package/dist/agents/war-room-master-tools/tool-defs.js +129 -0
- package/dist/agents/war-room-tools/names.d.ts +25 -0
- package/dist/agents/war-room-tools/names.js +14 -0
- package/dist/agents/war-room-tools/tool-defs.d.ts +24 -0
- package/dist/agents/war-room-tools/tool-defs.js +113 -0
- package/dist/canvas/workspace/CanvasChatColumn.d.ts +25 -0
- package/dist/canvas/workspace/CanvasChatColumn.js +108 -0
- package/dist/canvas/workspace/CanvasPropertiesPanel.d.ts +27 -0
- package/dist/canvas/workspace/CanvasPropertiesPanel.js +76 -0
- package/dist/canvas/workspace/ChatCanvasWorkspace.d.ts +75 -0
- package/dist/canvas/workspace/ChatCanvasWorkspace.js +182 -0
- package/dist/canvas/workspace/ChatPanelTitleMenu.d.ts +6 -0
- package/dist/canvas/workspace/ChatPanelTitleMenu.js +66 -0
- package/dist/canvas/workspace/ShellChatDock.d.ts +16 -0
- package/dist/canvas/workspace/ShellChatDock.js +313 -0
- package/dist/canvas/workspace/describe-launch-error.d.ts +9 -0
- package/dist/canvas/workspace/describe-launch-error.js +25 -0
- package/dist/canvas/workspace/shell-chat-dock-owners.d.ts +26 -0
- package/dist/canvas/workspace/shell-chat-dock-owners.js +71 -0
- package/dist/canvas/workspace/shell-chat-page-context.d.ts +20 -0
- package/dist/canvas/workspace/shell-chat-page-context.js +58 -0
- package/dist/canvas/workspace/shell-chat-route.d.ts +73 -0
- package/dist/canvas/workspace/shell-chat-route.js +56 -0
- package/dist/canvas/workspace/useCanvasWorkspaceConversation.d.ts +84 -0
- package/dist/canvas/workspace/useCanvasWorkspaceConversation.js +199 -0
- package/dist/canvas/workspace/workspace-cookies.d.ts +39 -0
- package/dist/canvas/workspace/workspace-cookies.js +46 -0
- package/dist/compute/targets.d.ts +223 -0
- package/dist/compute/targets.js +95 -0
- package/dist/context/sources/scopes.d.ts +404 -0
- package/dist/context/sources/scopes.js +206 -0
- package/dist/context-menu/model/requirement-gate.d.ts +147 -0
- package/dist/context-menu/model/requirement-gate.js +79 -0
- package/dist/context-menu/types.d.ts +468 -0
- package/dist/context-menu/types.js +12 -0
- package/dist/context-menu/utils/availability.d.ts +31 -0
- package/dist/context-menu/utils/availability.js +43 -0
- package/dist/context-menu/utils/build-application-scope.d.ts +7 -0
- package/dist/context-menu/utils/build-application-scope.js +42 -0
- package/dist/context-menu/utils/menu-deadline.d.ts +5 -0
- package/dist/context-menu/utils/menu-deadline.js +20 -0
- package/dist/context-menu/utils/resolveMarkdownContext.d.ts +35 -0
- package/dist/context-menu/utils/resolveMarkdownContext.js +59 -0
- package/dist/context-menu/utils/selection-tracking.d.ts +66 -0
- package/dist/context-menu/utils/selection-tracking.js +105 -0
- package/dist/conversation/_legacy-stubs.d.ts +1 -0
- package/dist/conversation/_legacy-stubs.js +1 -0
- package/dist/conversation/hooks/useAuthenticatedChatProps.d.ts +35 -0
- package/dist/conversation/hooks/useAuthenticatedChatProps.js +84 -0
- package/dist/conversation/hooks/useDomCapturePrint.d.ts +13 -0
- package/dist/conversation/hooks/useDomCapturePrint.js +44 -0
- package/dist/conversation/hooks/usePublicChatProps.d.ts +25 -0
- package/dist/conversation/hooks/usePublicChatProps.js +58 -0
- package/dist/conversation/utils/markdown-print.d.ts +16 -0
- package/dist/conversation/utils/markdown-print.js +46 -0
- package/dist/conversation/utils/resource-parsing.d.ts +20 -0
- package/dist/conversation/utils/resource-parsing.js +54 -0
- package/dist/cx-chat/_legacy-stubs.d.ts +191 -0
- package/dist/cx-chat/_legacy-stubs.js +122 -0
- package/dist/cx-chat/components/ChatConversationSkeleton.d.ts +9 -0
- package/dist/cx-chat/components/ChatConversationSkeleton.js +45 -0
- package/dist/cx-chat/components/ChatHeaderControls.d.ts +1 -0
- package/dist/cx-chat/components/ChatHeaderControls.js +75 -0
- package/dist/cx-chat/components/ChatInstanceManager.d.ts +14 -0
- package/dist/cx-chat/components/ChatInstanceManager.js +82 -0
- package/dist/cx-chat/components/ChatMobileAdminToggles.d.ts +1 -0
- package/dist/cx-chat/components/ChatMobileAdminToggles.js +58 -0
- package/dist/cx-chat/components/ChatMobileAgentName.d.ts +1 -0
- package/dist/cx-chat/components/ChatMobileAgentName.js +46 -0
- package/dist/cx-chat/components/ChatMobileHeaderBar.d.ts +1 -0
- package/dist/cx-chat/components/ChatMobileHeaderBar.js +41 -0
- package/dist/cx-chat/components/ChatPanelBackButton.d.ts +1 -0
- package/dist/cx-chat/components/ChatPanelBackButton.js +26 -0
- package/dist/cx-chat/components/ChatSidebarClient.d.ts +6 -0
- package/dist/cx-chat/components/ChatSidebarClient.js +307 -0
- package/dist/cx-chat/components/ChatWelcomeClient.d.ts +8 -0
- package/dist/cx-chat/components/ChatWelcomeClient.js +81 -0
- package/dist/cx-chat/components/ChatWelcomeServer.d.ts +13 -0
- package/dist/cx-chat/components/ChatWelcomeServer.js +16 -0
- package/dist/cx-chat/components/ContextGaugeWidget.d.ts +7 -0
- package/dist/cx-chat/components/ContextGaugeWidget.js +96 -0
- package/dist/cx-chat/components/SsrSidebarAgents.d.ts +13 -0
- package/dist/cx-chat/components/SsrSidebarAgents.js +25 -0
- package/dist/cx-chat/components/SsrSidebarChats.d.ts +9 -0
- package/dist/cx-chat/components/SsrSidebarChats.js +379 -0
- package/dist/cx-chat/components/agent/AgentPickerSheet.d.ts +14 -0
- package/dist/cx-chat/components/agent/AgentPickerSheet.js +78 -0
- package/dist/cx-chat/components/agent/agents.d.ts +28 -0
- package/dist/cx-chat/components/agent/agents.js +136 -0
- package/dist/cx-chat/components/agent/local-agents.d.ts +32 -0
- package/dist/cx-chat/components/agent/local-agents.js +139 -0
- package/dist/cx-chat/components/agent/useResponseModeAgents.d.ts +17 -0
- package/dist/cx-chat/components/agent/useResponseModeAgents.js +44 -0
- package/dist/cx-chat/components/conversation/UnsavedChangesIndicator.d.ts +6 -0
- package/dist/cx-chat/components/conversation/UnsavedChangesIndicator.js +58 -0
- package/dist/cx-chat/components/core/ChatConversationClient.d.ts +6 -0
- package/dist/cx-chat/components/core/ChatConversationClient.js +171 -0
- package/dist/cx-chat/components/messages/AssistantMessage.d.ts +13 -0
- package/dist/cx-chat/components/messages/AssistantMessage.js +250 -0
- package/dist/cx-chat/components/messages/MessageErrorBoundary.d.ts +20 -0
- package/dist/cx-chat/components/messages/MessageErrorBoundary.js +40 -0
- package/dist/cx-chat/components/messages/UserMessage.d.ts +9 -0
- package/dist/cx-chat/components/messages/UserMessage.js +308 -0
- package/dist/cx-chat/components/sidebar/SidebarActions.d.ts +8 -0
- package/dist/cx-chat/components/sidebar/SidebarActions.js +57 -0
- package/dist/cx-chat/components/sidebar/SidebarUserFooter.d.ts +2 -0
- package/dist/cx-chat/components/sidebar/SidebarUserFooter.js +74 -0
- package/dist/cx-chat/components/user-input/ConversationInput.d.ts +56 -0
- package/dist/cx-chat/components/user-input/ConversationInput.js +443 -0
- package/dist/cx-chat/components/user-input/GuidedVariableInputs.d.ts +4 -0
- package/dist/cx-chat/components/user-input/GuidedVariableInputs.js +7 -0
- package/dist/cx-chat/components/user-input/InpuControlButtons.d.ts +12 -0
- package/dist/cx-chat/components/user-input/InpuControlButtons.js +49 -0
- package/dist/cx-chat/components/user-input/InputActionButtons.d.ts +15 -0
- package/dist/cx-chat/components/user-input/InputActionButtons.js +56 -0
- package/dist/cx-chat/components/user-input/StackedVariableInputs.d.ts +13 -0
- package/dist/cx-chat/components/user-input/StackedVariableInputs.js +173 -0
- package/dist/cx-chat/components/variable-inputs/CheckboxGroupInput.d.ts +14 -0
- package/dist/cx-chat/components/variable-inputs/CheckboxGroupInput.js +160 -0
- package/dist/cx-chat/components/variable-inputs/NumberInput.d.ts +15 -0
- package/dist/cx-chat/components/variable-inputs/NumberInput.js +79 -0
- package/dist/cx-chat/components/variable-inputs/RadioGroupInput.d.ts +14 -0
- package/dist/cx-chat/components/variable-inputs/RadioGroupInput.js +125 -0
- package/dist/cx-chat/components/variable-inputs/SelectInput.d.ts +14 -0
- package/dist/cx-chat/components/variable-inputs/SelectInput.js +92 -0
- package/dist/cx-chat/components/variable-inputs/TextareaInput.d.ts +14 -0
- package/dist/cx-chat/components/variable-inputs/TextareaInput.js +46 -0
- package/dist/cx-chat/components/variable-inputs/ToggleInput.d.ts +14 -0
- package/dist/cx-chat/components/variable-inputs/ToggleInput.js +46 -0
- package/dist/cx-chat/hooks/useAgentBootstrap.d.ts +1 -0
- package/dist/cx-chat/hooks/useAgentBootstrap.js +110 -0
- package/dist/cx-chat/hooks/useChatCatalogueInit.d.ts +1 -0
- package/dist/cx-chat/hooks/useChatCatalogueInit.js +25 -0
- package/dist/cx-chat/hooks/useChatPersistence.d.ts +28 -0
- package/dist/cx-chat/hooks/useChatPersistence.js +180 -0
- package/dist/cx-chat/hooks/useInstanceBootstrap.d.ts +1 -0
- package/dist/cx-chat/hooks/useInstanceBootstrap.js +114 -0
- package/dist/cx-chat/hooks/useUnsavedChangesGuard.d.ts +7 -0
- package/dist/cx-chat/hooks/useUnsavedChangesGuard.js +19 -0
- package/dist/cx-chat/types/agents.d.ts +27 -0
- package/dist/cx-chat/types/agents.js +0 -0
- package/dist/cx-chat/types/content.d.ts +184 -0
- package/dist/cx-chat/types/content.js +91 -0
- package/dist/cx-chat/types/conversation.d.ts +257 -0
- package/dist/cx-chat/types/conversation.js +0 -0
- package/dist/cx-chat/types/cx-tables.d.ts +176 -0
- package/dist/cx-chat/types/cx-tables.js +0 -0
- package/dist/cx-chat/utils/buildContentBlocksForSave.d.ts +10 -0
- package/dist/cx-chat/utils/buildContentBlocksForSave.js +47 -0
- package/dist/cx-chat/utils/cx-content-converter.d.ts +69 -0
- package/dist/cx-chat/utils/cx-content-converter.js +133 -0
- package/dist/cx-chat/utils/settings-diff.d.ts +13 -0
- package/dist/cx-chat/utils/settings-diff.js +45 -0
- package/dist/cx-conversation/AssistantMessage.d.ts +13 -0
- package/dist/cx-conversation/AssistantMessage.js +250 -0
- package/dist/cx-conversation/ChatDebugModal.d.ts +17 -0
- package/dist/cx-conversation/ChatDebugModal.js +263 -0
- package/dist/cx-conversation/ConversationInput.d.ts +56 -0
- package/dist/cx-conversation/ConversationInput.js +635 -0
- package/dist/cx-conversation/ConversationShell.d.ts +21 -0
- package/dist/cx-conversation/ConversationShell.js +67 -0
- package/dist/cx-conversation/MessageErrorBoundary.d.ts +20 -0
- package/dist/cx-conversation/MessageErrorBoundary.js +40 -0
- package/dist/cx-conversation/MessageList.d.ts +8 -0
- package/dist/cx-conversation/MessageList.js +142 -0
- package/dist/cx-conversation/UnifiedChatWrapper.d.ts +108 -0
- package/dist/cx-conversation/UnifiedChatWrapper.js +129 -0
- package/dist/cx-conversation/UnsavedChangesIndicator.d.ts +6 -0
- package/dist/cx-conversation/UnsavedChangesIndicator.js +58 -0
- package/dist/cx-conversation/UserMessage.d.ts +9 -0
- package/dist/cx-conversation/UserMessage.js +308 -0
- package/dist/cx-conversation/_legacy-stubs.d.ts +1 -0
- package/dist/cx-conversation/_legacy-stubs.js +1 -0
- package/dist/cx-conversation/components/HtmlPreviewBridge.d.ts +21 -0
- package/dist/cx-conversation/components/HtmlPreviewBridge.js +177 -0
- package/dist/cx-conversation/hooks/useConversationSession.d.ts +72 -0
- package/dist/cx-conversation/hooks/useConversationSession.js +187 -0
- package/dist/cx-conversation/hooks/useUnsavedChangesGuard.d.ts +7 -0
- package/dist/cx-conversation/hooks/useUnsavedChangesGuard.js +19 -0
- package/dist/cx-conversation/utils/buildContentBlocksForSave.d.ts +10 -0
- package/dist/cx-conversation/utils/buildContentBlocksForSave.js +32 -0
- package/dist/cx-conversation/utils/html-pages-actions.d.ts +10 -0
- package/dist/cx-conversation/utils/html-pages-actions.js +7 -0
- package/dist/external-store/index.cjs +3 -3
- package/dist/external-store/index.cjs.map +1 -1
- package/dist/external-store/index.js +2 -2
- package/dist/external-store/index.js.map +1 -1
- package/dist/host/builder-door.d.ts +50 -0
- package/dist/host/builder-door.js +25 -0
- package/dist/host/canvas-tabs.d.ts +61 -0
- package/dist/host/canvas-tabs.js +39 -0
- package/dist/host/canvas.d.ts +17 -0
- package/dist/host/canvas.js +16 -0
- package/dist/host/chrome.d.ts +35 -0
- package/dist/host/chrome.js +75 -0
- package/dist/host/configure.d.ts +28 -0
- package/dist/host/configure.js +148 -0
- package/dist/host/content-ir-slots.d.ts +231 -0
- package/dist/host/content-ir-slots.js +131 -0
- package/dist/host/contract.d.ts +785 -0
- package/dist/host/contract.js +9 -0
- package/dist/host/db-types.d.ts +50676 -0
- package/dist/host/db-types.js +0 -0
- package/dist/host/db.d.ts +68 -0
- package/dist/host/db.js +58 -0
- package/dist/host/defaults/canvas.d.ts +13 -0
- package/dist/host/defaults/canvas.js +50 -0
- package/dist/host/defaults/catalog.d.ts +7 -0
- package/dist/host/defaults/catalog.js +27 -0
- package/dist/host/defaults/chrome.d.ts +13 -0
- package/dist/host/defaults/chrome.js +121 -0
- package/dist/host/defaults/diagnostics.d.ts +32 -0
- package/dist/host/defaults/diagnostics.js +135 -0
- package/dist/host/defaults/feedback.d.ts +9 -0
- package/dist/host/defaults/feedback.js +35 -0
- package/dist/host/defaults/identity.d.ts +8 -0
- package/dist/host/defaults/identity.js +119 -0
- package/dist/host/defaults/navigation-hooks.d.ts +3 -0
- package/dist/host/defaults/navigation-hooks.js +37 -0
- package/dist/host/defaults/navigation.d.ts +8 -0
- package/dist/host/defaults/navigation.js +45 -0
- package/dist/host/defaults/notify.d.ts +10 -0
- package/dist/host/defaults/notify.js +117 -0
- package/dist/host/defaults/org.d.ts +8 -0
- package/dist/host/defaults/org.js +23 -0
- package/dist/host/defaults/prefs.d.ts +25 -0
- package/dist/host/defaults/prefs.js +178 -0
- package/dist/host/defaults/server-api.d.ts +331 -0
- package/dist/host/defaults/server-api.js +288 -0
- package/dist/host/defaults/server.d.ts +7 -0
- package/dist/host/defaults/server.js +18 -0
- package/dist/host/defaults/typed-paths.d.ts +62 -0
- package/dist/host/defaults/typed-paths.js +0 -0
- package/dist/host/defaults/webpage-snapshot-view.d.ts +13 -0
- package/dist/host/defaults/webpage-snapshot-view.js +36 -0
- package/dist/host/defaults/window-panel.d.ts +43 -0
- package/dist/host/defaults/window-panel.js +100 -0
- package/dist/host/defaults/windows.d.ts +8 -0
- package/dist/host/defaults/windows.js +23 -0
- package/dist/host/diagnostics.d.ts +88 -0
- package/dist/host/diagnostics.js +174 -0
- package/dist/host/errors.d.ts +20 -0
- package/dist/host/errors.js +47 -0
- package/dist/host/identity.d.ts +64 -0
- package/dist/host/identity.js +86 -0
- package/dist/host/index.d.ts +23 -0
- package/dist/host/index.js +87 -0
- package/dist/host/markdown-slots.d.ts +53 -0
- package/dist/host/markdown-slots.js +32 -0
- package/dist/host/model-class.d.ts +33 -0
- package/dist/host/model-class.js +21 -0
- package/dist/host/navigation.d.ts +19 -0
- package/dist/host/navigation.js +37 -0
- package/dist/host/notify.d.ts +37 -0
- package/dist/host/notify.js +38 -0
- package/dist/host/org.d.ts +100 -0
- package/dist/host/org.js +116 -0
- package/dist/host/prefs-react.d.ts +18 -0
- package/dist/host/prefs-react.js +66 -0
- package/dist/host/prefs.d.ts +104 -0
- package/dist/host/prefs.js +85 -0
- package/dist/host/react.d.ts +32 -0
- package/dist/host/react.js +38 -0
- package/dist/host/registered-source.d.ts +34 -0
- package/dist/host/registered-source.js +64 -0
- package/dist/host/rich-document-slots.d.ts +123 -0
- package/dist/host/rich-document-slots.js +36 -0
- package/dist/host/server/admin-door.d.ts +6 -0
- package/dist/host/server/admin-door.js +5 -0
- package/dist/host/server/admin-lane.d.ts +7 -0
- package/dist/host/server/admin-lane.js +7 -0
- package/dist/host/server/api-config.d.ts +31 -0
- package/dist/host/server/api-config.js +29 -0
- package/dist/host/server/broker.d.ts +12 -0
- package/dist/host/server/broker.js +5 -0
- package/dist/host/server/call-api.d.ts +134 -0
- package/dist/host/server/call-api.js +27 -0
- package/dist/host/server/context-api.d.ts +11 -0
- package/dist/host/server/context-api.js +5 -0
- package/dist/host/server/endpoints.d.ts +6 -0
- package/dist/host/server/endpoints.js +5 -0
- package/dist/host/server/extension-bridge.d.ts +6 -0
- package/dist/host/server/extension-bridge.js +5 -0
- package/dist/host/server/local-engine.d.ts +8 -0
- package/dist/host/server/local-engine.js +9 -0
- package/dist/host/server/matrx-transport.d.ts +21 -0
- package/dist/host/server/matrx-transport.js +9 -0
- package/dist/host/server/organization-admission.d.ts +9 -0
- package/dist/host/server/organization-admission.js +7 -0
- package/dist/host/server/organization-context.d.ts +6 -0
- package/dist/host/server/organization-context.js +5 -0
- package/dist/host/server/provider-session-failure.d.ts +6 -0
- package/dist/host/server/provider-session-failure.js +5 -0
- package/dist/host/server/python-client.d.ts +20 -0
- package/dist/host/server/python-client.js +11 -0
- package/dist/host/server/run-wait.d.ts +11 -0
- package/dist/host/server/run-wait.js +31 -0
- package/dist/host/server/stream-parser.d.ts +10 -0
- package/dist/host/server/stream-parser.js +5 -0
- package/dist/host/server/typed-client.d.ts +29 -0
- package/dist/host/server/typed-client.js +11 -0
- package/dist/host/server/types.d.ts +7 -0
- package/dist/host/server/types.js +0 -0
- package/dist/host/server-deps.d.ts +17 -0
- package/dist/host/server-deps.js +18 -0
- package/dist/host/server.d.ts +29 -0
- package/dist/host/server.js +15 -0
- package/dist/host/session-retry.d.ts +13 -0
- package/dist/host/session-retry.js +14 -0
- package/dist/host/ui-slots.d.ts +838 -0
- package/dist/host/ui-slots.js +802 -0
- package/dist/host/usage-gate.d.ts +25 -0
- package/dist/host/usage-gate.js +34 -0
- package/dist/host/window-openers.d.ts +363 -0
- package/dist/host/window-openers.js +279 -0
- package/dist/host/windows-react.d.ts +13 -0
- package/dist/host/windows-react.js +44 -0
- package/dist/host/windows.d.ts +77 -0
- package/dist/host/windows.js +72 -0
- package/dist/host/write-failure.d.ts +4 -0
- package/dist/host/write-failure.js +11 -0
- package/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/mandates/FastPathMandateGuard.d.ts +6 -0
- package/dist/mandates/FastPathMandateGuard.js +16 -0
- package/dist/mandates/RunFailureCard.d.ts +5 -0
- package/dist/mandates/RunFailureCard.js +48 -0
- package/dist/mandates/fast-path-guard.d.ts +57 -0
- package/dist/mandates/fast-path-guard.js +60 -0
- package/dist/mandates/invoke/served-input.d.ts +203 -0
- package/dist/mandates/invoke/served-input.js +186 -0
- package/dist/mandates/invoke/supplied-values.d.ts +41 -0
- package/dist/mandates/invoke/supplied-values.js +46 -0
- package/dist/mandates/llm-params.d.ts +10 -0
- package/dist/mandates/llm-params.js +48 -0
- package/dist/mandates/output-contract.d.ts +47 -0
- package/dist/mandates/output-contract.js +102 -0
- package/dist/mandates/resolve-asking.d.ts +20 -0
- package/dist/mandates/resolve-asking.js +17 -0
- package/dist/mandates/service.d.ts +299 -0
- package/dist/mandates/service.js +488 -0
- package/dist/mandates/test-run-core.d.ts +104 -0
- package/dist/mandates/test-run-core.js +145 -0
- package/dist/mandates/useMandate.d.ts +62 -0
- package/dist/mandates/useMandate.js +120 -0
- package/dist/mandates/useMandateChain.d.ts +9 -0
- package/dist/mandates/useMandateChain.js +19 -0
- package/dist/mandates/useMandateHolder.d.ts +9 -0
- package/dist/mandates/useMandateHolder.js +82 -0
- package/dist/mandates/useMandateSet.d.ts +33 -0
- package/dist/mandates/useMandateSet.js +98 -0
- package/dist/mandates/useStartMandateWorkflow.d.ts +21 -0
- package/dist/mandates/useStartMandateWorkflow.js +66 -0
- package/dist/matrx/index.cjs +11 -11
- package/dist/matrx/index.cjs.map +1 -1
- package/dist/matrx/index.js +10 -10
- package/dist/matrx/index.js.map +1 -1
- package/dist/next/lazy/AgentAssistantMessage.d.ts +1 -0
- package/dist/next/lazy/AgentAssistantMessage.js +13 -0
- package/dist/next/lazy/AgentPickerSheet.d.ts +1 -0
- package/dist/next/lazy/AgentPickerSheet.js +11 -0
- package/dist/next/lazy/ChatVariableInputs.d.ts +2 -0
- package/dist/next/lazy/ChatVariableInputs.js +18 -0
- package/dist/next/lazy/ConversationRenameDialogHostImpl.d.ts +1 -0
- package/dist/next/lazy/ConversationRenameDialogHostImpl.js +9 -0
- package/dist/next/lazy/CreatorRunPanel.d.ts +1 -0
- package/dist/next/lazy/CreatorRunPanel.js +11 -0
- package/dist/next/lazy/CxAssistantMessage.d.ts +1 -0
- package/dist/next/lazy/CxAssistantMessage.js +11 -0
- package/dist/next/lazy/DbToolRendererImpl.d.ts +1 -0
- package/dist/next/lazy/DbToolRendererImpl.js +11 -0
- package/dist/next/lazy/IconResolver.d.ts +1 -0
- package/dist/next/lazy/IconResolver.js +10 -0
- package/dist/next/lazy/PublicChatVariableInputs.d.ts +2 -0
- package/dist/next/lazy/PublicChatVariableInputs.js +18 -0
- package/dist/next/lazy/ScrollAssistantLaunchers.d.ts +3 -0
- package/dist/next/lazy/ScrollAssistantLaunchers.js +22 -0
- package/dist/next/lazy/SurfaceAgentsPanelImpl.d.ts +1 -0
- package/dist/next/lazy/SurfaceAgentsPanelImpl.js +17 -0
- package/dist/next/navigation.d.ts +2 -0
- package/dist/next/navigation.js +18 -0
- package/dist/next/server/composer-mode.server.d.ts +3 -0
- package/dist/next/server/composer-mode.server.js +10 -0
- package/dist/next/server/workspace-cookies.server.d.ts +7 -0
- package/dist/next/server/workspace-cookies.server.js +24 -0
- package/dist/public-chat/components/AgentSelector.d.ts +22 -0
- package/dist/public-chat/components/AgentSelector.js +80 -0
- package/dist/public-chat/components/GuidedVariableInputs.d.ts +25 -0
- package/dist/public-chat/components/GuidedVariableInputs.js +623 -0
- package/dist/public-chat/components/PublicMessageOptionsMenu.d.ts +26 -0
- package/dist/public-chat/components/PublicMessageOptionsMenu.js +539 -0
- package/dist/public-chat/components/PublicVariableInputs.d.ts +29 -0
- package/dist/public-chat/components/PublicVariableInputs.js +172 -0
- package/dist/public-chat/services/cx-chat.d.ts +30 -0
- package/dist/public-chat/services/cx-chat.js +127 -0
- package/dist/public-chat/types/content.d.ts +184 -0
- package/dist/public-chat/types/content.js +91 -0
- package/dist/public-chat/types/cx-tables.d.ts +194 -0
- package/dist/public-chat/types/cx-tables.js +0 -0
- package/dist/quick-actions/components/QuickChatSheet.d.ts +69 -0
- package/dist/quick-actions/components/QuickChatSheet.js +302 -0
- package/dist/react.cjs +51 -51
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +50 -50
- package/dist/react.js.map +1 -1
- package/dist/store/chat-host-sync.d.ts +17 -0
- package/dist/store/chat-host-sync.js +80 -0
- package/dist/store/chat-host.slice.d.ts +44 -0
- package/dist/store/chat-host.slice.js +90 -0
- package/dist/store/context.d.ts +2 -0
- package/dist/store/context.js +7 -0
- package/dist/store/create-chat-store.d.ts +93 -0
- package/dist/store/create-chat-store.js +28 -0
- package/dist/store/hooks.d.ts +143 -0
- package/dist/store/hooks.js +61 -0
- package/dist/store/middlewares.d.ts +222 -0
- package/dist/store/middlewares.js +19 -0
- package/dist/store/root-state.d.ts +73 -0
- package/dist/store/root-state.js +0 -0
- package/dist/store/sagas.d.ts +2 -0
- package/dist/store/sagas.js +6 -0
- package/dist/store/slices.d.ts +47 -0
- package/dist/store/slices.js +98 -0
- package/dist/store/state.d.ts +3 -0
- package/dist/store/state.js +0 -0
- package/dist/store/store-singleton.d.ts +4 -0
- package/dist/store/store-singleton.js +11 -0
- package/dist/surfaces/components/chrome/PageIntelligenceSection.d.ts +10 -0
- package/dist/surfaces/components/chrome/PageIntelligenceSection.js +109 -0
- package/dist/surfaces/components/chrome/SurfaceAgentsHeaderButton.d.ts +10 -0
- package/dist/surfaces/components/chrome/SurfaceAgentsHeaderButton.js +94 -0
- package/dist/surfaces/components/chrome/SurfaceAgentsPanelImpl.d.ts +5 -0
- package/dist/surfaces/components/chrome/SurfaceAgentsPanelImpl.js +183 -0
- package/dist/surfaces/components/chrome/SurfaceConversationsSection.d.ts +8 -0
- package/dist/surfaces/components/chrome/SurfaceConversationsSection.js +251 -0
- package/dist/surfaces/components/chrome/SurfaceMandatesSection.d.ts +9 -0
- package/dist/surfaces/components/chrome/SurfaceMandatesSection.js +206 -0
- package/dist/surfaces/components/chrome/SurfaceRoleAgentButton.d.ts +10 -0
- package/dist/surfaces/components/chrome/SurfaceRoleAgentButton.js +76 -0
- package/dist/surfaces/config/namespace-registry.d.ts +59 -0
- package/dist/surfaces/config/namespace-registry.js +101 -0
- package/dist/surfaces/declare/surface-declare.d.ts +62 -0
- package/dist/surfaces/declare/surface-declare.js +284 -0
- package/dist/surfaces/executor.d.ts +25 -0
- package/dist/surfaces/executor.js +13 -0
- package/dist/surfaces/hooks/useAgentNames.d.ts +12 -0
- package/dist/surfaces/hooks/useAgentNames.js +72 -0
- package/dist/surfaces/hooks/useSurfaceBoundAgents.d.ts +30 -0
- package/dist/surfaces/hooks/useSurfaceBoundAgents.js +52 -0
- package/dist/surfaces/hooks/useSurfaceConfig.d.ts +38 -0
- package/dist/surfaces/hooks/useSurfaceConfig.js +100 -0
- package/dist/surfaces/host-surface-types.d.ts +53 -0
- package/dist/surfaces/host-surface-types.js +0 -0
- package/dist/surfaces/manifests/_baseline.manifest.d.ts +265 -0
- package/dist/surfaces/manifests/_baseline.manifest.js +211 -0
- package/dist/surfaces/manifests/_conversation-document.manifest.d.ts +131 -0
- package/dist/surfaces/manifests/_conversation-document.manifest.js +317 -0
- package/dist/surfaces/manifests/admin-ui-surfaces.manifest.d.ts +105 -0
- package/dist/surfaces/manifests/admin-ui-surfaces.manifest.js +197 -0
- package/dist/surfaces/manifests/agent-builder.manifest.d.ts +83 -0
- package/dist/surfaces/manifests/agent-builder.manifest.js +611 -0
- package/dist/surfaces/manifests/agent-gate.manifest.d.ts +25 -0
- package/dist/surfaces/manifests/agent-gate.manifest.js +69 -0
- package/dist/surfaces/manifests/agent-run-history.manifest.d.ts +113 -0
- package/dist/surfaces/manifests/agent-run-history.manifest.js +236 -0
- package/dist/surfaces/manifests/agent-run.manifest.d.ts +63 -0
- package/dist/surfaces/manifests/agent-run.manifest.js +396 -0
- package/dist/surfaces/manifests/ai-results.manifest.d.ts +39 -0
- package/dist/surfaces/manifests/ai-results.manifest.js +122 -0
- package/dist/surfaces/manifests/chat-voice.manifest.d.ts +139 -0
- package/dist/surfaces/manifests/chat-voice.manifest.js +306 -0
- package/dist/surfaces/manifests/chat.manifest.d.ts +135 -0
- package/dist/surfaces/manifests/chat.manifest.js +462 -0
- package/dist/surfaces/manifests/context-preview.manifest.d.ts +71 -0
- package/dist/surfaces/manifests/context-preview.manifest.js +247 -0
- package/dist/surfaces/manifests/documents-workspace.manifest.d.ts +61 -0
- package/dist/surfaces/manifests/documents-workspace.manifest.js +159 -0
- package/dist/surfaces/manifests/observational-memory.manifest.d.ts +27 -0
- package/dist/surfaces/manifests/observational-memory.manifest.js +104 -0
- package/dist/surfaces/redux/agentSurfaceBindingsSlice.d.ts +33 -0
- package/dist/surfaces/redux/agentSurfaceBindingsSlice.js +77 -0
- package/dist/surfaces/redux/selectors.d.ts +148 -0
- package/dist/surfaces/redux/selectors.js +46 -0
- package/dist/surfaces/redux/surfaceConfigSlice.d.ts +30 -0
- package/dist/surfaces/redux/surfaceConfigSlice.js +70 -0
- package/dist/surfaces/redux/surfacesCatalogSlice.d.ts +42 -0
- package/dist/surfaces/redux/surfacesCatalogSlice.js +75 -0
- package/dist/surfaces/redux/thunks.d.ts +103 -0
- package/dist/surfaces/redux/thunks.js +116 -0
- package/dist/surfaces/redux/userStateSlice.d.ts +35 -0
- package/dist/surfaces/redux/userStateSlice.js +83 -0
- package/dist/surfaces/runtime/StaticSurfaceRuntimeProvider.d.ts +7 -0
- package/dist/surfaces/runtime/StaticSurfaceRuntimeProvider.js +13 -0
- package/dist/surfaces/runtime/SurfaceRuntimeContext.d.ts +431 -0
- package/dist/surfaces/runtime/SurfaceRuntimeContext.js +535 -0
- package/dist/surfaces/runtime/agent-offer.d.ts +21 -0
- package/dist/surfaces/runtime/agent-offer.js +53 -0
- package/dist/surfaces/runtime/agent-write-sources.d.ts +42 -0
- package/dist/surfaces/runtime/agent-write-sources.js +23 -0
- package/dist/surfaces/runtime/available-here.d.ts +65 -0
- package/dist/surfaces/runtime/available-here.js +95 -0
- package/dist/surfaces/runtime/collection-write-targets.d.ts +139 -0
- package/dist/surfaces/runtime/collection-write-targets.js +186 -0
- package/dist/surfaces/runtime/context-bundle.d.ts +48 -0
- package/dist/surfaces/runtime/context-bundle.js +54 -0
- package/dist/surfaces/runtime/custom-field-targets.d.ts +139 -0
- package/dist/surfaces/runtime/custom-field-targets.js +205 -0
- package/dist/surfaces/runtime/fetchRelatedSurfaces.d.ts +21 -0
- package/dist/surfaces/runtime/fetchRelatedSurfaces.js +35 -0
- package/dist/surfaces/runtime/intelligence-types.d.ts +93 -0
- package/dist/surfaces/runtime/intelligence-types.js +0 -0
- package/dist/surfaces/runtime/intelligence.d.ts +48 -0
- package/dist/surfaces/runtime/intelligence.js +72 -0
- package/dist/surfaces/runtime/loaded-value-check.d.ts +17 -0
- package/dist/surfaces/runtime/loaded-value-check.js +36 -0
- package/dist/surfaces/runtime/registry.d.ts +70 -0
- package/dist/surfaces/runtime/registry.js +97 -0
- package/dist/surfaces/runtime/surface-brief.d.ts +34 -0
- package/dist/surfaces/runtime/surface-brief.js +63 -0
- package/dist/surfaces/runtime/surface-chain.d.ts +72 -0
- package/dist/surfaces/runtime/surface-chain.js +144 -0
- package/dist/surfaces/runtime/surface-client-tools.d.ts +53 -0
- package/dist/surfaces/runtime/surface-client-tools.js +90 -0
- package/dist/surfaces/runtime/surface-feedback.d.ts +57 -0
- package/dist/surfaces/runtime/surface-feedback.js +101 -0
- package/dist/surfaces/runtime/surface-mandates.d.ts +31 -0
- package/dist/surfaces/runtime/surface-mandates.js +62 -0
- package/dist/surfaces/runtime/surface-ui-state.d.ts +45 -0
- package/dist/surfaces/runtime/surface-ui-state.js +94 -0
- package/dist/surfaces/runtime/surface-write-patch.d.ts +127 -0
- package/dist/surfaces/runtime/surface-write-patch.js +144 -0
- package/dist/surfaces/runtime/surface-write-tool-output.d.ts +46 -0
- package/dist/surfaces/runtime/surface-write-tool-output.js +85 -0
- package/dist/surfaces/runtime/surface-writeback.d.ts +297 -0
- package/dist/surfaces/runtime/surface-writeback.js +1277 -0
- package/dist/surfaces/runtime/useActivePageSurface.d.ts +10 -0
- package/dist/surfaces/runtime/useActivePageSurface.js +31 -0
- package/dist/surfaces/runtime/useConversationFollowsPage.d.ts +7 -0
- package/dist/surfaces/runtime/useConversationFollowsPage.js +65 -0
- package/dist/surfaces/runtime/useLiveSurfaceScope.d.ts +21 -0
- package/dist/surfaces/runtime/useLiveSurfaceScope.js +85 -0
- package/dist/surfaces/runtime/window-forms.d.ts +69 -0
- package/dist/surfaces/runtime/window-forms.js +367 -0
- package/dist/surfaces/services/bind-agent-to-surface.service.d.ts +173 -0
- package/dist/surfaces/services/bind-agent-to-surface.service.js +420 -0
- package/dist/surfaces/services/bundleMemberEdge.d.ts +53 -0
- package/dist/surfaces/services/bundleMemberEdge.js +26 -0
- package/dist/surfaces/services/mirror-recency.d.ts +34 -0
- package/dist/surfaces/services/mirror-recency.js +6 -0
- package/dist/surfaces/services/surface-bound-agents.service.d.ts +91 -0
- package/dist/surfaces/services/surface-bound-agents.service.js +246 -0
- package/dist/surfaces/services/surface-config.service.d.ts +132 -0
- package/dist/surfaces/services/surface-config.service.js +392 -0
- package/dist/surfaces/services/surface-registration-error.d.ts +22 -0
- package/dist/surfaces/services/surface-registration-error.js +52 -0
- package/dist/surfaces/services/surfaces.service.d.ts +262 -0
- package/dist/surfaces/services/surfaces.service.js +480 -0
- package/dist/surfaces/types.d.ts +961 -0
- package/dist/surfaces/types.js +40 -0
- package/dist/surfaces/user-state/service.d.ts +29 -0
- package/dist/surfaces/user-state/service.js +110 -0
- package/dist/surfaces/user-state/useSurfaceUserState.d.ts +3 -0
- package/dist/surfaces/user-state/useSurfaceUserState.js +45 -0
- package/dist/surfaces/utils/always-on-context.d.ts +12 -0
- package/dist/surfaces/utils/always-on-context.js +25 -0
- package/dist/surfaces/utils/baseline-scope.d.ts +41 -0
- package/dist/surfaces/utils/baseline-scope.js +14 -0
- package/dist/surfaces/utils/binding-auto-run.d.ts +89 -0
- package/dist/surfaces/utils/binding-auto-run.js +29 -0
- package/dist/surfaces/utils/binding-suggestions.d.ts +121 -0
- package/dist/surfaces/utils/binding-suggestions.js +201 -0
- package/dist/surfaces/utils/buildBindingTargets.d.ts +8 -0
- package/dist/surfaces/utils/buildBindingTargets.js +27 -0
- package/dist/surfaces/utils/context-value-contract.d.ts +9 -0
- package/dist/surfaces/utils/context-value-contract.js +20 -0
- package/dist/surfaces/utils/document-evidence.d.ts +17 -0
- package/dist/surfaces/utils/document-evidence.js +51 -0
- package/dist/surfaces/utils/drift-report-count.d.ts +30 -0
- package/dist/surfaces/utils/drift-report-count.js +21 -0
- package/dist/surfaces/utils/locate-on-page.d.ts +16 -0
- package/dist/surfaces/utils/locate-on-page.js +29 -0
- package/dist/surfaces/utils/merge-value-mappings.d.ts +59 -0
- package/dist/surfaces/utils/merge-value-mappings.js +42 -0
- package/dist/surfaces/utils/route-to-surface.d.ts +39 -0
- package/dist/surfaces/utils/route-to-surface.js +648 -0
- package/dist/surfaces/utils/surface-check-ledger.d.ts +44 -0
- package/dist/surfaces/utils/surface-check-ledger.js +32 -0
- package/dist/surfaces/utils/surface-delete-consequence.d.ts +17 -0
- package/dist/surfaces/utils/surface-delete-consequence.js +16 -0
- package/dist/surfaces/utils/surface-display.d.ts +43 -0
- package/dist/surfaces/utils/surface-display.js +63 -0
- package/dist/surfaces/utils/surface-guide.d.ts +36 -0
- package/dist/surfaces/utils/surface-guide.js +46 -0
- package/dist/surfaces/utils/surface-hierarchy.d.ts +13 -0
- package/dist/surfaces/utils/surface-hierarchy.js +39 -0
- package/dist/surfaces/utils/surface-url-pattern.d.ts +20 -0
- package/dist/surfaces/utils/surface-url-pattern.js +51 -0
- package/dist/surfaces/utils/value-mapping-resolver.d.ts +87 -0
- package/dist/surfaces/utils/value-mapping-resolver.js +192 -0
- package/dist/testing/captured/awaiting-approval.d.ts +132 -0
- package/dist/testing/captured/awaiting-approval.js +135 -0
- package/dist/testing/captured/gemini-live-media-block-event.d.ts +61 -0
- package/dist/testing/captured/gemini-live-media-block-event.js +73 -0
- package/dist/testing/captured/gemini-persisted-audio-part.d.ts +42 -0
- package/dist/testing/captured/gemini-persisted-audio-part.js +5 -0
- package/dist/testing/captured/masterwork-run-cef6ae07-deliver.d.ts +29 -0
- package/dist/testing/captured/masterwork-run-cef6ae07-deliver.js +76 -0
- package/dist/testing/chat-host-test-provider.d.ts +13 -0
- package/dist/testing/chat-host-test-provider.js +16 -0
- package/dist/testing/chat-test-reducer.d.ts +13 -0
- package/dist/testing/chat-test-reducer.js +6 -0
- package/dist/testing/fake-db.d.ts +21 -0
- package/dist/testing/fake-db.js +39 -0
- package/dist/testing/recording-windows.d.ts +18 -0
- package/dist/testing/recording-windows.js +17 -0
- package/dist/testing/render-hook.d.ts +28 -0
- package/dist/testing/render-hook.js +48 -0
- package/dist/testing/server-test-host.d.ts +9 -0
- package/dist/testing/server-test-host.js +14 -0
- package/dist/tool-call-visualization/components/AgentWorkGroup.d.ts +52 -0
- package/dist/tool-call-visualization/components/AgentWorkGroup.js +68 -0
- package/dist/tool-call-visualization/components/ArtifactResultBar.d.ts +16 -0
- package/dist/tool-call-visualization/components/ArtifactResultBar.js +175 -0
- package/dist/tool-call-visualization/components/ChatResultColumn.d.ts +20 -0
- package/dist/tool-call-visualization/components/ChatResultColumn.js +11 -0
- package/dist/tool-call-visualization/components/LiveToolCallCard.d.ts +16 -0
- package/dist/tool-call-visualization/components/LiveToolCallCard.js +28 -0
- package/dist/tool-call-visualization/components/ToolCallBatch.d.ts +47 -0
- package/dist/tool-call-visualization/components/ToolCallBatch.js +155 -0
- package/dist/tool-call-visualization/components/ToolCallVisualization.d.ts +42 -0
- package/dist/tool-call-visualization/components/ToolCallVisualization.js +475 -0
- package/dist/tool-call-visualization/components/ToolConversationContext.d.ts +16 -0
- package/dist/tool-call-visualization/components/ToolConversationContext.js +12 -0
- package/dist/tool-call-visualization/components/ToolTabBodies.d.ts +28 -0
- package/dist/tool-call-visualization/components/ToolTabBodies.js +235 -0
- package/dist/tool-call-visualization/components/ToolUpdatesOverlay.d.ts +45 -0
- package/dist/tool-call-visualization/components/ToolUpdatesOverlay.js +210 -0
- package/dist/tool-call-visualization/components/agentWorkTurn.d.ts +92 -0
- package/dist/tool-call-visualization/components/agentWorkTurn.js +174 -0
- package/dist/tool-call-visualization/components/correctedFailures.d.ts +15 -0
- package/dist/tool-call-visualization/components/correctedFailures.js +9 -0
- package/dist/tool-call-visualization/components/holdsADecision.d.ts +14 -0
- package/dist/tool-call-visualization/components/holdsADecision.js +14 -0
- package/dist/tool-call-visualization/components/resolveToolShellDisplayMode.d.ts +8 -0
- package/dist/tool-call-visualization/components/resolveToolShellDisplayMode.js +9 -0
- package/dist/tool-call-visualization/components/toolCardUiSession.d.ts +29 -0
- package/dist/tool-call-visualization/components/toolCardUiSession.js +24 -0
- package/dist/tool-call-visualization/db-renderer/DbToolRenderer.d.ts +5 -0
- package/dist/tool-call-visualization/db-renderer/DbToolRenderer.js +11 -0
- package/dist/tool-call-visualization/db-renderer/DbToolRendererImpl.d.ts +22 -0
- package/dist/tool-call-visualization/db-renderer/DbToolRendererImpl.js +50 -0
- package/dist/tool-call-visualization/db-renderer/ToolRendererErrorBoundary.d.ts +24 -0
- package/dist/tool-call-visualization/db-renderer/ToolRendererErrorBoundary.js +31 -0
- package/dist/tool-call-visualization/db-renderer/fetchToolRendererRow.d.ts +13 -0
- package/dist/tool-call-visualization/db-renderer/fetchToolRendererRow.js +29 -0
- package/dist/tool-call-visualization/db-renderer/surface.d.ts +11 -0
- package/dist/tool-call-visualization/db-renderer/surface.js +4 -0
- package/dist/tool-call-visualization/db-renderer/toolRendererCache.d.ts +70 -0
- package/dist/tool-call-visualization/db-renderer/toolRendererCache.js +155 -0
- package/dist/tool-call-visualization/db-renderer/useDbToolMeta.d.ts +14 -0
- package/dist/tool-call-visualization/db-renderer/useDbToolMeta.js +45 -0
- package/dist/tool-call-visualization/db-renderer/useToolRendererVersion.d.ts +1 -0
- package/dist/tool-call-visualization/db-renderer/useToolRendererVersion.js +16 -0
- package/dist/tool-call-visualization/effects/toolStateEffects.d.ts +51 -0
- package/dist/tool-call-visualization/effects/toolStateEffects.js +139 -0
- package/dist/tool-call-visualization/grouping/foldAgentWork.d.ts +36 -0
- package/dist/tool-call-visualization/grouping/foldAgentWork.js +59 -0
- package/dist/tool-call-visualization/grouping/groupCloudBrowserRuns.d.ts +29 -0
- package/dist/tool-call-visualization/grouping/groupCloudBrowserRuns.js +48 -0
- package/dist/tool-call-visualization/intelligence-places.d.ts +2 -0
- package/dist/tool-call-visualization/intelligence-places.js +23 -0
- package/dist/tool-call-visualization/record-change/recordChangeApproval.d.ts +175 -0
- package/dist/tool-call-visualization/record-change/recordChangeApproval.js +338 -0
- package/dist/tool-call-visualization/redux/hooks.d.ts +20 -0
- package/dist/tool-call-visualization/redux/hooks.js +20 -0
- package/dist/tool-call-visualization/redux/selectors.d.ts +89 -0
- package/dist/tool-call-visualization/redux/selectors.js +41 -0
- package/dist/tool-call-visualization/registry/GenericRenderer.d.ts +3 -0
- package/dist/tool-call-visualization/registry/GenericRenderer.js +164 -0
- package/dist/tool-call-visualization/registry/registry.d.ts +77 -0
- package/dist/tool-call-visualization/registry/registry.js +1411 -0
- package/dist/tool-call-visualization/registry/toolArtifact.d.ts +31 -0
- package/dist/tool-call-visualization/registry/toolArtifact.js +53 -0
- package/dist/tool-call-visualization/renderers/_shared-entity/EmptyResultCard.d.ts +39 -0
- package/dist/tool-call-visualization/renderers/_shared-entity/EmptyResultCard.js +36 -0
- package/dist/tool-call-visualization/renderers/_shared-entity/EntityCard.d.ts +40 -0
- package/dist/tool-call-visualization/renderers/_shared-entity/EntityCard.js +162 -0
- package/dist/tool-call-visualization/renderers/_shared-entity/EntityOpenActions.d.ts +15 -0
- package/dist/tool-call-visualization/renderers/_shared-entity/EntityOpenActions.js +31 -0
- package/dist/tool-call-visualization/renderers/_shared-entity/PartPeekPopover.d.ts +20 -0
- package/dist/tool-call-visualization/renderers/_shared-entity/PartPeekPopover.js +45 -0
- package/dist/tool-call-visualization/renderers/_shared-entity/ToolGlyph.d.ts +14 -0
- package/dist/tool-call-visualization/renderers/_shared-entity/ToolGlyph.js +38 -0
- package/dist/tool-call-visualization/renderers/_shared-entity/ToolResultCard.d.ts +48 -0
- package/dist/tool-call-visualization/renderers/_shared-entity/ToolResultCard.js +134 -0
- package/dist/tool-call-visualization/renderers/_shared.d.ts +29 -0
- package/dist/tool-call-visualization/renderers/_shared.js +66 -0
- package/dist/tool-call-visualization/renderers/agent-call/AgentCallInline.d.ts +10 -0
- package/dist/tool-call-visualization/renderers/agent-call/AgentCallInline.js +140 -0
- package/dist/tool-call-visualization/renderers/agent-call/CollabCallCard.d.ts +3 -0
- package/dist/tool-call-visualization/renderers/agent-call/CollabCallCard.js +136 -0
- package/dist/tool-call-visualization/renderers/agent-call/ImageGenerationResult.d.ts +16 -0
- package/dist/tool-call-visualization/renderers/agent-call/ImageGenerationResult.js +55 -0
- package/dist/tool-call-visualization/renderers/agent-call/agentCallKind.d.ts +10 -0
- package/dist/tool-call-visualization/renderers/agent-call/agentCallKind.js +11 -0
- package/dist/tool-call-visualization/renderers/agent-call/collab-subtitle.d.ts +2 -0
- package/dist/tool-call-visualization/renderers/agent-call/collab-subtitle.js +26 -0
- package/dist/tool-call-visualization/renderers/agent-call/collab.d.ts +52 -0
- package/dist/tool-call-visualization/renderers/agent-call/collab.js +73 -0
- package/dist/tool-call-visualization/renderers/agent-call/findResultMedia.d.ts +15 -0
- package/dist/tool-call-visualization/renderers/agent-call/findResultMedia.js +39 -0
- package/dist/tool-call-visualization/renderers/ask/AskInline.d.ts +24 -0
- package/dist/tool-call-visualization/renderers/ask/AskInline.js +136 -0
- package/dist/tool-call-visualization/renderers/ask-person/AskPersonInline.d.ts +23 -0
- package/dist/tool-call-visualization/renderers/ask-person/AskPersonInline.js +84 -0
- package/dist/tool-call-visualization/renderers/cloud-browser/CloudBrowserRunCard.d.ts +22 -0
- package/dist/tool-call-visualization/renderers/cloud-browser/CloudBrowserRunCard.js +202 -0
- package/dist/tool-call-visualization/renderers/cloud-browser/cloudBrowserRun.d.ts +27 -0
- package/dist/tool-call-visualization/renderers/cloud-browser/cloudBrowserRun.js +361 -0
- package/dist/tool-call-visualization/renderers/ctx/ContextActionInline.d.ts +22 -0
- package/dist/tool-call-visualization/renderers/ctx/ContextActionInline.js +15 -0
- package/dist/tool-call-visualization/renderers/ctx/CtxBatchInline.d.ts +31 -0
- package/dist/tool-call-visualization/renderers/ctx/CtxBatchInline.js +133 -0
- package/dist/tool-call-visualization/renderers/ctx/CtxGetInline.d.ts +27 -0
- package/dist/tool-call-visualization/renderers/ctx/CtxGetInline.js +68 -0
- package/dist/tool-call-visualization/renderers/ctx/CtxItemCard.d.ts +33 -0
- package/dist/tool-call-visualization/renderers/ctx/CtxItemCard.js +84 -0
- package/dist/tool-call-visualization/renderers/ctx/CtxPatchInline.d.ts +32 -0
- package/dist/tool-call-visualization/renderers/ctx/CtxPatchInline.js +89 -0
- package/dist/tool-call-visualization/renderers/dictionary/DictEntryList.d.ts +4 -0
- package/dist/tool-call-visualization/renderers/dictionary/DictEntryList.js +49 -0
- package/dist/tool-call-visualization/renderers/dictionary/DictionaryInline.d.ts +2 -0
- package/dist/tool-call-visualization/renderers/dictionary/DictionaryInline.js +38 -0
- package/dist/tool-call-visualization/renderers/dictionary/DictionaryOverlay.d.ts +6 -0
- package/dist/tool-call-visualization/renderers/dictionary/DictionaryOverlay.js +31 -0
- package/dist/tool-call-visualization/renderers/dictionary/parseDictionary.d.ts +19 -0
- package/dist/tool-call-visualization/renderers/dictionary/parseDictionary.js +24 -0
- package/dist/tool-call-visualization/renderers/fs/FsInline.d.ts +47 -0
- package/dist/tool-call-visualization/renderers/fs/FsInline.js +222 -0
- package/dist/tool-call-visualization/renderers/news-api/NewsInline.d.ts +3 -0
- package/dist/tool-call-visualization/renderers/news-api/NewsInline.js +148 -0
- package/dist/tool-call-visualization/renderers/news-api/NewsOverlay.d.ts +3 -0
- package/dist/tool-call-visualization/renderers/news-api/NewsOverlay.js +206 -0
- package/dist/tool-call-visualization/renderers/random-wheel/RandomWheelInline.d.ts +18 -0
- package/dist/tool-call-visualization/renderers/random-wheel/RandomWheelInline.js +696 -0
- package/dist/tool-call-visualization/renderers/random-wheel/types.d.ts +73 -0
- package/dist/tool-call-visualization/renderers/random-wheel/types.js +0 -0
- package/dist/tool-call-visualization/renderers/records/RecordsInline.d.ts +2 -0
- package/dist/tool-call-visualization/renderers/records/RecordsInline.js +41 -0
- package/dist/tool-call-visualization/renderers/research/ResearchInline.d.ts +32 -0
- package/dist/tool-call-visualization/renderers/research/ResearchInline.js +180 -0
- package/dist/tool-call-visualization/renderers/research/ResearchOverlay.d.ts +21 -0
- package/dist/tool-call-visualization/renderers/research/ResearchOverlay.js +247 -0
- package/dist/tool-call-visualization/renderers/research/SubagentReportBlock.d.ts +10 -0
- package/dist/tool-call-visualization/renderers/research/SubagentReportBlock.js +127 -0
- package/dist/tool-call-visualization/renderers/scrape/ScrapeInline.d.ts +33 -0
- package/dist/tool-call-visualization/renderers/scrape/ScrapeInline.js +283 -0
- package/dist/tool-call-visualization/renderers/scrape/ScrapeOverlay.d.ts +14 -0
- package/dist/tool-call-visualization/renderers/scrape/ScrapeOverlay.js +152 -0
- package/dist/tool-call-visualization/renderers/scrape/parseScrape.d.ts +83 -0
- package/dist/tool-call-visualization/renderers/scrape/parseScrape.js +111 -0
- package/dist/tool-call-visualization/renderers/search/SearchInline.d.ts +47 -0
- package/dist/tool-call-visualization/renderers/search/SearchInline.js +521 -0
- package/dist/tool-call-visualization/renderers/search/SearchOverlay.d.ts +3 -0
- package/dist/tool-call-visualization/renderers/search/SearchOverlay.js +334 -0
- package/dist/tool-call-visualization/renderers/search/parseSearch.d.ts +167 -0
- package/dist/tool-call-visualization/renderers/search/parseSearch.js +271 -0
- package/dist/tool-call-visualization/renderers/search/useGraduatedReveal.d.ts +26 -0
- package/dist/tool-call-visualization/renderers/search/useGraduatedReveal.js +34 -0
- package/dist/tool-call-visualization/renderers/shell/ShellInline.d.ts +60 -0
- package/dist/tool-call-visualization/renderers/shell/ShellInline.js +158 -0
- package/dist/tool-call-visualization/renderers/skill/SkillInline.d.ts +22 -0
- package/dist/tool-call-visualization/renderers/skill/SkillInline.js +113 -0
- package/dist/tool-call-visualization/renderers/sql/DbSchemaInline.d.ts +16 -0
- package/dist/tool-call-visualization/renderers/sql/DbSchemaInline.js +59 -0
- package/dist/tool-call-visualization/renderers/sql/SqlInline.d.ts +23 -0
- package/dist/tool-call-visualization/renderers/sql/SqlInline.js +125 -0
- package/dist/tool-call-visualization/renderers/sql/summarizeSql.d.ts +32 -0
- package/dist/tool-call-visualization/renderers/sql/summarizeSql.js +104 -0
- package/dist/tool-call-visualization/renderers/useAutoScrollOnStream.d.ts +5 -0
- package/dist/tool-call-visualization/renderers/useAutoScrollOnStream.js +30 -0
- package/dist/tool-call-visualization/renderers/web/WebInline.d.ts +23 -0
- package/dist/tool-call-visualization/renderers/web/WebInline.js +16 -0
- package/dist/tool-call-visualization/renderers/web/WebOverlay.d.ts +16 -0
- package/dist/tool-call-visualization/renderers/web/WebOverlay.js +16 -0
- package/dist/tool-call-visualization/renderers/web/webAction.d.ts +30 -0
- package/dist/tool-call-visualization/renderers/web/webAction.js +14 -0
- package/dist/tool-call-visualization/renderers/workbook/WorkbookGrid.d.ts +11 -0
- package/dist/tool-call-visualization/renderers/workbook/WorkbookGrid.js +47 -0
- package/dist/tool-call-visualization/renderers/workbook/WorkbookInline.d.ts +7 -0
- package/dist/tool-call-visualization/renderers/workbook/WorkbookInline.js +86 -0
- package/dist/tool-call-visualization/renderers/workbook/WorkbookOverlay.d.ts +7 -0
- package/dist/tool-call-visualization/renderers/workbook/WorkbookOverlay.js +37 -0
- package/dist/tool-call-visualization/renderers/workbook/parseWorkbook.d.ts +19 -0
- package/dist/tool-call-visualization/renderers/workbook/parseWorkbook.js +23 -0
- package/dist/tool-call-visualization/renderers/working-document/PatchDiffInline.d.ts +32 -0
- package/dist/tool-call-visualization/renderers/working-document/PatchDiffInline.js +110 -0
- package/dist/tool-call-visualization/renderers/working-document/applyWorkingDocPatch.d.ts +44 -0
- package/dist/tool-call-visualization/renderers/working-document/applyWorkingDocPatch.js +74 -0
- package/dist/tool-call-visualization/result-fields/EmptyResult.d.ts +13 -0
- package/dist/tool-call-visualization/result-fields/EmptyResult.js +28 -0
- package/dist/tool-call-visualization/result-fields/KeyValueGrid.d.ts +69 -0
- package/dist/tool-call-visualization/result-fields/KeyValueGrid.js +291 -0
- package/dist/tool-call-visualization/result-fields/KindValueNode.d.ts +21 -0
- package/dist/tool-call-visualization/result-fields/KindValueNode.js +41 -0
- package/dist/tool-call-visualization/result-fields/ResultFile.d.ts +26 -0
- package/dist/tool-call-visualization/result-fields/ResultFile.js +118 -0
- package/dist/tool-call-visualization/result-fields/ResultJson.d.ts +22 -0
- package/dist/tool-call-visualization/result-fields/ResultJson.js +9 -0
- package/dist/tool-call-visualization/result-fields/ResultMarkdown.d.ts +16 -0
- package/dist/tool-call-visualization/result-fields/ResultMarkdown.js +51 -0
- package/dist/tool-call-visualization/result-fields/ResultMedia.d.ts +17 -0
- package/dist/tool-call-visualization/result-fields/ResultMedia.js +60 -0
- package/dist/tool-call-visualization/result-fields/ResultRecordRef.d.ts +20 -0
- package/dist/tool-call-visualization/result-fields/ResultRecordRef.js +42 -0
- package/dist/tool-call-visualization/result-fields/ResultScalar.d.ts +19 -0
- package/dist/tool-call-visualization/result-fields/ResultScalar.js +16 -0
- package/dist/tool-call-visualization/result-fields/ResultTable.d.ts +28 -0
- package/dist/tool-call-visualization/result-fields/ResultTable.js +343 -0
- package/dist/tool-call-visualization/result-fields/ResultValue.d.ts +35 -0
- package/dist/tool-call-visualization/result-fields/ResultValue.js +202 -0
- package/dist/tool-call-visualization/result-fields/ShortId.d.ts +28 -0
- package/dist/tool-call-visualization/result-fields/ShortId.js +114 -0
- package/dist/tool-call-visualization/result-fields/ToolErrorCard.d.ts +33 -0
- package/dist/tool-call-visualization/result-fields/ToolErrorCard.js +80 -0
- package/dist/tool-call-visualization/result-fields/ToolResultValue.d.ts +22 -0
- package/dist/tool-call-visualization/result-fields/ToolResultValue.js +19 -0
- package/dist/tool-call-visualization/result-fields/UrlChips.d.ts +34 -0
- package/dist/tool-call-visualization/result-fields/UrlChips.js +72 -0
- package/dist/tool-call-visualization/result-fields/demo-fixtures.d.ts +6 -0
- package/dist/tool-call-visualization/result-fields/demo-fixtures.js +8 -0
- package/dist/tool-call-visualization/result-fields/document-presentation.d.ts +101 -0
- package/dist/tool-call-visualization/result-fields/document-presentation.js +61 -0
- package/dist/tool-call-visualization/result-fields/guard-routing.d.ts +31 -0
- package/dist/tool-call-visualization/result-fields/guard-routing.js +32 -0
- package/dist/tool-call-visualization/result-fields/schema-labels.d.ts +27 -0
- package/dist/tool-call-visualization/result-fields/schema-labels.js +51 -0
- package/dist/tool-call-visualization/result-fields/shape.d.ts +263 -0
- package/dist/tool-call-visualization/result-fields/shape.js +384 -0
- package/dist/tool-call-visualization/service/fetchConversationToolCalls.d.ts +39 -0
- package/dist/tool-call-visualization/service/fetchConversationToolCalls.js +55 -0
- package/dist/tool-call-visualization/surface-write/SurfaceWriteDiff.d.ts +9 -0
- package/dist/tool-call-visualization/surface-write/SurfaceWriteDiff.js +129 -0
- package/dist/tool-call-visualization/surface-write/SurfaceWriteStress.d.ts +17 -0
- package/dist/tool-call-visualization/surface-write/SurfaceWriteStress.js +169 -0
- package/dist/tool-call-visualization/surface-write/readSurfaceWrite.d.ts +43 -0
- package/dist/tool-call-visualization/surface-write/readSurfaceWrite.js +64 -0
- package/dist/tool-call-visualization/surface-write/withSurfaceWriteDiff.d.ts +17 -0
- package/dist/tool-call-visualization/surface-write/withSurfaceWriteDiff.js +20 -0
- package/dist/tool-call-visualization/types.d.ts +226 -0
- package/dist/tool-call-visualization/types.js +0 -0
- package/dist/tool-call-visualization/utils/cxToolCallToLifecycleEntry.d.ts +51 -0
- package/dist/tool-call-visualization/utils/cxToolCallToLifecycleEntry.js +109 -0
- package/dist/tool-call-visualization/utils/human-copy.d.ts +16 -0
- package/dist/tool-call-visualization/utils/human-copy.js +44 -0
- package/dist/tool-call-visualization/utils/toolCallBlockToLifecycleEntry.d.ts +24 -0
- package/dist/tool-call-visualization/utils/toolCallBlockToLifecycleEntry.js +26 -0
- package/dist/tool-call-visualization/utils/toolDisplayName.d.ts +13 -0
- package/dist/tool-call-visualization/utils/toolDisplayName.js +17 -0
- package/dist/tool-call-visualization/utils/toolEntryBundle.d.ts +38 -0
- package/dist/tool-call-visualization/utils/toolEntryBundle.js +62 -0
- package/dist/tool-call-visualization/window-panel/ToolCallWindowPanel.d.ts +39 -0
- package/dist/tool-call-visualization/window-panel/ToolCallWindowPanel.js +521 -0
- package/dist/tools.cjs +84 -44
- package/dist/tools.cjs.map +1 -1
- package/dist/tools.js +83 -43
- package/dist/tools.js.map +1 -1
- package/dist/ui/ShimmerText.d.ts +5 -0
- package/dist/ui/ShimmerText.js +21 -0
- package/dist/ui/access-core.d.ts +50 -0
- package/dist/ui/access-core.js +65 -0
- package/dist/ui/addressWithoutNavigating.d.ts +68 -0
- package/dist/ui/addressWithoutNavigating.js +60 -0
- package/dist/ui/after-current-layer-closes.d.ts +79 -0
- package/dist/ui/after-current-layer-closes.js +69 -0
- package/dist/ui/agentDeleteConfirm.d.ts +41 -0
- package/dist/ui/agentDeleteConfirm.js +14 -0
- package/dist/ui/aspect-ratio-options.d.ts +28 -0
- package/dist/ui/aspect-ratio-options.js +82 -0
- package/dist/ui/audio-session-types.d.ts +122 -0
- package/dist/ui/audio-session-types.js +0 -0
- package/dist/ui/body-pointer-events-guard.d.ts +100 -0
- package/dist/ui/body-pointer-events-guard.js +140 -0
- package/dist/ui/canActOn.d.ts +2 -0
- package/dist/ui/canActOn.js +13 -0
- package/dist/ui/chat-default-model-knob.d.ts +3 -0
- package/dist/ui/chat-default-model-knob.js +12 -0
- package/dist/ui/chat-protocol-types.d.ts +154 -0
- package/dist/ui/chat-protocol-types.js +14 -0
- package/dist/ui/checkbox.d.ts +6 -0
- package/dist/ui/checkbox.js +11 -0
- package/dist/ui/componentSaver.d.ts +22 -0
- package/dist/ui/componentSaver.js +7 -0
- package/dist/ui/composer/composerSubmit.d.ts +50 -0
- package/dist/ui/composer/composerSubmit.js +32 -0
- package/dist/ui/composer/useTouchOnlyDevice.d.ts +6 -0
- package/dist/ui/composer/useTouchOnlyDevice.js +9 -0
- package/dist/ui/database-tool.d.ts +3 -0
- package/dist/ui/database-tool.js +0 -0
- package/dist/ui/expectedRefusal.d.ts +15 -0
- package/dist/ui/expectedRefusal.js +33 -0
- package/dist/ui/file-source.d.ts +19 -0
- package/dist/ui/file-source.js +0 -0
- package/dist/ui/grid-companion.d.ts +13 -0
- package/dist/ui/grid-companion.js +4 -0
- package/dist/ui/item-types.d.ts +284 -0
- package/dist/ui/item-types.js +22 -0
- package/dist/ui/mandate-words.d.ts +11 -0
- package/dist/ui/mandate-words.js +10 -0
- package/dist/ui/mandates-storage/mandateStorage.d.ts +10609 -0
- package/dist/ui/mandates-storage/mandateStorage.js +142 -0
- package/dist/ui/mandates-storage/provision-shapes.d.ts +398 -0
- package/dist/ui/mandates-storage/provision-shapes.js +369 -0
- package/dist/ui/mandates-storage/shortcutStorage.d.ts +6270 -0
- package/dist/ui/mandates-storage/shortcutStorage.js +71 -0
- package/dist/ui/mobileTable.d.ts +91 -0
- package/dist/ui/mobileTable.js +28 -0
- package/dist/ui/oauth-popup.d.ts +22 -0
- package/dist/ui/oauth-popup.js +63 -0
- package/dist/ui/payload.d.ts +38 -0
- package/dist/ui/payload.js +13 -0
- package/dist/ui/permission-levels.d.ts +88 -0
- package/dist/ui/permission-levels.js +66 -0
- package/dist/ui/projectCreateAiDebug.d.ts +27 -0
- package/dist/ui/projectCreateAiDebug.js +53 -0
- package/dist/ui/renameIntentFallback.d.ts +8 -0
- package/dist/ui/renameIntentFallback.js +11 -0
- package/dist/ui/scroll-fade.d.ts +40 -0
- package/dist/ui/scroll-fade.js +87 -0
- package/dist/ui/side-panel-width.d.ts +20 -0
- package/dist/ui/side-panel-width.js +30 -0
- package/dist/ui/skills-types.d.ts +275 -0
- package/dist/ui/skills-types.js +0 -0
- package/dist/ui/stream-profiler.d.ts +48 -0
- package/dist/ui/stream-profiler.js +96 -0
- package/dist/ui/supabase-rpc.d.ts +57 -0
- package/dist/ui/supabase-rpc.js +0 -0
- package/dist/ui/switch.d.ts +2 -0
- package/dist/ui/switch.js +4 -0
- package/dist/ui/tabs.d.ts +11 -0
- package/dist/ui/tabs.js +25 -0
- package/dist/ui/treatment-shape.d.ts +65 -0
- package/dist/ui/treatment-shape.js +159 -0
- package/dist/ui/usable-server-notes.d.ts +2 -0
- package/dist/ui/usable-server-notes.js +8 -0
- package/dist/ui/usages/DriftSeverityBadge.d.ts +18 -0
- package/dist/ui/usages/DriftSeverityBadge.js +34 -0
- package/dist/ui/usages/severity.d.ts +34 -0
- package/dist/ui/usages/severity.js +82 -0
- package/dist/ui/usages/usages.slice.d.ts +91 -0
- package/dist/ui/usages/usages.slice.js +210 -0
- package/dist/ui/usages/usages.types.d.ts +196 -0
- package/dist/ui/usages/usages.types.js +0 -0
- package/dist/ui/valuePromptsOpener.d.ts +46 -0
- package/dist/ui/valuePromptsOpener.js +11 -0
- package/dist/utils/callbackManager.d.ts +114 -0
- package/dist/utils/callbackManager.js +260 -0
- package/dist/utils/connectors/marks.d.ts +35 -0
- package/dist/utils/connectors/marks.js +226 -0
- package/dist/utils/connectors/types.d.ts +77 -0
- package/dist/utils/connectors/types.js +0 -0
- package/dist/utils/content-ir/decision-answers-ids.d.ts +3 -0
- package/dist/utils/content-ir/decision-answers-ids.js +6 -0
- package/dist/utils/content-ir/envelope-parity.d.ts +12 -0
- package/dist/utils/content-ir/envelope-parity.js +32 -0
- package/dist/utils/content-ir/instance-title.d.ts +26 -0
- package/dist/utils/content-ir/instance-title.js +39 -0
- package/dist/utils/content-ir/kinds/kind-markdown-utils.d.ts +84 -0
- package/dist/utils/content-ir/kinds/kind-markdown-utils.js +233 -0
- package/dist/utils/content-ir/kinds/kind-value-markdown.d.ts +5 -0
- package/dist/utils/content-ir/kinds/kind-value-markdown.js +17 -0
- package/dist/utils/content-ir/legacy-quiz-envelope.d.ts +3 -0
- package/dist/utils/content-ir/legacy-quiz-envelope.js +45 -0
- package/dist/utils/content-ir/report-kind-at-raw-renderer.d.ts +19 -0
- package/dist/utils/content-ir/report-kind-at-raw-renderer.js +32 -0
- package/dist/utils/content-ir/surfaces/embedded-kind-json.d.ts +140 -0
- package/dist/utils/content-ir/surfaces/embedded-kind-json.js +527 -0
- package/dist/utils/content-ir/surfaces/json-kind-signal.d.ts +307 -0
- package/dist/utils/content-ir/surfaces/json-kind-signal.js +945 -0
- package/dist/utils/content-ir/surfaces/kind-image-alt.d.ts +27 -0
- package/dist/utils/content-ir/surfaces/kind-image-alt.js +117 -0
- package/dist/utils/content-ir/surfaces/kind-one-line.d.ts +67 -0
- package/dist/utils/content-ir/surfaces/kind-one-line.js +209 -0
- package/dist/utils/content-ir/surfaces/kind-text-label.d.ts +20 -0
- package/dist/utils/content-ir/surfaces/kind-text-label.js +50 -0
- package/dist/utils/content-ir/surfaces/kind-text-to-markdown.d.ts +47 -0
- package/dist/utils/content-ir/surfaces/kind-text-to-markdown.js +399 -0
- package/dist/utils/content-ir/surfaces/markdown-escaped-kind.d.ts +54 -0
- package/dist/utils/content-ir/surfaces/markdown-escaped-kind.js +128 -0
- package/dist/utils/content-ir/surfaces/quoted-kind-lift.d.ts +61 -0
- package/dist/utils/content-ir/surfaces/quoted-kind-lift.js +215 -0
- package/dist/utils/dom/focus-guard.d.ts +29 -0
- package/dist/utils/dom/focus-guard.js +40 -0
- package/dist/utils/dom/useAutoFocus.d.ts +11 -0
- package/dist/utils/dom/useAutoFocus.js +11 -0
- package/dist/utils/inline-decision/decision-options.d.ts +21 -0
- package/dist/utils/inline-decision/decision-options.js +32 -0
- package/dist/utils/json.d.ts +63 -0
- package/dist/utils/json.js +22 -0
- package/dist/utils/markdown/plain-title.d.ts +25 -0
- package/dist/utils/markdown/plain-title.js +51 -0
- package/dist/utils/rendered-find.d.ts +9 -0
- package/dist/utils/rendered-find.js +68 -0
- package/dist/utils/resource-picker/ResourcePickerSubViewHeader.d.ts +102 -0
- package/dist/utils/resource-picker/ResourcePickerSubViewHeader.js +150 -0
- package/dist/utils/rich-editor/core/caret-context.d.ts +24 -0
- package/dist/utils/rich-editor/core/caret-context.js +73 -0
- package/dist/utils/rich-editor/in-place/caret-handoff.d.ts +3 -0
- package/dist/utils/rich-editor/in-place/caret-handoff.js +14 -0
- package/dist/utils/shell/canvas-chrome-routes.d.ts +38 -0
- package/dist/utils/shell/canvas-chrome-routes.js +32 -0
- package/dist/utils/shell/sidebar-cookie.d.ts +21 -0
- package/dist/utils/shell/sidebar-cookie.js +12 -0
- package/dist/utils/xml/readXmlTag.d.ts +12 -0
- package/dist/utils/xml/readXmlTag.js +66 -0
- package/dist/voice-agent/agent-context/voiceTranscriptScope.d.ts +56 -0
- package/dist/voice-agent/agent-context/voiceTranscriptScope.js +45 -0
- package/dist/voice-agent/agentInstructions.d.ts +18 -0
- package/dist/voice-agent/agentInstructions.js +25 -0
- package/dist/voice-agent/audio/amplitudeBus.d.ts +5 -0
- package/dist/voice-agent/audio/amplitudeBus.js +19 -0
- package/dist/voice-agent/audio/audioCapture.d.ts +48 -0
- package/dist/voice-agent/audio/audioCapture.js +277 -0
- package/dist/voice-agent/audio/audioPlayback.d.ts +19 -0
- package/dist/voice-agent/audio/audioPlayback.js +194 -0
- package/dist/voice-agent/audio/pcmEncoding.d.ts +10 -0
- package/dist/voice-agent/audio/pcmEncoding.js +26 -0
- package/dist/voice-agent/components/GoogleLiveSurface.d.ts +1 -0
- package/dist/voice-agent/components/GoogleLiveSurface.js +151 -0
- package/dist/voice-agent/components/LiveVoiceDoor.d.ts +4 -0
- package/dist/voice-agent/components/LiveVoiceDoor.js +49 -0
- package/dist/voice-agent/components/VoiceAgentSurface.d.ts +22 -0
- package/dist/voice-agent/components/VoiceAgentSurface.js +308 -0
- package/dist/voice-agent/components/VoiceControlCluster.d.ts +10 -0
- package/dist/voice-agent/components/VoiceControlCluster.js +24 -0
- package/dist/voice-agent/components/VoiceDebugPanel.d.ts +7 -0
- package/dist/voice-agent/components/VoiceDebugPanel.js +276 -0
- package/dist/voice-agent/components/VoiceEdgeRibbon.d.ts +7 -0
- package/dist/voice-agent/components/VoiceEdgeRibbon.js +99 -0
- package/dist/voice-agent/components/VoiceErrorBanner.d.ts +8 -0
- package/dist/voice-agent/components/VoiceErrorBanner.js +36 -0
- package/dist/voice-agent/components/VoiceMicButton.d.ts +8 -0
- package/dist/voice-agent/components/VoiceMicButton.js +47 -0
- package/dist/voice-agent/components/VoiceMuteButton.d.ts +8 -0
- package/dist/voice-agent/components/VoiceMuteButton.js +37 -0
- package/dist/voice-agent/components/VoiceOrb.d.ts +9 -0
- package/dist/voice-agent/components/VoiceOrb.js +169 -0
- package/dist/voice-agent/components/VoiceStatusPill.d.ts +9 -0
- package/dist/voice-agent/components/VoiceStatusPill.js +43 -0
- package/dist/voice-agent/components/VoiceTranscriptStream.d.ts +7 -0
- package/dist/voice-agent/components/VoiceTranscriptStream.js +32 -0
- package/dist/voice-agent/components/VoiceTranscriptTurn.d.ts +6 -0
- package/dist/voice-agent/components/VoiceTranscriptTurn.js +45 -0
- package/dist/voice-agent/components/playground/InstructionsEditor.d.ts +6 -0
- package/dist/voice-agent/components/playground/InstructionsEditor.js +61 -0
- package/dist/voice-agent/components/playground/PlaygroundSettingsSheet.d.ts +16 -0
- package/dist/voice-agent/components/playground/PlaygroundSettingsSheet.js +74 -0
- package/dist/voice-agent/components/playground/ToolToggleList.d.ts +6 -0
- package/dist/voice-agent/components/playground/ToolToggleList.js +64 -0
- package/dist/voice-agent/components/playground/VoicePicker.d.ts +6 -0
- package/dist/voice-agent/components/playground/VoicePicker.js +37 -0
- package/dist/voice-agent/constants.d.ts +120 -0
- package/dist/voice-agent/constants.js +52 -0
- package/dist/voice-agent/debug/voiceDebugBus.d.ts +57 -0
- package/dist/voice-agent/debug/voiceDebugBus.js +91 -0
- package/dist/voice-agent/hooks/useAudioAmplitude.d.ts +3 -0
- package/dist/voice-agent/hooks/useAudioAmplitude.js +32 -0
- package/dist/voice-agent/hooks/useGoogleLiveSession.d.ts +21 -0
- package/dist/voice-agent/hooks/useGoogleLiveSession.js +185 -0
- package/dist/voice-agent/hooks/usePersistVoiceTranscript.d.ts +7 -0
- package/dist/voice-agent/hooks/usePersistVoiceTranscript.js +120 -0
- package/dist/voice-agent/hooks/useRealtimeAgentConfig.d.ts +63 -0
- package/dist/voice-agent/hooks/useRealtimeAgentConfig.js +67 -0
- package/dist/voice-agent/hooks/useVoiceAgentInstance.d.ts +62 -0
- package/dist/voice-agent/hooks/useVoiceAgentInstance.js +109 -0
- package/dist/voice-agent/hooks/useVoicePlaygroundWriteHandlers.d.ts +2 -0
- package/dist/voice-agent/hooks/useVoicePlaygroundWriteHandlers.js +89 -0
- package/dist/voice-agent/hooks/useXaiVoiceSession.d.ts +53 -0
- package/dist/voice-agent/hooks/useXaiVoiceSession.js +1030 -0
- package/dist/voice-agent/intelligence-places.d.ts +2 -0
- package/dist/voice-agent/intelligence-places.js +55 -0
- package/dist/voice-agent/persistence/voiceTranscriptWriter.d.ts +47 -0
- package/dist/voice-agent/persistence/voiceTranscriptWriter.js +204 -0
- package/dist/voice-agent/realtimeModel.d.ts +18 -0
- package/dist/voice-agent/realtimeModel.js +47 -0
- package/dist/voice-agent/realtimeSession.d.ts +27 -0
- package/dist/voice-agent/realtimeSession.js +67 -0
- package/dist/voice-agent/relay/VoiceChatClient.d.ts +8 -0
- package/dist/voice-agent/relay/VoiceChatClient.js +36 -0
- package/dist/voice-agent/relay/VoiceRelayBar.d.ts +22 -0
- package/dist/voice-agent/relay/VoiceRelayBar.js +85 -0
- package/dist/voice-agent/relay/VoiceRelayDock.d.ts +13 -0
- package/dist/voice-agent/relay/VoiceRelayDock.js +80 -0
- package/dist/voice-agent/relay/VoiceRelayPanel.d.ts +14 -0
- package/dist/voice-agent/relay/VoiceRelayPanel.js +45 -0
- package/dist/voice-agent/relay/questionLedger.d.ts +22 -0
- package/dist/voice-agent/relay/questionLedger.js +123 -0
- package/dist/voice-agent/relay/relayController.d.ts +52 -0
- package/dist/voice-agent/relay/relayController.js +165 -0
- package/dist/voice-agent/relay/relayProtocol.d.ts +25 -0
- package/dist/voice-agent/relay/relayProtocol.js +33 -0
- package/dist/voice-agent/relay/sideChannel.d.ts +38 -0
- package/dist/voice-agent/relay/sideChannel.js +69 -0
- package/dist/voice-agent/relay/types.d.ts +41 -0
- package/dist/voice-agent/relay/types.js +0 -0
- package/dist/voice-agent/relay/useVoiceRelaySession.d.ts +47 -0
- package/dist/voice-agent/relay/useVoiceRelaySession.js +261 -0
- package/dist/voice-agent/relay/utteranceQueue.d.ts +27 -0
- package/dist/voice-agent/relay/utteranceQueue.js +39 -0
- package/dist/voice-agent/runtime/client-tool-registry.d.ts +45 -0
- package/dist/voice-agent/runtime/client-tool-registry.js +49 -0
- package/dist/voice-agent/runtime/realtime-tool-loop.d.ts +87 -0
- package/dist/voice-agent/runtime/realtime-tool-loop.js +90 -0
- package/dist/voice-agent/services/realtimeToolService.d.ts +57 -0
- package/dist/voice-agent/services/realtimeToolService.js +28 -0
- package/dist/voice-agent/state/selectors.d.ts +36 -0
- package/dist/voice-agent/state/selectors.js +119 -0
- package/dist/voice-agent/state/voiceAgentSlice.d.ts +78 -0
- package/dist/voice-agent/state/voiceAgentSlice.js +285 -0
- package/dist/voice-agent/transport/clientEvents.d.ts +40 -0
- package/dist/voice-agent/transport/clientEvents.js +88 -0
- package/dist/voice-agent/transport/googleRealtimeClient.d.ts +24 -0
- package/dist/voice-agent/transport/googleRealtimeClient.js +161 -0
- package/dist/voice-agent/transport/serverEvents.d.ts +180 -0
- package/dist/voice-agent/transport/serverEvents.js +42 -0
- package/dist/voice-agent/transport/tokenManager.d.ts +40 -0
- package/dist/voice-agent/transport/tokenManager.js +197 -0
- package/dist/voice-agent/transport/xaiClient.d.ts +43 -0
- package/dist/voice-agent/transport/xaiClient.js +230 -0
- package/dist/voice-agent/types.d.ts +119 -0
- package/dist/voice-agent/types.js +0 -0
- package/dist/window-panels/windows/agents/AgentAssistantMarkdownDebugWindow.d.ts +7 -0
- package/dist/window-panels/windows/agents/AgentAssistantMarkdownDebugWindow.js +138 -0
- package/dist/window-panels/windows/agents/AgentMemoryWindow.d.ts +6 -0
- package/dist/window-panels/windows/agents/AgentMemoryWindow.js +105 -0
- package/dist/window-panels/windows/agents/AgentPickerFrame.d.ts +30 -0
- package/dist/window-panels/windows/agents/AgentPickerFrame.js +49 -0
- package/dist/window-panels/windows/agents/AgentRunHistoryWindow.d.ts +18 -0
- package/dist/window-panels/windows/agents/AgentRunHistoryWindow.js +483 -0
- package/dist/window-panels/windows/agents/AgentRunWindow.d.ts +70 -0
- package/dist/window-panels/windows/agents/AgentRunWindow.js +674 -0
- package/dist/window-panels/windows/agents/ChatHistoryWindow.d.ts +41 -0
- package/dist/window-panels/windows/agents/ChatHistoryWindow.js +248 -0
- package/dist/window-panels/windows/agents/LiveRunWindow.d.ts +52 -0
- package/dist/window-panels/windows/agents/LiveRunWindow.js +97 -0
- package/dist/window-panels/windows/agents/MessageAnalysisWindow.d.ts +22 -0
- package/dist/window-panels/windows/agents/MessageAnalysisWindow.js +116 -0
- package/dist/window-panels/windows/agents/ObservationalMemoryWindow.d.ts +25 -0
- package/dist/window-panels/windows/agents/ObservationalMemoryWindow.js +382 -0
- package/dist/window-panels/windows/agents/RunControlsWindow.d.ts +9 -0
- package/dist/window-panels/windows/agents/RunControlsWindow.js +158 -0
- package/dist/window-panels/windows/agents/agent-run-history-scope.d.ts +90 -0
- package/dist/window-panels/windows/agents/agent-run-history-scope.js +86 -0
- package/dist/window-panels/windows/agents/agentPanelSurfaceAddress.d.ts +28 -0
- package/dist/window-panels/windows/agents/agentPanelSurfaceAddress.js +27 -0
- package/dist/window-panels/windows/agents/agentRunWindowAddress.d.ts +35 -0
- package/dist/window-panels/windows/agents/agentRunWindowAddress.js +13 -0
- package/package.json +160 -11
package/dist/tools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/react/tools/registry.tsx","../src/react/tools/generic-body.tsx","../src/react/transcript/tool-chip.tsx","../src/react/hooks.ts","../src/react/provider.tsx","../src/react/icons.tsx","../src/react/tools/card.tsx"],"sourcesContent":["/**\n * THE TOOL-RENDERER REGISTRY — `@ai-matrx/chat/tools`, lane 2B.\n *\n * Ported from `matrx-extend/src/features/chat/tool-display/`, which is the best\n * tool-call UI on the platform (93 registered tools, ~3,900 lines) and the\n * reason the design names it the port source. What is taken is its SHAPE and\n * the two decisions it earned the hard way:\n *\n * 1. **Exact-name lookup, one map, two tiers.** A component for a tool that\n * needs one; a declarative description for the ninety that do not. A\n * `switch` on tool name scattered through a transcript is the defect the\n * canonical-chat guard exists to catch.\n * 2. **A registered renderer that throws DEGRADES, it does not take the\n * transcript down.** Extend wraps every custom render in an error boundary\n * whose fallback is the generic row. A tool card is the least trustworthy\n * component in a chat — it renders arbitrary server JSON — so its failure\n * must cost the reader one card, never the answer they were reading.\n *\n * WHAT IS NOT TAKEN: its 93 Chrome-specific entries (they are content, not\n * code, and they belong to that surface), its `@/lib/utils`/Zustand coupling,\n * and its header. **A renderer here replaces the chip's BODY.** The chip, its\n * header and the kernel's state machine are lane 2A's and stay exactly as they\n * are — a registry entry is a richer body, not a second card.\n */\n\nimport { Component, type ComponentType, type ErrorInfo, type ReactNode } from \"react\";\n\nimport type { ChatToolPart, ChatToolState } from \"../../model\";\n\n/** What a tool renderer is handed. Everything it could need, nothing host-shaped. */\nexport interface ChatToolRenderProps {\n part: ChatToolPart;\n /** `part.input`, hoisted because it is what 90% of renderers read first. */\n input: unknown;\n output: unknown;\n state: ChatToolState;\n /** Present only in `output-error`. */\n errorText: string | null;\n /** True while the call has not reached a terminal state. */\n running: boolean;\n}\n\nexport type ChatToolRenderer = ComponentType<ChatToolRenderProps>;\n\nexport interface ChatToolRendererRegistry {\n register(toolName: string, renderer: ChatToolRenderer): void;\n /** Register the same renderer under several server names (`web`, `web_search`). */\n registerAll(toolNames: readonly string[], renderer: ChatToolRenderer): void;\n lookup(toolName: string): ChatToolRenderer | undefined;\n /** Every registered name, sorted. The census a guard can read. */\n names(): string[];\n}\n\nexport function createToolRendererRegistry(\n seed: Readonly<Record<string, ChatToolRenderer>> = {},\n): ChatToolRendererRegistry {\n const map = new Map<string, ChatToolRenderer>(Object.entries(seed));\n return {\n register(toolName, renderer) {\n map.set(toolName, renderer);\n },\n registerAll(toolNames, renderer) {\n for (const name of toolNames) map.set(name, renderer);\n },\n lookup(toolName) {\n return map.get(toolName);\n },\n names() {\n return [...map.keys()].sort();\n },\n };\n}\n\n/**\n * THE BOUNDARY. A renderer that throws costs the reader one BODY, and the\n * fallback is the generic body — which by construction cannot itself fail.\n * The failure is also REPORTED, with the tool's name, because a card that\n * quietly degrades for a week is a defect nobody ever sees.\n */\nexport class ChatToolBodyBoundary extends Component<\n {\n toolName: string;\n fallback: ReactNode;\n onError?: ((error: Error, info: ErrorInfo) => void) | undefined;\n children: ReactNode;\n },\n { failed: boolean }\n> {\n override state = { failed: false };\n\n static getDerivedStateFromError(): { failed: boolean } {\n return { failed: true };\n }\n\n override componentDidCatch(error: Error, info: ErrorInfo): void {\n this.props.onError?.(error, info);\n }\n\n override render(): ReactNode {\n if (this.state.failed) {\n return (\n <div className=\"mx-chat-tool__body\" data-mx-chat-tool-body=\"degraded\">\n <span className=\"mx-chat-standin\">\n {`The custom view for ${this.props.toolName} could not be drawn, so this is the plain version of what it did.`}\n </span>\n {this.props.fallback}\n </div>\n );\n }\n return this.props.children;\n }\n}\n","/**\n * THE GENERIC TOOL BODY — the floor that can never fail.\n *\n * Every branch here is defensive on purpose. This renders arbitrary JSON that a\n * model asked a server to produce: it can be a 4 MB string, a cyclic object, a\n * BigInt, `undefined`, or an array of nulls. The extend registry's default row\n * is the reference, and its two survival rules are kept verbatim in spirit:\n *\n * - `JSON.stringify` is ALWAYS inside a try/catch, falling back to `String()`.\n * A cycle or a BigInt throws, and an uncaught throw here is a blank\n * transcript.\n * - a long payload is CLIPPED VISUALLY (a scrolling `<pre>`), not truncated\n * silently. A reader who is shown 80 of 4,000 characters with no sign that\n * there are more has been lied to; when this body does cut a string it says\n * how much it cut.\n *\n * It also produces the one-line summary the extend row leads with — the first\n * recognisable field (`url`, `query`, `text`, `question`, `reason`, `path`,\n * `selector`), or the first few keys — because a chip that says only\n * \"web_search: Running\" tells a reader watching their money being spent\n * nothing at all.\n */\n\nimport type { ReactNode } from \"react\";\n\nimport { formatCount } from \"@ai-matrx/kit/format\";\n\nimport type { ChatToolRenderProps } from \"./registry\";\n\n/** Above this many characters a payload is cut, and the cut is NAMED. */\nexport const PAYLOAD_CLIP_CHARS = 20_000;\n\nexport function safeStringify(value: unknown): string {\n if (value === undefined) return \"\";\n if (typeof value === \"string\") return value;\n try {\n const out = JSON.stringify(value, null, 2);\n return out === undefined ? String(value) : out;\n } catch {\n // A cycle, a BigInt, a getter that throws — the payload still has to say\n // something, and `String()` cannot throw for these.\n try {\n return String(value);\n } catch {\n return \"(this value cannot be displayed)\";\n }\n }\n}\n\nexport function summarizeToolInput(input: unknown): string | null {\n if (input === null || input === undefined) return null;\n if (typeof input === \"string\") return clipLine(input);\n if (typeof input !== \"object\") return String(input);\n if (Array.isArray(input)) return `${input.length} item${input.length === 1 ? \"\" : \"s\"}`;\n const record = input as Record<string, unknown>;\n for (const key of [\"url\", \"query\", \"q\", \"text\", \"question\", \"reason\", \"path\", \"selector\", \"name\"]) {\n const value = record[key];\n if (typeof value === \"string\" && value !== \"\") return clipLine(value);\n }\n const keys = Object.keys(record);\n if (keys.length === 0) return null;\n return keys.slice(0, 3).join(\", \");\n}\n\nfunction clipLine(text: string): string {\n return text.length > 96 ? `${text.slice(0, 96)}…` : text;\n}\n\n/* ------------------------------------------------- the shape-detected tier -- */\n\nexport interface ToolResultLink {\n title: string;\n url: string;\n snippet: string | null;\n}\n\n/**\n * THE ONE UPGRADE OVER RAW JSON THAT NEEDS NO TOOL NAME.\n *\n * Most of extend's 93 entries exist to turn one shape — a list of results with\n * a title and a URL — into something a person can click. That shape is\n * recognisable from the VALUE, so the package gets the benefit for every tool\n * that has ever returned it, including tools nobody has registered and tools\n * that do not exist yet. A registry entry keyed on a tool name can only ever\n * help the tools someone remembered to name.\n *\n * It is deliberately strict: every element must carry a http(s) URL and a\n * non-empty title, or the whole thing falls back to JSON. A half-detected list\n * that drops the fields it did not understand is worse than the JSON.\n */\nexport function detectResultLinks(value: unknown): ToolResultLink[] | null {\n const candidate = Array.isArray(value)\n ? value\n : value !== null && typeof value === \"object\"\n ? ([\"results\", \"items\", \"links\", \"sources\"] as const)\n .map((key) => (value as Record<string, unknown>)[key])\n .find((entry) => Array.isArray(entry))\n : undefined;\n if (!Array.isArray(candidate) || candidate.length === 0) return null;\n\n const links: ToolResultLink[] = [];\n for (const entry of candidate) {\n if (entry === null || typeof entry !== \"object\" || Array.isArray(entry)) return null;\n const record = entry as Record<string, unknown>;\n const url = record[\"url\"] ?? record[\"link\"] ?? record[\"href\"];\n const title = record[\"title\"] ?? record[\"name\"] ?? record[\"heading\"];\n if (typeof url !== \"string\" || !/^https?:\\/\\//i.test(url)) return null;\n if (typeof title !== \"string\" || title.trim() === \"\") return null;\n const snippet = record[\"snippet\"] ?? record[\"description\"] ?? record[\"summary\"];\n links.push({\n title,\n url,\n snippet: typeof snippet === \"string\" && snippet !== \"\" ? snippet : null,\n });\n }\n return links;\n}\n\nfunction ResultLinks(props: { links: readonly ToolResultLink[] }): ReactNode {\n return (\n <ul className=\"mx-chat-tool__links\">\n {props.links.map((link, index) => (\n <li key={`${link.url}-${index}`}>\n <a href={link.url} target=\"_blank\" rel=\"noreferrer noopener\">\n {link.title}\n </a>\n {link.snippet === null ? null : (\n <span className=\"mx-chat-tool__snippet\">{link.snippet}</span>\n )}\n </li>\n ))}\n </ul>\n );\n}\n\nfunction Payload(props: { label: string; value: unknown }): ReactNode {\n const body = safeStringify(props.value);\n if (body === \"\") return null;\n const clipped = body.length > PAYLOAD_CLIP_CHARS;\n return (\n <>\n <span className=\"mx-chat-tool__label\">{props.label}</span>\n <pre className=\"mx-chat-tool__payload\">\n {clipped ? body.slice(0, PAYLOAD_CLIP_CHARS) : body}\n </pre>\n {clipped ? (\n <span className=\"mx-chat-standin\">\n {`Showing the first ${formatCount(PAYLOAD_CLIP_CHARS)} characters of ${formatCount(body.length)}.`}\n </span>\n ) : null}\n </>\n );\n}\n\n/**\n * The body a tool gets when nothing is registered for it, and the fallback\n * when a registered renderer throws.\n */\nexport function ChatToolGenericBody(props: ChatToolRenderProps): ReactNode {\n const summary = summarizeToolInput(props.input);\n const links = detectResultLinks(props.output);\n const hasAnything =\n summary !== null ||\n props.input !== undefined ||\n props.output !== undefined ||\n props.errorText !== null ||\n props.part.progress.length > 0;\n\n return (\n <div className=\"mx-chat-tool__body\" data-mx-chat-tool-body=\"generic\">\n {summary === null ? null : (\n <p className=\"mx-chat-tool__summary\">{summary}</p>\n )}\n\n <Payload label=\"What it was asked\" value={props.input} />\n\n {props.part.progress.length > 0 ? (\n <>\n <span className=\"mx-chat-tool__label\">Progress</span>\n <ul className=\"mx-chat-tool__progress\">\n {props.part.progress.map((beat, index) => (\n <li key={`${beat.toolName}-${index}`}>\n {/* The SERVER's name per beat: it differs from the call's name\n mid-run, and flattening them loses what actually ran. */}\n <span data-tool-beat={beat.toolName}>{beat.toolName}</span>\n {beat.message === \"\" ? null : ` — ${beat.message}`}\n {beat.percent === null ? null : ` (${Math.round(beat.percent)}%)`}\n </li>\n ))}\n </ul>\n </>\n ) : null}\n\n {props.errorText === null ? null : (\n <>\n <span className=\"mx-chat-tool__label\">What went wrong</span>\n <p className=\"mx-chat-failure__sentence\">{props.errorText}</p>\n </>\n )}\n\n {links === null ? (\n <Payload label=\"What it returned\" value={props.output} />\n ) : (\n <>\n <span className=\"mx-chat-tool__label\">What it found</span>\n <ResultLinks links={links} />\n </>\n )}\n\n {hasAnything ? null : (\n <span className=\"mx-chat-standin\">\n {props.running\n ? \"This tool has not said what it is doing yet.\"\n : \"This tool ran without reporting any details.\"}\n </span>\n )}\n </div>\n );\n}\n","/**\n * THE BASIC TOOL CHIP — the transcript's floor for a tool call.\n *\n * It is driven entirely by the kernel's tool state machine\n * (`input-streaming → input-available → approval-requested → output-available |\n * output-error | output-denied`), which is the champion's vocabulary and which\n * the live corpus already walks: `tool_started` with arguments, three\n * `tool_progress` beats under three DIFFERENT tool names, then `tool_completed`\n * with the result.\n *\n * Three things it refuses to do, each a real failure seen in the wild:\n * - it never shows a bare spinner with no name. A reader watching an agent\n * spend their money is owed the tool's name and what it is doing.\n * - it never drops the progress beats, and it keeps the SERVER's tool name per\n * beat (`web` → `web_search` → `web_research`); flattening them to the\n * call's name loses what actually ran.\n * - it never renders an error state as \"Done\".\n *\n * Lane 2B's `/tools` registry replaces this chip's BODY with a per-tool\n * renderer. The chip, its state machine and its header stay — a registry entry\n * is a richer body, not a second card. That is the `body` prop below: at the\n * lane merge `<ChatToolCard>` stopped carrying its own copy of this header and\n * became this chip with a body passed in, so the two can no longer drift in\n * markup, in state words, or in expand behaviour.\n */\n\nimport { useState, type ReactNode } from \"react\";\n\nimport type { ChatToolPart, ChatToolState } from \"../../model\";\nimport { useChatPorts } from \"../hooks\";\nimport { ChevronRightGlyph } from \"../icons\";\n\n/**\n * What the state means to a READER, not to a protocol. THE ONE TABLE: `/tools`\n * re-exports this rather than restating it, because a tool that reads \"Done\" in\n * one card and \"Completed\" in another is drift nobody notices for a month.\n */\nexport const CHAT_TOOL_STATE_LABEL: Record<ChatToolState, string> = {\n \"input-streaming\": \"Preparing\",\n \"input-available\": \"Running\",\n \"approval-requested\": \"Needs your approval\",\n \"output-available\": \"Done\",\n \"output-error\": \"Failed\",\n \"output-denied\": \"Declined\",\n};\n\nfunction formatPayload(value: unknown): string {\n if (value === undefined) return \"\";\n if (typeof value === \"string\") return value;\n try {\n return JSON.stringify(value, null, 2);\n } catch {\n // A payload with a cycle or a BigInt still has to say something.\n return String(value);\n }\n}\n\nexport interface ChatToolChipProps {\n part: ChatToolPart;\n /** From `features.expandToolCardsByDefault`. */\n defaultExpanded: boolean;\n /**\n * Replace what the chip shows when it is open. This is the ONE seam `/tools`\n * uses: a registered renderer is a richer BODY under the same header, the\n * same state words and the same expand behaviour — never a second card.\n * Absent ⇒ the chip's own body (arguments, progress beats, error, result).\n */\n body?: ReactNode | undefined;\n /** Diagnostic marker for the surrounding element, e.g. which renderer drew\n * the body. Read by tests and by the census; never shown to a reader. */\n rendererTag?: string | undefined;\n}\n\nexport function ChatToolChip(props: ChatToolChipProps): ReactNode {\n const { part, defaultExpanded, body } = props;\n const [expanded, setExpanded] = useState(defaultExpanded);\n\n const { toolLabel } = useChatPorts();\n const latest = part.progress[part.progress.length - 1];\n const input = formatPayload(part.input);\n const output = formatPayload(part.output);\n const stateLabel = CHAT_TOOL_STATE_LABEL[part.state];\n // THE HEADER SAYS EACH THING ONCE. Servers send a completion beat whose\n // whole content is the word the state column already carries (\"Done\"), and\n // the chip read \"Done Done\" in front of a Creator (live review 2026-09-18).\n // The beat is not thrown away — it stays in the body, under Progress.\n const beat =\n latest !== undefined &&\n latest.message !== \"\" &&\n latest.message.trim().toLowerCase() !== stateLabel.toLowerCase()\n ? latest.message\n : null;\n const hasBody =\n input !== \"\" || output !== \"\" || part.errorText !== null || part.progress.length > 0;\n\n return (\n <div\n className=\"mx-chat-tool\"\n data-state={part.state}\n data-tool={part.toolName}\n {...(props.rendererTag === undefined\n ? {}\n : { \"data-mx-chat-tool-renderer\": props.rendererTag })}\n >\n <button\n type=\"button\"\n className=\"mx-chat-tool__header mx-chat-focusable\"\n aria-expanded={expanded}\n // A chip with nothing to show still toggles rather than sitting there\n // looking disabled (Law 4) — it says so in the body instead.\n onClick={() => setExpanded((open) => !open)}\n >\n <span data-open={expanded} className=\"mx-chat-chevron-wrap\">\n <ChevronRightGlyph />\n </span>\n {/* WHAT IS HAPPENING, never the identifier — `toolLabel` is the port\n and `data-tool` above keeps the machine name for the machines. */}\n <span className=\"mx-chat-tool__name\">{toolLabel(part.toolName)}</span>\n {beat === null ? null : <span className=\"mx-chat-tool__beat\">{beat}</span>}\n <span className=\"mx-chat-tool__state\">{stateLabel}</span>\n </button>\n\n {expanded ? (\n body !== undefined ? (\n body\n ) : (\n <div className=\"mx-chat-tool__body\">\n {input !== \"\" ? (\n <>\n <span className=\"mx-chat-tool__label\">What it was asked</span>\n <pre className=\"mx-chat-tool__payload\">{input}</pre>\n </>\n ) : null}\n\n {part.progress.length > 0 ? (\n <>\n <span className=\"mx-chat-tool__label\">Progress</span>\n <ul className=\"mx-chat-tool__progress\">\n {part.progress.map((beat, index) => (\n <li key={`${beat.toolName}-${index}`}>\n <span data-tool-beat={beat.toolName}>{beat.toolName}</span>\n {beat.message === \"\" ? null : ` — ${beat.message}`}\n {beat.percent === null ? null : ` (${Math.round(beat.percent)}%)`}\n </li>\n ))}\n </ul>\n </>\n ) : null}\n\n {part.errorText !== null ? (\n <>\n <span className=\"mx-chat-tool__label\">What went wrong</span>\n <p className=\"mx-chat-failure__sentence\">{part.errorText}</p>\n </>\n ) : null}\n\n {output !== \"\" ? (\n <>\n <span className=\"mx-chat-tool__label\">What it returned</span>\n <pre className=\"mx-chat-tool__payload\">{output}</pre>\n </>\n ) : null}\n\n {hasBody ? null : (\n <span className=\"mx-chat-standin\">\n {part.state === \"input-streaming\"\n ? \"This tool has not said what it is doing yet.\"\n : \"This tool ran without reporting any details.\"}\n </span>\n )}\n </div>\n )\n ) : null}\n </div>\n );\n}\n","/**\n * THE BASE HOOKS — shared scaffolding, layer 3 of the design.\n *\n * All four read the kernel through `useSyncExternalStore`, which is the shape\n * the champion (`@ai-sdk/react`) proved and the reason the store was written as\n * `getSnapshot`/`subscribe` in phase 1. Nothing here holds a second copy of\n * thread state: a hook that mirrors the store into `useState` tears under\n * concurrent rendering and drifts the moment the host mutates the store from\n * outside React.\n *\n * `useChatMessage(id)` is the performance seam that makes a 2,000-token answer\n * possible: it subscribes to ONE message, so a streaming bubble re-renders\n * while the other 200 rows do not.\n */\n\nimport {\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n useSyncExternalStore,\n type KeyboardEvent as ReactKeyboardEvent,\n} from \"react\";\n\nimport type { ChatFeatures } from \"../config\";\nimport type { ChatMessage, ChatThreadSnapshot } from \"../model\";\nimport { messageText } from \"../model\";\nimport type { ChatSendResult } from \"../store\";\nimport { useChatContext } from \"./provider\";\nimport type { ChatReactPorts } from \"./ports\";\nimport type { ChatSlots } from \"./slots\";\n\nexport interface UseChatThreadResult {\n snapshot: ChatThreadSnapshot;\n messages: readonly ChatMessage[];\n status: ChatThreadSnapshot[\"status\"];\n /** True while a turn is in flight — the ONE test a stop button uses. */\n isBusy: boolean;\n conversationId: string | null;\n ephemeral: boolean;\n ephemeralReason: string | null;\n error: ChatThreadSnapshot[\"error\"];\n send(text: string, fileIds?: readonly string[]): Promise<ChatSendResult>;\n cancel(): Promise<void>;\n}\n\n/** The whole thread. Use `useChatMessage` for a row — not this. */\nexport function useChatThread(): UseChatThreadResult {\n const { thread } = useChatContext();\n const snapshot = useSyncExternalStore(\n thread.subscribe,\n thread.getSnapshot,\n thread.getSnapshot,\n );\n\n const send = useCallback(\n (text: string, fileIds?: readonly string[]) =>\n thread.send(fileIds === undefined ? { text } : { text, fileIds }),\n [thread],\n );\n const cancel = useCallback(() => thread.cancel(), [thread]);\n\n return useMemo(\n () => ({\n snapshot,\n messages: snapshot.messages,\n status: snapshot.status,\n isBusy: snapshot.status === \"submitted\" || snapshot.status === \"streaming\",\n conversationId: snapshot.conversationId,\n ephemeral: snapshot.ephemeral,\n ephemeralReason: snapshot.ephemeralReason,\n error: snapshot.error,\n send,\n cancel,\n }),\n [snapshot, send, cancel],\n );\n}\n\n/**\n * ONE message, on its own subscription.\n *\n * Returns `undefined` for an id the thread does not hold — a row that was\n * removed while its component was unmounting is ordinary, not an error.\n */\nexport function useChatMessage(messageId: string): ChatMessage | undefined {\n const { thread } = useChatContext();\n\n const subscribe = useCallback(\n (listener: () => void) => thread.subscribeToMessage(messageId, listener),\n [thread, messageId],\n );\n const getSnapshot = useCallback(\n () => thread.getMessageSnapshot(messageId),\n [thread, messageId],\n );\n\n return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);\n}\n\n/** The resolved knobs (platform → org → surface → user), from the kernel. */\nexport function useChatConfig(): ChatFeatures {\n return useChatContext().thread.features;\n}\n\n/** The React ports, each already defaulted by the provider. */\nexport function useChatPorts(): ChatReactPorts {\n return useChatContext().ports;\n}\n\n/** The slot map. Empty object when the host passed none. */\nexport function useChatSlots(): ChatSlots {\n return useChatContext().slots;\n}\n\nexport interface UseChatComposerStateResult {\n text: string;\n setText(next: string): void;\n /** False when the box is blank, or while a turn is in flight unless\n * `features.sendWhileBusy` (the host queues). */\n canSend: boolean;\n isBusy: boolean;\n send(): Promise<ChatSendResult | null>;\n stop(): Promise<void>;\n /**\n * The keyboard contract, decided by `features.sendKey`: Enter sends and\n * Shift+Enter newlines, or Cmd/Ctrl+Enter sends and Enter newlines. Esc\n * ALWAYS stops a running answer. Wire this to the input's `onKeyDown`.\n */\n onKeyDown(event: ReactKeyboardEvent): void;\n /** True when a failed turn just handed its words back. Clears on the next\n * edit, so a composer can flash the box once without it sticking. */\n restoredFromFailure: boolean;\n}\n\nconst DRAFT_PREFIX = \"ai-matrx.chat.draft.\";\n\n/**\n * COMPOSER STATE — the logic half, with no opinion about pixels.\n *\n * Lane 2B renders this. It lives in shared scaffolding rather than in 2B\n * because 2A needs one half of it TODAY: a failed turn's \"Try again\" hands the\n * reader's unsent words back through the retry bus, and there has to be exactly\n * one place that catches them. Two sources of composer state is how a draft\n * gets lost.\n *\n * Drafts survive reload when `features.retainDrafts` is on, keyed per\n * conversation, through the `prefs` port — which already announces itself when\n * it is memory-only.\n */\nexport function useChatComposerState(): UseChatComposerStateResult {\n const { thread, ports, retry } = useChatContext();\n const features = thread.features;\n const snapshot = useSyncExternalStore(\n thread.subscribe,\n thread.getSnapshot,\n thread.getSnapshot,\n );\n const conversationId = snapshot.conversationId;\n const isBusy = snapshot.status === \"submitted\" || snapshot.status === \"streaming\";\n\n const draftKey = `${DRAFT_PREFIX}${conversationId ?? \"new\"}`;\n const [text, setTextState] = useState<string>(() =>\n features.retainDrafts ? (ports.prefs.get(draftKey) ?? \"\") : \"\",\n );\n const [restoredFromFailure, setRestored] = useState(false);\n\n // The draft key changes when the conversation does — including the moment a\n // NEW conversation learns its server id mid-send. Carrying the in-progress\n // text across that rename is the difference between a draft that survives and\n // one that vanishes the first time someone types during the first turn.\n const keyRef = useRef(draftKey);\n useEffect(() => {\n if (keyRef.current === draftKey) return;\n const previousKey = keyRef.current;\n keyRef.current = draftKey;\n if (!features.retainDrafts) return;\n const carried = ports.prefs.get(previousKey);\n if (carried !== null && carried !== \"\") {\n ports.prefs.set(draftKey, carried);\n ports.prefs.remove(previousKey);\n setTextState(carried);\n return;\n }\n setTextState(ports.prefs.get(draftKey) ?? \"\");\n }, [draftKey, features.retainDrafts, ports.prefs]);\n\n const setText = useCallback(\n (next: string) => {\n setTextState(next);\n setRestored(false);\n if (!features.retainDrafts) return;\n if (next === \"\") ports.prefs.remove(keyRef.current);\n else ports.prefs.set(keyRef.current, next);\n },\n [features.retainDrafts, ports.prefs],\n );\n\n // Catch the words a failed turn hands back. Registered here and NOWHERE else,\n // so \"Try again\" has exactly one destination.\n useEffect(\n () =>\n retry.subscribe((restored) => {\n setTextState(restored);\n setRestored(true);\n if (features.retainDrafts) ports.prefs.set(keyRef.current, restored);\n }),\n [retry, features.retainDrafts, ports.prefs],\n );\n\n const send = useCallback(async (): Promise<ChatSendResult | null> => {\n const body = text.trim();\n if (body === \"\" || (isBusy && !features.sendWhileBusy)) return null;\n // The box is cleared OPTIMISTICALLY and the draft with it; if the kernel\n // refuses the send, the words come straight back rather than being lost.\n setTextState(\"\");\n setRestored(false);\n if (features.retainDrafts) ports.prefs.remove(keyRef.current);\n const result = await thread.send({ text: body });\n if (!result.accepted) {\n setTextState(body);\n if (features.retainDrafts) ports.prefs.set(keyRef.current, body);\n }\n return result;\n }, [text, isBusy, thread, features.retainDrafts, features.sendWhileBusy, ports.prefs]);\n\n const stop = useCallback(() => thread.cancel(), [thread]);\n\n const onKeyDown = useCallback(\n (event: ReactKeyboardEvent) => {\n if (event.key === \"Escape\") {\n if (!isBusy) return;\n event.preventDefault();\n void thread.cancel();\n return;\n }\n if (event.key !== \"Enter\") return;\n const withModifier = event.metaKey || event.ctrlKey;\n const sends =\n features.sendKey === \"enter\"\n ? !event.shiftKey && !withModifier\n : withModifier;\n if (!sends) return;\n event.preventDefault();\n void send();\n },\n [features.sendKey, isBusy, send, thread],\n );\n\n return {\n text,\n setText,\n canSend: text.trim() !== \"\" && (!isBusy || features.sendWhileBusy),\n isBusy,\n send,\n stop,\n onKeyDown,\n restoredFromFailure,\n };\n}\n\n/**\n * The text of the user turn that produced a given assistant message — what\n * \"Try again\" hands back. Exported because 2B's composer and 2A's failure card\n * must agree on what \"the unsent text\" means.\n */\nexport function precedingUserText(\n messages: readonly ChatMessage[],\n messageId: string,\n): string {\n const index = messages.findIndex((message) => message.id === messageId);\n if (index <= 0) return \"\";\n for (let cursor = index - 1; cursor >= 0; cursor -= 1) {\n const candidate = messages[cursor];\n if (candidate && candidate.role === \"user\") return messageText(candidate);\n }\n return \"\";\n}\n","/**\n * `<ChatProvider>` — the ONE context every lane reads. Shared scaffolding.\n *\n * It carries three things and decides nothing else:\n * 1. THE THREAD STORE — the kernel's `ChatThreadStore`, or anything else with\n * that shape, which is exactly what `@ai-matrx/chat/external-store`\n * returns. That is why the prop is typed as the store interface and not as\n * a config object: a host whose state already lives in Redux or behind an\n * MV3 relay mounts the SAME provider, and the strangler in design §9 works\n * because of this one line.\n * 2. THE REACT PORTS — `renderContent`, `notifier`, `prefs`, `files` and\n * `voice`, each with a working default (THE ALL-INCLUSIVE LAW). The\n * `renderContent` default is the REAL one — `createChatContentRenderer`,\n * markdown plus content-IR kind routing — not the plain-text floor. A host\n * that mounts nothing gets formatted answers, which is what \"drop-in\"\n * means; `createPlainTextContentRenderer` stays exported as the\n * zero-dependency floor for a host that cannot take content-ir at all.\n * 3. THE SLOTS — the per-lane slot map.\n *\n * The knobs are NOT carried here: they are resolved in the kernel and read off\n * `thread.features`, so a knob has one resolution site and a host cannot end up\n * with a composer that thinks Enter sends and a transcript that does not.\n */\n\nimport {\n createContext,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n type ReactNode,\n} from \"react\";\n\nimport type { ChatThreadStore } from \"../store\";\nimport type { ChatNotifierPort } from \"../ports\";\nimport { createConsoleNotifier, createWebPrefs } from \"../ports\";\nimport { createChatContentRenderer } from \"./composer/content-default\";\nimport { createUnavailableFilesPort } from \"./composer/files\";\nimport type { ChatReactPortOverrides, ChatReactPorts } from \"./ports\";\nimport { humanizeToolName } from \"./ports\";\nimport type { ChatSlots } from \"./slots\";\n\n/**\n * THE RETRY BUS.\n *\n * A failed turn's \"Try again\" must hand the reader's unsent words BACK to the\n * composer — retyping a paragraph the product lost is the cheapest possible\n * insult. The transcript (2A) and the composer (2B) are different lanes and\n * different components, so the handoff is a tiny subscribable rather than a\n * prop drilled between them.\n *\n * It is also the reason this is not a plain callback: when NOTHING is listening\n * — a transcript mounted with no composer, which is a legitimate embedding —\n * the words would vanish silently. Instead the bus says so, with the remedy.\n */\nexport interface ChatRetryBus {\n /** Hand text back to the composer. Returns false when nobody took it. */\n request(text: string): boolean;\n subscribe(listener: (text: string) => void): () => void;\n}\n\nexport function createChatRetryBus(notifier: ChatNotifierPort): ChatRetryBus {\n const listeners = new Set<(text: string) => void>();\n return {\n request(text) {\n if (listeners.size === 0) {\n notifier.notify({\n level: \"warning\",\n message:\n \"There is nowhere to put your message back, so it has not been restored for you.\",\n remedy:\n \"Copy your message from the conversation above and send it again, or mount this transcript inside a chat that has a message box.\",\n });\n return false;\n }\n for (const listener of listeners) listener(text);\n return true;\n },\n subscribe(listener) {\n listeners.add(listener);\n return () => {\n listeners.delete(listener);\n };\n },\n };\n}\n\nexport interface ChatContextValue {\n thread: ChatThreadStore;\n ports: ChatReactPorts;\n slots: ChatSlots;\n retry: ChatRetryBus;\n}\n\nconst ChatContext = createContext<ChatContextValue | null>(null);\n\nexport interface ChatProviderProps {\n /**\n * The kernel store (`createChatThread`) or a host-owned source\n * (`createExternalThreadSource`). Both satisfy this interface — that is the\n * whole point of the interface.\n */\n thread: ChatThreadStore;\n ports?: ChatReactPortOverrides | undefined;\n slots?: ChatSlots | undefined;\n children: ReactNode;\n}\n\nexport function ChatProvider(props: ChatProviderProps): ReactNode {\n const { thread, ports, slots, children } = props;\n\n // The defaults are built ONCE per provider, not per render: the plain-text\n // renderer holds an \"already announced\" flag and the prefs port probes\n // localStorage,\n // and rebuilding either per render would re-announce forever and re-probe on\n // every keystroke.\n const [defaults] = useState(() => {\n const notifier = createConsoleNotifier();\n return { notifier, prefs: createWebPrefs(notifier) };\n });\n\n const notifier = ports?.notifier ?? defaults.notifier;\n\n // The retry bus AND the default content renderer are both keyed to the\n // EFFECTIVE notifier, not to the fallback one. A host that injects a notifier\n // and then never hears \"your markdown is not being formatted\" or \"there is\n // nowhere to put your message back\" has a silent failure the injection was\n // supposed to prevent — that is the bug this keying exists to stop.\n const keyedRef = useRef<{\n notifier: ChatNotifierPort;\n bus: ChatRetryBus;\n renderContent: ChatReactPorts[\"renderContent\"];\n files: ChatReactPorts[\"files\"];\n } | null>(null);\n if (keyedRef.current === null || keyedRef.current.notifier !== notifier) {\n keyedRef.current = {\n notifier,\n bus: createChatRetryBus(notifier),\n renderContent: createChatContentRenderer({ notifier }),\n // The stand-in holds an \"already announced\" flag, so it is built ONCE:\n // rebuilding it per render would re-refuse out loud on every keystroke.\n files: createUnavailableFilesPort(notifier),\n };\n }\n const retry = keyedRef.current.bus;\n const defaultRenderContent = keyedRef.current.renderContent;\n const defaultFiles = keyedRef.current.files;\n\n const value = useMemo<ChatContextValue>(\n () => ({\n thread,\n ports: {\n renderContent: ports?.renderContent ?? defaultRenderContent,\n notifier,\n prefs: ports?.prefs ?? defaults.prefs,\n files: ports?.files ?? defaultFiles,\n // `null` is a REAL answer here (\"this surface has no voice\"), so it is\n // only defaulted when the key is absent entirely.\n voice: ports?.voice ?? null,\n toolLabel: ports?.toolLabel ?? humanizeToolName,\n // `null` is a REAL answer here too (\"this surface does not choose a\n // model\"), so it is only defaulted when the key is absent entirely —\n // and the default is nothing drawn, never a dead control.\n modelPicker: ports?.modelPicker ?? null,\n // Same rule: `null` is the real answer \"this surface offers no chips\",\n // and the control row is then ABSENT rather than an empty band.\n quickset: ports?.quickset ?? null,\n },\n slots: slots ?? {},\n retry,\n }),\n [\n thread,\n ports?.renderContent,\n ports?.prefs,\n ports?.files,\n ports?.voice,\n ports?.toolLabel,\n ports?.modelPicker,\n ports?.quickset,\n notifier,\n slots,\n retry,\n defaultRenderContent,\n defaultFiles,\n defaults.prefs,\n ],\n );\n\n // A thread the provider outlives must not keep its timers and its in-flight\n // turn running. The provider does NOT dispose a thread it did not create —\n // the host owns that lifecycle — but it does warn when a thread is swapped\n // mid-stream, because the abandoned turn keeps billing.\n const previous = useRef(thread);\n useEffect(() => {\n if (previous.current === thread) return;\n const status = previous.current.getSnapshot().status;\n if (status === \"streaming\" || status === \"submitted\") {\n notifier.notify({\n level: \"warning\",\n message: \"The previous answer was still arriving when this chat switched conversations.\",\n remedy: \"Stop the answer before switching, or the run keeps going in the background.\",\n });\n }\n previous.current = thread;\n }, [thread, notifier]);\n\n return <ChatContext.Provider value={value}>{children}</ChatContext.Provider>;\n}\n\n/**\n * The context, or a THROWN error naming what is missing. A hook that returns a\n * silent `null` here produces a blank transcript with no explanation, which is\n * the failure mode Law 4 exists to close — and the stack trace is the remedy.\n */\nexport function useChatContext(): ChatContextValue {\n const value = useContext(ChatContext);\n if (value === null) {\n throw new Error(\n \"[@ai-matrx/chat] This component must be rendered inside <ChatProvider thread={…}>. Wrap your chat surface in one, passing a thread from createChatThread() or createExternalThreadSource().\",\n );\n }\n return value;\n}\n","/**\n * PACKAGE-OWNED GLYPHS. Two of them, inline, sized in `em`, `currentColor`.\n *\n * Deliberately NOT a dependency on `@ai-matrx/icons`: two 200-byte paths do not\n * justify an edge in the sibling graph, and an icon that inherits colour and\n * size from its button is exactly what the re-skin contract needs. Lanes that\n * need a real icon set (the composer's attach/mic/send) take the dependency\n * then, at their own call site.\n */\n\nimport type { ReactNode } from \"react\";\n\nexport function ChevronRightGlyph(): ReactNode {\n return (\n <svg\n className=\"mx-chat-chevron\"\n width=\"1em\"\n height=\"1em\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.75\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n <path d=\"M6 3.5 10.5 8 6 12.5\" />\n </svg>\n );\n}\n\nexport function ArrowDownGlyph(): ReactNode {\n return (\n <svg\n width=\"1em\"\n height=\"1em\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.75\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n <path d=\"M8 3v10M3.5 8.5 8 13l4.5-4.5\" />\n </svg>\n );\n}\n","/**\n * `<ChatToolCard>` and the slot that mounts it.\n *\n * 🚨 HOW THIS REACHES THE TRANSCRIPT WITHOUT TOUCHING IT. Lane 2A's\n * `<ChatToolChip>` is finished and pushed, and the lane contract forbids 2B\n * editing it. The transcript already ships the seam this needs:\n * `slots.renderPart` takes ONE part and may return `undefined` to fall through\n * to the package's own renderer. So:\n *\n * - a tool with NOTHING registered → the slot returns `undefined` and the\n * reader gets lane 2A's chip, byte for byte. Zero divergence on the path\n * every tool takes today.\n * - a tool WITH a renderer → this card, which keeps the chip's markup, its\n * state vocabulary and its expand behaviour, and swaps only the body.\n *\n * ✅ DEVIATION CLOSED AT THE LANE MERGE. This card used to carry its own copy\n * of the chip's header — ~20 duplicated lines, kept honest only by a test that\n * compared the two state tables. Lane 2A's chip now takes a `body` prop, so\n * this component IS that chip with a body passed in. There is one header, one\n * state table, one expand behaviour, and drift is no longer possible rather\n * than merely detectable.\n */\n\nimport { type ReactNode } from \"react\";\n\nimport type { ChatPart, ChatToolPart, ChatToolState } from \"../../model\";\nimport type { ChatPartContext } from \"../transcript/slots\";\nimport { CHAT_TOOL_STATE_LABEL, ChatToolChip } from \"../transcript/tool-chip\";\nimport { ChatToolGenericBody } from \"./generic-body\";\nimport {\n ChatToolBodyBoundary,\n type ChatToolRenderProps,\n type ChatToolRendererRegistry,\n} from \"./registry\";\n\n/**\n * The reader's words for each state — lane 2A's table, re-exported under the\n * name `/tools` publishes. Not a copy: the same object.\n */\nexport const TOOL_STATE_LABEL: Record<ChatToolState, string> = CHAT_TOOL_STATE_LABEL;\n\nconst TERMINAL: ReadonlySet<ChatToolState> = new Set<ChatToolState>([\n \"output-available\",\n \"output-error\",\n \"output-denied\",\n]);\n\nexport function toolRenderProps(part: ChatToolPart): ChatToolRenderProps {\n return {\n part,\n input: part.input,\n output: part.output,\n state: part.state,\n errorText: part.errorText,\n running: !TERMINAL.has(part.state),\n };\n}\n\nexport interface ChatToolCardProps {\n part: ChatToolPart;\n defaultExpanded: boolean;\n registry: ChatToolRendererRegistry;\n onRendererError?: ((error: Error) => void) | undefined;\n}\n\nexport function ChatToolCard(props: ChatToolCardProps): ReactNode {\n const { part, registry } = props;\n const Renderer = registry.lookup(part.toolName);\n const renderProps = toolRenderProps(part);\n\n const body =\n Renderer === undefined ? (\n <ChatToolGenericBody {...renderProps} />\n ) : (\n <ChatToolBodyBoundary\n toolName={part.toolName}\n fallback={<ChatToolGenericBody {...renderProps} />}\n {...(props.onRendererError === undefined\n ? {}\n : { onError: props.onRendererError })}\n >\n <Renderer {...renderProps} />\n </ChatToolBodyBoundary>\n );\n\n return (\n <ChatToolChip\n part={part}\n defaultExpanded={props.defaultExpanded}\n body={body}\n rendererTag={Renderer === undefined ? \"generic\" : \"registered\"}\n />\n );\n}\n\n/**\n * Build the `renderPart` slot that mounts this registry.\n *\n * ```tsx\n * <ChatProvider thread={thread} slots={{ ...createToolRendererSlot(registry) }}>\n * ```\n *\n * Returning `undefined` for everything else is load-bearing: the transcript's\n * fall-through is what keeps a host's tool registry from silently blanking a\n * part type it never thought about.\n */\nexport function createToolRendererSlot(\n registry: ChatToolRendererRegistry,\n options: {\n defaultExpanded?: boolean | undefined;\n onRendererError?: ((error: Error) => void) | undefined;\n } = {},\n): {\n renderPart(part: ChatPart, context: ChatPartContext): ReactNode | undefined;\n} {\n return {\n renderPart(part) {\n if (part.type !== \"tool\") return undefined;\n if (registry.lookup(part.toolName) === undefined) return undefined;\n return (\n <ChatToolCard\n part={part}\n registry={registry}\n defaultExpanded={options.defaultExpanded ?? false}\n {...(options.onRendererError === undefined\n ? {}\n : { onRendererError: options.onRendererError })}\n />\n );\n },\n };\n}\n"],"mappings":"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","names":["jsx","jsxs","useState","useEffect","useMemo","useRef","useState","jsx","jsx","Fragment","jsx","jsxs","useState","beat","jsx"]}
|
|
1
|
+
{"version":3,"sources":["../src/compat/react/tools/registry.tsx","../src/compat/react/tools/generic-body.tsx","../src/compat/react/transcript/tool-chip.tsx","../src/compat/react/hooks.ts","../src/compat/react/provider.tsx","../src/compat/react/composer/content-default.tsx","../src/compat/react/composer/markdown.tsx","../src/compat/react/composer/files.ts","../src/compat/react/ports.ts","../src/compat/react/icons.tsx","../src/compat/react/tools/card.tsx"],"sourcesContent":["/**\n * THE TOOL-RENDERER REGISTRY — `@ai-matrx/chat/tools`, lane 2B.\n *\n * Ported from `matrx-extend/src/features/chat/tool-display/`, which is the best\n * tool-call UI on the platform (93 registered tools, ~3,900 lines) and the\n * reason the design names it the port source. What is taken is its SHAPE and\n * the two decisions it earned the hard way:\n *\n * 1. **Exact-name lookup, one map, two tiers.** A component for a tool that\n * needs one; a declarative description for the ninety that do not. A\n * `switch` on tool name scattered through a transcript is the defect the\n * canonical-chat guard exists to catch.\n * 2. **A registered renderer that throws DEGRADES, it does not take the\n * transcript down.** Extend wraps every custom render in an error boundary\n * whose fallback is the generic row. A tool card is the least trustworthy\n * component in a chat — it renders arbitrary server JSON — so its failure\n * must cost the reader one card, never the answer they were reading.\n *\n * WHAT IS NOT TAKEN: its 93 Chrome-specific entries (they are content, not\n * code, and they belong to that surface), its `@/lib/utils`/Zustand coupling,\n * and its header. **A renderer here replaces the chip's BODY.** The chip, its\n * header and the kernel's state machine are lane 2A's and stay exactly as they\n * are — a registry entry is a richer body, not a second card.\n */\n\nimport { Component, type ComponentType, type ErrorInfo, type ReactNode } from \"react\";\n\nimport type { ChatToolPart, ChatToolState } from \"../../model\";\n\n/** What a tool renderer is handed. Everything it could need, nothing host-shaped. */\nexport interface ChatToolRenderProps {\n part: ChatToolPart;\n /** `part.input`, hoisted because it is what 90% of renderers read first. */\n input: unknown;\n output: unknown;\n state: ChatToolState;\n /** Present only in `output-error`. */\n errorText: string | null;\n /** True while the call has not reached a terminal state. */\n running: boolean;\n}\n\nexport type ChatToolRenderer = ComponentType<ChatToolRenderProps>;\n\nexport interface ChatToolRendererRegistry {\n register(toolName: string, renderer: ChatToolRenderer): void;\n /** Register the same renderer under several server names (`web`, `web_search`). */\n registerAll(toolNames: readonly string[], renderer: ChatToolRenderer): void;\n lookup(toolName: string): ChatToolRenderer | undefined;\n /** Every registered name, sorted. The census a guard can read. */\n names(): string[];\n}\n\nexport function createToolRendererRegistry(\n seed: Readonly<Record<string, ChatToolRenderer>> = {},\n): ChatToolRendererRegistry {\n const map = new Map<string, ChatToolRenderer>(Object.entries(seed));\n return {\n register(toolName, renderer) {\n map.set(toolName, renderer);\n },\n registerAll(toolNames, renderer) {\n for (const name of toolNames) map.set(name, renderer);\n },\n lookup(toolName) {\n return map.get(toolName);\n },\n names() {\n return [...map.keys()].sort();\n },\n };\n}\n\n/**\n * THE BOUNDARY. A renderer that throws costs the reader one BODY, and the\n * fallback is the generic body — which by construction cannot itself fail.\n * The failure is also REPORTED, with the tool's name, because a card that\n * quietly degrades for a week is a defect nobody ever sees.\n */\nexport class ChatToolBodyBoundary extends Component<\n {\n toolName: string;\n fallback: ReactNode;\n onError?: ((error: Error, info: ErrorInfo) => void) | undefined;\n children: ReactNode;\n },\n { failed: boolean }\n> {\n override state = { failed: false };\n\n static getDerivedStateFromError(): { failed: boolean } {\n return { failed: true };\n }\n\n override componentDidCatch(error: Error, info: ErrorInfo): void {\n this.props.onError?.(error, info);\n }\n\n override render(): ReactNode {\n if (this.state.failed) {\n return (\n <div className=\"mx-chat-tool__body\" data-mx-chat-tool-body=\"degraded\">\n <span className=\"mx-chat-standin\">\n {`The custom view for ${this.props.toolName} could not be drawn, so this is the plain version of what it did.`}\n </span>\n {this.props.fallback}\n </div>\n );\n }\n return this.props.children;\n }\n}\n","/**\n * THE GENERIC TOOL BODY — the floor that can never fail.\n *\n * Every branch here is defensive on purpose. This renders arbitrary JSON that a\n * model asked a server to produce: it can be a 4 MB string, a cyclic object, a\n * BigInt, `undefined`, or an array of nulls. The extend registry's default row\n * is the reference, and its two survival rules are kept verbatim in spirit:\n *\n * - `JSON.stringify` is ALWAYS inside a try/catch, falling back to `String()`.\n * A cycle or a BigInt throws, and an uncaught throw here is a blank\n * transcript.\n * - a long payload is CLIPPED VISUALLY (a scrolling `<pre>`), not truncated\n * silently. A reader who is shown 80 of 4,000 characters with no sign that\n * there are more has been lied to; when this body does cut a string it says\n * how much it cut.\n *\n * It also produces the one-line summary the extend row leads with — the first\n * recognisable field (`url`, `query`, `text`, `question`, `reason`, `path`,\n * `selector`), or the first few keys — because a chip that says only\n * \"web_search: Running\" tells a reader watching their money being spent\n * nothing at all.\n */\n\nimport type { ReactNode } from \"react\";\n\nimport { formatCount } from \"@ai-matrx/kit/format\";\n\nimport type { ChatToolRenderProps } from \"./registry\";\n\n/** Above this many characters a payload is cut, and the cut is NAMED. */\nexport const PAYLOAD_CLIP_CHARS = 20_000;\n\nexport function safeStringify(value: unknown): string {\n if (value === undefined) return \"\";\n if (typeof value === \"string\") return value;\n try {\n const out = JSON.stringify(value, null, 2);\n return out === undefined ? String(value) : out;\n } catch {\n // A cycle, a BigInt, a getter that throws — the payload still has to say\n // something, and `String()` cannot throw for these.\n try {\n return String(value);\n } catch {\n return \"(this value cannot be displayed)\";\n }\n }\n}\n\nexport function summarizeToolInput(input: unknown): string | null {\n if (input === null || input === undefined) return null;\n if (typeof input === \"string\") return clipLine(input);\n if (typeof input !== \"object\") return String(input);\n if (Array.isArray(input)) return `${input.length} item${input.length === 1 ? \"\" : \"s\"}`;\n const record = input as Record<string, unknown>;\n for (const key of [\"url\", \"query\", \"q\", \"text\", \"question\", \"reason\", \"path\", \"selector\", \"name\"]) {\n const value = record[key];\n if (typeof value === \"string\" && value !== \"\") return clipLine(value);\n }\n const keys = Object.keys(record);\n if (keys.length === 0) return null;\n return keys.slice(0, 3).join(\", \");\n}\n\nfunction clipLine(text: string): string {\n return text.length > 96 ? `${text.slice(0, 96)}…` : text;\n}\n\n/* ------------------------------------------------- the shape-detected tier -- */\n\nexport interface ToolResultLink {\n title: string;\n url: string;\n snippet: string | null;\n}\n\n/**\n * THE ONE UPGRADE OVER RAW JSON THAT NEEDS NO TOOL NAME.\n *\n * Most of extend's 93 entries exist to turn one shape — a list of results with\n * a title and a URL — into something a person can click. That shape is\n * recognisable from the VALUE, so the package gets the benefit for every tool\n * that has ever returned it, including tools nobody has registered and tools\n * that do not exist yet. A registry entry keyed on a tool name can only ever\n * help the tools someone remembered to name.\n *\n * It is deliberately strict: every element must carry a http(s) URL and a\n * non-empty title, or the whole thing falls back to JSON. A half-detected list\n * that drops the fields it did not understand is worse than the JSON.\n */\nexport function detectResultLinks(value: unknown): ToolResultLink[] | null {\n const candidate = Array.isArray(value)\n ? value\n : value !== null && typeof value === \"object\"\n ? ([\"results\", \"items\", \"links\", \"sources\"] as const)\n .map((key) => (value as Record<string, unknown>)[key])\n .find((entry) => Array.isArray(entry))\n : undefined;\n if (!Array.isArray(candidate) || candidate.length === 0) return null;\n\n const links: ToolResultLink[] = [];\n for (const entry of candidate) {\n if (entry === null || typeof entry !== \"object\" || Array.isArray(entry)) return null;\n const record = entry as Record<string, unknown>;\n const url = record[\"url\"] ?? record[\"link\"] ?? record[\"href\"];\n const title = record[\"title\"] ?? record[\"name\"] ?? record[\"heading\"];\n if (typeof url !== \"string\" || !/^https?:\\/\\//i.test(url)) return null;\n if (typeof title !== \"string\" || title.trim() === \"\") return null;\n const snippet = record[\"snippet\"] ?? record[\"description\"] ?? record[\"summary\"];\n links.push({\n title,\n url,\n snippet: typeof snippet === \"string\" && snippet !== \"\" ? snippet : null,\n });\n }\n return links;\n}\n\nfunction ResultLinks(props: { links: readonly ToolResultLink[] }): ReactNode {\n return (\n <ul className=\"mx-chat-tool__links\">\n {props.links.map((link, index) => (\n <li key={`${link.url}-${index}`}>\n <a href={link.url} target=\"_blank\" rel=\"noreferrer noopener\">\n {link.title}\n </a>\n {link.snippet === null ? null : (\n <span className=\"mx-chat-tool__snippet\">{link.snippet}</span>\n )}\n </li>\n ))}\n </ul>\n );\n}\n\nfunction Payload(props: { label: string; value: unknown }): ReactNode {\n const body = safeStringify(props.value);\n if (body === \"\") return null;\n const clipped = body.length > PAYLOAD_CLIP_CHARS;\n return (\n <>\n <span className=\"mx-chat-tool__label\">{props.label}</span>\n <pre className=\"mx-chat-tool__payload\">\n {clipped ? body.slice(0, PAYLOAD_CLIP_CHARS) : body}\n </pre>\n {clipped ? (\n <span className=\"mx-chat-standin\">\n {`Showing the first ${formatCount(PAYLOAD_CLIP_CHARS)} characters of ${formatCount(body.length)}.`}\n </span>\n ) : null}\n </>\n );\n}\n\n/**\n * The body a tool gets when nothing is registered for it, and the fallback\n * when a registered renderer throws.\n */\nexport function ChatToolGenericBody(props: ChatToolRenderProps): ReactNode {\n const summary = summarizeToolInput(props.input);\n const links = detectResultLinks(props.output);\n const hasAnything =\n summary !== null ||\n props.input !== undefined ||\n props.output !== undefined ||\n props.errorText !== null ||\n props.part.progress.length > 0;\n\n return (\n <div className=\"mx-chat-tool__body\" data-mx-chat-tool-body=\"generic\">\n {summary === null ? null : (\n <p className=\"mx-chat-tool__summary\">{summary}</p>\n )}\n\n <Payload label=\"What it was asked\" value={props.input} />\n\n {props.part.progress.length > 0 ? (\n <>\n <span className=\"mx-chat-tool__label\">Progress</span>\n <ul className=\"mx-chat-tool__progress\">\n {props.part.progress.map((beat, index) => (\n <li key={`${beat.toolName}-${index}`}>\n {/* The SERVER's name per beat: it differs from the call's name\n mid-run, and flattening them loses what actually ran. */}\n <span data-tool-beat={beat.toolName}>{beat.toolName}</span>\n {beat.message === \"\" ? null : ` — ${beat.message}`}\n {beat.percent === null ? null : ` (${Math.round(beat.percent)}%)`}\n </li>\n ))}\n </ul>\n </>\n ) : null}\n\n {props.errorText === null ? null : (\n <>\n <span className=\"mx-chat-tool__label\">What went wrong</span>\n <p className=\"mx-chat-failure__sentence\">{props.errorText}</p>\n </>\n )}\n\n {links === null ? (\n <Payload label=\"What it returned\" value={props.output} />\n ) : (\n <>\n <span className=\"mx-chat-tool__label\">What it found</span>\n <ResultLinks links={links} />\n </>\n )}\n\n {hasAnything ? null : (\n <span className=\"mx-chat-standin\">\n {props.running\n ? \"This tool has not said what it is doing yet.\"\n : \"This tool ran without reporting any details.\"}\n </span>\n )}\n </div>\n );\n}\n","/**\n * THE BASIC TOOL CHIP — the transcript's floor for a tool call.\n *\n * It is driven entirely by the kernel's tool state machine\n * (`input-streaming → input-available → approval-requested → output-available |\n * output-error | output-denied`), which is the champion's vocabulary and which\n * the live corpus already walks: `tool_started` with arguments, three\n * `tool_progress` beats under three DIFFERENT tool names, then `tool_completed`\n * with the result.\n *\n * Three things it refuses to do, each a real failure seen in the wild:\n * - it never shows a bare spinner with no name. A reader watching an agent\n * spend their money is owed the tool's name and what it is doing.\n * - it never drops the progress beats, and it keeps the SERVER's tool name per\n * beat (`web` → `web_search` → `web_research`); flattening them to the\n * call's name loses what actually ran.\n * - it never renders an error state as \"Done\".\n *\n * Lane 2B's `/tools` registry replaces this chip's BODY with a per-tool\n * renderer. The chip, its state machine and its header stay — a registry entry\n * is a richer body, not a second card. That is the `body` prop below: at the\n * lane merge `<ChatToolCard>` stopped carrying its own copy of this header and\n * became this chip with a body passed in, so the two can no longer drift in\n * markup, in state words, or in expand behaviour.\n */\n\nimport { useState, type ReactNode } from \"react\";\n\nimport type { ChatToolPart, ChatToolState } from \"../../model\";\nimport { useChatPorts } from \"../hooks\";\nimport { ChevronRightGlyph } from \"../icons\";\n\n/**\n * What the state means to a READER, not to a protocol. THE ONE TABLE: `/tools`\n * re-exports this rather than restating it, because a tool that reads \"Done\" in\n * one card and \"Completed\" in another is drift nobody notices for a month.\n */\nexport const CHAT_TOOL_STATE_LABEL: Record<ChatToolState, string> = {\n \"input-streaming\": \"Preparing\",\n \"input-available\": \"Running\",\n \"approval-requested\": \"Needs your approval\",\n \"output-available\": \"Done\",\n \"output-error\": \"Failed\",\n \"output-denied\": \"Declined\",\n};\n\nfunction formatPayload(value: unknown): string {\n if (value === undefined) return \"\";\n if (typeof value === \"string\") return value;\n try {\n return JSON.stringify(value, null, 2);\n } catch {\n // A payload with a cycle or a BigInt still has to say something.\n return String(value);\n }\n}\n\nexport interface ChatToolChipProps {\n part: ChatToolPart;\n /** From `features.expandToolCardsByDefault`. */\n defaultExpanded: boolean;\n /**\n * Replace what the chip shows when it is open. This is the ONE seam `/tools`\n * uses: a registered renderer is a richer BODY under the same header, the\n * same state words and the same expand behaviour — never a second card.\n * Absent ⇒ the chip's own body (arguments, progress beats, error, result).\n */\n body?: ReactNode | undefined;\n /** Diagnostic marker for the surrounding element, e.g. which renderer drew\n * the body. Read by tests and by the census; never shown to a reader. */\n rendererTag?: string | undefined;\n}\n\nexport function ChatToolChip(props: ChatToolChipProps): ReactNode {\n const { part, defaultExpanded, body } = props;\n const [expanded, setExpanded] = useState(defaultExpanded);\n\n const { toolLabel } = useChatPorts();\n const latest = part.progress[part.progress.length - 1];\n const input = formatPayload(part.input);\n const output = formatPayload(part.output);\n const stateLabel = CHAT_TOOL_STATE_LABEL[part.state];\n // THE HEADER SAYS EACH THING ONCE. Servers send a completion beat whose\n // whole content is the word the state column already carries (\"Done\"), and\n // the chip read \"Done Done\" in front of a Creator (live review 2026-09-18).\n // The beat is not thrown away — it stays in the body, under Progress.\n const beat =\n latest !== undefined &&\n latest.message !== \"\" &&\n latest.message.trim().toLowerCase() !== stateLabel.toLowerCase()\n ? latest.message\n : null;\n const hasBody =\n input !== \"\" || output !== \"\" || part.errorText !== null || part.progress.length > 0;\n\n return (\n <div\n className=\"mx-chat-tool\"\n data-state={part.state}\n data-tool={part.toolName}\n {...(props.rendererTag === undefined\n ? {}\n : { \"data-mx-chat-tool-renderer\": props.rendererTag })}\n >\n <button\n type=\"button\"\n className=\"mx-chat-tool__header mx-chat-focusable\"\n aria-expanded={expanded}\n // A chip with nothing to show still toggles rather than sitting there\n // looking disabled (Law 4) — it says so in the body instead.\n onClick={() => setExpanded((open) => !open)}\n >\n <span data-open={expanded} className=\"mx-chat-chevron-wrap\">\n <ChevronRightGlyph />\n </span>\n {/* WHAT IS HAPPENING, never the identifier — `toolLabel` is the port\n and `data-tool` above keeps the machine name for the machines. */}\n <span className=\"mx-chat-tool__name\">{toolLabel(part.toolName)}</span>\n {beat === null ? null : <span className=\"mx-chat-tool__beat\">{beat}</span>}\n <span className=\"mx-chat-tool__state\">{stateLabel}</span>\n </button>\n\n {expanded ? (\n body !== undefined ? (\n body\n ) : (\n <div className=\"mx-chat-tool__body\">\n {input !== \"\" ? (\n <>\n <span className=\"mx-chat-tool__label\">What it was asked</span>\n <pre className=\"mx-chat-tool__payload\">{input}</pre>\n </>\n ) : null}\n\n {part.progress.length > 0 ? (\n <>\n <span className=\"mx-chat-tool__label\">Progress</span>\n <ul className=\"mx-chat-tool__progress\">\n {part.progress.map((beat, index) => (\n <li key={`${beat.toolName}-${index}`}>\n <span data-tool-beat={beat.toolName}>{beat.toolName}</span>\n {beat.message === \"\" ? null : ` — ${beat.message}`}\n {beat.percent === null ? null : ` (${Math.round(beat.percent)}%)`}\n </li>\n ))}\n </ul>\n </>\n ) : null}\n\n {part.errorText !== null ? (\n <>\n <span className=\"mx-chat-tool__label\">What went wrong</span>\n <p className=\"mx-chat-failure__sentence\">{part.errorText}</p>\n </>\n ) : null}\n\n {output !== \"\" ? (\n <>\n <span className=\"mx-chat-tool__label\">What it returned</span>\n <pre className=\"mx-chat-tool__payload\">{output}</pre>\n </>\n ) : null}\n\n {hasBody ? null : (\n <span className=\"mx-chat-standin\">\n {part.state === \"input-streaming\"\n ? \"This tool has not said what it is doing yet.\"\n : \"This tool ran without reporting any details.\"}\n </span>\n )}\n </div>\n )\n ) : null}\n </div>\n );\n}\n","/**\n * THE BASE HOOKS — shared scaffolding, layer 3 of the design.\n *\n * All four read the kernel through `useSyncExternalStore`, which is the shape\n * the champion (`@ai-sdk/react`) proved and the reason the store was written as\n * `getSnapshot`/`subscribe` in phase 1. Nothing here holds a second copy of\n * thread state: a hook that mirrors the store into `useState` tears under\n * concurrent rendering and drifts the moment the host mutates the store from\n * outside React.\n *\n * `useChatMessage(id)` is the performance seam that makes a 2,000-token answer\n * possible: it subscribes to ONE message, so a streaming bubble re-renders\n * while the other 200 rows do not.\n */\n\nimport {\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n useSyncExternalStore,\n type KeyboardEvent as ReactKeyboardEvent,\n} from \"react\";\n\nimport type { ChatFeatures } from \"../config\";\nimport type { ChatMessage, ChatThreadSnapshot } from \"../model\";\nimport { messageText } from \"../model\";\nimport type { ChatSendResult } from \"../store\";\nimport { useChatContext } from \"./provider\";\nimport type { ChatReactPorts } from \"./ports\";\nimport type { ChatSlots } from \"./slots\";\n\nexport interface UseChatThreadResult {\n snapshot: ChatThreadSnapshot;\n messages: readonly ChatMessage[];\n status: ChatThreadSnapshot[\"status\"];\n /** True while a turn is in flight — the ONE test a stop button uses. */\n isBusy: boolean;\n conversationId: string | null;\n ephemeral: boolean;\n ephemeralReason: string | null;\n error: ChatThreadSnapshot[\"error\"];\n send(text: string, fileIds?: readonly string[]): Promise<ChatSendResult>;\n cancel(): Promise<void>;\n}\n\n/** The whole thread. Use `useChatMessage` for a row — not this. */\nexport function useChatThread(): UseChatThreadResult {\n const { thread } = useChatContext();\n const snapshot = useSyncExternalStore(\n thread.subscribe,\n thread.getSnapshot,\n thread.getSnapshot,\n );\n\n const send = useCallback(\n (text: string, fileIds?: readonly string[]) =>\n thread.send(fileIds === undefined ? { text } : { text, fileIds }),\n [thread],\n );\n const cancel = useCallback(() => thread.cancel(), [thread]);\n\n return useMemo(\n () => ({\n snapshot,\n messages: snapshot.messages,\n status: snapshot.status,\n isBusy: snapshot.status === \"submitted\" || snapshot.status === \"streaming\",\n conversationId: snapshot.conversationId,\n ephemeral: snapshot.ephemeral,\n ephemeralReason: snapshot.ephemeralReason,\n error: snapshot.error,\n send,\n cancel,\n }),\n [snapshot, send, cancel],\n );\n}\n\n/**\n * ONE message, on its own subscription.\n *\n * Returns `undefined` for an id the thread does not hold — a row that was\n * removed while its component was unmounting is ordinary, not an error.\n */\nexport function useChatMessage(messageId: string): ChatMessage | undefined {\n const { thread } = useChatContext();\n\n const subscribe = useCallback(\n (listener: () => void) => thread.subscribeToMessage(messageId, listener),\n [thread, messageId],\n );\n const getSnapshot = useCallback(\n () => thread.getMessageSnapshot(messageId),\n [thread, messageId],\n );\n\n return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);\n}\n\n/** The resolved knobs (platform → org → surface → user), from the kernel. */\nexport function useChatConfig(): ChatFeatures {\n return useChatContext().thread.features;\n}\n\n/** The React ports, each already defaulted by the provider. */\nexport function useChatPorts(): ChatReactPorts {\n return useChatContext().ports;\n}\n\n/** The slot map. Empty object when the host passed none. */\nexport function useChatSlots(): ChatSlots {\n return useChatContext().slots;\n}\n\nexport interface UseChatComposerStateResult {\n text: string;\n setText(next: string): void;\n /** False when the box is blank, or while a turn is in flight unless\n * `features.sendWhileBusy` (the host queues). */\n canSend: boolean;\n isBusy: boolean;\n send(): Promise<ChatSendResult | null>;\n stop(): Promise<void>;\n /**\n * The keyboard contract, decided by `features.sendKey`: Enter sends and\n * Shift+Enter newlines, or Cmd/Ctrl+Enter sends and Enter newlines. Esc\n * ALWAYS stops a running answer. Wire this to the input's `onKeyDown`.\n */\n onKeyDown(event: ReactKeyboardEvent): void;\n /** True when a failed turn just handed its words back. Clears on the next\n * edit, so a composer can flash the box once without it sticking. */\n restoredFromFailure: boolean;\n}\n\nconst DRAFT_PREFIX = \"ai-matrx.chat.draft.\";\n\n/**\n * COMPOSER STATE — the logic half, with no opinion about pixels.\n *\n * Lane 2B renders this. It lives in shared scaffolding rather than in 2B\n * because 2A needs one half of it TODAY: a failed turn's \"Try again\" hands the\n * reader's unsent words back through the retry bus, and there has to be exactly\n * one place that catches them. Two sources of composer state is how a draft\n * gets lost.\n *\n * Drafts survive reload when `features.retainDrafts` is on, keyed per\n * conversation, through the `prefs` port — which already announces itself when\n * it is memory-only.\n */\nexport function useChatComposerState(): UseChatComposerStateResult {\n const { thread, ports, retry } = useChatContext();\n const features = thread.features;\n const snapshot = useSyncExternalStore(\n thread.subscribe,\n thread.getSnapshot,\n thread.getSnapshot,\n );\n const conversationId = snapshot.conversationId;\n const isBusy = snapshot.status === \"submitted\" || snapshot.status === \"streaming\";\n\n const draftKey = `${DRAFT_PREFIX}${conversationId ?? \"new\"}`;\n const [text, setTextState] = useState<string>(() =>\n features.retainDrafts ? (ports.prefs.get(draftKey) ?? \"\") : \"\",\n );\n const [restoredFromFailure, setRestored] = useState(false);\n\n // The draft key changes when the conversation does — including the moment a\n // NEW conversation learns its server id mid-send. Carrying the in-progress\n // text across that rename is the difference between a draft that survives and\n // one that vanishes the first time someone types during the first turn.\n const keyRef = useRef(draftKey);\n useEffect(() => {\n if (keyRef.current === draftKey) return;\n const previousKey = keyRef.current;\n keyRef.current = draftKey;\n if (!features.retainDrafts) return;\n const carried = ports.prefs.get(previousKey);\n if (carried !== null && carried !== \"\") {\n ports.prefs.set(draftKey, carried);\n ports.prefs.remove(previousKey);\n setTextState(carried);\n return;\n }\n setTextState(ports.prefs.get(draftKey) ?? \"\");\n }, [draftKey, features.retainDrafts, ports.prefs]);\n\n const setText = useCallback(\n (next: string) => {\n setTextState(next);\n setRestored(false);\n if (!features.retainDrafts) return;\n if (next === \"\") ports.prefs.remove(keyRef.current);\n else ports.prefs.set(keyRef.current, next);\n },\n [features.retainDrafts, ports.prefs],\n );\n\n // Catch the words a failed turn hands back. Registered here and NOWHERE else,\n // so \"Try again\" has exactly one destination.\n useEffect(\n () =>\n retry.subscribe((restored) => {\n setTextState(restored);\n setRestored(true);\n if (features.retainDrafts) ports.prefs.set(keyRef.current, restored);\n }),\n [retry, features.retainDrafts, ports.prefs],\n );\n\n const send = useCallback(async (): Promise<ChatSendResult | null> => {\n const body = text.trim();\n if (body === \"\" || (isBusy && !features.sendWhileBusy)) return null;\n // The box is cleared OPTIMISTICALLY and the draft with it; if the kernel\n // refuses the send, the words come straight back rather than being lost.\n setTextState(\"\");\n setRestored(false);\n if (features.retainDrafts) ports.prefs.remove(keyRef.current);\n const result = await thread.send({ text: body });\n if (!result.accepted) {\n setTextState(body);\n if (features.retainDrafts) ports.prefs.set(keyRef.current, body);\n }\n return result;\n }, [text, isBusy, thread, features.retainDrafts, features.sendWhileBusy, ports.prefs]);\n\n const stop = useCallback(() => thread.cancel(), [thread]);\n\n const onKeyDown = useCallback(\n (event: ReactKeyboardEvent) => {\n if (event.key === \"Escape\") {\n if (!isBusy) return;\n event.preventDefault();\n void thread.cancel();\n return;\n }\n if (event.key !== \"Enter\") return;\n const withModifier = event.metaKey || event.ctrlKey;\n const sends =\n features.sendKey === \"enter\"\n ? !event.shiftKey && !withModifier\n : withModifier;\n if (!sends) return;\n event.preventDefault();\n void send();\n },\n [features.sendKey, isBusy, send, thread],\n );\n\n return {\n text,\n setText,\n canSend: text.trim() !== \"\" && (!isBusy || features.sendWhileBusy),\n isBusy,\n send,\n stop,\n onKeyDown,\n restoredFromFailure,\n };\n}\n\n/**\n * The text of the user turn that produced a given assistant message — what\n * \"Try again\" hands back. Exported because 2B's composer and 2A's failure card\n * must agree on what \"the unsent text\" means.\n */\nexport function precedingUserText(\n messages: readonly ChatMessage[],\n messageId: string,\n): string {\n const index = messages.findIndex((message) => message.id === messageId);\n if (index <= 0) return \"\";\n for (let cursor = index - 1; cursor >= 0; cursor -= 1) {\n const candidate = messages[cursor];\n if (candidate && candidate.role === \"user\") return messageText(candidate);\n }\n return \"\";\n}\n","/**\n * `<ChatProvider>` — the ONE context every lane reads. Shared scaffolding.\n *\n * It carries three things and decides nothing else:\n * 1. THE THREAD STORE — the kernel's `ChatThreadStore`, or anything else with\n * that shape, which is exactly what `@ai-matrx/chat/external-store`\n * returns. That is why the prop is typed as the store interface and not as\n * a config object: a host whose state already lives in Redux or behind an\n * MV3 relay mounts the SAME provider, and the strangler in design §9 works\n * because of this one line.\n * 2. THE REACT PORTS — `renderContent`, `notifier`, `prefs`, `files` and\n * `voice`, each with a working default (THE ALL-INCLUSIVE LAW). The\n * `renderContent` default is the REAL one — `createChatContentRenderer`,\n * markdown plus content-IR kind routing — not the plain-text floor. A host\n * that mounts nothing gets formatted answers, which is what \"drop-in\"\n * means; `createPlainTextContentRenderer` stays exported as the\n * zero-dependency floor for a host that cannot take content-ir at all.\n * 3. THE SLOTS — the per-lane slot map.\n *\n * The knobs are NOT carried here: they are resolved in the kernel and read off\n * `thread.features`, so a knob has one resolution site and a host cannot end up\n * with a composer that thinks Enter sends and a transcript that does not.\n */\n\nimport {\n createContext,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n type ReactNode,\n} from \"react\";\n\nimport type { ChatThreadStore } from \"../store\";\nimport type { ChatNotifierPort } from \"../ports\";\nimport { createConsoleNotifier, createWebPrefs } from \"../ports\";\nimport { createChatContentRenderer } from \"./composer/content-default\";\nimport { createUnavailableFilesPort } from \"./composer/files\";\nimport type { ChatReactPortOverrides, ChatReactPorts } from \"./ports\";\nimport { humanizeToolName } from \"./ports\";\nimport type { ChatSlots } from \"./slots\";\n\n/**\n * THE RETRY BUS.\n *\n * A failed turn's \"Try again\" must hand the reader's unsent words BACK to the\n * composer — retyping a paragraph the product lost is the cheapest possible\n * insult. The transcript (2A) and the composer (2B) are different lanes and\n * different components, so the handoff is a tiny subscribable rather than a\n * prop drilled between them.\n *\n * It is also the reason this is not a plain callback: when NOTHING is listening\n * — a transcript mounted with no composer, which is a legitimate embedding —\n * the words would vanish silently. Instead the bus says so, with the remedy.\n */\nexport interface ChatRetryBus {\n /** Hand text back to the composer. Returns false when nobody took it. */\n request(text: string): boolean;\n subscribe(listener: (text: string) => void): () => void;\n}\n\nexport function createChatRetryBus(notifier: ChatNotifierPort): ChatRetryBus {\n const listeners = new Set<(text: string) => void>();\n return {\n request(text) {\n if (listeners.size === 0) {\n notifier.notify({\n level: \"warning\",\n message:\n \"There is nowhere to put your message back, so it has not been restored for you.\",\n remedy:\n \"Copy your message from the conversation above and send it again, or mount this transcript inside a chat that has a message box.\",\n });\n return false;\n }\n for (const listener of listeners) listener(text);\n return true;\n },\n subscribe(listener) {\n listeners.add(listener);\n return () => {\n listeners.delete(listener);\n };\n },\n };\n}\n\nexport interface ChatContextValue {\n thread: ChatThreadStore;\n ports: ChatReactPorts;\n slots: ChatSlots;\n retry: ChatRetryBus;\n}\n\nconst ChatContext = createContext<ChatContextValue | null>(null);\n\nexport interface ChatProviderProps {\n /**\n * The kernel store (`createChatThread`) or a host-owned source\n * (`createExternalThreadSource`). Both satisfy this interface — that is the\n * whole point of the interface.\n */\n thread: ChatThreadStore;\n ports?: ChatReactPortOverrides | undefined;\n slots?: ChatSlots | undefined;\n children: ReactNode;\n}\n\nexport function ChatProvider(props: ChatProviderProps): ReactNode {\n const { thread, ports, slots, children } = props;\n\n // The defaults are built ONCE per provider, not per render: the plain-text\n // renderer holds an \"already announced\" flag and the prefs port probes\n // localStorage,\n // and rebuilding either per render would re-announce forever and re-probe on\n // every keystroke.\n const [defaults] = useState(() => {\n const notifier = createConsoleNotifier();\n return { notifier, prefs: createWebPrefs(notifier) };\n });\n\n const notifier = ports?.notifier ?? defaults.notifier;\n\n // The retry bus AND the default content renderer are both keyed to the\n // EFFECTIVE notifier, not to the fallback one. A host that injects a notifier\n // and then never hears \"your markdown is not being formatted\" or \"there is\n // nowhere to put your message back\" has a silent failure the injection was\n // supposed to prevent — that is the bug this keying exists to stop.\n const keyedRef = useRef<{\n notifier: ChatNotifierPort;\n bus: ChatRetryBus;\n renderContent: ChatReactPorts[\"renderContent\"];\n files: ChatReactPorts[\"files\"];\n } | null>(null);\n if (keyedRef.current === null || keyedRef.current.notifier !== notifier) {\n keyedRef.current = {\n notifier,\n bus: createChatRetryBus(notifier),\n renderContent: createChatContentRenderer({ notifier }),\n // The stand-in holds an \"already announced\" flag, so it is built ONCE:\n // rebuilding it per render would re-refuse out loud on every keystroke.\n files: createUnavailableFilesPort(notifier),\n };\n }\n const retry = keyedRef.current.bus;\n const defaultRenderContent = keyedRef.current.renderContent;\n const defaultFiles = keyedRef.current.files;\n\n const value = useMemo<ChatContextValue>(\n () => ({\n thread,\n ports: {\n renderContent: ports?.renderContent ?? defaultRenderContent,\n notifier,\n prefs: ports?.prefs ?? defaults.prefs,\n files: ports?.files ?? defaultFiles,\n // `null` is a REAL answer here (\"this surface has no voice\"), so it is\n // only defaulted when the key is absent entirely.\n voice: ports?.voice ?? null,\n toolLabel: ports?.toolLabel ?? humanizeToolName,\n // `null` is a REAL answer here too (\"this surface does not choose a\n // model\"), so it is only defaulted when the key is absent entirely —\n // and the default is nothing drawn, never a dead control.\n modelPicker: ports?.modelPicker ?? null,\n // Same rule: `null` is the real answer \"this surface offers no chips\",\n // and the control row is then ABSENT rather than an empty band.\n quickset: ports?.quickset ?? null,\n },\n slots: slots ?? {},\n retry,\n }),\n [\n thread,\n ports?.renderContent,\n ports?.prefs,\n ports?.files,\n ports?.voice,\n ports?.toolLabel,\n ports?.modelPicker,\n ports?.quickset,\n notifier,\n slots,\n retry,\n defaultRenderContent,\n defaultFiles,\n defaults.prefs,\n ],\n );\n\n // A thread the provider outlives must not keep its timers and its in-flight\n // turn running. The provider does NOT dispose a thread it did not create —\n // the host owns that lifecycle — but it does warn when a thread is swapped\n // mid-stream, because the abandoned turn keeps billing.\n const previous = useRef(thread);\n useEffect(() => {\n if (previous.current === thread) return;\n const status = previous.current.getSnapshot().status;\n if (status === \"streaming\" || status === \"submitted\") {\n notifier.notify({\n level: \"warning\",\n message: \"The previous answer was still arriving when this chat switched conversations.\",\n remedy: \"Stop the answer before switching, or the run keeps going in the background.\",\n });\n }\n previous.current = thread;\n }, [thread, notifier]);\n\n return <ChatContext.Provider value={value}>{children}</ChatContext.Provider>;\n}\n\n/**\n * The context, or a THROWN error naming what is missing. A hook that returns a\n * silent `null` here produces a blank transcript with no explanation, which is\n * the failure mode Law 4 exists to close — and the stack trace is the remedy.\n */\nexport function useChatContext(): ChatContextValue {\n const value = useContext(ChatContext);\n if (value === null) {\n throw new Error(\n \"[@ai-matrx/chat] This component must be rendered inside <ChatProvider thread={…}>. Wrap your chat surface in one, passing a thread from createChatThread() or createExternalThreadSource().\",\n );\n }\n return value;\n}\n","/**\n * THE REAL `renderContent` DEFAULT — lane 2B, design §6.\n *\n * Two routes, one port:\n * - **prose** (`markdown` / `text`) → the package's safe markdown renderer,\n * incremental per message so a 2,000-token answer does not re-parse itself\n * 2,000 times;\n * - **a render block** (a content-IR kind) → `@ai-matrx/content-ir-react`'s\n * `KindInstanceRender`, the ONE door between \"I hold a kind-shaped value\"\n * and \"the reader sees it drawn properly\". Re-deriving kind routing here\n * would be a second renderer for the platform's kinds, which is banned.\n *\n * 🚨 THE PROVIDER-LESS CASE IS HONEST, NOT FATAL. `content-ir-react` THROWS\n * outside a `<ContentIrRenderProvider>` — correctly, for an app that meant to\n * mount one. But a chat dropped into a fresh Vite app has not mounted one, and\n * a thrown error there would take the whole transcript down over a single\n * block. So this renderer asks `useContentIrHostOrNull()` and, with no host,\n * renders the block's own text under ONE sentence naming what is missing and\n * how to fix it. Absent or honest — never a blank region, never a crash.\n *\n * This replaces `createPlainTextContentRenderer` as the shipped default a host\n * gets from `<ChatProvider>`. That stand-in stays exported: it is the zero-\n * dependency floor for a host that cannot take content-ir at all.\n */\n\nimport { useEffect, type ReactNode } from \"react\";\nimport { KindInstanceRender, useContentIrHostOrNull } from \"@ai-matrx/content-ir-react\";\n\nimport type { ChatNotifierPort } from \"../../ports\";\nimport { createConsoleNotifier } from \"../../ports\";\nimport type { ChatContentRequest, ChatRenderContentPort } from \"../ports\";\nimport { ChatMarkdown, createBlockCache, type MarkdownBlockCache } from \"./markdown\";\n\n/** The sentence a reader sees for a kind block with no content-IR host. */\nexport const NO_CONTENT_IR_HOST =\n \"This answer contains a structured block, and it is shown as plain text here because this app has not connected the content renderer.\";\nexport const NO_CONTENT_IR_HOST_REMEDY =\n \"Mount <ContentIrRenderProvider host={…}> from @ai-matrx/content-ir-react above your chat to draw structured blocks properly.\";\n\nfunction RenderBlock(props: {\n request: ChatContentRequest;\n cache: MarkdownBlockCache;\n notifier: ChatNotifierPort;\n announce(): void;\n}): ReactNode {\n const host = useContentIrHostOrNull();\n const announce = props.announce;\n useEffect(() => {\n if (host === null) announce();\n }, [host, announce]);\n\n if (host === null) {\n return (\n <div className=\"mx-chat-content\" data-mx-chat-content=\"block-standin\">\n <span className=\"mx-chat-standin\">{NO_CONTENT_IR_HOST}</span>\n <ChatMarkdown\n text={props.request.text}\n cacheKey={`${props.request.messageId}:${props.request.kind}`}\n cache={props.cache}\n />\n </div>\n );\n }\n\n return (\n <div className=\"mx-chat-content\" data-mx-chat-content=\"block\" data-kind={props.request.kind}>\n <KindInstanceRender\n kind={props.request.kind}\n value={props.request.data ?? props.request.text}\n variant=\"bare\"\n />\n </div>\n );\n}\n\nexport interface ChatContentRendererOptions {\n notifier?: ChatNotifierPort | undefined;\n /** Share one cache across surfaces, or pass your own for a test. */\n cache?: MarkdownBlockCache | undefined;\n}\n\n/**\n * Build the default renderer. The block cache is per-renderer, so two chats on\n * one page never share parsed blocks and a test never inherits another test's\n * cache.\n */\nexport function createChatContentRenderer(\n options: ChatContentRendererOptions = {},\n): ChatRenderContentPort {\n const notifier = options.notifier ?? createConsoleNotifier();\n const cache = options.cache ?? createBlockCache();\n // ONCE per renderer, not per block: a notice repeated per streamed frame is\n // noise, and noise is ignored.\n let announced = false;\n const announce = (): void => {\n if (announced) return;\n announced = true;\n notifier.notify({\n level: \"warning\",\n message: NO_CONTENT_IR_HOST,\n remedy: NO_CONTENT_IR_HOST_REMEDY,\n });\n };\n\n return function renderContent(request: ChatContentRequest): ReactNode {\n if (request.kind !== \"markdown\" && request.kind !== \"text\") {\n return (\n <RenderBlock\n request={request}\n cache={cache}\n notifier={notifier}\n announce={announce}\n />\n );\n }\n if (request.text === \"\") return null;\n return (\n <div className=\"mx-chat-content\" data-mx-chat-content=\"markdown\">\n <ChatMarkdown text={request.text} cacheKey={request.messageId} cache={cache} />\n </div>\n );\n };\n}\n","/**\n * THE SMALLEST MARKDOWN RENDERER THAT IS SAFE — lane 2B.\n *\n * 🚨 Read design §6 before growing this file. `matrx-frontend`'s\n * `components/mardown-display` is 108,271 lines and renders in agent apps,\n * workflows, notes, print and the studio. Absorbing it would triple this\n * package and violate C8 on its face. This is the PORT DEFAULT — the floor that\n * makes a fresh app correct with zero work — not a competitor to that tree. A\n * host with a richer pipeline injects it through `renderContent`.\n *\n * Three properties are non-negotiable, and each has a test that goes red alone:\n *\n * 1. **NO RAW HTML, EVER.** Model output is untrusted by construction. There is\n * no `dangerouslySetInnerHTML` in this file and there must never be one: a\n * chat package that injects model text as HTML ships a cross-site-scripting\n * hole to every consumer at once. Angle brackets are rendered as literal\n * text by React, which is the whole defence.\n * 2. **LINK SCHEMES ARE ALLOWLISTED.** `javascript:`, `data:` and `vbscript:`\n * hrefs are refused and the link degrades to its own text. A renderer that\n * only escapes HTML and then hands an anchor an arbitrary scheme has closed\n * one door and left the next one open.\n * 3. **PARSING IS INCREMENTAL.** A 2,000-token answer arrives as hundreds of\n * frames. Re-parsing the whole transcript per token is the classic failure\n * and the reason chats jank (design §7 rule 3). `createBlockCache()` keeps\n * the completed blocks of a growing string and re-parses ONLY the trailing\n * incomplete block.\n *\n * Reasoning is NOT handled here. The kernel already splits the platform's\n * `<reasoning>` span into its own part and the transcript draws it as an aside —\n * a markdown renderer that printed it as prose would undo that.\n */\n\nimport { Fragment, type ReactNode } from \"react\";\nimport { findTableEnd, rowCells, tableStartsAt, unescapeCellPipes } from \"@ai-matrx/content-ir/source\";\n\n/* ------------------------------------------------------------------ links -- */\n\n/**\n * The only schemes an anchor may carry. Everything else degrades to plain text.\n * `data:` is absent on purpose: `data:text/html` is a same-origin script vector.\n */\nconst SAFE_SCHEME = /^(https?:|mailto:|tel:)/i;\n/** A relative or anchor-local target a host page legitimately owns. */\nconst RELATIVE_TARGET = /^([./#?]|[A-Za-z0-9_-]+\\/)/;\n\nexport function safeHref(raw: string): string | null {\n const href = raw.trim();\n if (href === \"\") return null;\n if (SAFE_SCHEME.test(href)) return href;\n // A bare `foo:bar` with an unknown scheme is refused; a path is allowed.\n if (/^[A-Za-z][A-Za-z0-9+.-]*:/.test(href)) return null;\n if (RELATIVE_TARGET.test(href)) return href;\n return null;\n}\n\n/** Images load only over http(s), lazily, and never leak the referrer. */\nfunction safeImageSource(raw: string): string | null {\n const source = raw.trim();\n return /^https?:\\/\\//i.test(source) ? source : null;\n}\n\n/* ----------------------------------------------------------------- inline -- */\n\n/**\n * ONE pass, ordered by precedence: code span wins over everything (its body is\n * literal), then image, link, bold, italic, strikethrough, then a bare URL.\n *\n * Each alternative is a separate capture group so the branch is decided by\n * WHICH group matched, never by re-testing the slice — re-testing is how an\n * inline parser ends up quadratic on a long answer.\n */\n/**\n * 🚨 EVERY BODY IS BOUNDED, AND NONE OF THEM CROSSES A NEWLINE.\n *\n * This is not tidiness. The first version used `[\\s\\S]*?` bodies, and the\n * FIRST run against the live 9,313-character corpus answer took the test\n * runner out of memory: an unbounded lazy body matches across thousands of\n * characters, `renderInline` recurses into that whole span, and the span\n * matches again two characters shorter — thousands of levels deep, each\n * allocating its own node array. Bounding the body to one line and\n * {@link INLINE_BODY_MAX} characters is what makes the pass linear, and it is\n * also what real markdown means: emphasis does not span a blank line.\n */\nconst INLINE_BODY_MAX = 400;\n\n/**\n * 🚨 THE SOURCE, not a shared RegExp object. `renderInline` RECURSES (bold\n * inside a link, code inside a list item), and a `g`-flagged regex carries\n * `lastIndex` on the OBJECT: an inner call resets it to 0, the outer loop\n * resumes from 0, and the scan never terminates. That is not theory — it is\n * what the first version did, and it took the runner out of memory on the very\n * first live-corpus answer. A fresh matcher per call is the fix, and this\n * comment is the reason nobody \"optimises\" it back.\n */\nconst INLINE_SOURCE = [\n \"(`+)([^\\\\n]{0,400}?)\\\\1\", // 1,2 code span\n \"!\\\\[([^\\\\]\\\\n]*)\\\\]\\\\(((?:[^()\\\\s]|\\\\([^()\\\\s]*\\\\))+)\\\\)\", // 3,4 image\n \"\\\\[([^\\\\]\\\\n]+)\\\\]\\\\(((?:[^()\\\\s]|\\\\([^()\\\\s]*\\\\))+)\\\\)\", // 5,6 link\n // 🚨 The closing backreference names THIS alternative's group (\\\\7, \\\\9,\n // \\\\11). A bare \\\\1 in a joined pattern points at the CODE SPAN's group,\n // which is unmatched here and so matches empty: \"**Bold**\" rendered as\n // <strong>B</strong>old<em>*</em> (found on a live coding-sessions answer).\n \"(\\\\*\\\\*|__)(?=\\\\S)([^\\\\n]{0,400}?\\\\S)\\\\7\", // 7,8 bold\n \"(\\\\*|_)(?=\\\\S)([^*_\\\\n]{0,400}?\\\\S)\\\\9\", // 9,10 italic\n \"(~~)(?=\\\\S)([^\\\\n]{0,400}?\\\\S)\\\\11\", // 11,12 strikethrough\n \"(https?://[^\\\\s<>()]+)\", // 13 bare url\n].join(\"|\");\n\nexport function renderInline(\n text: string,\n keyPrefix: string,\n depth = 0,\n): ReactNode[] {\n // A hard floor under the recursion. Bounded bodies already make a runaway\n // impossible; this makes it impossible to REINTRODUCE one by loosening a\n // pattern, which is exactly how the first OOM happened.\n if (depth > 6 || text.length > INLINE_BODY_MAX * 64) return [text];\n const nodes: ReactNode[] = [];\n const matcher = new RegExp(INLINE_SOURCE, \"g\");\n let cursor = 0;\n let index = 0;\n let match = matcher.exec(text);\n while (match !== null) {\n if (match.index > cursor) nodes.push(text.slice(cursor, match.index));\n const key = `${keyPrefix}i${index}`;\n index += 1;\n\n if (match[1] !== undefined) {\n nodes.push(<code key={key}>{match[2] ?? \"\"}</code>);\n } else if (match[4] !== undefined) {\n const source = safeImageSource(match[4]);\n const alt = match[3] ?? \"\";\n nodes.push(\n source === null ? (\n <Fragment key={key}>{alt === \"\" ? match[4] : alt}</Fragment>\n ) : (\n <img\n key={key}\n className=\"mx-chat-md__image\"\n src={source}\n alt={alt}\n loading=\"lazy\"\n referrerPolicy=\"no-referrer\"\n />\n ),\n );\n } else if (match[6] !== undefined) {\n const href = safeHref(match[6]);\n const label = match[5] ?? \"\";\n nodes.push(\n href === null ? (\n // Law 4: the words survive; only the unsafe jump is refused.\n <Fragment key={key}>{label}</Fragment>\n ) : (\n <a key={key} href={href} target=\"_blank\" rel=\"noreferrer noopener\">\n {renderInline(label, `${key}-`, depth + 1)}\n </a>\n ),\n );\n } else if (match[8] !== undefined) {\n nodes.push(<strong key={key}>{renderInline(match[8], `${key}-`, depth + 1)}</strong>);\n } else if (match[10] !== undefined) {\n nodes.push(<em key={key}>{renderInline(match[10], `${key}-`, depth + 1)}</em>);\n } else if (match[12] !== undefined) {\n nodes.push(<del key={key}>{renderInline(match[12], `${key}-`, depth + 1)}</del>);\n } else if (match[13] !== undefined) {\n nodes.push(\n <a key={key} href={match[13]} target=\"_blank\" rel=\"noreferrer noopener\">\n {match[13]}\n </a>,\n );\n }\n cursor = match.index + match[0].length;\n match = matcher.exec(text);\n }\n if (cursor < text.length) nodes.push(text.slice(cursor));\n return nodes;\n}\n\n/* ------------------------------------------------------------------ blocks -- */\n\nexport type MarkdownBlock =\n | { type: \"code\"; language: string; body: string; closed: boolean }\n | { type: \"heading\"; level: number; body: string }\n | { type: \"quote\"; body: string }\n | { type: \"list\"; ordered: boolean; items: string[] }\n | { type: \"table\"; header: string[]; rows: string[][] }\n | { type: \"rule\" }\n | { type: \"paragraph\"; body: string };\n\nconst FENCE_LINE = /^\\s{0,3}(`{3,}|~{3,})\\s*([^\\s`]*)/;\nconst HEADING_LINE = /^(#{1,6})\\s+(.*)$/;\nconst BULLET_LINE = /^\\s{0,3}[-*+]\\s+(.*)$/;\nconst ORDERED_LINE = /^\\s{0,3}\\d{1,9}[.)]\\s+(.*)$/;\nconst QUOTE_LINE = /^\\s{0,3}>\\s?(.*)$/;\nconst RULE_LINE = /^\\s{0,3}([-*_])(\\s*\\1){2,}\\s*$/;\n/** A row's cells by THE GFM rule (@ai-matrx/content-ir/source): `\\|` stays in its cell and reads as `|`. */\nfunction tableCells(line: string): string[] {\n return rowCells(line).map(unescapeCellPipes);\n}\n\n/**\n * Parse markdown blocks from `lines`, returning the blocks AND the index of the\n * first line of the trailing block that may still grow. The cache uses that\n * index to re-parse only what is still arriving.\n */\nexport function parseBlocks(source: string): {\n blocks: MarkdownBlock[];\n /** CHARACTER offset of the last block's first line — where a growing string\n * may still change what has already been parsed. */\n openFrom: number;\n} {\n const lines = source.split(\"\\n\");\n // Character offset of each line's first character, so the cache can slice the\n // source rather than re-joining lines (re-joining loses a trailing newline\n // and silently shifts every later offset by one).\n const lineStart: number[] = [];\n {\n let at = 0;\n for (const line of lines) {\n lineStart.push(at);\n at += line.length + 1;\n }\n }\n const blocks: MarkdownBlock[] = [];\n let index = 0;\n let lastStart = 0;\n\n while (index < lines.length) {\n const line = lines[index] ?? \"\";\n\n if (line.trim() === \"\") {\n index += 1;\n continue;\n }\n // Marked AFTER the blank-line skip: a trailing blank line is not a block\n // start, and treating it as one makes the incremental cache believe the\n // whole answer is already stable and silently stop appending.\n lastStart = index;\n\n const fence = FENCE_LINE.exec(line);\n if (fence !== null) {\n const marker = fence[1] ?? \"```\";\n const language = fence[2] ?? \"\";\n const body: string[] = [];\n index += 1;\n let closed = false;\n while (index < lines.length) {\n const current = lines[index] ?? \"\";\n if (current.trimStart().startsWith(marker[0] ?? \"`\") && current.trim().length >= 3) {\n const close = FENCE_LINE.exec(current);\n if (close !== null && (close[1] ?? \"\").length >= marker.length) {\n closed = true;\n index += 1;\n break;\n }\n }\n body.push(current);\n index += 1;\n }\n // An UNCLOSED fence still renders as code. A half-arrived fence rendered\n // as prose reflows the instant it closes, and a jumping transcript is\n // what \"incremental\" means to a reader.\n blocks.push({ type: \"code\", language, body: body.join(\"\\n\"), closed });\n continue;\n }\n\n const heading = HEADING_LINE.exec(line);\n if (heading !== null) {\n blocks.push({\n type: \"heading\",\n level: (heading[1] ?? \"#\").length,\n body: heading[2] ?? \"\",\n });\n index += 1;\n continue;\n }\n\n if (RULE_LINE.test(line)) {\n blocks.push({ type: \"rule\" });\n index += 1;\n continue;\n }\n\n if (QUOTE_LINE.test(line)) {\n const body: string[] = [];\n while (index < lines.length) {\n const quote = QUOTE_LINE.exec(lines[index] ?? \"\");\n if (quote === null) break;\n body.push(quote[1] ?? \"\");\n index += 1;\n }\n blocks.push({ type: \"quote\", body: body.join(\"\\n\") });\n continue;\n }\n\n const bullet = BULLET_LINE.exec(line);\n const ordered = ORDERED_LINE.exec(line);\n if (bullet !== null || ordered !== null) {\n const isOrdered = ordered !== null;\n const items: string[] = [];\n while (index < lines.length) {\n const current = lines[index] ?? \"\";\n const match = isOrdered\n ? ORDERED_LINE.exec(current)\n : BULLET_LINE.exec(current);\n if (match === null) break;\n items.push(match[1] ?? \"\");\n index += 1;\n }\n blocks.push({ type: \"list\", ordered: isOrdered, items });\n continue;\n }\n\n // A table by THE GFM rule (verify-RC-B4): edge pipes optional, a line that\n // starts another block ends it, rows read at the header's width.\n if (tableStartsAt(lines, index)) {\n const header = tableCells(line);\n const end = findTableEnd(lines, index);\n index += 2;\n const rows: string[][] = [];\n while (index < end) {\n const cells = tableCells(lines[index] ?? \"\");\n rows.push(header.map((_h, k) => cells[k] ?? \"\"));\n index += 1;\n }\n blocks.push({ type: \"table\", header, rows });\n continue;\n }\n\n const paragraph: string[] = [];\n while (index < lines.length) {\n const current = lines[index] ?? \"\";\n if (\n current.trim() === \"\" ||\n FENCE_LINE.test(current) ||\n HEADING_LINE.test(current) ||\n BULLET_LINE.test(current) ||\n ORDERED_LINE.test(current) ||\n QUOTE_LINE.test(current) ||\n RULE_LINE.test(current)\n ) {\n break;\n }\n paragraph.push(current);\n index += 1;\n }\n blocks.push({ type: \"paragraph\", body: paragraph.join(\"\\n\") });\n }\n\n return { blocks, openFrom: lineStart[lastStart] ?? 0 };\n}\n\n/* ------------------------------------------------------- incremental cache -- */\n\nexport interface MarkdownBlockCache {\n parse(key: string, text: string): MarkdownBlock[];\n /** How many times the parser actually ran. The performance rule, measurable. */\n readonly parses: number;\n forget(key: string): void;\n}\n\n/**\n * THE INCREMENTAL RULE, as code.\n *\n * When the next text for a key is the previous text plus more (which is what a\n * stream is), everything before the last block start is reused verbatim and\n * only the tail is re-parsed. A renderer that re-parses a 40 KB answer on every\n * one of 2,000 frames is the reason chats jank at 2,000 tokens.\n */\nexport function createBlockCache(): MarkdownBlockCache {\n interface Entry {\n text: string;\n blocks: MarkdownBlock[];\n /** Blocks before `stableEnd`, which a longer string can never change. */\n stable: MarkdownBlock[];\n /** Character offset where the still-growing block begins. */\n stableEnd: number;\n }\n const entries = new Map<string, Entry>();\n let parses = 0;\n\n const cold = (key: string, text: string): MarkdownBlock[] => {\n parses += 1;\n const parsed = parseBlocks(text);\n entries.set(key, {\n text,\n blocks: parsed.blocks,\n stable: parsed.blocks.slice(0, Math.max(0, parsed.blocks.length - 1)),\n stableEnd: parsed.openFrom,\n });\n return parsed.blocks;\n };\n\n return {\n get parses() {\n return parses;\n },\n forget(key) {\n entries.delete(key);\n },\n parse(key, text) {\n const previous = entries.get(key);\n if (previous === undefined) return cold(key, text);\n if (previous.text === text) return previous.blocks;\n // Only a CONTINUATION can reuse anything. An edit, a regenerate or a\n // second message under the same key re-parses from scratch — reusing a\n // prefix that is no longer a prefix is how a renderer shows the previous\n // answer's first paragraph forever.\n if (!text.startsWith(previous.text)) return cold(key, text);\n\n parses += 1;\n const tail = parseBlocks(text.slice(previous.stableEnd));\n const blocks = [...previous.stable, ...tail.blocks];\n entries.set(key, {\n text,\n blocks,\n stable: blocks.slice(0, Math.max(0, blocks.length - 1)),\n stableEnd: previous.stableEnd + tail.openFrom,\n });\n return blocks;\n },\n };\n}\n\n/* ---------------------------------------------------------------- render -- */\n\nfunction renderBlock(block: MarkdownBlock, key: string): ReactNode {\n switch (block.type) {\n case \"code\":\n return (\n <pre key={key} className=\"mx-chat-md__pre\" data-language={block.language || undefined}>\n <code>{block.body}</code>\n </pre>\n );\n case \"heading\": {\n const level = Math.min(6, Math.max(1, block.level));\n const Tag = `h${level}` as \"h1\";\n return (\n <Tag key={key} className=\"mx-chat-md__heading\" data-level={level}>\n {renderInline(block.body, `${key}-`)}\n </Tag>\n );\n }\n case \"quote\":\n return (\n <blockquote key={key} className=\"mx-chat-md__quote\">\n {renderInline(block.body, `${key}-`)}\n </blockquote>\n );\n case \"list\":\n return block.ordered ? (\n <ol key={key} className=\"mx-chat-md__list\">\n {block.items.map((item, i) => (\n <li key={`${key}-${i}`}>{renderInline(item, `${key}-${i}-`)}</li>\n ))}\n </ol>\n ) : (\n <ul key={key} className=\"mx-chat-md__list\">\n {block.items.map((item, i) => (\n <li key={`${key}-${i}`}>{renderInline(item, `${key}-${i}-`)}</li>\n ))}\n </ul>\n );\n case \"table\":\n return (\n <div key={key} className=\"mx-chat-md__table-scroll\">\n <table className=\"mx-chat-md__table\">\n <thead>\n <tr>\n {block.header.map((cell, i) => (\n <th key={`${key}-h${i}`}>{renderInline(cell, `${key}-h${i}-`)}</th>\n ))}\n </tr>\n </thead>\n <tbody>\n {block.rows.map((row, r) => (\n <tr key={`${key}-r${r}`}>\n {row.map((cell, c) => (\n <td key={`${key}-r${r}c${c}`}>{renderInline(cell, `${key}-r${r}c${c}-`)}</td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n );\n case \"rule\":\n return <hr key={key} className=\"mx-chat-md__rule\" />;\n case \"paragraph\":\n return (\n <p key={key} className=\"mx-chat-md__paragraph\">\n {renderInline(block.body, `${key}-`)}\n </p>\n );\n }\n}\n\nexport interface ChatMarkdownProps {\n text: string;\n /** Cache key — the message id. Two messages never share parsed blocks. */\n cacheKey: string;\n cache: MarkdownBlockCache;\n}\n\nexport function ChatMarkdown(props: ChatMarkdownProps): ReactNode {\n const blocks = props.cache.parse(props.cacheKey, props.text);\n return (\n <div className=\"mx-chat-md\">\n {blocks.map((block, index) => renderBlock(block, `b${index}`))}\n </div>\n );\n}\n","/**\n * THE `files` PORT — lane 2B, design §5.\n *\n * Upload / resolve / preview, injected by the host. The platform default is\n * `@ai-matrx/data/files` + `@ai-matrx/media` in a later lane; what ships TODAY\n * is the honest stand-in below.\n *\n * 🚨 LAW 4, applied precisely. When no host has wired attachments up, the\n * composer does not render an attach button that does nothing — the control is\n * ABSENT. But a reader can still paste a screenshot or drop a PDF onto the box\n * without ever seeing a button, and THAT path must not swallow the file: the\n * stand-in port refuses out loud, with the remedy, and the composer shows the\n * refusal where the chip would have been. Absent or honest; never dead.\n */\n\nimport { formatFileSize } from \"@ai-matrx/kit/format\";\n\nimport type { ChatNotifierPort } from \"../../ports\";\n\n/** What an upload produced. `fileId` is the durable identity a turn carries. */\nexport interface ChatUploadedFile {\n fileId: string;\n name: string;\n mediaType: string | null;\n sizeBytes: number;\n /** A preview URL, when the host can produce one. A signed URL is a handoff,\n * never an identity — the kernel only ever sends `fileId`. */\n previewUrl?: string | undefined;\n}\n\nexport interface ChatUploadOptions {\n /** Aborted when the reader removes the chip while it is still uploading. */\n signal: AbortSignal;\n /** 0..1. A port that cannot measure progress simply never calls this, and\n * the chip shows an indeterminate state rather than a fake percentage. */\n onProgress(fraction: number): void;\n}\n\nexport interface ChatFilesPort {\n /**\n * FALSE when this port cannot actually store anything. The composer reads it\n * to decide whether an attach button exists at all — a button wired to a port\n * that always refuses is the \"dead control\" Law 4 forbids.\n */\n readonly available: boolean;\n /** `accept` for the file input, when the host wants to narrow it. */\n readonly accept?: string | undefined;\n upload(file: File, options: ChatUploadOptions): Promise<ChatUploadedFile>;\n}\n\n/** The sentence a reader sees when nothing is wired up. Exported so the test\n * asserts the SAME string the screen shows, never a paraphrase. */\nexport const ATTACHMENTS_UNAVAILABLE =\n \"Attachments aren't set up here, so this file has not been sent.\";\nexport const ATTACHMENTS_UNAVAILABLE_REMEDY =\n \"Give <ChatComposerProvider> a `files` port (your upload service) to attach files to a message.\";\n\n/**\n * The shipped default: it refuses, loudly, with the remedy — and it says so\n * ONCE per port so a reader who drops five files gets one sentence, not five.\n */\nexport function createUnavailableFilesPort(\n notifier: ChatNotifierPort,\n): ChatFilesPort {\n let announced = false;\n return {\n available: false,\n upload(): Promise<ChatUploadedFile> {\n if (!announced) {\n announced = true;\n notifier.notify({\n level: \"warning\",\n message: ATTACHMENTS_UNAVAILABLE,\n remedy: ATTACHMENTS_UNAVAILABLE_REMEDY,\n });\n }\n return Promise.reject(new Error(ATTACHMENTS_UNAVAILABLE));\n },\n };\n}\n\n\nexport function tooLargeSentence(name: string, limitBytes: number): string {\n return `${name} is larger than the ${formatFileSize(limitBytes)} limit for this chat, so it has not been attached.`;\n}\n","/**\n * THE REACT-LAYER PORTS — shared scaffolding, owned by no single lane.\n *\n * The kernel's ports (`src/ports.ts`) are framework-free by construction: a\n * transport, a persistence binding and a prefs store have no React in them.\n * These three DO, because their return value is pixels or their default reads\n * the DOM, so they live here rather than polluting layer 1.\n *\n * Per THE ALL-INCLUSIVE LAW every port here ships a working default. A host\n * that injects nothing still gets a correct, honest screen.\n *\n * 🚨 ADDING A PORT: a port that nothing in the package CALLS is untested theory\n * that rots. `nav`, `shell`, `renderModelRef` and `capabilities` are named in\n * the design and are deliberately ABSENT until the lane that calls them lands —\n * the same rule phase 1 followed.\n *\n * `files` and `voice` USED to live in lane 2B's own `<ChatComposerProvider>`\n * context, because the lane contract forbade 2B editing this shared file while\n * 2A and 2C were in flight. Design §5 shows ONE port map, and at the lane merge\n * that is what they became: both are fields here, defaulted once by\n * `<ChatProvider>`. `<ChatComposerProvider>` survives as a scoped OVERRIDE — a\n * host with two composers on one page (a docked chat and a floating one) can\n * still give them different upload services — and it now inherits these\n * defaults instead of building a second set.\n */\n\nimport { humanizeIdentifier } from \"@ai-matrx/kit/text-case\";\nimport type { ReactNode } from \"react\";\n\nimport type { ChatRole } from \"../model\";\nimport type { ChatNotifierPort, ChatPrefsPort } from \"../ports\";\nimport type { ChatFilesPort } from \"./composer/files\";\nimport type { ChatQuicksetPort } from \"./plugins/quickset\";\nimport type { ChatVoicePort } from \"./composer/voice-port\";\n\n/**\n * One piece of content to turn into pixels.\n *\n * `kind` is the discriminator: `\"markdown\"` for ordinary prose, or the\n * content-IR kind name for a `render-block` part. A renderer that does not know\n * a kind must render the text honestly rather than nothing — a blank region is\n * the silent failure Law 4 forbids.\n */\nexport interface ChatContentRequest {\n kind: string;\n /** The text to render. Always present; empty string for a data-only block. */\n text: string;\n /** A render block's structured payload, when it carried one. */\n data?: unknown;\n /** True while the producing turn is still streaming — renderers must be\n * incremental and must never reflow the whole transcript per token. */\n streaming: boolean;\n role: ChatRole;\n messageId: string;\n}\n\n/**\n * THE `renderContent` PORT (design §6 — the one deliberate scope cut).\n *\n * `components/mardown-display` is 108,271 lines rendering in agent apps,\n * workflows, notes, print and the studio. Absorbing it would triple this\n * package and violate C8 on its face, so it is a SEAM with a working default\n * and a named retirement path, not an absorption.\n *\n * The default this package ships is the minimal SAFE one (plain text with\n * fenced code preserved, never HTML injection). The rich default — content-IR\n * kind routing plus a real markdown renderer — is lane 2b's, and a host's own\n * pipeline is what it injects during its migration.\n */\nexport type ChatRenderContentPort = (request: ChatContentRequest) => ReactNode;\n\n/**\n * THE `toolLabel` PORT — what a tool call is CALLED in front of a reader.\n *\n * A tool's name is a machine identifier (`workflow_catalog`, `web_search`). A\n * Creator watching an agent spend their money is owed a sentence, not a symbol:\n * the live review of 2026-09-18 read \"workflow_catalog Done Done\" at eye level\n * in the Conductor. The host that OWNS the tools owns their words, so this is a\n * port — and because a port with no default is a hole, the package ships a\n * humanizer (`humanizeToolName`) rather than the raw identifier. A host whose\n * tools have real names injects them; one that does not at least never shows\n * `snake_case` to a person.\n *\n * The machine name is not lost: it stays on the chip as `data-tool`, which is\n * what tests, the census and Developer Mode read.\n */\nexport type ChatToolLabelPort = (toolName: string) => string;\n\n/** What the model picker is handed on every render. */\nexport interface ChatModelPickerContext {\n className: string;\n}\n\n/**\n * THE `modelPicker` PORT (design §5.1 capability 4) — phase 4.\n *\n * `ModelListDropdown` has NOT moved into `@ai-matrx/agents/catalog/react` yet,\n * and until it does this package cannot render a model list without inventing\n * a roster — which would be the fifth picker on the platform, the exact thing\n * the picker ruling forbids. So the host renders its own here, the package\n * positions it, and `null` means the surface does not choose a model and NO\n * control is drawn: absent, never dead (Law 4). When the follow-on lane moves\n * the roster into the agents package, the shipped default becomes that one\n * component and this port keeps its shape.\n */\nexport type ChatModelPickerPort = (context: ChatModelPickerContext) => ReactNode;\n\n/**\n * The shipped default: the identifier through THE humanizer\n * (`@ai-matrx/kit/text-case` `humanizeIdentifier`): `workflow_catalog` →\n * \"Workflow Catalog\". An empty name becomes \"Working…\", because a chip with no\n * name at all is the bare spinner the transcript refuses to draw.\n */\nexport function humanizeToolName(toolName: string): string {\n return humanizeIdentifier(toolName) || \"Working…\";\n}\n\n/** The React ports a `<ChatProvider>` accepts. Every one has a default. */\nexport interface ChatReactPorts {\n renderContent: ChatRenderContentPort;\n notifier: ChatNotifierPort;\n prefs: ChatPrefsPort;\n /**\n * Upload / resolve / preview. The shipped default REFUSES out loud with the\n * remedy, and the composer renders no attach button at all — absent, never\n * dead (Law 4).\n */\n files: ChatFilesPort;\n /**\n * Dictation and read-aloud. `null` means the surface has no voice, and NO\n * microphone is rendered — a greyed-out one is the dead control Law 4\n * forbids. `createBrowserAudioVoicePort()` is the platform implementation.\n */\n voice: ChatVoicePort | null;\n /** What a tool call is called in front of a reader. Defaults to\n * `humanizeToolName` — never the raw identifier. */\n toolLabel: ChatToolLabelPort;\n /**\n * The model picker, rendered by the host. `null` means this surface does not\n * choose a model and nothing is drawn — see `ChatModelPickerPort`.\n */\n modelPicker: ChatModelPickerPort | null;\n /**\n * The prompt chips a host offers above the box. `null` means it offers\n * none, and NO row is drawn — an empty band above the composer is dead\n * pixels. A chip fills the box; it never sends (see `ChatQuicksetPort`).\n */\n quickset: ChatQuicksetPort | null;\n}\n\nexport type ChatReactPortOverrides = Partial<ChatReactPorts>;\n","/**\n * PACKAGE-OWNED GLYPHS. Two of them, inline, sized in `em`, `currentColor`.\n *\n * Deliberately NOT a dependency on `@ai-matrx/icons`: two 200-byte paths do not\n * justify an edge in the sibling graph, and an icon that inherits colour and\n * size from its button is exactly what the re-skin contract needs. Lanes that\n * need a real icon set (the composer's attach/mic/send) take the dependency\n * then, at their own call site.\n */\n\nimport type { ReactNode } from \"react\";\n\nexport function ChevronRightGlyph(): ReactNode {\n return (\n <svg\n className=\"mx-chat-chevron\"\n width=\"1em\"\n height=\"1em\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.75\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n <path d=\"M6 3.5 10.5 8 6 12.5\" />\n </svg>\n );\n}\n\nexport function ArrowDownGlyph(): ReactNode {\n return (\n <svg\n width=\"1em\"\n height=\"1em\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.75\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n <path d=\"M8 3v10M3.5 8.5 8 13l4.5-4.5\" />\n </svg>\n );\n}\n","/**\n * `<ChatToolCard>` and the slot that mounts it.\n *\n * 🚨 HOW THIS REACHES THE TRANSCRIPT WITHOUT TOUCHING IT. Lane 2A's\n * `<ChatToolChip>` is finished and pushed, and the lane contract forbids 2B\n * editing it. The transcript already ships the seam this needs:\n * `slots.renderPart` takes ONE part and may return `undefined` to fall through\n * to the package's own renderer. So:\n *\n * - a tool with NOTHING registered → the slot returns `undefined` and the\n * reader gets lane 2A's chip, byte for byte. Zero divergence on the path\n * every tool takes today.\n * - a tool WITH a renderer → this card, which keeps the chip's markup, its\n * state vocabulary and its expand behaviour, and swaps only the body.\n *\n * ✅ DEVIATION CLOSED AT THE LANE MERGE. This card used to carry its own copy\n * of the chip's header — ~20 duplicated lines, kept honest only by a test that\n * compared the two state tables. Lane 2A's chip now takes a `body` prop, so\n * this component IS that chip with a body passed in. There is one header, one\n * state table, one expand behaviour, and drift is no longer possible rather\n * than merely detectable.\n */\n\nimport { type ReactNode } from \"react\";\n\nimport type { ChatPart, ChatToolPart, ChatToolState } from \"../../model\";\nimport type { ChatPartContext } from \"../transcript/slots\";\nimport { CHAT_TOOL_STATE_LABEL, ChatToolChip } from \"../transcript/tool-chip\";\nimport { ChatToolGenericBody } from \"./generic-body\";\nimport {\n ChatToolBodyBoundary,\n type ChatToolRenderProps,\n type ChatToolRendererRegistry,\n} from \"./registry\";\n\n/**\n * The reader's words for each state — lane 2A's table, re-exported under the\n * name `/tools` publishes. Not a copy: the same object.\n */\nexport const TOOL_STATE_LABEL: Record<ChatToolState, string> = CHAT_TOOL_STATE_LABEL;\n\nconst TERMINAL: ReadonlySet<ChatToolState> = new Set<ChatToolState>([\n \"output-available\",\n \"output-error\",\n \"output-denied\",\n]);\n\nexport function toolRenderProps(part: ChatToolPart): ChatToolRenderProps {\n return {\n part,\n input: part.input,\n output: part.output,\n state: part.state,\n errorText: part.errorText,\n running: !TERMINAL.has(part.state),\n };\n}\n\nexport interface ChatToolCardProps {\n part: ChatToolPart;\n defaultExpanded: boolean;\n registry: ChatToolRendererRegistry;\n onRendererError?: ((error: Error) => void) | undefined;\n}\n\nexport function ChatToolCard(props: ChatToolCardProps): ReactNode {\n const { part, registry } = props;\n const Renderer = registry.lookup(part.toolName);\n const renderProps = toolRenderProps(part);\n\n const body =\n Renderer === undefined ? (\n <ChatToolGenericBody {...renderProps} />\n ) : (\n <ChatToolBodyBoundary\n toolName={part.toolName}\n fallback={<ChatToolGenericBody {...renderProps} />}\n {...(props.onRendererError === undefined\n ? {}\n : { onError: props.onRendererError })}\n >\n <Renderer {...renderProps} />\n </ChatToolBodyBoundary>\n );\n\n return (\n <ChatToolChip\n part={part}\n defaultExpanded={props.defaultExpanded}\n body={body}\n rendererTag={Renderer === undefined ? \"generic\" : \"registered\"}\n />\n );\n}\n\n/**\n * Build the `renderPart` slot that mounts this registry.\n *\n * ```tsx\n * <ChatProvider thread={thread} slots={{ ...createToolRendererSlot(registry) }}>\n * ```\n *\n * Returning `undefined` for everything else is load-bearing: the transcript's\n * fall-through is what keeps a host's tool registry from silently blanking a\n * part type it never thought about.\n */\nexport function createToolRendererSlot(\n registry: ChatToolRendererRegistry,\n options: {\n defaultExpanded?: boolean | undefined;\n onRendererError?: ((error: Error) => void) | undefined;\n } = {},\n): {\n renderPart(part: ChatPart, context: ChatPartContext): ReactNode | undefined;\n} {\n return {\n renderPart(part) {\n if (part.type !== \"tool\") return undefined;\n if (registry.lookup(part.toolName) === undefined) return undefined;\n return (\n <ChatToolCard\n part={part}\n registry={registry}\n defaultExpanded={options.defaultExpanded ?? false}\n {...(options.onRendererError === undefined\n ? {}\n : { onRendererError: options.onRendererError })}\n />\n );\n },\n };\n}\n"],"mappings":"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","names":["jsx","jsxs","useState","useEffect","useMemo","useRef","useState","useEffect","Fragment","jsx","jsxs","jsx","jsxs","jsx","jsx","Fragment","jsx","jsxs","useState","beat","jsx"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "@ai-matrx/design-system";
|
|
4
|
+
function ShimmerText({ text, className }) {
|
|
5
|
+
return /* @__PURE__ */ jsx(
|
|
6
|
+
"span",
|
|
7
|
+
{
|
|
8
|
+
className: cn(
|
|
9
|
+
"inline-block bg-clip-text text-transparent bg-[length:200%_100%] animate-shimmer",
|
|
10
|
+
className
|
|
11
|
+
),
|
|
12
|
+
style: {
|
|
13
|
+
backgroundImage: "linear-gradient(90deg, hsl(var(--muted-foreground) / 0.3) 0%, hsl(var(--foreground)) 50%, hsl(var(--muted-foreground) / 0.3) 100%)"
|
|
14
|
+
},
|
|
15
|
+
children: text
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
ShimmerText
|
|
21
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Access-gate CORE — isomorphic, no React, no browser client.
|
|
3
|
+
*
|
|
4
|
+
* The pure half of the P7 access primitive: the `AccessLevel` type, the
|
|
5
|
+
* `ResourceAccess` shape, the ordering helpers, and `resolveResourceAccess`
|
|
6
|
+
* (which takes an explicit Supabase client). Safe to import from BOTH server
|
|
7
|
+
* (`requireAccess`) and client (`useAccess`) code — it pulls in neither `react`
|
|
8
|
+
* nor the browser Supabase client, so it never forces a "use client" boundary or
|
|
9
|
+
* leaks browser globals into a Server Component.
|
|
10
|
+
*
|
|
11
|
+
* Backed by the `public.get_resource_access` SECURITY DEFINER RPC — registry-
|
|
12
|
+
* driven, resolving the SAME model RLS enforces (owner, grants, org, membership,
|
|
13
|
+
* reachability, public). This is the UX layer; RLS is still the boundary.
|
|
14
|
+
*/
|
|
15
|
+
import type { SupabaseClient } from "@supabase/supabase-js";
|
|
16
|
+
type ResourceAccessClient = Pick<SupabaseClient, "rpc">;
|
|
17
|
+
/** The four access tiers, ordered `none < view < edit < admin`. */
|
|
18
|
+
export type AccessLevel = "none" | "view" | "edit" | "admin";
|
|
19
|
+
export interface ResourceAccess {
|
|
20
|
+
/** Highest capability the current caller has on the resource. */
|
|
21
|
+
level: AccessLevel;
|
|
22
|
+
/** True when the caller owns the resource row (`created_by`/owner column). */
|
|
23
|
+
isOwner: boolean;
|
|
24
|
+
/** False when the resource id doesn't exist or the type isn't registered. */
|
|
25
|
+
exists: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface ResolveResourceAccessOptions {
|
|
28
|
+
/**
|
|
29
|
+
* Propagate an access-RPC failure to the caller. Use this for server readers
|
|
30
|
+
* that must distinguish an unavailable access service from denied access.
|
|
31
|
+
*/
|
|
32
|
+
strict?: boolean;
|
|
33
|
+
}
|
|
34
|
+
/** True when `level` meets or exceeds `required` (none < view < edit < admin). */
|
|
35
|
+
export declare function accessSatisfies(level: AccessLevel, required: AccessLevel): boolean;
|
|
36
|
+
/** Convenience: can this level edit? (edit or admin). */
|
|
37
|
+
export declare function canEditAccess(level: AccessLevel): boolean;
|
|
38
|
+
/** Convenience: can this level at least view? (view, edit, or admin). */
|
|
39
|
+
export declare function canViewAccess(level: AccessLevel): boolean;
|
|
40
|
+
export declare const NO_ACCESS: ResourceAccess;
|
|
41
|
+
/**
|
|
42
|
+
* Resolve the current caller's access to a resource using the given Supabase
|
|
43
|
+
* client (browser or SSR). By default, failures resolve to no-access. Set
|
|
44
|
+
* `options.strict` when a caller must surface access-service failures instead
|
|
45
|
+
* of rendering an access-denied state. Callers usually reach this via
|
|
46
|
+
* `useAccess` (client) or `requireAccess`/`resolveAccess` (server) rather than
|
|
47
|
+
* directly.
|
|
48
|
+
*/
|
|
49
|
+
export declare function resolveResourceAccess(client: ResourceAccessClient, resourceType: string, resourceId: string, options?: ResolveResourceAccessOptions): Promise<ResourceAccess>;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
const ACCESS_RANK = {
|
|
2
|
+
none: 0,
|
|
3
|
+
view: 1,
|
|
4
|
+
edit: 2,
|
|
5
|
+
admin: 3
|
|
6
|
+
};
|
|
7
|
+
function accessSatisfies(level, required) {
|
|
8
|
+
return ACCESS_RANK[level] >= ACCESS_RANK[required];
|
|
9
|
+
}
|
|
10
|
+
function canEditAccess(level) {
|
|
11
|
+
return accessSatisfies(level, "edit");
|
|
12
|
+
}
|
|
13
|
+
function canViewAccess(level) {
|
|
14
|
+
return accessSatisfies(level, "view");
|
|
15
|
+
}
|
|
16
|
+
const NO_ACCESS = {
|
|
17
|
+
level: "none",
|
|
18
|
+
isOwner: false,
|
|
19
|
+
exists: false
|
|
20
|
+
};
|
|
21
|
+
function parseAccess(data) {
|
|
22
|
+
if (data && typeof data === "object" && !Array.isArray(data)) {
|
|
23
|
+
const o = data;
|
|
24
|
+
const level = o.level;
|
|
25
|
+
if ((level === "view" || level === "edit" || level === "admin" || level === "none") && typeof o.is_owner === "boolean" && typeof o.exists === "boolean") {
|
|
26
|
+
return {
|
|
27
|
+
level,
|
|
28
|
+
isOwner: o.is_owner,
|
|
29
|
+
exists: o.exists
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
async function resolveResourceAccess(client, resourceType, resourceId, options = {}) {
|
|
36
|
+
if (!resourceType || !resourceId) return NO_ACCESS;
|
|
37
|
+
try {
|
|
38
|
+
const { data, error } = await client.rpc("get_resource_access", {
|
|
39
|
+
p_resource_type: resourceType,
|
|
40
|
+
p_resource_id: resourceId
|
|
41
|
+
});
|
|
42
|
+
if (error) {
|
|
43
|
+
if (options.strict) throw error;
|
|
44
|
+
return NO_ACCESS;
|
|
45
|
+
}
|
|
46
|
+
const access = parseAccess(data);
|
|
47
|
+
if (!access) {
|
|
48
|
+
if (options.strict) {
|
|
49
|
+
throw new Error("get_resource_access returned a malformed response");
|
|
50
|
+
}
|
|
51
|
+
return NO_ACCESS;
|
|
52
|
+
}
|
|
53
|
+
return access;
|
|
54
|
+
} catch (error) {
|
|
55
|
+
if (options.strict) throw error;
|
|
56
|
+
return NO_ACCESS;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
NO_ACCESS,
|
|
61
|
+
accessSatisfies,
|
|
62
|
+
canEditAccess,
|
|
63
|
+
canViewAccess,
|
|
64
|
+
resolveResourceAccess
|
|
65
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* addressWithoutNavigating — THE one way to change the address bar without a
|
|
3
|
+
* navigation (lane URL-STATE, 2026-09-24; born in lane PANEL-REMOUNT).
|
|
4
|
+
*
|
|
5
|
+
* Query state (`?view=`, `?panels=`, `?tab=`, a selected row, a filter) is
|
|
6
|
+
* bookkeeping about the page you are on, never a new page. `router.replace` /
|
|
7
|
+
* `router.push` are App Router NAVIGATIONS: each one fetches a fresh RSC
|
|
8
|
+
* payload for the route (a `?_rsc=` request, a server round trip) and, on
|
|
9
|
+
* commit, can remount the page — measured on /data/[tableId]: one `?_rsc=`
|
|
10
|
+
* request per layout switch, and before PANEL-REMOUNT the whole grid re-read.
|
|
11
|
+
*
|
|
12
|
+
* `history.pushState` / `history.replaceState` are patched by Next's app
|
|
13
|
+
* router: called with a state object that does NOT carry `__NA`, the patch
|
|
14
|
+
* copies Next's own tree state onto the new entry and dispatches a `restore`,
|
|
15
|
+
* so `useSearchParams` / `usePathname` hold the new URL with no server round
|
|
16
|
+
* trip and no remount. Back/forward still work (Next owns the entry).
|
|
17
|
+
*
|
|
18
|
+
* 🚨 This module always passes `null`. Passing `window.history.state` (the
|
|
19
|
+
* old habit) forwards Next's `__NA` marker, which SKIPS the patch: the address
|
|
20
|
+
* bar changes while `useSearchParams` keeps the old value.
|
|
21
|
+
*
|
|
22
|
+
* Use the router for a REAL route change (another page), or when the server
|
|
23
|
+
* component of the current route reads the changed param from `searchParams`
|
|
24
|
+
* — only a navigation re-renders server output. Everything else comes here.
|
|
25
|
+
* Guard: eslint `matrx/no-navigation-for-query-state`.
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* Replace the current history entry's address. No navigation, no RSC fetch.
|
|
29
|
+
*
|
|
30
|
+
* A HASH-ONLY change skips Next's patch on purpose: nothing Next exposes
|
|
31
|
+
* (`usePathname`, `useSearchParams`, `useParams`) reads the hash, yet the
|
|
32
|
+
* patch's `restore` hands every `useSearchParams` reader a new object, so each
|
|
33
|
+
* write re-rendered all of them. A canvas writing its camera to `#cam=` while
|
|
34
|
+
* panning paid that per write — over a second per pointer move on a board of
|
|
35
|
+
* fifteen heavy tiles, so the board froze while panning (2026-10-01). Forwarding
|
|
36
|
+
* the entry's own state keeps Next's `__NA` tree on it (Back still works).
|
|
37
|
+
*/
|
|
38
|
+
export declare function replaceAddressWithoutNavigating(href: string | URL): void;
|
|
39
|
+
/** Push a new history entry (Back returns to the old address). No navigation, no RSC fetch. */
|
|
40
|
+
export declare function pushAddressWithoutNavigating(href: string | URL): void;
|
|
41
|
+
/**
|
|
42
|
+
* The current path (and hash) carrying `search` as its query — the usual
|
|
43
|
+
* argument for the two writers above. An empty query drops the `?`.
|
|
44
|
+
*/
|
|
45
|
+
export declare function currentPathWithSearch(search: URLSearchParams | string): string;
|
|
46
|
+
/** Just enough of Next's router for the two helpers below (and their tests). */
|
|
47
|
+
export interface AddressRouter {
|
|
48
|
+
push: (href: string, options?: {
|
|
49
|
+
scroll?: boolean;
|
|
50
|
+
}) => void;
|
|
51
|
+
replace: (href: string, options?: {
|
|
52
|
+
scroll?: boolean;
|
|
53
|
+
}) => void;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* For a caller that names its page by a literal path (`/tasks?task=…`) but
|
|
57
|
+
* can also render somewhere else (a window panel over another page): on that
|
|
58
|
+
* page the change is query state, so no navigation; anywhere else it is a real
|
|
59
|
+
* route change, so the router carries it exactly as before (`options` are the
|
|
60
|
+
* router's, passed through unchanged).
|
|
61
|
+
*/
|
|
62
|
+
export declare function replaceAddressOrNavigate(router: AddressRouter, href: string, options?: {
|
|
63
|
+
scroll?: boolean;
|
|
64
|
+
}): void;
|
|
65
|
+
/** The push twin of {@link replaceAddressOrNavigate}. */
|
|
66
|
+
export declare function pushAddressOrNavigate(router: AddressRouter, href: string, options?: {
|
|
67
|
+
scroll?: boolean;
|
|
68
|
+
}): void;
|