@vertesia/ui 1.0.0-dev.20260227.112605Z → 1.0.0-dev.20260331.091034Z
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/SelectList.js +3 -1
- package/lib/esm/core/components/SelectList.js.map +1 -1
- package/lib/esm/core/components/SidePanel.js +2 -2
- package/lib/esm/core/components/SidePanel.js.map +1 -1
- package/lib/esm/core/components/index.js +0 -5
- package/lib/esm/core/components/index.js.map +1 -1
- package/lib/esm/core/components/shadcn/breadcrumb.js +11 -7
- package/lib/esm/core/components/shadcn/breadcrumb.js.map +1 -1
- package/lib/esm/core/components/shadcn/button.js +5 -3
- package/lib/esm/core/components/shadcn/button.js.map +1 -1
- package/lib/esm/core/components/shadcn/collaspible.js +14 -0
- package/lib/esm/core/components/shadcn/collaspible.js.map +1 -0
- package/lib/esm/core/components/shadcn/dropdown.js +64 -0
- package/lib/esm/core/components/shadcn/dropdown.js.map +1 -0
- package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js +3 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js +3 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js +1 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js +1 -1
- package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js +4 -2
- package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/filterBar.js +7 -4
- package/lib/esm/core/components/shadcn/filters/filterBar.js.map +1 -1
- package/lib/esm/core/components/shadcn/index.js +4 -0
- package/lib/esm/core/components/shadcn/index.js.map +1 -1
- package/lib/esm/core/components/shadcn/modal/ConfirmModal.js +4 -2
- package/lib/esm/core/components/shadcn/modal/ConfirmModal.js.map +1 -1
- package/lib/esm/core/components/shadcn/modal/DeleteModal.js +5 -3
- package/lib/esm/core/components/shadcn/modal/DeleteModal.js.map +1 -1
- package/lib/esm/core/components/shadcn/popover.js +11 -7
- package/lib/esm/core/components/shadcn/popover.js.map +1 -1
- package/lib/esm/core/components/shadcn/radioGroup.js +29 -0
- package/lib/esm/core/components/shadcn/radioGroup.js.map +1 -0
- package/lib/esm/core/components/shadcn/selectBox.js +1 -1
- package/lib/esm/core/components/shadcn/switch.js +19 -0
- package/lib/esm/core/components/shadcn/switch.js.map +1 -0
- package/lib/esm/core/components/shadcn/tabs.js +6 -6
- package/lib/esm/core/components/shadcn/tabs.js.map +1 -1
- package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js +8 -6
- package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js.map +1 -1
- package/lib/esm/core/components/shadcn/tooltip.js +1 -1
- package/lib/esm/core/components/shadcn/tooltip.js.map +1 -1
- package/lib/esm/core/components/toast/NotificationPanel.js +3 -3
- package/lib/esm/core/components/toast/NotificationPanel.js.map +1 -1
- package/lib/esm/core/hooks/PortalContainerProvider.js +9 -3
- package/lib/esm/core/hooks/PortalContainerProvider.js.map +1 -1
- package/lib/esm/env/index.js +16 -9
- package/lib/esm/env/index.js.map +1 -1
- package/lib/esm/features/agent/PayloadBuilder.js +87 -15
- package/lib/esm/features/agent/PayloadBuilder.js.map +1 -1
- package/lib/esm/features/agent/chat/AgentRightPanel.js +159 -0
- package/lib/esm/features/agent/chat/AgentRightPanel.js.map +1 -0
- package/lib/esm/features/agent/chat/ArtifactsTab.js +69 -0
- package/lib/esm/features/agent/chat/ArtifactsTab.js.map +1 -0
- package/lib/esm/features/agent/chat/AskUserWidget.js +12 -6
- package/lib/esm/features/agent/chat/AskUserWidget.js.map +1 -1
- package/lib/esm/features/agent/chat/DocumentPanel.js +6 -3
- package/lib/esm/features/agent/chat/DocumentPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ImageLightbox.js +3 -1
- package/lib/esm/features/agent/chat/ImageLightbox.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentConversation.js +241 -113
- package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +122 -52
- package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js +5 -3
- package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +76 -33
- package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +82 -83
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +16 -14
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +20 -5
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js +8 -6
- package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js +12 -10
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js +5 -3
- package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js +104 -13
- package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +9 -5
- package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js +160 -76
- package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js.map +1 -1
- package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js +3 -1
- package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js.map +1 -1
- package/lib/esm/features/agent/chat/VegaLiteChart.js +14 -2
- package/lib/esm/features/agent/chat/VegaLiteChart.js.map +1 -1
- package/lib/esm/features/agent/chat/hooks/useAgentPlans.js +3 -8
- package/lib/esm/features/agent/chat/hooks/useAgentPlans.js.map +1 -1
- package/lib/esm/features/agent/chat/hooks/useAgentStream.js +79 -16
- package/lib/esm/features/agent/chat/hooks/useAgentStream.js.map +1 -1
- package/lib/esm/features/agent/chat/hooks/useArtifacts.js +108 -0
- package/lib/esm/features/agent/chat/hooks/useArtifacts.js.map +1 -0
- package/lib/esm/features/agent/chat/hooks/useDocumentPanel.js +56 -5
- package/lib/esm/features/agent/chat/hooks/useDocumentPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/hooks/useFileProcessing.js +12 -10
- package/lib/esm/features/agent/chat/hooks/useFileProcessing.js.map +1 -1
- package/lib/esm/features/errors/PanelErrorBoundary.js +3 -1
- package/lib/esm/features/errors/PanelErrorBoundary.js.map +1 -1
- package/lib/esm/features/facets/AgentRunnerFacetsNav.js +45 -33
- package/lib/esm/features/facets/AgentRunnerFacetsNav.js.map +1 -1
- package/lib/esm/features/facets/RunsFacetsNav.js +9 -2
- package/lib/esm/features/facets/RunsFacetsNav.js.map +1 -1
- package/lib/esm/features/facets/index.js +1 -1
- package/lib/esm/features/facets/index.js.map +1 -1
- package/lib/esm/features/layout/GenericPageNavHeader.js +40 -28
- package/lib/esm/features/layout/GenericPageNavHeader.js.map +1 -1
- package/lib/esm/features/layout/NotFoundView.js +3 -1
- package/lib/esm/features/layout/NotFoundView.js.map +1 -1
- package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js +9 -5
- package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js.map +1 -1
- package/lib/esm/features/magic-pdf/DownloadPopover.js +5 -4
- package/lib/esm/features/magic-pdf/DownloadPopover.js.map +1 -1
- package/lib/esm/features/magic-pdf/MagicPdfView.js +8 -5
- package/lib/esm/features/magic-pdf/MagicPdfView.js.map +1 -1
- package/lib/esm/features/pdf-viewer/PdfPageSlider.js +9 -5
- package/lib/esm/features/pdf-viewer/PdfPageSlider.js.map +1 -1
- package/lib/esm/features/pdf-viewer/SimplePdfViewer.js +5 -3
- package/lib/esm/features/pdf-viewer/SimplePdfViewer.js.map +1 -1
- package/lib/esm/features/permissions/UserPermissionsProvider.js +3 -1
- package/lib/esm/features/permissions/UserPermissionsProvider.js.map +1 -1
- package/lib/esm/features/store/collections/BrowseCollectionView.js +9 -1
- package/lib/esm/features/store/collections/BrowseCollectionView.js.map +1 -1
- package/lib/esm/features/store/collections/CollectionsTable.js +14 -7
- package/lib/esm/features/store/collections/CollectionsTable.js.map +1 -1
- package/lib/esm/features/store/collections/CreateCollection.js +21 -18
- package/lib/esm/features/store/collections/CreateCollection.js.map +1 -1
- package/lib/esm/features/store/collections/EditCollectionView.js +23 -19
- package/lib/esm/features/store/collections/EditCollectionView.js.map +1 -1
- package/lib/esm/features/store/collections/SelectCollection.js +25 -10
- package/lib/esm/features/store/collections/SelectCollection.js.map +1 -1
- package/lib/esm/features/store/collections/SharedPropsEditor.js +5 -3
- package/lib/esm/features/store/collections/SharedPropsEditor.js.map +1 -1
- package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js +5 -3
- package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js.map +1 -1
- package/lib/esm/features/store/objects/DocumentPreviewPanel.js +14 -12
- package/lib/esm/features/store/objects/DocumentPreviewPanel.js.map +1 -1
- package/lib/esm/features/store/objects/DocumentSearchResults.js +15 -5
- package/lib/esm/features/store/objects/DocumentSearchResults.js.map +1 -1
- package/lib/esm/features/store/objects/DocumentTable.js +10 -7
- package/lib/esm/features/store/objects/DocumentTable.js.map +1 -1
- package/lib/esm/features/store/objects/ExportPropertiesModal.js +5 -2
- package/lib/esm/features/store/objects/ExportPropertiesModal.js.map +1 -1
- package/lib/esm/features/store/objects/components/ContentDispositionButton.js +3 -1
- package/lib/esm/features/store/objects/components/ContentDispositionButton.js.map +1 -1
- package/lib/esm/features/store/objects/components/ContentOverview.js +55 -40
- package/lib/esm/features/store/objects/components/ContentOverview.js.map +1 -1
- package/lib/esm/features/store/objects/components/DocumentIcon.js +4 -3
- package/lib/esm/features/store/objects/components/DocumentIcon.js.map +1 -1
- package/lib/esm/features/store/objects/components/PropertiesEditorModal.js +13 -11
- package/lib/esm/features/store/objects/components/PropertiesEditorModal.js.map +1 -1
- package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js +15 -18
- package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js.map +1 -1
- package/lib/esm/features/store/objects/components/SelectDocument.js +9 -6
- package/lib/esm/features/store/objects/components/SelectDocument.js.map +1 -1
- package/lib/esm/features/store/objects/components/TextEditorPanel.js +97 -0
- package/lib/esm/features/store/objects/components/TextEditorPanel.js.map +1 -0
- package/lib/esm/features/store/objects/components/VectorSearchWidget.js +3 -1
- package/lib/esm/features/store/objects/components/VectorSearchWidget.js.map +1 -1
- package/lib/esm/features/store/objects/components/useContentPanelHooks.js +4 -2
- package/lib/esm/features/store/objects/components/useContentPanelHooks.js.map +1 -1
- package/lib/esm/features/store/objects/components/useDownloadFile.js +12 -10
- package/lib/esm/features/store/objects/components/useDownloadFile.js.map +1 -1
- package/lib/esm/features/store/objects/layout/documentLayout.js +10 -6
- package/lib/esm/features/store/objects/layout/documentLayout.js.map +1 -1
- package/lib/esm/features/store/objects/layout/renderers.js +10 -1
- package/lib/esm/features/store/objects/layout/renderers.js.map +1 -1
- package/lib/esm/features/store/objects/search/DocumentSearchContext.js +3 -2
- package/lib/esm/features/store/objects/search/DocumentSearchContext.js.map +1 -1
- package/lib/esm/features/store/objects/search/DocumentSearchProvider.js +3 -0
- package/lib/esm/features/store/objects/search/DocumentSearchProvider.js.map +1 -1
- package/lib/esm/features/store/objects/selection/ObjectsActionContext.js +22 -109
- package/lib/esm/features/store/objects/selection/ObjectsActionContext.js.map +1 -1
- package/lib/esm/features/store/objects/selection/ObjectsActionContextClass.js +50 -0
- package/lib/esm/features/store/objects/selection/ObjectsActionContextClass.js.map +1 -0
- package/lib/esm/features/store/objects/selection/ObjectsActionHooks.js +27 -0
- package/lib/esm/features/store/objects/selection/ObjectsActionHooks.js.map +1 -0
- package/lib/esm/features/store/objects/selection/SelectionActions.js +10 -6
- package/lib/esm/features/store/objects/selection/SelectionActions.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +17 -12
- package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js +9 -5
- package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js +4 -2
- package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js +24 -23
- package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js +10 -5
- package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js +13 -9
- package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js +14 -8
- package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js.map +1 -1
- package/lib/esm/features/store/objects/upload/DocumentUploadModal.js +42 -39
- package/lib/esm/features/store/objects/upload/DocumentUploadModal.js.map +1 -1
- package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js +4 -2
- package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js.map +1 -1
- package/lib/esm/features/store/objects/upload/useUploadHandler.js +9 -7
- package/lib/esm/features/store/objects/upload/useUploadHandler.js.map +1 -1
- package/lib/esm/features/store/types/ContentObjectTypesSearch.js +6 -4
- package/lib/esm/features/store/types/ContentObjectTypesSearch.js.map +1 -1
- package/lib/esm/features/store/types/ContentObjectTypesTable.js +3 -1
- package/lib/esm/features/store/types/ContentObjectTypesTable.js.map +1 -1
- package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js +6 -7
- package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js.map +1 -1
- package/lib/esm/features/store/types/ObjectSchemaEditor.js +9 -7
- package/lib/esm/features/store/types/ObjectSchemaEditor.js.map +1 -1
- package/lib/esm/features/store/types/SelectContentType.js +9 -7
- package/lib/esm/features/store/types/SelectContentType.js.map +1 -1
- package/lib/esm/features/store/types/SelectContentTypeModal.js +5 -2
- package/lib/esm/features/store/types/SelectContentTypeModal.js.map +1 -1
- package/lib/esm/features/store/types/TableLayoutEditor.js +6 -4
- package/lib/esm/features/store/types/TableLayoutEditor.js.map +1 -1
- package/lib/esm/features/user/UserInfo.js +40 -50
- package/lib/esm/features/user/UserInfo.js.map +1 -1
- package/lib/esm/i18n/index.js +31 -0
- package/lib/esm/i18n/index.js.map +1 -0
- package/lib/esm/i18n/instance.js +46 -0
- package/lib/esm/i18n/instance.js.map +1 -0
- package/lib/esm/i18n/locales/ar.json +696 -0
- package/lib/esm/i18n/locales/de.json +664 -0
- package/lib/esm/i18n/locales/en.json +665 -0
- package/lib/esm/i18n/locales/es.json +670 -0
- package/lib/esm/i18n/locales/fr.json +672 -0
- package/lib/esm/i18n/locales/it.json +670 -0
- package/lib/esm/i18n/locales/ja.json +664 -0
- package/lib/esm/i18n/locales/ko.json +664 -0
- package/lib/esm/i18n/locales/pt.json +670 -0
- package/lib/esm/i18n/locales/ru.json +680 -0
- package/lib/esm/i18n/locales/tr.json +664 -0
- package/lib/esm/i18n/locales/zh-TW.json +664 -0
- package/lib/esm/i18n/locales/zh.json +664 -0
- package/lib/esm/layout/FullHeightLayout.js +3 -0
- package/lib/esm/layout/FullHeightLayout.js.map +1 -1
- package/lib/esm/layout/Navbar.js +3 -1
- package/lib/esm/layout/Navbar.js.map +1 -1
- package/lib/esm/layout/RegionTag.js +15 -0
- package/lib/esm/layout/RegionTag.js.map +1 -0
- package/lib/esm/layout/Sidebar.js +2 -2
- package/lib/esm/layout/Sidebar.js.map +1 -1
- package/lib/esm/layout/index.js +1 -0
- package/lib/esm/layout/index.js.map +1 -1
- package/lib/esm/router/HistoryNavigator.js +1 -1
- package/lib/esm/router/HistoryNavigator.js.map +1 -1
- package/lib/esm/router/Nav.js +5 -3
- package/lib/esm/router/Nav.js.map +1 -1
- package/lib/esm/router/NestedNavigationContext.js +4 -0
- package/lib/esm/router/NestedNavigationContext.js.map +1 -1
- package/lib/esm/router/NestedRouterProvider.js +3 -1
- package/lib/esm/router/NestedRouterProvider.js.map +1 -1
- package/lib/esm/router/Router.js +21 -6
- package/lib/esm/router/Router.js.map +1 -1
- package/lib/esm/session/UserSession.js +33 -4
- package/lib/esm/session/UserSession.js.map +1 -1
- package/lib/esm/session/UserSessionProvider.js +6 -13
- package/lib/esm/session/UserSessionProvider.js.map +1 -1
- package/lib/esm/session/auth/composable.js +1 -1
- package/lib/esm/session/auth/composable.js.map +1 -1
- package/lib/esm/session/auth/domainRouting.js +17 -0
- package/lib/esm/session/auth/domainRouting.js.map +1 -0
- package/lib/esm/session/auth/firebase.js +1 -1
- package/lib/esm/session/auth/firebase.js.map +1 -1
- package/lib/esm/session/auth/useCurrentTenant.js +3 -1
- package/lib/esm/session/auth/useCurrentTenant.js.map +1 -1
- package/lib/esm/shell/SplashScreen.js +3 -7
- package/lib/esm/shell/SplashScreen.js.map +1 -1
- package/lib/esm/shell/apps/StandaloneApp.js +5 -2
- package/lib/esm/shell/apps/StandaloneApp.js.map +1 -1
- package/lib/esm/shell/login/EnterpriseSigninButton.js +5 -3
- package/lib/esm/shell/login/EnterpriseSigninButton.js.map +1 -1
- package/lib/esm/shell/login/GitHubSignInButton.js +3 -7
- package/lib/esm/shell/login/GitHubSignInButton.js.map +1 -1
- package/lib/esm/shell/login/GoogleSignInButton.js +3 -1
- package/lib/esm/shell/login/GoogleSignInButton.js.map +1 -1
- package/lib/esm/shell/login/InviteAcceptModal.js +5 -2
- package/lib/esm/shell/login/InviteAcceptModal.js.map +1 -1
- package/lib/esm/shell/login/MicrosoftSigninButton.js +4 -6
- package/lib/esm/shell/login/MicrosoftSigninButton.js.map +1 -1
- package/lib/esm/shell/login/SigninScreen.js +6 -2
- package/lib/esm/shell/login/SigninScreen.js.map +1 -1
- package/lib/esm/shell/login/SignupForm.js +36 -34
- package/lib/esm/shell/login/SignupForm.js.map +1 -1
- package/lib/esm/shell/login/TerminalLogin.js +29 -22
- package/lib/esm/shell/login/TerminalLogin.js.map +1 -1
- package/lib/esm/shell/login/UserInfo.js +6 -4
- package/lib/esm/shell/login/UserInfo.js.map +1 -1
- package/lib/esm/shell/login/UserSessionMenu.js +3 -4
- package/lib/esm/shell/login/UserSessionMenu.js.map +1 -1
- package/lib/esm/widgets/index.js +0 -1
- package/lib/esm/widgets/index.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 +6 -2
- package/lib/esm/widgets/json-view/JSONDisplay.js.map +1 -1
- package/lib/esm/widgets/json-view/JSONSwitcher.js +6 -0
- package/lib/esm/widgets/json-view/JSONSwitcher.js.map +1 -0
- package/lib/esm/widgets/json-view/JSONView.js +1 -1
- package/lib/esm/widgets/json-view/JSONView.js.map +1 -1
- package/lib/esm/widgets/json-view/index.js +1 -0
- package/lib/esm/widgets/json-view/index.js.map +1 -1
- package/lib/esm/widgets/markdown/ArtifactContentRenderer.js +6 -5
- package/lib/esm/widgets/markdown/ArtifactContentRenderer.js.map +1 -1
- package/lib/esm/widgets/markdown/CodeBlockContext.js +11 -0
- package/lib/esm/widgets/markdown/CodeBlockContext.js.map +1 -0
- package/lib/esm/widgets/markdown/MarkdownRenderer.js +11 -10
- package/lib/esm/widgets/markdown/MarkdownRenderer.js.map +1 -1
- package/lib/esm/widgets/markdown/codeBlockHandlers.js +11 -12
- package/lib/esm/widgets/markdown/codeBlockHandlers.js.map +1 -1
- package/lib/esm/widgets/markdown/index.js +10 -9
- package/lib/esm/widgets/markdown/index.js.map +1 -1
- package/lib/esm/widgets/markdown/remarkDirectiveHandler.js +0 -1
- package/lib/esm/widgets/markdown/remarkDirectiveHandler.js.map +1 -1
- package/lib/esm/widgets/schema-editor/ManagedSchema.js +6 -5
- package/lib/esm/widgets/schema-editor/ManagedSchema.js.map +1 -1
- package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js +7 -3
- package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js.map +1 -1
- package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js +3 -1
- package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js.map +1 -1
- package/lib/esm/widgets/upload/DropZone.js +9 -11
- package/lib/esm/widgets/upload/DropZone.js.map +1 -1
- package/lib/esm/widgets/upload/UploadResultCategory.js +3 -1
- package/lib/esm/widgets/upload/UploadResultCategory.js.map +1 -1
- package/lib/esm/widgets/upload/UploadSummary.js +3 -1
- package/lib/esm/widgets/upload/UploadSummary.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/core/components/SelectList.d.ts.map +1 -1
- package/lib/types/core/components/SidePanel.d.ts +4 -2
- package/lib/types/core/components/SidePanel.d.ts.map +1 -1
- package/lib/types/core/components/index.d.ts +0 -5
- package/lib/types/core/components/index.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/badge.d.ts +2 -2
- package/lib/types/core/components/shadcn/breadcrumb.d.ts +1 -1
- package/lib/types/core/components/shadcn/breadcrumb.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/button.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/collaspible.d.ts +6 -0
- package/lib/types/core/components/shadcn/collaspible.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/dropdown.d.ts +51 -0
- package/lib/types/core/components/shadcn/dropdown.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/filters/comboBox/DateCombobox.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/filters/filter/dateFilter.d.ts.map +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 -0
- 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 +2 -1
- package/lib/types/core/components/shadcn/modal/ConfirmModal.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/modal/DeleteModal.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/popover.d.ts +11 -3
- package/lib/types/core/components/shadcn/popover.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/radioGroup.d.ts +26 -0
- package/lib/types/core/components/shadcn/radioGroup.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/switch.d.ts +12 -0
- package/lib/types/core/components/shadcn/switch.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/tabs.d.ts +4 -2
- package/lib/types/core/components/shadcn/tabs.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts +8 -2
- package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts.map +1 -1
- package/lib/types/core/components/toast/NotificationPanel.d.ts.map +1 -1
- package/lib/types/core/hooks/PortalContainerProvider.d.ts +1 -0
- package/lib/types/core/hooks/PortalContainerProvider.d.ts.map +1 -1
- package/lib/types/env/index.d.ts +12 -3
- package/lib/types/env/index.d.ts.map +1 -1
- package/lib/types/features/agent/PayloadBuilder.d.ts +31 -3
- package/lib/types/features/agent/PayloadBuilder.d.ts.map +1 -1
- package/lib/types/features/agent/chat/AgentRightPanel.d.ts +50 -0
- package/lib/types/features/agent/chat/AgentRightPanel.d.ts.map +1 -0
- package/lib/types/features/agent/chat/ArtifactsTab.d.ts +9 -0
- package/lib/types/features/agent/chat/ArtifactsTab.d.ts.map +1 -0
- package/lib/types/features/agent/chat/AskUserWidget.d.ts.map +1 -1
- package/lib/types/features/agent/chat/DocumentPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ImageLightbox.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentConversation.d.ts +22 -9
- package/lib/types/features/agent/chat/ModernAgentConversation.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +3 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/BatchProgressPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +13 -4
- package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts +3 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts +5 -1
- 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 +16 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts.map +1 -1
- package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts.map +1 -1
- package/lib/types/features/agent/chat/VegaLiteChart.d.ts.map +1 -1
- package/lib/types/features/agent/chat/hooks/useAgentPlans.d.ts.map +1 -1
- package/lib/types/features/agent/chat/hooks/useAgentStream.d.ts +5 -3
- package/lib/types/features/agent/chat/hooks/useAgentStream.d.ts.map +1 -1
- package/lib/types/features/agent/chat/hooks/useArtifacts.d.ts +18 -0
- package/lib/types/features/agent/chat/hooks/useArtifacts.d.ts.map +1 -0
- package/lib/types/features/agent/chat/hooks/useDocumentPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/hooks/useFileProcessing.d.ts +4 -4
- package/lib/types/features/agent/chat/hooks/useFileProcessing.d.ts.map +1 -1
- package/lib/types/features/agent/chat/types/document.d.ts +2 -0
- package/lib/types/features/agent/chat/types/document.d.ts.map +1 -1
- package/lib/types/features/errors/PanelErrorBoundary.d.ts.map +1 -1
- package/lib/types/features/facets/AgentRunnerFacetsNav.d.ts +2 -1
- package/lib/types/features/facets/AgentRunnerFacetsNav.d.ts.map +1 -1
- package/lib/types/features/facets/RunsFacetsNav.d.ts.map +1 -1
- package/lib/types/features/facets/index.d.ts +1 -1
- package/lib/types/features/facets/index.d.ts.map +1 -1
- package/lib/types/features/layout/GenericPageNavHeader.d.ts +2 -2
- package/lib/types/features/layout/GenericPageNavHeader.d.ts.map +1 -1
- package/lib/types/features/layout/NotFoundView.d.ts.map +1 -1
- package/lib/types/features/magic-pdf/AnnotatedImageSlider.d.ts.map +1 -1
- package/lib/types/features/magic-pdf/DownloadPopover.d.ts.map +1 -1
- package/lib/types/features/magic-pdf/MagicPdfView.d.ts.map +1 -1
- package/lib/types/features/pdf-viewer/PdfPageSlider.d.ts.map +1 -1
- package/lib/types/features/pdf-viewer/SimplePdfViewer.d.ts.map +1 -1
- package/lib/types/features/permissions/UserPermissionsProvider.d.ts.map +1 -1
- package/lib/types/features/store/collections/BrowseCollectionView.d.ts.map +1 -1
- package/lib/types/features/store/collections/CollectionsTable.d.ts +4 -0
- package/lib/types/features/store/collections/CollectionsTable.d.ts.map +1 -1
- package/lib/types/features/store/collections/CreateCollection.d.ts.map +1 -1
- package/lib/types/features/store/collections/EditCollectionView.d.ts.map +1 -1
- package/lib/types/features/store/collections/SelectCollection.d.ts.map +1 -1
- package/lib/types/features/store/collections/SharedPropsEditor.d.ts.map +1 -1
- package/lib/types/features/store/collections/SyncMemberHeadsToggle.d.ts.map +1 -1
- package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts.map +1 -1
- package/lib/types/features/store/objects/DocumentSearchResults.d.ts.map +1 -1
- package/lib/types/features/store/objects/DocumentTable.d.ts.map +1 -1
- package/lib/types/features/store/objects/ExportPropertiesModal.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/ContentDispositionButton.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/DocumentIcon.d.ts +2 -1
- package/lib/types/features/store/objects/components/DocumentIcon.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/SaveVersionConfirmModal.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/SelectDocument.d.ts +3 -1
- package/lib/types/features/store/objects/components/SelectDocument.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/TextEditorPanel.d.ts +10 -0
- package/lib/types/features/store/objects/components/TextEditorPanel.d.ts.map +1 -0
- package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/useContentPanelHooks.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/useDownloadFile.d.ts.map +1 -1
- package/lib/types/features/store/objects/layout/documentLayout.d.ts +3 -2
- package/lib/types/features/store/objects/layout/documentLayout.d.ts.map +1 -1
- package/lib/types/features/store/objects/layout/renderers.d.ts.map +1 -1
- package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts.map +1 -1
- package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts +3 -20
- package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/ObjectsActionContextClass.d.ts +16 -0
- package/lib/types/features/store/objects/selection/ObjectsActionContextClass.d.ts.map +1 -0
- package/lib/types/features/store/objects/selection/ObjectsActionHooks.d.ts +7 -0
- package/lib/types/features/store/objects/selection/ObjectsActionHooks.d.ts.map +1 -0
- package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts +4 -1
- package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/SelectionActions.d.ts +6 -1
- package/lib/types/features/store/objects/selection/SelectionActions.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.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/ConfirmAction.d.ts +1 -1
- package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.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/selection/actions/RemoveFromCollectionAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts.map +1 -1
- package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts.map +1 -1
- package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts.map +1 -1
- package/lib/types/features/store/objects/upload/useUploadHandler.d.ts.map +1 -1
- package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts.map +1 -1
- package/lib/types/features/store/types/ContentObjectTypesTable.d.ts.map +1 -1
- package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts +2 -1
- package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts.map +1 -1
- package/lib/types/features/store/types/ObjectSchemaEditor.d.ts.map +1 -1
- package/lib/types/features/store/types/SelectContentType.d.ts.map +1 -1
- package/lib/types/features/store/types/SelectContentTypeModal.d.ts.map +1 -1
- package/lib/types/features/store/types/TableLayoutEditor.d.ts.map +1 -1
- package/lib/types/features/user/UserInfo.d.ts +2 -2
- package/lib/types/features/user/UserInfo.d.ts.map +1 -1
- package/lib/types/i18n/index.d.ts +14 -0
- package/lib/types/i18n/index.d.ts.map +1 -0
- package/lib/types/i18n/instance.d.ts +5 -0
- package/lib/types/i18n/instance.d.ts.map +1 -0
- package/lib/types/layout/FullHeightLayout.d.ts +3 -0
- package/lib/types/layout/FullHeightLayout.d.ts.map +1 -1
- package/lib/types/layout/Navbar.d.ts.map +1 -1
- package/lib/types/layout/RegionTag.d.ts +4 -0
- package/lib/types/layout/RegionTag.d.ts.map +1 -0
- package/lib/types/layout/Sidebar.d.ts +2 -1
- package/lib/types/layout/Sidebar.d.ts.map +1 -1
- package/lib/types/layout/index.d.ts +1 -0
- package/lib/types/layout/index.d.ts.map +1 -1
- package/lib/types/router/Nav.d.ts +5 -1
- package/lib/types/router/Nav.d.ts.map +1 -1
- package/lib/types/router/NestedNavigationContext.d.ts.map +1 -1
- package/lib/types/router/NestedRouterProvider.d.ts.map +1 -1
- package/lib/types/router/Router.d.ts +2 -0
- package/lib/types/router/Router.d.ts.map +1 -1
- package/lib/types/session/UserSession.d.ts +1 -0
- package/lib/types/session/UserSession.d.ts.map +1 -1
- package/lib/types/session/UserSessionProvider.d.ts +0 -1
- package/lib/types/session/UserSessionProvider.d.ts.map +1 -1
- package/lib/types/session/auth/domainRouting.d.ts +3 -0
- package/lib/types/session/auth/domainRouting.d.ts.map +1 -0
- package/lib/types/session/auth/useCurrentTenant.d.ts.map +1 -1
- package/lib/types/shell/SplashScreen.d.ts.map +1 -1
- package/lib/types/shell/apps/StandaloneApp.d.ts.map +1 -1
- package/lib/types/shell/login/EnterpriseSigninButton.d.ts.map +1 -1
- package/lib/types/shell/login/GitHubSignInButton.d.ts.map +1 -1
- package/lib/types/shell/login/GoogleSignInButton.d.ts.map +1 -1
- package/lib/types/shell/login/InviteAcceptModal.d.ts.map +1 -1
- package/lib/types/shell/login/MicrosoftSigninButton.d.ts +1 -1
- package/lib/types/shell/login/MicrosoftSigninButton.d.ts.map +1 -1
- package/lib/types/shell/login/SigninScreen.d.ts.map +1 -1
- package/lib/types/shell/login/SignupForm.d.ts.map +1 -1
- package/lib/types/shell/login/TerminalLogin.d.ts.map +1 -1
- package/lib/types/shell/login/UserInfo.d.ts.map +1 -1
- package/lib/types/shell/login/UserSessionMenu.d.ts.map +1 -1
- package/lib/types/widgets/index.d.ts +0 -1
- package/lib/types/widgets/index.d.ts.map +1 -1
- package/lib/types/widgets/json-view/JSONDisplay.d.ts.map +1 -1
- package/lib/types/widgets/json-view/JSONSwitcher.d.ts +6 -0
- package/lib/types/widgets/json-view/JSONSwitcher.d.ts.map +1 -0
- package/lib/types/widgets/json-view/index.d.ts +1 -0
- package/lib/types/widgets/json-view/index.d.ts.map +1 -1
- package/lib/types/widgets/markdown/ArtifactContentRenderer.d.ts.map +1 -1
- package/lib/types/widgets/markdown/CodeBlockContext.d.ts +21 -0
- package/lib/types/widgets/markdown/CodeBlockContext.d.ts.map +1 -0
- package/lib/types/widgets/markdown/MarkdownRenderer.d.ts.map +1 -1
- package/lib/types/widgets/markdown/codeBlockHandlers.d.ts +0 -12
- package/lib/types/widgets/markdown/codeBlockHandlers.d.ts.map +1 -1
- package/lib/types/widgets/markdown/index.d.ts +10 -9
- package/lib/types/widgets/markdown/index.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/types/widgets/schema-editor/editor/PropertyEditor.d.ts.map +1 -1
- package/lib/types/widgets/schema-editor/editor/SchemaEditor.d.ts.map +1 -1
- package/lib/types/widgets/upload/DropZone.d.ts.map +1 -1
- package/lib/types/widgets/upload/UploadResultCategory.d.ts.map +1 -1
- package/lib/types/widgets/upload/UploadSummary.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-env.js +1 -1
- package/lib/vertesia-ui-env.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-i18n.js +2 -0
- package/lib/vertesia-ui-i18n.js.map +1 -0
- 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/llms.txt +124 -4
- package/package.json +50 -22
- package/src/core/components/SelectList.tsx +3 -1
- package/src/core/components/SidePanel.tsx +5 -4
- package/src/core/components/index.ts +0 -5
- package/src/core/components/shadcn/breadcrumb.tsx +16 -9
- package/src/core/components/shadcn/button.tsx +5 -3
- package/src/core/components/shadcn/collaspible.tsx +33 -0
- package/src/core/components/shadcn/dropdown.tsx +325 -0
- package/src/core/components/shadcn/filters/comboBox/DateCombobox.tsx +3 -1
- package/src/core/components/shadcn/filters/comboBox/SelectCombobox.tsx +3 -1
- package/src/core/components/shadcn/filters/comboBox/StringListCombobox.tsx +1 -1
- package/src/core/components/shadcn/filters/filter/StringListFilter.tsx +1 -1
- package/src/core/components/shadcn/filters/filter/dateFilter.tsx +5 -3
- package/src/core/components/shadcn/filters/filterBar.tsx +8 -5
- package/src/core/components/shadcn/index.ts +5 -1
- package/src/core/components/shadcn/modal/ConfirmModal.tsx +7 -3
- package/src/core/components/shadcn/modal/DeleteModal.tsx +5 -3
- package/src/core/components/shadcn/popover.tsx +12 -7
- package/src/core/components/shadcn/radioGroup.tsx +100 -0
- package/src/core/components/shadcn/selectBox.tsx +1 -1
- package/src/core/components/shadcn/switch.tsx +60 -0
- package/src/core/components/shadcn/tabs.tsx +29 -27
- package/src/core/components/shadcn/theme/ThemeSwitcher.tsx +19 -10
- package/src/core/components/shadcn/tooltip.tsx +1 -1
- package/src/core/components/toast/NotificationPanel.tsx +38 -44
- package/src/core/hooks/PortalContainerProvider.tsx +11 -3
- package/src/css/base.css +31 -0
- package/src/css/color.css +136 -0
- package/src/css/custom-tooltips.css +64 -0
- package/src/css/index.css +27 -0
- package/src/css/theme.css +86 -0
- package/src/css/typography.css +88 -0
- package/src/css/utilities.css +72 -0
- package/src/env/index.ts +24 -13
- package/src/features/agent/PayloadBuilder.tsx +100 -13
- package/src/features/agent/chat/AgentRightPanel.tsx +424 -0
- package/src/features/agent/chat/ArtifactsTab.tsx +197 -0
- package/src/features/agent/chat/AskUserWidget.tsx +14 -8
- package/src/features/agent/chat/DocumentPanel.tsx +24 -9
- package/src/features/agent/chat/ImageLightbox.tsx +6 -3
- package/src/features/agent/chat/ModernAgentConversation.tsx +538 -364
- package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx +151 -55
- package/src/features/agent/chat/ModernAgentOutput/BatchProgressPanel.tsx +6 -4
- package/src/features/agent/chat/ModernAgentOutput/Header.tsx +183 -105
- package/src/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.tsx +21 -31
- package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +119 -114
- package/src/features/agent/chat/ModernAgentOutput/MessageItem.tsx +26 -9
- package/src/features/agent/chat/ModernAgentOutput/PlanPanel.tsx +9 -7
- package/src/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.tsx +15 -13
- package/src/features/agent/chat/ModernAgentOutput/StreamingMessage.tsx +8 -3
- package/src/features/agent/chat/ModernAgentOutput/ToolCallGroup.tsx +149 -49
- package/src/features/agent/chat/ModernAgentOutput/WorkstreamTabs.tsx +9 -5
- package/src/features/agent/chat/ModernAgentOutput/utils.test.ts +229 -0
- package/src/features/agent/chat/ModernAgentOutput/utils.ts +202 -97
- package/src/features/agent/chat/SlidingThinkingIndicator.tsx +5 -3
- package/src/features/agent/chat/VegaLiteChart.tsx +20 -8
- package/src/features/agent/chat/hooks/useAgentPlans.ts +3 -9
- package/src/features/agent/chat/hooks/useAgentStream.ts +86 -19
- package/src/features/agent/chat/hooks/useArtifacts.ts +151 -0
- package/src/features/agent/chat/hooks/useDocumentPanel.ts +65 -5
- package/src/features/agent/chat/hooks/useFileProcessing.ts +14 -13
- package/src/features/agent/chat/types/document.ts +2 -0
- package/src/features/errors/PanelErrorBoundary.tsx +5 -3
- package/src/features/facets/AgentRunnerFacetsNav.tsx +54 -35
- package/src/features/facets/RunsFacetsNav.tsx +15 -7
- package/src/features/facets/index.ts +1 -1
- package/src/features/layout/GenericPageNavHeader.tsx +64 -41
- package/src/features/layout/NotFoundView.tsx +4 -1
- package/src/features/magic-pdf/AnnotatedImageSlider.tsx +12 -8
- package/src/features/magic-pdf/DownloadPopover.tsx +11 -10
- package/src/features/magic-pdf/MagicPdfView.tsx +10 -7
- package/src/features/pdf-viewer/PdfPageSlider.tsx +10 -6
- package/src/features/pdf-viewer/SimplePdfViewer.tsx +5 -3
- package/src/features/permissions/UserPermissionsProvider.tsx +3 -1
- package/src/features/store/collections/BrowseCollectionView.tsx +11 -1
- package/src/features/store/collections/CollectionsTable.tsx +20 -12
- package/src/features/store/collections/CreateCollection.tsx +45 -40
- package/src/features/store/collections/EditCollectionView.tsx +31 -28
- package/src/features/store/collections/SelectCollection.tsx +50 -14
- package/src/features/store/collections/SharedPropsEditor.tsx +7 -5
- package/src/features/store/collections/SyncMemberHeadsToggle.tsx +6 -4
- package/src/features/store/objects/DocumentPreviewPanel.tsx +30 -28
- package/src/features/store/objects/DocumentSearchResults.tsx +31 -21
- package/src/features/store/objects/DocumentTable.tsx +11 -5
- package/src/features/store/objects/ExportPropertiesModal.tsx +8 -5
- package/src/features/store/objects/components/ContentDispositionButton.tsx +3 -1
- package/src/features/store/objects/components/ContentOverview.tsx +96 -50
- package/src/features/store/objects/components/DocumentIcon.tsx +11 -3
- package/src/features/store/objects/components/PropertiesEditorModal.tsx +14 -12
- package/src/features/store/objects/components/SaveVersionConfirmModal.tsx +24 -37
- package/src/features/store/objects/components/SelectDocument.tsx +15 -6
- package/src/features/store/objects/components/TextEditorPanel.tsx +143 -0
- package/src/features/store/objects/components/VectorSearchWidget.tsx +11 -8
- package/src/features/store/objects/components/useContentPanelHooks.ts +4 -2
- package/src/features/store/objects/components/useDownloadFile.ts +12 -10
- package/src/features/store/objects/layout/documentLayout.tsx +16 -6
- package/src/features/store/objects/layout/renderers.tsx +27 -1
- package/src/features/store/objects/search/DocumentSearchContext.ts +3 -2
- package/src/features/store/objects/search/DocumentSearchProvider.tsx +3 -0
- package/src/features/store/objects/selection/ObjectsActionContext.tsx +26 -128
- package/src/features/store/objects/selection/ObjectsActionContextClass.ts +59 -0
- package/src/features/store/objects/selection/ObjectsActionHooks.ts +33 -0
- package/src/features/store/objects/selection/ObjectsActionSpec.ts +4 -1
- package/src/features/store/objects/selection/SelectionActions.tsx +14 -6
- package/src/features/store/objects/selection/actions/AddToCollectionAction.tsx +19 -14
- package/src/features/store/objects/selection/actions/ChangeTypeAction.tsx +9 -5
- package/src/features/store/objects/selection/actions/ConfirmAction.tsx +4 -3
- package/src/features/store/objects/selection/actions/DeleteObjectsAction.tsx +24 -23
- package/src/features/store/objects/selection/actions/ExportPropertiesAction.tsx +10 -5
- package/src/features/store/objects/selection/actions/RemoveFromCollectionAction.tsx +13 -9
- package/src/features/store/objects/selection/actions/StartWorkflowComponent.tsx +14 -8
- package/src/features/store/objects/upload/DocumentUploadModal.tsx +56 -55
- package/src/features/store/objects/upload/useSmartFileUploadProcessing.ts +4 -2
- package/src/features/store/objects/upload/useUploadHandler.ts +9 -7
- package/src/features/store/types/ContentObjectTypesSearch.tsx +10 -8
- package/src/features/store/types/ContentObjectTypesTable.tsx +6 -4
- package/src/features/store/types/CreateOrUpdateTypeModal.tsx +11 -12
- package/src/features/store/types/ObjectSchemaEditor.tsx +11 -9
- package/src/features/store/types/SelectContentType.tsx +15 -13
- package/src/features/store/types/SelectContentTypeModal.tsx +16 -13
- package/src/features/store/types/TableLayoutEditor.tsx +16 -12
- package/src/features/user/UserInfo.tsx +47 -56
- package/src/i18n/index.tsx +45 -0
- package/src/i18n/instance.ts +49 -0
- package/src/i18n/locales/ar.json +696 -0
- package/src/i18n/locales/de.json +664 -0
- package/src/i18n/locales/en.json +665 -0
- package/src/i18n/locales/es.json +670 -0
- package/src/i18n/locales/fr.json +672 -0
- package/src/i18n/locales/it.json +670 -0
- package/src/i18n/locales/ja.json +664 -0
- package/src/i18n/locales/ko.json +664 -0
- package/src/i18n/locales/pt.json +670 -0
- package/src/i18n/locales/ru.json +680 -0
- package/src/i18n/locales/tr.json +664 -0
- package/src/i18n/locales/zh-TW.json +664 -0
- package/src/i18n/locales/zh.json +664 -0
- package/src/layout/FullHeightLayout.tsx +8 -0
- package/src/layout/Navbar.tsx +4 -2
- package/src/layout/RegionTag.tsx +25 -0
- package/src/layout/Sidebar.tsx +4 -3
- package/src/layout/index.ts +2 -1
- package/src/router/HistoryNavigator.ts +10 -10
- package/src/router/Nav.tsx +9 -3
- package/src/router/NestedNavigationContext.tsx +4 -0
- package/src/router/NestedRouterProvider.tsx +3 -1
- package/src/router/Router.tsx +23 -7
- package/src/session/UserSession.ts +34 -5
- package/src/session/UserSessionProvider.tsx +6 -14
- package/src/session/auth/composable.ts +1 -1
- package/src/session/auth/domainRouting.test.ts +110 -0
- package/src/session/auth/domainRouting.ts +22 -0
- package/src/session/auth/firebase.ts +1 -1
- package/src/session/auth/useCurrentTenant.ts +3 -1
- package/src/shell/SplashScreen.tsx +22 -26
- package/src/shell/apps/StandaloneApp.tsx +9 -6
- package/src/shell/login/EnterpriseSigninButton.tsx +6 -4
- package/src/shell/login/GitHubSignInButton.tsx +3 -7
- package/src/shell/login/GoogleSignInButton.tsx +3 -1
- package/src/shell/login/InviteAcceptModal.tsx +5 -2
- package/src/shell/login/MicrosoftSigninButton.tsx +4 -6
- package/src/shell/login/SigninScreen.tsx +18 -13
- package/src/shell/login/SignupForm.tsx +46 -46
- package/src/shell/login/TerminalLogin.tsx +36 -33
- package/src/shell/login/UserInfo.tsx +15 -13
- package/src/shell/login/UserSessionMenu.tsx +28 -31
- package/src/widgets/index.ts +0 -1
- package/src/widgets/json-view/JSONCode.tsx +1 -1
- package/src/widgets/json-view/JSONDisplay.tsx +8 -3
- package/src/widgets/json-view/JSONSwitcher.tsx +24 -0
- package/src/widgets/json-view/JSONView.tsx +1 -1
- package/src/widgets/json-view/index.ts +1 -0
- package/src/widgets/markdown/ArtifactContentRenderer.tsx +15 -7
- package/src/widgets/markdown/CodeBlockContext.tsx +34 -0
- package/src/widgets/markdown/MarkdownRenderer.tsx +14 -13
- package/src/widgets/markdown/codeBlockHandlers.tsx +17 -36
- package/src/widgets/markdown/index.ts +27 -34
- package/src/widgets/markdown/remarkDirectiveHandler.ts +1 -1
- package/src/widgets/schema-editor/ManagedSchema.ts +6 -5
- package/src/widgets/schema-editor/editor/PropertyEditor.tsx +7 -3
- package/src/widgets/schema-editor/editor/SchemaEditor.tsx +3 -1
- package/src/widgets/upload/DropZone.tsx +10 -13
- package/src/widgets/upload/UploadResultCategory.tsx +3 -1
- package/src/widgets/upload/UploadSummary.tsx +13 -11
- package/tsconfig.dist.json +1 -1
- package/lib/esm/core/components/Dropdown.js +0 -16
- package/lib/esm/core/components/Dropdown.js.map +0 -1
- package/lib/esm/core/components/DropdownList.js +0 -9
- package/lib/esm/core/components/DropdownList.js.map +0 -1
- package/lib/esm/core/components/RadioGroup.js +0 -34
- package/lib/esm/core/components/RadioGroup.js.map +0 -1
- package/lib/esm/core/components/SelectStack.js +0 -8
- package/lib/esm/core/components/SelectStack.js.map +0 -1
- package/lib/esm/core/components/Switch.js +0 -12
- package/lib/esm/core/components/Switch.js.map +0 -1
- package/lib/esm/widgets/popover/Popover.js +0 -73
- package/lib/esm/widgets/popover/Popover.js.map +0 -1
- package/lib/esm/widgets/popover/context.js +0 -7
- package/lib/esm/widgets/popover/context.js.map +0 -1
- package/lib/esm/widgets/popover/index.js +0 -3
- package/lib/esm/widgets/popover/index.js.map +0 -1
- package/lib/esm/widgets/popover/slots.js +0 -22
- package/lib/esm/widgets/popover/slots.js.map +0 -1
- package/lib/types/core/components/Dropdown.d.ts +0 -15
- package/lib/types/core/components/Dropdown.d.ts.map +0 -1
- package/lib/types/core/components/DropdownList.d.ts +0 -13
- package/lib/types/core/components/DropdownList.d.ts.map +0 -1
- package/lib/types/core/components/RadioGroup.d.ts +0 -26
- package/lib/types/core/components/RadioGroup.d.ts.map +0 -1
- package/lib/types/core/components/SelectStack.d.ts +0 -13
- package/lib/types/core/components/SelectStack.d.ts.map +0 -1
- package/lib/types/core/components/Switch.d.ts +0 -11
- package/lib/types/core/components/Switch.d.ts.map +0 -1
- package/lib/types/widgets/popover/Popover.d.ts +0 -38
- package/lib/types/widgets/popover/Popover.d.ts.map +0 -1
- package/lib/types/widgets/popover/context.d.ts +0 -8
- package/lib/types/widgets/popover/context.d.ts.map +0 -1
- package/lib/types/widgets/popover/index.d.ts +0 -3
- package/lib/types/widgets/popover/index.d.ts.map +0 -1
- package/lib/types/widgets/popover/slots.d.ts +0 -5
- package/lib/types/widgets/popover/slots.d.ts.map +0 -1
- package/src/core/components/Dropdown.tsx +0 -63
- package/src/core/components/DropdownList.tsx +0 -72
- package/src/core/components/RadioGroup.tsx +0 -100
- package/src/core/components/SelectStack.tsx +0 -63
- package/src/core/components/Switch.tsx +0 -30
- package/src/widgets/popover/Popover.tsx +0 -171
- package/src/widgets/popover/context.ts +0 -15
- package/src/widgets/popover/index.ts +0 -2
- package/src/widgets/popover/slots.ts +0 -24
|
@@ -3,7 +3,7 @@ import { AgentSearchScope, ConversationVisibility, ExecutionEnvironmentRef, InCo
|
|
|
3
3
|
import { JSONObject } from "@vertesia/json";
|
|
4
4
|
import { useUserSession } from "@vertesia/ui/session";
|
|
5
5
|
import Ajv, { ValidateFunction } from "ajv";
|
|
6
|
-
import React, { createContext, useContext,
|
|
6
|
+
import React, { createContext, useContext, useState, useSyncExternalStore } from "react";
|
|
7
7
|
|
|
8
8
|
export type WorkflowMode = 'start' | 'schedule';
|
|
9
9
|
|
|
@@ -14,9 +14,30 @@ export interface ScheduledWorkflowConfig {
|
|
|
14
14
|
timezone: string;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
export class PayloadBuilderStore {
|
|
18
|
+
private _listeners = new Set<() => void>();
|
|
19
|
+
snapshot: PayloadBuilder;
|
|
20
|
+
|
|
21
|
+
constructor(client: VertesiaClient) {
|
|
22
|
+
this.snapshot = new PayloadBuilder(client, this);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
subscribe = (listener: () => void) => {
|
|
26
|
+
this._listeners.add(listener);
|
|
27
|
+
return () => { this._listeners.delete(listener); };
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
getSnapshot = () => this.snapshot;
|
|
31
|
+
|
|
32
|
+
notify() {
|
|
33
|
+
this._listeners.forEach(listener => listener());
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
17
37
|
export class PayloadBuilder {
|
|
18
38
|
_interactive: boolean = true;
|
|
19
39
|
_debug_mode: boolean = false;
|
|
40
|
+
_non_blocking_subagents: boolean = true;
|
|
20
41
|
_checkpoint_tokens: number | undefined;
|
|
21
42
|
_visibility: ConversationVisibility | undefined;
|
|
22
43
|
_user_channels: UserChannel[] | undefined;
|
|
@@ -32,22 +53,28 @@ export class PayloadBuilder {
|
|
|
32
53
|
_scheduledWorkflowConfig: ScheduledWorkflowConfig | undefined;
|
|
33
54
|
|
|
34
55
|
private _interactionParamsSchema?: JSONSchema | null;
|
|
56
|
+
private _schemaVersion = 0;
|
|
35
57
|
private _inputValidator?: {
|
|
36
58
|
validate: ValidateFunction;
|
|
37
59
|
schema: JSONSchema;
|
|
38
60
|
};
|
|
39
61
|
|
|
40
|
-
|
|
62
|
+
private _store: PayloadBuilderStore;
|
|
63
|
+
|
|
64
|
+
constructor(public vertesia: VertesiaClient, store: PayloadBuilderStore) {
|
|
65
|
+
this._store = store;
|
|
41
66
|
}
|
|
42
67
|
|
|
43
68
|
onStateChanged() {
|
|
44
69
|
const newInstance = this.clone();
|
|
45
|
-
this.
|
|
70
|
+
this._store.snapshot = newInstance;
|
|
71
|
+
this._store.notify();
|
|
46
72
|
}
|
|
47
73
|
|
|
48
74
|
clone() {
|
|
49
|
-
const builder = new PayloadBuilder(this.vertesia, this.
|
|
75
|
+
const builder = new PayloadBuilder(this.vertesia, this._store);
|
|
50
76
|
builder._interactionParamsSchema = this._interactionParamsSchema;
|
|
77
|
+
builder._schemaVersion = this._schemaVersion;
|
|
51
78
|
builder._interaction = this._interaction;
|
|
52
79
|
builder._data = this._data;
|
|
53
80
|
builder._environment = this._environment;
|
|
@@ -55,6 +82,7 @@ export class PayloadBuilder {
|
|
|
55
82
|
builder._tool_names = [...this._tool_names];
|
|
56
83
|
builder._interactive = this._interactive;
|
|
57
84
|
builder._debug_mode = this._debug_mode;
|
|
85
|
+
builder._non_blocking_subagents = this._non_blocking_subagents;
|
|
58
86
|
builder._checkpoint_tokens = this._checkpoint_tokens;
|
|
59
87
|
builder._visibility = this._visibility;
|
|
60
88
|
builder._user_channels = this._user_channels ? [...this._user_channels] : undefined;
|
|
@@ -70,6 +98,14 @@ export class PayloadBuilder {
|
|
|
70
98
|
set mode(mode: 'start' | 'schedule') {
|
|
71
99
|
if (mode !== this._mode) {
|
|
72
100
|
this._mode = mode;
|
|
101
|
+
if (mode === 'schedule' && !this._scheduledWorkflowConfig) {
|
|
102
|
+
this._scheduledWorkflowConfig = {
|
|
103
|
+
name: '',
|
|
104
|
+
description: '',
|
|
105
|
+
cron_expression: '0 9 * * *',
|
|
106
|
+
timezone: 'UTC'
|
|
107
|
+
} as ScheduledWorkflowConfig;
|
|
108
|
+
}
|
|
73
109
|
this.onStateChanged();
|
|
74
110
|
}
|
|
75
111
|
}
|
|
@@ -87,6 +123,14 @@ export class PayloadBuilder {
|
|
|
87
123
|
return this._scheduledWorkflowConfig;
|
|
88
124
|
}
|
|
89
125
|
|
|
126
|
+
updateScheduledWorkflowConfig(patch: Partial<ScheduledWorkflowConfig>) {
|
|
127
|
+
this._scheduledWorkflowConfig = {
|
|
128
|
+
...this._scheduledWorkflowConfig,
|
|
129
|
+
...patch
|
|
130
|
+
} as ScheduledWorkflowConfig;
|
|
131
|
+
this.onStateChanged();
|
|
132
|
+
}
|
|
133
|
+
|
|
90
134
|
get interactive() {
|
|
91
135
|
return this._interactive;
|
|
92
136
|
}
|
|
@@ -109,6 +153,17 @@ export class PayloadBuilder {
|
|
|
109
153
|
}
|
|
110
154
|
}
|
|
111
155
|
|
|
156
|
+
get non_blocking_subagents() {
|
|
157
|
+
return this._non_blocking_subagents;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
set non_blocking_subagents(value: boolean) {
|
|
161
|
+
if (value !== this._non_blocking_subagents) {
|
|
162
|
+
this._non_blocking_subagents = value;
|
|
163
|
+
this.onStateChanged();
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
112
167
|
get checkpoint_tokens(): number | undefined {
|
|
113
168
|
return this._checkpoint_tokens;
|
|
114
169
|
}
|
|
@@ -171,20 +226,29 @@ export class PayloadBuilder {
|
|
|
171
226
|
const envId = inter.runtime?.environment || context.config?.environment;
|
|
172
227
|
const model = context.config?.model;
|
|
173
228
|
const env = await (envId ?
|
|
174
|
-
this.vertesia.environments.retrieve(
|
|
229
|
+
this.vertesia.environments.retrieve(envId).catch(() => undefined)
|
|
175
230
|
:
|
|
176
231
|
Promise.resolve(undefined)
|
|
177
232
|
);
|
|
178
233
|
|
|
179
234
|
|
|
180
|
-
|
|
181
|
-
//
|
|
235
|
+
// Set data BEFORE the interaction setter so that initializeBooleanDefaults (called
|
|
236
|
+
// inside the interactionParamsSchema setter) uses the real run values as its base
|
|
237
|
+
// rather than an empty object. This prevents an intermediate render where the schema
|
|
238
|
+
// is set but _data is still {} — which would cause Input to mount with empty state.
|
|
239
|
+
this._data = context.data;
|
|
240
|
+
|
|
241
|
+
// Set interaction (which recomputes interactionParamsSchema from prompts via setter)
|
|
182
242
|
this.interaction = inter;
|
|
243
|
+
// Prefer the schema stored in context (persisted with the run) over the recomputed one
|
|
244
|
+
if (context.interactionParamsSchema != null) {
|
|
245
|
+
this.interactionParamsSchema = context.interactionParamsSchema;
|
|
246
|
+
}
|
|
183
247
|
|
|
184
248
|
this._tool_names = context.tool_names || [];
|
|
185
|
-
this._data = context.data;
|
|
186
249
|
this._interactive = context.interactive;
|
|
187
250
|
this._debug_mode = context.debug_mode ?? false;
|
|
251
|
+
this._non_blocking_subagents = context.non_blocking_subagents ?? true;
|
|
188
252
|
this._checkpoint_tokens = context.checkpoint_tokens;
|
|
189
253
|
this._user_channels = context.user_channels;
|
|
190
254
|
this.collection = context.collection_id ?? undefined;
|
|
@@ -277,6 +341,25 @@ export class PayloadBuilder {
|
|
|
277
341
|
}
|
|
278
342
|
}
|
|
279
343
|
|
|
344
|
+
markStarted() {
|
|
345
|
+
this.start = true;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
// Method-style setters for use in React components (avoids react-hooks/immutability lint errors)
|
|
349
|
+
setMode(mode: 'start' | 'schedule') { this.mode = mode; }
|
|
350
|
+
setInteraction(interaction: InCodeInteraction | undefined) { this.interaction = interaction; }
|
|
351
|
+
setEnvironment(environment: ExecutionEnvironmentRef | undefined) { this.environment = environment; }
|
|
352
|
+
setModel(model: string | undefined) { this.model = model; }
|
|
353
|
+
setToolNames(tools: string[]) { this.tool_names = tools; }
|
|
354
|
+
setCollection(collection: string | undefined) { this.collection = collection; }
|
|
355
|
+
setInteractive(interactive: boolean) { this.interactive = interactive; }
|
|
356
|
+
setDebugMode(debug_mode: boolean) { this.debug_mode = debug_mode; }
|
|
357
|
+
setUserChannels(channels: UserChannel[] | undefined) { this.user_channels = channels; }
|
|
358
|
+
setCheckpointTokens(value: number | undefined) { this.checkpoint_tokens = value; }
|
|
359
|
+
setVisibility(value: ConversationVisibility | undefined) { this.visibility = value; }
|
|
360
|
+
setData(data: JSONObject) { this.data = data; }
|
|
361
|
+
setPreserveRunValues(value: boolean) { this.preserveRunValues = value; }
|
|
362
|
+
|
|
280
363
|
get start(): boolean {
|
|
281
364
|
return this._start;
|
|
282
365
|
}
|
|
@@ -289,6 +372,10 @@ export class PayloadBuilder {
|
|
|
289
372
|
this._preserveRunValues = value;
|
|
290
373
|
}
|
|
291
374
|
|
|
375
|
+
get schemaVersion(): number {
|
|
376
|
+
return this._schemaVersion;
|
|
377
|
+
}
|
|
378
|
+
|
|
292
379
|
get interactionParamsSchema(): JSONSchema | null | undefined {
|
|
293
380
|
return this._interactionParamsSchema;
|
|
294
381
|
}
|
|
@@ -296,6 +383,7 @@ export class PayloadBuilder {
|
|
|
296
383
|
set interactionParamsSchema(schema: JSONSchema | null | undefined) {
|
|
297
384
|
if (this._interactionParamsSchema !== schema) {
|
|
298
385
|
this._interactionParamsSchema = schema;
|
|
386
|
+
this._schemaVersion += 1;
|
|
299
387
|
// Booleans must be true or false, never undefined
|
|
300
388
|
if (schema) {
|
|
301
389
|
this._data = this.initializeBooleanDefaults(this._data || {}, schema);
|
|
@@ -332,6 +420,7 @@ export class PayloadBuilder {
|
|
|
332
420
|
this._start = false;
|
|
333
421
|
this._interactive = true;
|
|
334
422
|
this._debug_mode = false;
|
|
423
|
+
this._non_blocking_subagents = true;
|
|
335
424
|
this._checkpoint_tokens = undefined;
|
|
336
425
|
this._visibility = undefined;
|
|
337
426
|
this._user_channels = undefined;
|
|
@@ -390,11 +479,9 @@ interface PayloadProviderProps {
|
|
|
390
479
|
}
|
|
391
480
|
export function PayloadBuilderProvider({ children }: PayloadProviderProps) {
|
|
392
481
|
const { client } = useUserSession();
|
|
393
|
-
const [
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
}, []);
|
|
397
|
-
return builder && (
|
|
482
|
+
const [store] = useState(() => new PayloadBuilderStore(client));
|
|
483
|
+
const builder = useSyncExternalStore(store.subscribe, store.getSnapshot);
|
|
484
|
+
return (
|
|
398
485
|
<PayloadContext.Provider value={builder}>{children}</PayloadContext.Provider >
|
|
399
486
|
)
|
|
400
487
|
}
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import React, { useCallback, useMemo, useState } from 'react';
|
|
2
|
+
import { Badge, Button, useToast, Tabs, TabsBar, TabsPanel, type Tab as TabDefinition } from '@vertesia/ui/core';
|
|
3
|
+
import { useUITranslation } from '../../../i18n/index.js';
|
|
4
|
+
import {
|
|
5
|
+
CheckCircleIcon,
|
|
6
|
+
ClipboardCopyIcon,
|
|
7
|
+
DownloadCloudIcon,
|
|
8
|
+
FileTextIcon,
|
|
9
|
+
Loader2Icon,
|
|
10
|
+
LayoutListIcon,
|
|
11
|
+
XCircleIcon,
|
|
12
|
+
XIcon,
|
|
13
|
+
} from 'lucide-react';
|
|
14
|
+
import { FileProcessingStatus } from '@vertesia/common';
|
|
15
|
+
import type { Plan, ConversationFile, AgentMessage } from '@vertesia/common';
|
|
16
|
+
import { useUserSession } from '@vertesia/ui/session';
|
|
17
|
+
import InlineSlidingPlanPanel from './ModernAgentOutput/InlineSlidingPlanPanel';
|
|
18
|
+
import { getConversationUrl } from './ModernAgentOutput/utils.js';
|
|
19
|
+
import { DocumentPanel } from './DocumentPanel.js';
|
|
20
|
+
import { ArtifactsTab } from './ArtifactsTab.js';
|
|
21
|
+
import type { OpenDocument } from './types/document.js';
|
|
22
|
+
|
|
23
|
+
// ---------------------------------------------------------------------------
|
|
24
|
+
// Workstream list types
|
|
25
|
+
// ---------------------------------------------------------------------------
|
|
26
|
+
|
|
27
|
+
export interface WorkstreamInfo {
|
|
28
|
+
workstream_id: string;
|
|
29
|
+
launch_id: string;
|
|
30
|
+
elapsed_ms: number;
|
|
31
|
+
deadline_ms: number;
|
|
32
|
+
remaining_ms: number;
|
|
33
|
+
status: 'running' | 'canceling';
|
|
34
|
+
phase?: string;
|
|
35
|
+
child_workflow_id?: string;
|
|
36
|
+
child_workflow_run_id?: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// ---------------------------------------------------------------------------
|
|
40
|
+
// UploadedDocuments (moved from WorkflowPayloadForm)
|
|
41
|
+
// ---------------------------------------------------------------------------
|
|
42
|
+
|
|
43
|
+
interface UploadedDocumentsProps {
|
|
44
|
+
files?: Map<string, ConversationFile>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function UploadedDocumentsTab({ files }: UploadedDocumentsProps) {
|
|
48
|
+
const { t } = useUITranslation();
|
|
49
|
+
const filesArray = useMemo(() => {
|
|
50
|
+
return files ? Array.from(files.values()) : [];
|
|
51
|
+
}, [files]);
|
|
52
|
+
|
|
53
|
+
const getStatusIcon = (status: FileProcessingStatus) => {
|
|
54
|
+
switch (status) {
|
|
55
|
+
case FileProcessingStatus.UPLOADING:
|
|
56
|
+
case FileProcessingStatus.PROCESSING:
|
|
57
|
+
return <Loader2Icon className="size-4 animate-spin text-info" />;
|
|
58
|
+
case FileProcessingStatus.READY:
|
|
59
|
+
return <CheckCircleIcon className="size-4 text-success" />;
|
|
60
|
+
case FileProcessingStatus.ERROR:
|
|
61
|
+
return <XCircleIcon className="size-4 text-destructive" />;
|
|
62
|
+
default:
|
|
63
|
+
return <FileTextIcon className="size-4 text-muted" />;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
const getStatusBadge = (status: FileProcessingStatus) => {
|
|
68
|
+
switch (status) {
|
|
69
|
+
case FileProcessingStatus.UPLOADING:
|
|
70
|
+
return <Badge variant="info">{t('agent.uploading')}</Badge>;
|
|
71
|
+
case FileProcessingStatus.PROCESSING:
|
|
72
|
+
return <Badge variant="info">{t('agent.processing')}</Badge>;
|
|
73
|
+
case FileProcessingStatus.READY:
|
|
74
|
+
return <Badge variant="success">{t('agent.ready')}</Badge>;
|
|
75
|
+
case FileProcessingStatus.ERROR:
|
|
76
|
+
return <Badge variant="destructive">{t('agent.error')}</Badge>;
|
|
77
|
+
default:
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
return (
|
|
83
|
+
<div className="p-3">
|
|
84
|
+
{filesArray.length === 0 ? (
|
|
85
|
+
<div className="text-sm text-muted text-center py-8">
|
|
86
|
+
{t('agent.noFilesUploadedYet')}
|
|
87
|
+
</div>
|
|
88
|
+
) : (
|
|
89
|
+
<div className="space-y-2">
|
|
90
|
+
{filesArray.map((file) => (
|
|
91
|
+
<div
|
|
92
|
+
key={file.id}
|
|
93
|
+
className="flex items-start gap-2 p-2 border border-muted rounded-md"
|
|
94
|
+
>
|
|
95
|
+
<div className="mt-0.5">{getStatusIcon(file.status)}</div>
|
|
96
|
+
<div className="flex-1 min-w-0">
|
|
97
|
+
<div className="flex items-center justify-between gap-2">
|
|
98
|
+
<span className="text-sm font-medium truncate">
|
|
99
|
+
{file.name}
|
|
100
|
+
</span>
|
|
101
|
+
{getStatusBadge(file.status)}
|
|
102
|
+
</div>
|
|
103
|
+
{file.error && (
|
|
104
|
+
<div className="text-xs text-destructive mt-1">
|
|
105
|
+
{file.error}
|
|
106
|
+
</div>
|
|
107
|
+
)}
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
))}
|
|
111
|
+
</div>
|
|
112
|
+
)}
|
|
113
|
+
</div>
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// ---------------------------------------------------------------------------
|
|
118
|
+
// Workstreams tab
|
|
119
|
+
// ---------------------------------------------------------------------------
|
|
120
|
+
|
|
121
|
+
interface WorkstreamsTabProps {
|
|
122
|
+
workstreams: WorkstreamInfo[];
|
|
123
|
+
messages: AgentMessage[];
|
|
124
|
+
runId?: string;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function WorkstreamsTab({ workstreams }: WorkstreamsTabProps) {
|
|
128
|
+
const { t } = useUITranslation();
|
|
129
|
+
const { client } = useUserSession();
|
|
130
|
+
const toast = useToast();
|
|
131
|
+
|
|
132
|
+
const copyRunId = useCallback((runId: string) => {
|
|
133
|
+
navigator.clipboard.writeText(runId);
|
|
134
|
+
toast({ status: 'success', title: t('agent.runIdCopied'), duration: 2000 });
|
|
135
|
+
}, [toast]);
|
|
136
|
+
|
|
137
|
+
const downloadConversation = useCallback(async (runId: string) => {
|
|
138
|
+
try {
|
|
139
|
+
const url = await getConversationUrl(client, runId);
|
|
140
|
+
if (url) window.open(url, '_blank');
|
|
141
|
+
} catch {
|
|
142
|
+
toast({ status: 'error', title: t('agent.failedToDownload') });
|
|
143
|
+
}
|
|
144
|
+
}, [client, toast]);
|
|
145
|
+
|
|
146
|
+
if (workstreams.length === 0) {
|
|
147
|
+
return (
|
|
148
|
+
<div className="flex flex-col items-center justify-center py-8 text-muted">
|
|
149
|
+
<LayoutListIcon className="size-8 mb-2" />
|
|
150
|
+
<span className="text-sm">{t('agent.noActiveWorkstreams')}</span>
|
|
151
|
+
</div>
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return (
|
|
156
|
+
<div className="p-3 space-y-2">
|
|
157
|
+
{workstreams.map((ws) => {
|
|
158
|
+
const elapsed = Math.round(ws.elapsed_ms / 1000);
|
|
159
|
+
const remaining = Math.round(ws.remaining_ms / 1000);
|
|
160
|
+
const progress = ws.deadline_ms > 0
|
|
161
|
+
? Math.min(100, Math.round((ws.elapsed_ms / ws.deadline_ms) * 100))
|
|
162
|
+
: 0;
|
|
163
|
+
|
|
164
|
+
return (
|
|
165
|
+
<div
|
|
166
|
+
key={ws.launch_id}
|
|
167
|
+
className="p-3 border rounded-md space-y-2"
|
|
168
|
+
>
|
|
169
|
+
<div className="flex items-center justify-between">
|
|
170
|
+
<span className="text-sm font-medium truncate">
|
|
171
|
+
{ws.workstream_id}
|
|
172
|
+
</span>
|
|
173
|
+
<Badge variant={ws.status === 'running' ? 'info' : 'attention'}>
|
|
174
|
+
{ws.status === 'running' ? (ws.phase || 'running') : 'canceling'}
|
|
175
|
+
</Badge>
|
|
176
|
+
</div>
|
|
177
|
+
{/* Progress bar */}
|
|
178
|
+
<div className="w-full h-1.5 bg-muted rounded-full overflow-hidden">
|
|
179
|
+
<div
|
|
180
|
+
className="h-full bg-info rounded-full transition-all duration-500"
|
|
181
|
+
style={{ width: `${progress}%` }}
|
|
182
|
+
/>
|
|
183
|
+
</div>
|
|
184
|
+
<div className="flex justify-between text-xs text-muted">
|
|
185
|
+
<span>{t('agent.elapsed', { seconds: elapsed })}</span>
|
|
186
|
+
<span>{t('agent.remaining', { seconds: remaining })}</span>
|
|
187
|
+
</div>
|
|
188
|
+
{/* Actions */}
|
|
189
|
+
{ws.child_workflow_run_id && (
|
|
190
|
+
<div className="flex gap-1 pt-1 border-t border-muted">
|
|
191
|
+
<Button
|
|
192
|
+
variant="ghost"
|
|
193
|
+
size="sm"
|
|
194
|
+
className="text-xs h-7 px-2 text-muted hover:text-foreground"
|
|
195
|
+
onClick={() => copyRunId(ws.child_workflow_run_id!)}
|
|
196
|
+
>
|
|
197
|
+
<ClipboardCopyIcon className="size-3 mr-1" />
|
|
198
|
+
{t('agent.copyRunId')}
|
|
199
|
+
</Button>
|
|
200
|
+
<Button
|
|
201
|
+
variant="ghost"
|
|
202
|
+
size="sm"
|
|
203
|
+
className="text-xs h-7 px-2 text-muted hover:text-foreground"
|
|
204
|
+
onClick={() => downloadConversation(ws.child_workflow_run_id!)}
|
|
205
|
+
>
|
|
206
|
+
<DownloadCloudIcon className="size-3 mr-1" />
|
|
207
|
+
{t('agent.download')}
|
|
208
|
+
</Button>
|
|
209
|
+
</div>
|
|
210
|
+
)}
|
|
211
|
+
</div>
|
|
212
|
+
);
|
|
213
|
+
})}
|
|
214
|
+
</div>
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// ---------------------------------------------------------------------------
|
|
219
|
+
// Right panel tabs
|
|
220
|
+
// ---------------------------------------------------------------------------
|
|
221
|
+
|
|
222
|
+
type RightPanelTab = 'plan' | 'workstreams' | 'documents' | 'uploads' | 'artifacts' | 'payload' | 'conversation';
|
|
223
|
+
|
|
224
|
+
export interface AgentRightPanelProps {
|
|
225
|
+
/** Optional payload content to show as a "Payload" tab */
|
|
226
|
+
payloadContent?: React.ReactNode;
|
|
227
|
+
/** Optional conversation content to show as a "Conversation" tab */
|
|
228
|
+
conversationContent?: React.ReactNode;
|
|
229
|
+
// Plan
|
|
230
|
+
plan?: Plan;
|
|
231
|
+
workstreamStatus?: Map<string, 'pending' | 'in_progress' | 'completed' | 'skipped'>;
|
|
232
|
+
plans?: Array<{ plan: Plan; timestamp: number }>;
|
|
233
|
+
activePlanIndex?: number;
|
|
234
|
+
onChangePlan?: (index: number) => void;
|
|
235
|
+
showPlan?: boolean;
|
|
236
|
+
|
|
237
|
+
// Workstreams
|
|
238
|
+
activeWorkstreams?: WorkstreamInfo[];
|
|
239
|
+
messages?: AgentMessage[];
|
|
240
|
+
hideWorkstreams?: boolean;
|
|
241
|
+
|
|
242
|
+
// Documents
|
|
243
|
+
openDocuments?: OpenDocument[];
|
|
244
|
+
activeDocumentId?: string | null;
|
|
245
|
+
onSelectDocument?: (id: string) => void;
|
|
246
|
+
onCloseDocument?: (id: string) => void;
|
|
247
|
+
docRefreshKey?: number;
|
|
248
|
+
runId?: string;
|
|
249
|
+
|
|
250
|
+
// Uploads
|
|
251
|
+
processingFiles?: Map<string, ConversationFile>;
|
|
252
|
+
|
|
253
|
+
// Artifacts
|
|
254
|
+
/** Show the Artifacts tab (opt-in, default false) */
|
|
255
|
+
showArtifacts?: boolean;
|
|
256
|
+
artifactRefreshKey?: number;
|
|
257
|
+
|
|
258
|
+
// Panel control
|
|
259
|
+
onClose: () => void;
|
|
260
|
+
/** Which tab to auto-activate when panel opens */
|
|
261
|
+
defaultTab?: RightPanelTab;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
function AgentRightPanelComponent({
|
|
265
|
+
// Plan
|
|
266
|
+
plan,
|
|
267
|
+
workstreamStatus,
|
|
268
|
+
plans = [],
|
|
269
|
+
activePlanIndex = 0,
|
|
270
|
+
onChangePlan,
|
|
271
|
+
showPlan,
|
|
272
|
+
|
|
273
|
+
// Workstreams
|
|
274
|
+
activeWorkstreams = [],
|
|
275
|
+
messages = [],
|
|
276
|
+
hideWorkstreams = false,
|
|
277
|
+
|
|
278
|
+
// Documents
|
|
279
|
+
openDocuments = [],
|
|
280
|
+
activeDocumentId,
|
|
281
|
+
onSelectDocument,
|
|
282
|
+
onCloseDocument,
|
|
283
|
+
docRefreshKey = 0,
|
|
284
|
+
runId,
|
|
285
|
+
|
|
286
|
+
// Uploads
|
|
287
|
+
processingFiles,
|
|
288
|
+
|
|
289
|
+
// Artifacts
|
|
290
|
+
showArtifacts = false,
|
|
291
|
+
artifactRefreshKey = 0,
|
|
292
|
+
|
|
293
|
+
// Payload
|
|
294
|
+
payloadContent,
|
|
295
|
+
|
|
296
|
+
// Conversation
|
|
297
|
+
conversationContent,
|
|
298
|
+
|
|
299
|
+
// Panel
|
|
300
|
+
onClose,
|
|
301
|
+
defaultTab,
|
|
302
|
+
}: AgentRightPanelProps) {
|
|
303
|
+
const { t } = useUITranslation();
|
|
304
|
+
const [activeTab, setActiveTab] = useState<RightPanelTab>(defaultTab || 'plan');
|
|
305
|
+
|
|
306
|
+
// Determine which tabs have content (for badges/indicators)
|
|
307
|
+
const hasWorkstreams = !hideWorkstreams && activeWorkstreams.length > 0;
|
|
308
|
+
const hasDocuments = openDocuments.length > 0;
|
|
309
|
+
const hasUploads = processingFiles ? processingFiles.size > 0 : false;
|
|
310
|
+
const hasPlan = showPlan && plan;
|
|
311
|
+
|
|
312
|
+
const handleCloseDocPanel = useCallback(() => {
|
|
313
|
+
setActiveTab('plan');
|
|
314
|
+
}, []);
|
|
315
|
+
|
|
316
|
+
const conversationTab: TabDefinition = {
|
|
317
|
+
name: 'conversation',
|
|
318
|
+
label: 'Conversation',
|
|
319
|
+
content: conversationContent ? <div className="flex flex-col h-full min-h-0">{conversationContent}</div> : null,
|
|
320
|
+
is_allowed: !!conversationContent,
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
const tabs: TabDefinition[] = [
|
|
324
|
+
...(conversationContent ? [conversationTab] : []),
|
|
325
|
+
{
|
|
326
|
+
name: 'plan',
|
|
327
|
+
label: hasPlan
|
|
328
|
+
? <span className="flex items-center gap-1">{t('agent.plan')} <span className="inline-block w-1.5 h-1.5 rounded-full bg-info" /></span>
|
|
329
|
+
: t('agent.plan'),
|
|
330
|
+
content: plan ? (
|
|
331
|
+
<InlineSlidingPlanPanel
|
|
332
|
+
plan={plan}
|
|
333
|
+
workstreamStatus={workstreamStatus || new Map()}
|
|
334
|
+
isOpen={true}
|
|
335
|
+
onClose={onClose}
|
|
336
|
+
plans={plans}
|
|
337
|
+
activePlanIndex={activePlanIndex}
|
|
338
|
+
onChangePlan={onChangePlan}
|
|
339
|
+
/>
|
|
340
|
+
) : (
|
|
341
|
+
<div className="flex flex-col items-center justify-center py-8 text-muted">
|
|
342
|
+
<span className="text-sm">{t('agent.noPlanAvailable')}</span>
|
|
343
|
+
</div>
|
|
344
|
+
),
|
|
345
|
+
is_allowed: true,
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
name: 'workstreams',
|
|
349
|
+
label: hasWorkstreams
|
|
350
|
+
? <span className="flex items-center gap-1">{t('agent.workstreams')} <span className="inline-flex items-center justify-center px-1.5 py-0.5 text-[10px] rounded-full bg-info text-info">{activeWorkstreams.length}</span></span>
|
|
351
|
+
: t('agent.workstreams'),
|
|
352
|
+
content: <WorkstreamsTab workstreams={activeWorkstreams} messages={messages} runId={runId} />,
|
|
353
|
+
is_allowed: !hideWorkstreams,
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
name: 'documents',
|
|
357
|
+
label: hasDocuments
|
|
358
|
+
? <span className="flex items-center gap-1">{t('agent.documents')} <span className="inline-flex items-center justify-center px-1.5 py-0.5 text-[10px] rounded-full bg-info text-info">{openDocuments.length}</span></span>
|
|
359
|
+
: t('agent.documents'),
|
|
360
|
+
content: openDocuments.length > 0 && onSelectDocument && onCloseDocument ? (
|
|
361
|
+
<DocumentPanel
|
|
362
|
+
isOpen={true}
|
|
363
|
+
onClose={handleCloseDocPanel}
|
|
364
|
+
documents={openDocuments}
|
|
365
|
+
activeDocumentId={activeDocumentId ?? null}
|
|
366
|
+
onSelectDocument={onSelectDocument}
|
|
367
|
+
onCloseDocument={onCloseDocument}
|
|
368
|
+
refreshKey={docRefreshKey}
|
|
369
|
+
runId={runId}
|
|
370
|
+
/>
|
|
371
|
+
) : (
|
|
372
|
+
<div className="flex flex-col items-center justify-center py-8 text-muted">
|
|
373
|
+
<FileTextIcon className="size-8 mb-2" />
|
|
374
|
+
<span className="text-sm">{t('agent.noDocumentsOpen')}</span>
|
|
375
|
+
</div>
|
|
376
|
+
),
|
|
377
|
+
is_allowed: true,
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
name: 'uploads',
|
|
381
|
+
label: hasUploads
|
|
382
|
+
? <span className="flex items-center gap-1">{t('agent.uploads')} <span className="inline-block w-1.5 h-1.5 rounded-full bg-info" /></span>
|
|
383
|
+
: t('agent.uploads'),
|
|
384
|
+
content: <UploadedDocumentsTab files={processingFiles} />,
|
|
385
|
+
is_allowed: true,
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
name: 'artifacts',
|
|
389
|
+
label: t('agent.artifacts'),
|
|
390
|
+
content: <ArtifactsTab runId={runId} refreshKey={artifactRefreshKey} />,
|
|
391
|
+
is_allowed: showArtifacts,
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
name: 'payload',
|
|
395
|
+
label: t('agent.payload'),
|
|
396
|
+
content: payloadContent ? <div className="overflow-y-auto">{payloadContent}</div> : null,
|
|
397
|
+
is_allowed: !!payloadContent,
|
|
398
|
+
},
|
|
399
|
+
];
|
|
400
|
+
|
|
401
|
+
return (
|
|
402
|
+
<Tabs
|
|
403
|
+
tabs={tabs}
|
|
404
|
+
current={activeTab}
|
|
405
|
+
onTabChange={(name) => setActiveTab(name as RightPanelTab)}
|
|
406
|
+
fullHeight
|
|
407
|
+
className="px-0"
|
|
408
|
+
>
|
|
409
|
+
<div className="flex items-center border-b shrink-0 px-1">
|
|
410
|
+
<div className="flex-1 overflow-x-auto">
|
|
411
|
+
<TabsBar className="border-b-0 mb-0 min-w-max" />
|
|
412
|
+
</div>
|
|
413
|
+
{!conversationContent && (
|
|
414
|
+
<Button variant="ghost" size="sm" className="shrink-0 ml-1" onClick={onClose}>
|
|
415
|
+
<XIcon className="size-4" />
|
|
416
|
+
</Button>
|
|
417
|
+
)}
|
|
418
|
+
</div>
|
|
419
|
+
<TabsPanel className="pt-0" />
|
|
420
|
+
</Tabs>
|
|
421
|
+
);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export const AgentRightPanel = React.memo(AgentRightPanelComponent);
|