@vertesia/ui 1.0.0-dev.20260128.144200 → 1.0.0-dev.20260225.024852Z
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/lib/esm/core/components/InputList.js +1 -1
- package/lib/esm/core/components/InputList.js.map +1 -1
- package/lib/esm/core/components/Overlay.js +1 -1
- package/lib/esm/core/components/Overlay.js.map +1 -1
- package/lib/esm/core/components/SidePanel.js +8 -2
- package/lib/esm/core/components/SidePanel.js.map +1 -1
- package/lib/esm/core/components/Switch.js +1 -1
- package/lib/esm/core/components/Switch.js.map +1 -1
- package/lib/esm/core/components/index.js +0 -8
- package/lib/esm/core/components/index.js.map +1 -1
- package/lib/esm/core/components/shadcn/MessageBox.js.map +1 -0
- package/lib/esm/core/components/shadcn/Panel.js +13 -0
- package/lib/esm/core/components/shadcn/Panel.js.map +1 -0
- package/lib/esm/core/components/{Badge.js → shadcn/badge.js} +2 -2
- package/lib/esm/core/components/shadcn/badge.js.map +1 -0
- package/lib/esm/core/components/shadcn/command.js +1 -1
- package/lib/esm/core/components/shadcn/command.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/filterBar.js +73 -83
- package/lib/esm/core/components/shadcn/filters/filterBar.js.map +1 -1
- package/lib/esm/core/components/shadcn/index.js +4 -2
- package/lib/esm/core/components/shadcn/index.js.map +1 -1
- package/lib/esm/core/components/shadcn/modal/ConfirmModal.js +10 -0
- package/lib/esm/core/components/shadcn/modal/ConfirmModal.js.map +1 -0
- package/lib/esm/core/components/{DeleteModal.js → shadcn/modal/DeleteModal.js} +1 -1
- package/lib/esm/core/components/shadcn/modal/DeleteModal.js.map +1 -0
- package/lib/esm/core/components/shadcn/{dialog.js → modal/dialog.js} +19 -15
- package/lib/esm/core/components/shadcn/modal/dialog.js.map +1 -0
- package/lib/esm/core/components/shadcn/modal/index.js +4 -0
- package/lib/esm/core/components/shadcn/modal/index.js.map +1 -0
- package/lib/esm/core/components/shadcn/popover.js +4 -2
- package/lib/esm/core/components/shadcn/popover.js.map +1 -1
- package/lib/esm/core/components/shadcn/selectBox.js +19 -15
- package/lib/esm/core/components/shadcn/selectBox.js.map +1 -1
- package/lib/esm/core/components/shadcn/tabs.js +16 -14
- package/lib/esm/core/components/shadcn/tabs.js.map +1 -1
- package/lib/esm/core/components/shadcn/textarea.js +30 -2
- package/lib/esm/core/components/shadcn/textarea.js.map +1 -1
- package/lib/esm/core/components/shadcn/tooltip.js +5 -1
- package/lib/esm/core/components/shadcn/tooltip.js.map +1 -1
- package/lib/esm/features/agent/PayloadBuilder.js +45 -0
- package/lib/esm/features/agent/PayloadBuilder.js.map +1 -1
- package/lib/esm/features/agent/chat/AgentChart.js +12 -232
- package/lib/esm/features/agent/chat/AgentChart.js.map +1 -1
- package/lib/esm/features/agent/chat/AskUserWidget.js +2 -1
- package/lib/esm/features/agent/chat/AskUserWidget.js.map +1 -1
- package/lib/esm/features/agent/chat/DocumentPanel.js +46 -0
- package/lib/esm/features/agent/chat/DocumentPanel.js.map +1 -0
- package/lib/esm/features/agent/chat/DocumentTabBar.js +17 -0
- package/lib/esm/features/agent/chat/DocumentTabBar.js.map +1 -0
- package/lib/esm/features/agent/chat/ModernAgentConversation.js +159 -402
- package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +99 -57
- package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js +4 -4
- package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +4 -4
- package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +3 -3
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +25 -22
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +110 -55
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js +2 -2
- package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js +146 -55
- package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +5 -6
- package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js +110 -2
- package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js.map +1 -1
- package/lib/esm/features/agent/chat/SkillWidgetProvider.js +28 -15
- package/lib/esm/features/agent/chat/SkillWidgetProvider.js.map +1 -1
- package/lib/esm/features/agent/chat/hooks/useAgentPlans.js +146 -0
- package/lib/esm/features/agent/chat/hooks/useAgentPlans.js.map +1 -0
- package/lib/esm/features/agent/chat/hooks/useAgentStream.js +180 -0
- package/lib/esm/features/agent/chat/hooks/useAgentStream.js.map +1 -0
- package/lib/esm/features/agent/chat/hooks/useDocumentPanel.js +100 -0
- package/lib/esm/features/agent/chat/hooks/useDocumentPanel.js.map +1 -0
- package/lib/esm/features/agent/chat/hooks/useFileProcessing.js +90 -0
- package/lib/esm/features/agent/chat/hooks/useFileProcessing.js.map +1 -0
- package/lib/esm/features/agent/chat/index.js +6 -5
- package/lib/esm/features/agent/chat/index.js.map +1 -1
- package/lib/esm/features/agent/chat/types/document.js +2 -0
- package/lib/esm/features/agent/chat/types/document.js.map +1 -0
- package/lib/esm/features/agent/index.js +0 -2
- package/lib/esm/features/agent/index.js.map +1 -1
- package/lib/esm/features/store/collections/BrowseCollectionView.js +4 -6
- package/lib/esm/features/store/collections/BrowseCollectionView.js.map +1 -1
- package/lib/esm/features/store/collections/CreateCollection.js +4 -4
- package/lib/esm/features/store/collections/CreateCollection.js.map +1 -1
- package/lib/esm/features/store/collections/EditCollectionView.js +1 -1
- package/lib/esm/features/store/collections/EditCollectionView.js.map +1 -1
- package/lib/esm/features/store/objects/DocumentSearchResults.js +5 -5
- package/lib/esm/features/store/objects/DocumentSearchResults.js.map +1 -1
- package/lib/esm/features/store/objects/ExportPropertiesModal.js +3 -3
- package/lib/esm/features/store/objects/ExportPropertiesModal.js.map +1 -1
- package/lib/esm/features/store/objects/components/ContentOverview.js +19 -120
- package/lib/esm/features/store/objects/components/ContentOverview.js.map +1 -1
- package/lib/esm/features/store/objects/components/PropertiesEditorModal.js +1 -1
- package/lib/esm/features/store/objects/components/PropertiesEditorModal.js.map +1 -1
- package/lib/esm/features/store/objects/components/SelectDocumentModal.js +2 -2
- package/lib/esm/features/store/objects/components/SelectDocumentModal.js.map +1 -1
- package/lib/esm/features/store/objects/components/VectorSearchWidget.js +1 -1
- package/lib/esm/features/store/objects/components/VectorSearchWidget.js.map +1 -1
- package/lib/esm/features/store/objects/components/index.js +1 -1
- package/lib/esm/features/store/objects/components/index.js.map +1 -1
- package/lib/esm/features/store/objects/components/useDownloadFile.js +192 -0
- package/lib/esm/features/store/objects/components/useDownloadFile.js.map +1 -0
- package/lib/esm/features/store/objects/search/DocumentSearchContext.js +1 -2
- package/lib/esm/features/store/objects/search/DocumentSearchContext.js.map +1 -1
- package/lib/esm/features/store/objects/selection/SelectionActions.js +5 -8
- package/lib/esm/features/store/objects/selection/SelectionActions.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +4 -4
- package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js +2 -2
- package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js +1 -1
- package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js +3 -3
- package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js.map +1 -1
- package/lib/esm/features/store/objects/upload/DocumentUploadModal.js +13 -13
- package/lib/esm/features/store/objects/upload/DocumentUploadModal.js.map +1 -1
- package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js +15 -8
- package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js.map +1 -1
- package/lib/esm/features/store/types/ObjectSchemaEditor.js +6 -5
- package/lib/esm/features/store/types/ObjectSchemaEditor.js.map +1 -1
- package/lib/esm/features/store/types/SelectContentType.js +3 -3
- package/lib/esm/features/store/types/SelectContentType.js.map +1 -1
- package/lib/esm/features/store/types/SelectContentTypeModal.js +5 -4
- package/lib/esm/features/store/types/SelectContentTypeModal.js.map +1 -1
- package/lib/esm/features/store/types/TableLayoutEditor.js +4 -4
- package/lib/esm/features/store/types/TableLayoutEditor.js.map +1 -1
- package/lib/esm/features/user/UserInfo.js +73 -9
- package/lib/esm/features/user/UserInfo.js.map +1 -1
- package/lib/esm/features/utils/print.js +0 -1
- package/lib/esm/features/utils/print.js.map +1 -1
- package/lib/esm/layout/AppLayout.js +3 -4
- package/lib/esm/layout/AppLayout.js.map +1 -1
- package/lib/esm/layout/Sidebar.js +5 -5
- package/lib/esm/layout/Sidebar.js.map +1 -1
- package/lib/esm/router/HistoryNavigator.js +7 -1
- package/lib/esm/router/HistoryNavigator.js.map +1 -1
- package/lib/esm/router/Nav.js +2 -2
- package/lib/esm/router/Nav.js.map +1 -1
- package/lib/esm/session/UserSession.js +35 -9
- package/lib/esm/session/UserSession.js.map +1 -1
- package/lib/esm/session/UserSessionProvider.js +3 -2
- package/lib/esm/session/UserSessionProvider.js.map +1 -1
- package/lib/esm/shell/apps/AppProjectSelector.js +2 -2
- package/lib/esm/shell/apps/AppProjectSelector.js.map +1 -1
- package/lib/esm/shell/apps/StandaloneApp.js +2 -2
- package/lib/esm/shell/apps/StandaloneApp.js.map +1 -1
- package/lib/esm/shell/login/InviteAcceptModal.js +2 -2
- package/lib/esm/shell/login/InviteAcceptModal.js.map +1 -1
- package/lib/esm/shell/login/SignInModal.js +1 -1
- package/lib/esm/shell/login/SignInModal.js.map +1 -1
- package/lib/esm/shell/login/SignupForm.js +2 -2
- package/lib/esm/shell/login/SignupForm.js.map +1 -1
- package/lib/esm/shell/login/UserInfo.js +2 -2
- package/lib/esm/shell/login/UserInfo.js.map +1 -1
- package/lib/esm/widgets/json-view/JSONCode.js +1 -1
- package/lib/esm/widgets/json-view/JSONCode.js.map +1 -1
- package/lib/esm/widgets/json-view/JSONDisplay.js +1 -1
- package/lib/esm/widgets/json-view/JSONDisplay.js.map +1 -1
- package/lib/esm/widgets/markdown/ArtifactContentRenderer.js +84 -13
- package/lib/esm/widgets/markdown/ArtifactContentRenderer.js.map +1 -1
- package/lib/esm/widgets/markdown/MarkdownFigure.js +40 -0
- package/lib/esm/widgets/markdown/MarkdownFigure.js.map +1 -0
- package/lib/esm/widgets/markdown/MarkdownRenderer.js +42 -7
- package/lib/esm/widgets/markdown/MarkdownRenderer.js.map +1 -1
- package/lib/esm/widgets/markdown/MermaidDiagram.js +80 -5
- package/lib/esm/widgets/markdown/MermaidDiagram.js.map +1 -1
- package/lib/esm/widgets/markdown/codeBlockHandlers.js +33 -33
- package/lib/esm/widgets/markdown/codeBlockHandlers.js.map +1 -1
- package/lib/esm/widgets/markdown/codeBlockHandlers.test.js +2 -29
- package/lib/esm/widgets/markdown/codeBlockHandlers.test.js.map +1 -1
- package/lib/esm/widgets/markdown/index.js +1 -0
- package/lib/esm/widgets/markdown/index.js.map +1 -1
- package/lib/esm/widgets/markdown/normalizeCustomSchemeLinks.js +77 -0
- package/lib/esm/widgets/markdown/normalizeCustomSchemeLinks.js.map +1 -0
- package/lib/esm/widgets/markdown/normalizeDirectives.js +45 -0
- package/lib/esm/widgets/markdown/normalizeDirectives.js.map +1 -0
- package/lib/esm/widgets/markdown/remarkDirectiveHandler.js +96 -0
- package/lib/esm/widgets/markdown/remarkDirectiveHandler.js.map +1 -0
- package/lib/esm/widgets/monacoEditor/MonacoEditor.js +8 -14
- package/lib/esm/widgets/monacoEditor/MonacoEditor.js.map +1 -1
- package/lib/esm/widgets/schema-editor/ManagedSchema.js.map +1 -1
- package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js +3 -3
- package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js.map +1 -1
- package/lib/esm/widgets/schema-editor/json-schema4-utils.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/core/components/SidePanel.d.ts +4 -1
- package/lib/types/core/components/SidePanel.d.ts.map +1 -1
- package/lib/types/core/components/index.d.ts +0 -8
- package/lib/types/core/components/index.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/MessageBox.d.ts.map +1 -0
- package/lib/types/core/components/{Panel.d.ts → shadcn/Panel.d.ts} +3 -1
- package/lib/types/core/components/shadcn/Panel.d.ts.map +1 -0
- package/lib/types/core/components/{Badge.d.ts → shadcn/badge.d.ts} +4 -4
- package/lib/types/core/components/shadcn/badge.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/button.d.ts +1 -1
- package/lib/types/core/components/shadcn/filters/filterBar.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/index.d.ts +4 -2
- package/lib/types/core/components/shadcn/index.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/input.d.ts +1 -1
- package/lib/types/core/components/shadcn/modal/ConfirmModal.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/modal/DeleteModal.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/{dialog.d.ts → modal/dialog.d.ts} +7 -4
- package/lib/types/core/components/shadcn/modal/dialog.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/modal/index.d.ts +4 -0
- package/lib/types/core/components/shadcn/modal/index.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/popover.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/selectBox.d.ts +9 -5
- package/lib/types/core/components/shadcn/selectBox.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/tabs.d.ts +14 -5
- package/lib/types/core/components/shadcn/tabs.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/textarea.d.ts +6 -2
- package/lib/types/core/components/shadcn/textarea.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/tooltip.d.ts.map +1 -1
- package/lib/types/features/agent/PayloadBuilder.d.ts +22 -4
- package/lib/types/features/agent/PayloadBuilder.d.ts.map +1 -1
- package/lib/types/features/agent/chat/AgentChart.d.ts +3 -44
- package/lib/types/features/agent/chat/AgentChart.d.ts.map +1 -1
- package/lib/types/features/agent/chat/AskUserWidget.d.ts.map +1 -1
- package/lib/types/features/agent/chat/DocumentPanel.d.ts +16 -0
- package/lib/types/features/agent/chat/DocumentPanel.d.ts.map +1 -0
- package/lib/types/features/agent/chat/DocumentTabBar.d.ts +10 -0
- package/lib/types/features/agent/chat/DocumentTabBar.d.ts.map +1 -0
- package/lib/types/features/agent/chat/ModernAgentConversation.d.ts +69 -1
- package/lib/types/features/agent/chat/ModernAgentConversation.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +36 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/BatchProgressPanel.d.ts +18 -2
- package/lib/types/features/agent/chat/ModernAgentOutput/BatchProgressPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +4 -7
- package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts +2 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts +35 -7
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts +11 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts +20 -2
- package/lib/types/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts +18 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts.map +1 -1
- package/lib/types/features/agent/chat/SkillWidgetProvider.d.ts.map +1 -1
- package/lib/types/features/agent/chat/hooks/useAgentPlans.d.ts +22 -0
- package/lib/types/features/agent/chat/hooks/useAgentPlans.d.ts.map +1 -0
- package/lib/types/features/agent/chat/hooks/useAgentStream.d.ts +42 -0
- package/lib/types/features/agent/chat/hooks/useAgentStream.d.ts.map +1 -0
- package/lib/types/features/agent/chat/hooks/useDocumentPanel.d.ts +22 -0
- package/lib/types/features/agent/chat/hooks/useDocumentPanel.d.ts.map +1 -0
- package/lib/types/features/agent/chat/hooks/useFileProcessing.d.ts +27 -0
- package/lib/types/features/agent/chat/hooks/useFileProcessing.d.ts.map +1 -0
- package/lib/types/features/agent/chat/index.d.ts +12 -8
- package/lib/types/features/agent/chat/index.d.ts.map +1 -1
- package/lib/types/features/agent/chat/types/document.d.ts +5 -0
- package/lib/types/features/agent/chat/types/document.d.ts.map +1 -0
- package/lib/types/features/agent/index.d.ts +0 -2
- package/lib/types/features/agent/index.d.ts.map +1 -1
- package/lib/types/features/store/collections/BrowseCollectionView.d.ts.map +1 -1
- package/lib/types/features/store/objects/ExportPropertiesModal.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/ContentOverview.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/index.d.ts +1 -1
- package/lib/types/features/store/objects/components/index.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/useDownloadFile.d.ts +35 -0
- package/lib/types/features/store/objects/components/useDownloadFile.d.ts.map +1 -0
- package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/SelectionActions.d.ts +1 -1
- package/lib/types/features/store/objects/selection/SelectionActions.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts.map +1 -1
- package/lib/types/features/store/types/ObjectSchemaEditor.d.ts +2 -1
- package/lib/types/features/store/types/ObjectSchemaEditor.d.ts.map +1 -1
- package/lib/types/features/store/types/SelectContentTypeModal.d.ts +1 -1
- package/lib/types/features/store/types/SelectContentTypeModal.d.ts.map +1 -1
- package/lib/types/features/store/types/TableLayoutEditor.d.ts +2 -1
- package/lib/types/features/store/types/TableLayoutEditor.d.ts.map +1 -1
- package/lib/types/features/user/UserInfo.d.ts +12 -1
- package/lib/types/features/user/UserInfo.d.ts.map +1 -1
- package/lib/types/features/utils/print.d.ts.map +1 -1
- package/lib/types/layout/AppLayout.d.ts.map +1 -1
- package/lib/types/layout/Sidebar.d.ts +4 -2
- package/lib/types/layout/Sidebar.d.ts.map +1 -1
- package/lib/types/router/HistoryNavigator.d.ts.map +1 -1
- package/lib/types/router/Nav.d.ts +6 -1
- package/lib/types/router/Nav.d.ts.map +1 -1
- package/lib/types/session/UserSession.d.ts.map +1 -1
- package/lib/types/session/UserSessionProvider.d.ts +1 -0
- package/lib/types/session/UserSessionProvider.d.ts.map +1 -1
- package/lib/types/widgets/json-view/JSONCode.d.ts.map +1 -1
- package/lib/types/widgets/markdown/ArtifactContentRenderer.d.ts +10 -1
- package/lib/types/widgets/markdown/ArtifactContentRenderer.d.ts.map +1 -1
- package/lib/types/widgets/markdown/MarkdownFigure.d.ts +15 -0
- package/lib/types/widgets/markdown/MarkdownFigure.d.ts.map +1 -0
- package/lib/types/widgets/markdown/MarkdownRenderer.d.ts.map +1 -1
- package/lib/types/widgets/markdown/MermaidDiagram.d.ts.map +1 -1
- package/lib/types/widgets/markdown/codeBlockHandlers.d.ts +5 -2
- package/lib/types/widgets/markdown/codeBlockHandlers.d.ts.map +1 -1
- package/lib/types/widgets/markdown/index.d.ts +1 -0
- package/lib/types/widgets/markdown/index.d.ts.map +1 -1
- package/lib/types/widgets/markdown/normalizeCustomSchemeLinks.d.ts +9 -0
- package/lib/types/widgets/markdown/normalizeCustomSchemeLinks.d.ts.map +1 -0
- package/lib/types/widgets/markdown/normalizeDirectives.d.ts +20 -0
- package/lib/types/widgets/markdown/normalizeDirectives.d.ts.map +1 -0
- package/lib/types/widgets/markdown/remarkDirectiveHandler.d.ts +2 -0
- package/lib/types/widgets/markdown/remarkDirectiveHandler.d.ts.map +1 -0
- package/lib/types/widgets/monacoEditor/MonacoEditor.d.ts +1 -3
- package/lib/types/widgets/monacoEditor/MonacoEditor.d.ts.map +1 -1
- package/lib/types/widgets/schema-editor/ManagedSchema.d.ts +1 -1
- package/lib/types/widgets/schema-editor/ManagedSchema.d.ts.map +1 -1
- package/lib/vertesia-ui-core.js +1 -1
- package/lib/vertesia-ui-core.js.map +1 -1
- package/lib/vertesia-ui-features.js +1 -1
- package/lib/vertesia-ui-features.js.map +1 -1
- package/lib/vertesia-ui-layout.js +1 -1
- package/lib/vertesia-ui-layout.js.map +1 -1
- package/lib/vertesia-ui-router.js +1 -1
- package/lib/vertesia-ui-router.js.map +1 -1
- package/lib/vertesia-ui-session.js +1 -1
- package/lib/vertesia-ui-session.js.map +1 -1
- package/lib/vertesia-ui-shell.js +1 -1
- package/lib/vertesia-ui-shell.js.map +1 -1
- package/lib/vertesia-ui-widgets.js +1 -1
- package/lib/vertesia-ui-widgets.js.map +1 -1
- package/package.json +14 -10
- package/src/core/components/InputList.tsx +1 -1
- package/src/core/components/Overlay.tsx +1 -1
- package/src/core/components/SidePanel.tsx +29 -15
- package/src/core/components/Switch.tsx +1 -1
- package/src/core/components/index.ts +0 -8
- package/src/core/components/shadcn/Panel.tsx +50 -0
- package/src/core/components/{Badge.tsx → shadcn/badge.tsx} +3 -3
- package/src/core/components/shadcn/command.tsx +1 -1
- package/src/core/components/shadcn/filters/filterBar.tsx +76 -87
- package/src/core/components/shadcn/index.ts +5 -3
- package/src/core/components/{ConfirmModal.tsx → shadcn/modal/ConfirmModal.tsx} +8 -8
- package/src/core/components/{DeleteModal.tsx → shadcn/modal/DeleteModal.tsx} +1 -1
- package/src/core/components/shadcn/{dialog.tsx → modal/dialog.tsx} +43 -32
- package/src/core/components/shadcn/modal/index.ts +3 -0
- package/src/core/components/shadcn/popover.tsx +4 -2
- package/src/core/components/shadcn/selectBox.tsx +71 -52
- package/src/core/components/shadcn/tabs.tsx +36 -19
- package/src/core/components/shadcn/textarea.tsx +43 -2
- package/src/core/components/shadcn/tooltip.tsx +23 -17
- package/src/features/agent/PayloadBuilder.tsx +70 -9
- package/src/features/agent/chat/AgentChart.tsx +46 -678
- package/src/features/agent/chat/AskUserWidget.tsx +4 -3
- package/src/features/agent/chat/DocumentPanel.tsx +120 -0
- package/src/features/agent/chat/DocumentTabBar.tsx +49 -0
- package/src/features/agent/chat/ModernAgentConversation.tsx +403 -549
- package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx +162 -55
- package/src/features/agent/chat/ModernAgentOutput/BatchProgressPanel.tsx +40 -10
- package/src/features/agent/chat/ModernAgentOutput/Header.tsx +12 -16
- package/src/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.tsx +3 -3
- package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +68 -75
- package/src/features/agent/chat/ModernAgentOutput/MessageItem.tsx +206 -94
- package/src/features/agent/chat/ModernAgentOutput/StreamingMessage.tsx +22 -5
- package/src/features/agent/chat/ModernAgentOutput/ToolCallGroup.tsx +295 -113
- package/src/features/agent/chat/ModernAgentOutput/WorkstreamTabs.tsx +11 -8
- package/src/features/agent/chat/ModernAgentOutput/utils.ts +133 -4
- package/src/features/agent/chat/SkillWidgetProvider.tsx +32 -15
- package/src/features/agent/chat/hooks/useAgentPlans.ts +190 -0
- package/src/features/agent/chat/hooks/useAgentStream.ts +239 -0
- package/src/features/agent/chat/hooks/useDocumentPanel.ts +118 -0
- package/src/features/agent/chat/hooks/useFileProcessing.ts +126 -0
- package/src/features/agent/chat/index.ts +18 -17
- package/src/features/agent/chat/types/document.ts +4 -0
- package/src/features/agent/index.ts +0 -2
- package/src/features/store/collections/BrowseCollectionView.tsx +5 -8
- package/src/features/store/collections/CreateCollection.tsx +8 -8
- package/src/features/store/collections/EditCollectionView.tsx +1 -1
- package/src/features/store/objects/DocumentSearchResults.tsx +9 -13
- package/src/features/store/objects/ExportPropertiesModal.tsx +9 -7
- package/src/features/store/objects/components/ContentOverview.tsx +29 -155
- package/src/features/store/objects/components/PropertiesEditorModal.tsx +0 -1
- package/src/features/store/objects/components/SelectDocumentModal.tsx +6 -6
- package/src/features/store/objects/components/VectorSearchWidget.tsx +2 -2
- package/src/features/store/objects/components/index.ts +1 -1
- package/src/features/store/objects/components/useDownloadFile.ts +237 -0
- package/src/features/store/objects/search/DocumentSearchContext.ts +1 -2
- package/src/features/store/objects/selection/SelectionActions.tsx +0 -4
- package/src/features/store/objects/selection/actions/AddToCollectionAction.tsx +13 -13
- package/src/features/store/objects/selection/actions/ChangeTypeAction.tsx +2 -6
- package/src/features/store/objects/selection/actions/ExportPropertiesAction.tsx +1 -3
- package/src/features/store/objects/selection/actions/StartWorkflowComponent.tsx +8 -8
- package/src/features/store/objects/upload/DocumentUploadModal.tsx +25 -25
- package/src/features/store/objects/upload/useSmartFileUploadProcessing.ts +16 -10
- package/src/features/store/types/ObjectSchemaEditor.tsx +32 -29
- package/src/features/store/types/SelectContentType.tsx +3 -3
- package/src/features/store/types/SelectContentTypeModal.tsx +17 -30
- package/src/features/store/types/TableLayoutEditor.tsx +14 -18
- package/src/features/user/UserInfo.tsx +176 -10
- package/src/features/utils/print.ts +0 -1
- package/src/layout/AppLayout.tsx +16 -44
- package/src/layout/Sidebar.tsx +7 -5
- package/src/router/HistoryNavigator.ts +9 -1
- package/src/router/Nav.tsx +7 -2
- package/src/session/UserSession.ts +38 -9
- package/src/session/UserSessionProvider.tsx +3 -2
- package/src/shell/apps/AppProjectSelector.tsx +2 -2
- package/src/shell/apps/StandaloneApp.tsx +3 -3
- package/src/shell/login/InviteAcceptModal.tsx +6 -6
- package/src/shell/login/SignInModal.tsx +1 -1
- package/src/shell/login/SignupForm.tsx +3 -3
- package/src/shell/login/UserInfo.tsx +5 -5
- package/src/widgets/json-view/JSONCode.tsx +1 -3
- package/src/widgets/json-view/JSONDisplay.tsx +1 -1
- package/src/widgets/markdown/ArtifactContentRenderer.tsx +115 -14
- package/src/widgets/markdown/MarkdownFigure.tsx +100 -0
- package/src/widgets/markdown/MarkdownRenderer.tsx +62 -9
- package/src/widgets/markdown/MermaidDiagram.tsx +97 -5
- package/src/widgets/markdown/codeBlockHandlers.test.tsx +3 -34
- package/src/widgets/markdown/codeBlockHandlers.tsx +47 -42
- package/src/widgets/markdown/index.ts +1 -0
- package/src/widgets/markdown/markdown.css +192 -0
- package/src/widgets/markdown/normalizeCustomSchemeLinks.test.ts +86 -0
- package/src/widgets/markdown/normalizeCustomSchemeLinks.ts +91 -0
- package/src/widgets/markdown/normalizeDirectives.ts +50 -0
- package/src/widgets/markdown/remarkDirectiveHandler.ts +119 -0
- package/src/widgets/monacoEditor/MonacoEditor.tsx +8 -22
- package/src/widgets/schema-editor/ManagedSchema.ts +1 -1
- package/src/widgets/schema-editor/editor/PropertyEditor.tsx +5 -5
- package/src/widgets/schema-editor/json-schema4-utils.ts +1 -1
- package/lib/esm/core/components/Badge.js.map +0 -1
- package/lib/esm/core/components/Button.js +0 -32
- package/lib/esm/core/components/Button.js.map +0 -1
- package/lib/esm/core/components/ConfirmModal.js +0 -10
- package/lib/esm/core/components/ConfirmModal.js.map +0 -1
- package/lib/esm/core/components/DeleteModal.js.map +0 -1
- package/lib/esm/core/components/MessageBox.js.map +0 -1
- package/lib/esm/core/components/Modal.js +0 -26
- package/lib/esm/core/components/Modal.js.map +0 -1
- package/lib/esm/core/components/Panel.js +0 -8
- package/lib/esm/core/components/Panel.js.map +0 -1
- package/lib/esm/core/components/SelectBox.js +0 -67
- package/lib/esm/core/components/SelectBox.js.map +0 -1
- package/lib/esm/core/components/shadcn/dialog.js.map +0 -1
- package/lib/esm/core/components/tabs/Tabs.js +0 -78
- package/lib/esm/core/components/tabs/Tabs.js.map +0 -1
- package/lib/esm/core/components/tabs/TabsContext.js +0 -7
- package/lib/esm/core/components/tabs/TabsContext.js.map +0 -1
- package/lib/esm/core/components/tabs/index.js +0 -3
- package/lib/esm/core/components/tabs/index.js.map +0 -1
- package/lib/esm/features/agent/createChartTool.js +0 -632
- package/lib/esm/features/agent/createChartTool.js.map +0 -1
- package/lib/esm/features/agent/examples.js +0 -295
- package/lib/esm/features/agent/examples.js.map +0 -1
- package/lib/esm/features/agent/visualization.js +0 -165
- package/lib/esm/features/agent/visualization.js.map +0 -1
- package/lib/esm/features/store/objects/components/useDownloadObject.js +0 -21
- package/lib/esm/features/store/objects/components/useDownloadObject.js.map +0 -1
- package/lib/types/core/components/Badge.d.ts.map +0 -1
- package/lib/types/core/components/Button.d.ts +0 -14
- package/lib/types/core/components/Button.d.ts.map +0 -1
- package/lib/types/core/components/ConfirmModal.d.ts.map +0 -1
- package/lib/types/core/components/DeleteModal.d.ts.map +0 -1
- package/lib/types/core/components/MessageBox.d.ts.map +0 -1
- package/lib/types/core/components/Modal.d.ts +0 -30
- package/lib/types/core/components/Modal.d.ts.map +0 -1
- package/lib/types/core/components/Panel.d.ts.map +0 -1
- package/lib/types/core/components/SelectBox.d.ts +0 -36
- package/lib/types/core/components/SelectBox.d.ts.map +0 -1
- package/lib/types/core/components/shadcn/dialog.d.ts.map +0 -1
- package/lib/types/core/components/tabs/Tabs.d.ts +0 -25
- package/lib/types/core/components/tabs/Tabs.d.ts.map +0 -1
- package/lib/types/core/components/tabs/TabsContext.d.ts +0 -17
- package/lib/types/core/components/tabs/TabsContext.d.ts.map +0 -1
- package/lib/types/core/components/tabs/index.d.ts +0 -3
- package/lib/types/core/components/tabs/index.d.ts.map +0 -1
- package/lib/types/features/agent/createChartTool.d.ts +0 -178
- package/lib/types/features/agent/createChartTool.d.ts.map +0 -1
- package/lib/types/features/agent/examples.d.ts +0 -59
- package/lib/types/features/agent/examples.d.ts.map +0 -1
- package/lib/types/features/agent/visualization.d.ts +0 -95
- package/lib/types/features/agent/visualization.d.ts.map +0 -1
- package/lib/types/features/store/objects/components/useDownloadObject.d.ts +0 -4
- package/lib/types/features/store/objects/components/useDownloadObject.d.ts.map +0 -1
- package/src/core/components/Button.tsx +0 -63
- package/src/core/components/Modal.tsx +0 -144
- package/src/core/components/Panel.tsx +0 -34
- package/src/core/components/SelectBox.tsx +0 -188
- package/src/core/components/tabs/Tabs.tsx +0 -132
- package/src/core/components/tabs/TabsContext.ts +0 -25
- package/src/core/components/tabs/index.ts +0 -2
- package/src/features/agent/CHART_INSTRUCTIONS.md +0 -228
- package/src/features/agent/createChartTool.ts +0 -643
- package/src/features/agent/examples.ts +0 -321
- package/src/features/agent/visualization.ts +0 -227
- package/src/features/store/objects/components/useDownloadObject.ts +0 -29
- /package/lib/esm/core/components/{MessageBox.js → shadcn/MessageBox.js} +0 -0
- /package/lib/types/core/components/{MessageBox.d.ts → shadcn/MessageBox.d.ts} +0 -0
- /package/lib/types/core/components/{ConfirmModal.d.ts → shadcn/modal/ConfirmModal.d.ts} +0 -0
- /package/lib/types/core/components/{DeleteModal.d.ts → shadcn/modal/DeleteModal.d.ts} +0 -0
- /package/src/core/components/{MessageBox.tsx → shadcn/MessageBox.tsx} +0 -0
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AsyncExecutionResult, VertesiaClient } from "@vertesia/client";
|
|
3
|
+
import { ConversationFile, Plan } from "@vertesia/common";
|
|
4
|
+
import { type AgentConversationViewMode } from "./ModernAgentOutput/AllMessagesMixed";
|
|
5
|
+
import { type BatchProgressPanelClassNames } from "./ModernAgentOutput/BatchProgressPanel";
|
|
6
|
+
import { type MessageItemClassNames } from "./ModernAgentOutput/MessageItem";
|
|
7
|
+
import { type StreamingMessageClassNames } from "./ModernAgentOutput/StreamingMessage";
|
|
8
|
+
import { type ToolCallGroupClassNames } from "./ModernAgentOutput/ToolCallGroup";
|
|
3
9
|
import { UploadedFile, SelectedDocument } from "./ModernAgentOutput/MessageInput";
|
|
4
10
|
export type StartWorkflowFn = (initialMessage?: string) => Promise<{
|
|
5
11
|
run_id: string;
|
|
@@ -31,6 +37,27 @@ interface ModernAgentConversationProps {
|
|
|
31
37
|
acceptedFileTypes?: string;
|
|
32
38
|
/** Max number of files allowed */
|
|
33
39
|
maxFiles?: number;
|
|
40
|
+
/** Ref populated with the internal file upload handler for external triggering */
|
|
41
|
+
fileUploadRef?: React.MutableRefObject<((files: File[]) => void) | null>;
|
|
42
|
+
/** Called when processingFiles state changes (for external progress display) */
|
|
43
|
+
onProcessingFilesChange?: (files: Map<string, ConversationFile>) => void;
|
|
44
|
+
/** Called when plans change (for external plan panel) */
|
|
45
|
+
onPlansChange?: (plans: Array<{
|
|
46
|
+
plan: Plan;
|
|
47
|
+
timestamp: number;
|
|
48
|
+
}>, activePlanIndex: number) => void;
|
|
49
|
+
/** Called when workstream status changes (for external plan panel) */
|
|
50
|
+
onWorkstreamStatusChange?: (statusMap: Map<number, Map<string, "pending" | "in_progress" | "completed" | "skipped">>) => void;
|
|
51
|
+
/** Controlled view mode — when provided, overrides internal state */
|
|
52
|
+
viewMode?: AgentConversationViewMode;
|
|
53
|
+
/** Called when view mode changes (for external control) */
|
|
54
|
+
onViewModeChange?: (mode: AgentConversationViewMode) => void;
|
|
55
|
+
/** Called when follow-up input availability is determined (after messages load) */
|
|
56
|
+
onShowInputChange?: (canSendFollowUp: boolean) => void;
|
|
57
|
+
/** Ref populated with the stop handler — call to interrupt the active agent. null when stop unavailable. */
|
|
58
|
+
stopRef?: React.MutableRefObject<(() => void) | null>;
|
|
59
|
+
/** Called when the stopping (in-progress) state changes */
|
|
60
|
+
onStoppingChange?: (isStopping: boolean) => void;
|
|
34
61
|
/** Render custom document search UI - if provided, shows search button */
|
|
35
62
|
renderDocumentSearch?: (props: {
|
|
36
63
|
isOpen: boolean;
|
|
@@ -42,7 +69,19 @@ interface ModernAgentConversationProps {
|
|
|
42
69
|
/** Called when user removes a selected document */
|
|
43
70
|
onRemoveDocument?: (docId: string) => void;
|
|
44
71
|
hideObjectLinking?: boolean;
|
|
45
|
-
|
|
72
|
+
/** Hide the internal header (for apps that render their own) */
|
|
73
|
+
hideHeader?: boolean;
|
|
74
|
+
/** Hide the internal message input (for apps that render their own) */
|
|
75
|
+
hideMessageInput?: boolean;
|
|
76
|
+
/** Hide the internal plan panel (for apps that render their own) */
|
|
77
|
+
hidePlanPanel?: boolean;
|
|
78
|
+
/** Hide workstream tabs */
|
|
79
|
+
hideWorkstreamTabs?: boolean;
|
|
80
|
+
/** Hide the default file upload */
|
|
81
|
+
hideFileUpload?: boolean;
|
|
82
|
+
/** Hide the document preview panel that auto-opens on create_document */
|
|
83
|
+
hideDocumentPanel?: boolean;
|
|
84
|
+
getAttachedDocs?: () => SelectedDocument[];
|
|
46
85
|
onAttachmentsSent?: () => void;
|
|
47
86
|
isUploading?: boolean;
|
|
48
87
|
getMessageContext?: () => Record<string, unknown> | undefined;
|
|
@@ -50,6 +89,35 @@ interface ModernAgentConversationProps {
|
|
|
50
89
|
inputContainerClassName?: string;
|
|
51
90
|
/** Additional className for the input field */
|
|
52
91
|
inputClassName?: string;
|
|
92
|
+
/** Additional className for the root container */
|
|
93
|
+
className?: string;
|
|
94
|
+
messageItemClassNames?: MessageItemClassNames;
|
|
95
|
+
/** Sparse MESSAGE_STYLES overrides passed to every MessageItem */
|
|
96
|
+
messageStyleOverrides?: import("./ModernAgentOutput/MessageItem").MessageItemProps['messageStyleOverrides'];
|
|
97
|
+
toolCallGroupClassNames?: ToolCallGroupClassNames;
|
|
98
|
+
/** Hide ToolCallGroup in this view mode */
|
|
99
|
+
hideToolCallsInViewMode?: AgentConversationViewMode[];
|
|
100
|
+
streamingMessageClassNames?: StreamingMessageClassNames;
|
|
101
|
+
batchProgressPanelClassNames?: BatchProgressPanelClassNames;
|
|
102
|
+
/** className override for the working indicator container */
|
|
103
|
+
workingIndicatorClassName?: string;
|
|
104
|
+
/** className override for the message list container */
|
|
105
|
+
messageListClassName?: string;
|
|
106
|
+
/** Custom component to render store/document links instead of default NavLink navigation */
|
|
107
|
+
StoreLinkComponent?: React.ComponentType<{
|
|
108
|
+
href: string;
|
|
109
|
+
documentId: string;
|
|
110
|
+
children: React.ReactNode;
|
|
111
|
+
}>;
|
|
112
|
+
/** Custom component to render store/collection links instead of default NavLink navigation */
|
|
113
|
+
CollectionLinkComponent?: React.ComponentType<{
|
|
114
|
+
href: string;
|
|
115
|
+
collectionId: string;
|
|
116
|
+
children: React.ReactNode;
|
|
117
|
+
}>;
|
|
118
|
+
/** Optional message to display as the first user message in the conversation.
|
|
119
|
+
* Purely visual/UI — not sent to temporal. Renders as a QUESTION MessageItem before real messages. */
|
|
120
|
+
prependFriendlyMessage?: string;
|
|
53
121
|
/**
|
|
54
122
|
* Data to provide to fusion-fragment code blocks for rendering.
|
|
55
123
|
* When provided, fusion-fragments in agent responses will display
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernAgentConversation.d.ts","sourceRoot":"","sources":["../../../../../src/features/agent/chat/ModernAgentConversation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"ModernAgentConversation.d.ts","sourceRoot":"","sources":["../../../../../src/features/agent/chat/ModernAgentConversation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAGH,gBAAgB,EAEhB,IAAI,EAEP,MAAM,kBAAkB,CAAC;AAK1B,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAIjF,OAAqB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAahG,MAAM,MAAM,eAAe,GAAG,CAC1B,cAAc,CAAC,EAAE,MAAM,KACtB,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAAC,CAAC;AA8ClE,UAAU,4BAA4B;IAClC,GAAG,CAAC,EAAE,oBAAoB,GAAG;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC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B,2CAyBtC;AAopCD,wBAAsB,kBAAkB,CACpC,QAAQ,EAAE,cAAc,EACxB,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,MAAM,CAAC,CAIjB"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { AgentMessage, Plan } from "@vertesia/common";
|
|
2
2
|
import React from "react";
|
|
3
|
+
export type AgentConversationViewMode = "stacked" | "sliding";
|
|
4
|
+
import { type BatchProgressPanelClassNames } from "./BatchProgressPanel";
|
|
5
|
+
import { type MessageItemClassNames, type MessageItemProps } from "./MessageItem";
|
|
6
|
+
import { type StreamingMessageClassNames } from "./StreamingMessage";
|
|
7
|
+
import { type ToolCallGroupClassNames } from "./ToolCallGroup";
|
|
3
8
|
import { StreamingData } from "./utils";
|
|
4
9
|
interface AllMessagesMixedProps {
|
|
5
10
|
messages: AgentMessage[];
|
|
@@ -22,8 +27,38 @@ interface AllMessagesMixedProps {
|
|
|
22
27
|
onSendMessage?: (message: string) => void;
|
|
23
28
|
/** Stable index for thinking messages (changes on 4s interval) */
|
|
24
29
|
thinkingMessageIndex?: number;
|
|
30
|
+
/** className overrides passed to every MessageItem */
|
|
31
|
+
messageItemClassNames?: MessageItemClassNames;
|
|
32
|
+
/** Sparse MESSAGE_STYLES overrides passed to every MessageItem */
|
|
33
|
+
messageStyleOverrides?: MessageItemProps['messageStyleOverrides'];
|
|
34
|
+
toolCallGroupClassNames?: ToolCallGroupClassNames;
|
|
35
|
+
/** Hide ToolCallGroup in this view mode */
|
|
36
|
+
hideToolCallsInViewMode?: AgentConversationViewMode[];
|
|
37
|
+
streamingMessageClassNames?: StreamingMessageClassNames;
|
|
38
|
+
batchProgressPanelClassNames?: BatchProgressPanelClassNames;
|
|
39
|
+
/** Hide the workstream tabs entirely */
|
|
40
|
+
hideWorkstreamTabs?: boolean;
|
|
41
|
+
/** className override for the working indicator container */
|
|
42
|
+
workingIndicatorClassName?: string;
|
|
43
|
+
/** className override for the message list container (spacing/layout) */
|
|
44
|
+
messageListClassName?: string;
|
|
45
|
+
/** Custom component to render store/document links instead of default NavLink navigation */
|
|
46
|
+
StoreLinkComponent?: React.ComponentType<{
|
|
47
|
+
href: string;
|
|
48
|
+
documentId: string;
|
|
49
|
+
children: React.ReactNode;
|
|
50
|
+
}>;
|
|
51
|
+
/** Custom component to render store/collection links instead of default NavLink navigation */
|
|
52
|
+
CollectionLinkComponent?: React.ComponentType<{
|
|
53
|
+
href: string;
|
|
54
|
+
collectionId: string;
|
|
55
|
+
children: React.ReactNode;
|
|
56
|
+
}>;
|
|
57
|
+
/** Optional message to display as the first user message in the conversation.
|
|
58
|
+
* Purely visual/UI — not sent to temporal. Renders as a QUESTION MessageItem before real messages. */
|
|
59
|
+
prependFriendlyMessage?: string;
|
|
25
60
|
}
|
|
26
|
-
declare function AllMessagesMixedComponent({ messages, bottomRef, viewMode, isCompleted, streamingMessages, onSendMessage, thinkingMessageIndex, }: AllMessagesMixedProps): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
declare function AllMessagesMixedComponent({ messages, bottomRef, viewMode, isCompleted, streamingMessages, onSendMessage, thinkingMessageIndex, messageItemClassNames, messageStyleOverrides, toolCallGroupClassNames, hideToolCallsInViewMode, streamingMessageClassNames, batchProgressPanelClassNames, hideWorkstreamTabs, workingIndicatorClassName, messageListClassName, StoreLinkComponent, CollectionLinkComponent, prependFriendlyMessage, }: AllMessagesMixedProps): import("react/jsx-runtime").JSX.Element;
|
|
27
62
|
declare const AllMessagesMixed: React.MemoExoticComponent<typeof AllMessagesMixedComponent>;
|
|
28
63
|
export default AllMessagesMixed;
|
|
29
64
|
//# sourceMappingURL=AllMessagesMixed.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AllMessagesMixed.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA0C,IAAI,EAAE,MAAM,kBAAkB,CAA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iBAAS,yBAAyB,CAAC,EAC/B,QAAQ,EACR,SAAS,EACT,QAAoB,EACpB,WAAmB,EACnB,iBAA6B,EAC7B,aAAa,EACb,oBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,4BAA4B,EAC5B,kBAAkB,EAClB,yBAAyB,EACzB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,GACzB,EAAE,qBAAqB,2CA6jBvB;AAED,QAAA,MAAM,gBAAgB,6DAAwC,CAAC;AAE/D,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
import { AgentMessage, BatchProgressDetails } from "@vertesia/common";
|
|
2
|
-
interface BatchProgressPanelProps {
|
|
2
|
+
export interface BatchProgressPanelProps {
|
|
3
3
|
message: AgentMessage;
|
|
4
4
|
batchData: BatchProgressDetails;
|
|
5
5
|
isRunning?: boolean;
|
|
6
|
+
/** Additional className for the root container */
|
|
7
|
+
className?: string;
|
|
8
|
+
/** Additional className for the header row */
|
|
9
|
+
headerClassName?: string;
|
|
10
|
+
/** Additional className for the sender label */
|
|
11
|
+
senderClassName?: string;
|
|
12
|
+
/** Additional className for the progress bar section */
|
|
13
|
+
progressBarClassName?: string;
|
|
14
|
+
/** Additional className for the expanded item list */
|
|
15
|
+
itemListClassName?: string;
|
|
16
|
+
/** Additional className for individual item rows */
|
|
17
|
+
itemClassName?: string;
|
|
18
|
+
/** Additional className for the collapsed summary */
|
|
19
|
+
summaryClassName?: string;
|
|
6
20
|
}
|
|
7
|
-
|
|
21
|
+
/** className overrides for BatchProgressPanel — subset of BatchProgressPanelProps containing only className props. */
|
|
22
|
+
export type BatchProgressPanelClassNames = Partial<Pick<BatchProgressPanelProps, 'className' | 'headerClassName' | 'senderClassName' | 'progressBarClassName' | 'itemListClassName' | 'itemClassName' | 'summaryClassName'>>;
|
|
23
|
+
declare function BatchProgressPanelComponent({ message, batchData, isRunning, className, headerClassName, senderClassName, progressBarClassName, itemListClassName, itemClassName, summaryClassName, }: BatchProgressPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
8
24
|
declare const BatchProgressPanel: import("react").MemoExoticComponent<typeof BatchProgressPanelComponent>;
|
|
9
25
|
export default BatchProgressPanel;
|
|
10
26
|
//# sourceMappingURL=BatchProgressPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BatchProgressPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/ModernAgentOutput/BatchProgressPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAmB,MAAM,kBAAkB,CAAC;AAevF,
|
|
1
|
+
{"version":3,"file":"BatchProgressPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/ModernAgentOutput/BatchProgressPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAmB,MAAM,kBAAkB,CAAC;AAevF,MAAM,WAAW,uBAAuB;IACpC,OAAO,EAAE,YAAY,CAAC;IACtB,SAAS,EAAE,oBAAoB,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gDAAgD;IAChD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,wDAAwD;IACxD,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sDAAsD;IACtD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,oDAAoD;IACpD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,sHAAsH;AACtH,MAAM,MAAM,4BAA4B,GAAG,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAC3E,WAAW,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,sBAAsB,GAC5E,mBAAmB,GAAG,eAAe,GAAG,kBAAkB,CAAC,CAAC,CAAC;AAEjE,iBAAS,2BAA2B,CAAC,EACjC,OAAO,EACP,SAAS,EACT,SAAiB,EACjB,SAAS,EACT,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EACb,gBAAgB,GACnB,EAAE,uBAAuB,2CAmMzB;AAGD,QAAA,MAAM,kBAAkB,yEAMtB,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { AsyncExecutionResult } from "@vertesia/client";
|
|
2
|
+
import { type AgentConversationViewMode } from "./AllMessagesMixed";
|
|
2
3
|
export interface HeaderProps {
|
|
3
4
|
title: string;
|
|
4
5
|
isCompleted: boolean;
|
|
5
6
|
onClose?: () => void;
|
|
6
7
|
isModal: boolean;
|
|
7
8
|
run: AsyncExecutionResult;
|
|
8
|
-
viewMode:
|
|
9
|
-
onViewModeChange: (mode:
|
|
9
|
+
viewMode: AgentConversationViewMode;
|
|
10
|
+
onViewModeChange: (mode: AgentConversationViewMode) => void;
|
|
10
11
|
showPlanPanel: boolean;
|
|
11
12
|
hasPlan?: boolean;
|
|
12
13
|
onTogglePlanPanel: () => void;
|
|
@@ -18,10 +19,6 @@ export interface HeaderProps {
|
|
|
18
19
|
isReceivingChunks?: boolean;
|
|
19
20
|
/** Additional className for the outer container */
|
|
20
21
|
className?: string;
|
|
21
|
-
/** Additional className for the title section */
|
|
22
|
-
titleClassName?: string;
|
|
23
|
-
/** Additional className for the actions section */
|
|
24
|
-
actionsClassName?: string;
|
|
25
22
|
}
|
|
26
|
-
export default function Header({ title, onClose, isModal, run, viewMode, onViewModeChange, showPlanPanel, hasPlan, onTogglePlanPanel, onDownload, onCopyRunId, resetWorkflow, onExportPdf, isReceivingChunks, className,
|
|
23
|
+
export default function Header({ title, onClose, isModal, run, viewMode, onViewModeChange, showPlanPanel, hasPlan, onTogglePlanPanel, onDownload, onCopyRunId, resetWorkflow, onExportPdf, isReceivingChunks, className, }: HeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
27
24
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/ModernAgentOutput/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/ModernAgentOutput/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAKxD,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAGpE,MAAM,WAAW,WAAW;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,oBAAoB,CAAC;IAC1B,QAAQ,EAAE,yBAAyB,CAAC;IACpC,gBAAgB,EAAE,CAAC,IAAI,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC5D,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,2DAA2D;IAC3D,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC3B,KAAK,EACL,OAAO,EACP,OAAO,EACP,GAAG,EACH,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,OAAe,EACf,iBAAiB,EACjB,UAAU,EACV,WAAW,EACX,aAAa,EACb,WAAW,EACX,iBAAyB,EACzB,SAAS,GACZ,EAAE,WAAW,2CAoEb"}
|
|
@@ -51,11 +51,12 @@ interface MessageInputProps {
|
|
|
51
51
|
/** Called when user removes a selected document */
|
|
52
52
|
onRemoveDocument?: (docId: string) => void;
|
|
53
53
|
hideObjectLinking?: boolean;
|
|
54
|
+
hideFileUpload?: boolean;
|
|
54
55
|
/** Additional className for the container */
|
|
55
56
|
className?: string;
|
|
56
57
|
/** Additional className for the input field */
|
|
57
58
|
inputClassName?: string;
|
|
58
59
|
}
|
|
59
|
-
export default function MessageInput({ onSend, onStop, disabled, isSending, isStopping, isStreaming, isCompleted, activeTaskCount, placeholder, onFilesSelected, uploadedFiles, onRemoveFile, acceptedFileTypes, maxFiles, processingFiles, hasProcessingFiles, renderDocumentSearch, selectedDocuments, onRemoveDocument, hideObjectLinking,
|
|
60
|
+
export default function MessageInput({ onSend, onStop, disabled, isSending, isStopping, isStreaming, isCompleted, activeTaskCount, placeholder, onFilesSelected, uploadedFiles, onRemoveFile, acceptedFileTypes, maxFiles, processingFiles, hasProcessingFiles, renderDocumentSearch, selectedDocuments, onRemoveDocument, hideObjectLinking, hideFileUpload, className, }: MessageInputProps): import("react/jsx-runtime").JSX.Element;
|
|
60
61
|
export {};
|
|
61
62
|
//# sourceMappingURL=MessageInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/ModernAgentOutput/MessageInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAwB,MAAM,kBAAkB,CAAC;AAG1E,6CA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0E;IAC1E,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE;QAC3B,MAAM,EAAE,OAAO,CAAC;QAChB,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,QAAQ,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAC;KAC7C,KAAK,KAAK,CAAC,SAAS,CAAC;IACtB,+CAA+C;IAC/C,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACvC,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAG3C,iBAAiB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/ModernAgentOutput/MessageInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAwB,MAAM,kBAAkB,CAAC;AAG1E,6CAA6C;AAC7C,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mEAAmE;IACnE,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,iDAAiD;AACjD,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,iBAAiB;IACvB,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,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,EACN,QAAgB,EAChB,SAAiB,EACjB,UAAkB,EAClB,WAAmB,EACnB,WAAmB,EACnB,eAAmB,EACnB,WAAoC,EAEpC,eAAe,EACf,aAAkB,EAClB,YAAY,EACZ,iBAAqF,EACrF,QAAY,EACZ,eAAe,EACf,kBAA0B,EAE1B,oBAAoB,EACpB,iBAAsB,EACtB,gBAAgB,EAEhB,iBAAyB,EAEzB,cAAsB,EAEtB,SAAS,GACZ,EAAE,iBAAiB,2CAubnB"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { AgentMessage } from "@vertesia/common";
|
|
1
|
+
import { AgentMessage, AgentMessageType } from "@vertesia/common";
|
|
2
|
+
import { type LucideIcon } from "lucide-react";
|
|
2
3
|
import React from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
showPulsatingCircle?: boolean;
|
|
6
|
-
/** Callback when user sends a message (e.g., from proposal selection) */
|
|
7
|
-
onSendMessage?: (message: string) => void;
|
|
4
|
+
/** className overrides for MessageItem — single source of truth for all className overrides. */
|
|
5
|
+
export interface MessageItemClassNames {
|
|
8
6
|
/** Additional className for the outer container */
|
|
9
7
|
className?: string;
|
|
10
8
|
/** Additional className for the card wrapper */
|
|
@@ -23,8 +21,38 @@ export interface MessageItemProps {
|
|
|
23
21
|
detailsClassName?: string;
|
|
24
22
|
/** Additional className for the artifacts section */
|
|
25
23
|
artifactsClassName?: string;
|
|
24
|
+
/** Additional className for the prose/markdown wrapper */
|
|
25
|
+
proseClassName?: string;
|
|
26
|
+
}
|
|
27
|
+
/** Per-message-type visual config (border, bg, icon color, sender label, icon component, optional className overrides). */
|
|
28
|
+
export interface MessageStyleConfig extends MessageItemClassNames {
|
|
29
|
+
borderColor: string;
|
|
30
|
+
iconColor: string;
|
|
31
|
+
sender: string;
|
|
32
|
+
Icon: LucideIcon;
|
|
33
|
+
}
|
|
34
|
+
export interface MessageItemProps extends MessageItemClassNames {
|
|
35
|
+
message: AgentMessage;
|
|
36
|
+
showPulsatingCircle?: boolean;
|
|
37
|
+
/** Callback when user sends a message (e.g., from proposal selection) */
|
|
38
|
+
onSendMessage?: (message: string) => void;
|
|
39
|
+
/** Sparse per-type overrides for MESSAGE_STYLES (deep-merged with defaults) */
|
|
40
|
+
messageStyleOverrides?: Partial<Record<AgentMessageType | 'default', Partial<MessageStyleConfig>>>;
|
|
41
|
+
/** Custom component to render store/document links instead of default NavLink navigation */
|
|
42
|
+
StoreLinkComponent?: React.ComponentType<{
|
|
43
|
+
href: string;
|
|
44
|
+
documentId: string;
|
|
45
|
+
children: React.ReactNode;
|
|
46
|
+
}>;
|
|
47
|
+
/** Custom component to render store/collection links instead of default NavLink navigation */
|
|
48
|
+
CollectionLinkComponent?: React.ComponentType<{
|
|
49
|
+
href: string;
|
|
50
|
+
collectionId: string;
|
|
51
|
+
children: React.ReactNode;
|
|
52
|
+
}>;
|
|
26
53
|
}
|
|
27
|
-
declare
|
|
54
|
+
export declare const MESSAGE_STYLES: Record<AgentMessageType | 'default', MessageStyleConfig>;
|
|
55
|
+
declare function MessageItemComponent({ message, showPulsatingCircle, onSendMessage, className, cardClassName, headerClassName, contentClassName, timestampClassName, senderClassName, iconClassName, detailsClassName, artifactsClassName, proseClassName, messageStyleOverrides, StoreLinkComponent, CollectionLinkComponent, }: MessageItemProps): import("react/jsx-runtime").JSX.Element;
|
|
28
56
|
declare const MessageItem: React.MemoExoticComponent<typeof MessageItemComponent>;
|
|
29
57
|
export default MessageItem;
|
|
30
58
|
//# sourceMappingURL=MessageItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageItem.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/ModernAgentOutput/MessageItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"MessageItem.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/ModernAgentOutput/MessageItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY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G,4FAA4F;IAC5F,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE,CAAC,CAAC;IAC1G,8FAA8F;IAC9F,uBAAuB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE,CAAC,CAAC;CACpH;AAGD,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,gBAAgB,GAAG,SAAS,EAAE,kBAAkB,CAgBnF,CAAC;AAEF,iBAAS,oBAAoB,CAAC,EAC1B,OAAO,EACP,mBAA2B,EAC3B,aAAa,EACb,SAAS,EACT,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,GAC1B,EAAE,gBAAgB,2CAgclB;AAID,QAAA,MAAM,WAAW,wDAQf,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -10,17 +10,27 @@ export interface StreamingMessageProps {
|
|
|
10
10
|
timestamp?: number | string;
|
|
11
11
|
/** Additional className for the outer container */
|
|
12
12
|
className?: string;
|
|
13
|
+
/** Additional className for the card wrapper */
|
|
14
|
+
cardClassName?: string;
|
|
13
15
|
/** Additional className for the header section */
|
|
14
16
|
headerClassName?: string;
|
|
15
17
|
/** Additional className for the content section */
|
|
16
18
|
contentClassName?: string;
|
|
19
|
+
/** Additional className for the prose/markdown container */
|
|
20
|
+
proseClassName?: string;
|
|
21
|
+
/** Additional className for the sender label */
|
|
22
|
+
senderClassName?: string;
|
|
23
|
+
/** Additional className for the icon wrapper */
|
|
24
|
+
iconClassName?: string;
|
|
17
25
|
}
|
|
26
|
+
/** className overrides for StreamingMessage — subset of StreamingMessageProps containing only className props. */
|
|
27
|
+
export type StreamingMessageClassNames = Partial<Pick<StreamingMessageProps, 'className' | 'cardClassName' | 'headerClassName' | 'contentClassName' | 'proseClassName' | 'senderClassName' | 'iconClassName'>>;
|
|
18
28
|
/**
|
|
19
29
|
* Displays a streaming message with adaptive reveal effect.
|
|
20
30
|
* Automatically adjusts speed to match the model's generation rate,
|
|
21
31
|
* creating smooth continuous text flow without bursts and pauses.
|
|
22
32
|
*/
|
|
23
|
-
declare function StreamingMessageComponent({ text, workstreamId, revealSpeed, isComplete, timestamp, className, headerClassName, contentClassName, }: StreamingMessageProps): import("react/jsx-runtime").JSX.Element | null;
|
|
33
|
+
declare function StreamingMessageComponent({ text, workstreamId, revealSpeed, isComplete, timestamp, className, cardClassName, headerClassName, contentClassName, proseClassName, senderClassName, iconClassName, }: StreamingMessageProps): import("react/jsx-runtime").JSX.Element | null;
|
|
24
34
|
declare const StreamingMessage: React.MemoExoticComponent<typeof StreamingMessageComponent>;
|
|
25
35
|
export default StreamingMessage;
|
|
26
36
|
//# sourceMappingURL=StreamingMessage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StreamingMessage.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/ModernAgentOutput/StreamingMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAWjF,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"StreamingMessage.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/ModernAgentOutput/StreamingMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAWjF,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kDAAkD;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,4DAA4D;IAC5D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gDAAgD;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,kHAAkH;AAClH,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,qBAAqB,EACvE,WAAW,GAAG,eAAe,GAAG,iBAAiB,GAAG,kBAAkB,GACtE,gBAAgB,GAAG,iBAAiB,GAAG,eAAe,CAAC,CAAC,CAAC;AAE7D;;;;GAIG;AACH,iBAAS,yBAAyB,CAAC,EAC/B,IAAI,EACJ,YAAY,EACZ,WAAiB,EACjB,UAAkB,EAClB,SAAS,EACT,SAAS,EACT,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,aAAa,GAChB,EAAE,qBAAqB,kDA4QvB;AAED,QAAA,MAAM,gBAAgB,6DAAwC,CAAC;AAE/D,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
import { AgentMessage } from "@vertesia/common";
|
|
2
2
|
import { ToolExecutionStatus } from "./utils";
|
|
3
|
-
interface ToolCallGroupProps {
|
|
3
|
+
export interface ToolCallGroupProps {
|
|
4
4
|
messages: AgentMessage[];
|
|
5
5
|
showPulsatingCircle?: boolean;
|
|
6
6
|
toolRunId?: string;
|
|
7
7
|
toolStatus?: ToolExecutionStatus;
|
|
8
|
+
/** Additional className for the root container */
|
|
9
|
+
rootClassName?: string;
|
|
10
|
+
/** Additional className for the header row */
|
|
11
|
+
headerClassName?: string;
|
|
12
|
+
/** Additional className for the sender label */
|
|
13
|
+
senderClassName?: string;
|
|
14
|
+
/** Additional className for the tool summary text */
|
|
15
|
+
toolSummaryClassName?: string;
|
|
16
|
+
/** Additional className for the tool name badge */
|
|
17
|
+
toolBadgeClassName?: string;
|
|
18
|
+
/** Additional className for individual item wrappers */
|
|
19
|
+
itemClassName?: string;
|
|
20
|
+
/** Additional className for item header rows */
|
|
21
|
+
itemHeaderClassName?: string;
|
|
22
|
+
/** Additional className for expanded item content */
|
|
23
|
+
itemContentClassName?: string;
|
|
8
24
|
}
|
|
9
|
-
|
|
25
|
+
/** className overrides for ToolCallGroup — subset of ToolCallGroupProps containing only className props. */
|
|
26
|
+
export type ToolCallGroupClassNames = Partial<Pick<ToolCallGroupProps, 'rootClassName' | 'headerClassName' | 'senderClassName' | 'toolSummaryClassName' | 'toolBadgeClassName' | 'itemClassName' | 'itemHeaderClassName' | 'itemContentClassName'>>;
|
|
27
|
+
declare function ToolCallGroupComponent({ messages, showPulsatingCircle, toolRunId: _toolRunId, toolStatus, rootClassName, headerClassName, senderClassName, toolSummaryClassName, toolBadgeClassName, itemClassName, itemHeaderClassName, itemContentClassName, }: ToolCallGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
10
28
|
declare const ToolCallGroup: import("react").MemoExoticComponent<typeof ToolCallGroupComponent>;
|
|
11
29
|
export default ToolCallGroup;
|
|
12
30
|
//# sourceMappingURL=ToolCallGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolCallGroup.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/ModernAgentOutput/ToolCallGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"ToolCallGroup.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/ModernAgentOutput/ToolCallGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAoB,MAAM,kBAAkB,CAAC;AAUlE,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AA2C9C,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,kDAAkD;IAClD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8CAA8C;IAC9C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gDAAgD;IAChD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qDAAqD;IACrD,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mDAAmD;IACnD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,wDAAwD;IACxD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gDAAgD;IAChD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,qDAAqD;IACrD,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,4GAA4G;AAC5G,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,kBAAkB,EACjE,eAAe,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,sBAAsB,GAChF,oBAAoB,GAAG,eAAe,GAAG,qBAAqB,GAAG,sBAAsB,CAAC,CAAC,CAAC;AAub9F,iBAAS,sBAAsB,CAAC,EAC5B,QAAQ,EACR,mBAA2B,EAC3B,SAAS,EAAE,UAAU,EACrB,UAAU,EACV,aAAa,EACb,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,oBAAoB,GACvB,EAAE,kBAAkB,2CAsSpB;AAGD,QAAA,MAAM,aAAa,oEAmBjB,CAAC;AAEH,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkstreamTabs.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/ModernAgentOutput/WorkstreamTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"WorkstreamTabs.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/ModernAgentOutput/WorkstreamTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAKhD,UAAU,mBAAmB;IAC3B,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,KAAK,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,EACL,gBAAgB,GACjB,EAAE,mBAAmB,2CAoFrB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,YAAY,EAAE,GACvB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA8BrB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,YAAY,EAAE,EACxB,YAAY,EAAE,MAAM,GACnB,YAAY,EAAE,CAkBhB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AgentMessage, AgentMessageType } from "@vertesia/common";
|
|
2
1
|
import { VertesiaClient } from "@vertesia/client";
|
|
2
|
+
import { AgentMessage, AgentMessageType } from "@vertesia/common";
|
|
3
3
|
export declare function insertMessageInTimeline(arr: AgentMessage[], m: AgentMessage): void;
|
|
4
4
|
/**
|
|
5
5
|
* Check if a conversation is still in progress
|
|
@@ -84,6 +84,11 @@ export declare function getToolIteration(message: AgentMessage): number | undefi
|
|
|
84
84
|
* Get the tool execution status from a message's details
|
|
85
85
|
*/
|
|
86
86
|
export declare function getToolStatus(message: AgentMessage): ToolExecutionStatus | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Get the activity_group_id from message details, if present.
|
|
89
|
+
* This groups all internal activity updates for one tool-execution cycle.
|
|
90
|
+
*/
|
|
91
|
+
export declare function getActivityGroupId(message: AgentMessage): string | undefined;
|
|
87
92
|
/**
|
|
88
93
|
* Group consecutive tool call messages together for a cleaner display
|
|
89
94
|
* Non-tool messages remain as single items
|
|
@@ -104,4 +109,16 @@ export declare function groupConsecutiveToolCalls(messages: AgentMessage[]): Mes
|
|
|
104
109
|
* @returns Array of renderable groups with streaming interleaved
|
|
105
110
|
*/
|
|
106
111
|
export declare function groupMessagesWithStreaming(messages: AgentMessage[], streamingMessages: Map<string, StreamingData>, activeWorkstream?: string): RenderableGroup[];
|
|
112
|
+
/**
|
|
113
|
+
* Merge the ToolExecutionStatus of two groups.
|
|
114
|
+
* Priority: error > warning > running > completed > undefined
|
|
115
|
+
*/
|
|
116
|
+
export declare function mergeToolStatus(a: ToolExecutionStatus | undefined, b: ToolExecutionStatus | undefined): ToolExecutionStatus | undefined;
|
|
117
|
+
/**
|
|
118
|
+
* Post-processing step: merge consecutive tool_group entries into a single
|
|
119
|
+
* larger group so the UI shows one block instead of many.
|
|
120
|
+
* Non-tool-group entries (single, streaming) act as separators and are
|
|
121
|
+
* passed through unchanged.
|
|
122
|
+
*/
|
|
123
|
+
export declare function mergeConsecutiveToolGroups(groups: RenderableGroup[]): RenderableGroup[];
|
|
107
124
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/ModernAgentOutput/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/ModernAgentOutput/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGlE,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,YAAY,EAAE,EAAE,CAAC,EAAE,YAAY,QAQ3E;AAED;;;;GAIG;AAEH,eAAO,MAAM,WAAW,oBAKvB,CAAC;AAEF,wBAAgB,YAAY,CAAC,QAAQ,EAAE,YAAY,EAAE,WAmFpD;AAED,eAAO,MAAM,cAAc,GAAI,IAAI,MAAM,GAAG,MAAM,WAC8B,CAAC;AAEjF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,CAiB7D;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,YAAY,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,CAAC,CAgDrH;AAGD,wBAAsB,kBAAkB,CACpC,QAAQ,EAAE,cAAc,EACxB,aAAa,EAAE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G;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,GAAG,SAAS,CAE1E;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,YAAY,GAAG,mBAAmB,GAAG,SAAS,CAEpF;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,GAAG,SAAS,CAI5E;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,YAAY,EAAE,GAAG,YAAY,EAAE,CAmClF;AASD;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CACtC,QAAQ,EAAE,YAAY,EAAE,EACxB,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,EAC7C,gBAAgB,CAAC,EAAE,MAAM,GAC1B,eAAe,EAAE,CAqPnB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC3B,CAAC,EAAE,mBAAmB,GAAG,SAAS,EAClC,CAAC,EAAE,mBAAmB,GAAG,SAAS,GACnC,mBAAmB,GAAG,SAAS,CAUjC;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,eAAe,EAAE,GAAG,eAAe,EAAE,CAgDvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkillWidgetProvider.d.ts","sourceRoot":"","sources":["../../../../../src/features/agent/chat/SkillWidgetProvider.tsx"],"names":[],"mappings":"AASA,UAAU,6BAA6B;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;
|
|
1
|
+
{"version":3,"file":"SkillWidgetProvider.d.ts","sourceRoot":"","sources":["../../../../../src/features/agent/chat/SkillWidgetProvider.tsx"],"names":[],"mappings":"AASA,UAAU,6BAA6B;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAqID;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,QAAQ,EAAE,EAAE,6BAA6B,2CAkB9E"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AgentMessage, Plan } from '@vertesia/common';
|
|
2
|
+
export interface UseAgentPlansResult {
|
|
3
|
+
plans: Array<{
|
|
4
|
+
plan: Plan;
|
|
5
|
+
timestamp: number;
|
|
6
|
+
}>;
|
|
7
|
+
activePlanIndex: number;
|
|
8
|
+
setActivePlanIndex: (index: number) => void;
|
|
9
|
+
workstreamStatusMap: Map<number, Map<string, 'pending' | 'in_progress' | 'completed' | 'skipped'>>;
|
|
10
|
+
showInput: boolean;
|
|
11
|
+
/** Whether the sliding plan panel should be shown */
|
|
12
|
+
showSlidingPanel: boolean;
|
|
13
|
+
setShowSlidingPanel: (show: boolean | ((prev: boolean) => boolean)) => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Hook that extracts plan detection and workstream status management from messages.
|
|
17
|
+
*
|
|
18
|
+
* Key improvement: incremental processing. Instead of scanning ALL messages
|
|
19
|
+
* on every change, tracks `lastProcessedIndex` and only scans new messages.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useAgentPlans(messages: AgentMessage[], interactive: boolean, isModal?: boolean): UseAgentPlansResult;
|
|
22
|
+
//# sourceMappingURL=useAgentPlans.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAgentPlans.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/hooks/useAgentPlans.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAoB,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExE,MAAM,WAAW,mBAAmB;IAChC,KAAK,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAChD,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,mBAAmB,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC;IACnG,SAAS,EAAE,OAAO,CAAC;IACnB,qDAAqD;IACrD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,mBAAmB,EAAE,CAAC,IAAI,EAAE,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC,KAAK,IAAI,CAAC;CAC/E;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CACzB,QAAQ,EAAE,YAAY,EAAE,EACxB,WAAW,EAAE,OAAO,EACpB,OAAO,UAAQ,GAChB,mBAAmB,CAqKrB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { AsyncExecutionResult, VertesiaClient } from '@vertesia/client';
|
|
2
|
+
import { AgentMessage, ConversationFile } from '@vertesia/common';
|
|
3
|
+
/** Streaming data for a single active stream, keyed by streaming/activity ID */
|
|
4
|
+
export interface StreamingData {
|
|
5
|
+
text: string;
|
|
6
|
+
workstreamId?: string;
|
|
7
|
+
isComplete?: boolean;
|
|
8
|
+
startTimestamp: number;
|
|
9
|
+
activityId?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface UseAgentStreamResult {
|
|
12
|
+
messages: AgentMessage[];
|
|
13
|
+
streamingMessages: Map<string, StreamingData>;
|
|
14
|
+
isCompleted: boolean;
|
|
15
|
+
/** Whether we are receiving chunks right now (for visual indicators) */
|
|
16
|
+
debugChunkFlash: boolean;
|
|
17
|
+
/** Add an optimistic message (for user input) */
|
|
18
|
+
addOptimisticMessage: (msg: AgentMessage) => void;
|
|
19
|
+
/** Remove optimistic messages matching a predicate */
|
|
20
|
+
removeOptimisticMessages: (predicate: (msg: AgentMessage) => boolean) => void;
|
|
21
|
+
/** Workflow status fetched from API (RUNNING, COMPLETED, FAILED, etc.) */
|
|
22
|
+
workflowStatus: string | null;
|
|
23
|
+
/** Server-side file processing status updates (from SYSTEM messages) */
|
|
24
|
+
serverFileUpdates: Map<string, ConversationFile>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Hook that manages the SSE message stream for an agent conversation.
|
|
28
|
+
*
|
|
29
|
+
* Encapsulates:
|
|
30
|
+
* - `client.store.workflows.streamMessages()` call and cleanup
|
|
31
|
+
* - STREAMING_CHUNK accumulation with RAF-batched flushing
|
|
32
|
+
* - Streaming→persisted message dedup (activity_id matching on THOUGHT/ANSWER arrival)
|
|
33
|
+
* - COMPLETE/IDLE streaming flush
|
|
34
|
+
* - Timestamp-based message dedup and optimistic QUESTION replacement
|
|
35
|
+
* - `isCompleted` derived state
|
|
36
|
+
* - State reset when `run.runId` changes
|
|
37
|
+
*
|
|
38
|
+
* File-processing SYSTEM messages are passed through to the messages array
|
|
39
|
+
* (Option A from the plan) so downstream hooks can react to them.
|
|
40
|
+
*/
|
|
41
|
+
export declare function useAgentStream(client: VertesiaClient, run: AsyncExecutionResult): UseAgentStreamResult;
|
|
42
|
+
//# sourceMappingURL=useAgentStream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAgentStream.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/hooks/useAgentStream.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EACH,YAAY,EAEZ,gBAAgB,EAGnB,MAAM,kBAAkB,CAAC;AAG1B,gFAAgF;AAChF,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,oBAAoB;IACjC,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAC9C,WAAW,EAAE,OAAO,CAAC;IACrB,wEAAwE;IACxE,eAAe,EAAE,OAAO,CAAC;IACzB,iDAAiD;IACjD,oBAAoB,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,IAAI,CAAC;IAClD,sDAAsD;IACtD,wBAAwB,EAAE,CAAC,SAAS,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,OAAO,KAAK,IAAI,CAAC;IAC9E,0EAA0E;IAC1E,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,wEAAwE;IACxE,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;CACpD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAC1B,MAAM,EAAE,cAAc,EACtB,GAAG,EAAE,oBAAoB,GAC1B,oBAAoB,CAwLtB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AgentMessage } from '@vertesia/common';
|
|
2
|
+
import type { OpenDocument } from '../types/document.js';
|
|
3
|
+
export interface UseDocumentPanelResult {
|
|
4
|
+
openDocuments: OpenDocument[];
|
|
5
|
+
activeDocumentId: string | null;
|
|
6
|
+
isDocPanelOpen: boolean;
|
|
7
|
+
docRefreshKey: number;
|
|
8
|
+
closeDocPanel: () => void;
|
|
9
|
+
closeDocument: (docId: string) => void;
|
|
10
|
+
selectDocument: (docId: string) => void;
|
|
11
|
+
openDocInPanel: (docId: string) => void;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Hook that manages the document side panel.
|
|
15
|
+
*
|
|
16
|
+
* Listens for UPDATE messages with `event_class: 'document_created' | 'document_updated'`
|
|
17
|
+
* and manages panel open/close, tab selection, and refresh state.
|
|
18
|
+
*
|
|
19
|
+
* Uses incremental processing — only scans new messages.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useDocumentPanel(messages: AgentMessage[]): UseDocumentPanelResult;
|
|
22
|
+
//# sourceMappingURL=useDocumentPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDocumentPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/agent/chat/hooks/useDocumentPanel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAoB,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,WAAW,sBAAsB;IACnC,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,YAAY,EAAE,GAAG,sBAAsB,CA8FjF"}
|