@vertesia/ui 1.5.0-dev.20260722.120446Z → 1.5.0-dev.20260804.124748Z
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/core/components/shadcn/filters/filterBar.d.ts.map +1 -1
- package/lib/core/components/shadcn/filters/filterBar.js +1 -1
- package/lib/core/components/shadcn/filters/filterBar.js.map +1 -1
- package/lib/core/components/shadcn/modal/dialog.d.ts +1 -1
- package/lib/core/components/shadcn/modal/dialog.d.ts.map +1 -1
- package/lib/core/components/shadcn/modal/dialog.js +2 -0
- package/lib/core/components/shadcn/modal/dialog.js.map +1 -1
- package/lib/core/components/shadcn/tabs.d.ts +12 -1
- package/lib/core/components/shadcn/tabs.d.ts.map +1 -1
- package/lib/core/components/shadcn/tabs.js +12 -4
- package/lib/core/components/shadcn/tabs.js.map +1 -1
- package/lib/core/hooks/useScrollableSearch.d.ts +1 -1
- package/lib/core/hooks/useScrollableSearch.d.ts.map +1 -1
- package/lib/core/hooks/useScrollableSearch.js +15 -2
- package/lib/core/hooks/useScrollableSearch.js.map +1 -1
- package/lib/env/index.d.ts +4 -0
- package/lib/env/index.d.ts.map +1 -1
- package/lib/env/index.js.map +1 -1
- package/lib/features/agent/chat/AgentRequestInputOverlay.d.ts +1 -1
- package/lib/features/agent/chat/AgentRequestInputOverlay.d.ts.map +1 -1
- package/lib/features/agent/chat/AgentRequestInputOverlay.js +3 -8
- package/lib/features/agent/chat/AgentRequestInputOverlay.js.map +1 -1
- package/lib/features/agent/chat/AgentRightPanel.d.ts +5 -1
- package/lib/features/agent/chat/AgentRightPanel.d.ts.map +1 -1
- package/lib/features/agent/chat/AgentRightPanel.js +2 -2
- package/lib/features/agent/chat/AgentRightPanel.js.map +1 -1
- package/lib/features/agent/chat/ArtifactsTab.d.ts +5 -1
- package/lib/features/agent/chat/ArtifactsTab.d.ts.map +1 -1
- package/lib/features/agent/chat/ArtifactsTab.js +48 -11
- package/lib/features/agent/chat/ArtifactsTab.js.map +1 -1
- package/lib/features/agent/chat/DocumentEditingActionCard.d.ts +6 -0
- package/lib/features/agent/chat/DocumentEditingActionCard.d.ts.map +1 -0
- package/lib/features/agent/chat/DocumentEditingActionCard.js +129 -0
- package/lib/features/agent/chat/DocumentEditingActionCard.js.map +1 -0
- package/lib/features/agent/chat/ModernAgentConversation.d.ts +27 -2
- package/lib/features/agent/chat/ModernAgentConversation.d.ts.map +1 -1
- package/lib/features/agent/chat/ModernAgentConversation.js +174 -40
- package/lib/features/agent/chat/ModernAgentConversation.js.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/ActiveWorkstreamsSummary.d.ts +2 -1
- package/lib/features/agent/chat/ModernAgentOutput/ActiveWorkstreamsSummary.d.ts.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/ActiveWorkstreamsSummary.js +25 -10
- package/lib/features/agent/chat/ModernAgentOutput/ActiveWorkstreamsSummary.js.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/AgentMarkdownAnchor.d.ts +45 -0
- package/lib/features/agent/chat/ModernAgentOutput/AgentMarkdownAnchor.d.ts.map +1 -0
- package/lib/features/agent/chat/ModernAgentOutput/AgentMarkdownAnchor.js +40 -0
- package/lib/features/agent/chat/ModernAgentOutput/AgentMarkdownAnchor.js.map +1 -0
- package/lib/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +3 -1
- package/lib/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +118 -58
- package/lib/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/AttachmentPreview.d.ts +2 -1
- package/lib/features/agent/chat/ModernAgentOutput/AttachmentPreview.d.ts.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/AttachmentPreview.js +23 -7
- package/lib/features/agent/chat/ModernAgentOutput/AttachmentPreview.js.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/CollapsibleAgentMarkdown.d.ts +25 -0
- package/lib/features/agent/chat/ModernAgentOutput/CollapsibleAgentMarkdown.d.ts.map +1 -0
- package/lib/features/agent/chat/ModernAgentOutput/CollapsibleAgentMarkdown.js +33 -0
- package/lib/features/agent/chat/ModernAgentOutput/CollapsibleAgentMarkdown.js.map +1 -0
- package/lib/features/agent/chat/ModernAgentOutput/Header.js +2 -2
- package/lib/features/agent/chat/ModernAgentOutput/Header.js.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/MessageInput.d.ts +2 -1
- package/lib/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/MessageInput.js +2 -2
- package/lib/features/agent/chat/ModernAgentOutput/MessageInput.js.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/MessageItem.d.ts +3 -1
- package/lib/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/MessageItem.js +23 -25
- package/lib/features/agent/chat/ModernAgentOutput/MessageItem.js.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/ResourceChangeSummary.d.ts +14 -0
- package/lib/features/agent/chat/ModernAgentOutput/ResourceChangeSummary.d.ts.map +1 -0
- package/lib/features/agent/chat/ModernAgentOutput/ResourceChangeSummary.js +21 -0
- package/lib/features/agent/chat/ModernAgentOutput/ResourceChangeSummary.js.map +1 -0
- package/lib/features/agent/chat/ModernAgentOutput/ResourceChip.d.ts +30 -0
- package/lib/features/agent/chat/ModernAgentOutput/ResourceChip.d.ts.map +1 -0
- package/lib/features/agent/chat/ModernAgentOutput/ResourceChip.js +53 -0
- package/lib/features/agent/chat/ModernAgentOutput/ResourceChip.js.map +1 -0
- package/lib/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/ToolCallGroup.js +21 -2
- package/lib/features/agent/chat/ModernAgentOutput/ToolCallGroup.js.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/requestInputMessages.d.ts +9 -1
- package/lib/features/agent/chat/ModernAgentOutput/requestInputMessages.d.ts.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/requestInputMessages.js +97 -2
- package/lib/features/agent/chat/ModernAgentOutput/requestInputMessages.js.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/resourceLinks.d.ts +6 -0
- package/lib/features/agent/chat/ModernAgentOutput/resourceLinks.d.ts.map +1 -0
- package/lib/features/agent/chat/ModernAgentOutput/resourceLinks.js +29 -0
- package/lib/features/agent/chat/ModernAgentOutput/resourceLinks.js.map +1 -0
- package/lib/features/agent/chat/ModernAgentOutput/resourceSummary.d.ts +33 -0
- package/lib/features/agent/chat/ModernAgentOutput/resourceSummary.d.ts.map +1 -0
- package/lib/features/agent/chat/ModernAgentOutput/resourceSummary.js +129 -0
- package/lib/features/agent/chat/ModernAgentOutput/resourceSummary.js.map +1 -0
- package/lib/features/agent/chat/ModernAgentOutput/utils.d.ts +7 -0
- package/lib/features/agent/chat/ModernAgentOutput/utils.d.ts.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/utils.js +11 -1
- package/lib/features/agent/chat/ModernAgentOutput/utils.js.map +1 -1
- package/lib/features/agent/chat/hooks/useAgentStream.d.ts +1 -1
- package/lib/features/agent/chat/hooks/useAgentStream.d.ts.map +1 -1
- package/lib/features/agent/chat/hooks/useAgentStream.js +34 -10
- package/lib/features/agent/chat/hooks/useAgentStream.js.map +1 -1
- package/lib/features/agent/chat/index.d.ts +2 -1
- package/lib/features/agent/chat/index.d.ts.map +1 -1
- package/lib/features/agent/chat/index.js +3 -0
- package/lib/features/agent/chat/index.js.map +1 -1
- package/lib/features/facets/PromptsFacetsNav.d.ts +8 -6
- package/lib/features/facets/PromptsFacetsNav.d.ts.map +1 -1
- package/lib/features/facets/PromptsFacetsNav.js +8 -3
- package/lib/features/facets/PromptsFacetsNav.js.map +1 -1
- package/lib/features/store/objects/DocumentSearchResults.js +2 -2
- package/lib/features/store/objects/DocumentSearchResults.js.map +1 -1
- package/lib/features/store/objects/components/ContentOverview.d.ts +2 -1
- package/lib/features/store/objects/components/ContentOverview.d.ts.map +1 -1
- package/lib/features/store/objects/components/ContentOverview.js +90 -16
- package/lib/features/store/objects/components/ContentOverview.js.map +1 -1
- package/lib/features/store/objects/components/DocumentEditingConfigurationSelector.d.ts +16 -0
- package/lib/features/store/objects/components/DocumentEditingConfigurationSelector.d.ts.map +1 -0
- package/lib/features/store/objects/components/DocumentEditingConfigurationSelector.js +116 -0
- package/lib/features/store/objects/components/DocumentEditingConfigurationSelector.js.map +1 -0
- package/lib/features/store/objects/components/DocumentEditingLockStatus.d.ts +7 -0
- package/lib/features/store/objects/components/DocumentEditingLockStatus.d.ts.map +1 -0
- package/lib/features/store/objects/components/DocumentEditingLockStatus.js +13 -0
- package/lib/features/store/objects/components/DocumentEditingLockStatus.js.map +1 -0
- package/lib/features/store/objects/components/DocumentEditingPanel.d.ts +48 -0
- package/lib/features/store/objects/components/DocumentEditingPanel.d.ts.map +1 -0
- package/lib/features/store/objects/components/DocumentEditingPanel.js +720 -0
- package/lib/features/store/objects/components/DocumentEditingPanel.js.map +1 -0
- package/lib/features/store/objects/components/TextEditorPanel.d.ts.map +1 -1
- package/lib/features/store/objects/components/TextEditorPanel.js +22 -9
- package/lib/features/store/objects/components/TextEditorPanel.js.map +1 -1
- package/lib/features/store/objects/components/documentArtifactRefs.d.ts +26 -0
- package/lib/features/store/objects/components/documentArtifactRefs.d.ts.map +1 -0
- package/lib/features/store/objects/components/documentArtifactRefs.js +52 -0
- package/lib/features/store/objects/components/documentArtifactRefs.js.map +1 -0
- package/lib/features/store/objects/components/documentEditingAgentConfig.d.ts +4 -0
- package/lib/features/store/objects/components/documentEditingAgentConfig.d.ts.map +1 -0
- package/lib/features/store/objects/components/documentEditingAgentConfig.js +40 -0
- package/lib/features/store/objects/components/documentEditingAgentConfig.js.map +1 -0
- package/lib/features/store/objects/components/documentEditingPrompts.d.ts +3 -0
- package/lib/features/store/objects/components/documentEditingPrompts.d.ts.map +1 -0
- package/lib/features/store/objects/components/documentEditingPrompts.js +13 -0
- package/lib/features/store/objects/components/documentEditingPrompts.js.map +1 -0
- package/lib/features/store/objects/components/documentEditingRun.d.ts +27 -0
- package/lib/features/store/objects/components/documentEditingRun.d.ts.map +1 -0
- package/lib/features/store/objects/components/documentEditingRun.js +126 -0
- package/lib/features/store/objects/components/documentEditingRun.js.map +1 -0
- package/lib/features/store/objects/components/documentEditingTarget.d.ts +20 -0
- package/lib/features/store/objects/components/documentEditingTarget.d.ts.map +1 -0
- package/lib/features/store/objects/components/documentEditingTarget.js +40 -0
- package/lib/features/store/objects/components/documentEditingTarget.js.map +1 -0
- package/lib/features/store/objects/components/index.d.ts +1 -0
- package/lib/features/store/objects/components/index.d.ts.map +1 -1
- package/lib/features/store/objects/components/index.js +1 -0
- package/lib/features/store/objects/components/index.js.map +1 -1
- package/lib/features/store/objects/components/useContentPanelHooks.d.ts +36 -4
- package/lib/features/store/objects/components/useContentPanelHooks.d.ts.map +1 -1
- package/lib/features/store/objects/components/useContentPanelHooks.js +53 -29
- package/lib/features/store/objects/components/useContentPanelHooks.js.map +1 -1
- package/lib/features/store/objects/components/useDownloadFile.d.ts +2 -1
- package/lib/features/store/objects/components/useDownloadFile.d.ts.map +1 -1
- package/lib/features/store/objects/components/useDownloadFile.js +3 -0
- package/lib/features/store/objects/components/useDownloadFile.js.map +1 -1
- package/lib/features/store/objects/search/DocumentSearchContext.d.ts +128 -6
- package/lib/features/store/objects/search/DocumentSearchContext.d.ts.map +1 -1
- package/lib/features/store/objects/selection/ObjectsActionContext.d.ts +2 -2
- package/lib/features/store/objects/selection/ObjectsActionContext.d.ts.map +1 -1
- package/lib/features/store/objects/selection/ObjectsActionSpec.d.ts +2 -2
- package/lib/features/store/objects/selection/ObjectsActionSpec.d.ts.map +1 -1
- package/lib/features/store/objects/selection/SelectionActions.d.ts +2 -2
- package/lib/features/store/objects/selection/SelectionActions.d.ts.map +1 -1
- package/lib/features/store/objects/selection/actions/StartWorkflowButton.js +1 -1
- package/lib/features/store/objects/selection/actions/StartWorkflowButton.js.map +1 -1
- package/lib/features/store/objects/upload/DocumentUploadModal.js.map +1 -1
- package/lib/features/store/types/IntakePolicyEditor.d.ts +2 -2
- package/lib/features/store/types/IntakePolicyEditor.d.ts.map +1 -1
- package/lib/features/store/types/IntakePolicyEditor.js +5 -1
- package/lib/features/store/types/IntakePolicyEditor.js.map +1 -1
- package/lib/features/store/types/IntakePolicyForm.d.ts.map +1 -1
- package/lib/features/store/types/IntakePolicyForm.js +2 -2
- package/lib/features/store/types/IntakePolicyForm.js.map +1 -1
- package/lib/features/store/types/ObjectSchemaEditor.d.ts +2 -2
- package/lib/features/store/types/ObjectSchemaEditor.d.ts.map +1 -1
- package/lib/features/store/types/SelectContentType.d.ts +2 -2
- package/lib/features/store/types/SelectContentType.d.ts.map +1 -1
- package/lib/features/store/types/SelectContentType.js.map +1 -1
- package/lib/features/store/types/SelectContentTypeModal.d.ts +2 -2
- package/lib/features/store/types/SelectContentTypeModal.d.ts.map +1 -1
- package/lib/features/store/types/SelectContentTypeModal.js.map +1 -1
- package/lib/features/store/types/TableLayoutEditor.d.ts +2 -2
- package/lib/features/store/types/TableLayoutEditor.d.ts.map +1 -1
- package/lib/features/store/types/TypeRegistry.d.ts +1267 -6
- package/lib/features/store/types/TypeRegistry.d.ts.map +1 -1
- package/lib/features/store/types/TypeRegistry.js +5 -0
- package/lib/features/store/types/TypeRegistry.js.map +1 -1
- package/lib/features/store/types/intake-policy-editor.logic.d.ts +9 -1
- package/lib/features/store/types/intake-policy-editor.logic.d.ts.map +1 -1
- package/lib/features/store/types/intake-policy-editor.logic.js +9 -1
- package/lib/features/store/types/intake-policy-editor.logic.js.map +1 -1
- package/lib/features/store/types/search/ObjectTypeSearchContext.d.ts +1251 -1
- package/lib/features/store/types/search/ObjectTypeSearchContext.d.ts.map +1 -1
- package/lib/features/store/types/typeCatalogCache.d.ts +2 -2
- package/lib/features/store/types/typeCatalogCache.d.ts.map +1 -1
- package/lib/features/store/types/typeCatalogCache.js +4 -0
- package/lib/features/store/types/typeCatalogCache.js.map +1 -1
- package/lib/features/user/UserInfo.d.ts +118 -7
- package/lib/features/user/UserInfo.d.ts.map +1 -1
- package/lib/i18n/locales/ar.json +120 -2
- package/lib/i18n/locales/de.json +120 -2
- package/lib/i18n/locales/en.json +123 -1
- package/lib/i18n/locales/es.json +120 -2
- package/lib/i18n/locales/fr.json +120 -2
- package/lib/i18n/locales/it.json +120 -2
- package/lib/i18n/locales/ja.json +120 -2
- package/lib/i18n/locales/ko.json +120 -2
- package/lib/i18n/locales/pt.json +120 -2
- package/lib/i18n/locales/ru.json +120 -2
- package/lib/i18n/locales/tr.json +120 -2
- package/lib/i18n/locales/zh-TW.json +120 -2
- package/lib/i18n/locales/zh.json +120 -2
- package/lib/rich-text/EditorToolbar.d.ts +37 -0
- package/lib/rich-text/EditorToolbar.d.ts.map +1 -0
- package/lib/rich-text/EditorToolbar.js +215 -0
- package/lib/rich-text/EditorToolbar.js.map +1 -0
- package/lib/rich-text/VertesiaRichTextEditor.d.ts +26 -0
- package/lib/rich-text/VertesiaRichTextEditor.d.ts.map +1 -0
- package/lib/rich-text/VertesiaRichTextEditor.js +67 -0
- package/lib/rich-text/VertesiaRichTextEditor.js.map +1 -0
- package/lib/rich-text/index.d.ts +2 -0
- package/lib/rich-text/index.d.ts.map +1 -0
- package/lib/rich-text/index.js +2 -0
- package/lib/rich-text/index.js.map +1 -0
- package/lib/session/UserSession.d.ts +18 -4
- package/lib/session/UserSession.d.ts.map +1 -1
- package/lib/shell/apps/AppInstallationProvider.d.ts +222 -2
- package/lib/shell/apps/AppInstallationProvider.d.ts.map +1 -1
- package/lib/shell/login/InviteAcceptModal.js.map +1 -1
- package/lib/vertesia-ui-core.js +3 -3
- package/lib/vertesia-ui-core.js.map +1 -1
- package/lib/vertesia-ui-features.js +35 -30
- package/lib/vertesia-ui-features.js.map +1 -1
- package/lib/vertesia-ui-i18n.js +14 -14
- package/lib/vertesia-ui-i18n.js.map +1 -1
- package/lib/vertesia-ui-rich-text.js +5 -0
- package/lib/vertesia-ui-rich-text.js.map +1 -0
- package/lib/vertesia-ui-widgets.js +25 -7
- package/lib/vertesia-ui-widgets.js.map +1 -1
- package/lib/widgets/markdown/AgentResourceResolver.d.ts +31 -0
- package/lib/widgets/markdown/AgentResourceResolver.d.ts.map +1 -0
- package/lib/widgets/markdown/AgentResourceResolver.js +39 -0
- package/lib/widgets/markdown/AgentResourceResolver.js.map +1 -0
- package/lib/widgets/markdown/ArtifactEditingSurface.d.ts +63 -0
- package/lib/widgets/markdown/ArtifactEditingSurface.d.ts.map +1 -0
- package/lib/widgets/markdown/ArtifactEditingSurface.js +582 -0
- package/lib/widgets/markdown/ArtifactEditingSurface.js.map +1 -0
- package/lib/widgets/markdown/CollaborativeMarkdownRenderer.d.ts +69 -0
- package/lib/widgets/markdown/CollaborativeMarkdownRenderer.d.ts.map +1 -0
- package/lib/widgets/markdown/CollaborativeMarkdownRenderer.js +374 -0
- package/lib/widgets/markdown/CollaborativeMarkdownRenderer.js.map +1 -0
- package/lib/widgets/markdown/MarkdownLink.d.ts +3 -1
- package/lib/widgets/markdown/MarkdownLink.d.ts.map +1 -1
- package/lib/widgets/markdown/MarkdownLink.js +41 -14
- package/lib/widgets/markdown/MarkdownLink.js.map +1 -1
- package/lib/widgets/markdown/MarkdownRenderer.d.ts +8 -1
- package/lib/widgets/markdown/MarkdownRenderer.d.ts.map +1 -1
- package/lib/widgets/markdown/MarkdownRenderer.js +20 -4
- package/lib/widgets/markdown/MarkdownRenderer.js.map +1 -1
- package/lib/widgets/markdown/index.d.ts +5 -1
- package/lib/widgets/markdown/index.d.ts.map +1 -1
- package/lib/widgets/markdown/index.js +5 -1
- package/lib/widgets/markdown/index.js.map +1 -1
- package/lib/widgets/markdown/normalizeCustomSchemeLinks.d.ts.map +1 -1
- package/lib/widgets/markdown/normalizeCustomSchemeLinks.js +14 -2
- package/lib/widgets/markdown/normalizeCustomSchemeLinks.js.map +1 -1
- package/lib/widgets/markdown/textDiff.d.ts +52 -0
- package/lib/widgets/markdown/textDiff.d.ts.map +1 -0
- package/lib/widgets/markdown/textDiff.js +362 -0
- package/lib/widgets/markdown/textDiff.js.map +1 -0
- package/lib/widgets/markdown/useArtifactContent.d.ts +5 -3
- package/lib/widgets/markdown/useArtifactContent.d.ts.map +1 -1
- package/lib/widgets/markdown/useArtifactContent.js +6 -3
- package/lib/widgets/markdown/useArtifactContent.js.map +1 -1
- package/lib/widgets/markdown/useResolvedUrl.d.ts +1 -5
- package/lib/widgets/markdown/useResolvedUrl.d.ts.map +1 -1
- package/lib/widgets/markdown/useResolvedUrl.js +19 -31
- package/lib/widgets/markdown/useResolvedUrl.js.map +1 -1
- package/lib/widgets/monacoEditor/MonacoEditor.d.ts +7 -1
- package/lib/widgets/monacoEditor/MonacoEditor.d.ts.map +1 -1
- package/lib/widgets/monacoEditor/MonacoEditor.js +62 -6
- package/lib/widgets/monacoEditor/MonacoEditor.js.map +1 -1
- package/lib/widgets/xml-viewer/hooks/useXMLViewer.d.ts +9 -0
- package/lib/widgets/xml-viewer/hooks/useXMLViewer.d.ts.map +1 -1
- package/lib/widgets/xml-viewer/hooks/useXMLViewer.js +20 -17
- package/lib/widgets/xml-viewer/hooks/useXMLViewer.js.map +1 -1
- package/package.json +36 -32
- package/src/__tests__/a11y.test.tsx +4 -1
- package/src/__tests__/axe-helper.ts +17 -7
- package/src/__tests__/setup.ts +25 -0
- package/src/core/components/shadcn/filters/filterBar.tsx +1 -0
- package/src/core/components/shadcn/modal/dialog.tsx +3 -1
- package/src/core/components/shadcn/tabs.test.tsx +65 -0
- package/src/core/components/shadcn/tabs.tsx +25 -3
- package/src/core/hooks/useScrollableSearch.test.tsx +139 -0
- package/src/core/hooks/useScrollableSearch.tsx +17 -3
- package/src/env/index.ts +2 -0
- package/src/features/agent/chat/AgentChatPlaybackControls.test.tsx +2 -0
- package/src/features/agent/chat/AgentRequestInputOverlay.test.tsx +51 -6
- package/src/features/agent/chat/AgentRequestInputOverlay.tsx +5 -7
- package/src/features/agent/chat/AgentRightPanel.tsx +16 -1
- package/src/features/agent/chat/ArtifactsTab.test.tsx +55 -0
- package/src/features/agent/chat/ArtifactsTab.tsx +203 -52
- package/src/features/agent/chat/DocumentEditingActionCard.test.tsx +105 -0
- package/src/features/agent/chat/DocumentEditingActionCard.tsx +210 -0
- package/src/features/agent/chat/ModernAgentConversation.test.tsx +432 -43
- package/src/features/agent/chat/ModernAgentConversation.tsx +352 -96
- package/src/features/agent/chat/ModernAgentOutput/ActiveWorkstreamsSummary.tsx +75 -20
- package/src/features/agent/chat/ModernAgentOutput/AgentMarkdownAnchor.test.tsx +79 -0
- package/src/features/agent/chat/ModernAgentOutput/AgentMarkdownAnchor.tsx +94 -0
- package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.test.tsx +369 -34
- package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx +279 -115
- package/src/features/agent/chat/ModernAgentOutput/AttachmentPreview.tsx +53 -4
- package/src/features/agent/chat/ModernAgentOutput/CollapsibleAgentMarkdown.test.tsx +44 -0
- package/src/features/agent/chat/ModernAgentOutput/CollapsibleAgentMarkdown.tsx +88 -0
- package/src/features/agent/chat/ModernAgentOutput/Header.tsx +2 -2
- package/src/features/agent/chat/ModernAgentOutput/MessageInput.test.tsx +71 -0
- package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +3 -1
- package/src/features/agent/chat/ModernAgentOutput/MessageItem.tsx +48 -50
- package/src/features/agent/chat/ModernAgentOutput/ResourceChangeSummary.tsx +40 -0
- package/src/features/agent/chat/ModernAgentOutput/ResourceChip.test.tsx +148 -0
- package/src/features/agent/chat/ModernAgentOutput/ResourceChip.tsx +141 -0
- package/src/features/agent/chat/ModernAgentOutput/ToolCallGroup.tsx +33 -1
- package/src/features/agent/chat/ModernAgentOutput/requestInputMessages.test.ts +95 -0
- package/src/features/agent/chat/ModernAgentOutput/requestInputMessages.ts +111 -1
- package/src/features/agent/chat/ModernAgentOutput/resourceLinks.tsx +43 -0
- package/src/features/agent/chat/ModernAgentOutput/resourceSummary.test.ts +229 -0
- package/src/features/agent/chat/ModernAgentOutput/resourceSummary.ts +152 -0
- package/src/features/agent/chat/ModernAgentOutput/utils.test.ts +17 -0
- package/src/features/agent/chat/ModernAgentOutput/utils.ts +14 -1
- package/src/features/agent/chat/hooks/useAgentStream.test.tsx +245 -0
- package/src/features/agent/chat/hooks/useAgentStream.ts +38 -9
- package/src/features/agent/chat/index.ts +12 -0
- package/src/features/facets/PromptsFacetsNav.tsx +17 -9
- package/src/features/store/objects/DocumentSearchResults.tsx +2 -2
- package/src/features/store/objects/components/ContentOverview.tsx +220 -66
- package/src/features/store/objects/components/DocumentEditingConfigurationSelector.test.ts +34 -0
- package/src/features/store/objects/components/DocumentEditingConfigurationSelector.tsx +211 -0
- package/src/features/store/objects/components/DocumentEditingLockStatus.test.tsx +32 -0
- package/src/features/store/objects/components/DocumentEditingLockStatus.tsx +45 -0
- package/src/features/store/objects/components/DocumentEditingPanel.test.tsx +336 -0
- package/src/features/store/objects/components/DocumentEditingPanel.tsx +1236 -0
- package/src/features/store/objects/components/TextEditorPanel.test.tsx +48 -0
- package/src/features/store/objects/components/TextEditorPanel.tsx +41 -20
- package/src/features/store/objects/components/documentArtifactRefs.test.ts +65 -0
- package/src/features/store/objects/components/documentArtifactRefs.ts +72 -0
- package/src/features/store/objects/components/documentEditingAgentConfig.test.ts +28 -0
- package/src/features/store/objects/components/documentEditingAgentConfig.ts +41 -0
- package/src/features/store/objects/components/documentEditingPrompts.test.ts +26 -0
- package/src/features/store/objects/components/documentEditingPrompts.ts +12 -0
- package/src/features/store/objects/components/documentEditingRun.test.ts +176 -0
- package/src/features/store/objects/components/documentEditingRun.ts +184 -0
- package/src/features/store/objects/components/documentEditingTarget.test.ts +96 -0
- package/src/features/store/objects/components/documentEditingTarget.ts +63 -0
- package/src/features/store/objects/components/index.ts +1 -0
- package/src/features/store/objects/components/useContentPanelHooks.ts +52 -27
- package/src/features/store/objects/components/useDownloadFile.test.ts +20 -0
- package/src/features/store/objects/components/useDownloadFile.ts +5 -1
- package/src/features/store/objects/selection/ObjectsActionContext.tsx +2 -2
- package/src/features/store/objects/selection/ObjectsActionSpec.ts +2 -2
- package/src/features/store/objects/selection/SelectionActions.tsx +2 -2
- package/src/features/store/objects/selection/actions/StartWorkflowButton.tsx +2 -2
- package/src/features/store/objects/upload/DocumentUploadModal.tsx +2 -2
- package/src/features/store/types/IntakePolicyEditor.tsx +12 -4
- package/src/features/store/types/IntakePolicyForm.tsx +25 -0
- package/src/features/store/types/ObjectSchemaEditor.tsx +2 -2
- package/src/features/store/types/SelectContentType.tsx +9 -9
- package/src/features/store/types/SelectContentTypeModal.tsx +5 -5
- package/src/features/store/types/TableLayoutEditor.tsx +2 -2
- package/src/features/store/types/TypeRegistry.ts +8 -3
- package/src/features/store/types/intake-policy-editor.logic.ts +10 -2
- package/src/features/store/types/typeCatalogCache.ts +10 -3
- package/src/i18n/locales/ar.json +120 -2
- package/src/i18n/locales/de.json +120 -2
- package/src/i18n/locales/en.json +123 -1
- package/src/i18n/locales/es.json +120 -2
- package/src/i18n/locales/fr.json +120 -2
- package/src/i18n/locales/it.json +120 -2
- package/src/i18n/locales/ja.json +120 -2
- package/src/i18n/locales/ko.json +120 -2
- package/src/i18n/locales/pt.json +120 -2
- package/src/i18n/locales/ru.json +120 -2
- package/src/i18n/locales/tr.json +120 -2
- package/src/i18n/locales/zh-TW.json +120 -2
- package/src/i18n/locales/zh.json +120 -2
- package/src/rich-text/EditorToolbar.tsx +708 -0
- package/src/rich-text/VertesiaRichTextEditor.test.tsx +211 -0
- package/src/rich-text/VertesiaRichTextEditor.tsx +241 -0
- package/src/rich-text/index.ts +9 -0
- package/src/session/UserSession.test.ts +11 -11
- package/src/shell/login/InviteAcceptModal.tsx +4 -4
- package/src/widgets/markdown/AgentResourceResolver.test.ts +24 -0
- package/src/widgets/markdown/AgentResourceResolver.tsx +70 -0
- package/src/widgets/markdown/ArtifactEditingSurface.test.tsx +541 -0
- package/src/widgets/markdown/ArtifactEditingSurface.tsx +878 -0
- package/src/widgets/markdown/CollaborativeMarkdownRenderer.test.tsx +484 -0
- package/src/widgets/markdown/CollaborativeMarkdownRenderer.tsx +825 -0
- package/src/widgets/markdown/MarkdownLink.test.tsx +122 -0
- package/src/widgets/markdown/MarkdownLink.tsx +102 -17
- package/src/widgets/markdown/MarkdownRenderer.tsx +30 -3
- package/src/widgets/markdown/index.ts +39 -1
- package/src/widgets/markdown/normalizeCustomSchemeLinks.ts +15 -2
- package/src/widgets/markdown/textDiff.test.ts +156 -0
- package/src/widgets/markdown/textDiff.ts +399 -0
- package/src/widgets/markdown/useArtifactContent.ts +9 -3
- package/src/widgets/markdown/useResolvedUrl.test.ts +29 -40
- package/src/widgets/markdown/useResolvedUrl.ts +33 -35
- package/src/widgets/monacoEditor/MonacoEditor.tsx +83 -7
- package/src/widgets/xml-viewer/hooks/useXMLViewer.test.ts +26 -0
- package/src/widgets/xml-viewer/hooks/useXMLViewer.ts +23 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fireEvent, render, screen } from '@testing-library/react';
|
|
1
|
+
import { fireEvent, render, screen, within } from '@testing-library/react';
|
|
2
2
|
import type { VertesiaClient } from '@vertesia/client';
|
|
3
3
|
import { type AgentMessage, AgentMessageType } from '@vertesia/common';
|
|
4
4
|
import React from 'react';
|
|
@@ -6,6 +6,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
|
|
6
6
|
import { I18nProvider } from '../../../../i18n/index.js';
|
|
7
7
|
import { ReactRouterContext, type RouterContext } from '../../../../router/index.js';
|
|
8
8
|
import { UserSession, UserSessionContext } from '../../../../session/index.js';
|
|
9
|
+
import { AgentResourceResolverProvider } from '../../../../widgets/markdown/AgentResourceResolver';
|
|
9
10
|
import AllMessagesMixed from './AllMessagesMixed';
|
|
10
11
|
import type { StreamingData } from './utils';
|
|
11
12
|
|
|
@@ -20,6 +21,30 @@ function makeMessage(overrides: Partial<AgentMessage>): AgentMessage {
|
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
23
|
|
|
24
|
+
function makeRouterContext(): RouterContext {
|
|
25
|
+
return {
|
|
26
|
+
location: window.location,
|
|
27
|
+
route: { path: '/', Component: () => null },
|
|
28
|
+
params: {},
|
|
29
|
+
state: null,
|
|
30
|
+
matchedRoutePath: '/',
|
|
31
|
+
navigate: vi.fn(),
|
|
32
|
+
router: {
|
|
33
|
+
navigate: vi.fn(),
|
|
34
|
+
getTopRouter: () => ({
|
|
35
|
+
navigator: {
|
|
36
|
+
addStickyParams: (href: string) => href,
|
|
37
|
+
},
|
|
38
|
+
}),
|
|
39
|
+
},
|
|
40
|
+
} as unknown as RouterContext;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const testResourceResolver = (resource: { type: string; id: string }) => ({
|
|
44
|
+
kind: 'navigate' as const,
|
|
45
|
+
href: `/resources/${resource.type}/${encodeURIComponent(resource.id)}`,
|
|
46
|
+
});
|
|
47
|
+
|
|
23
48
|
function renderSummary(
|
|
24
49
|
messages: AgentMessage[],
|
|
25
50
|
isCompleted = false,
|
|
@@ -30,15 +55,19 @@ function renderSummary(
|
|
|
30
55
|
|
|
31
56
|
return render(
|
|
32
57
|
<I18nProvider lng="en">
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
58
|
+
<ReactRouterContext.Provider value={makeRouterContext()}>
|
|
59
|
+
<AgentResourceResolverProvider value={testResourceResolver}>
|
|
60
|
+
<AllMessagesMixed
|
|
61
|
+
messages={messages}
|
|
62
|
+
bottomRef={bottomRef}
|
|
63
|
+
viewMode="sliding"
|
|
64
|
+
isCompleted={isCompleted}
|
|
65
|
+
artifactRunId="run-1"
|
|
66
|
+
streamingMessages={streamingMessages}
|
|
67
|
+
{...props}
|
|
68
|
+
/>
|
|
69
|
+
</AgentResourceResolverProvider>
|
|
70
|
+
</ReactRouterContext.Provider>
|
|
42
71
|
</I18nProvider>,
|
|
43
72
|
);
|
|
44
73
|
}
|
|
@@ -54,35 +83,22 @@ function renderStacked(
|
|
|
54
83
|
getArtifactDownloadUrl: vi.fn(),
|
|
55
84
|
},
|
|
56
85
|
} as unknown as VertesiaClient);
|
|
57
|
-
const routerContext =
|
|
58
|
-
location: window.location,
|
|
59
|
-
route: { path: '/', Component: () => null },
|
|
60
|
-
params: {},
|
|
61
|
-
state: null,
|
|
62
|
-
matchedRoutePath: '/',
|
|
63
|
-
navigate: vi.fn(),
|
|
64
|
-
router: {
|
|
65
|
-
navigate: vi.fn(),
|
|
66
|
-
getTopRouter: () => ({
|
|
67
|
-
navigator: {
|
|
68
|
-
addStickyParams: (href: string) => href,
|
|
69
|
-
},
|
|
70
|
-
}),
|
|
71
|
-
},
|
|
72
|
-
} as unknown as RouterContext;
|
|
86
|
+
const routerContext = makeRouterContext();
|
|
73
87
|
|
|
74
88
|
return render(
|
|
75
89
|
<I18nProvider lng="en">
|
|
76
90
|
<ReactRouterContext.Provider value={routerContext}>
|
|
77
91
|
<UserSessionContext.Provider value={session}>
|
|
78
|
-
<
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
92
|
+
<AgentResourceResolverProvider value={testResourceResolver}>
|
|
93
|
+
<AllMessagesMixed
|
|
94
|
+
messages={messages}
|
|
95
|
+
bottomRef={bottomRef}
|
|
96
|
+
viewMode="stacked"
|
|
97
|
+
isCompleted={isCompleted}
|
|
98
|
+
artifactRunId="run-1"
|
|
99
|
+
{...props}
|
|
100
|
+
/>
|
|
101
|
+
</AgentResourceResolverProvider>
|
|
86
102
|
</UserSessionContext.Provider>
|
|
87
103
|
</ReactRouterContext.Provider>
|
|
88
104
|
</I18nProvider>,
|
|
@@ -116,6 +132,33 @@ describe('AllMessagesMixed summary view', () => {
|
|
|
116
132
|
expect(screen.getByLabelText('Message consumed')).not.toBeNull();
|
|
117
133
|
});
|
|
118
134
|
|
|
135
|
+
it('renders structured document editing input as a compact card', () => {
|
|
136
|
+
renderSummary([
|
|
137
|
+
makeMessage({
|
|
138
|
+
timestamp: 1_000,
|
|
139
|
+
type: AgentMessageType.QUESTION,
|
|
140
|
+
message: 'Add one concrete example.',
|
|
141
|
+
details: {
|
|
142
|
+
editing_action: {
|
|
143
|
+
operation_id: 'operation-1',
|
|
144
|
+
resource: { kind: 'store_document', document_id: 'document-1', name: 'Launch plan' },
|
|
145
|
+
action: 'comment',
|
|
146
|
+
anchor: {
|
|
147
|
+
block_id: 'list_item:10:24',
|
|
148
|
+
block_type: 'list_item',
|
|
149
|
+
exact_text: '- Preserve unrelated sections.',
|
|
150
|
+
},
|
|
151
|
+
comment: 'Add one concrete example.',
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
}),
|
|
155
|
+
]);
|
|
156
|
+
|
|
157
|
+
expect(document.querySelector('[data-document-edit-action="comment"]')).not.toBeNull();
|
|
158
|
+
expect(screen.getByText('Add one concrete example.')).not.toBeNull();
|
|
159
|
+
expect(screen.queryByText('operation-1')).toBeNull();
|
|
160
|
+
});
|
|
161
|
+
|
|
119
162
|
it('renders delivery status on user messages in stacked view', () => {
|
|
120
163
|
renderStacked([
|
|
121
164
|
makeMessage({
|
|
@@ -215,6 +258,166 @@ describe('AllMessagesMixed summary view', () => {
|
|
|
215
258
|
expect(screen.getByText('Found 5 results')).not.toBeNull();
|
|
216
259
|
});
|
|
217
260
|
|
|
261
|
+
it('does not show post-tool thinking while the latest tool is still running', () => {
|
|
262
|
+
renderSummary(
|
|
263
|
+
[
|
|
264
|
+
makeMessage({
|
|
265
|
+
timestamp: 1_000,
|
|
266
|
+
type: AgentMessageType.QUESTION,
|
|
267
|
+
message: 'Find Japan news.',
|
|
268
|
+
}),
|
|
269
|
+
makeMessage({
|
|
270
|
+
timestamp: 2_000,
|
|
271
|
+
message: 'Searching for Japan news',
|
|
272
|
+
details: {
|
|
273
|
+
tool: 'web_search_serper',
|
|
274
|
+
tool_status: 'running',
|
|
275
|
+
tool_run_id: 'tool-1',
|
|
276
|
+
},
|
|
277
|
+
}),
|
|
278
|
+
],
|
|
279
|
+
false,
|
|
280
|
+
);
|
|
281
|
+
|
|
282
|
+
expect(screen.getAllByRole('button', { name: /Working.*for/ })).toHaveLength(1);
|
|
283
|
+
expect(screen.queryByTestId('post-tool-thinking-indicator')).toBeNull();
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
it('shows thinking below the active work group after its latest tool completes', () => {
|
|
287
|
+
renderSummary(
|
|
288
|
+
[
|
|
289
|
+
makeMessage({
|
|
290
|
+
timestamp: 1_000,
|
|
291
|
+
type: AgentMessageType.QUESTION,
|
|
292
|
+
message: 'Find Japan news.',
|
|
293
|
+
}),
|
|
294
|
+
makeMessage({
|
|
295
|
+
timestamp: 2_000,
|
|
296
|
+
message: 'Searching for Japan news',
|
|
297
|
+
details: {
|
|
298
|
+
tool: 'web_search_serper',
|
|
299
|
+
tool_status: 'running',
|
|
300
|
+
tool_run_id: 'tool-1',
|
|
301
|
+
},
|
|
302
|
+
}),
|
|
303
|
+
makeMessage({
|
|
304
|
+
timestamp: 3_000,
|
|
305
|
+
message: 'Found Japan news',
|
|
306
|
+
details: {
|
|
307
|
+
tool: 'web_search_serper',
|
|
308
|
+
tool_status: 'completed',
|
|
309
|
+
tool_run_id: 'tool-1',
|
|
310
|
+
},
|
|
311
|
+
}),
|
|
312
|
+
],
|
|
313
|
+
false,
|
|
314
|
+
);
|
|
315
|
+
|
|
316
|
+
expect(screen.queryByRole('button', { name: /Worked\s*for/ })).toBeNull();
|
|
317
|
+
expect(screen.getAllByRole('button', { name: /Working.*for/ })).toHaveLength(1);
|
|
318
|
+
expect(screen.getByTestId('post-tool-thinking-indicator').textContent).toBe('Thinking...');
|
|
319
|
+
});
|
|
320
|
+
|
|
321
|
+
it('keeps showing thinking when the current display-role marker follows a completed tool', () => {
|
|
322
|
+
renderSummary(
|
|
323
|
+
[
|
|
324
|
+
makeMessage({
|
|
325
|
+
timestamp: 1_000,
|
|
326
|
+
type: AgentMessageType.QUESTION,
|
|
327
|
+
message: 'Find Japan news.',
|
|
328
|
+
}),
|
|
329
|
+
makeMessage({
|
|
330
|
+
timestamp: 2_000,
|
|
331
|
+
message: 'Searching for Japan news',
|
|
332
|
+
details: {
|
|
333
|
+
event_class: 'activity',
|
|
334
|
+
tool: 'web_search_serper',
|
|
335
|
+
tool_status: 'running',
|
|
336
|
+
tool_run_id: 'tool-1',
|
|
337
|
+
activity_group_id: 'activity-1',
|
|
338
|
+
},
|
|
339
|
+
}),
|
|
340
|
+
makeMessage({
|
|
341
|
+
timestamp: 3_000,
|
|
342
|
+
message: 'Found Japan news',
|
|
343
|
+
details: {
|
|
344
|
+
event_class: 'activity',
|
|
345
|
+
tool: 'web_search_serper',
|
|
346
|
+
tool_status: 'completed',
|
|
347
|
+
tool_run_id: 'tool-1',
|
|
348
|
+
activity_group_id: 'activity-1',
|
|
349
|
+
},
|
|
350
|
+
}),
|
|
351
|
+
makeMessage({
|
|
352
|
+
timestamp: 4_000,
|
|
353
|
+
message: 'Thinking...',
|
|
354
|
+
details: {
|
|
355
|
+
event_class: 'activity',
|
|
356
|
+
display_role: 'thinking',
|
|
357
|
+
activity_id: '17',
|
|
358
|
+
activity_group_id: 'activity-1',
|
|
359
|
+
},
|
|
360
|
+
}),
|
|
361
|
+
],
|
|
362
|
+
false,
|
|
363
|
+
);
|
|
364
|
+
|
|
365
|
+
expect(screen.getAllByRole('button', { name: /Working.*for/ })).toHaveLength(1);
|
|
366
|
+
expect(screen.getByTestId('post-tool-thinking-indicator').textContent).toBe('Thinking...');
|
|
367
|
+
});
|
|
368
|
+
|
|
369
|
+
it('replaces a completed tool’s progress title with an immediately visible resource deep link', () => {
|
|
370
|
+
renderSummary(
|
|
371
|
+
[
|
|
372
|
+
makeMessage({
|
|
373
|
+
timestamp: 1_000,
|
|
374
|
+
type: AgentMessageType.QUESTION,
|
|
375
|
+
message: 'Create a market news agent.',
|
|
376
|
+
}),
|
|
377
|
+
makeMessage({
|
|
378
|
+
timestamp: 2_000,
|
|
379
|
+
message: 'Creating the Market Impact News agent...',
|
|
380
|
+
details: {
|
|
381
|
+
event_class: 'activity',
|
|
382
|
+
tool: 'create_interaction',
|
|
383
|
+
tool_status: 'completed',
|
|
384
|
+
tool_event: 'completed',
|
|
385
|
+
tool_run_id: 'tool-1',
|
|
386
|
+
duration_ms: 1_032,
|
|
387
|
+
resources: [
|
|
388
|
+
{
|
|
389
|
+
type: 'interaction',
|
|
390
|
+
id: 'interaction-1',
|
|
391
|
+
label: 'Daily Market Impact News Agent',
|
|
392
|
+
action: 'created',
|
|
393
|
+
},
|
|
394
|
+
],
|
|
395
|
+
},
|
|
396
|
+
}),
|
|
397
|
+
],
|
|
398
|
+
true,
|
|
399
|
+
);
|
|
400
|
+
|
|
401
|
+
fireEvent.click(screen.getByRole('button', { name: /Worked\s*for/ }));
|
|
402
|
+
|
|
403
|
+
const resourceActivity = document.querySelector('[data-agent-resource-activity]');
|
|
404
|
+
expect(resourceActivity).not.toBeNull();
|
|
405
|
+
expect(within(resourceActivity as HTMLElement).getByText('Created')).not.toBeNull();
|
|
406
|
+
const resourceLink = within(resourceActivity as HTMLElement).getByRole('link', {
|
|
407
|
+
name: /Daily Market Impact News Agent/,
|
|
408
|
+
});
|
|
409
|
+
expect(resourceLink.getAttribute('href')).toContain('/resources/interaction/interaction-1');
|
|
410
|
+
expect(resourceLink.textContent).toBe('Daily Market Impact News Agent');
|
|
411
|
+
expect(screen.queryByText('Creating the Market Impact News agent...')).toBeNull();
|
|
412
|
+
|
|
413
|
+
fireEvent.click(screen.getByRole('button', { name: /Show details: Daily Market Impact News Agent/ }));
|
|
414
|
+
expect(screen.getByText('create_interaction')).not.toBeNull();
|
|
415
|
+
expect(document.querySelector('[data-agent-tool-resources]')).toBeNull();
|
|
416
|
+
expect(screen.queryByText(/"type":\s*"interaction"/)).toBeNull();
|
|
417
|
+
expect(screen.queryByText(/"duration_ms":\s*1032/)).toBeNull();
|
|
418
|
+
expect(screen.queryByText('Details')).toBeNull();
|
|
419
|
+
});
|
|
420
|
+
|
|
218
421
|
it('keeps same-iteration tool detail panels matched to their own tool identity', () => {
|
|
219
422
|
renderSummary(
|
|
220
423
|
[
|
|
@@ -369,6 +572,7 @@ describe('AllMessagesMixed summary view', () => {
|
|
|
369
572
|
type: AgentMessageType.REQUEST_INPUT,
|
|
370
573
|
message: 'Approve Create Document: name News Headlines Today?',
|
|
371
574
|
details: {
|
|
575
|
+
request_id: 'create_document:name:News Headlines Today',
|
|
372
576
|
tool_approval: {
|
|
373
577
|
approval_key: 'create_document:name:News Headlines Today',
|
|
374
578
|
tool_name: 'create_document',
|
|
@@ -404,6 +608,9 @@ describe('AllMessagesMixed summary view', () => {
|
|
|
404
608
|
decision: 'allow_once',
|
|
405
609
|
approval_key: 'create_document:name:News Headlines Today',
|
|
406
610
|
},
|
|
611
|
+
request_input_response: {
|
|
612
|
+
request_id: 'create_document:name:News Headlines Today',
|
|
613
|
+
},
|
|
407
614
|
});
|
|
408
615
|
});
|
|
409
616
|
|
|
@@ -2243,3 +2450,131 @@ describe('AllMessagesMixed summary view', () => {
|
|
|
2243
2450
|
expect(screen.getByText('Prepared and saved artifact to files/US_News_Report_2026-06-22.md')).not.toBeNull();
|
|
2244
2451
|
});
|
|
2245
2452
|
});
|
|
2453
|
+
|
|
2454
|
+
describe('AllMessagesMixed resource summary — playback clipping', () => {
|
|
2455
|
+
const resourceMsg = (id: string, label: string, ts: number) =>
|
|
2456
|
+
makeMessage({
|
|
2457
|
+
timestamp: ts,
|
|
2458
|
+
type: AgentMessageType.THOUGHT,
|
|
2459
|
+
details: {
|
|
2460
|
+
event_class: 'activity',
|
|
2461
|
+
tool: 'create_document',
|
|
2462
|
+
tool_status: 'completed',
|
|
2463
|
+
tool_event: 'completed',
|
|
2464
|
+
resources: [{ type: 'document', id, label, action: 'created' }],
|
|
2465
|
+
},
|
|
2466
|
+
});
|
|
2467
|
+
|
|
2468
|
+
const fullHistory = [
|
|
2469
|
+
makeMessage({ timestamp: 1000, type: AgentMessageType.QUESTION, message: 'first' }),
|
|
2470
|
+
resourceMsg('doc-a', 'Doc A', 2000),
|
|
2471
|
+
makeMessage({ timestamp: 3000, type: AgentMessageType.COMPLETE, message: '' }),
|
|
2472
|
+
makeMessage({ timestamp: 4000, type: AgentMessageType.QUESTION, message: 'second' }),
|
|
2473
|
+
resourceMsg('doc-b', 'Doc B', 5000),
|
|
2474
|
+
makeMessage({ timestamp: 6000, type: AgentMessageType.COMPLETE, message: '' }),
|
|
2475
|
+
];
|
|
2476
|
+
|
|
2477
|
+
it('shows resources up to the playback cursor but hides ones created later', () => {
|
|
2478
|
+
// Scrubbed to the end of the first turn: clipped view stops at t=3000; full history has more.
|
|
2479
|
+
renderStacked(fullHistory.slice(0, 3), false, { workstreamSourceMessages: fullHistory });
|
|
2480
|
+
|
|
2481
|
+
expect(screen.getByText('Doc A')).not.toBeNull();
|
|
2482
|
+
expect(screen.queryByText('Doc B')).toBeNull();
|
|
2483
|
+
});
|
|
2484
|
+
|
|
2485
|
+
it('shows all completed turns’ resources when live/at-latest', () => {
|
|
2486
|
+
renderStacked(fullHistory, true, { workstreamSourceMessages: fullHistory });
|
|
2487
|
+
|
|
2488
|
+
expect(screen.getByText('Doc A')).not.toBeNull();
|
|
2489
|
+
expect(screen.getByText('Doc B')).not.toBeNull();
|
|
2490
|
+
});
|
|
2491
|
+
|
|
2492
|
+
it('shows the latest turn summary after a final answer while the workflow remains interactive', () => {
|
|
2493
|
+
const answerEndedTurn = [
|
|
2494
|
+
makeMessage({ timestamp: 1000, type: AgentMessageType.QUESTION, message: 'Create a document.' }),
|
|
2495
|
+
resourceMsg('doc-a', 'Doc A', 2000),
|
|
2496
|
+
makeMessage({ timestamp: 3000, type: AgentMessageType.ANSWER, message: 'The document is ready.' }),
|
|
2497
|
+
];
|
|
2498
|
+
|
|
2499
|
+
renderStacked(answerEndedTurn, false);
|
|
2500
|
+
|
|
2501
|
+
expect(screen.getByText('Doc A')).not.toBeNull();
|
|
2502
|
+
});
|
|
2503
|
+
});
|
|
2504
|
+
|
|
2505
|
+
describe('AllMessagesMixed — stopped duration with interleaved resource summary', () => {
|
|
2506
|
+
it('computes the stopped duration from the previous group, not the inserted summary', () => {
|
|
2507
|
+
const resourceMsg = makeMessage({
|
|
2508
|
+
timestamp: 2000,
|
|
2509
|
+
type: AgentMessageType.THOUGHT,
|
|
2510
|
+
details: {
|
|
2511
|
+
event_class: 'activity',
|
|
2512
|
+
tool: 'create_document',
|
|
2513
|
+
tool_status: 'completed',
|
|
2514
|
+
tool_event: 'completed',
|
|
2515
|
+
resources: [{ type: 'document', id: 'doc-a', label: 'Doc A', action: 'created' }],
|
|
2516
|
+
},
|
|
2517
|
+
});
|
|
2518
|
+
const messages = [
|
|
2519
|
+
makeMessage({ timestamp: 1000, type: AgentMessageType.QUESTION, message: 'first' }),
|
|
2520
|
+
resourceMsg,
|
|
2521
|
+
makeMessage({ timestamp: 4000, type: AgentMessageType.QUESTION, message: 'second' }),
|
|
2522
|
+
makeMessage({
|
|
2523
|
+
timestamp: 5000,
|
|
2524
|
+
type: AgentMessageType.THOUGHT,
|
|
2525
|
+
details: { event_class: 'activity', tool: 'search', tool_status: 'completed', tool_event: 'completed' },
|
|
2526
|
+
}),
|
|
2527
|
+
makeMessage({
|
|
2528
|
+
timestamp: 8000,
|
|
2529
|
+
type: AgentMessageType.IDLE,
|
|
2530
|
+
message: 'Stopped.',
|
|
2531
|
+
details: { status_reason: 'user_stopped' },
|
|
2532
|
+
}),
|
|
2533
|
+
];
|
|
2534
|
+
|
|
2535
|
+
renderStacked(messages, true);
|
|
2536
|
+
|
|
2537
|
+
// Turn 1's summary is interleaved before turn 2, but the stopped duration must still be
|
|
2538
|
+
// measured from the previous *group* (the search tool at t=5000 → 3s), not the summary.
|
|
2539
|
+
expect(screen.getByText('Doc A')).not.toBeNull();
|
|
2540
|
+
expect(screen.getByText('You stopped after 3s')).not.toBeNull();
|
|
2541
|
+
});
|
|
2542
|
+
});
|
|
2543
|
+
|
|
2544
|
+
describe('AllMessagesMixed resource summary — same-timestamp cursor clipping', () => {
|
|
2545
|
+
it('excludes a later message sharing the cursor timestamp (position-based clip)', () => {
|
|
2546
|
+
const docA = makeMessage({
|
|
2547
|
+
timestamp: 2000,
|
|
2548
|
+
type: AgentMessageType.THOUGHT,
|
|
2549
|
+
details: {
|
|
2550
|
+
event_class: 'activity',
|
|
2551
|
+
tool: 'create_document',
|
|
2552
|
+
tool_status: 'completed',
|
|
2553
|
+
resources: [{ type: 'document', id: 'doc-a', label: 'Doc A', action: 'created' }],
|
|
2554
|
+
},
|
|
2555
|
+
});
|
|
2556
|
+
const cursor = makeMessage({ timestamp: 2000, type: AgentMessageType.COMPLETE, message: 'c1' });
|
|
2557
|
+
const docB = makeMessage({
|
|
2558
|
+
timestamp: 2000, // same millisecond as the cursor, but ordered AFTER it
|
|
2559
|
+
type: AgentMessageType.THOUGHT,
|
|
2560
|
+
details: {
|
|
2561
|
+
event_class: 'activity',
|
|
2562
|
+
tool: 'create_document',
|
|
2563
|
+
tool_status: 'completed',
|
|
2564
|
+
resources: [{ type: 'document', id: 'doc-b', label: 'Doc B', action: 'created' }],
|
|
2565
|
+
},
|
|
2566
|
+
});
|
|
2567
|
+
const fullHistory = [
|
|
2568
|
+
makeMessage({ timestamp: 1000, type: AgentMessageType.QUESTION, message: 'first' }),
|
|
2569
|
+
docA,
|
|
2570
|
+
cursor,
|
|
2571
|
+
docB,
|
|
2572
|
+
];
|
|
2573
|
+
|
|
2574
|
+
// Scrubbed so the clipped view ends at the cursor (shares its timestamp with the later Doc B).
|
|
2575
|
+
renderStacked(fullHistory.slice(0, 3), false, { workstreamSourceMessages: fullHistory });
|
|
2576
|
+
|
|
2577
|
+
expect(screen.getByText('Doc A')).not.toBeNull();
|
|
2578
|
+
expect(screen.queryByText('Doc B')).toBeNull();
|
|
2579
|
+
});
|
|
2580
|
+
});
|