@deep-eye/core 1.3.82 → 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 +47 -0
- package/README.md +1 -1
- package/dist/{ChartRenderer-CdMqq77C.js → ChartRenderer-Cjy0_9Vd.js} +1 -1
- package/dist/{ChartRenderer-D5Z9667V.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/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-WRcIosJk.cjs → docx-preview-DG8slhP7.cjs} +1 -1
- package/dist/{docx-preview-BB0Qv1nC.js → docx-preview-DMQ6xzQM.js} +1 -1
- package/dist/{index-CWLfFu3e.cjs → index-B4nd6sY1.cjs} +1 -1
- package/dist/{index-BrxlMnow.js → index-CBCQPl8n.js} +75358 -65919
- package/dist/index-CJ-Mb6SU.cjs +1410 -0
- package/dist/{index-BGQvGRIY.js → index-DRZPTPoe.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +599 -463
- package/dist/{papaparse.min-C3FYhYXB.cjs → papaparse.min-BRNq6gPR.cjs} +1 -1
- package/dist/{papaparse.min-B0ulAjn8.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-BBiUUsrN.cjs +0 -1248
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatTtsApi.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/composables/chatTtsApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chatTtsApi.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/composables/chatTtsApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,eAAe,EACrB,MAAM,gBAAgB,CAAA;AAEvB,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,gCAAgC;IAChC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,gEAAgE;IAChE,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,4CAA4C;IAC5C,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,gEAAgE;AAChE,MAAM,MAAM,iBAAiB,GAAG;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAA;AAmG3F;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,eAAe,EACtB,MAAM,EAAE,qBAAqB,EAC7B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,iBAAiB,CAAC,CA+B5B;AAED;;;GAGG;AACH,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,eAAe,EACtB,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,WAAW,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,CAAC,CASjB;AAeD;;;GAGG;AACH,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,eAAe,EACtB,MAAM,EAAE,qBAAqB,EAC7B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,MAAM,CAAC,CAYjB;AAED,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,eAAe,EACtB,MAAM,EAAE,qBAAqB,EAC7B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,MAAM,CAAC,CAEjB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ChatSenderModelOption } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* Canonical model_list path (same-origin `/cloud/...`, aligned with basicagentweb).
|
|
4
|
-
* Localhost is rewritten
|
|
4
|
+
* Localhost is rewritten via `buildSkillApiUrl`. Pass `cloudPrefix` to follow the host switch.
|
|
5
5
|
*/
|
|
6
6
|
export declare const DEFAULT_MODEL_LIST_URL = "/cloud/agentskillservice/agent/check/model/list";
|
|
7
7
|
export interface ModelListPricing {
|
|
@@ -53,5 +53,5 @@ export declare function mapModelListResponse(data: unknown): ChatSenderModelOpti
|
|
|
53
53
|
* Fetch and map the agent check/model/list endpoint.
|
|
54
54
|
* Defaults to `DEFAULT_MODEL_LIST_URL` (same-origin `/cloud` rewrite as skill APIs).
|
|
55
55
|
*/
|
|
56
|
-
export declare function fetchModelList(url?: string, init?: RequestInit): Promise<ChatSenderModelOption[]>;
|
|
56
|
+
export declare function fetchModelList(url?: string, init?: RequestInit, cloudPrefix?: string): Promise<ChatSenderModelOption[]>;
|
|
57
57
|
//# sourceMappingURL=fetchModelList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchModelList.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/composables/fetchModelList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAsB,MAAM,UAAU,CAAA;AAGzE;;;GAGG;AACH,eAAO,MAAM,sBAAsB,oDAAoD,CAAA;AAEvF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACpC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;AAEhE,MAAM,WAAW,aAAa;IAC5B,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,+DAA+D;IAC/D,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAuBD,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQ1D,CAAA;AAED,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED,2CAA2C;AAC3C,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAW1D;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEtD;AAoCD,+DAA+D;AAC/D,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAUpD;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,CA2DtD;AAED,mEAAmE;AACnE,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAEnD;AASD,qDAAqD;AACrD,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAO3E;AAiGD,yDAAyD;AACzD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,qBAAqB,EAAE,CAgB3E;AAED;;;GAGG;AACH,wBAAsB,cAAc,CAClC,GAAG,GAAE,MAA+B,EACpC,IAAI,CAAC,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"fetchModelList.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/composables/fetchModelList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAsB,MAAM,UAAU,CAAA;AAGzE;;;GAGG;AACH,eAAO,MAAM,sBAAsB,oDAAoD,CAAA;AAEvF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAA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nD;AASD,qDAAqD;AACrD,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAO3E;AAiGD,yDAAyD;AACzD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,qBAAqB,EAAE,CAgB3E;AAED;;;GAGG;AACH,wBAAsB,cAAc,CAClC,GAAG,GAAE,MAA+B,EACpC,IAAI,CAAC,EAAE,WAAW,EAClB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAOlC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { type ComputedRef, type Ref } from 'vue';
|
|
1
|
+
import { type ComputedRef, type MaybeRefOrGetter, type Ref } from 'vue';
|
|
2
2
|
import { type ChatSkillFetchConfig, type ChatTipMenuItems, type ChatTipMenuSubItem } from '../../skill';
|
|
3
3
|
import type { UiMenuItem } from '../../ui/types';
|
|
4
4
|
import { type ChatAgentMode } from '../chatAgentMode';
|
|
5
|
+
import { type ChatFilePickerSources, type ChatFileSourceId } from '../chatFilePicker';
|
|
5
6
|
export interface UseChatSkillTipMenuOptions {
|
|
6
7
|
open: Ref<boolean>;
|
|
7
8
|
fetchConfig: Ref<ChatSkillFetchConfig | undefined> | ComputedRef<ChatSkillFetchConfig | undefined>;
|
|
@@ -18,6 +19,23 @@ export interface UseChatSkillTipMenuOptions {
|
|
|
18
19
|
onToggleMode?: (mode: ChatAgentMode) => void;
|
|
19
20
|
agentMode?: Ref<ChatAgentMode> | ComputedRef<ChatAgentMode>;
|
|
20
21
|
onMenuItemClick: (itemId: string) => void;
|
|
22
|
+
/**
|
|
23
|
+
* 「+ → 添加文件」子菜单里可用的库来源(我的文件 / 知识库)。
|
|
24
|
+
*
|
|
25
|
+
* 没配置的来源在菜单里置灰:结构固定(本地文件 / 我的文件 / 知识库),
|
|
26
|
+
* 但不能让用户点到「我的文件」却什么也不发生。
|
|
27
|
+
*/
|
|
28
|
+
filePickerSources?: Ref<ChatFilePickerSources> | ComputedRef<ChatFilePickerSources> | MaybeRefOrGetter<ChatFilePickerSources>;
|
|
29
|
+
/** 子菜单里选了某个来源:本地文件走 `onUpload`,我的文件 / 知识库弹框选文件。 */
|
|
30
|
+
onSelectFileSource?: (sourceId: ChatFileSourceId) => void;
|
|
31
|
+
/**
|
|
32
|
+
* 「添加文件」子菜单宽度。
|
|
33
|
+
*
|
|
34
|
+
* 缺省跟随根面板宽度(`ChatSender` / `useChatTipMenu` 传 `menuProps.width`),
|
|
35
|
+
* 不跟随的话会回落到 `submenuWidth`(250,给「技能」这类带描述的列表用),
|
|
36
|
+
* 三个四字标签(本地文件 / 我的文件 / 知识库)摆进去右侧会空出一大截。
|
|
37
|
+
*/
|
|
38
|
+
fileSourceSubmenuWidth?: MaybeRefOrGetter<string | number | undefined>;
|
|
21
39
|
onClose: () => void;
|
|
22
40
|
}
|
|
23
41
|
declare const SUBMENU_ITEM_IDS: {
|
|
@@ -25,10 +43,13 @@ declare const SUBMENU_ITEM_IDS: {
|
|
|
25
43
|
readonly expert: "expert";
|
|
26
44
|
readonly skill: "skill";
|
|
27
45
|
readonly knowledge: "knowledge";
|
|
46
|
+
readonly upload: "upload";
|
|
28
47
|
};
|
|
29
48
|
type SubmenuItemId = (typeof SUBMENU_ITEM_IDS)[keyof typeof SUBMENU_ITEM_IDS];
|
|
30
49
|
export declare function useChatSkillTipMenu(options: UseChatSkillTipMenuOptions): {
|
|
31
50
|
builtinMenuItems: ComputedRef<UiMenuItem[]>;
|
|
51
|
+
/** 根面板不渲染的行 id(与「添加文件」子菜单重复的内置项);数据仍完整,仅供渲染层过滤 */
|
|
52
|
+
hiddenRootItemIds: ComputedRef<string[]>;
|
|
32
53
|
searchActiveItem: (submenuId: string, keyword: string) => void;
|
|
33
54
|
onSubmenuOpen: (itemId: string, path?: string) => void;
|
|
34
55
|
loadMoreItem: (itemId: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChatSkillTipMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/composables/useChatSkillTipMenu.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useChatSkillTipMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/composables/useChatSkillTipMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,GAAG,EACT,MAAM,KAAK,CAAA;AAIZ,OAAO,EAWL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EAKxB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,UAAU,EAAgC,MAAM,gBAAgB,CAAA;AAC9E,OAAO,EAQL,KAAK,aAAa,EACnB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAKL,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACtB,MAAM,mBAAmB,CAAA;AAM1B,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAClB,WAAW,EAAE,GAAG,CAAC,oBAAoB,GAAG,SAAS,CAAC,GAAG,WAAW,CAAC,oBAAoB,GAAG,SAAS,CAAC,CAAA;IAClG,YAAY,EAAE,GAAG,CAAC,gBAAgB,CAAC,GAAG,WAAW,CAAC,gBAAgB,CAAC,CAAA;IACnE,4DAA4D;IAC5D,iBAAiB,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,CAAA;IACvD,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,cAAc,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAClD,aAAa,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAA;IACjD,iBAAiB,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAA;IACrD,eAAe,EAAE,CAA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Items, type ChatTipMenuSubItem } from '../../skill';
|
|
4
4
|
import type { UiMenuPlacement } from '../../ui/composables';
|
|
5
5
|
import type { ChatAgentMode, ChatTipMenuUiMenuProps, ChatTipMenuBuiltinKind } from '../types';
|
|
6
|
+
import type { ChatFilePickerSources, ChatFileSourceId } from '../chatFilePicker';
|
|
6
7
|
export interface UseChatTipMenuOptions {
|
|
7
8
|
fetchConfig?: MaybeRefOrGetter<ChatSkillFetchConfig | undefined>;
|
|
8
9
|
tipMenuItems?: MaybeRefOrGetter<ChatTipMenuItems>;
|
|
@@ -28,6 +29,13 @@ export interface UseChatTipMenuOptions {
|
|
|
28
29
|
onToggleMode?: (mode: ChatAgentMode) => void;
|
|
29
30
|
agentMode?: MaybeRefOrGetter<ChatAgentMode>;
|
|
30
31
|
onMenuItemClick?: (itemId: string) => void;
|
|
32
|
+
/**
|
|
33
|
+
* 「+ → 添加文件」子菜单里可用的库来源(我的文件 / 知识库)。
|
|
34
|
+
* 没配置的来源在菜单里置灰,不会出现「点了没反应」。
|
|
35
|
+
*/
|
|
36
|
+
filePickerSources?: MaybeRefOrGetter<ChatFilePickerSources>;
|
|
37
|
+
/** 子菜单里选了某个来源(本地文件 / 我的文件 / 知识库)。 */
|
|
38
|
+
onSelectFileSource?: (sourceId: ChatFileSourceId) => void;
|
|
31
39
|
/** custom 项子菜单展开时回调(含多级 path,如 `move/folder1`) */
|
|
32
40
|
onCustomSubmenuOpen?: (itemId: string, path?: string) => void;
|
|
33
41
|
/** custom 子菜单搜索(含多级 path,如 `knowledge/type-2`) */
|
|
@@ -56,20 +64,21 @@ export declare function useChatTipMenu(options: UseChatTipMenuOptions): {
|
|
|
56
64
|
/** 内层 useChatSkillTipMenu 全量返回(builtinMenuItems / onSubmenuOpen / 选中态等,供光标菜单复用) */
|
|
57
65
|
menu: {
|
|
58
66
|
builtinMenuItems: ComputedRef<import("../../index.ts").UiMenuItem[]>;
|
|
67
|
+
hiddenRootItemIds: ComputedRef<string[]>;
|
|
59
68
|
searchActiveItem: (submenuId: string, keyword: string) => void;
|
|
60
69
|
onSubmenuOpen: (itemId: string, path?: string) => void;
|
|
61
70
|
loadMoreItem: (itemId: string) => void;
|
|
62
71
|
handleSubmenuSelect: (itemId: string, subItem: ChatTipMenuSubItem) => void;
|
|
63
|
-
addSubmenuSelection: (itemId: "mode" | "skill" | "knowledge" | "expert", subItemId: string) => void;
|
|
64
|
-
clearSubmenuSelection: (itemId: "mode" | "skill" | "knowledge" | "expert", subItemId?: string) => void;
|
|
72
|
+
addSubmenuSelection: (itemId: "mode" | "skill" | "knowledge" | "expert" | "upload", subItemId: string) => void;
|
|
73
|
+
clearSubmenuSelection: (itemId: "mode" | "skill" | "knowledge" | "expert" | "upload", subItemId?: string) => void;
|
|
65
74
|
selectedExpertId: Ref<string | undefined, string | undefined>;
|
|
66
75
|
selectedSkillIds: Ref<string[], string[]>;
|
|
67
76
|
selectedKnowledgeIds: Ref<string[], string[]>;
|
|
68
77
|
onUpload: () => void;
|
|
69
78
|
onScreenshot: () => void;
|
|
70
79
|
};
|
|
71
|
-
addSubmenuSelection: (itemId: "mode" | "skill" | "knowledge" | "expert", subItemId: string) => void;
|
|
72
|
-
clearSubmenuSelection: (itemId: "mode" | "skill" | "knowledge" | "expert", subItemId?: string) => void;
|
|
80
|
+
addSubmenuSelection: (itemId: "mode" | "skill" | "knowledge" | "expert" | "upload", subItemId: string) => void;
|
|
81
|
+
clearSubmenuSelection: (itemId: "mode" | "skill" | "knowledge" | "expert" | "upload", subItemId?: string) => void;
|
|
73
82
|
searchTipMenu: (submenuId: ChatTipMenuBuiltinKind | string, keyword: string) => void;
|
|
74
83
|
};
|
|
75
84
|
export type UseChatTipMenuReturn = ReturnType<typeof useChatTipMenu>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChatTipMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/composables/useChatTipMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,WAAW,EACh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AC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7D,kDAAkD;IAClD,qBAAqB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACpE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,OAAO,CAAA;CACzB;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB;;;;;;;;;;;;;;IAwIzD,mFAAmF;;;;;;;;;;;;;;;;;;+BAvDnD,sBAAsB,GAAG,MAAM,WAAW,MAAM;EA6DnF;AAED,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA"}
|
|
@@ -11,5 +11,5 @@ export interface ComposerMentionAttrs {
|
|
|
11
11
|
export declare const ComposerMention: Node<any, any>;
|
|
12
12
|
export declare function insertComposerNewline(editor: Editor): boolean;
|
|
13
13
|
export declare const ComposerKeymap: Extension<any, any>;
|
|
14
|
-
export declare function createComposerExtensions(): (Extension<
|
|
14
|
+
export declare function createComposerExtensions(): (Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | Extension<any, any> | Node<any, any>)[];
|
|
15
15
|
//# sourceMappingURL=composerExtensions.d.ts.map
|
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* 文件类型图标的唯一注册表(仓库内不得再出现第二套映射)。
|
|
3
|
+
*
|
|
4
|
+
* 其中 13 个 key 来自蓝湖「切图画板 · 文件图标」(design_id 3bd21d04,version 8c96e934),
|
|
5
|
+
* 由 scripts/lanhu-export 导出;image 已于 2026-11-13 由设计补充 24px 切图替换掉历史 20px 资产,
|
|
6
|
+
* link / wechat 仍为设计稿未覆盖的历史资产,留在 manifest 标记 legacy 待补图。
|
|
7
|
+
* zip 同为 2026-11-13 新增(原压缩包回落 `text`,与 docx 兜底图标撞脸)。
|
|
8
|
+
*
|
|
9
|
+
* `folder` 取彩色版 `folder-color.svg`:目录树、文件表格、上传面板、空态引导一直是这张,
|
|
10
|
+
* 只有本注册表还挂线框版 `folder.svg`(`fill:none` + 深色描边,`<img>` 里就是一团黑线)。
|
|
11
|
+
* 搜索面板按 key 取 folder 时因此画成黑线框,与同一份资料在其它入口的样子不一致。
|
|
12
|
+
*/
|
|
13
|
+
export declare const CHAT_FILE_TYPE_ICONS: {
|
|
14
|
+
readonly folder: string;
|
|
15
|
+
readonly ppt: string;
|
|
16
|
+
readonly word: string;
|
|
17
|
+
readonly excel: string;
|
|
18
|
+
readonly pdf: string;
|
|
19
|
+
readonly markdown: string;
|
|
20
|
+
readonly audio: string;
|
|
21
|
+
readonly video: string;
|
|
22
|
+
readonly text: string;
|
|
23
|
+
readonly code: string;
|
|
24
|
+
readonly html: string;
|
|
25
|
+
readonly image: string;
|
|
26
|
+
readonly zip: string;
|
|
27
|
+
readonly link: string;
|
|
28
|
+
readonly wechat: string;
|
|
29
|
+
};
|
|
30
|
+
export type ChatFileTypeKey = keyof typeof CHAT_FILE_TYPE_ICONS;
|
|
31
|
+
export interface ResolveFileTypeIconOptions {
|
|
32
|
+
/** 传入链接地址时用于识别公众号文章 */
|
|
33
|
+
url?: string;
|
|
34
|
+
/** 强制指定 key(如目录节点始终用 folder) */
|
|
35
|
+
key?: ChatFileTypeKey;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 解析文件类型图标。接受裸扩展名(`pdf`)、文件名(`report.pdf`)或显式 key。
|
|
39
|
+
* 未识别时回落到 `text`,与设计稿「纯文本」兜底一致。
|
|
40
|
+
*/
|
|
41
|
+
export declare function resolveFileTypeIcon(fileNameOrExtension: string, options?: ResolveFileTypeIconOptions): string;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated 使用 `resolveFileTypeIcon`,本函数保留仅为兼容既有调用方。
|
|
4
44
|
*/
|
|
5
45
|
export declare function getChatFileIconSrc(fileNameOrExtension: string, url?: string): string;
|
|
6
46
|
//# sourceMappingURL=fileIcons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileIcons.d.ts","sourceRoot":"","sources":["../../../src/components/chat/fileIcons.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fileIcons.d.ts","sourceRoot":"","sources":["../../../src/components/chat/fileIcons.ts"],"names":[],"mappings":"AAiBA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;CAgBvB,CAAA;AAEV,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,oBAAoB,CAAA;AAiE/D,MAAM,WAAW,0BAA0B;IACzC,uBAAuB;IACvB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,gCAAgC;IAChC,GAAG,CAAC,EAAE,eAAe,CAAA;CACtB;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,mBAAmB,EAAE,MAAM,EAC3B,OAAO,GAAE,0BAA+B,GACvC,MAAM,CAcR;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,mBAAmB,EAAE,MAAM,EAAE,GAAG,SAAK,GAAG,MAAM,CAEhF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hydrateHistory.d.ts","sourceRoot":"","sources":["../../../src/components/chat/hydrateHistory.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAGV,gBAAgB,EAMhB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"hydrateHistory.d.ts","sourceRoot":"","sources":["../../../src/components/chat/hydrateHistory.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAGV,gBAAgB,EAMhB,gBAAgB,EAQhB,mBAAmB,EAUpB,MAAM,SAAS,CAAA;AAGhB,MAAM,WAAW,qBAAqB;IACpC,gFAAgF;IAChF,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,iFAAiF;IACjF,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC,oFAAoF;IACpF,QAAQ,EAAE,OAAO,EAAE,GAAG,SAAS,mBAAmB,EAAE,CAAA;IACpD,OAAO,CAAC,EAAE,qBAAqB,CAAA;IAC/B,OAAO,CAAC,EAAE,qBAAqB,CAAA;CAChC;AAiBD;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,OAAO,GAAG,gBAAgB,GAAG,IAAI,CAwClF;AAi4BD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,OAAO,EAAE,GAAG,SAAS,mBAAmB,EAAE,GACnD,mBAAmB,EAAE,CA6BvB;AAED,kFAAkF;AAClF,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAuB3F"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
size?: number | string;
|
|
3
|
+
/**
|
|
4
|
+
* 图标内芯:`plus` = 添加(对话拖放覆盖层用),`upload` = 上传(选文件弹窗用)。
|
|
5
|
+
* 轮廓一致,只换中间那笔,保持同一套视觉语言。
|
|
6
|
+
*/
|
|
7
|
+
variant?: 'plus' | 'upload';
|
|
3
8
|
};
|
|
4
9
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
10
|
size: number | string;
|
|
11
|
+
variant: "plus" | "upload";
|
|
6
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
13
|
declare const _default: typeof __VLS_export;
|
|
8
14
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatFileDropIcon.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/icons/ChatFileDropIcon.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatFileDropIcon.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/icons/ChatFileDropIcon.vue"],"names":[],"mappings":"AA8DA,KAAK,WAAW,GAAG;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;CAC5B,CAAC;AAsEJ,QAAA,MAAM,YAAY;UA5EP,MAAM,GAAG,MAAM;aAKZ,MAAM,GAAG,QAAQ;6EA0E7B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=ChatTipMenuLocalFileIcon.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatTipMenuLocalFileIcon.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/icons/ChatTipMenuLocalFileIcon.vue"],"names":[],"mappings":"AAuBA,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACvB,CAAC;AA4CF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=ChatTipMenuMyFilesIcon.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatTipMenuMyFilesIcon.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/icons/ChatTipMenuMyFilesIcon.vue"],"names":[],"mappings":"AAuBA,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACvB,CAAC;AA4CF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -9,9 +9,11 @@ export { default as ChatSenderAtIcon } from './ChatSenderAtIcon.vue';
|
|
|
9
9
|
export { default as ChatFileDropIcon } from './ChatFileDropIcon.vue';
|
|
10
10
|
export { default as ChatArtifactFilesIcon } from './ChatArtifactFilesIcon.vue';
|
|
11
11
|
export { default as ChatSpeakingIcon } from './ChatSpeakingIcon.vue';
|
|
12
|
-
export { chatTipMenuItemIcons } from './tipMenuItemIcons';
|
|
12
|
+
export { chatTipMenuItemIcons, chatFileSourceIcons } from './tipMenuItemIcons';
|
|
13
13
|
export { default as ChatTipMenuExpertIcon } from './ChatTipMenuExpertIcon.vue';
|
|
14
14
|
export { default as ChatTipMenuSkillIcon } from './ChatTipMenuSkillIcon.vue';
|
|
15
15
|
export { default as ChatTipMenuKnowledgeIcon } from './ChatTipMenuKnowledgeIcon.vue';
|
|
16
16
|
export { default as ChatTipMenuModeIcon } from './ChatTipMenuModeIcon.vue';
|
|
17
|
+
export { default as ChatTipMenuLocalFileIcon } from './ChatTipMenuLocalFileIcon.vue';
|
|
18
|
+
export { default as ChatTipMenuMyFilesIcon } from './ChatTipMenuMyFilesIcon.vue';
|
|
17
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC1E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC1E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB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AO,IAAI,sBAAsB,EAAE,MAAM,8BAA8B,CAAA"}
|
|
@@ -27,4 +27,28 @@ export declare const chatTipMenuItemIcons: {
|
|
|
27
27
|
size?: number | string;
|
|
28
28
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>;
|
|
29
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* 「+ → 添加文件」子菜单里三个来源的图标(本地文件 / 我的文件 / 知识库)。
|
|
32
|
+
*
|
|
33
|
+
* 与 `chatTipMenuItemIcons` 分开:那张表按**根菜单项 id** 取图标(upload / mode / …),
|
|
34
|
+
* 这张表按**来源 id** 取(local / myFiles / knowledge),两套 key 空间不同,
|
|
35
|
+
* 混在一张表里迟早撞车。
|
|
36
|
+
*/
|
|
37
|
+
export declare const chatFileSourceIcons: {
|
|
38
|
+
local: import("vue").Raw<import("vue").DefineComponent<{
|
|
39
|
+
size?: number | string;
|
|
40
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
41
|
+
size?: number | string;
|
|
42
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>;
|
|
43
|
+
myFiles: import("vue").Raw<import("vue").DefineComponent<{
|
|
44
|
+
size?: number | string;
|
|
45
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
46
|
+
size?: number | string;
|
|
47
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>;
|
|
48
|
+
knowledge: import("vue").Raw<import("vue").DefineComponent<{
|
|
49
|
+
size?: number | string;
|
|
50
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
51
|
+
size?: number | string;
|
|
52
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>;
|
|
53
|
+
};
|
|
30
54
|
//# sourceMappingURL=tipMenuItemIcons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tipMenuItemIcons.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/icons/tipMenuItemIcons.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tipMenuItemIcons.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/icons/tipMenuItemIcons.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMI,CAAA;AAErC;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;CAIK,CAAA"}
|
|
@@ -2,6 +2,8 @@ export { default as ChatMessage } from './components/ChatMessage.vue';
|
|
|
2
2
|
export { default as ChatSender } from './components/ChatSender.vue';
|
|
3
3
|
export { default as ChatBot } from './ChatBot.vue';
|
|
4
4
|
export { default as ChatApp } from './ChatApp.vue';
|
|
5
|
+
export { default as ChatFilePickerDialog } from './components/ChatFilePickerDialog.vue';
|
|
6
|
+
export { default as ChatKnowledgeLibraryList } from './components/ChatKnowledgeLibraryList.vue';
|
|
5
7
|
export * from './components';
|
|
6
8
|
export { ChatArtifactFilesIcon, ChatSenderAppendIcon, ChatSenderAtIcon, ChatSenderCheckIcon, ChatSenderClickIcon, ChatSenderLinkIcon, ChatSenderMicIcon, ChatSenderMicOffIcon, ChatSenderMoreIcon, } from './icons';
|
|
7
9
|
export { ACTION_BAR_SYSTEM_PROMPT, ARTIFACT_BLOCK_SYSTEM_PROMPT, ASK_USER_FORM_SYSTEM_PROMPT, CHART_BLOCK_SYSTEM_PROMPT, } from './mdoc/builtInRegistry';
|
|
@@ -25,6 +27,8 @@ export { DEFAULT_CHAT_ATTACHMENT_LIMITS, buildChatSendPayload, classifyAttachmen
|
|
|
25
27
|
export { currentUserMessageId, resolveEditCut, resolveRetryCut, userMessageText, } from './restartUserTurn';
|
|
26
28
|
export { applyModelChange, createModelChangeDividerId, formatModelChangeCaption, lastRenderableMessageIndex, MODEL_CHANGE_DIVIDER_HINT, reconstructModelChangeDividers, visibleModelChangeDividers, } from './modelChangeDivider';
|
|
27
29
|
export { createChatAttachmentController } from './attachmentController';
|
|
30
|
+
export { CHAT_FILE_SOURCE_LABELS, CHAT_FILE_SOURCE_MENU_IDS, CHAT_FILE_SOURCE_TITLES, chatFilePickerEntryKey, groupChatFileLibraries, isAttachableChatFileEntry, parseChatFileSourceId, toChatFolderRefFromEntry, toChatFolderRefsFromEntries, toChatResourceFileFromEntry, toChatResourceFilesFromEntries, visibleChatFilePickerRows, visibleChatFilePickerTargetRows, } from './chatFilePicker';
|
|
31
|
+
export type { ChatFilePickerLibraryFilesLoader, ChatFileLibraryPickerSource, ChatFileLibrarySourceId, ChatFilePickerEntry, ChatFilePickerLibrary, ChatFilePickerLibraryLoader, ChatFilePickerLoader, ChatFilePickerRow, ChatFilePickerSelection, ChatFilePickerSource, ChatFilePickerSourceId, ChatFilePickerSources, ChatFilePickerTab, ChatFileSourceId, ChatFileTransferSources, ChatFileTreePickerSource, } from './chatFilePicker';
|
|
28
32
|
export { getChatFileIconSrc } from './fileIcons';
|
|
29
33
|
export { getFilesFromDataTransfer, hasFileDrag } from './fileDrop';
|
|
30
34
|
export { CHAT_QUEUE_MAX_ITEMS, clampChatQueue, editChatQueueItem, enqueueChatPayload, moveChatQueueItem, removeChatQueueItem, takeChatQueueItem, } from './chatQueue';
|
|
@@ -61,6 +65,11 @@ export { normalizeAgentHistoryMessages, normalizeHistoryResourceFile } from './h
|
|
|
61
65
|
export type { HydrateHistoryInput, HydrateHistoryOptions, HydrateHistorySession, } from './hydrateHistory';
|
|
62
66
|
export { DEFAULT_SIDEBAR_NAV_ITEMS, DEFAULT_SIDEBAR_PERSIST_KEY, DEFAULT_SIDEBAR_TEXTS, findHistorySession, groupSessionsByTime, historySessionId, partitionSessionsByGroup, isActiveHistorySession, mapHistoryItemToSession, matchesHistorySession, parseSessionRunStatus, } from './chatSessionSidebarTypes';
|
|
63
67
|
export type { ChatSessionGroup, ChatSessionGroupBucket, ChatSessionHistoryGroup, ChatSessionListItem, ChatSessionNavItem, ChatSessionRunStatus, ChatSidebarTexts, } from './chatSessionSidebarTypes';
|
|
68
|
+
export { DEFAULT_SIDEBAR_ASSETS, SIDEBAR_MORE_NAV_ICON, SIDEBAR_NAV_CHECK_ICON, filesIcon, filesActiveIcon, } from './chatSessionSidebarAssets';
|
|
69
|
+
export type { ChatSessionSidebarAssets } from './chatSessionSidebarAssets';
|
|
70
|
+
export { DEFAULT_MY_FILES_NAV_KEY, DEFAULT_MY_FILES_NAV_LABEL } from './chatAppMyFiles';
|
|
71
|
+
export type { ChatAppMyFilesConfig } from './chatAppMyFiles';
|
|
64
72
|
export { useChatSessionHistory } from './composables/useChatSessionHistory';
|
|
65
73
|
export type { UseChatSessionHistoryOptions, UseChatSessionHistoryReturn, } from './composables/useChatSessionHistory';
|
|
74
|
+
export * from './components/files';
|
|
66
75
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/chat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA;AAClD,cAAc,cAAc,CAAA;AAC5B,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,SAAS,CAAA;AAEhB,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,2BAA2B,EAC3B,yBAAyB,GAC1B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,2BAA2B,EAC3B,kCAAkC,EAClC,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,EACvB,wBAAwB,EACxB,kBAAkB,EAClB,gCAAgC,EAChC,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EAEtB,mBAAmB,EACnB,+BAA+B,EAC/B,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,WAAW,CAAA;AAClB,YAAY,EACV,aAAa,EACb,yBAAyB,EACzB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,kBAAkB,GACnB,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,UAAU,EACV,qBAAqB,EACrB,6BAA6B,GAC9B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,uBAAuB,CAAA;AAC9B,YAAY,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAC9D,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC9D,YAAY,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAEpD,mBAAmB,SAAS,CAAA;AAE5B,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACpF,YAAY,EACV,qBAAqB,EACrB,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/chat/index.ts"],"names":[],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AO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,2BAA2B,CAAA;AAClC,YAAY,EACV,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,SAAS,EACT,eAAe,GAChB,MAAM,4BAA4B,CAAA;AACnC,YAAY,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAC1E,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AACvF,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,YAAY,EACV,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,qCAAqC,CAAA;AAM5C,cAAc,oBAAoB,CAAA"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import type { ConversationUiAction } from '../types';
|
|
2
2
|
import type { MdocComponentNode } from './parser';
|
|
3
|
+
import '../components/files/chatArtifactMenu.css';
|
|
3
4
|
type __VLS_Props = {
|
|
4
5
|
node: MdocComponentNode;
|
|
5
6
|
variant?: 'inline' | 'list';
|
|
7
|
+
/** 覆盖注入策略:置灰全部文件操作。 */
|
|
8
|
+
actionsDisabled?: boolean;
|
|
9
|
+
/** 覆盖注入策略:云端模式,点击任意操作提示「暂不支持」。 */
|
|
10
|
+
actionsUnavailable?: boolean;
|
|
6
11
|
};
|
|
7
12
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
13
|
action: (payload: ConversationUiAction) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArtifactBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/ArtifactBlock.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ArtifactBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/ArtifactBlock.vue"],"names":[],"mappings":"AAi4BA,OAAO,KAAK,EAAE,oBAAoB,EAAoB,MAAM,UAAU,CAAA;AAStE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAejD,OAAO,0CAA0C,CAAA;AAajD,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,iBAAiB,CAAA;IACvB,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;IAC3B,uBAAuB;IACvB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B,CAAC;AA2pBJ,QAAA,MAAM,YAAY;;;;;aAhqBJ,QAAQ,GAAG,MAAM;6EAoqB7B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArtifactStack.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/ArtifactStack.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ArtifactStack.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/ArtifactStack.vue"],"names":[],"mappings":"AAAA,OAwEO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAIjD,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,SAAS,iBAAiB,EAAE,CAAA;CACpC,CAAC;AAsEF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentNodes.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/ContentNodes.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContentNodes.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/ContentNodes.vue"],"names":[],"mappings":"AA6aA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAkBpD,OAAO,aAAa,CAAA;AACpB,OAAO,oBAAoB,CAAA;AAM3B,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,kCAAkC;IAClC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;CAChC,CAAC;AAudF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -26,11 +26,24 @@ export declare function resolveArtifactDownloadFileName(title: string, options?:
|
|
|
26
26
|
* Qiniu-style `attname` is what actually names a cross-origin download.
|
|
27
27
|
* Browsers ignore `<a download>` for other-origin URLs, so a src like
|
|
28
28
|
* `…/unit_design.md?attname=unit_design.md` would save as `unit_design.md`
|
|
29
|
-
* unless we overwrite `attname` with the artifact title.
|
|
29
|
+
* unless we overwrite `attname` with the artifact title. Kept for the
|
|
30
|
+
* no-CORS fallback path in `downloadFromSrc`.
|
|
30
31
|
*/
|
|
31
32
|
export declare function withDownloadAttname(src: string, fileName: string): string;
|
|
32
|
-
/**
|
|
33
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Download a remote `src` **inside the current page**, naming the file with
|
|
35
|
+
* `fileName` (title first).
|
|
36
|
+
*
|
|
37
|
+
* Three-tier strategy, in order of preference:
|
|
38
|
+
* 1. `fetch` → Blob → object URL. In-place download, filename fully under our
|
|
39
|
+
* control (the `download` attribute only works for same-origin/blob URLs,
|
|
40
|
+
* which the object URL satisfies). Requires CORS on the file host.
|
|
41
|
+
* 2. Hidden iframe. No new tab, no page navigation; relies on the server
|
|
42
|
+
* sending `Content-Disposition: attachment` (Qiniu's `attname` does).
|
|
43
|
+
* 3. Nothing else — deliberately no `target="_blank"` fallback, because a
|
|
44
|
+
* blank tab is the symptom this function exists to avoid.
|
|
45
|
+
*/
|
|
46
|
+
export declare function downloadFromSrc(src: string, fileName: string): Promise<void>;
|
|
34
47
|
export interface DownloadArtifactInput {
|
|
35
48
|
title: string;
|
|
36
49
|
type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifactDownload.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/artifactDownload.ts"],"names":[],"mappings":"AAEA,iFAAiF;AACjF,eAAO,MAAM,mBAAmB,wDAAyD,CAAA;AACzF,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEnE,uEAAuE;AACvE,eAAO,MAAM,mBAAmB,oFAUtB,CAAA;AACV,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEnE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,gBAAgB,CAEzE;AAkCD,oGAAoG;AACpG,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,GAChB;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAerC;AAsBD,gFAAgF;AAChF,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAO,GAC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GAYG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBlF;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,IAAI,CAYnE"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { MdocComponentNode, MdocNode } from './parser';
|
|
2
2
|
export type ArtifactStackGroup = {
|
|
3
|
+
/** 仅表示「一段连续卡片横向排布的行容器」,不再代表折叠堆。 */
|
|
3
4
|
type: 'artifact-stack';
|
|
4
5
|
/** Stable key = first artifact id (survives 1 → N while streaming). */
|
|
5
6
|
id: string;
|
|
@@ -10,8 +11,12 @@ export type ArtifactStackPassItem = {
|
|
|
10
11
|
node: MdocNode;
|
|
11
12
|
} | ArtifactStackGroup;
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
14
|
+
* Collect consecutive `{% artifact %}` nodes into one horizontal row container.
|
|
15
|
+
*
|
|
16
|
+
* This is layout-only grouping: every node is rendered as its own card, side by
|
|
17
|
+
* side (wrapping on narrow screens). No card is folded, hidden or replaced by a
|
|
18
|
+
* "共 N 个文件" summary. Whitespace-only text between cards is absorbed so it
|
|
19
|
+
* cannot break the run into separate rows.
|
|
15
20
|
*/
|
|
16
21
|
export declare function groupConsecutiveArtifacts(nodes: readonly MdocNode[]): ArtifactStackPassItem[];
|
|
17
22
|
//# sourceMappingURL=artifactStack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifactStack.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/artifactStack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAE3D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,gBAAgB,CAAA;IACtB,uEAAuE;IACvE,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,iBAAiB,EAAE,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG,kBAAkB,CAAA;AAWzF
|
|
1
|
+
{"version":3,"file":"artifactStack.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/artifactStack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAE3D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,mCAAmC;IACnC,IAAI,EAAE,gBAAgB,CAAA;IACtB,uEAAuE;IACvE,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,iBAAiB,EAAE,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG,kBAAkB,CAAA;AAWzF;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,GAAG,qBAAqB,EAAE,CAiC7F"}
|
|
@@ -12,16 +12,32 @@ export declare function openFileViewerPluginName(kind: ChatPreviewKind): OpenFil
|
|
|
12
12
|
*/
|
|
13
13
|
export declare function viewerFileName(resource: ChatResourceFile, kind: ChatPreviewKind): string;
|
|
14
14
|
export declare function viewerMimeType(resource: ChatResourceFile, kind?: ChatPreviewKind): string | undefined;
|
|
15
|
-
|
|
15
|
+
/** 外壳可下发的查看命令;与 `@open-file-viewer/core` 的 `PreviewCommand` 一致。 */
|
|
16
|
+
export type OpenFileViewerCommand = 'zoom-in' | 'zoom-out' | 'zoom-reset' | 'rotate-right' | 'rotate-left';
|
|
17
|
+
/**
|
|
18
|
+
* 预览器上报给宿主的查看能力。
|
|
19
|
+
*
|
|
20
|
+
* 图片插件把 `-` `+` 旋转图片 重置图片视图 100% 画在自己那条内联控制条里;
|
|
21
|
+
* 宿主想只要一层头部时,就把控制条关掉(`headlessImageControls`),
|
|
22
|
+
* 照这份状态在自己的头部渲染同样的动作。
|
|
23
|
+
*/
|
|
24
|
+
export interface OpenFileViewerChromeState {
|
|
16
25
|
canZoom: boolean;
|
|
17
26
|
/** `null` until the preview reports a scale. `100` is fit-to-width. */
|
|
18
27
|
zoomPercent: number | null;
|
|
28
|
+
/** 可旋转(图片插件);文档类预览一般没有。 */
|
|
29
|
+
canRotate: boolean;
|
|
30
|
+
/** 可一键重置缩放与旋转(图片插件的「重置图片视图」)。 */
|
|
31
|
+
canReset: boolean;
|
|
19
32
|
}
|
|
20
33
|
export interface MountedOpenFileViewer {
|
|
21
34
|
destroy: () => void;
|
|
22
35
|
viewport: HTMLElement | null;
|
|
23
36
|
zoomIn: () => void;
|
|
24
37
|
zoomOut: () => void;
|
|
38
|
+
resetZoom: () => void;
|
|
39
|
+
rotateLeft: () => void;
|
|
40
|
+
rotateRight: () => void;
|
|
25
41
|
}
|
|
26
42
|
/**
|
|
27
43
|
* Pages should fill the sidebar and scroll vertically. `contain` also fits
|
|
@@ -33,6 +49,13 @@ export declare function mountOpenFileViewer(options: {
|
|
|
33
49
|
container: HTMLElement;
|
|
34
50
|
resource: ChatResourceFile;
|
|
35
51
|
kind: ChatPreviewKind;
|
|
36
|
-
onZoomChange?: (state:
|
|
52
|
+
onZoomChange?: (state: OpenFileViewerChromeState) => void;
|
|
53
|
+
/**
|
|
54
|
+
* 连图片自带的控制条(`.ofv-image-controls`:`-` `+` 旋转图片 重置图片视图 100%)一起关掉。
|
|
55
|
+
*
|
|
56
|
+
* 图片插件的规则是「`toolbar` 为真才不画自己那排控制条」,所以宿主想要单层操作栏时
|
|
57
|
+
* 必须给它一个空的 `toolbar.render`;缩放/旋转/重置命令仍从这个 ctx 拿得到。
|
|
58
|
+
*/
|
|
59
|
+
headlessImageControls?: boolean;
|
|
37
60
|
}): Promise<MountedOpenFileViewer>;
|
|
38
61
|
//# sourceMappingURL=openFileViewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openFileViewer.d.ts","sourceRoot":"","sources":["../../../src/components/chat/openFileViewer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAChE,OAAO,kCAAkC,CAAA;AAEzC,MAAM,MAAM,wBAAwB,GAChC,OAAO,GACP,OAAO,GACP,OAAO,GACP,MAAM,GACN,KAAK,GACL,QAAQ,GACR,SAAS,CAAA;AAOb,4FAA4F;AAC5F,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,eAAe,GAAG,wBAAwB,GAAG,IAAI,CAqB/F;AA0CD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,gBAAgB,EAAE,IAAI,EAAE,eAAe,GAAG,MAAM,CAaxF;AAED,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,gBAAgB,EAC1B,IAAI,CAAC,EAAE,eAAe,GACrB,MAAM,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"openFileViewer.d.ts","sourceRoot":"","sources":["../../../src/components/chat/openFileViewer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAChE,OAAO,kCAAkC,CAAA;AAEzC,MAAM,MAAM,wBAAwB,GAChC,OAAO,GACP,OAAO,GACP,OAAO,GACP,MAAM,GACN,KAAK,GACL,QAAQ,GACR,SAAS,CAAA;AAOb,4FAA4F;AAC5F,wBAAgB,wBAAwB,CAAC,IAAI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OAAO,CAAA;CAChC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAoEjC"}
|
|
@@ -11,6 +11,20 @@ export declare const OPEN_FILE_VIEWER_KINDS: readonly ["image", "pdf", "docx", "
|
|
|
11
11
|
export declare function isDocumentViewerKind(kind: ChatPreviewKind | string): kind is (typeof DOCUMENT_VIEWER_KINDS)[number];
|
|
12
12
|
export declare function isOpenFileViewerKind(kind: ChatPreviewKind | string): kind is (typeof OPEN_FILE_VIEWER_KINDS)[number];
|
|
13
13
|
export declare function getChatPreviewKind(resource: ChatResourceFile): ChatPreviewKind;
|
|
14
|
+
/** 该扩展名是否属于「只读文本」——不需要语法高亮,适合阅读视图。 */
|
|
15
|
+
export declare function isPlainTextExtension(ext: string | undefined): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* 这个资源该不该走「阅读视图」(一页纸、无行号、无高亮)。
|
|
18
|
+
*
|
|
19
|
+
* 三个入口共用这一条判定:对话侧预览面板(`ChatFilePreview`)、AI 产物抽屉
|
|
20
|
+
* (`ChatArtifactPreview`)、我的资料(`myFilesPreview` 系)——
|
|
21
|
+
* 同一个 .txt 在三个地方必须是同一种观感,**不要各写一份扩展名表**。
|
|
22
|
+
*
|
|
23
|
+
* 口径:先确认 kind 是 `text`(代码 / 纯文本混在这一个 kind 里),
|
|
24
|
+
* 再看扩展名;取不到扩展名时回落到 `url_type`(接口常只给 `txt` / `text`)。
|
|
25
|
+
* 缺扩展名按纯文本处理 —— 猜成代码只会把一份报告显示成编辑器。
|
|
26
|
+
*/
|
|
27
|
+
export declare function isPlainTextResource(resource: ChatResourceFile): boolean;
|
|
14
28
|
export declare function registerChatPreviewRenderer(kind: ChatPreviewKind | string, renderer: Component): () => void;
|
|
15
29
|
export declare function resolveChatPreviewRenderer(kind: ChatPreviewKind | string): ChatPreviewRenderer | undefined;
|
|
16
30
|
//# sourceMappingURL=previewRenderers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"previewRenderers.d.ts","sourceRoot":"","sources":["../../../src/components/chat/previewRenderers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAErD,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAIrF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,+CAKa,CAAA;AAE/C,qEAAqE;AACrE,eAAO,MAAM,sBAAsB,8EASY,CAAA;AAE/C,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,eAAe,GAAG,MAAM,GAC7B,IAAI,IAAI,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAEhD;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,eAAe,GAAG,MAAM,GAC7B,IAAI,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAEjD;AAyFD,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,eAAe,CAM9E;AA2DD,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,eAAe,GAAG,MAAM,EAC9B,QAAQ,EAAE,SAAS,GAClB,MAAM,IAAI,CAQZ;AAED,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,eAAe,GAAG,MAAM,GAC7B,mBAAmB,GAAG,SAAS,CAEjC"}
|
|
1
|
+
{"version":3,"file":"previewRenderers.d.ts","sourceRoot":"","sources":["../../../src/components/chat/previewRenderers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAErD,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAIrF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,+CAKa,CAAA;AAE/C,qEAAqE;AACrE,eAAO,MAAM,sBAAsB,8EASY,CAAA;AAE/C,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,eAAe,G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