@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
|
@@ -0,0 +1,1029 @@
|
|
|
1
|
+
import { defineComponent as be, computed as f, openBlock as o, createElementBlock as d, normalizeClass as U, createElementVNode as s, createVNode as S, withModifiers as Ke, toDisplayString as b, createCommentVNode as C, unref as h, withCtx as se, ref as c, watch as ue, onMounted as st, nextTick as Dt, onBeforeUnmount as Nt, createBlock as P, Teleport as Ht, Transition as Ut, Fragment as de, renderList as fe, normalizeStyle as ce, onUnmounted as Ot, withDirectives as zt, vModelText as Gt, createTextVNode as Ve } from "vue";
|
|
2
|
+
import "@vueuse/core";
|
|
3
|
+
import { c as lt, u as Re, A as nt, a as ot, b as it, d as rt, e as ct, C as Kt, f as Vt, g as ut, _ as Ce, h as ge, i as Zt, j as qt, k as Wt, l as jt, m as Yt, r as Jt, n as Qt, o as Xt, p as ea, q as ta, s as Ze, t as aa, v as sa, w as la, x as na, y as oa, z as ia, K as ra, B as qe, D as V, E as We, F as ca, G as ua, H as je, I as da, J as fa, L as va, M as _a, N as Ye, O as Be, P as ha, Q as ma, R as pa, S as ya, T as Je, U as Qe, V as Xe, W as wa, X as ka, Y as et } from "./index-CBCQPl8n.js";
|
|
4
|
+
const ga = "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", ba = { class: "chat-artifact-row__lead" }, Ca = { class: "chat-artifact-row__name" }, Ta = ["title"], Aa = { class: "chat-artifact-row__meta" }, xa = { class: "chat-artifact-row__cell chat-artifact-row__cell--kind" }, Ia = ["title"], Fa = { class: "chat-artifact-row__cell chat-artifact-row__cell--time" }, Sa = { class: "chat-artifact-row__cell chat-artifact-row__cell--size" }, Ma = /* @__PURE__ */ be({
|
|
5
|
+
name: "ChatArtifactFileRow",
|
|
6
|
+
__name: "ChatArtifactFileRow",
|
|
7
|
+
props: {
|
|
8
|
+
file: {},
|
|
9
|
+
selected: { type: Boolean },
|
|
10
|
+
actionsDisabled: { type: Boolean, default: !1 },
|
|
11
|
+
showOwner: { type: Boolean, default: !1 }
|
|
12
|
+
},
|
|
13
|
+
emits: ["toggle", "open", "action"],
|
|
14
|
+
setup(r, { emit: B }) {
|
|
15
|
+
const n = r, T = B, k = f(() => lt({ disabled: n.actionsDisabled })), { Menu: y } = Re({
|
|
16
|
+
items: k,
|
|
17
|
+
placement: rt,
|
|
18
|
+
width: it,
|
|
19
|
+
panelClass: ot,
|
|
20
|
+
submenuPanelClass: nt,
|
|
21
|
+
onItemClick: ({ id: p }) => {
|
|
22
|
+
if (p.split(":").at(-1) === "download") {
|
|
23
|
+
if (n.actionsDisabled) return;
|
|
24
|
+
n.file.url && ct(n.file.url, n.file.name);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
T("action", p);
|
|
28
|
+
}
|
|
29
|
+
}), u = f(
|
|
30
|
+
() => [n.file.kind, n.file.updatedLabel, n.file.sizeLabel].filter(Boolean).join(" · ")
|
|
31
|
+
);
|
|
32
|
+
return (p, v) => (o(), d("div", {
|
|
33
|
+
class: U(["chat-artifact-row", { "is-selected": r.selected, "has-owner": r.showOwner }]),
|
|
34
|
+
onClick: v[3] || (v[3] = (A) => T("toggle"))
|
|
35
|
+
}, [
|
|
36
|
+
s("span", ba, [
|
|
37
|
+
S(Kt, {
|
|
38
|
+
class: "chat-artifact-row__check",
|
|
39
|
+
checked: r.selected,
|
|
40
|
+
label: r.selected ? "取消选择" : "选择文件",
|
|
41
|
+
onToggle: v[0] || (v[0] = (A) => T("toggle"))
|
|
42
|
+
}, null, 8, ["checked", "label"]),
|
|
43
|
+
S(Vt, {
|
|
44
|
+
ext: r.file.ext,
|
|
45
|
+
name: r.file.name
|
|
46
|
+
}, null, 8, ["ext", "name"])
|
|
47
|
+
]),
|
|
48
|
+
s("span", Ca, [
|
|
49
|
+
s("button", {
|
|
50
|
+
class: "chat-artifact-row__title",
|
|
51
|
+
type: "button",
|
|
52
|
+
title: r.file.name,
|
|
53
|
+
onClick: v[1] || (v[1] = Ke((A) => T("open"), ["stop"]))
|
|
54
|
+
}, b(r.file.name), 9, Ta),
|
|
55
|
+
s("span", Aa, b(u.value), 1)
|
|
56
|
+
]),
|
|
57
|
+
s("span", xa, b(r.file.kind), 1),
|
|
58
|
+
r.showOwner ? (o(), d("span", {
|
|
59
|
+
key: 0,
|
|
60
|
+
class: "chat-artifact-row__cell chat-artifact-row__cell--owner",
|
|
61
|
+
title: r.file.owner || ""
|
|
62
|
+
}, b(r.file.owner || "—"), 9, Ia)) : C("", !0),
|
|
63
|
+
s("span", Fa, b(r.file.updatedLabel), 1),
|
|
64
|
+
s("span", Sa, b(r.file.sizeLabel), 1),
|
|
65
|
+
S(h(y), null, {
|
|
66
|
+
default: se(() => [
|
|
67
|
+
S(ut, {
|
|
68
|
+
class: "chat-artifact-row__more",
|
|
69
|
+
"data-testid": "artifact-row-more",
|
|
70
|
+
loading: "lazy",
|
|
71
|
+
decoding: "async",
|
|
72
|
+
onClick: v[2] || (v[2] = Ke(() => {
|
|
73
|
+
}, ["stop"]))
|
|
74
|
+
})
|
|
75
|
+
]),
|
|
76
|
+
_: 1
|
|
77
|
+
})
|
|
78
|
+
], 2));
|
|
79
|
+
}
|
|
80
|
+
}), La = /* @__PURE__ */ Ce(Ma, [["__scopeId", "data-v-1c38f09e"]]), Ea = ["aria-label"], Pa = { class: "chat-artifact-preview__body" }, Ba = {
|
|
81
|
+
key: 3,
|
|
82
|
+
class: "chat-artifact-preview__empty"
|
|
83
|
+
}, Ra = /* @__PURE__ */ be({
|
|
84
|
+
name: "ChatArtifactPreview",
|
|
85
|
+
__name: "ChatArtifactPreview",
|
|
86
|
+
props: {
|
|
87
|
+
file: {},
|
|
88
|
+
cloud: { default: void 0 },
|
|
89
|
+
actionsDisabled: { type: Boolean, default: !1 },
|
|
90
|
+
onlyofficeProfile: { default: "preview" }
|
|
91
|
+
},
|
|
92
|
+
emits: ["close", "action"],
|
|
93
|
+
setup(r, { emit: B }) {
|
|
94
|
+
const n = r, T = B, k = f(() => lt({ disabled: n.actionsDisabled })), { Menu: y } = Re({
|
|
95
|
+
items: k,
|
|
96
|
+
placement: rt,
|
|
97
|
+
width: it,
|
|
98
|
+
panelClass: ot,
|
|
99
|
+
submenuPanelClass: nt,
|
|
100
|
+
/* 弹框本体 z-index 3000,菜单面板必须盖在它之上。 */
|
|
101
|
+
zIndex: 3100,
|
|
102
|
+
onItemClick: ({ id: m }) => {
|
|
103
|
+
if (m.split(":").at(-1) === "download") {
|
|
104
|
+
D();
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
T("action", m);
|
|
108
|
+
}
|
|
109
|
+
}), u = c(null), p = c(!0);
|
|
110
|
+
let v = 0;
|
|
111
|
+
async function A() {
|
|
112
|
+
const m = ++v;
|
|
113
|
+
if (u.value = null, n.file.url) {
|
|
114
|
+
u.value = { url: n.file.url, previewType: n.file.previewType }, p.value = !1;
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
p.value = !0;
|
|
118
|
+
const W = await aa(n.cloud, n.file);
|
|
119
|
+
m === v && (u.value = W ?? null, p.value = !1);
|
|
120
|
+
}
|
|
121
|
+
const Y = f(() => ge(n.file, u.value ?? void 0)), w = f(() => {
|
|
122
|
+
var m;
|
|
123
|
+
return ((m = u.value) == null ? void 0 : m.url) ?? "";
|
|
124
|
+
}), Te = f(() => Zt(Y.value)), le = f(() => qt(Y.value)), Z = c(""), J = c(0), Q = c(!1);
|
|
125
|
+
let ne;
|
|
126
|
+
function ve(m) {
|
|
127
|
+
Z.value = m.text, J.value = m.lines;
|
|
128
|
+
}
|
|
129
|
+
async function Ae() {
|
|
130
|
+
if (Z.value) {
|
|
131
|
+
try {
|
|
132
|
+
await navigator.clipboard.writeText(Z.value);
|
|
133
|
+
} catch {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
Q.value = !0, clearTimeout(ne), ne = setTimeout(() => {
|
|
137
|
+
Q.value = !1;
|
|
138
|
+
}, 1600);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
const xe = f(
|
|
142
|
+
() => [
|
|
143
|
+
n.file.kind,
|
|
144
|
+
le.value && J.value ? `${J.value} 行` : "",
|
|
145
|
+
n.file.sizeLabel
|
|
146
|
+
].filter(Boolean).join(" · ")
|
|
147
|
+
), X = f(() => Wt(Te.value)), M = f(() => jt(n.file)), x = f(() => !!w.value && !X.value);
|
|
148
|
+
ue(
|
|
149
|
+
() => [n.file.id, n.file.url],
|
|
150
|
+
() => void A()
|
|
151
|
+
);
|
|
152
|
+
const q = c(), L = c();
|
|
153
|
+
let I = null;
|
|
154
|
+
const oe = Yt();
|
|
155
|
+
ue(
|
|
156
|
+
() => n.file.id,
|
|
157
|
+
() => {
|
|
158
|
+
Jt(oe), Z.value = "", J.value = 0, Q.value = !1;
|
|
159
|
+
}
|
|
160
|
+
);
|
|
161
|
+
const $ = c(!1), E = c(!1);
|
|
162
|
+
let O = !1;
|
|
163
|
+
function F() {
|
|
164
|
+
O || (O = !0, $.value = !1);
|
|
165
|
+
}
|
|
166
|
+
function ie() {
|
|
167
|
+
O && T("close");
|
|
168
|
+
}
|
|
169
|
+
function D() {
|
|
170
|
+
var W;
|
|
171
|
+
const m = (W = u.value) == null ? void 0 : W.url;
|
|
172
|
+
m && ct(m, n.file.name);
|
|
173
|
+
}
|
|
174
|
+
function N() {
|
|
175
|
+
E.value = !E.value;
|
|
176
|
+
}
|
|
177
|
+
function _e(m) {
|
|
178
|
+
if (m.key === "Escape") {
|
|
179
|
+
if (E.value) {
|
|
180
|
+
E.value = !1;
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
F();
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return st(() => {
|
|
187
|
+
I = document.activeElement instanceof HTMLElement ? document.activeElement : null, $.value = !0, A(), Dt(() => {
|
|
188
|
+
var m;
|
|
189
|
+
return (m = L.value) == null ? void 0 : m.focusClose();
|
|
190
|
+
});
|
|
191
|
+
}), Nt(() => {
|
|
192
|
+
I == null || I.focus(), I = null, clearTimeout(ne);
|
|
193
|
+
}), (m, W) => (o(), P(Ht, { to: "body" }, [
|
|
194
|
+
S(Ut, {
|
|
195
|
+
name: "cap-drawer",
|
|
196
|
+
onAfterLeave: ie
|
|
197
|
+
}, {
|
|
198
|
+
default: se(() => [
|
|
199
|
+
$.value ? (o(), d("div", {
|
|
200
|
+
key: 0,
|
|
201
|
+
class: U(["chat-artifact-preview", { "is-expanded": E.value }]),
|
|
202
|
+
onKeydown: _e
|
|
203
|
+
}, [
|
|
204
|
+
s("div", {
|
|
205
|
+
class: "chat-artifact-preview__backdrop",
|
|
206
|
+
onClick: F
|
|
207
|
+
}),
|
|
208
|
+
s("section", {
|
|
209
|
+
ref_key: "panelRef",
|
|
210
|
+
ref: q,
|
|
211
|
+
class: "chat-artifact-preview__panel",
|
|
212
|
+
role: "dialog",
|
|
213
|
+
"aria-modal": "true",
|
|
214
|
+
"aria-label": `${r.file.name} 预览`
|
|
215
|
+
}, [
|
|
216
|
+
S(Qt, {
|
|
217
|
+
ref_key: "headerRef",
|
|
218
|
+
ref: L,
|
|
219
|
+
class: "chat-artifact-preview__header",
|
|
220
|
+
name: r.file.name,
|
|
221
|
+
ext: r.file.ext,
|
|
222
|
+
meta: xe.value,
|
|
223
|
+
chrome: h(oe),
|
|
224
|
+
"show-download": !!w.value,
|
|
225
|
+
fullscreen: E.value,
|
|
226
|
+
"show-copy": le.value && !!Z.value,
|
|
227
|
+
copied: Q.value,
|
|
228
|
+
"show-fullscreen": "",
|
|
229
|
+
onDownload: D,
|
|
230
|
+
onCopy: Ae,
|
|
231
|
+
onFullscreen: N,
|
|
232
|
+
onClose: F
|
|
233
|
+
}, {
|
|
234
|
+
actions: se(() => [
|
|
235
|
+
S(h(y), null, {
|
|
236
|
+
default: se(() => [
|
|
237
|
+
S(ut, {
|
|
238
|
+
class: "chat-artifact-preview__more",
|
|
239
|
+
loading: "eager",
|
|
240
|
+
decoding: "async"
|
|
241
|
+
})
|
|
242
|
+
]),
|
|
243
|
+
_: 1
|
|
244
|
+
})
|
|
245
|
+
]),
|
|
246
|
+
_: 1
|
|
247
|
+
}, 8, ["name", "ext", "meta", "chrome", "show-download", "fullscreen", "show-copy", "copied"]),
|
|
248
|
+
s("div", Pa, [
|
|
249
|
+
p.value ? (o(), P(Xt, {
|
|
250
|
+
key: 0,
|
|
251
|
+
label: "正在加载文件"
|
|
252
|
+
})) : x.value && le.value ? (o(), P(ea, {
|
|
253
|
+
key: 1,
|
|
254
|
+
src: w.value,
|
|
255
|
+
onLoaded: ve
|
|
256
|
+
}, null, 8, ["src"])) : x.value ? (o(), P(ta, {
|
|
257
|
+
key: 2,
|
|
258
|
+
class: "chat-artifact-preview__viewer",
|
|
259
|
+
resource: Y.value,
|
|
260
|
+
"onlyoffice-profile": r.onlyofficeProfile,
|
|
261
|
+
"screenshot-ask": !1,
|
|
262
|
+
"hide-close": "",
|
|
263
|
+
"hide-download": "",
|
|
264
|
+
"hide-fullscreen": "",
|
|
265
|
+
"hide-sidebar": "",
|
|
266
|
+
"hide-image-controls": ""
|
|
267
|
+
}, null, 8, ["resource", "onlyoffice-profile"])) : (o(), d("div", Ba, [
|
|
268
|
+
X.value ? (o(), P(Ze, {
|
|
269
|
+
key: 0,
|
|
270
|
+
ext: r.file.ext,
|
|
271
|
+
name: r.file.name,
|
|
272
|
+
description: M.value,
|
|
273
|
+
download: !!w.value,
|
|
274
|
+
"secondary-label": w.value ? void 0 : "返回列表",
|
|
275
|
+
onDownload: D,
|
|
276
|
+
onSecondary: F
|
|
277
|
+
}, null, 8, ["ext", "name", "description", "download", "secondary-label"])) : (o(), P(Ze, {
|
|
278
|
+
key: 1,
|
|
279
|
+
title: "暂时无法预览",
|
|
280
|
+
description: "未能获取该文件的预览地址,可稍后重试,或返回列表用其他方式打开。",
|
|
281
|
+
"secondary-label": "返回列表",
|
|
282
|
+
onSecondary: F
|
|
283
|
+
}))
|
|
284
|
+
]))
|
|
285
|
+
])
|
|
286
|
+
], 8, Ea)
|
|
287
|
+
], 34)) : C("", !0)
|
|
288
|
+
]),
|
|
289
|
+
_: 1
|
|
290
|
+
})
|
|
291
|
+
]));
|
|
292
|
+
}
|
|
293
|
+
}), $a = /* @__PURE__ */ Ce(Ra, [["__scopeId", "data-v-97adc449"]]), Da = {
|
|
294
|
+
class: "art-skeleton",
|
|
295
|
+
"aria-hidden": "true"
|
|
296
|
+
}, Na = {
|
|
297
|
+
key: 0,
|
|
298
|
+
class: "art-skeleton__group"
|
|
299
|
+
}, Ha = { class: "art-skeleton__task" }, Ua = { class: "art-skeleton__name" }, Oa = /* @__PURE__ */ be({
|
|
300
|
+
name: "ChatArtifactsSkeleton",
|
|
301
|
+
__name: "ChatArtifactsSkeleton",
|
|
302
|
+
props: {
|
|
303
|
+
blocks: { default: 2 },
|
|
304
|
+
rows: { default: 2 },
|
|
305
|
+
groupHead: { type: Boolean, default: !1 }
|
|
306
|
+
},
|
|
307
|
+
setup(r) {
|
|
308
|
+
const B = ["42%", "54%", "34%", "48%"], n = ["58%", "44%", "66%", "50%"], T = (y) => B[y % B.length], k = (y) => n[y % n.length];
|
|
309
|
+
return (y, u) => (o(), d("div", Da, [
|
|
310
|
+
r.groupHead ? (o(), d("div", Na, [...u[0] || (u[0] = [
|
|
311
|
+
s("span", { class: "mf-skeleton-row art-skeleton__chevron" }, null, -1),
|
|
312
|
+
s("span", { class: "mf-skeleton-row art-skeleton__group-name" }, null, -1),
|
|
313
|
+
s("span", { class: "mf-skeleton-row art-skeleton__group-count" }, null, -1)
|
|
314
|
+
])])) : C("", !0),
|
|
315
|
+
(o(!0), d(de, null, fe(r.blocks, (p) => (o(), d("div", {
|
|
316
|
+
key: p,
|
|
317
|
+
class: "art-skeleton__block"
|
|
318
|
+
}, [
|
|
319
|
+
s("div", Ha, [
|
|
320
|
+
u[1] || (u[1] = s("span", { class: "mf-skeleton-row art-skeleton__spark" }, null, -1)),
|
|
321
|
+
s("span", {
|
|
322
|
+
class: "mf-skeleton-row art-skeleton__task-name",
|
|
323
|
+
style: ce({ width: B[(p + 1) % B.length] })
|
|
324
|
+
}, null, 4)
|
|
325
|
+
]),
|
|
326
|
+
(o(!0), d(de, null, fe(r.rows, (v) => (o(), d("div", {
|
|
327
|
+
key: v,
|
|
328
|
+
class: "art-skeleton__row"
|
|
329
|
+
}, [
|
|
330
|
+
u[3] || (u[3] = s("span", { class: "art-skeleton__lead" }, [
|
|
331
|
+
s("span", { class: "mf-skeleton-row art-skeleton__icon" })
|
|
332
|
+
], -1)),
|
|
333
|
+
s("span", Ua, [
|
|
334
|
+
s("span", {
|
|
335
|
+
class: "mf-skeleton-row art-skeleton__bar art-skeleton__bar--name",
|
|
336
|
+
style: ce({ width: T(v - 1) })
|
|
337
|
+
}, null, 4),
|
|
338
|
+
u[2] || (u[2] = s("span", { class: "mf-skeleton-row art-skeleton__bar art-skeleton__bar--meta" }, null, -1))
|
|
339
|
+
]),
|
|
340
|
+
s("span", {
|
|
341
|
+
class: "mf-skeleton-row art-skeleton__cell art-skeleton__cell--kind",
|
|
342
|
+
style: ce({ width: k(v) })
|
|
343
|
+
}, null, 4),
|
|
344
|
+
s("span", {
|
|
345
|
+
class: "mf-skeleton-row art-skeleton__cell art-skeleton__cell--time",
|
|
346
|
+
style: ce({ width: k(v + 1) })
|
|
347
|
+
}, null, 4),
|
|
348
|
+
u[4] || (u[4] = s("span", { class: "mf-skeleton-row art-skeleton__cell art-skeleton__cell--size" }, null, -1)),
|
|
349
|
+
u[5] || (u[5] = s("span", { class: "art-skeleton__cell--action" }, null, -1))
|
|
350
|
+
]))), 128))
|
|
351
|
+
]))), 128))
|
|
352
|
+
]));
|
|
353
|
+
}
|
|
354
|
+
}), tt = /* @__PURE__ */ Ce(Oa, [["__scopeId", "data-v-6ca80140"]]), za = { class: "chat-my-files-artifacts__frame" }, Ga = { class: "chat-my-files-artifacts__toolbar" }, Ka = ["src"], Va = {
|
|
355
|
+
class: "chat-my-files-artifacts__filter",
|
|
356
|
+
type: "button"
|
|
357
|
+
}, Za = ["src"], qa = { class: "chat-my-files-artifacts__search" }, Wa = ["src"], ja = {
|
|
358
|
+
key: 0,
|
|
359
|
+
class: "chat-my-files-artifacts__progress",
|
|
360
|
+
role: "status",
|
|
361
|
+
"aria-label": "正在加载 AI 产物"
|
|
362
|
+
}, Ya = { class: "chat-my-files-artifacts__table" }, Ja = {
|
|
363
|
+
key: 0,
|
|
364
|
+
class: "chat-my-files-artifacts__col chat-my-files-artifacts__col--owner"
|
|
365
|
+
}, Qa = {
|
|
366
|
+
key: 0,
|
|
367
|
+
class: "chat-my-files-artifacts__skeleton",
|
|
368
|
+
"data-testid": "artifact-first-load",
|
|
369
|
+
"aria-busy": "true"
|
|
370
|
+
}, Xa = ["aria-expanded", "onClick"], es = ["src"], ts = { class: "chat-my-files-artifacts__group-name" }, as = { class: "chat-my-files-artifacts__group-count" }, ss = ["inert"], ls = { class: "chat-my-files-artifacts__group-clip" }, ns = { class: "chat-my-files-artifacts__task-head" }, os = ["src"], is = ["title"], rs = ["disabled", "aria-busy", "onClick"], cs = { class: "chat-my-files-artifacts__sentinel-sheet" }, us = {
|
|
371
|
+
class: "chat-my-files-artifacts__sr-only",
|
|
372
|
+
role: "status"
|
|
373
|
+
}, ds = ["disabled", "aria-busy"], fs = {
|
|
374
|
+
key: 1,
|
|
375
|
+
class: "chat-my-files-artifacts__bar"
|
|
376
|
+
}, vs = { class: "chat-my-files-artifacts__bar-count" }, _s = {
|
|
377
|
+
key: 2,
|
|
378
|
+
class: "chat-my-files-artifacts__notice",
|
|
379
|
+
role: "status"
|
|
380
|
+
}, ae = 6, hs = 3, at = 400, ms = /* @__PURE__ */ be({
|
|
381
|
+
name: "ChatMyFilesArtifacts",
|
|
382
|
+
__name: "ChatMyFilesArtifacts",
|
|
383
|
+
props: {
|
|
384
|
+
cloud: {},
|
|
385
|
+
actionsDisabled: { type: Boolean }
|
|
386
|
+
},
|
|
387
|
+
emits: ["back", "add-to-task"],
|
|
388
|
+
setup(r, { emit: B }) {
|
|
389
|
+
const n = r, T = B, k = c(""), y = c("全部类型"), u = c("updatedAt"), p = c("desc"), v = c(/* @__PURE__ */ new Set()), A = c(/* @__PURE__ */ new Set()), { notice: Y, flash: w } = sa(), Te = la(), {
|
|
390
|
+
source: le,
|
|
391
|
+
open: Z,
|
|
392
|
+
hint: J,
|
|
393
|
+
busy: Q,
|
|
394
|
+
title: ne,
|
|
395
|
+
request: ve,
|
|
396
|
+
confirm: Ae,
|
|
397
|
+
close: xe
|
|
398
|
+
} = na({
|
|
399
|
+
getCloud: () => n.cloud,
|
|
400
|
+
flash: w,
|
|
401
|
+
sources: () => Te.transferSources.value
|
|
402
|
+
}), X = oa(), M = c([]), x = c(!1), q = c(""), L = c(!1), I = c(/* @__PURE__ */ new Set()), oe = c(1), $ = c(!1), E = c(!1), O = c({});
|
|
403
|
+
let F = 0, ie = 0;
|
|
404
|
+
const D = /* @__PURE__ */ new Map(), N = f(() => x.value && M.value.length === 0);
|
|
405
|
+
function _e() {
|
|
406
|
+
return n.cloud ? M.value : va;
|
|
407
|
+
}
|
|
408
|
+
function m(e, t) {
|
|
409
|
+
const a = new Set(I.value);
|
|
410
|
+
t ? a.add(e) : a.delete(e), I.value = a;
|
|
411
|
+
}
|
|
412
|
+
function W(e) {
|
|
413
|
+
const t = (e.productCount ?? 0) - e.files.length;
|
|
414
|
+
return t > 0 ? `还有 ${t} 个` : "加载更多";
|
|
415
|
+
}
|
|
416
|
+
async function ee(e = "replace") {
|
|
417
|
+
const t = n.cloud;
|
|
418
|
+
if (!t || e === "append" && x.value) return;
|
|
419
|
+
const a = ++F, l = e === "append" ? oe.value + 1 : 1;
|
|
420
|
+
e === "replace" && G && (R.value = ae, me.clear()), x.value = !0, q.value = "", L.value = e === "append";
|
|
421
|
+
try {
|
|
422
|
+
const i = await _a(t, {
|
|
423
|
+
page: l,
|
|
424
|
+
pageSize: Ye,
|
|
425
|
+
search: k.value.trim()
|
|
426
|
+
});
|
|
427
|
+
if (a !== F) return;
|
|
428
|
+
const _ = Be(M.value);
|
|
429
|
+
M.value = e === "append" ? ha(M.value, i) : i;
|
|
430
|
+
const g = Be(M.value) - _;
|
|
431
|
+
oe.value = l, e === "replace" && (O.value = {}), E.value = !1;
|
|
432
|
+
const K = Be(i) >= Ye;
|
|
433
|
+
$.value = K && (e === "replace" || g > 0);
|
|
434
|
+
} catch (i) {
|
|
435
|
+
if (a !== F) return;
|
|
436
|
+
const _ = i instanceof Error ? i.message : "产物加载失败";
|
|
437
|
+
M.value.length ? e === "append" && (E.value = !0) : q.value = _, w(_);
|
|
438
|
+
} finally {
|
|
439
|
+
a === F && (x.value = !1, L.value = !1, Me());
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
function dt() {
|
|
443
|
+
ee("replace");
|
|
444
|
+
}
|
|
445
|
+
async function ft(e) {
|
|
446
|
+
const t = n.cloud;
|
|
447
|
+
if (!t || x.value || I.value.has(e)) return;
|
|
448
|
+
const a = (D.get(e) ?? 0) + 1;
|
|
449
|
+
D.set(e, a);
|
|
450
|
+
const l = F;
|
|
451
|
+
m(e, !0);
|
|
452
|
+
try {
|
|
453
|
+
let i = O.value[e] ?? 1, _ = 0;
|
|
454
|
+
for (; _ < 5; ) {
|
|
455
|
+
_ += 1;
|
|
456
|
+
const g = await ma(t, e, i, pa);
|
|
457
|
+
if (D.get(e) !== a || F !== l) return;
|
|
458
|
+
const K = ya(M.value, e, g);
|
|
459
|
+
if (M.value = K.groups, i += 1, O.value = { ...O.value, [e]: i }, K.added > 0 || !K.hasMore) break;
|
|
460
|
+
}
|
|
461
|
+
} catch (i) {
|
|
462
|
+
if (D.get(e) !== a) return;
|
|
463
|
+
w(i instanceof Error ? i.message : "产物加载失败");
|
|
464
|
+
} finally {
|
|
465
|
+
D.get(e) === a && m(e, !1);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
const vt = ia(qe), { Menu: _t } = Re({
|
|
469
|
+
items: vt,
|
|
470
|
+
placement: "bottom-start",
|
|
471
|
+
width: 140,
|
|
472
|
+
selectedId: y,
|
|
473
|
+
panelClass: ra,
|
|
474
|
+
onItemClick: ({ id: e }) => {
|
|
475
|
+
ht(e) && (y.value = e);
|
|
476
|
+
}
|
|
477
|
+
});
|
|
478
|
+
function ht(e) {
|
|
479
|
+
return qe.includes(e);
|
|
480
|
+
}
|
|
481
|
+
function mt(e) {
|
|
482
|
+
if (!u.value) return e;
|
|
483
|
+
const t = p.value === "asc" ? 1 : -1;
|
|
484
|
+
return [...e].sort((a, l) => u.value === "name" ? a.name.localeCompare(l.name, "zh") * t : (a.updatedAt - l.updatedAt) * t);
|
|
485
|
+
}
|
|
486
|
+
const z = f(() => {
|
|
487
|
+
const e = n.cloud ? "" : k.value.trim().toLowerCase();
|
|
488
|
+
return _e().map((t) => {
|
|
489
|
+
const a = !!e && t.name.toLowerCase().includes(e), l = t.sessions.map((i) => {
|
|
490
|
+
const _ = !!e && i.title.toLowerCase().includes(e), g = mt(
|
|
491
|
+
i.files.filter((K) => {
|
|
492
|
+
const Rt = y.value === "全部类型" || K.kind === y.value, $t = !e || K.name.toLowerCase().includes(e);
|
|
493
|
+
return Rt && (a || _ || $t);
|
|
494
|
+
})
|
|
495
|
+
);
|
|
496
|
+
return { ...i, files: g };
|
|
497
|
+
}).filter((i) => i.files.length > 0 || i.hasMore === !0);
|
|
498
|
+
return {
|
|
499
|
+
...t,
|
|
500
|
+
taskCount: t.taskCount ?? t.sessions.length,
|
|
501
|
+
sessions: l
|
|
502
|
+
};
|
|
503
|
+
}).filter((t) => t.sessions.length > 0);
|
|
504
|
+
}), pt = f(
|
|
505
|
+
() => z.value.flatMap(
|
|
506
|
+
(e) => e.sessions.flatMap((t) => t.files.map((a) => V(t.id, a.id)))
|
|
507
|
+
)
|
|
508
|
+
), he = f(
|
|
509
|
+
() => pt.value.filter((e) => A.value.has(e)).length
|
|
510
|
+
), me = /* @__PURE__ */ new Map(), G = typeof IntersectionObserver < "u", pe = c(null), ye = c(null), R = c(G ? ae : Number.POSITIVE_INFINITY);
|
|
511
|
+
let H = null, Ie = !1, we = 0;
|
|
512
|
+
const $e = f(
|
|
513
|
+
() => z.value.reduce((e, t) => e + t.sessions.length, 0)
|
|
514
|
+
), j = f(() => $e.value > R.value), De = f(() => {
|
|
515
|
+
if (!j.value) return z.value;
|
|
516
|
+
let e = R.value;
|
|
517
|
+
const t = [];
|
|
518
|
+
for (const a of z.value) {
|
|
519
|
+
if (e <= 0) break;
|
|
520
|
+
const l = a.sessions.slice(0, e);
|
|
521
|
+
e -= l.length, t.push({ ...a, sessions: l });
|
|
522
|
+
}
|
|
523
|
+
return t;
|
|
524
|
+
});
|
|
525
|
+
function Ne() {
|
|
526
|
+
!n.cloud || !G || !$.value || x.value || N.value || $e.value - R.value > hs || ee("append");
|
|
527
|
+
}
|
|
528
|
+
let ke = 1;
|
|
529
|
+
function yt() {
|
|
530
|
+
if (ke > 0)
|
|
531
|
+
return ke -= 1, !0;
|
|
532
|
+
const e = pe.value, t = ye.value;
|
|
533
|
+
if (!e || !t) return !1;
|
|
534
|
+
const a = t.getBoundingClientRect(), l = e.getBoundingClientRect();
|
|
535
|
+
return a.top < l.bottom && a.bottom > l.top;
|
|
536
|
+
}
|
|
537
|
+
function He() {
|
|
538
|
+
if (G) {
|
|
539
|
+
if (j.value) {
|
|
540
|
+
R.value += ae;
|
|
541
|
+
return;
|
|
542
|
+
}
|
|
543
|
+
$.value && !x.value && !N.value && yt() && ee("append");
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
function wt() {
|
|
547
|
+
if (j.value) {
|
|
548
|
+
R.value += ae;
|
|
549
|
+
return;
|
|
550
|
+
}
|
|
551
|
+
ee("append");
|
|
552
|
+
}
|
|
553
|
+
const kt = f(() => !G || E.value), Fe = f(() => j.value || $.value);
|
|
554
|
+
let Se = 0;
|
|
555
|
+
function Me() {
|
|
556
|
+
!G || Ie || (Ie = !0, window.requestAnimationFrame(() => {
|
|
557
|
+
if (Ie = !1, performance.now() < Se) return;
|
|
558
|
+
const e = ye.value, t = pe.value;
|
|
559
|
+
if (!e || !t) return;
|
|
560
|
+
const a = e.getBoundingClientRect(), l = t.getBoundingClientRect();
|
|
561
|
+
a.top < l.bottom + 240 && a.bottom > l.top - 240 && He();
|
|
562
|
+
}));
|
|
563
|
+
}
|
|
564
|
+
function Ue() {
|
|
565
|
+
window.clearTimeout(we), we = window.setTimeout(() => {
|
|
566
|
+
we = 0, Fe.value && (ke = 1, Me());
|
|
567
|
+
}, at + 40);
|
|
568
|
+
}
|
|
569
|
+
function Oe() {
|
|
570
|
+
if (!G) return;
|
|
571
|
+
H == null || H.disconnect();
|
|
572
|
+
const e = ye.value;
|
|
573
|
+
e && (H = new IntersectionObserver(
|
|
574
|
+
(t) => {
|
|
575
|
+
if (t.some((a) => a.isIntersecting)) {
|
|
576
|
+
if (performance.now() < Se) {
|
|
577
|
+
Ue();
|
|
578
|
+
return;
|
|
579
|
+
}
|
|
580
|
+
ke = 1, He(), Ne();
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
{ root: pe.value, rootMargin: "240px 0px" }
|
|
584
|
+
), H.observe(e));
|
|
585
|
+
}
|
|
586
|
+
ue([k, y, u, p], () => {
|
|
587
|
+
G && (R.value = ae);
|
|
588
|
+
}), ue(
|
|
589
|
+
[j, $, R],
|
|
590
|
+
() => {
|
|
591
|
+
Oe(), Me(), Ne();
|
|
592
|
+
},
|
|
593
|
+
{ flush: "post" }
|
|
594
|
+
);
|
|
595
|
+
const re = f(() => !!k.value.trim() || y.value !== "全部类型"), gt = f(() => re.value ? "没有匹配的文件" : "暂无 AI 产物"), bt = f(
|
|
596
|
+
() => re.value ? "换个关键词或切换到「全部类型」试试,也可以清空筛选查看全部产物" : "对话里生成的文件会收在这里,可以再加回任务继续使用"
|
|
597
|
+
), Ct = f(() => re.value ? "清空筛选" : "返回我的文件"), Tt = f(
|
|
598
|
+
() => !q.value && (N.value || z.value.length > 0)
|
|
599
|
+
), Le = f(
|
|
600
|
+
() => z.value.some(
|
|
601
|
+
(e) => e.sessions.some((t) => t.files.some((a) => !!a.owner))
|
|
602
|
+
)
|
|
603
|
+
);
|
|
604
|
+
function At() {
|
|
605
|
+
if (!re.value) {
|
|
606
|
+
T("back");
|
|
607
|
+
return;
|
|
608
|
+
}
|
|
609
|
+
k.value = "", y.value = "全部类型";
|
|
610
|
+
}
|
|
611
|
+
function ze(e) {
|
|
612
|
+
if (u.value !== e) {
|
|
613
|
+
u.value = e, p.value = e === "name" ? "asc" : "desc";
|
|
614
|
+
return;
|
|
615
|
+
}
|
|
616
|
+
p.value = p.value === "asc" ? "desc" : "asc";
|
|
617
|
+
}
|
|
618
|
+
function Ge(e) {
|
|
619
|
+
return u.value !== e ? "idle" : p.value === "asc" ? "asc" : "desc";
|
|
620
|
+
}
|
|
621
|
+
function xt(e) {
|
|
622
|
+
var i;
|
|
623
|
+
Se = performance.now() + at;
|
|
624
|
+
const t = new Set(v.value), a = !t.has(e);
|
|
625
|
+
a ? t.add(e) : t.delete(e);
|
|
626
|
+
const l = a ? ((i = De.value.find((_) => _.id === e)) == null ? void 0 : i.sessions.length) ?? 0 : me.get(e) ?? 0;
|
|
627
|
+
a ? me.set(e, l) : me.delete(e), R.value = Math.max(ae, R.value + (a ? l : -l)), v.value = t, Ue();
|
|
628
|
+
}
|
|
629
|
+
function It(e) {
|
|
630
|
+
const t = new Set(A.value);
|
|
631
|
+
t.has(e) ? t.delete(e) : t.add(e), A.value = t;
|
|
632
|
+
}
|
|
633
|
+
const te = c(null), Ft = c("");
|
|
634
|
+
function St(e, t) {
|
|
635
|
+
Ft.value = e, te.value = t;
|
|
636
|
+
}
|
|
637
|
+
function Mt(e) {
|
|
638
|
+
const t = Je(e);
|
|
639
|
+
if (!t) return;
|
|
640
|
+
const a = te.value;
|
|
641
|
+
if (t === "add-task") {
|
|
642
|
+
if (n.actionsDisabled === !0) return;
|
|
643
|
+
a && Pe([ge(a)]);
|
|
644
|
+
return;
|
|
645
|
+
}
|
|
646
|
+
const l = et(t);
|
|
647
|
+
if (l) {
|
|
648
|
+
if (n.actionsDisabled === !0 || !a) return;
|
|
649
|
+
ve(l, [Qe(a)]);
|
|
650
|
+
return;
|
|
651
|
+
}
|
|
652
|
+
const i = Xe(e, {
|
|
653
|
+
unavailable: !!n.cloud,
|
|
654
|
+
disabled: n.actionsDisabled === !0
|
|
655
|
+
});
|
|
656
|
+
if (i) {
|
|
657
|
+
if (i.kind === "unavailable") {
|
|
658
|
+
w(i.notice);
|
|
659
|
+
return;
|
|
660
|
+
}
|
|
661
|
+
i.kind === "notice" && w(i.notice);
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
function Ee() {
|
|
665
|
+
A.value = /* @__PURE__ */ new Set();
|
|
666
|
+
}
|
|
667
|
+
function Lt(e) {
|
|
668
|
+
for (const t of _e())
|
|
669
|
+
for (const a of t.sessions) {
|
|
670
|
+
const l = a.files.findIndex((i) => V(a.id, i.id) === e);
|
|
671
|
+
if (l >= 0) return { groupId: t.id, session: a, index: l };
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
function Et(e, t) {
|
|
675
|
+
const a = Lt(e);
|
|
676
|
+
if (!a) return;
|
|
677
|
+
const l = Je(t);
|
|
678
|
+
if (!l) return;
|
|
679
|
+
const i = a.session.files[a.index];
|
|
680
|
+
if (!i) return;
|
|
681
|
+
if (l === "add-task") {
|
|
682
|
+
if (n.actionsDisabled === !0) return;
|
|
683
|
+
Pe([ge(i)]);
|
|
684
|
+
return;
|
|
685
|
+
}
|
|
686
|
+
const _ = et(l);
|
|
687
|
+
if (_) {
|
|
688
|
+
if (n.actionsDisabled === !0) return;
|
|
689
|
+
ve(_, [Qe(i, a.session)]);
|
|
690
|
+
return;
|
|
691
|
+
}
|
|
692
|
+
const g = Xe(t, {
|
|
693
|
+
unavailable: !!n.cloud,
|
|
694
|
+
disabled: n.actionsDisabled === !0
|
|
695
|
+
});
|
|
696
|
+
if (g) {
|
|
697
|
+
if (g.kind === "unavailable") {
|
|
698
|
+
w(g.notice);
|
|
699
|
+
return;
|
|
700
|
+
}
|
|
701
|
+
g.kind === "notice" && w(g.notice);
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
function Pe(e) {
|
|
705
|
+
if (e.length !== 0) {
|
|
706
|
+
if (X) {
|
|
707
|
+
X(e);
|
|
708
|
+
return;
|
|
709
|
+
}
|
|
710
|
+
T("add-to-task", e), w(wa["add-task"]);
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
function Pt() {
|
|
714
|
+
return z.value.flatMap(
|
|
715
|
+
(e) => e.sessions.flatMap(
|
|
716
|
+
(t) => t.files.filter((a) => A.value.has(V(t.id, a.id))).map((a) => ge(a))
|
|
717
|
+
)
|
|
718
|
+
);
|
|
719
|
+
}
|
|
720
|
+
function Bt() {
|
|
721
|
+
if (n.actionsDisabled === !0) return;
|
|
722
|
+
const e = Pt();
|
|
723
|
+
if (e.length !== 0) {
|
|
724
|
+
if (!X) {
|
|
725
|
+
if (n.cloud) {
|
|
726
|
+
w(ka);
|
|
727
|
+
return;
|
|
728
|
+
}
|
|
729
|
+
w(`已添加 ${he.value} 个文件到任务`), Ee();
|
|
730
|
+
return;
|
|
731
|
+
}
|
|
732
|
+
Pe(e), Ee();
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
return ue(k, () => {
|
|
736
|
+
n.cloud && (window.clearTimeout(ie), ie = window.setTimeout(() => {
|
|
737
|
+
ee("replace");
|
|
738
|
+
}, 300));
|
|
739
|
+
}), st(() => {
|
|
740
|
+
Oe(), n.cloud && ee();
|
|
741
|
+
}), Ot(() => {
|
|
742
|
+
H == null || H.disconnect(), H = null, window.clearTimeout(ie), window.clearTimeout(we);
|
|
743
|
+
}), (e, t) => (o(), d("div", {
|
|
744
|
+
class: U(["chat-my-files-artifacts", { "has-selection": he.value > 0 }])
|
|
745
|
+
}, [
|
|
746
|
+
s("div", za, [
|
|
747
|
+
s("header", Ga, [
|
|
748
|
+
s("button", {
|
|
749
|
+
class: "chat-my-files-artifacts__back",
|
|
750
|
+
type: "button",
|
|
751
|
+
onClick: t[0] || (t[0] = (a) => T("back"))
|
|
752
|
+
}, [
|
|
753
|
+
s("img", {
|
|
754
|
+
loading: "eager",
|
|
755
|
+
decoding: "async",
|
|
756
|
+
class: "chat-my-files-artifacts__back-glyph",
|
|
757
|
+
src: h(ga),
|
|
758
|
+
alt: ""
|
|
759
|
+
}, null, 8, Ka),
|
|
760
|
+
t[5] || (t[5] = s("span", null, "返回我的文件", -1))
|
|
761
|
+
]),
|
|
762
|
+
S(h(_t), null, {
|
|
763
|
+
"item-icon": se(({ item: a }) => [
|
|
764
|
+
S(ca, {
|
|
765
|
+
kind: a.id
|
|
766
|
+
}, null, 8, ["kind"])
|
|
767
|
+
]),
|
|
768
|
+
default: se(() => [
|
|
769
|
+
s("button", Va, [
|
|
770
|
+
s("span", null, b(y.value), 1),
|
|
771
|
+
s("img", {
|
|
772
|
+
loading: "eager",
|
|
773
|
+
decoding: "async",
|
|
774
|
+
class: "chat-my-files-artifacts__filter-glyph",
|
|
775
|
+
src: h(We),
|
|
776
|
+
alt: ""
|
|
777
|
+
}, null, 8, Za)
|
|
778
|
+
])
|
|
779
|
+
]),
|
|
780
|
+
_: 1
|
|
781
|
+
}),
|
|
782
|
+
s("label", qa, [
|
|
783
|
+
s("img", {
|
|
784
|
+
loading: "eager",
|
|
785
|
+
decoding: "async",
|
|
786
|
+
class: "chat-my-files-artifacts__search-glyph",
|
|
787
|
+
src: h(ua),
|
|
788
|
+
alt: ""
|
|
789
|
+
}, null, 8, Wa),
|
|
790
|
+
zt(s("input", {
|
|
791
|
+
"onUpdate:modelValue": t[1] || (t[1] = (a) => k.value = a),
|
|
792
|
+
type: "search",
|
|
793
|
+
placeholder: "搜索文件、任务或工作空间",
|
|
794
|
+
title: "搜索文件、任务或工作空间"
|
|
795
|
+
}, null, 512), [
|
|
796
|
+
[Gt, k.value]
|
|
797
|
+
])
|
|
798
|
+
])
|
|
799
|
+
]),
|
|
800
|
+
x.value && !L.value && !N.value ? (o(), d("div", ja)) : C("", !0),
|
|
801
|
+
s("div", Ya, [
|
|
802
|
+
Tt.value ? (o(), d("div", {
|
|
803
|
+
key: 0,
|
|
804
|
+
class: U(["chat-my-files-artifacts__head", { "has-owner": Le.value }])
|
|
805
|
+
}, [
|
|
806
|
+
s("button", {
|
|
807
|
+
class: "chat-my-files-artifacts__sort chat-my-files-artifacts__sort--name",
|
|
808
|
+
type: "button",
|
|
809
|
+
onClick: t[2] || (t[2] = (a) => ze("name"))
|
|
810
|
+
}, [
|
|
811
|
+
t[7] || (t[7] = Ve(" 名称 ", -1)),
|
|
812
|
+
(o(), d("svg", {
|
|
813
|
+
class: U(["chat-my-files-artifacts__sort-glyph", `is-${Ge("name")}`]),
|
|
814
|
+
viewBox: "0 0 20 20",
|
|
815
|
+
"aria-hidden": "true"
|
|
816
|
+
}, [...t[6] || (t[6] = [
|
|
817
|
+
s("path", {
|
|
818
|
+
class: "up",
|
|
819
|
+
d: "M10 3.5 13.5 8H6.5Z"
|
|
820
|
+
}, null, -1),
|
|
821
|
+
s("path", {
|
|
822
|
+
class: "down",
|
|
823
|
+
d: "M10 16.5 6.5 12h7Z"
|
|
824
|
+
}, null, -1)
|
|
825
|
+
])], 2))
|
|
826
|
+
]),
|
|
827
|
+
t[10] || (t[10] = s("span", { class: "chat-my-files-artifacts__col chat-my-files-artifacts__col--kind" }, "类型", -1)),
|
|
828
|
+
Le.value ? (o(), d("span", Ja, "更新人")) : C("", !0),
|
|
829
|
+
s("button", {
|
|
830
|
+
class: "chat-my-files-artifacts__sort chat-my-files-artifacts__sort--time",
|
|
831
|
+
type: "button",
|
|
832
|
+
onClick: t[3] || (t[3] = (a) => ze("updatedAt"))
|
|
833
|
+
}, [
|
|
834
|
+
t[9] || (t[9] = Ve(" 更新时间 ", -1)),
|
|
835
|
+
(o(), d("svg", {
|
|
836
|
+
class: U(["chat-my-files-artifacts__sort-glyph", `is-${Ge("updatedAt")}`]),
|
|
837
|
+
viewBox: "0 0 20 20",
|
|
838
|
+
"aria-hidden": "true"
|
|
839
|
+
}, [...t[8] || (t[8] = [
|
|
840
|
+
s("path", {
|
|
841
|
+
class: "up",
|
|
842
|
+
d: "M10 3.5 13.5 8H6.5Z"
|
|
843
|
+
}, null, -1),
|
|
844
|
+
s("path", {
|
|
845
|
+
class: "down",
|
|
846
|
+
d: "M10 16.5 6.5 12h7Z"
|
|
847
|
+
}, null, -1)
|
|
848
|
+
])], 2))
|
|
849
|
+
]),
|
|
850
|
+
t[11] || (t[11] = s("span", { class: "chat-my-files-artifacts__col chat-my-files-artifacts__col--size" }, "大小", -1)),
|
|
851
|
+
t[12] || (t[12] = s("span", { class: "chat-my-files-artifacts__col chat-my-files-artifacts__col--action" }, "操作", -1))
|
|
852
|
+
], 2)) : C("", !0),
|
|
853
|
+
s("div", {
|
|
854
|
+
ref_key: "bodyRef",
|
|
855
|
+
ref: pe,
|
|
856
|
+
class: "chat-my-files-artifacts__body"
|
|
857
|
+
}, [
|
|
858
|
+
N.value ? (o(), d("div", Qa, [
|
|
859
|
+
S(tt, {
|
|
860
|
+
"group-head": "",
|
|
861
|
+
blocks: 2,
|
|
862
|
+
rows: 3
|
|
863
|
+
}),
|
|
864
|
+
t[13] || (t[13] = s("p", {
|
|
865
|
+
class: "chat-my-files-artifacts__sr-only",
|
|
866
|
+
role: "status"
|
|
867
|
+
}, "正在加载 AI 产物", -1))
|
|
868
|
+
])) : q.value ? (o(), P(je, {
|
|
869
|
+
key: 1,
|
|
870
|
+
class: "chat-my-files-artifacts__state",
|
|
871
|
+
tone: "error",
|
|
872
|
+
variant: "error",
|
|
873
|
+
title: "产物加载失败",
|
|
874
|
+
description: q.value,
|
|
875
|
+
"action-text": "重新加载",
|
|
876
|
+
onAction: dt
|
|
877
|
+
}, null, 8, ["description"])) : z.value.length ? C("", !0) : (o(), P(je, {
|
|
878
|
+
key: 2,
|
|
879
|
+
class: "chat-my-files-artifacts__state",
|
|
880
|
+
variant: re.value ? "search" : "files",
|
|
881
|
+
title: gt.value,
|
|
882
|
+
description: bt.value,
|
|
883
|
+
"action-text": Ct.value,
|
|
884
|
+
onAction: At
|
|
885
|
+
}, null, 8, ["variant", "title", "description", "action-text"])),
|
|
886
|
+
(o(!0), d(de, null, fe(De.value, (a) => (o(), d("section", {
|
|
887
|
+
key: a.id,
|
|
888
|
+
class: "chat-my-files-artifacts__group"
|
|
889
|
+
}, [
|
|
890
|
+
s("button", {
|
|
891
|
+
class: "chat-my-files-artifacts__group-head",
|
|
892
|
+
type: "button",
|
|
893
|
+
"aria-expanded": !v.value.has(a.id),
|
|
894
|
+
onClick: (l) => xt(a.id)
|
|
895
|
+
}, [
|
|
896
|
+
s("img", {
|
|
897
|
+
loading: "lazy",
|
|
898
|
+
decoding: "async",
|
|
899
|
+
class: U(["chat-my-files-artifacts__chevron", { "is-open": !v.value.has(a.id) }]),
|
|
900
|
+
src: h(We),
|
|
901
|
+
alt: ""
|
|
902
|
+
}, null, 10, es),
|
|
903
|
+
s("span", ts, b(a.name), 1),
|
|
904
|
+
s("em", as, b(a.taskCount) + "个任务", 1)
|
|
905
|
+
], 8, Xa),
|
|
906
|
+
s("div", {
|
|
907
|
+
class: U(["chat-my-files-artifacts__group-body", { "is-collapsed": v.value.has(a.id) }]),
|
|
908
|
+
inert: v.value.has(a.id) || void 0
|
|
909
|
+
}, [
|
|
910
|
+
s("div", ls, [
|
|
911
|
+
(o(!0), d(de, null, fe(a.sessions, (l, i) => (o(), d("div", {
|
|
912
|
+
key: l.id,
|
|
913
|
+
class: "chat-my-files-artifacts__task",
|
|
914
|
+
style: ce({ "--mf-stagger": i })
|
|
915
|
+
}, [
|
|
916
|
+
s("div", ns, [
|
|
917
|
+
s("img", {
|
|
918
|
+
loading: "lazy",
|
|
919
|
+
decoding: "async",
|
|
920
|
+
class: "chat-my-files-artifacts__spark",
|
|
921
|
+
src: h(da),
|
|
922
|
+
alt: ""
|
|
923
|
+
}, null, 8, os),
|
|
924
|
+
s("span", {
|
|
925
|
+
title: l.title
|
|
926
|
+
}, b(l.title), 9, is)
|
|
927
|
+
]),
|
|
928
|
+
(o(!0), d(de, null, fe(l.files, (_) => (o(), P(La, {
|
|
929
|
+
key: h(V)(l.id, _.id),
|
|
930
|
+
file: _,
|
|
931
|
+
selected: A.value.has(h(V)(l.id, _.id)),
|
|
932
|
+
"show-owner": Le.value,
|
|
933
|
+
"actions-disabled": r.actionsDisabled,
|
|
934
|
+
onToggle: (g) => It(h(V)(l.id, _.id)),
|
|
935
|
+
onOpen: (g) => St(h(V)(l.id, _.id), _),
|
|
936
|
+
onAction: (g) => Et(h(V)(l.id, _.id), g)
|
|
937
|
+
}, null, 8, ["file", "selected", "show-owner", "actions-disabled", "onToggle", "onOpen", "onAction"]))), 128)),
|
|
938
|
+
r.cloud && l.hasMore ? (o(), d("button", {
|
|
939
|
+
key: 0,
|
|
940
|
+
class: "chat-my-files-artifacts__more",
|
|
941
|
+
type: "button",
|
|
942
|
+
"data-testid": "artifact-file-more",
|
|
943
|
+
disabled: I.value.has(l.id),
|
|
944
|
+
"aria-busy": I.value.has(l.id),
|
|
945
|
+
onClick: (_) => ft(l.id)
|
|
946
|
+
}, b(I.value.has(l.id) ? "加载中" : W(l)), 9, rs)) : C("", !0)
|
|
947
|
+
], 4))), 128))
|
|
948
|
+
])
|
|
949
|
+
], 10, ss)
|
|
950
|
+
]))), 128)),
|
|
951
|
+
r.cloud && Fe.value && !N.value ? (o(), d("div", {
|
|
952
|
+
key: 3,
|
|
953
|
+
ref_key: "sentinelRef",
|
|
954
|
+
ref: ye,
|
|
955
|
+
class: U(["chat-my-files-artifacts__sentinel", { "is-loading": L.value }])
|
|
956
|
+
}, [
|
|
957
|
+
s("div", cs, [
|
|
958
|
+
L.value ? (o(), P(tt, {
|
|
959
|
+
key: 0,
|
|
960
|
+
blocks: 1,
|
|
961
|
+
rows: 1
|
|
962
|
+
})) : C("", !0)
|
|
963
|
+
])
|
|
964
|
+
], 2)) : C("", !0),
|
|
965
|
+
s("p", us, b(L.value ? "正在加载更多 AI 产物" : ""), 1),
|
|
966
|
+
r.cloud && Fe.value && !N.value && kt.value ? (o(), d("button", {
|
|
967
|
+
key: 4,
|
|
968
|
+
class: "chat-my-files-artifacts__sessions-more",
|
|
969
|
+
type: "button",
|
|
970
|
+
"data-testid": "artifact-session-more",
|
|
971
|
+
disabled: x.value && !j.value,
|
|
972
|
+
"aria-busy": L.value,
|
|
973
|
+
onClick: wt
|
|
974
|
+
}, b(L.value ? "加载中" : E.value ? "重新加载" : j.value ? "显示更多任务" : "加载更多会话"), 9, ds)) : C("", !0)
|
|
975
|
+
], 512)
|
|
976
|
+
]),
|
|
977
|
+
he.value ? (o(), d("footer", fs, [
|
|
978
|
+
s("span", vs, "已选 " + b(he.value) + " 个文件", 1),
|
|
979
|
+
s("button", {
|
|
980
|
+
class: "chat-my-files-artifacts__bar-clear",
|
|
981
|
+
type: "button",
|
|
982
|
+
onClick: Ee
|
|
983
|
+
}, " 取消选择 "),
|
|
984
|
+
s("button", {
|
|
985
|
+
class: "chat-my-files-artifacts__bar-action",
|
|
986
|
+
type: "button",
|
|
987
|
+
onClick: Bt
|
|
988
|
+
}, [...t[14] || (t[14] = [
|
|
989
|
+
s("svg", {
|
|
990
|
+
viewBox: "0 0 24 24",
|
|
991
|
+
"aria-hidden": "true"
|
|
992
|
+
}, [
|
|
993
|
+
s("path", {
|
|
994
|
+
d: "M12 4v16M4 12h16",
|
|
995
|
+
fill: "none",
|
|
996
|
+
stroke: "currentColor",
|
|
997
|
+
"stroke-width": "1.8",
|
|
998
|
+
"stroke-linecap": "round"
|
|
999
|
+
})
|
|
1000
|
+
], -1),
|
|
1001
|
+
s("span", null, "添加到任务", -1)
|
|
1002
|
+
])])
|
|
1003
|
+
])) : C("", !0),
|
|
1004
|
+
h(Y) ? (o(), d("p", _s, b(h(Y)), 1)) : C("", !0),
|
|
1005
|
+
te.value ? (o(), P($a, {
|
|
1006
|
+
key: te.value.id,
|
|
1007
|
+
file: te.value,
|
|
1008
|
+
cloud: r.cloud,
|
|
1009
|
+
"actions-disabled": r.actionsDisabled,
|
|
1010
|
+
onClose: t[4] || (t[4] = (a) => te.value = null),
|
|
1011
|
+
onAction: Mt
|
|
1012
|
+
}, null, 8, ["file", "cloud", "actions-disabled"])) : C("", !0),
|
|
1013
|
+
S(fa, {
|
|
1014
|
+
source: h(le),
|
|
1015
|
+
open: h(Z),
|
|
1016
|
+
mode: "target",
|
|
1017
|
+
title: h(ne),
|
|
1018
|
+
hint: h(J),
|
|
1019
|
+
busy: h(Q),
|
|
1020
|
+
"onUpdate:open": h(xe),
|
|
1021
|
+
onConfirm: h(Ae)
|
|
1022
|
+
}, null, 8, ["source", "open", "title", "hint", "busy", "onUpdate:open", "onConfirm"])
|
|
1023
|
+
])
|
|
1024
|
+
], 2));
|
|
1025
|
+
}
|
|
1026
|
+
}), ks = /* @__PURE__ */ Ce(ms, [["__scopeId", "data-v-78709f92"]]);
|
|
1027
|
+
export {
|
|
1028
|
+
ks as default
|
|
1029
|
+
};
|