@deep-eye/core 1.3.82 → 1.3.84
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 +66 -0
- package/README.md +1 -1
- package/dist/{ChartRenderer-CdMqq77C.js → ChartRenderer-BFYHRt_Q.js} +1 -1
- package/dist/{ChartRenderer-D5Z9667V.cjs → ChartRenderer-NUULTbe7.cjs} +1 -1
- package/dist/ChatMyFilesArtifacts-BxZqqm8I.cjs +1 -0
- package/dist/ChatMyFilesArtifacts-Qkim1200.js +1030 -0
- package/dist/chat-token.css +209 -7
- package/dist/components/chat/ChatApp.vue.d.ts +41 -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 +49 -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/files/ChatMyFilesPrompt.vue.d.ts +37 -0
- 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 +21 -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 +141 -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 +26 -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/myFilesToast.d.ts +31 -0
- package/dist/components/chat/components/files/myFilesToast.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesTransferQueue.d.ts +76 -0
- package/dist/components/chat/components/files/myFilesTransferQueue.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 +60 -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/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/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 +93 -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-BB0Qv1nC.js → docx-preview-CgF7upUL.js} +1 -1
- package/dist/{docx-preview-WRcIosJk.cjs → docx-preview-Dom9DuwY.cjs} +1 -1
- package/dist/{index-CWLfFu3e.cjs → index-Ctl5i7Ad.cjs} +1 -1
- package/dist/{index-BGQvGRIY.js → index-CxF54XmE.js} +1 -1
- package/dist/{index-BrxlMnow.js → index-DaiEgT_d.js} +63651 -53759
- package/dist/index-DuVaE24T.cjs +1410 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +599 -463
- package/dist/{papaparse.min-B0ulAjn8.js → papaparse.min-CpVgW58v.js} +1 -1
- package/dist/{papaparse.min-C3FYhYXB.cjs → papaparse.min-Dkpv4aky.cjs} +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 +0 -20
- 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-BBiUUsrN.cjs +0 -1248
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import type { ChatFolderRef, ChatResourceFile } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* 「+ → 添加文件」子菜单的三个来源。
|
|
4
|
+
*
|
|
5
|
+
* - `local`:本地文件,走原来的系统文件选择框(上传前的既有行为)。
|
|
6
|
+
* - `myFiles`:我的文件,弹框选文件 / 文件夹。
|
|
7
|
+
* - `knowledge`:知识库,弹框选文件。
|
|
8
|
+
*
|
|
9
|
+
* 「本地文件」不进弹框:它没有「库」可列,直接复用输入框那套本地选择行为。
|
|
10
|
+
*/
|
|
11
|
+
export type ChatFileSourceId = 'local' | 'myFiles' | 'knowledge';
|
|
12
|
+
/** 需要弹框的库来源(`local` 除外)。 */
|
|
13
|
+
export type ChatFileLibrarySourceId = Exclude<ChatFileSourceId, 'local'>;
|
|
14
|
+
/**
|
|
15
|
+
* 弹框可承载的来源 id。
|
|
16
|
+
*
|
|
17
|
+
* 比菜单来源多一个 `teaching`(备课中心):它只在「上传到」里作为**落点**出现,
|
|
18
|
+
* 不是「添加文件」的一个来源,所以不进 `CHAT_FILE_SOURCE_MENU_IDS`。
|
|
19
|
+
*/
|
|
20
|
+
export type ChatFilePickerSourceId = ChatFileLibrarySourceId | 'teaching';
|
|
21
|
+
/**
|
|
22
|
+
* 子菜单项 id。
|
|
23
|
+
*
|
|
24
|
+
* 用 `upload/<来源>` 而不是裸来源名:菜单 id 会被拼进 `UiMenu` 的 path
|
|
25
|
+
* (`knowledge/type-2` 那种三级 path),带前缀才不会和别的内置项撞名。
|
|
26
|
+
*/
|
|
27
|
+
export declare const CHAT_FILE_SOURCE_MENU_IDS: Record<ChatFileSourceId, string>;
|
|
28
|
+
/** 子菜单文案。 */
|
|
29
|
+
export declare const CHAT_FILE_SOURCE_LABELS: Record<ChatFileSourceId, string>;
|
|
30
|
+
/** 弹框标题。 */
|
|
31
|
+
export declare const CHAT_FILE_SOURCE_TITLES: Record<ChatFileSourceId, string>;
|
|
32
|
+
/**
|
|
33
|
+
* 弹框里的一条记录:文件或文件夹。
|
|
34
|
+
*
|
|
35
|
+
* 故意做得很薄:宿主给什么字段就显示什么。可选性由下面两件事决定:
|
|
36
|
+
* - 文件:必须有 `url`(`resource_files` 需要可取回的地址);
|
|
37
|
+
* - 文件夹:必须有 `id`,且来源声明了 `allowFolderSelection`(只有「我的文件」
|
|
38
|
+
* 这类能按 id 交给后端展开的库才允许选文件夹)。
|
|
39
|
+
*/
|
|
40
|
+
export interface ChatFilePickerEntry {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
/** 文件地址;没有地址的文件在弹框里不可选。 */
|
|
44
|
+
url?: string;
|
|
45
|
+
/** 扩展名(不含点,小写)。缺省按文件名推断。 */
|
|
46
|
+
ext?: string;
|
|
47
|
+
/** 字节数。 */
|
|
48
|
+
size?: number;
|
|
49
|
+
/** 所有者(列表第二列)。 */
|
|
50
|
+
owner?: string;
|
|
51
|
+
/** 位置(所在目录 / 空间)。列表里单独一列,搜到的文件也能看出在哪。 */
|
|
52
|
+
location?: string;
|
|
53
|
+
/** 最后更新时间。 */
|
|
54
|
+
updatedAt?: string;
|
|
55
|
+
/**
|
|
56
|
+
* 最近访问时间。
|
|
57
|
+
*
|
|
58
|
+
* 后端在 `fileDetail` 里刷这个值(A5);列表的「最近访问」列优先用它,
|
|
59
|
+
* 没有时回退 `updatedAt` —— 老数据 / 从未打开过的文件就是后者。
|
|
60
|
+
*/
|
|
61
|
+
accessedAt?: string;
|
|
62
|
+
/**
|
|
63
|
+
* 行类型,缺省 `file`。
|
|
64
|
+
*
|
|
65
|
+
* `folder`:可展开、可在来源允许时勾选;`library`(知识库这类「整库」条目)
|
|
66
|
+
* 走另一套两步弹框(先选库、再选文件),由 `ChatFilePickerLibrary` 承载。
|
|
67
|
+
*/
|
|
68
|
+
kind?: 'file' | 'folder';
|
|
69
|
+
/** 子节点(目录树)。不传就是一层平铺列表。 */
|
|
70
|
+
children?: readonly ChatFilePickerEntry[];
|
|
71
|
+
}
|
|
72
|
+
/** 「整库」条目:知识库这类可以整库勾选的单位。 */
|
|
73
|
+
export interface ChatFilePickerLibrary {
|
|
74
|
+
id: string;
|
|
75
|
+
name: string;
|
|
76
|
+
/** 分组标题(个人知识库 / 共享知识库 / 我加入的…)。缺省归到「全部」。 */
|
|
77
|
+
group?: string;
|
|
78
|
+
}
|
|
79
|
+
/** 弹框顶部可切换的分组(如知识库列表)。 */
|
|
80
|
+
export interface ChatFilePickerTab {
|
|
81
|
+
key: string;
|
|
82
|
+
label: string;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* 文件列表加载器。
|
|
86
|
+
*
|
|
87
|
+
* 宿主实现:返回该库在当前关键词 / 当前分组下的文件树。组件库不知道各家的库接口,
|
|
88
|
+
* 只约定形状;失败时抛错即可,弹框会展示错误并允许重试。
|
|
89
|
+
*/
|
|
90
|
+
export type ChatFilePickerLoader = (query: {
|
|
91
|
+
keyword?: string;
|
|
92
|
+
/** 当前选中的分组 key(来自 `source.tabs`);未声明页签时为 undefined。 */
|
|
93
|
+
tab?: string;
|
|
94
|
+
signal?: AbortSignal;
|
|
95
|
+
}) => Promise<readonly ChatFilePickerEntry[]>;
|
|
96
|
+
/** 「整库」列表加载器(知识库这类先选库的来源用)。 */
|
|
97
|
+
export type ChatFilePickerLibraryLoader = (query: {
|
|
98
|
+
keyword?: string;
|
|
99
|
+
signal?: AbortSignal;
|
|
100
|
+
}) => Promise<readonly ChatFilePickerLibrary[]>;
|
|
101
|
+
/** 某个库里的文件加载器。 */
|
|
102
|
+
export type ChatFilePickerLibraryFilesLoader = (query: {
|
|
103
|
+
libraryId: string;
|
|
104
|
+
keyword?: string;
|
|
105
|
+
signal?: AbortSignal;
|
|
106
|
+
}) => Promise<readonly ChatFilePickerEntry[]>;
|
|
107
|
+
interface ChatFilePickerSourceBase {
|
|
108
|
+
/** 来源 id;决定菜单文案与默认标题。 */
|
|
109
|
+
id: ChatFilePickerSourceId;
|
|
110
|
+
/** 覆盖菜单文案(默认「我的文件」/「知识库」)。 */
|
|
111
|
+
label?: string;
|
|
112
|
+
/** 覆盖弹框标题(默认「从我的文件中选择」/「从知识库中选择」)。 */
|
|
113
|
+
title?: string;
|
|
114
|
+
/** 空列表文案。 */
|
|
115
|
+
emptyText?: string;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* 目录树来源(我的文件):一次给一棵树,弹框展开 + 勾选文件/文件夹。
|
|
119
|
+
*/
|
|
120
|
+
export interface ChatFileTreePickerSource extends ChatFilePickerSourceBase {
|
|
121
|
+
/** 布局,缺省 `tree`。 */
|
|
122
|
+
layout?: 'tree';
|
|
123
|
+
/**
|
|
124
|
+
* 是否允许勾选文件夹。
|
|
125
|
+
*
|
|
126
|
+
* 默认 false:文件夹挂到输入框时只带 id 交给后端展开(`my_files_chat.folder_ids`),
|
|
127
|
+
* 只有「我的文件」这种后端认这个 id 的库才该打开;知识库的目录 id 后端不认,
|
|
128
|
+
* 打开只会把错误 id 送给后端。
|
|
129
|
+
*/
|
|
130
|
+
allowFolderSelection?: boolean;
|
|
131
|
+
/** 顶部可切换的分组;传函数表示需要先取一次(如知识库清单)。 */
|
|
132
|
+
tabs?: readonly ChatFilePickerTab[] | (() => Promise<readonly ChatFilePickerTab[]>);
|
|
133
|
+
/**
|
|
134
|
+
* 按页签给不同的空态文案(如「最近」页签是「最近还没有访问过文件」)。
|
|
135
|
+
*
|
|
136
|
+
* 不传就统一用 `emptyText` —— 同一句「这里还没有文件」放在「最近」页签里
|
|
137
|
+
* 会让人以为是资料库空了。
|
|
138
|
+
*/
|
|
139
|
+
emptyTextByTab?: Record<string, string>;
|
|
140
|
+
/** 加载文件树。 */
|
|
141
|
+
load: ChatFilePickerLoader;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* 两步式来源(知识库):先选库、再选文件。
|
|
145
|
+
*
|
|
146
|
+
* 对齐设计稿:弹框顶部两个页签「选择知识库 / 选择文件」。
|
|
147
|
+
* 「选择知识库」里按分组勾选整库(确认后按知识库选区进对话),
|
|
148
|
+
* 「选择文件」里左侧选库、右侧勾选该库的文件(确认后按文件挂附件)。
|
|
149
|
+
*/
|
|
150
|
+
export interface ChatFileLibraryPickerSource extends ChatFilePickerSourceBase {
|
|
151
|
+
layout: 'library';
|
|
152
|
+
/** 拉库列表(带分组)。 */
|
|
153
|
+
loadLibraries: ChatFilePickerLibraryLoader;
|
|
154
|
+
/** 拉某个库里的文件。 */
|
|
155
|
+
loadFiles: ChatFilePickerLibraryFilesLoader;
|
|
156
|
+
/** 空文件列表文案。 */
|
|
157
|
+
emptyFilesText?: string;
|
|
158
|
+
}
|
|
159
|
+
/** 一个库来源(我的文件 / 知识库)。 */
|
|
160
|
+
export type ChatFilePickerSource = ChatFileTreePickerSource | ChatFileLibraryPickerSource;
|
|
161
|
+
/** 宿主可接入的库来源集合。 */
|
|
162
|
+
export type ChatFilePickerSources = Partial<Record<ChatFileLibrarySourceId, ChatFilePickerSource>>;
|
|
163
|
+
/**
|
|
164
|
+
* 「上传到」的落点数据源集合。
|
|
165
|
+
*
|
|
166
|
+
* 与 `ChatFilePickerSources` 的区别:这边描述的是**能传到哪里**,
|
|
167
|
+
* 而不是「能从哪选文件」。三个落点各自独立、都可以不配:
|
|
168
|
+
* - `myFiles`:不配用组件库自带的我的资料目录树;
|
|
169
|
+
* - `knowledge`:不配回退技能侧的 `findSimpleKnowledgeBaseList`;
|
|
170
|
+
* - `teaching`(备课中心):**必须宿主提供** —— 教材目录在 basic-agent-web 侧,
|
|
171
|
+
* 组件库不猜接口;不配时「上传到备课中心」保持不可用并给出明确说明。
|
|
172
|
+
*
|
|
173
|
+
* 三个落点都复用同一个选择弹框(`ChatFilePickerDialog` 的 `target` 模式),
|
|
174
|
+
* 差别只在 `layout` 与 loader。
|
|
175
|
+
*/
|
|
176
|
+
export interface ChatFileTransferSources {
|
|
177
|
+
myFiles?: ChatFilePickerSource;
|
|
178
|
+
knowledge?: ChatFilePickerSource;
|
|
179
|
+
teaching?: ChatFilePickerSource;
|
|
180
|
+
}
|
|
181
|
+
/** 去重键:有地址用地址,文件夹 / 无地址条目退回 id(同一份文件只挂一次)。 */
|
|
182
|
+
export declare function chatFilePickerEntryKey(entry: ChatFilePickerEntry): string;
|
|
183
|
+
/** 菜单项 id → 来源 id;不是「添加文件」子项时返回 undefined。 */
|
|
184
|
+
export declare function parseChatFileSourceId(menuItemId: string): ChatFileSourceId | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* 条目能不能挂到输入框。
|
|
187
|
+
*
|
|
188
|
+
* 文件夹要来源允许(见 `ChatFilePickerSource.allowFolderSelection`);
|
|
189
|
+
* 文件必须有地址。这里的入参只带条目自身信息,来源开关由调用方判定。
|
|
190
|
+
*/
|
|
191
|
+
export declare function isAttachableChatFileEntry(entry: ChatFilePickerEntry, allowFolderSelection?: boolean): boolean;
|
|
192
|
+
/** 条目 → 资源文件(发送时进 `resource_files` 的那个形状)。 */
|
|
193
|
+
export declare function toChatResourceFileFromEntry(entry: ChatFilePickerEntry): ChatResourceFile | undefined;
|
|
194
|
+
/** 条目 → 文件夹引用(发送时进 `my_files_chat.folder_ids`,后端按 id 展开)。 */
|
|
195
|
+
export declare function toChatFolderRefFromEntry(entry: ChatFilePickerEntry): ChatFolderRef | undefined;
|
|
196
|
+
/** 批量转换文件:自动跳过文件夹与没有地址的条目。 */
|
|
197
|
+
export declare function toChatResourceFilesFromEntries(entries: readonly ChatFilePickerEntry[]): ChatResourceFile[];
|
|
198
|
+
/** 批量转换文件夹。 */
|
|
199
|
+
export declare function toChatFolderRefsFromEntries(entries: readonly ChatFilePickerEntry[]): ChatFolderRef[];
|
|
200
|
+
/** 弹框确认时回抛的选择结果。 */
|
|
201
|
+
export interface ChatFilePickerSelection {
|
|
202
|
+
/** 勾选的文件与文件夹条目。 */
|
|
203
|
+
entries: readonly ChatFilePickerEntry[];
|
|
204
|
+
/** 勾选的整库(`library` 布局的「选择知识库」页签)。 */
|
|
205
|
+
libraries: readonly ChatFilePickerLibrary[];
|
|
206
|
+
/**
|
|
207
|
+
* 当前页签 key(`source.tabs` 的那一项)。
|
|
208
|
+
*
|
|
209
|
+
* 「上传到备课中心」用它拿教材 id:页签是教材、树是章节,
|
|
210
|
+
* `copyToTeaching` 需要 `catalogRootId`(页签)+ `catalogNodeId`(选中节点)两个。
|
|
211
|
+
*/
|
|
212
|
+
tab?: string;
|
|
213
|
+
}
|
|
214
|
+
/** 弹框里的一行(已按展开状态拍平)。 */
|
|
215
|
+
export interface ChatFilePickerRow {
|
|
216
|
+
entry: ChatFilePickerEntry;
|
|
217
|
+
/** 缩进层级:根节点 0,子节点逐级 +1。 */
|
|
218
|
+
depth: number;
|
|
219
|
+
/** 是否是文件夹且还有子节点(决定要不要画展开箭头)。 */
|
|
220
|
+
expandable: boolean;
|
|
221
|
+
expanded: boolean;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* 按展开状态把文件树拍平成可渲染的行。
|
|
225
|
+
*
|
|
226
|
+
* 放在契约里(而不是弹框内):这段递归是「哪些行可见」的唯一口径,
|
|
227
|
+
* 单测直接打这里比挂载组件再数 DOM 稳。
|
|
228
|
+
*/
|
|
229
|
+
export declare function visibleChatFilePickerRows(entries: readonly ChatFilePickerEntry[], expandedIds?: Iterable<string>): ChatFilePickerRow[];
|
|
230
|
+
/**
|
|
231
|
+
* 「选落点」模式下可见的行:只保留文件夹。
|
|
232
|
+
*
|
|
233
|
+
* 上传的目标只能是目录(或整库),文件不是落点 —— 把文件也列出来,
|
|
234
|
+
* 用户选了却没有意义(`saveFiles` 的 `directoryId` 不能是文件 id)。
|
|
235
|
+
* 空文件夹没有子节点,仍然要能选中,所以不按 `children.length` 过滤。
|
|
236
|
+
*/
|
|
237
|
+
export declare function visibleChatFilePickerTargetRows(entries: readonly ChatFilePickerEntry[], expandedIds?: Iterable<string>): ChatFilePickerRow[];
|
|
238
|
+
/** 按 `group` 归类库列表,保持出现顺序(第一组缺省叫「全部知识库」)。 */ export declare function groupChatFileLibraries(libraries: readonly ChatFilePickerLibrary[]): Array<{
|
|
239
|
+
group: string;
|
|
240
|
+
items: ChatFilePickerLibrary[];
|
|
241
|
+
}>;
|
|
242
|
+
export {};
|
|
243
|
+
//# sourceMappingURL=chatFilePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatFilePicker.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chatFilePicker.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE9D;;;;;;;;GAQG;AACH,MAA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on from '../../assets/chat/sidebar/nav/files-active.svg';
|
|
1
3
|
import type { ChatSidebarTexts } from './chatSessionSidebarTypes';
|
|
2
4
|
export interface ChatSessionSidebarAssets {
|
|
3
5
|
logo: string;
|
|
@@ -9,6 +11,17 @@ export interface ChatSessionSidebarAssets {
|
|
|
9
11
|
newSessionActive: string;
|
|
10
12
|
}
|
|
11
13
|
export declare const DEFAULT_SIDEBAR_ASSETS: ChatSessionSidebarAssets;
|
|
14
|
+
/**
|
|
15
|
+
* 「更多」行的四宫格图标与浮层选中态勾选:侧栏通用 chrome,不绑定任何产品菜单,
|
|
16
|
+
* 由 ChatSessionSidebar 内部作为 moreNavIcon 与浮层选中勾选使用。
|
|
17
|
+
*/
|
|
18
|
+
export declare const SIDEBAR_MORE_NAV_ICON: string;
|
|
19
|
+
export declare const SIDEBAR_NAV_CHECK_ICON: string;
|
|
20
|
+
/**
|
|
21
|
+
* 通用「我的文件」导航图标,供宿主在 navItems 中配置 files 项时使用。
|
|
22
|
+
* 组件库不内置产品菜单——navItems / moreNavItems 完全由宿主组装。
|
|
23
|
+
*/
|
|
24
|
+
export { filesIcon, filesActiveIcon };
|
|
12
25
|
export declare function resolveNavIcon(assets: ChatSessionSidebarAssets, item: {
|
|
13
26
|
key: string;
|
|
14
27
|
icon?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatSessionSidebarAssets.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chatSessionSidebarAssets.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAGjE,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,kBAAkB,EAAE,MAAM,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,eAAO,MAAM,sBAAsB,EAAE,wBAQpC,CAAA;AAED,wBAAgB,cAAc,CAC5B,MAAM,EAAE,wBAAwB,EAChC,IAAI,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,EACzD,MAAM,EAAE,OAAO,GACd,MAAM,CAOR;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAElE;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,CAEvF;AAED,6DAA6D;AAC7D,wBAAgB,wBAAwB,CACtC,KAAK,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,EACrC,KAAK,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAChC,MAAM,CAER"}
|
|
1
|
+
{"version":3,"file":"chatSessionSidebarAssets.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chatSessionSidebarAssets.ts"],"names":[],"mappings":"AAOA,OAAO,SAAS,MAAM,yCAAyC,CAAA;AAC/D,OAAO,eAAe,MAAM,gDAAgD,CAAA;AAG5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAGjE,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,kBAAkB,EAAE,MAAM,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,eAAO,MAAM,sBAAsB,EAAE,wBAQpC,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAqB,CAAA;AACzD,eAAO,MAAM,sBAAsB,EAAE,MAAkB,CAAA;AAEvD;;;GAGG;AACH,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,CAAA;AAErC,wBAAgB,cAAc,CAC5B,MAAM,EAAE,wBAAwB,EAChC,IAAI,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,EACzD,MAAM,EAAE,OAAO,GACd,MAAM,CAOR;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAElE;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,CAEvF;AAED,6DAA6D;AAC7D,wBAAgB,wBAAwB,CACtC,KAAK,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,EACrC,KAAK,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAChC,MAAM,CAER"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type ChatCloudConfig } from './cloudConfig';
|
|
2
|
+
/**
|
|
3
|
+
* 对话相关云接口的统一入口。
|
|
4
|
+
*
|
|
5
|
+
* 请求头只在这里补一次:`appid` / `token` / `userId` / `schoolCode` 来自 `cloud.auth`,
|
|
6
|
+
* 宿主可用 `cloud.headers()` 追加或覆盖同名字段。各接口模块不要再自己拼 `Headers`,
|
|
7
|
+
* 也不要把某一组接口降级成「只带部分头」——那类例外在产物列表上导致过线上问题。
|
|
8
|
+
*/
|
|
9
|
+
/** 云网关返回非 2xx。带状态码,调用方需要自定义文案时按 `status` 重新包装。 */
|
|
10
|
+
export declare class ChatCloudHttpError extends Error {
|
|
11
|
+
readonly status: number;
|
|
12
|
+
readonly url: string;
|
|
13
|
+
readonly payload: unknown;
|
|
14
|
+
constructor(url: string, status: number, payload?: unknown);
|
|
15
|
+
}
|
|
16
|
+
export interface CloudRequestOptions {
|
|
17
|
+
method?: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
18
|
+
body?: unknown;
|
|
19
|
+
signal?: AbortSignal;
|
|
20
|
+
/** 仅用于少数需要额外头的场景;鉴权头由统一拦截器补,不要在这里重复。 */
|
|
21
|
+
headers?: Record<string, string>;
|
|
22
|
+
/** 字节级上传进度(分片 PUT 用);`total` 在响应头不给长度时可能为 0。 */
|
|
23
|
+
onUploadProgress?: (event: {
|
|
24
|
+
loaded: number;
|
|
25
|
+
total: number;
|
|
26
|
+
}) => void;
|
|
27
|
+
}
|
|
28
|
+
/** POST / GET / PUT 云接口,返回 `ChatApiResponse` 等原始响应体(非 2xx 抛 `ChatCloudHttpError`)。 */
|
|
29
|
+
export declare function requestCloud<T>(cloud: ChatCloudConfig, url: string, options?: CloudRequestOptions): Promise<T>;
|
|
30
|
+
//# sourceMappingURL=cloudAxios.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloudAxios.d.ts","sourceRoot":"","sources":["../../../src/components/chat/cloudAxios.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAA;AAEzE;;;;;;GAMG;AAEH,kDAAkD;AAClD,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;gBAEb,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO;CAO3D;AAED,MAAM,WAAW,mBAAmB;IAElC,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAA;IAC1C,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,wCAAwC;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,gDAAgD;IAChD,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CACtE;AAsDD,sFAAsF;AACtF,wBAAsB,YAAY,CAAC,CAAC,EAClC,KAAK,EAAE,eAAe,EACtB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,CAAC,CAAC,CAkBZ"}
|
|
@@ -34,13 +34,13 @@ export interface ChatCloudChatConfig {
|
|
|
34
34
|
*/
|
|
35
35
|
protocol?: ChatSendProtocol;
|
|
36
36
|
url?: string;
|
|
37
|
-
/** `generic-responses` 拉 SSE 的地址。缺省 `/agent/generic/redis_stream`。 */
|
|
37
|
+
/** `generic-responses` 拉 SSE 的地址。缺省 `/yxuerai/agent/generic/redis_stream`。 */
|
|
38
38
|
redisStreamUrl?: string;
|
|
39
|
-
/** `generic-responses` 回放已写入 Redis 的事件。缺省 `/agent/generic/redis_history`。 */
|
|
39
|
+
/** `generic-responses` 回放已写入 Redis 的事件。缺省 `/yxuerai/agent/generic/redis_history`。 */
|
|
40
40
|
redisHistoryUrl?: string;
|
|
41
41
|
/**
|
|
42
42
|
* 引导(steer):把一条消息插进**正在跑**的那一轮。
|
|
43
|
-
* 缺省 `/agent/generic/responses/instruction`。只发请求,不拉流。
|
|
43
|
+
* 缺省 `/yxuerai/agent/generic/responses/instruction`。只发请求,不拉流。
|
|
44
44
|
*/
|
|
45
45
|
instructionUrl?: string;
|
|
46
46
|
lastSessionUrl?: string;
|
|
@@ -88,10 +88,79 @@ export interface ChatCloudSkillsConfig {
|
|
|
88
88
|
sceneParams?: ChatSkillPublishedSearchParams;
|
|
89
89
|
knowledgeParams?: ChatKnowledgeListParams;
|
|
90
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* 分片上传的接口地址。「我的资料」的分片协议与知识库侧不同,
|
|
93
|
+
* 由宿主按后端契约显式提供;`part`/`status`/`complete` 支持 `:uploadId`、`:index` 占位。
|
|
94
|
+
*/
|
|
95
|
+
export interface ChatCloudChunkUploadEndpoints {
|
|
96
|
+
/** init:POST,入参见 `chatMyFilesApi.MyFilesChunkInitInput`,返回 `uploadId`。 */
|
|
97
|
+
init: string;
|
|
98
|
+
/** 单片上传:PUT 字节流,`:uploadId` / `:index` 占位。 */
|
|
99
|
+
part: string;
|
|
100
|
+
/** 续传进度查询:GET,`:uploadId` 占位,返回已传分片索引。 */
|
|
101
|
+
status: string;
|
|
102
|
+
/** 合并:POST,`:uploadId` 占位,返回 `fileId` / `url` / `size`。 */
|
|
103
|
+
complete: string;
|
|
104
|
+
/**
|
|
105
|
+
* 取消上传:DELETE,`:uploadId` 占位;请求带 `fileName` 查询参数(后端必传)。
|
|
106
|
+
*
|
|
107
|
+
* 可选:配了它,用户点「取消」时后端会删掉临时分片目录与会话,
|
|
108
|
+
* 不留孤儿分片。不配就只中断前端请求,服务端分片等它自己过期清理。
|
|
109
|
+
*/
|
|
110
|
+
cancel?: string;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* 大文件分片上传(断点续传)开关与参数。
|
|
114
|
+
*
|
|
115
|
+
* 不配 = 全部文件走七牛直传单发。配置后,超过 `threshold` 的文件改走
|
|
116
|
+
* `init → 并发 PUT 分片 → complete` 通道:单片失败自动重试,
|
|
117
|
+
* 整文件失败后重试会先查 `status`,只补传缺失的分片。
|
|
118
|
+
*/
|
|
119
|
+
export interface ChatCloudChunkUploadConfig {
|
|
120
|
+
/** 分片接口地址;没有真实地址时整个分片通道保持关闭。 */
|
|
121
|
+
endpoints: ChatCloudChunkUploadEndpoints;
|
|
122
|
+
/** 分片阈值(字节),默认 20MB。 */
|
|
123
|
+
threshold?: number;
|
|
124
|
+
/** 单片大小(字节),默认 3MB。 */
|
|
125
|
+
chunkSize?: number;
|
|
126
|
+
/** 单文件分片并发数,默认 3。 */
|
|
127
|
+
concurrent?: number;
|
|
128
|
+
/** 单片失败重试次数,默认 3。 */
|
|
129
|
+
retry?: number;
|
|
130
|
+
/** 分片 init 需要的知识库 id;「我的资料」场景没有知识库,后端要求时由宿主显式提供。 */
|
|
131
|
+
knowledgeId?: string;
|
|
132
|
+
/**
|
|
133
|
+
* 落点类型,默认 `PERSONAL_FILES`(我的资料个人空间)。
|
|
134
|
+
*
|
|
135
|
+
* `PERSONAL_FILES`:**不解析**,传完即入库(返回的 `fileId` 就是业务记录 id),
|
|
136
|
+
* 前端不要再调一次 `saveFiles` 登记;`NORMAL`(知识库)传完会触发解析。
|
|
137
|
+
*/
|
|
138
|
+
businessType?: 'NORMAL' | 'TEACHING' | 'PERSONAL_FILES';
|
|
139
|
+
/**
|
|
140
|
+
* 分片落点目录。留空则由上传队列按目标目录链解析;
|
|
141
|
+
* `PERSONAL_FILES` 落在根目录时按「不传」处理(后端默认落个人空间根目录)。
|
|
142
|
+
*/
|
|
143
|
+
directoryId?: string;
|
|
144
|
+
}
|
|
91
145
|
export interface ChatCloudUploadConfig {
|
|
92
146
|
cloudBaseUrl: string;
|
|
93
147
|
dir?: string;
|
|
94
148
|
limits?: Partial<ChatAttachmentLimits>;
|
|
149
|
+
/**
|
|
150
|
+
* 大文件分片上传。**缺省即开启**(后端 A3 的 `/api/files/chunk/*`):
|
|
151
|
+
* 超过 `threshold` 的文件走 `init → 并发 PUT → complete`,支持断点续传。
|
|
152
|
+
*
|
|
153
|
+
* - 传 `false` 明确关闭,全部文件走七牛直传;
|
|
154
|
+
* - 传对象可覆盖地址与参数(老版本默认关闭,宿主没配就只能直传 —— 现在默认开)。
|
|
155
|
+
*/
|
|
156
|
+
chunkUpload?: ChatCloudChunkUploadConfig | false;
|
|
157
|
+
/**
|
|
158
|
+
* 「我的资料」上传登记时的场景。
|
|
159
|
+
*
|
|
160
|
+
* `MY_UPLOAD` = 聊天入口上传:后端固定把文件归集到个人空间**顶层**的「我的上传」目录,
|
|
161
|
+
* 并忽略请求里的 `directoryId`(同名目录不存在时自动创建)。
|
|
162
|
+
*/
|
|
163
|
+
myFilesUploadScene?: 'MY_UPLOAD';
|
|
95
164
|
}
|
|
96
165
|
export interface ChatCloudReferenceConfig {
|
|
97
166
|
getReferenceUrl?: string;
|
|
@@ -129,15 +198,15 @@ export interface ChatCloudConfig {
|
|
|
129
198
|
export declare const DEFAULT_CHAT_API_URL = "/cloud/aibasicservices/Knowledge/record/check/agentChatKeep";
|
|
130
199
|
/**
|
|
131
200
|
* 同源路径,避免浏览器直连 `k8s2` 跨域。
|
|
132
|
-
*
|
|
201
|
+
* 本地 Vite 把 `/yxuerai` 转到 `http://k8s2.yxuer.com:38085`,转发前去掉 `/yxuerai`。
|
|
133
202
|
*/
|
|
134
|
-
export declare const DEFAULT_GENERIC_RESPONSES_URL = "/agent/generic/responses";
|
|
203
|
+
export declare const DEFAULT_GENERIC_RESPONSES_URL = "/yxuerai/agent/generic/responses";
|
|
135
204
|
/** 同源路径。`/generic/responses` 返回 `message_id` 后,用它拉 Redis SSE。 */
|
|
136
|
-
export declare const DEFAULT_GENERIC_REDIS_STREAM_URL = "/agent/generic/redis_stream";
|
|
205
|
+
export declare const DEFAULT_GENERIC_REDIS_STREAM_URL = "/yxuerai/agent/generic/redis_stream";
|
|
137
206
|
/** 同源路径。刷新或重开仍在跑的会话时,回放这一轮已经写入 Redis 的事件。 */
|
|
138
|
-
export declare const DEFAULT_GENERIC_REDIS_HISTORY_URL = "/agent/generic/redis_history";
|
|
207
|
+
export declare const DEFAULT_GENERIC_REDIS_HISTORY_URL = "/yxuerai/agent/generic/redis_history";
|
|
139
208
|
/** 同源路径。引导当前 run 接收一条消息;不中断、不拉流。 */
|
|
140
|
-
export declare const DEFAULT_GENERIC_INSTRUCTION_URL = "/agent/generic/responses/instruction";
|
|
209
|
+
export declare const DEFAULT_GENERIC_INSTRUCTION_URL = "/yxuerai/agent/generic/responses/instruction";
|
|
141
210
|
export declare const DEFAULT_LAST_SESSION_URL = "/cloud/aibasicservices/Knowledge/record/check/lastSession";
|
|
142
211
|
export declare const DEFAULT_RESUME_URL = "/cloud/aibasicservices/Knowledge/record/check/resume";
|
|
143
212
|
export declare const DEFAULT_ABORT_URL = "/cloud/agentskillservice/agent/check/abort_session";
|
|
@@ -175,4 +244,22 @@ export declare function mergeChatCloudConfig(base: ChatCloudConfig | undefined,
|
|
|
175
244
|
export declare function toSkillFetchConfig(cloud: ChatCloudConfig): ChatSkillFetchConfig;
|
|
176
245
|
/** 适配底层上传客户端(`qiniuUpload.ts`)期望的结构;鉴权头改由 `auth` + `headers()` 自动派生。 */
|
|
177
246
|
export declare function toUploadConfig(cloud: ChatCloudConfig | undefined): ChatUploadConfig | undefined;
|
|
247
|
+
/**
|
|
248
|
+
* 分片上传的默认接口地址。
|
|
249
|
+
*
|
|
250
|
+
* 后端 A3 给的是**控制器路径** `/api/files/chunk/*`,与知识库接口不是同一套命名,
|
|
251
|
+
* 网关白名单要单独放行。完整网关路径与其他 aibasicservices 接口同构:
|
|
252
|
+
* `${cloudBaseUrl}/aibasicservices/api/files/chunk/*`(`/cloud` 会被运行时改写成
|
|
253
|
+
* `/cloud-prod`)。宿主换了网关只改这一处配置即可。
|
|
254
|
+
*/
|
|
255
|
+
export declare function defaultChunkUploadEndpoints(cloud: ChatCloudConfig): ChatCloudChunkUploadEndpoints;
|
|
256
|
+
/**
|
|
257
|
+
* 解析出「实际生效」的分片配置。
|
|
258
|
+
*
|
|
259
|
+
* 默认开启:不配也走分片(大文件上传不再一律整体直传)。
|
|
260
|
+
* 宿主传 `chunkUpload: false` 才彻底关掉(退回七牛直传,单文件上限 1GB)。
|
|
261
|
+
*/
|
|
262
|
+
export declare function resolveChunkUploadConfig(cloud: ChatCloudConfig | undefined): (Omit<ChatCloudChunkUploadConfig, 'endpoints'> & {
|
|
263
|
+
endpoints: ChatCloudChunkUploadEndpoints;
|
|
264
|
+
}) | undefined;
|
|
178
265
|
//# sourceMappingURL=cloudConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudConfig.d.ts","sourceRoot":"","sources":["../../../src/components/chat/cloudConfig.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACpB,8BAA8B,EAC/B,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAEtF,oHAAoH;AACpH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAE1D,iFAAiF;AACjF,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,IAAI,CAAC,EAAE,OAAO,iBAAiB,EAAE,aAAa,CAAA;IAC9C,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,OAAO,EAAE,CAAA;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,iFAAiF;AACjF,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG,mBAAmB,CAAA;AAEtE,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,QA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,eAAe,GAAG,SAAS,EACjC,QAAQ,EAAE,eAAe,GAAG,SAAS,GACpC,eAAe,GAAG,SAAS,CAc7B;AAED,iDAAiD;AACjD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,eAAe,GAAG,oBAAoB,CAY/E;AAED,wEAAwE;AACxE,wBAAgB,cAAc,CAAC,KAAK,EAAE,eAAe,GAAG,SAAS,GAAG,gBAAgB,GAAG,SAAS,CAU/F;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,eAAe,GAAG,6BAA6B,CAcjG;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,eAAe,GAAG,SAAS,GAEhC,CAAC,IAAI,CAAC,0BAA0B,EAAE,WAAW,CAAC,GAAG;IAAE,SAAS,EAAE,6BAA6B,CAAA;CAAE,CAAC,GAC9F,SAAS,CAQZ"}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import type { ConversationUiAction } from '../types';
|
|
2
2
|
import '../mdoc/referenceTag.css';
|
|
3
3
|
import type { DocumentScreenshotResult } from './document-viewer/adapter';
|
|
4
|
+
import type { OnlyOfficeProfile } from './document-viewer/onlyoffice/onlyOfficeProfile';
|
|
4
5
|
type __VLS_Props = {
|
|
5
6
|
artifact: ConversationUiAction;
|
|
6
7
|
expanded?: boolean;
|
|
7
8
|
askLabel?: string;
|
|
9
|
+
/**
|
|
10
|
+
* OnlyOffice 界面形态。对话里的产物是**只读**的:没有落点,也没有「保存到哪」,
|
|
11
|
+
* 所以缺省「纯预览版」。要编辑请走「我的资料」(那里缺省「简单编辑版」)。
|
|
12
|
+
*/
|
|
13
|
+
onlyofficeProfile?: OnlyOfficeProfile;
|
|
8
14
|
};
|
|
9
15
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
16
|
close: () => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArtifactPreview.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ArtifactPreview.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ArtifactPreview.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ArtifactPreview.vue"],"names":[],"mappings":"AAodA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAKpD,OAAO,0BAA0B,CAAA;AAGjC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAKvF,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,oBAAoB,CAAA;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;CACtC,CAAC;AAmvBF,QAAA,MAAM,YAAY;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -33,14 +33,14 @@ type __VLS_Slots = {
|
|
|
33
33
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
34
|
copy: (payload: ChatActionbarCopyPayload) => any;
|
|
35
35
|
edit: (message: UserMessage) => any;
|
|
36
|
-
feedback: (payload: ChatActionbarFeedbackPayload) => any;
|
|
37
36
|
retry: () => any;
|
|
37
|
+
feedback: (payload: ChatActionbarFeedbackPayload) => any;
|
|
38
38
|
branch: (payload: ChatActionbarBranchPayload) => any;
|
|
39
39
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
40
40
|
onCopy?: ((payload: ChatActionbarCopyPayload) => any) | undefined;
|
|
41
41
|
onEdit?: ((message: UserMessage) => any) | undefined;
|
|
42
|
-
onFeedback?: ((payload: ChatActionbarFeedbackPayload) => any) | undefined;
|
|
43
42
|
onRetry?: (() => any) | undefined;
|
|
43
|
+
onFeedback?: ((payload: ChatActionbarFeedbackPayload) => any) | undefined;
|
|
44
44
|
onBranch?: ((payload: ChatActionbarBranchPayload) => any) | undefined;
|
|
45
45
|
}>, {
|
|
46
46
|
text: string;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import type { ChatResourceFile } from '../types';
|
|
1
|
+
import type { ChatFolderRef, ChatResourceFile } from '../types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
resources: readonly ChatResourceFile[];
|
|
4
|
+
/**
|
|
5
|
+
* 「我的资料」的文件夹引用。
|
|
6
|
+
*
|
|
7
|
+
* 文件夹不是文件:没有地址也没有体积,只点名(后端按 id 展开成文件),
|
|
8
|
+
* 所以单开一份渲染,不混进 `resources`。
|
|
9
|
+
*/
|
|
10
|
+
folders?: readonly ChatFolderRef[];
|
|
4
11
|
removable?: boolean;
|
|
5
12
|
};
|
|
6
13
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatAttachments.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatAttachments.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatAttachments.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatAttachments.vue"],"names":[],"mappings":"AA0GA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAM/D,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,gBAAgB,EAAE,CAAA;IACtC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,SAAS,aAAa,EAAE,CAAA;IAClC,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AA2KF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatComposerContextBar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatComposerContextBar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatComposerContextBar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatComposerContextBar.vue"],"names":[],"mappings":"AAqiBA,OAAO,EAKL,KAAK,aAAa,EACnB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAyB,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAIzF,KAAK,WAAW,GAAG;IACf,MAAM,EAAE,SAAS,gBAAgB,EAAE,CAAA;IACnC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAylBJ,QAAA,MAAM,YAAY;;;;;;;;;UA3lBP,aAAa;aADV,MAAM;cAEL,OAAO;6EA8lBpB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -4,7 +4,7 @@ type __VLS_Props = {
|
|
|
4
4
|
imageSrc?: string;
|
|
5
5
|
iconSrc?: string;
|
|
6
6
|
size?: number;
|
|
7
|
-
status?: 'idle' | 'uploading' | 'error' | 'uploaded';
|
|
7
|
+
status?: 'idle' | 'uploading' | 'error' | 'uploaded' | 'folder';
|
|
8
8
|
progress?: number;
|
|
9
9
|
errorMessage?: string;
|
|
10
10
|
removable?: boolean;
|
|
@@ -22,7 +22,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
22
22
|
size: number;
|
|
23
23
|
progress: number;
|
|
24
24
|
imageSrc: string;
|
|
25
|
-
status: "idle" | "uploading" | "error" | "uploaded";
|
|
25
|
+
status: "idle" | "uploading" | "error" | "uploaded" | "folder";
|
|
26
26
|
iconSrc: string;
|
|
27
27
|
errorMessage: string;
|
|
28
28
|
removable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatFileCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatFileCard.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatFileCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatFileCard.vue"],"names":[],"mappings":"AA2XA,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,OAAO,GAAG,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAA;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AA4QJ,QAAA,MAAM,YAAY;;;;;;;;;UAlRP,MAAM;cAEF,MAAM;cAJN,MAAM;YAGR,MAAM,GAAG,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ;aAFrD,MAAM;kBAID,MAAM;eACT,OAAO;eACP,OAAO;6EAiRrB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|