@deep-eye/core 1.3.81 → 1.3.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -0
- package/README.md +1 -1
- package/dist/{ChartRenderer-uxyS-V69.js → ChartRenderer-Cjy0_9Vd.js} +1 -1
- package/dist/{ChartRenderer-BIKA42r6.cjs → ChartRenderer-DYaFJva0.cjs} +1 -1
- package/dist/ChatMyFilesArtifacts-B8IrM7Gv.cjs +1 -0
- package/dist/ChatMyFilesArtifacts-CPbY91Eg.js +1029 -0
- package/dist/chat-token.css +209 -7
- package/dist/components/chat/ChatApp.vue.d.ts +31 -7
- package/dist/components/chat/ChatApp.vue.d.ts.map +1 -1
- package/dist/components/chat/ChatBot.vue.d.ts +3 -3
- package/dist/components/chat/ChatBot.vue.d.ts.map +1 -1
- package/dist/components/chat/addToTask.d.ts +46 -0
- package/dist/components/chat/addToTask.d.ts.map +1 -0
- package/dist/components/chat/attachmentController.d.ts.map +1 -1
- package/dist/components/chat/attachments.d.ts.map +1 -1
- package/dist/components/chat/chatAppMyFiles.d.ts +43 -0
- package/dist/components/chat/chatAppMyFiles.d.ts.map +1 -0
- package/dist/components/chat/chatContext.d.ts +17 -0
- package/dist/components/chat/chatContext.d.ts.map +1 -1
- package/dist/components/chat/chatFilePicker.d.ts +243 -0
- package/dist/components/chat/chatFilePicker.d.ts.map +1 -0
- package/dist/components/chat/chatSessionSidebarAssets.d.ts +13 -0
- package/dist/components/chat/chatSessionSidebarAssets.d.ts.map +1 -1
- package/dist/components/chat/cloudAxios.d.ts +30 -0
- package/dist/components/chat/cloudAxios.d.ts.map +1 -0
- package/dist/components/chat/cloudConfig.d.ts +95 -8
- package/dist/components/chat/cloudConfig.d.ts.map +1 -1
- package/dist/components/chat/components/ArtifactPreview.vue.d.ts +6 -0
- package/dist/components/chat/components/ArtifactPreview.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatActionbar.vue.d.ts +2 -2
- package/dist/components/chat/components/ChatAttachments.vue.d.ts +8 -1
- package/dist/components/chat/components/ChatAttachments.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatComposerContextBar.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatFileCard.vue.d.ts +2 -2
- package/dist/components/chat/components/ChatFileCard.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatFilePickerDialog.vue.d.ts +56 -0
- package/dist/components/chat/components/ChatFilePickerDialog.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatFilePreview.vue.d.ts +41 -2
- package/dist/components/chat/components/ChatFilePreview.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatFilePreviewPanel.vue.d.ts +9 -2
- package/dist/components/chat/components/ChatFilePreviewPanel.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatKnowledgeLibraryList.vue.d.ts +32 -0
- package/dist/components/chat/components/ChatKnowledgeLibraryList.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatMessage.vue.d.ts +1 -1
- package/dist/components/chat/components/ChatPreviewEmpty.vue.d.ts +53 -0
- package/dist/components/chat/components/ChatPreviewEmpty.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatPreviewHeader.vue.d.ts +87 -0
- package/dist/components/chat/components/ChatPreviewHeader.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatProvider.vue.d.ts +2 -2
- package/dist/components/chat/components/ChatProvider.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatQueue.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatQuotaDialog.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSender.vue.d.ts +18 -1
- package/dist/components/chat/components/ChatSender.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSessionExpandHistoryCard.vue.d.ts +1 -1
- package/dist/components/chat/components/ChatSessionExpandHistoryCard.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSessionGroupRow.vue.d.ts +3 -0
- package/dist/components/chat/components/ChatSessionGroupRow.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSessionGroupSection.vue.d.ts +5 -2
- package/dist/components/chat/components/ChatSessionGroupSection.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSessionPinnedSection.vue.d.ts +3 -0
- package/dist/components/chat/components/ChatSessionPinnedSection.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSessionSidebar.vue.d.ts +21 -1
- package/dist/components/chat/components/ChatSessionSidebar.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSessionStatusMark.vue.d.ts +1 -1
- package/dist/components/chat/components/ChatSessionStatusMark.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatTipMenu.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ConversationIndex.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ConversationList.vue.d.ts +2 -2
- package/dist/components/chat/components/MessageBubble.vue.d.ts +1 -1
- package/dist/components/chat/components/MessageBubble.vue.d.ts.map +1 -1
- package/dist/components/chat/components/OpenFileViewerHost.vue.d.ts +6 -0
- package/dist/components/chat/components/OpenFileViewerHost.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ProcessStepGroup.vue.d.ts +1 -1
- package/dist/components/chat/components/ProcessStepGroup.vue.d.ts.map +1 -1
- package/dist/components/chat/components/SubagentRunsPanel.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/DocumentViewer.vue.d.ts +10 -0
- package/dist/components/chat/components/document-viewer/DocumentViewer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/bento/BentoRenderer.vue.d.ts +1 -0
- package/dist/components/chat/components/document-viewer/bento/BentoRenderer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/chromeBridge.d.ts +53 -0
- package/dist/components/chat/components/document-viewer/chromeBridge.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/html/HtmlRenderer.vue.d.ts +1 -0
- package/dist/components/chat/components/document-viewer/html/HtmlRenderer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/markdown/MarkdownRenderer.vue.d.ts +1 -0
- package/dist/components/chat/components/document-viewer/markdown/MarkdownRenderer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/office/OfficeDocumentViewer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/onlyoffice/OnlyOfficeRenderer.vue.d.ts +9 -3
- package/dist/components/chat/components/document-viewer/onlyoffice/OnlyOfficeRenderer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/onlyoffice/onlyOfficeConfig.d.ts +36 -1
- package/dist/components/chat/components/document-viewer/onlyoffice/onlyOfficeConfig.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/onlyoffice/onlyOfficeProfile.d.ts +153 -0
- package/dist/components/chat/components/document-viewer/onlyoffice/onlyOfficeProfile.d.ts.map +1 -0
- package/dist/components/chat/components/document-viewer/pdf/PdfRenderer.vue.d.ts +1 -0
- package/dist/components/chat/components/document-viewer/pdf/PdfRenderer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/text/TextRenderer.vue.d.ts +1 -0
- package/dist/components/chat/components/document-viewer/text/TextRenderer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/types.d.ts +18 -0
- package/dist/components/chat/components/document-viewer/types.d.ts.map +1 -1
- package/dist/components/chat/components/document-viewer/xlsx/XlsxRenderer.vue.d.ts +1 -0
- package/dist/components/chat/components/document-viewer/xlsx/XlsxRenderer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ArtifactFileMoreButton.vue.d.ts +34 -0
- package/dist/components/chat/components/files/ArtifactFileMoreButton.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatArtifactFileRow.vue.d.ts +25 -0
- package/dist/components/chat/components/files/ChatArtifactFileRow.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatArtifactPreview.vue.d.ts +31 -0
- package/dist/components/chat/components/files/ChatArtifactPreview.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatArtifactsSkeleton.vue.d.ts +17 -0
- package/dist/components/chat/components/files/ChatArtifactsSkeleton.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatFileCheckbox.vue.d.ts +24 -0
- package/dist/components/chat/components/files/ChatFileCheckbox.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFiles.vue.d.ts +38 -0
- package/dist/components/chat/components/files/ChatMyFiles.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesArtifacts.vue.d.ts +18 -0
- package/dist/components/chat/components/files/ChatMyFilesArtifacts.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesDirectory.vue.d.ts +31 -0
- package/dist/components/chat/components/files/ChatMyFilesDirectory.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesDocEditor.vue.d.ts +44 -0
- package/dist/components/chat/components/files/ChatMyFilesDocEditor.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesEmptyGuide.vue.d.ts +12 -0
- package/dist/components/chat/components/files/ChatMyFilesEmptyGuide.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesFileTable.vue.d.ts +62 -0
- package/dist/components/chat/components/files/ChatMyFilesFileTable.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesFolder.vue.d.ts +48 -0
- package/dist/components/chat/components/files/ChatMyFilesFolder.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesKindMenuItemIcon.vue.d.ts +15 -0
- package/dist/components/chat/components/files/ChatMyFilesKindMenuItemIcon.vue.d.ts.map +1 -0
- package/dist/components/chat/components/{SubagentRunDialog.vue.d.ts → files/ChatMyFilesPrompt.vue.d.ts} +18 -8
- package/dist/components/chat/components/files/ChatMyFilesPrompt.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesQuickAdd.vue.d.ts +38 -0
- package/dist/components/chat/components/files/ChatMyFilesQuickAdd.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesRecent.vue.d.ts +35 -0
- package/dist/components/chat/components/files/ChatMyFilesRecent.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesSearchDialog.vue.d.ts +37 -0
- package/dist/components/chat/components/files/ChatMyFilesSearchDialog.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesState.vue.d.ts +29 -0
- package/dist/components/chat/components/files/ChatMyFilesState.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesStateArt.vue.d.ts +10 -0
- package/dist/components/chat/components/files/ChatMyFilesStateArt.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesTree.vue.d.ts +49 -0
- package/dist/components/chat/components/files/ChatMyFilesTree.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesTypeMark.vue.d.ts +13 -0
- package/dist/components/chat/components/files/ChatMyFilesTypeMark.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesUploadDialog.vue.d.ts +32 -0
- package/dist/components/chat/components/files/ChatMyFilesUploadDialog.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesUploadPanel.vue.d.ts +12 -0
- package/dist/components/chat/components/files/ChatMyFilesUploadPanel.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesViewer.vue.d.ts +59 -0
- package/dist/components/chat/components/files/ChatMyFilesViewer.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatTextReader.vue.d.ts +29 -0
- package/dist/components/chat/components/files/ChatTextReader.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/chatArtifactFileActions.d.ts +118 -0
- package/dist/components/chat/components/files/chatArtifactFileActions.d.ts.map +1 -0
- package/dist/components/chat/components/files/chatFileTransfer.d.ts +102 -0
- package/dist/components/chat/components/files/chatFileTransfer.d.ts.map +1 -0
- package/dist/components/chat/components/files/chatFileTransferSources.d.ts +32 -0
- package/dist/components/chat/components/files/chatFileTransferSources.d.ts.map +1 -0
- package/dist/components/chat/components/files/chatMyFilesApi.d.ts +270 -0
- package/dist/components/chat/components/files/chatMyFilesApi.d.ts.map +1 -0
- package/dist/components/chat/components/files/chatMyFilesModel.d.ts +122 -0
- package/dist/components/chat/components/files/chatMyFilesModel.d.ts.map +1 -0
- package/dist/components/chat/components/files/chatQuickAddMenu.d.ts +33 -0
- package/dist/components/chat/components/files/chatQuickAddMenu.d.ts.map +1 -0
- package/dist/components/chat/components/files/chatReviewApi.d.ts +75 -0
- package/dist/components/chat/components/files/chatReviewApi.d.ts.map +1 -0
- package/dist/components/chat/components/files/index.d.ts +25 -0
- package/dist/components/chat/components/files/index.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesApiUtils.d.ts +9 -0
- package/dist/components/chat/components/files/myFilesApiUtils.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesChunkUpload.d.ts +86 -0
- package/dist/components/chat/components/files/myFilesChunkUpload.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesExpandMemory.d.ts +15 -0
- package/dist/components/chat/components/files/myFilesExpandMemory.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesFilePicker.d.ts +30 -0
- package/dist/components/chat/components/files/myFilesFilePicker.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesFolderModel.d.ts +32 -0
- package/dist/components/chat/components/files/myFilesFolderModel.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesKindMenu.d.ts +19 -0
- package/dist/components/chat/components/files/myFilesKindMenu.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesMarkdown.d.ts +40 -0
- package/dist/components/chat/components/files/myFilesMarkdown.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesPreview.d.ts +52 -0
- package/dist/components/chat/components/files/myFilesPreview.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesRecentVisits.d.ts +22 -0
- package/dist/components/chat/components/files/myFilesRecentVisits.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesRows.d.ts +86 -0
- package/dist/components/chat/components/files/myFilesRows.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesSearch.d.ts +80 -0
- package/dist/components/chat/components/files/myFilesSearch.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesTree.d.ts +53 -0
- package/dist/components/chat/components/files/myFilesTree.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesUploadPersistence.d.ts +48 -0
- package/dist/components/chat/components/files/myFilesUploadPersistence.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesUploadQueue.d.ts +125 -0
- package/dist/components/chat/components/files/myFilesUploadQueue.d.ts.map +1 -0
- package/dist/components/chat/components/files/useArtifactNotice.d.ts +17 -0
- package/dist/components/chat/components/files/useArtifactNotice.d.ts.map +1 -0
- package/dist/components/chat/components/files/useFileTransfer.d.ts +45 -0
- package/dist/components/chat/components/files/useFileTransfer.d.ts.map +1 -0
- package/dist/components/chat/components/index.d.ts +7 -1
- package/dist/components/chat/components/index.d.ts.map +1 -1
- package/dist/components/chat/composables/chatApiRequest.d.ts.map +1 -1
- package/dist/components/chat/composables/chatHistoryApi.d.ts.map +1 -1
- package/dist/components/chat/composables/chatReferenceApi.d.ts.map +1 -1
- package/dist/components/chat/composables/chatSessionGroupApi.d.ts.map +1 -1
- package/dist/components/chat/composables/chatTtsApi.d.ts.map +1 -1
- package/dist/components/chat/composables/fetchModelList.d.ts +2 -2
- package/dist/components/chat/composables/fetchModelList.d.ts.map +1 -1
- package/dist/components/chat/composables/useChatSkillTipMenu.d.ts +22 -1
- package/dist/components/chat/composables/useChatSkillTipMenu.d.ts.map +1 -1
- package/dist/components/chat/composables/useChatTipMenu.d.ts +13 -4
- package/dist/components/chat/composables/useChatTipMenu.d.ts.map +1 -1
- package/dist/components/chat/composer/composerExtensions.d.ts +1 -1
- package/dist/components/chat/fileIcons.d.ts +42 -2
- package/dist/components/chat/fileIcons.d.ts.map +1 -1
- package/dist/components/chat/hydrateHistory.d.ts.map +1 -1
- package/dist/components/chat/icons/ChatFileDropIcon.vue.d.ts +6 -0
- package/dist/components/chat/icons/ChatFileDropIcon.vue.d.ts.map +1 -1
- package/dist/components/chat/icons/ChatTipMenuLocalFileIcon.vue.d.ts +7 -0
- package/dist/components/chat/icons/ChatTipMenuLocalFileIcon.vue.d.ts.map +1 -0
- package/dist/components/chat/icons/ChatTipMenuMyFilesIcon.vue.d.ts +7 -0
- package/dist/components/chat/icons/ChatTipMenuMyFilesIcon.vue.d.ts.map +1 -0
- package/dist/components/chat/icons/index.d.ts +3 -1
- package/dist/components/chat/icons/index.d.ts.map +1 -1
- package/dist/components/chat/icons/tipMenuItemIcons.d.ts +24 -0
- package/dist/components/chat/icons/tipMenuItemIcons.d.ts.map +1 -1
- package/dist/components/chat/index.d.ts +9 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/mdoc/ArtifactBlock.vue.d.ts +5 -0
- package/dist/components/chat/mdoc/ArtifactBlock.vue.d.ts.map +1 -1
- package/dist/components/chat/mdoc/ArtifactStack.vue.d.ts.map +1 -1
- package/dist/components/chat/mdoc/ContentNodes.vue.d.ts.map +1 -1
- package/dist/components/chat/mdoc/artifactDownload.d.ts +16 -3
- package/dist/components/chat/mdoc/artifactDownload.d.ts.map +1 -1
- package/dist/components/chat/mdoc/artifactStack.d.ts +7 -2
- package/dist/components/chat/mdoc/artifactStack.d.ts.map +1 -1
- package/dist/components/chat/messageChrome.d.ts +27 -0
- package/dist/components/chat/messageChrome.d.ts.map +1 -1
- package/dist/components/chat/openFileViewer.d.ts +25 -2
- package/dist/components/chat/openFileViewer.d.ts.map +1 -1
- package/dist/components/chat/previewRenderers.d.ts +14 -0
- package/dist/components/chat/previewRenderers.d.ts.map +1 -1
- package/dist/components/chat/responseStream.d.ts +3 -0
- package/dist/components/chat/responseStream.d.ts.map +1 -1
- package/dist/components/chat/senderReferenceStack.d.ts +1 -1
- package/dist/components/chat/senderReferenceStack.d.ts.map +1 -1
- package/dist/components/chat/subagentDisplay.d.ts +4 -18
- package/dist/components/chat/subagentDisplay.d.ts.map +1 -1
- package/dist/components/chat/types.d.ts +97 -3
- package/dist/components/chat/types.d.ts.map +1 -1
- package/dist/components/chat/utils/tipMenuBuiltin.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/library/LibraryApp.vue.d.ts +68 -0
- package/dist/components/library/LibraryApp.vue.d.ts.map +1 -0
- package/dist/components/library/api/libraryApi.d.ts +8 -0
- package/dist/components/library/api/libraryApi.d.ts.map +1 -0
- package/dist/components/library/api/libraryContract.d.ts +36 -0
- package/dist/components/library/api/libraryContract.d.ts.map +1 -0
- package/dist/components/library/api/libraryMockApi.d.ts +3 -0
- package/dist/components/library/api/libraryMockApi.d.ts.map +1 -0
- package/dist/components/library/api/libraryTypes.d.ts +97 -0
- package/dist/components/library/api/libraryTypes.d.ts.map +1 -0
- package/dist/components/library/components/LibraryDocEditor.vue.d.ts +50 -0
- package/dist/components/library/components/LibraryDocEditor.vue.d.ts.map +1 -0
- package/dist/components/library/components/LibraryReadonlyPane.vue.d.ts +15 -0
- package/dist/components/library/components/LibraryReadonlyPane.vue.d.ts.map +1 -0
- package/dist/components/library/components/LibrarySidebar.vue.d.ts +41 -0
- package/dist/components/library/components/LibrarySidebar.vue.d.ts.map +1 -0
- package/dist/components/library/components/LibraryTreeNode.vue.d.ts +17 -0
- package/dist/components/library/components/LibraryTreeNode.vue.d.ts.map +1 -0
- package/dist/components/library/composables/useLibraryAutoSave.d.ts +36 -0
- package/dist/components/library/composables/useLibraryAutoSave.d.ts.map +1 -0
- package/dist/components/library/index.d.ts +14 -0
- package/dist/components/library/index.d.ts.map +1 -0
- package/dist/components/library/registry/libraryFileTypes.d.ts +42 -0
- package/dist/components/library/registry/libraryFileTypes.d.ts.map +1 -0
- package/dist/components/skill/index.d.ts +1 -0
- package/dist/components/skill/index.d.ts.map +1 -1
- package/dist/components/ui/components/UiDialog.vue.d.ts +21 -0
- package/dist/components/ui/components/UiDialog.vue.d.ts.map +1 -1
- package/dist/components/ui/components/UiDropdown.vue.d.ts +2 -0
- package/dist/components/ui/components/UiDropdown.vue.d.ts.map +1 -1
- package/dist/components/ui/components/UiEmptyState.vue.d.ts +29 -0
- package/dist/components/ui/components/UiEmptyState.vue.d.ts.map +1 -0
- package/dist/components/ui/components/UiIconButton.vue.d.ts +45 -0
- package/dist/components/ui/components/UiIconButton.vue.d.ts.map +1 -0
- package/dist/components/ui/components/UiMenu.vue.d.ts +2 -0
- package/dist/components/ui/components/UiMenu.vue.d.ts.map +1 -1
- package/dist/components/ui/components/UiMenuNestedSubmenu.vue.d.ts +3 -0
- package/dist/components/ui/components/UiMenuNestedSubmenu.vue.d.ts.map +1 -1
- package/dist/components/ui/components/UiPopover.vue.d.ts.map +1 -1
- package/dist/components/ui/components/UiProgressRing.vue.d.ts +32 -0
- package/dist/components/ui/components/UiProgressRing.vue.d.ts.map +1 -0
- package/dist/components/ui/components/UiRichEditor.vue.d.ts +55 -0
- package/dist/components/ui/components/UiRichEditor.vue.d.ts.map +1 -0
- package/dist/components/ui/components/editor/richEditorExtensions.d.ts +13 -0
- package/dist/components/ui/components/editor/richEditorExtensions.d.ts.map +1 -0
- package/dist/components/ui/components/editor/richEditorPlaceholder.d.ts +6 -0
- package/dist/components/ui/components/editor/richEditorPlaceholder.d.ts.map +1 -0
- package/dist/components/ui/components/index.d.ts +4 -0
- package/dist/components/ui/components/index.d.ts.map +1 -1
- package/dist/components/ui/composables/index.d.ts +2 -0
- package/dist/components/ui/composables/index.d.ts.map +1 -1
- package/dist/components/ui/composables/useBreakpoint.d.ts +43 -0
- package/dist/components/ui/composables/useBreakpoint.d.ts.map +1 -0
- package/dist/components/ui/composables/useUiDropdown.d.ts +2 -0
- package/dist/components/ui/composables/useUiDropdown.d.ts.map +1 -1
- package/dist/components/ui/types.d.ts +2 -0
- package/dist/components/ui/types.d.ts.map +1 -1
- package/dist/{docx-preview-DB-exfjk.cjs → docx-preview-DG8slhP7.cjs} +1 -1
- package/dist/{docx-preview-BInH2mCJ.js → docx-preview-DMQ6xzQM.js} +1 -1
- package/dist/{index-DHknc0p4.cjs → index-B4nd6sY1.cjs} +1 -1
- package/dist/{index-wpRtsEi3.js → index-CBCQPl8n.js} +75103 -65593
- package/dist/index-CJ-Mb6SU.cjs +1410 -0
- package/dist/{index-SF7mr6DW.js → index-DRZPTPoe.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +599 -463
- package/dist/{papaparse.min-BYZpQSHx.cjs → papaparse.min-BRNq6gPR.cjs} +1 -1
- package/dist/{papaparse.min-C7WHKyF4.js → papaparse.min-CpVaJlaF.js} +1 -1
- package/dist/shared/cloudApi.d.ts +29 -0
- package/dist/shared/cloudApi.d.ts.map +1 -0
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/components/chat/components/SubagentRunDialog.vue.d.ts.map +0 -1
- package/dist/components/skill/formatSkillUsageCount.d.ts +0 -3
- package/dist/components/skill/formatSkillUsageCount.d.ts.map +0 -1
- package/dist/components/skill/quickActionAvatarIcon.d.ts +0 -25
- package/dist/components/skill/quickActionAvatarIcon.d.ts.map +0 -1
- package/dist/index-qBX9TwOy.cjs +0 -1248
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,58 @@
|
|
|
2
2
|
|
|
3
3
|
`@deep-eye/core` 的用户可见变更(语义化版本)。
|
|
4
4
|
|
|
5
|
+
## [1.3.83] - 2026-11-17
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **「+ → 添加文件」展开成子菜单**:输入框左下角「+」菜单里的「添加文件」不再直接唤起系统文件选择框,而是展开子菜单:**本地文件** / **我的文件** / **知识库**。「本地文件」行为不变,仍走原来的系统选择框;「我的文件」「知识库」弹出选文件弹框(顶部可带页签、右侧搜索、目录可展开、逐项勾选、底部「已选择 N 项」),确认后选中的条目直接挂成输入框里的卡片。弹框按设计稿走三列表格(名称 / 所有者 / 最近更新):文件夹有展开箭头、子节点缩进,加载时是骨架屏而不是「加载中…」文字。挂载口径与「添加到任务」一致——文件只带地址挂成已上传附件(不下载不重传),文件夹只带 id 进 `my_files_chat.folder_ids` 由后端展开;两者共用同一套去重与「每条消息最多 N 个文件」上限,已有附件不受影响。我的文件默认取目录树(传了 `cloud` 即生效,且允许勾选文件夹);知识库走**两步式**弹框(对齐设计稿):顶部「选择知识库 / 选择文件」两个页签 —— 前者按分组勾选整库(确认后进知识库选区,输入框里出现知识库 chip),后者左栏选库、右栏勾该库的文件(确认后按文件挂附件)。知识库接口各环境不同,组件库不猜:宿主传 `filePickerSources.knowledge`(`layout: 'library'` + `loadLibraries` / `loadFiles`),未接入时该项置灰,不会出现「点了没反应」。
|
|
10
|
+
- **「添加到任务」支持文件夹**:我的资料里点文件夹的「添加到任务」,不再被拦下,也不再产生一张"没有地址的文件"空壳卡。文件夹**只带 id**交给后端 —— 对话请求体新增顶层 `my_files_chat.folder_ids`(与知识库选区 `kb_chat.checked_node_ids` 同构:前端只点名,后端按 id 展开文件夹下的文件)。输入框里是文件夹卡片(文件夹图标 + 名字,可删除),不占附件体积;文件与文件夹同在一轮发送里各走各的路:文件进 `resource_files`,文件夹进 `my_files_chat.folder_ids`,不会混。宿主自定义「添加到任务」处理器会收到第二个参数 `folders`(`ChatFolderRef[]`);只处理文件的旧宿主不接第二个参数时文件夹会被忽略。
|
|
11
|
+
- **`ChatApp` 一行开启「我的文件」**:新增 `myFiles` 入参,默认 `false`(侧栏仍只有「新建任务」,右列 `#page` 全归宿主,老宿主行为不变)。传 `true` 时自动在 `navItems` 末尾追加「我的文件」项、点它切到 `pane='page'` 并在页面态保持高亮,右列直接渲染 `ChatMyFiles`;传对象可覆写 `navKey` / `label` / `icon` / `activeIcon`,并把 `preview`(OnlyOffice 载荷、文本保存管道)透传给 `ChatMyFiles`。宿主 `navItems` 里已声明同 key 项时不重复追加,文案、图标与菜单位置仍以宿主为准。宿主自带 `#page` 槽时该槽优先,内置页不渲染。页面在 `ChatApp` 内渲染时「添加到任务」走组件内部注入,宿主不必再接 `add-to-task`。
|
|
12
|
+
- **资料库(`LibraryApp`)**:左侧「我的资料」树 + 右侧文档编辑区。点「新建文件」会调 `api.create` 把新节点插到树顶并选中,右侧立刻挂载编辑器,焦点自动落在标题上,标题与正文都能直接输入,停手 800ms 自动保存(标题与正文合并成一次请求,单飞 + 串行补发,切文档用旧快照落盘不丢内容)。`v-model` 存 HTML,正文基于已内置的 tiptap 3,不引新依赖。文件类型点击行为走注册表 `registerLibraryFileType`:本轮内置 `md / txt` 为可编辑文档,`pdf / docx / xlsx / pptx / 图片 / 音视频 / html / 未知` 落到只读占位;将来某类文件要「跳新任务并预填输入框」,只需注册一个 handler 并监听 `task-seed` 事件,不用改页面与接口层。传入 `api` 或 `cloud` 后走真实接口,路径与字段集中在 `library/api/libraryContract.ts`,联调只改这一处;都不传时用内置演示数据。
|
|
13
|
+
- **`UiRichEditor`**:通用富文本编辑器(tiptap),`v-model` 为 HTML,支持 `placeholder`(空文档占位,自写 decoration,不引 `@tiptap/extensions` 幻影依赖)、`editable`、`autofocus`、`minHeight` / `maxHeight`,卸载自动 `destroy`。
|
|
14
|
+
- **`src/shared/cloudApi.ts`**:把「请求失败归一化、`status === 1` 解包、字段读取」这组原语从 `chat/components/files/myFilesApiUtils.ts` 上移,资料库与聊天侧共用一套;原文件保留 re-export shim,既有引用与错误类型断言零改动。
|
|
15
|
+
- **我的文件 / AI产物**:新增 `ChatMyFiles`。传入 `cloud` 后,资料目录走 `myFiles/check`(目录树、新建文件夹、上传保存)。AI 产物列表改为会话分页:`/check/list` 的 `page_size` 是会话数,每会话先给最新 50 条,更多走 `/check/artifactPage`。搜索交给服务端。这两个请求和其它云接口一样带 `appid` / `token` / `userId` / `schoolCode`。删除、恢复还没启用,接了云之后行内删除先不可用。同一产物出现在多个会话时,行标识是会话加产物。目录节点保留共享和审核状态,悬停可看到「审核中 / 已共享 / 审核通过但生效失败」。复制到知识库、复制到备课、校本共享和审核中心请求已对齐 2026-11-11 的接口,页面上还没有这些操作的入口。不传 `cloud` 时仍用组件内示例数据,搜索和删除留在页面里。资料目录没有文件时,右侧空白换成起步说明。
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- **「+」菜单不再出现两个「知识库」**:「添加文件 → 知识库」与根行的「知识库」是同一个入口(选库 → 插 chip),宿主接通 `filePickerSources.knowledge` 后两行同时可点。现由 `useChatSkillTipMenu` 新增的 `hiddenRootItemIds` 声明「根面板不渲染的行」,`ChatTipMenu` 只按它过滤**渲染列表**:`builtinMenuItems` 仍是全量,`@` 提及的分组面板、子菜单 path 解析、选中态都不受影响。知识库来源没接(子菜单那项置灰)或 `upload: false` 时根行保留,不会出现「没有入口」。顺带修掉 `filePickerSources` 传了 ref 但值为 `undefined` 时逐项解构报错。
|
|
20
|
+
- **「+ → 添加文件」子菜单与根面板同宽**:这一栏只有三个四字标签(本地文件 / 我的文件 / 知识库),此前没有声明宽度,回落到 `submenuWidth`(250,给技能 / 瞳友这类带描述的列表用),宿主把根菜单收窄到 150 后就成了「父窄子宽」—— 子面板右侧空出 100px。现改为跟随根面板宽度(`menuProps.width`):`ChatApp` 下 150 / 150,裸用 `ChatSender` 时仍是各级 250,宿主自定义根宽度时子菜单同步。**升级提示**:`filePickerSources` 里自定义的来源标签过长时会在这一栏里省略号截断(其它子菜单的 `submenuWidth` 不受影响)。
|
|
21
|
+
- **选文件 / 上传落点弹框再收一档高度,遮罩改毛玻璃**:锁高从 `clamp(420px, 68vh, 640px)` 提到 `clamp(480px, calc(100vh - 160px), 720px)`,头部与页脚留白同步收紧(上下内边距 24→20、标题下留白 20→12、页签行 44→40、表头 48→44、页脚上留白 20→16)。1280×900 视口下列表可视高度 350→490(≈6.2 → 8.8 行)。骨架屏行高 40→56 与真实行对齐,骨架切数据不再整体上跳一格。`UiDialog` 新增 `overlayBlur`(默认 `false`,开启后遮罩层加 `backdrop-filter`,强度走 `--ui-dialog-overlay-blur`,默认 8px),选文件弹框开启,其它弹框行为不变。
|
|
22
|
+
- **大文件分片上传默认开启,并且刷新后能接着传**:不再要求宿主配 `cloud.upload.chunkUpload.endpoints` —— 缺省走后端 `/api/files/chunk/*`(`/cloud` 仍按运行时前缀改写),单文件上限随之到 2GB;传 `chunkUpload: false` 才关掉(回到 1GB 直传)。分片路径没被网关放行(404/405/501)且一次分片都没传成功时自动退回直传,不会把大文件卡死。未结束的上传任务(连同 File 本体)会写进 IndexedDB,进页面自动恢复:分片凭 `chunkUploadId` + `status` 真正从断点续传,直传通道没有断点续传则从头传(后端 sha256 去重,不会产生重复文件);失败与已完成的任务不写入,超过 24 小时的条目自动清掉。
|
|
23
|
+
- **选择弹框锁高 + 统一视觉语汇**:`UiDialog` 新增 `height`(纯增量,不传等于原行为)—— 传了就是「头尾固定、body 撑满且不自滚」的容器,并叠 `max-height: calc(100vh - 96px)` 兜底;选文件 / 上传落点弹框锁成 `clamp(420px, 68vh, 640px)`,换页签 / 换布局 / 骨架→数据之间高度恒定,长列表不再把弹框顶出视口(原来 `.chat-file-picker` 只有 `min-height: 380px`、列表 `max-height: 420px` 写死,高度实际随内容变)。同时统一:页签与分段控件同一枚视觉、内容切换 160ms 淡入(`prefers-reduced-motion` 关闭)、空态/错误态居中、骨架屏行数与锁高后的容器匹配;顺带修掉知识库分栏左栏 `overflow-y: auto` 一直不生效的问题。
|
|
24
|
+
- **选择弹框视觉对齐设计稿**:内边距 24 / 标题 20px;表格容器圆角 12、行高 56、图标 24;表头改为「名称 / 所有者 / 位置 / 最近访问」四列,且与行**共用同一套 grid 列模板**(各写一套会在元信息列错开一整列);切换控件统一成「灰底容器 + 白色选中块」;搜索框 300×40 白底描边;底栏按钮 36 高、禁用态灰底白字。行内缩进基准 12→20(与表头内边距对齐)。「我的资料」选文件新增「最近 / 我的资料」两个页签:最近按访问时间倒序平铺(含文件夹、不带层级),落点(选目录)不加页签。新增演练场对照页(我的资料 / 知识库 / 落点)。
|
|
25
|
+
- **底栏文案按语义分工**:浏览态「已选择 N 项」;写入态「已选择 N 项 · 上传到「X」」。上一轮为了「完全一致」把落点回执去掉,等于把有副作用的写入操作做成了浏览态。另修:落点模式下勾了文件但没选库时「确定」不再可点。弹框关闭也不再闪白(`source` 与 `open` 解耦,淡出期间保留内容)。
|
|
26
|
+
- **知识库落点只认宿主一份数据**:删除组件库内置的 `findSimpleKnowledgeBaseList` 回退 —— 那是「能引用哪些库」(@ 提及用),与「能写入哪些库」字段、分组、权限口径都不同,静默回退会让落点列表缺库且看不出问题。未配置时抛 `KNOWLEDGE_SOURCE_MISSING`(与备课中心同口径),「+ → 添加文件」与「上传到」共用同一个 source。**升级提示**:宿主需传 `transferSources.knowledge`。
|
|
27
|
+
- **「上传到」的位置选择与「+ → 添加文件」统一成一个弹框**:删除 `ChatFileTargetPicker`,改用 `ChatFilePickerDialog` 的 `mode="target"` —— 目录树落点单选(点行选中、双击确认)、只列文件夹、底栏显示「将保存到「xxx」」、树默认全展开;知识库布局与「+ → 添加文件」完全一致(两个页签、分组、勾选框、「已选择 N 项」),落点只认一个库(点击是替换)。我的资料 / 知识库 / 备课中心三个落点被包装成 `ChatFilePickerSource`(新增 `chatFileTransferSources.ts`),四个入口(AI 产物行、产物预览、对话产物卡片、我的资料行与目录树)共用;`ChatContext` 新增 `transferSources`,对话里的产物卡片也能拿到同一份落点数据源。
|
|
28
|
+
- **「上传到备课中心」接通**:新增 `transferFilesToTeaching`,落点用「页签=教材 + 树节点=章节」两个 id 调 `copyToTeaching`(`ChatFilePickerSelection` 因此多了 `tab`)。教材目录在宿主侧,宿主传 `transferSources.teaching`(`layout: 'tree'`,页签是教材、`load` 拉章节树);没配时给出「备课中心的教材目录由宿主提供,当前环境还没接入」的说明,不再是「接口补齐后开放」。
|
|
29
|
+
- **上传登记字段补齐**:`fileInfo.fileKey`(对象 key,后续复制到知识库 / 备课靠它定位源对象)、`saveFiles` 的 `uploadScene=MY_UPLOAD`(聊天入口上传固定落个人空间顶层「我的上传」并忽略 `directoryId`)、`duplicateDirectoryId` / `duplicateDirectoryName`(重复文件所在目录,看板提示「该文件已在 xxx 目录」)。`fileInfo.id` 收紧为「只有确实是文件服务 fileId 时才传」—— 产物链路原来塞的是产物 id,后端 v3 起「传了 id 就写归属关系」,等于写出一条指向不存在文件的记录,现改为关联走 `sourceArtifactId`。`saveFiles` 单次 20 条上限做了内部分批(多选几十个产物不再整批被拒)。
|
|
30
|
+
- **「我的资料」对齐后端接口文档 v3(A1–A7)**:`complete` 失败后探一次 `status` 区分两种语义 —— 会话还在就保留续传凭据重试 `complete`,会话已被清理(提交解析失败)就丢弃凭据整份重传;宿主可选配 `chunkUpload.endpoints.cancel`,用户取消时连带删掉服务端临时分片。打开文件时调一次 `fileDetail` 让后端刷新真实访问时间(「最近」列表不再只能按修改时间排),并把新时间写回本地树立即重排。搜索结果行下方出现摘要灰字(读后端 `summary`,按关键词前后 15 字截取,后端只给原文)。
|
|
31
|
+
- **「我的资料」整体只读,关掉全部文件编辑逻辑**:文本类(md / txt / json / 代码…)不再出现「编辑 / 取消 / 保存」,源码视图与文档视图都不可写;Office 文档(docx / xlsx / pptx)一律以 OnlyOffice「纯预览版」打开(`mode: 'view'`、`permissions.edit: false`、不挂保存回调、不开 autosave / forcesave);宿主接的 `saveText` 保存管道不会被调用,⌘S 也不再被面板拦截。重命名、删除、新建文件夹、上传、下载这些资料管理操作不受影响。改动收在一处总开关 `myFilesPreview.ts` 的 `MY_FILES_EDITING_ENABLED`(当前为 `false`),后续要放开编辑改回 `true` 即可。AI 产物侧缺省本来就是只读预览,行为不变。
|
|
32
|
+
- **「我的资料」预览/编辑只剩一层操作栏**:右侧面板里的渲染器不再各自渲染 `doc-viewer-toolbar`。侧边栏(缩略图 / 大纲 / 幻灯片)开关移到标题栏最左、排在文件名之前;缩小 / 放大 / 下载 / 全屏 / 关闭统一收成标题栏图标(全屏在关闭左侧,展开的是整个面板含标题栏)。图片也不再出现库里自带的「`-` `+` 旋转图片 重置图片视图 100%」控制条(`OpenFileViewerHost` 新增 `hideImageControls`,透传到 `mountOpenFileViewer` 的 `headlessImageControls`),缩放改由标题栏图标驱动。新增 `chat/components/document-viewer/chromeBridge.ts`:宿主 `useDocViewerChromeHost()` 提供桥,`DocumentViewer` / `OfficeDocumentViewer` / `OpenFileViewerHost` 检测到桥即交出工具条并上报侧边栏与缩放能力,命令由桥上的函数回传。没有桥的宿主(对话内预览、产物预览)行为不变。副作用:本地 PDF 的页码输入、旋转在「我的资料」里不再提供,图片的旋转 / 重置视图也不再提供。
|
|
33
|
+
- **子任务改成单行状态**:并行子任务不再用圆角卡片,也不再点击打开详情。进行中显示「正在调用子任务 {标题}」,结束后显示「已完成 {标题}」。
|
|
34
|
+
- **对话云接口统一走 axios**:新增 `chat/cloudAxios.ts`,会话历史、会话分组、引用、TTS、我的文件、审核这些接口不再各自拼请求头,鉴权头(`appid` / `token` / `userId` / `schoolCode`)由统一入口补一次,`cloud.headers()` 的追加字段对每个接口都生效。拉流(`redis_stream` 等)、`model_list`、七牛上传和文档预览仍走 `fetch`。
|
|
35
|
+
- **上传看板改成行式列表,传完可以直接点开**:标题旁计数是 `5/10`。完成态写「已上传」,整批完成写「全部上传成功」。上传中左侧是按字节加权的总进度环,还在登记时最多画到 99%。已完成且有文件 id 的行可以点开这份文件;重复命中和还在传的行不能点。
|
|
36
|
+
- **「添加资料」弹窗改成单色**:虚线投放区、黑色胶囊主按钮,「选择文件夹」是主按钮下方的文字按钮。遮罩为毛玻璃。只有拖入文件时才出现蓝色。暗色下主按钮是白底深字。
|
|
37
|
+
- **窄容器里的选文件弹框会收列**:表头和行共用一套列宽。容器变窄时先收「位置」,再收「所有者」,知识库左右栏改成上下堆叠。固定浮层限制在视口内。组件内部按容器宽度适配;整页断点是 ≤639 / 640 / 1024 / 1280。
|
|
38
|
+
- **纯文本侧栏改成阅读页**:txt / log / env / ini / srt / vtt 等是一页纸,没有行号和高亮。代码文件仍是高亮视图。头部给出文件名、行数和大小,以及复制全文、下载、全屏、关闭。划词提问还在。
|
|
39
|
+
- **我的资料里的 Markdown 只读预览会画出表格和公式**:与对话正文同一套渲染,不再把表格退回竖线原文。只读时标题栏没有「源码」。正在编辑、且编辑器表达不了表格或图片时,仍留在纯文本,并提示「含表格,暂以纯文本显示」。
|
|
40
|
+
- **产物卡片的「更多」一直显示**:不用悬停才找得到。悬停出现浅底和「更多」提示。图标仍是横排三点。
|
|
41
|
+
- **打不开的预览用同一套空态**:没有地址、类型不支持、渲染失败,在我的资料、产物和对话侧栏里都是同一块占位(图标、标题、说明、下载或返回)。没有地址时不再说成「不支持预览」。
|
|
42
|
+
|
|
43
|
+
### Fixed
|
|
44
|
+
|
|
45
|
+
- **侧栏「更多」行一直像被选中**:`.chat-session-sidebar__nav-more` 的样式无条件给白底 + 品牌蓝(蓝湖稿给的是悬浮态,被当常驻态写死),侧栏内层是 `#fafafa`,白色 pill 一直可见,和真正选中的常驻项完全同形;同时模板只给这一行绑了 `is-open`(浮层是否展开),`.is-active` 写了却从未生效。现改为与常驻项同一套状态:默认透明底 + 正文色,展开浮层只给 `#f0f2f5` 的按下底,**只有浮层里的入口是当前页时**才切白底 + 品牌蓝(新增 `moreNavActive`)。图标原来是恒定蓝的 PNG,改用 mask 以 `currentColor` 染色(`--chat-sidebar-more-icon`),未选中时不再恒蓝;`--chat-sidebar-more-bg` 随之弃用(保留变量仅为兼容旧主题覆盖)。
|
|
46
|
+
- **选文件弹框表头与数据的列错位**:`.chat-file-picker__meta` 里同时留着 `text-align: left` 和 `text-align: right`(改版时是「新增一条」而非替换),后写的 `right` 生效,而表头在上一轮已改成左对齐 —— 结果「所有者 / 位置 / 最近访问」三列的表头字面比数据左出 47–64px,看起来像列没对上。现统一为左对齐:表头与数据同一口径,实测四列单元格左边界差为 0。若将来要改成右对齐(日期列常见),必须表头一起改。
|
|
47
|
+
- **模型列表跟随 `cloudPrefix`**:开启模型选择后,`model_list` 使用当前 `cloud.cloudPrefix`。此前在 localhost 上会固定改写到 `/cloud-prod`,宿主切到 `/cloud-dev` 时模型列表仍打生产。
|
|
48
|
+
- **AI 产物列表漏带 `token`**:`/genericAgent/library/check/list` 和 `/check/artifactPage` 此前只带 `userId` 和 `schoolCode`,现在与其它云接口一致带齐四个鉴权头,宿主的 `cloud.headers()` 也不再被过滤。
|
|
49
|
+
- **侧栏折叠态「更多」点了没反应**:`showMoreNav` 与 `toggleMoreNav` 里写死折叠态 `return`(设计稿只给了展开态),折叠后浮层既不渲染也不展开,被收纳的入口在侧栏收起时彻底点不到。现折叠态同样展开浮层:定位仍用 trigger 的 `getBoundingClientRect()`(折叠时 right 就是 65px 窄栏右沿),浮层出现在窄栏右侧,切换折叠时自动收起。
|
|
50
|
+
|
|
51
|
+
## [1.3.82] - 2026-11-16
|
|
52
|
+
|
|
53
|
+
### Fixed
|
|
54
|
+
|
|
55
|
+
- **刷新后提问前的「已完成」也有用时**:正文后面还有 `ask_user` 时,时间线拆成两段过程组,整轮 `run_ms` 只挂在最后一段。刷新后前面那段「已完成」没有时长。现在按消息开始到下一段第一个工具的开始时间补上。最后一段仍用整轮 `run_ms`。还在等回答的提问段不显示时长。用户答完、续写结束后,整轮时长从提问的 `created_at` 算到续写的 `completed_at`;续写还在输出时不写。
|
|
56
|
+
|
|
5
57
|
## [1.3.81] - 2026-11-13
|
|
6
58
|
|
|
7
59
|
### Added
|
|
@@ -11,6 +63,7 @@
|
|
|
11
63
|
### Changed
|
|
12
64
|
|
|
13
65
|
- **图片灯箱按一条消息翻页**:消息里的正文图片合成一份清单。图片被标题、说明文字切成几个堆叠时,左右按钮、`←` `→` 和触控横滑仍按整条消息连续翻,计数器显示消息内的位置(例如 `6 / 25` 是第 2 组第 1 张)。上一张 / 下一张首尾环绕。不同消息各一份清单,不互相串联。没有消息上下文时(如单独渲染 `MarkdownRenderer`)仍是本组图片。
|
|
66
|
+
- **generic-responses 默认同源路径加上 `/yxuerai`**:未覆盖地址时,发起、拉流、回放和引导分别为 `/yxuerai/agent/generic/responses`、`redis_stream`、`redis_history`、`responses/instruction`。`cloud.chat.url` 等字段仍可覆盖。本地 Vite 把 `/yxuerai` 转到 `http://k8s2.yxuer.com:38085`,转发前去掉 `/yxuerai`。
|
|
14
67
|
|
|
15
68
|
## [1.3.80] - 2026-11-05
|
|
16
69
|
|
package/README.md
CHANGED
|
@@ -150,7 +150,7 @@ const data = {
|
|
|
150
150
|
</template>
|
|
151
151
|
```
|
|
152
152
|
|
|
153
|
-
assistant `content` 原生支持 GFM、代码高亮、KaTeX 公式、图片/视频/音频,以及组件库定义的 mdoc 标签(工件卡片、Chart、Action Bar)。≥ 1.3.79 起,引用悬浮 tip 和文本目录里的公式与正文一样渲染,PDF 页图文字层仍是纯文本;「产出文件」列表固定宽 480px,单文件预览仍默认 55%,文件名溢出时悬停才显示全文;侧栏任务历史把带前导零的 Java 日期按本地时间计算。≥ 1.3.80 起,满 5 轮的对话在左侧显示会话索引;模型列表与详情卡宽 300px,消耗速度读 `ratio`;独立成段且已闭合、能通过图表校验的 ` ```json ` / ` ```echarts ` 直接画成图。≥ 1.3.81 起,`responses` 的 JSON 带回 `session_id` 时先抛 `responses-ack`
|
|
153
|
+
assistant `content` 原生支持 GFM、代码高亮、KaTeX 公式、图片/视频/音频,以及组件库定义的 mdoc 标签(工件卡片、Chart、Action Bar)。≥ 1.3.79 起,引用悬浮 tip 和文本目录里的公式与正文一样渲染,PDF 页图文字层仍是纯文本;「产出文件」列表固定宽 480px,单文件预览仍默认 55%,文件名溢出时悬停才显示全文;侧栏任务历史把带前导零的 Java 日期按本地时间计算。≥ 1.3.80 起,满 5 轮的对话在左侧显示会话索引;模型列表与详情卡宽 300px,消耗速度读 `ratio`;独立成段且已闭合、能通过图表校验的 ` ```json ` / ` ```echarts ` 直接画成图。≥ 1.3.81 起,`responses` 的 JSON 带回 `session_id` 时先抛 `responses-ack` 再拉流;图片灯箱按一条消息翻页,计数器显示消息内位置。≥ 1.3.82 起,刷新后提问前的「已完成」显示自己的用时;续写结束后整轮用时从提问开始算到续写结束。≥ 1.3.83 起,`ChatApp` 可开「我的文件」;「+ → 添加文件」展开为本地文件 / 我的文件 / 知识库;大文件默认分片上传并可在刷新后续传;选文件弹框在窄容器里收列;纯文本侧栏改为阅读页;我的资料里的 Markdown 只读预览会画出表格和公式;产物卡片的「更多」一直显示。知识库写入落点需宿主传 `transferSources.knowledge`。询问用户优先走 `ask_user` tool(`arguments: { desc, questions }`);正文仍可写 `{% ask-form %}` 作兼容。将 `ARTIFACT_BLOCK_SYSTEM_PROMPT`、`ASK_USER_FORM_SYSTEM_PROMPT`、`CHART_BLOCK_SYSTEM_PROMPT` 或 `ACTION_BAR_SYSTEM_PROMPT` 加入 system prompt 可引导模型;`ChatBot` 会自动 dock Ask Form。带 `toolCallId` 的提交显示在「向用户提问」工具回复里(题干 + 加粗选项),不再另起用户气泡。宿主只需用 `buildAskUserFunctionCallOutput(toolCallId, answers)` 续接 `function_call_output`——**不要**用 `answers[].selected` 拼文案。没有 `toolCallId` 的正文 `{% ask-form %}` 仍写入用户气泡(`action.label`)。点击工件卡片按类型分流(可预览进侧栏 / 图片灯箱 / 新标签 / 直接下载),消息内渲染 `{% chart %}` 与 `{% action-bar %}`。
|
|
154
154
|
|
|
155
155
|
## 进阶能力
|
|
156
156
|
|
|
@@ -2,7 +2,7 @@ var Ex = Object.defineProperty;
|
|
|
2
2
|
var Mx = (r, e, t) => e in r ? Ex(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var bp = (r, e, t) => Mx(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { defineComponent as Xu, shallowRef as wh, inject as xl, toRefs as Ax, computed as tr, toValue as Tl, watch as Cl, watchEffect as l_, onMounted as u_, onBeforeUnmount as Ix, h as xh, shallowReactive as Of, onUpdated as Lx, onUnmounted as Ox, warn as Px, nextTick as Rx, Teleport as Nx, openBlock as it, createElementBlock as Ct, createElementVNode as si, toDisplayString as kx, Fragment as xs, renderList as Pf, createStaticVNode as Vx, ref as Bx, createVNode as zx, Transition as Fx, withCtx as Hx, unref as Wa, createBlock as Rf } from "vue";
|
|
5
|
-
import { _ as qv,
|
|
5
|
+
import { _ as qv, Z as Gx, $ as Ux } from "./index-CBCQPl8n.js";
|
|
6
6
|
/*! *****************************************************************************
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var fx=Object.defineProperty;var cx=(r,e,t)=>e in r?fx(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var sp=(r,e,t)=>cx(r,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("vue"),os=require("./index-
|
|
1
|
+
"use strict";var fx=Object.defineProperty;var cx=(r,e,t)=>e in r?fx(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var sp=(r,e,t)=>cx(r,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("vue"),os=require("./index-CJ-Mb6SU.cjs");/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("@vueuse/core");const l=require("./index-CJ-Mb6SU.cjs"),Qe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%2024.0%2024.0'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cclipPath%20id='i0'%3e%3cpath%20d='M2000,0%20L2000,4212%20L0,4212%20L0,0%20L2000,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='translate(-157.0%20-2549.0)'%3e%3cg%20clip-path='url(%23i0)'%3e%3cg%20transform='translate(145.0%202545.0)'%3e%3cg%20transform='translate(12.0%204.0)'%3e%3cg%20transform='translate(24.0%2024.0)%20rotate(90.0)%20scale(-1.0%201.0)'%3e%3cg%20transform='translate(17.5%209.5)%20rotate(90.00000000000001)'%3e%3cpath%20d='M0,0%20L5,5%20L0,10'%20stroke='currentColor'%20stroke-width='1.8'%20fill='none'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Xe={class:"chat-artifact-row__lead"},et={class:"chat-artifact-row__name"},tt=["title"],at={class:"chat-artifact-row__meta"},lt={class:"chat-artifact-row__cell chat-artifact-row__cell--kind"},nt=["title"],ot={class:"chat-artifact-row__cell chat-artifact-row__cell--time"},st={class:"chat-artifact-row__cell chat-artifact-row__cell--size"},rt=e.defineComponent({name:"ChatArtifactFileRow",__name:"ChatArtifactFileRow",props:{file:{},selected:{type:Boolean},actionsDisabled:{type:Boolean,default:!1},showOwner:{type:Boolean,default:!1}},emits:["toggle","open","action"],setup(c,{emit:A}){const s=c,k=A,_=e.computed(()=>l.createArtifactFileMenuItems({disabled:s.actionsDisabled})),{Menu:v}=l.useUiDropdown({items:_,placement:l.ARTIFACT_FILE_MENU_PLACEMENT,width:l.ARTIFACT_FILE_MENU_WIDTH,panelClass:l.ARTIFACT_FILE_MENU_PANEL_CLASS,submenuPanelClass:l.ARTIFACT_FILE_SUBMENU_PANEL_CLASS,onItemClick:({id:m})=>{if(m.split(":").at(-1)==="download"){if(s.actionsDisabled)return;s.file.url&&l.downloadFromSrc(s.file.url,s.file.name);return}k("action",m)}}),i=e.computed(()=>[s.file.kind,s.file.updatedLabel,s.file.sizeLabel].filter(Boolean).join(" · "));return(m,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["chat-artifact-row",{"is-selected":c.selected,"has-owner":c.showOwner}]),onClick:u[3]||(u[3]=y=>k("toggle"))},[e.createElementVNode("span",Xe,[e.createVNode(l.ChatFileCheckbox,{class:"chat-artifact-row__check",checked:c.selected,label:c.selected?"取消选择":"选择文件",onToggle:u[0]||(u[0]=y=>k("toggle"))},null,8,["checked","label"]),e.createVNode(l.ChatMyFilesTypeMark,{ext:c.file.ext,name:c.file.name},null,8,["ext","name"])]),e.createElementVNode("span",et,[e.createElementVNode("button",{class:"chat-artifact-row__title",type:"button",title:c.file.name,onClick:u[1]||(u[1]=e.withModifiers(y=>k("open"),["stop"]))},e.toDisplayString(c.file.name),9,tt),e.createElementVNode("span",at,e.toDisplayString(i.value),1)]),e.createElementVNode("span",lt,e.toDisplayString(c.file.kind),1),c.showOwner?(e.openBlock(),e.createElementBlock("span",{key:0,class:"chat-artifact-row__cell chat-artifact-row__cell--owner",title:c.file.owner||""},e.toDisplayString(c.file.owner||"—"),9,nt)):e.createCommentVNode("",!0),e.createElementVNode("span",ot,e.toDisplayString(c.file.updatedLabel),1),e.createElementVNode("span",st,e.toDisplayString(c.file.sizeLabel),1),e.createVNode(e.unref(v),null,{default:e.withCtx(()=>[e.createVNode(l.ArtifactFileMoreButton,{class:"chat-artifact-row__more","data-testid":"artifact-row-more",loading:"lazy",decoding:"async",onClick:u[2]||(u[2]=e.withModifiers(()=>{},["stop"]))})]),_:1})],2))}}),ct=l._export_sfc(rt,[["__scopeId","data-v-1c38f09e"]]),it=["aria-label"],ut={class:"chat-artifact-preview__body"},dt={key:3,class:"chat-artifact-preview__empty"},ft=e.defineComponent({name:"ChatArtifactPreview",__name:"ChatArtifactPreview",props:{file:{},cloud:{default:void 0},actionsDisabled:{type:Boolean,default:!1},onlyofficeProfile:{default:"preview"}},emits:["close","action"],setup(c,{emit:A}){const s=c,k=A,_=e.computed(()=>l.createArtifactFileMenuItems({disabled:s.actionsDisabled})),{Menu:v}=l.useUiDropdown({items:_,placement:l.ARTIFACT_FILE_MENU_PLACEMENT,width:l.ARTIFACT_FILE_MENU_WIDTH,panelClass:l.ARTIFACT_FILE_MENU_PANEL_CLASS,submenuPanelClass:l.ARTIFACT_FILE_SUBMENU_PANEL_CLASS,zIndex:3100,onItemClick:({id:f})=>{if(f.split(":").at(-1)==="download"){V();return}k("action",f)}}),i=e.ref(null),m=e.ref(!0);let u=0;async function y(){const f=++u;if(i.value=null,s.file.url){i.value={url:s.file.url,previewType:s.file.previewType},m.value=!1;return}m.value=!0;const P=await l.resolveArtifactPreview(s.cloud,s.file);f===u&&(i.value=P??null,m.value=!1)}const z=e.computed(()=>l.artifactToResource(s.file,i.value??void 0)),p=e.computed(()=>{var f;return((f=i.value)==null?void 0:f.url)??""}),se=e.computed(()=>l.getChatPreviewKind(z.value)),Z=e.computed(()=>l.isPlainTextResource(z.value)),R=e.ref(""),U=e.ref(0),O=e.ref(!1);let W;function Q(f){R.value=f.text,U.value=f.lines}async function re(){if(R.value){try{await navigator.clipboard.writeText(R.value)}catch{return}O.value=!0,clearTimeout(W),W=setTimeout(()=>{O.value=!1},1600)}}const ce=e.computed(()=>[s.file.kind,Z.value&&U.value?`${U.value} 行`:"",s.file.sizeLabel].filter(Boolean).join(" · ")),H=e.computed(()=>l.isUnpreviewableKind(se.value)),C=e.computed(()=>l.unsupportedPreviewHint(s.file)),w=e.computed(()=>!!p.value&&!H.value);e.watch(()=>[s.file.id,s.file.url],()=>void y());const D=e.ref(),b=e.ref();let g=null;const j=l.useDocViewerChromeHost();e.watch(()=>s.file.id,()=>{l.resetDocViewerChrome(j),R.value="",U.value=0,O.value=!1});const B=e.ref(!1),N=e.ref(!1);let F=!1;function E(){F||(F=!0,B.value=!1)}function Y(){F&&k("close")}function V(){var P;const f=(P=i.value)==null?void 0:P.url;f&&l.downloadFromSrc(f,s.file.name)}function S(){N.value=!N.value}function X(f){if(f.key==="Escape"){if(N.value){N.value=!1;return}E()}}return e.onMounted(()=>{g=document.activeElement instanceof HTMLElement?document.activeElement:null,B.value=!0,y(),e.nextTick(()=>{var f;return(f=b.value)==null?void 0:f.focusClose()})}),e.onBeforeUnmount(()=>{g==null||g.focus(),g=null,clearTimeout(W)}),(f,P)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"cap-drawer",onAfterLeave:Y},{default:e.withCtx(()=>[B.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["chat-artifact-preview",{"is-expanded":N.value}]),onKeydown:X},[e.createElementVNode("div",{class:"chat-artifact-preview__backdrop",onClick:E}),e.createElementVNode("section",{ref_key:"panelRef",ref:D,class:"chat-artifact-preview__panel",role:"dialog","aria-modal":"true","aria-label":`${c.file.name} 预览`},[e.createVNode(l.ChatPreviewHeader,{ref_key:"headerRef",ref:b,class:"chat-artifact-preview__header",name:c.file.name,ext:c.file.ext,meta:ce.value,chrome:e.unref(j),"show-download":!!p.value,fullscreen:N.value,"show-copy":Z.value&&!!R.value,copied:O.value,"show-fullscreen":"",onDownload:V,onCopy:re,onFullscreen:S,onClose:E},{actions:e.withCtx(()=>[e.createVNode(e.unref(v),null,{default:e.withCtx(()=>[e.createVNode(l.ArtifactFileMoreButton,{class:"chat-artifact-preview__more",loading:"eager",decoding:"async"})]),_:1})]),_:1},8,["name","ext","meta","chrome","show-download","fullscreen","show-copy","copied"]),e.createElementVNode("div",ut,[m.value?(e.openBlock(),e.createBlock(l.ChatPreviewSkeleton,{key:0,label:"正在加载文件"})):w.value&&Z.value?(e.openBlock(),e.createBlock(l.ChatTextReader,{key:1,src:p.value,onLoaded:Q},null,8,["src"])):w.value?(e.openBlock(),e.createBlock(l.ChatFilePreview,{key:2,class:"chat-artifact-preview__viewer",resource:z.value,"onlyoffice-profile":c.onlyofficeProfile,"screenshot-ask":!1,"hide-close":"","hide-download":"","hide-fullscreen":"","hide-sidebar":"","hide-image-controls":""},null,8,["resource","onlyoffice-profile"])):(e.openBlock(),e.createElementBlock("div",dt,[H.value?(e.openBlock(),e.createBlock(l._sfc_main,{key:0,ext:c.file.ext,name:c.file.name,description:C.value,download:!!p.value,"secondary-label":p.value?void 0:"返回列表",onDownload:V,onSecondary:E},null,8,["ext","name","description","download","secondary-label"])):(e.openBlock(),e.createBlock(l._sfc_main,{key:1,title:"暂时无法预览",description:"未能获取该文件的预览地址,可稍后重试,或返回列表用其他方式打开。","secondary-label":"返回列表",onSecondary:E}))]))])],8,it)],34)):e.createCommentVNode("",!0)]),_:1})]))}}),mt=l._export_sfc(ft,[["__scopeId","data-v-97adc449"]]),vt={class:"art-skeleton","aria-hidden":"true"},pt={key:0,class:"art-skeleton__group"},_t={class:"art-skeleton__task"},ht={class:"art-skeleton__name"},kt=e.defineComponent({name:"ChatArtifactsSkeleton",__name:"ChatArtifactsSkeleton",props:{blocks:{default:2},rows:{default:2},groupHead:{type:Boolean,default:!1}},setup(c){const A=["42%","54%","34%","48%"],s=["58%","44%","66%","50%"],k=v=>A[v%A.length],_=v=>s[v%s.length];return(v,i)=>(e.openBlock(),e.createElementBlock("div",vt,[c.groupHead?(e.openBlock(),e.createElementBlock("div",pt,[...i[0]||(i[0]=[e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__chevron"},null,-1),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__group-name"},null,-1),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__group-count"},null,-1)])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.blocks,m=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"art-skeleton__block"},[e.createElementVNode("div",_t,[i[1]||(i[1]=e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__spark"},null,-1)),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__task-name",style:e.normalizeStyle({width:A[(m+1)%A.length]})},null,4)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.rows,u=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"art-skeleton__row"},[i[3]||(i[3]=e.createElementVNode("span",{class:"art-skeleton__lead"},[e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__icon"})],-1)),e.createElementVNode("span",ht,[e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__bar art-skeleton__bar--name",style:e.normalizeStyle({width:k(u-1)})},null,4),i[2]||(i[2]=e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__bar art-skeleton__bar--meta"},null,-1))]),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__cell art-skeleton__cell--kind",style:e.normalizeStyle({width:_(u)})},null,4),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__cell art-skeleton__cell--time",style:e.normalizeStyle({width:_(u+1)})},null,4),i[4]||(i[4]=e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__cell art-skeleton__cell--size"},null,-1)),i[5]||(i[5]=e.createElementVNode("span",{class:"art-skeleton__cell--action"},null,-1))]))),128))]))),128))]))}}),be=l._export_sfc(kt,[["__scopeId","data-v-6ca80140"]]),yt={class:"chat-my-files-artifacts__frame"},wt={class:"chat-my-files-artifacts__toolbar"},gt=["src"],Et={class:"chat-my-files-artifacts__filter",type:"button"},Ct=["src"],bt={class:"chat-my-files-artifacts__search"},Nt=["src"],At={key:0,class:"chat-my-files-artifacts__progress",role:"status","aria-label":"正在加载 AI 产物"},Tt={class:"chat-my-files-artifacts__table"},Bt={key:0,class:"chat-my-files-artifacts__col chat-my-files-artifacts__col--owner"},Vt={key:0,class:"chat-my-files-artifacts__skeleton","data-testid":"artifact-first-load","aria-busy":"true"},St=["aria-expanded","onClick"],It=["src"],Ft={class:"chat-my-files-artifacts__group-name"},xt={class:"chat-my-files-artifacts__group-count"},Lt=["inert"],Mt={class:"chat-my-files-artifacts__group-clip"},Rt={class:"chat-my-files-artifacts__task-head"},Dt=["src"],Pt=["title"],$t=["disabled","aria-busy","onClick"],zt={class:"chat-my-files-artifacts__sentinel-sheet"},Ut={class:"chat-my-files-artifacts__sr-only",role:"status"},Ot=["disabled","aria-busy"],Ht={key:1,class:"chat-my-files-artifacts__bar"},Kt={class:"chat-my-files-artifacts__bar-count"},Gt={key:2,class:"chat-my-files-artifacts__notice",role:"status"},q=6,qt=3,Ne=400,Zt=e.defineComponent({name:"ChatMyFilesArtifacts",__name:"ChatMyFilesArtifacts",props:{cloud:{},actionsDisabled:{type:Boolean}},emits:["back","add-to-task"],setup(c,{emit:A}){const s=c,k=A,_=e.ref(""),v=e.ref("全部类型"),i=e.ref("updatedAt"),m=e.ref("desc"),u=e.ref(new Set),y=e.ref(new Set),{notice:z,flash:p}=l.useArtifactNotice(),se=l.useChatContext(),{source:Z,open:R,hint:U,busy:O,title:W,request:Q,confirm:re,close:ce}=l.useFileTransfer({getCloud:()=>s.cloud,flash:p,sources:()=>se.transferSources.value}),H=l.injectChatAddToTask(),C=e.ref([]),w=e.ref(!1),D=e.ref(""),b=e.ref(!1),g=e.ref(new Set),j=e.ref(1),B=e.ref(!1),N=e.ref(!1),F=e.ref({});let E=0,Y=0;const V=new Map,S=e.computed(()=>w.value&&C.value.length===0);function X(){return s.cloud?C.value:l.artifactGroups}function f(t,a){const n=new Set(g.value);a?n.add(t):n.delete(t),g.value=n}function P(t){const a=(t.productCount??0)-t.files.length;return a>0?`还有 ${a} 个`:"加载更多"}async function K(t="replace"){const a=s.cloud;if(!a||t==="append"&&w.value)return;const n=++E,o=t==="append"?j.value+1:1;t==="replace"&&L&&(T.value=q,te.clear()),w.value=!0,D.value="",b.value=t==="append";try{const r=await l.fetchArtifactLibrary(a,{page:o,pageSize:l.ARTIFACT_SESSION_PAGE_SIZE,search:_.value.trim()});if(n!==E)return;const d=l.countArtifactSessions(C.value);C.value=t==="append"?l.mergeArtifactGroups(C.value,r):r;const h=l.countArtifactSessions(C.value)-d;j.value=o,t==="replace"&&(F.value={}),N.value=!1;const M=l.countArtifactSessions(r)>=l.ARTIFACT_SESSION_PAGE_SIZE;B.value=M&&(t==="replace"||h>0)}catch(r){if(n!==E)return;const d=r instanceof Error?r.message:"产物加载失败";C.value.length?t==="append"&&(N.value=!0):D.value=d,p(d)}finally{n===E&&(w.value=!1,b.value=!1,fe())}}function Ae(){K("replace")}async function Te(t){const a=s.cloud;if(!a||w.value||g.value.has(t))return;const n=(V.get(t)??0)+1;V.set(t,n);const o=E;f(t,!0);try{let r=F.value[t]??1,d=0;for(;d<5;){d+=1;const h=await l.fetchArtifactPage(a,t,r,l.ARTIFACT_FILE_PAGE_SIZE);if(V.get(t)!==n||E!==o)return;const M=l.appendArtifactPage(C.value,t,h);if(C.value=M.groups,r+=1,F.value={...F.value,[t]:r},M.added>0||!M.hasMore)break}}catch(r){if(V.get(t)!==n)return;p(r instanceof Error?r.message:"产物加载失败")}finally{V.get(t)===n&&f(t,!1)}}const Be=l.buildKindMenuItems(l.ARTIFACT_KIND_OPTIONS),{Menu:Ve}=l.useUiDropdown({items:Be,placement:"bottom-start",width:140,selectedId:v,panelClass:l.KIND_MENU_PANEL_CLASS,onItemClick:({id:t})=>{Se(t)&&(v.value=t)}});function Se(t){return l.ARTIFACT_KIND_OPTIONS.includes(t)}function Ie(t){if(!i.value)return t;const a=m.value==="asc"?1:-1;return[...t].sort((n,o)=>i.value==="name"?n.name.localeCompare(o.name,"zh")*a:(n.updatedAt-o.updatedAt)*a)}const x=e.computed(()=>{const t=s.cloud?"":_.value.trim().toLowerCase();return X().map(a=>{const n=!!t&&a.name.toLowerCase().includes(t),o=a.sessions.map(r=>{const d=!!t&&r.title.toLowerCase().includes(t),h=Ie(r.files.filter(M=>{const Ye=v.value==="全部类型"||M.kind===v.value,Je=!t||M.name.toLowerCase().includes(t);return Ye&&(n||d||Je)}));return{...r,files:h}}).filter(r=>r.files.length>0||r.hasMore===!0);return{...a,taskCount:a.taskCount??a.sessions.length,sessions:o}}).filter(a=>a.sessions.length>0)}),Fe=e.computed(()=>x.value.flatMap(t=>t.sessions.flatMap(a=>a.files.map(n=>l.artifactRowKey(a.id,n.id))))),ee=e.computed(()=>Fe.value.filter(t=>y.value.has(t)).length),te=new Map,L=typeof IntersectionObserver<"u",ae=e.ref(null),le=e.ref(null),T=e.ref(L?q:Number.POSITIVE_INFINITY);let I=null,ie=!1,ne=0;const _e=e.computed(()=>x.value.reduce((t,a)=>t+a.sessions.length,0)),$=e.computed(()=>_e.value>T.value),he=e.computed(()=>{if(!$.value)return x.value;let t=T.value;const a=[];for(const n of x.value){if(t<=0)break;const o=n.sessions.slice(0,t);t-=o.length,a.push({...n,sessions:o})}return a});function ke(){!s.cloud||!L||!B.value||w.value||S.value||_e.value-T.value>qt||K("append")}let oe=1;function xe(){if(oe>0)return oe-=1,!0;const t=ae.value,a=le.value;if(!t||!a)return!1;const n=a.getBoundingClientRect(),o=t.getBoundingClientRect();return n.top<o.bottom&&n.bottom>o.top}function ye(){if(L){if($.value){T.value+=q;return}B.value&&!w.value&&!S.value&&xe()&&K("append")}}function Le(){if($.value){T.value+=q;return}K("append")}const Me=e.computed(()=>!L||N.value),ue=e.computed(()=>$.value||B.value);let de=0;function fe(){!L||ie||(ie=!0,window.requestAnimationFrame(()=>{if(ie=!1,performance.now()<de)return;const t=le.value,a=ae.value;if(!t||!a)return;const n=t.getBoundingClientRect(),o=a.getBoundingClientRect();n.top<o.bottom+240&&n.bottom>o.top-240&&ye()}))}function we(){window.clearTimeout(ne),ne=window.setTimeout(()=>{ne=0,ue.value&&(oe=1,fe())},Ne+40)}function ge(){if(!L)return;I==null||I.disconnect();const t=le.value;t&&(I=new IntersectionObserver(a=>{if(a.some(n=>n.isIntersecting)){if(performance.now()<de){we();return}oe=1,ye(),ke()}},{root:ae.value,rootMargin:"240px 0px"}),I.observe(t))}e.watch([_,v,i,m],()=>{L&&(T.value=q)}),e.watch([$,B,T],()=>{ge(),fe(),ke()},{flush:"post"});const J=e.computed(()=>!!_.value.trim()||v.value!=="全部类型"),Re=e.computed(()=>J.value?"没有匹配的文件":"暂无 AI 产物"),De=e.computed(()=>J.value?"换个关键词或切换到「全部类型」试试,也可以清空筛选查看全部产物":"对话里生成的文件会收在这里,可以再加回任务继续使用"),Pe=e.computed(()=>J.value?"清空筛选":"返回我的文件"),$e=e.computed(()=>!D.value&&(S.value||x.value.length>0)),me=e.computed(()=>x.value.some(t=>t.sessions.some(a=>a.files.some(n=>!!n.owner))));function ze(){if(!J.value){k("back");return}_.value="",v.value="全部类型"}function Ee(t){if(i.value!==t){i.value=t,m.value=t==="name"?"asc":"desc";return}m.value=m.value==="asc"?"desc":"asc"}function Ce(t){return i.value!==t?"idle":m.value==="asc"?"asc":"desc"}function Ue(t){var r;de=performance.now()+Ne;const a=new Set(u.value),n=!a.has(t);n?a.add(t):a.delete(t);const o=n?((r=he.value.find(d=>d.id===t))==null?void 0:r.sessions.length)??0:te.get(t)??0;n?te.set(t,o):te.delete(t),T.value=Math.max(q,T.value+(n?o:-o)),u.value=a,we()}function Oe(t){const a=new Set(y.value);a.has(t)?a.delete(t):a.add(t),y.value=a}const G=e.ref(null),He=e.ref("");function Ke(t,a){He.value=t,G.value=a}function Ge(t){const a=l.normalizeArtifactFileActionId(t);if(!a)return;const n=G.value;if(a==="add-task"){if(s.actionsDisabled===!0)return;n&&pe([l.artifactToResource(n)]);return}const o=l.fileTransferTargetOfAction(a);if(o){if(s.actionsDisabled===!0||!n)return;Q(o,[l.artifactToTransferItem(n)]);return}const r=l.resolveArtifactFileAction(t,{unavailable:!!s.cloud,disabled:s.actionsDisabled===!0});if(r){if(r.kind==="unavailable"){p(r.notice);return}r.kind==="notice"&&p(r.notice)}}function ve(){y.value=new Set}function qe(t){for(const a of X())for(const n of a.sessions){const o=n.files.findIndex(r=>l.artifactRowKey(n.id,r.id)===t);if(o>=0)return{groupId:a.id,session:n,index:o}}}function Ze(t,a){const n=qe(t);if(!n)return;const o=l.normalizeArtifactFileActionId(a);if(!o)return;const r=n.session.files[n.index];if(!r)return;if(o==="add-task"){if(s.actionsDisabled===!0)return;pe([l.artifactToResource(r)]);return}const d=l.fileTransferTargetOfAction(o);if(d){if(s.actionsDisabled===!0)return;Q(d,[l.artifactToTransferItem(r,n.session)]);return}const h=l.resolveArtifactFileAction(a,{unavailable:!!s.cloud,disabled:s.actionsDisabled===!0});if(h){if(h.kind==="unavailable"){p(h.notice);return}h.kind==="notice"&&p(h.notice)}}function pe(t){if(t.length!==0){if(H){H(t);return}k("add-to-task",t),p(l.ARTIFACT_FILE_ACTION_NOTICES["add-task"])}}function We(){return x.value.flatMap(t=>t.sessions.flatMap(a=>a.files.filter(n=>y.value.has(l.artifactRowKey(a.id,n.id))).map(n=>l.artifactToResource(n))))}function je(){if(s.actionsDisabled===!0)return;const t=We();if(t.length!==0){if(!H){if(s.cloud){p(l.ARTIFACT_FILE_ACTIONS_UNAVAILABLE_NOTICE);return}p(`已添加 ${ee.value} 个文件到任务`),ve();return}pe(t),ve()}}return e.watch(_,()=>{s.cloud&&(window.clearTimeout(Y),Y=window.setTimeout(()=>{K("replace")},300))}),e.onMounted(()=>{ge(),s.cloud&&K()}),e.onUnmounted(()=>{I==null||I.disconnect(),I=null,window.clearTimeout(Y),window.clearTimeout(ne)}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["chat-my-files-artifacts",{"has-selection":ee.value>0}])},[e.createElementVNode("div",yt,[e.createElementVNode("header",wt,[e.createElementVNode("button",{class:"chat-my-files-artifacts__back",type:"button",onClick:a[0]||(a[0]=n=>k("back"))},[e.createElementVNode("img",{loading:"eager",decoding:"async",class:"chat-my-files-artifacts__back-glyph",src:e.unref(Qe),alt:""},null,8,gt),a[5]||(a[5]=e.createElementVNode("span",null,"返回我的文件",-1))]),e.createVNode(e.unref(Ve),null,{"item-icon":e.withCtx(({item:n})=>[e.createVNode(l._sfc_main$1,{kind:n.id},null,8,["kind"])]),default:e.withCtx(()=>[e.createElementVNode("button",Et,[e.createElementVNode("span",null,e.toDisplayString(v.value),1),e.createElementVNode("img",{loading:"eager",decoding:"async",class:"chat-my-files-artifacts__filter-glyph",src:e.unref(l.chevronDownIcon),alt:""},null,8,Ct)])]),_:1}),e.createElementVNode("label",bt,[e.createElementVNode("img",{loading:"eager",decoding:"async",class:"chat-my-files-artifacts__search-glyph",src:e.unref(l.searchIcon),alt:""},null,8,Nt),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=n=>_.value=n),type:"search",placeholder:"搜索文件、任务或工作空间",title:"搜索文件、任务或工作空间"},null,512),[[e.vModelText,_.value]])])]),w.value&&!b.value&&!S.value?(e.openBlock(),e.createElementBlock("div",At)):e.createCommentVNode("",!0),e.createElementVNode("div",Tt,[$e.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["chat-my-files-artifacts__head",{"has-owner":me.value}])},[e.createElementVNode("button",{class:"chat-my-files-artifacts__sort chat-my-files-artifacts__sort--name",type:"button",onClick:a[2]||(a[2]=n=>Ee("name"))},[a[7]||(a[7]=e.createTextVNode(" 名称 ",-1)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["chat-my-files-artifacts__sort-glyph",`is-${Ce("name")}`]),viewBox:"0 0 20 20","aria-hidden":"true"},[...a[6]||(a[6]=[e.createElementVNode("path",{class:"up",d:"M10 3.5 13.5 8H6.5Z"},null,-1),e.createElementVNode("path",{class:"down",d:"M10 16.5 6.5 12h7Z"},null,-1)])],2))]),a[10]||(a[10]=e.createElementVNode("span",{class:"chat-my-files-artifacts__col chat-my-files-artifacts__col--kind"},"类型",-1)),me.value?(e.openBlock(),e.createElementBlock("span",Bt,"更新人")):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"chat-my-files-artifacts__sort chat-my-files-artifacts__sort--time",type:"button",onClick:a[3]||(a[3]=n=>Ee("updatedAt"))},[a[9]||(a[9]=e.createTextVNode(" 更新时间 ",-1)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["chat-my-files-artifacts__sort-glyph",`is-${Ce("updatedAt")}`]),viewBox:"0 0 20 20","aria-hidden":"true"},[...a[8]||(a[8]=[e.createElementVNode("path",{class:"up",d:"M10 3.5 13.5 8H6.5Z"},null,-1),e.createElementVNode("path",{class:"down",d:"M10 16.5 6.5 12h7Z"},null,-1)])],2))]),a[11]||(a[11]=e.createElementVNode("span",{class:"chat-my-files-artifacts__col chat-my-files-artifacts__col--size"},"大小",-1)),a[12]||(a[12]=e.createElementVNode("span",{class:"chat-my-files-artifacts__col chat-my-files-artifacts__col--action"},"操作",-1))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"bodyRef",ref:ae,class:"chat-my-files-artifacts__body"},[S.value?(e.openBlock(),e.createElementBlock("div",Vt,[e.createVNode(be,{"group-head":"",blocks:2,rows:3}),a[13]||(a[13]=e.createElementVNode("p",{class:"chat-my-files-artifacts__sr-only",role:"status"},"正在加载 AI 产物",-1))])):D.value?(e.openBlock(),e.createBlock(l.ChatMyFilesState,{key:1,class:"chat-my-files-artifacts__state",tone:"error",variant:"error",title:"产物加载失败",description:D.value,"action-text":"重新加载",onAction:Ae},null,8,["description"])):x.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(l.ChatMyFilesState,{key:2,class:"chat-my-files-artifacts__state",variant:J.value?"search":"files",title:Re.value,description:De.value,"action-text":Pe.value,onAction:ze},null,8,["variant","title","description","action-text"])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(he.value,n=>(e.openBlock(),e.createElementBlock("section",{key:n.id,class:"chat-my-files-artifacts__group"},[e.createElementVNode("button",{class:"chat-my-files-artifacts__group-head",type:"button","aria-expanded":!u.value.has(n.id),onClick:o=>Ue(n.id)},[e.createElementVNode("img",{loading:"lazy",decoding:"async",class:e.normalizeClass(["chat-my-files-artifacts__chevron",{"is-open":!u.value.has(n.id)}]),src:e.unref(l.chevronDownIcon),alt:""},null,10,It),e.createElementVNode("span",Ft,e.toDisplayString(n.name),1),e.createElementVNode("em",xt,e.toDisplayString(n.taskCount)+"个任务",1)],8,St),e.createElementVNode("div",{class:e.normalizeClass(["chat-my-files-artifacts__group-body",{"is-collapsed":u.value.has(n.id)}]),inert:u.value.has(n.id)||void 0},[e.createElementVNode("div",Mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.sessions,(o,r)=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:"chat-my-files-artifacts__task",style:e.normalizeStyle({"--mf-stagger":r})},[e.createElementVNode("div",Rt,[e.createElementVNode("img",{loading:"lazy",decoding:"async",class:"chat-my-files-artifacts__spark",src:e.unref(l.sparkIcon),alt:""},null,8,Dt),e.createElementVNode("span",{title:o.title},e.toDisplayString(o.title),9,Pt)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.files,d=>(e.openBlock(),e.createBlock(ct,{key:e.unref(l.artifactRowKey)(o.id,d.id),file:d,selected:y.value.has(e.unref(l.artifactRowKey)(o.id,d.id)),"show-owner":me.value,"actions-disabled":c.actionsDisabled,onToggle:h=>Oe(e.unref(l.artifactRowKey)(o.id,d.id)),onOpen:h=>Ke(e.unref(l.artifactRowKey)(o.id,d.id),d),onAction:h=>Ze(e.unref(l.artifactRowKey)(o.id,d.id),h)},null,8,["file","selected","show-owner","actions-disabled","onToggle","onOpen","onAction"]))),128)),c.cloud&&o.hasMore?(e.openBlock(),e.createElementBlock("button",{key:0,class:"chat-my-files-artifacts__more",type:"button","data-testid":"artifact-file-more",disabled:g.value.has(o.id),"aria-busy":g.value.has(o.id),onClick:d=>Te(o.id)},e.toDisplayString(g.value.has(o.id)?"加载中":P(o)),9,$t)):e.createCommentVNode("",!0)],4))),128))])],10,Lt)]))),128)),c.cloud&&ue.value&&!S.value?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"sentinelRef",ref:le,class:e.normalizeClass(["chat-my-files-artifacts__sentinel",{"is-loading":b.value}])},[e.createElementVNode("div",zt,[b.value?(e.openBlock(),e.createBlock(be,{key:0,blocks:1,rows:1})):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),e.createElementVNode("p",Ut,e.toDisplayString(b.value?"正在加载更多 AI 产物":""),1),c.cloud&&ue.value&&!S.value&&Me.value?(e.openBlock(),e.createElementBlock("button",{key:4,class:"chat-my-files-artifacts__sessions-more",type:"button","data-testid":"artifact-session-more",disabled:w.value&&!$.value,"aria-busy":b.value,onClick:Le},e.toDisplayString(b.value?"加载中":N.value?"重新加载":$.value?"显示更多任务":"加载更多会话"),9,Ot)):e.createCommentVNode("",!0)],512)]),ee.value?(e.openBlock(),e.createElementBlock("footer",Ht,[e.createElementVNode("span",Kt,"已选 "+e.toDisplayString(ee.value)+" 个文件",1),e.createElementVNode("button",{class:"chat-my-files-artifacts__bar-clear",type:"button",onClick:ve}," 取消选择 "),e.createElementVNode("button",{class:"chat-my-files-artifacts__bar-action",type:"button",onClick:je},[...a[14]||(a[14]=[e.createElementVNode("svg",{viewBox:"0 0 24 24","aria-hidden":"true"},[e.createElementVNode("path",{d:"M12 4v16M4 12h16",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round"})],-1),e.createElementVNode("span",null,"添加到任务",-1)])])])):e.createCommentVNode("",!0),e.unref(z)?(e.openBlock(),e.createElementBlock("p",Gt,e.toDisplayString(e.unref(z)),1)):e.createCommentVNode("",!0),G.value?(e.openBlock(),e.createBlock(mt,{key:G.value.id,file:G.value,cloud:c.cloud,"actions-disabled":c.actionsDisabled,onClose:a[4]||(a[4]=n=>G.value=null),onAction:Ge},null,8,["file","cloud","actions-disabled"])):e.createCommentVNode("",!0),e.createVNode(l.ChatFilePickerDialog,{source:e.unref(Z),open:e.unref(R),mode:"target",title:e.unref(W),hint:e.unref(U),busy:e.unref(O),"onUpdate:open":e.unref(ce),onConfirm:e.unref(re)},null,8,["source","open","title","hint","busy","onUpdate:open","onConfirm"])])],2))}}),Wt=l._export_sfc(Zt,[["__scopeId","data-v-78709f92"]]);exports.default=Wt;
|