@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.
Files changed (326) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +1 -1
  3. package/dist/{ChartRenderer-CdMqq77C.js → ChartRenderer-Cjy0_9Vd.js} +1 -1
  4. package/dist/{ChartRenderer-D5Z9667V.cjs → ChartRenderer-DYaFJva0.cjs} +1 -1
  5. package/dist/ChatMyFilesArtifacts-B8IrM7Gv.cjs +1 -0
  6. package/dist/ChatMyFilesArtifacts-CPbY91Eg.js +1029 -0
  7. package/dist/chat-token.css +209 -7
  8. package/dist/components/chat/ChatApp.vue.d.ts +31 -7
  9. package/dist/components/chat/ChatApp.vue.d.ts.map +1 -1
  10. package/dist/components/chat/ChatBot.vue.d.ts +3 -3
  11. package/dist/components/chat/ChatBot.vue.d.ts.map +1 -1
  12. package/dist/components/chat/addToTask.d.ts +46 -0
  13. package/dist/components/chat/addToTask.d.ts.map +1 -0
  14. package/dist/components/chat/attachmentController.d.ts.map +1 -1
  15. package/dist/components/chat/attachments.d.ts.map +1 -1
  16. package/dist/components/chat/chatAppMyFiles.d.ts +43 -0
  17. package/dist/components/chat/chatAppMyFiles.d.ts.map +1 -0
  18. package/dist/components/chat/chatContext.d.ts +17 -0
  19. package/dist/components/chat/chatContext.d.ts.map +1 -1
  20. package/dist/components/chat/chatFilePicker.d.ts +243 -0
  21. package/dist/components/chat/chatFilePicker.d.ts.map +1 -0
  22. package/dist/components/chat/chatSessionSidebarAssets.d.ts +13 -0
  23. package/dist/components/chat/chatSessionSidebarAssets.d.ts.map +1 -1
  24. package/dist/components/chat/cloudAxios.d.ts +30 -0
  25. package/dist/components/chat/cloudAxios.d.ts.map +1 -0
  26. package/dist/components/chat/cloudConfig.d.ts +95 -8
  27. package/dist/components/chat/cloudConfig.d.ts.map +1 -1
  28. package/dist/components/chat/components/ArtifactPreview.vue.d.ts +6 -0
  29. package/dist/components/chat/components/ArtifactPreview.vue.d.ts.map +1 -1
  30. package/dist/components/chat/components/ChatActionbar.vue.d.ts +2 -2
  31. package/dist/components/chat/components/ChatAttachments.vue.d.ts +8 -1
  32. package/dist/components/chat/components/ChatAttachments.vue.d.ts.map +1 -1
  33. package/dist/components/chat/components/ChatComposerContextBar.vue.d.ts.map +1 -1
  34. package/dist/components/chat/components/ChatFileCard.vue.d.ts +2 -2
  35. package/dist/components/chat/components/ChatFileCard.vue.d.ts.map +1 -1
  36. package/dist/components/chat/components/ChatFilePickerDialog.vue.d.ts +56 -0
  37. package/dist/components/chat/components/ChatFilePickerDialog.vue.d.ts.map +1 -0
  38. package/dist/components/chat/components/ChatFilePreview.vue.d.ts +41 -2
  39. package/dist/components/chat/components/ChatFilePreview.vue.d.ts.map +1 -1
  40. package/dist/components/chat/components/ChatFilePreviewPanel.vue.d.ts +9 -2
  41. package/dist/components/chat/components/ChatFilePreviewPanel.vue.d.ts.map +1 -1
  42. package/dist/components/chat/components/ChatKnowledgeLibraryList.vue.d.ts +32 -0
  43. package/dist/components/chat/components/ChatKnowledgeLibraryList.vue.d.ts.map +1 -0
  44. package/dist/components/chat/components/ChatMessage.vue.d.ts +1 -1
  45. package/dist/components/chat/components/ChatPreviewEmpty.vue.d.ts +53 -0
  46. package/dist/components/chat/components/ChatPreviewEmpty.vue.d.ts.map +1 -0
  47. package/dist/components/chat/components/ChatPreviewHeader.vue.d.ts +87 -0
  48. package/dist/components/chat/components/ChatPreviewHeader.vue.d.ts.map +1 -0
  49. package/dist/components/chat/components/ChatProvider.vue.d.ts +2 -2
  50. package/dist/components/chat/components/ChatProvider.vue.d.ts.map +1 -1
  51. package/dist/components/chat/components/ChatQueue.vue.d.ts.map +1 -1
  52. package/dist/components/chat/components/ChatQuotaDialog.vue.d.ts.map +1 -1
  53. package/dist/components/chat/components/ChatSender.vue.d.ts +18 -1
  54. package/dist/components/chat/components/ChatSender.vue.d.ts.map +1 -1
  55. package/dist/components/chat/components/ChatSessionExpandHistoryCard.vue.d.ts +1 -1
  56. package/dist/components/chat/components/ChatSessionExpandHistoryCard.vue.d.ts.map +1 -1
  57. package/dist/components/chat/components/ChatSessionGroupRow.vue.d.ts +3 -0
  58. package/dist/components/chat/components/ChatSessionGroupRow.vue.d.ts.map +1 -1
  59. package/dist/components/chat/components/ChatSessionGroupSection.vue.d.ts +5 -2
  60. package/dist/components/chat/components/ChatSessionGroupSection.vue.d.ts.map +1 -1
  61. package/dist/components/chat/components/ChatSessionPinnedSection.vue.d.ts +3 -0
  62. package/dist/components/chat/components/ChatSessionPinnedSection.vue.d.ts.map +1 -1
  63. package/dist/components/chat/components/ChatSessionSidebar.vue.d.ts +21 -1
  64. package/dist/components/chat/components/ChatSessionSidebar.vue.d.ts.map +1 -1
  65. package/dist/components/chat/components/ChatSessionStatusMark.vue.d.ts +1 -1
  66. package/dist/components/chat/components/ChatSessionStatusMark.vue.d.ts.map +1 -1
  67. package/dist/components/chat/components/ChatTipMenu.vue.d.ts.map +1 -1
  68. package/dist/components/chat/components/ConversationIndex.vue.d.ts.map +1 -1
  69. package/dist/components/chat/components/ConversationList.vue.d.ts +2 -2
  70. package/dist/components/chat/components/MessageBubble.vue.d.ts +1 -1
  71. package/dist/components/chat/components/MessageBubble.vue.d.ts.map +1 -1
  72. package/dist/components/chat/components/OpenFileViewerHost.vue.d.ts +6 -0
  73. package/dist/components/chat/components/OpenFileViewerHost.vue.d.ts.map +1 -1
  74. package/dist/components/chat/components/ProcessStepGroup.vue.d.ts +1 -1
  75. package/dist/components/chat/components/ProcessStepGroup.vue.d.ts.map +1 -1
  76. package/dist/components/chat/components/SubagentRunsPanel.vue.d.ts.map +1 -1
  77. package/dist/components/chat/components/document-viewer/DocumentViewer.vue.d.ts +10 -0
  78. package/dist/components/chat/components/document-viewer/DocumentViewer.vue.d.ts.map +1 -1
  79. package/dist/components/chat/components/document-viewer/bento/BentoRenderer.vue.d.ts +1 -0
  80. package/dist/components/chat/components/document-viewer/bento/BentoRenderer.vue.d.ts.map +1 -1
  81. package/dist/components/chat/components/document-viewer/chromeBridge.d.ts +53 -0
  82. package/dist/components/chat/components/document-viewer/chromeBridge.d.ts.map +1 -0
  83. package/dist/components/chat/components/document-viewer/html/HtmlRenderer.vue.d.ts +1 -0
  84. package/dist/components/chat/components/document-viewer/html/HtmlRenderer.vue.d.ts.map +1 -1
  85. package/dist/components/chat/components/document-viewer/markdown/MarkdownRenderer.vue.d.ts +1 -0
  86. package/dist/components/chat/components/document-viewer/markdown/MarkdownRenderer.vue.d.ts.map +1 -1
  87. package/dist/components/chat/components/document-viewer/office/OfficeDocumentViewer.vue.d.ts.map +1 -1
  88. package/dist/components/chat/components/document-viewer/onlyoffice/OnlyOfficeRenderer.vue.d.ts +9 -3
  89. package/dist/components/chat/components/document-viewer/onlyoffice/OnlyOfficeRenderer.vue.d.ts.map +1 -1
  90. package/dist/components/chat/components/document-viewer/onlyoffice/onlyOfficeConfig.d.ts +36 -1
  91. package/dist/components/chat/components/document-viewer/onlyoffice/onlyOfficeConfig.d.ts.map +1 -1
  92. package/dist/components/chat/components/document-viewer/onlyoffice/onlyOfficeProfile.d.ts +153 -0
  93. package/dist/components/chat/components/document-viewer/onlyoffice/onlyOfficeProfile.d.ts.map +1 -0
  94. package/dist/components/chat/components/document-viewer/pdf/PdfRenderer.vue.d.ts +1 -0
  95. package/dist/components/chat/components/document-viewer/pdf/PdfRenderer.vue.d.ts.map +1 -1
  96. package/dist/components/chat/components/document-viewer/text/TextRenderer.vue.d.ts +1 -0
  97. package/dist/components/chat/components/document-viewer/text/TextRenderer.vue.d.ts.map +1 -1
  98. package/dist/components/chat/components/document-viewer/types.d.ts +18 -0
  99. package/dist/components/chat/components/document-viewer/types.d.ts.map +1 -1
  100. package/dist/components/chat/components/document-viewer/xlsx/XlsxRenderer.vue.d.ts +1 -0
  101. package/dist/components/chat/components/document-viewer/xlsx/XlsxRenderer.vue.d.ts.map +1 -1
  102. package/dist/components/chat/components/files/ArtifactFileMoreButton.vue.d.ts +34 -0
  103. package/dist/components/chat/components/files/ArtifactFileMoreButton.vue.d.ts.map +1 -0
  104. package/dist/components/chat/components/files/ChatArtifactFileRow.vue.d.ts +25 -0
  105. package/dist/components/chat/components/files/ChatArtifactFileRow.vue.d.ts.map +1 -0
  106. package/dist/components/chat/components/files/ChatArtifactPreview.vue.d.ts +31 -0
  107. package/dist/components/chat/components/files/ChatArtifactPreview.vue.d.ts.map +1 -0
  108. package/dist/components/chat/components/files/ChatArtifactsSkeleton.vue.d.ts +17 -0
  109. package/dist/components/chat/components/files/ChatArtifactsSkeleton.vue.d.ts.map +1 -0
  110. package/dist/components/chat/components/files/ChatFileCheckbox.vue.d.ts +24 -0
  111. package/dist/components/chat/components/files/ChatFileCheckbox.vue.d.ts.map +1 -0
  112. package/dist/components/chat/components/files/ChatMyFiles.vue.d.ts +38 -0
  113. package/dist/components/chat/components/files/ChatMyFiles.vue.d.ts.map +1 -0
  114. package/dist/components/chat/components/files/ChatMyFilesArtifacts.vue.d.ts +18 -0
  115. package/dist/components/chat/components/files/ChatMyFilesArtifacts.vue.d.ts.map +1 -0
  116. package/dist/components/chat/components/files/ChatMyFilesDirectory.vue.d.ts +31 -0
  117. package/dist/components/chat/components/files/ChatMyFilesDirectory.vue.d.ts.map +1 -0
  118. package/dist/components/chat/components/files/ChatMyFilesDocEditor.vue.d.ts +44 -0
  119. package/dist/components/chat/components/files/ChatMyFilesDocEditor.vue.d.ts.map +1 -0
  120. package/dist/components/chat/components/files/ChatMyFilesEmptyGuide.vue.d.ts +12 -0
  121. package/dist/components/chat/components/files/ChatMyFilesEmptyGuide.vue.d.ts.map +1 -0
  122. package/dist/components/chat/components/files/ChatMyFilesFileTable.vue.d.ts +62 -0
  123. package/dist/components/chat/components/files/ChatMyFilesFileTable.vue.d.ts.map +1 -0
  124. package/dist/components/chat/components/files/ChatMyFilesFolder.vue.d.ts +48 -0
  125. package/dist/components/chat/components/files/ChatMyFilesFolder.vue.d.ts.map +1 -0
  126. package/dist/components/chat/components/files/ChatMyFilesKindMenuItemIcon.vue.d.ts +15 -0
  127. package/dist/components/chat/components/files/ChatMyFilesKindMenuItemIcon.vue.d.ts.map +1 -0
  128. package/dist/components/chat/components/{SubagentRunDialog.vue.d.ts → files/ChatMyFilesPrompt.vue.d.ts} +18 -8
  129. package/dist/components/chat/components/files/ChatMyFilesPrompt.vue.d.ts.map +1 -0
  130. package/dist/components/chat/components/files/ChatMyFilesQuickAdd.vue.d.ts +38 -0
  131. package/dist/components/chat/components/files/ChatMyFilesQuickAdd.vue.d.ts.map +1 -0
  132. package/dist/components/chat/components/files/ChatMyFilesRecent.vue.d.ts +35 -0
  133. package/dist/components/chat/components/files/ChatMyFilesRecent.vue.d.ts.map +1 -0
  134. package/dist/components/chat/components/files/ChatMyFilesSearchDialog.vue.d.ts +37 -0
  135. package/dist/components/chat/components/files/ChatMyFilesSearchDialog.vue.d.ts.map +1 -0
  136. package/dist/components/chat/components/files/ChatMyFilesState.vue.d.ts +29 -0
  137. package/dist/components/chat/components/files/ChatMyFilesState.vue.d.ts.map +1 -0
  138. package/dist/components/chat/components/files/ChatMyFilesStateArt.vue.d.ts +10 -0
  139. package/dist/components/chat/components/files/ChatMyFilesStateArt.vue.d.ts.map +1 -0
  140. package/dist/components/chat/components/files/ChatMyFilesTree.vue.d.ts +49 -0
  141. package/dist/components/chat/components/files/ChatMyFilesTree.vue.d.ts.map +1 -0
  142. package/dist/components/chat/components/files/ChatMyFilesTypeMark.vue.d.ts +13 -0
  143. package/dist/components/chat/components/files/ChatMyFilesTypeMark.vue.d.ts.map +1 -0
  144. package/dist/components/chat/components/files/ChatMyFilesUploadDialog.vue.d.ts +32 -0
  145. package/dist/components/chat/components/files/ChatMyFilesUploadDialog.vue.d.ts.map +1 -0
  146. package/dist/components/chat/components/files/ChatMyFilesUploadPanel.vue.d.ts +12 -0
  147. package/dist/components/chat/components/files/ChatMyFilesUploadPanel.vue.d.ts.map +1 -0
  148. package/dist/components/chat/components/files/ChatMyFilesViewer.vue.d.ts +59 -0
  149. package/dist/components/chat/components/files/ChatMyFilesViewer.vue.d.ts.map +1 -0
  150. package/dist/components/chat/components/files/ChatTextReader.vue.d.ts +29 -0
  151. package/dist/components/chat/components/files/ChatTextReader.vue.d.ts.map +1 -0
  152. package/dist/components/chat/components/files/chatArtifactFileActions.d.ts +118 -0
  153. package/dist/components/chat/components/files/chatArtifactFileActions.d.ts.map +1 -0
  154. package/dist/components/chat/components/files/chatFileTransfer.d.ts +102 -0
  155. package/dist/components/chat/components/files/chatFileTransfer.d.ts.map +1 -0
  156. package/dist/components/chat/components/files/chatFileTransferSources.d.ts +32 -0
  157. package/dist/components/chat/components/files/chatFileTransferSources.d.ts.map +1 -0
  158. package/dist/components/chat/components/files/chatMyFilesApi.d.ts +270 -0
  159. package/dist/components/chat/components/files/chatMyFilesApi.d.ts.map +1 -0
  160. package/dist/components/chat/components/files/chatMyFilesModel.d.ts +122 -0
  161. package/dist/components/chat/components/files/chatMyFilesModel.d.ts.map +1 -0
  162. package/dist/components/chat/components/files/chatQuickAddMenu.d.ts +33 -0
  163. package/dist/components/chat/components/files/chatQuickAddMenu.d.ts.map +1 -0
  164. package/dist/components/chat/components/files/chatReviewApi.d.ts +75 -0
  165. package/dist/components/chat/components/files/chatReviewApi.d.ts.map +1 -0
  166. package/dist/components/chat/components/files/index.d.ts +25 -0
  167. package/dist/components/chat/components/files/index.d.ts.map +1 -0
  168. package/dist/components/chat/components/files/myFilesApiUtils.d.ts +9 -0
  169. package/dist/components/chat/components/files/myFilesApiUtils.d.ts.map +1 -0
  170. package/dist/components/chat/components/files/myFilesChunkUpload.d.ts +86 -0
  171. package/dist/components/chat/components/files/myFilesChunkUpload.d.ts.map +1 -0
  172. package/dist/components/chat/components/files/myFilesExpandMemory.d.ts +15 -0
  173. package/dist/components/chat/components/files/myFilesExpandMemory.d.ts.map +1 -0
  174. package/dist/components/chat/components/files/myFilesFilePicker.d.ts +30 -0
  175. package/dist/components/chat/components/files/myFilesFilePicker.d.ts.map +1 -0
  176. package/dist/components/chat/components/files/myFilesFolderModel.d.ts +32 -0
  177. package/dist/components/chat/components/files/myFilesFolderModel.d.ts.map +1 -0
  178. package/dist/components/chat/components/files/myFilesKindMenu.d.ts +19 -0
  179. package/dist/components/chat/components/files/myFilesKindMenu.d.ts.map +1 -0
  180. package/dist/components/chat/components/files/myFilesMarkdown.d.ts +40 -0
  181. package/dist/components/chat/components/files/myFilesMarkdown.d.ts.map +1 -0
  182. package/dist/components/chat/components/files/myFilesPreview.d.ts +52 -0
  183. package/dist/components/chat/components/files/myFilesPreview.d.ts.map +1 -0
  184. package/dist/components/chat/components/files/myFilesRecentVisits.d.ts +22 -0
  185. package/dist/components/chat/components/files/myFilesRecentVisits.d.ts.map +1 -0
  186. package/dist/components/chat/components/files/myFilesRows.d.ts +86 -0
  187. package/dist/components/chat/components/files/myFilesRows.d.ts.map +1 -0
  188. package/dist/components/chat/components/files/myFilesSearch.d.ts +80 -0
  189. package/dist/components/chat/components/files/myFilesSearch.d.ts.map +1 -0
  190. package/dist/components/chat/components/files/myFilesTree.d.ts +53 -0
  191. package/dist/components/chat/components/files/myFilesTree.d.ts.map +1 -0
  192. package/dist/components/chat/components/files/myFilesUploadPersistence.d.ts +48 -0
  193. package/dist/components/chat/components/files/myFilesUploadPersistence.d.ts.map +1 -0
  194. package/dist/components/chat/components/files/myFilesUploadQueue.d.ts +125 -0
  195. package/dist/components/chat/components/files/myFilesUploadQueue.d.ts.map +1 -0
  196. package/dist/components/chat/components/files/useArtifactNotice.d.ts +17 -0
  197. package/dist/components/chat/components/files/useArtifactNotice.d.ts.map +1 -0
  198. package/dist/components/chat/components/files/useFileTransfer.d.ts +45 -0
  199. package/dist/components/chat/components/files/useFileTransfer.d.ts.map +1 -0
  200. package/dist/components/chat/components/index.d.ts +7 -1
  201. package/dist/components/chat/components/index.d.ts.map +1 -1
  202. package/dist/components/chat/composables/chatApiRequest.d.ts.map +1 -1
  203. package/dist/components/chat/composables/chatHistoryApi.d.ts.map +1 -1
  204. package/dist/components/chat/composables/chatReferenceApi.d.ts.map +1 -1
  205. package/dist/components/chat/composables/chatSessionGroupApi.d.ts.map +1 -1
  206. package/dist/components/chat/composables/chatTtsApi.d.ts.map +1 -1
  207. package/dist/components/chat/composables/fetchModelList.d.ts +2 -2
  208. package/dist/components/chat/composables/fetchModelList.d.ts.map +1 -1
  209. package/dist/components/chat/composables/useChatSkillTipMenu.d.ts +22 -1
  210. package/dist/components/chat/composables/useChatSkillTipMenu.d.ts.map +1 -1
  211. package/dist/components/chat/composables/useChatTipMenu.d.ts +13 -4
  212. package/dist/components/chat/composables/useChatTipMenu.d.ts.map +1 -1
  213. package/dist/components/chat/composer/composerExtensions.d.ts +1 -1
  214. package/dist/components/chat/fileIcons.d.ts +42 -2
  215. package/dist/components/chat/fileIcons.d.ts.map +1 -1
  216. package/dist/components/chat/hydrateHistory.d.ts.map +1 -1
  217. package/dist/components/chat/icons/ChatFileDropIcon.vue.d.ts +6 -0
  218. package/dist/components/chat/icons/ChatFileDropIcon.vue.d.ts.map +1 -1
  219. package/dist/components/chat/icons/ChatTipMenuLocalFileIcon.vue.d.ts +7 -0
  220. package/dist/components/chat/icons/ChatTipMenuLocalFileIcon.vue.d.ts.map +1 -0
  221. package/dist/components/chat/icons/ChatTipMenuMyFilesIcon.vue.d.ts +7 -0
  222. package/dist/components/chat/icons/ChatTipMenuMyFilesIcon.vue.d.ts.map +1 -0
  223. package/dist/components/chat/icons/index.d.ts +3 -1
  224. package/dist/components/chat/icons/index.d.ts.map +1 -1
  225. package/dist/components/chat/icons/tipMenuItemIcons.d.ts +24 -0
  226. package/dist/components/chat/icons/tipMenuItemIcons.d.ts.map +1 -1
  227. package/dist/components/chat/index.d.ts +9 -0
  228. package/dist/components/chat/index.d.ts.map +1 -1
  229. package/dist/components/chat/mdoc/ArtifactBlock.vue.d.ts +5 -0
  230. package/dist/components/chat/mdoc/ArtifactBlock.vue.d.ts.map +1 -1
  231. package/dist/components/chat/mdoc/ArtifactStack.vue.d.ts.map +1 -1
  232. package/dist/components/chat/mdoc/ContentNodes.vue.d.ts.map +1 -1
  233. package/dist/components/chat/mdoc/artifactDownload.d.ts +16 -3
  234. package/dist/components/chat/mdoc/artifactDownload.d.ts.map +1 -1
  235. package/dist/components/chat/mdoc/artifactStack.d.ts +7 -2
  236. package/dist/components/chat/mdoc/artifactStack.d.ts.map +1 -1
  237. package/dist/components/chat/openFileViewer.d.ts +25 -2
  238. package/dist/components/chat/openFileViewer.d.ts.map +1 -1
  239. package/dist/components/chat/previewRenderers.d.ts +14 -0
  240. package/dist/components/chat/previewRenderers.d.ts.map +1 -1
  241. package/dist/components/chat/senderReferenceStack.d.ts +1 -1
  242. package/dist/components/chat/senderReferenceStack.d.ts.map +1 -1
  243. package/dist/components/chat/subagentDisplay.d.ts +4 -18
  244. package/dist/components/chat/subagentDisplay.d.ts.map +1 -1
  245. package/dist/components/chat/types.d.ts +93 -3
  246. package/dist/components/chat/types.d.ts.map +1 -1
  247. package/dist/components/chat/utils/tipMenuBuiltin.d.ts.map +1 -1
  248. package/dist/components/index.d.ts +1 -0
  249. package/dist/components/index.d.ts.map +1 -1
  250. package/dist/components/library/LibraryApp.vue.d.ts +68 -0
  251. package/dist/components/library/LibraryApp.vue.d.ts.map +1 -0
  252. package/dist/components/library/api/libraryApi.d.ts +8 -0
  253. package/dist/components/library/api/libraryApi.d.ts.map +1 -0
  254. package/dist/components/library/api/libraryContract.d.ts +36 -0
  255. package/dist/components/library/api/libraryContract.d.ts.map +1 -0
  256. package/dist/components/library/api/libraryMockApi.d.ts +3 -0
  257. package/dist/components/library/api/libraryMockApi.d.ts.map +1 -0
  258. package/dist/components/library/api/libraryTypes.d.ts +97 -0
  259. package/dist/components/library/api/libraryTypes.d.ts.map +1 -0
  260. package/dist/components/library/components/LibraryDocEditor.vue.d.ts +50 -0
  261. package/dist/components/library/components/LibraryDocEditor.vue.d.ts.map +1 -0
  262. package/dist/components/library/components/LibraryReadonlyPane.vue.d.ts +15 -0
  263. package/dist/components/library/components/LibraryReadonlyPane.vue.d.ts.map +1 -0
  264. package/dist/components/library/components/LibrarySidebar.vue.d.ts +41 -0
  265. package/dist/components/library/components/LibrarySidebar.vue.d.ts.map +1 -0
  266. package/dist/components/library/components/LibraryTreeNode.vue.d.ts +17 -0
  267. package/dist/components/library/components/LibraryTreeNode.vue.d.ts.map +1 -0
  268. package/dist/components/library/composables/useLibraryAutoSave.d.ts +36 -0
  269. package/dist/components/library/composables/useLibraryAutoSave.d.ts.map +1 -0
  270. package/dist/components/library/index.d.ts +14 -0
  271. package/dist/components/library/index.d.ts.map +1 -0
  272. package/dist/components/library/registry/libraryFileTypes.d.ts +42 -0
  273. package/dist/components/library/registry/libraryFileTypes.d.ts.map +1 -0
  274. package/dist/components/skill/index.d.ts +1 -0
  275. package/dist/components/skill/index.d.ts.map +1 -1
  276. package/dist/components/ui/components/UiDialog.vue.d.ts +21 -0
  277. package/dist/components/ui/components/UiDialog.vue.d.ts.map +1 -1
  278. package/dist/components/ui/components/UiDropdown.vue.d.ts +2 -0
  279. package/dist/components/ui/components/UiDropdown.vue.d.ts.map +1 -1
  280. package/dist/components/ui/components/UiEmptyState.vue.d.ts +29 -0
  281. package/dist/components/ui/components/UiEmptyState.vue.d.ts.map +1 -0
  282. package/dist/components/ui/components/UiIconButton.vue.d.ts +45 -0
  283. package/dist/components/ui/components/UiIconButton.vue.d.ts.map +1 -0
  284. package/dist/components/ui/components/UiMenu.vue.d.ts +2 -0
  285. package/dist/components/ui/components/UiMenu.vue.d.ts.map +1 -1
  286. package/dist/components/ui/components/UiMenuNestedSubmenu.vue.d.ts +3 -0
  287. package/dist/components/ui/components/UiMenuNestedSubmenu.vue.d.ts.map +1 -1
  288. package/dist/components/ui/components/UiPopover.vue.d.ts.map +1 -1
  289. package/dist/components/ui/components/UiProgressRing.vue.d.ts +32 -0
  290. package/dist/components/ui/components/UiProgressRing.vue.d.ts.map +1 -0
  291. package/dist/components/ui/components/UiRichEditor.vue.d.ts +55 -0
  292. package/dist/components/ui/components/UiRichEditor.vue.d.ts.map +1 -0
  293. package/dist/components/ui/components/editor/richEditorExtensions.d.ts +13 -0
  294. package/dist/components/ui/components/editor/richEditorExtensions.d.ts.map +1 -0
  295. package/dist/components/ui/components/editor/richEditorPlaceholder.d.ts +6 -0
  296. package/dist/components/ui/components/editor/richEditorPlaceholder.d.ts.map +1 -0
  297. package/dist/components/ui/components/index.d.ts +4 -0
  298. package/dist/components/ui/components/index.d.ts.map +1 -1
  299. package/dist/components/ui/composables/index.d.ts +2 -0
  300. package/dist/components/ui/composables/index.d.ts.map +1 -1
  301. package/dist/components/ui/composables/useBreakpoint.d.ts +43 -0
  302. package/dist/components/ui/composables/useBreakpoint.d.ts.map +1 -0
  303. package/dist/components/ui/composables/useUiDropdown.d.ts +2 -0
  304. package/dist/components/ui/composables/useUiDropdown.d.ts.map +1 -1
  305. package/dist/components/ui/types.d.ts +2 -0
  306. package/dist/components/ui/types.d.ts.map +1 -1
  307. package/dist/{docx-preview-WRcIosJk.cjs → docx-preview-DG8slhP7.cjs} +1 -1
  308. package/dist/{docx-preview-BB0Qv1nC.js → docx-preview-DMQ6xzQM.js} +1 -1
  309. package/dist/{index-CWLfFu3e.cjs → index-B4nd6sY1.cjs} +1 -1
  310. package/dist/{index-BrxlMnow.js → index-CBCQPl8n.js} +75358 -65919
  311. package/dist/index-CJ-Mb6SU.cjs +1410 -0
  312. package/dist/{index-BGQvGRIY.js → index-DRZPTPoe.js} +1 -1
  313. package/dist/index.cjs +1 -1
  314. package/dist/index.js +599 -463
  315. package/dist/{papaparse.min-C3FYhYXB.cjs → papaparse.min-BRNq6gPR.cjs} +1 -1
  316. package/dist/{papaparse.min-B0ulAjn8.js → papaparse.min-CpVaJlaF.js} +1 -1
  317. package/dist/shared/cloudApi.d.ts +29 -0
  318. package/dist/shared/cloudApi.d.ts.map +1 -0
  319. package/dist/style.css +2 -2
  320. package/package.json +1 -1
  321. package/dist/components/chat/components/SubagentRunDialog.vue.d.ts.map +0 -1
  322. package/dist/components/skill/formatSkillUsageCount.d.ts +0 -3
  323. package/dist/components/skill/formatSkillUsageCount.d.ts.map +0 -1
  324. package/dist/components/skill/quickActionAvatarIcon.d.ts +0 -25
  325. package/dist/components/skill/quickActionAvatarIcon.d.ts.map +0 -1
  326. package/dist/index-BBiUUsrN.cjs +0 -1248
@@ -0,0 +1,122 @@
1
+ import type { ChatResourceFile } from '../../types';
2
+ export type ChatMyFilesView = 'files' | 'artifacts';
3
+ export type ArtifactKind = '文档' | '表格' | '代码' | '网站';
4
+ export interface ArtifactFile {
5
+ id: string;
6
+ name: string;
7
+ kind: ArtifactKind;
8
+ ext: string;
9
+ updatedLabel: string;
10
+ updatedAt: number;
11
+ sizeLabel: string;
12
+ /**
13
+ * 字节数(接口给了才有)。表格用 `sizeLabel` 直接显示,这里留给「添加到任务」这类
14
+ * 需要真实体积的场景——发送时 `resource_files[].size` 就是它。
15
+ */
16
+ size?: number;
17
+ /** 文件下载地址;没有它就不能进文件预览。 */
18
+ url?: string;
19
+ /** 后端给的类型标记(可能是扩展名或 MIME),预览时优先于 ext。 */
20
+ urlType?: string;
21
+ /** 详情接口给的预览类型,列表接口通常没有。 */
22
+ previewType?: string;
23
+ /**
24
+ * 更新人显示名。
25
+ * 接口文档里没有这一列,但设计稿表头有「更新人」;后端补 `updateUserName` 后
26
+ * 这一列会自动出现(没有数据时整列不渲染,不留空表头)。
27
+ */
28
+ owner?: string;
29
+ }
30
+ export interface ArtifactSession {
31
+ id: string;
32
+ title: string;
33
+ files: ArtifactFile[];
34
+ /** 这个会话里正常产物的总数。 */
35
+ productCount?: number;
36
+ /** 这次预览带回的条数,最多 50。 */
37
+ fileCount?: number;
38
+ /** 预览之外还有产物。 */
39
+ hasMore?: boolean;
40
+ }
41
+ /** 同一产物可以挂在多个会话下,行标识必须带上会话。 */
42
+ export declare function artifactRowKey(sessionId: string, fileId: string): string;
43
+ /** 产物行只有文件信息,预览链路吃的是 `ChatResourceFile`,这里做一对一转换。 */
44
+ export declare function artifactToResource(file: ArtifactFile, source?: {
45
+ url?: string;
46
+ previewType?: string;
47
+ }): ChatResourceFile;
48
+ export interface ArtifactGroup {
49
+ id: string;
50
+ name: string;
51
+ sessions: ArtifactSession[];
52
+ /** 接口返回的任务数。筛选后仍用这个数,避免角标跟着当前页文件变。 */
53
+ taskCount?: number;
54
+ }
55
+ export type MyFilesShareSource = 'DIRECT' | 'INHERITED_FOLDER';
56
+ export type MyFilesReviewStatus = 'PENDING' | 'APPROVED' | 'REJECTED' | 'WITHDRAWN';
57
+ export type MyFilesEffectStatus = 'NOT_STARTED' | 'PENDING' | 'SUCCESS' | 'FAILED';
58
+ export type MyFilesOriginType = 'UPLOAD' | 'AGENT_ARTIFACT';
59
+ /**
60
+ * 「我的资料」根目录 id。
61
+ *
62
+ * 是接口里的虚拟根(树上不渲染它本身,只渲染它的 children),也是本地示例数据
63
+ * 挂根层节点的目标 id。放在模型层:树补丁、上传队列、页面都要用它判断「是不是根」,
64
+ * 从 API 模块反向引会把请求层拖进纯工具里。
65
+ */
66
+ export declare const MY_FILES_ROOT_ID = "0";
67
+ export interface MaterialNode {
68
+ id: string;
69
+ name: string;
70
+ kind: 'folder' | 'file';
71
+ ext?: string;
72
+ children?: MaterialNode[];
73
+ shared?: boolean;
74
+ shareSource?: MyFilesShareSource;
75
+ reviewId?: string;
76
+ reviewStatus?: MyFilesReviewStatus;
77
+ reviewStatusText?: string;
78
+ effectStatus?: MyFilesEffectStatus;
79
+ effectStatusText?: string;
80
+ editable?: boolean;
81
+ previewType?: string;
82
+ url?: string;
83
+ size?: number;
84
+ originType?: MyFilesOriginType;
85
+ updatedAt?: string;
86
+ /** 最近访问时间;后端没给时「最近」列表退回 `updatedAt`。 */
87
+ accessedAt?: string;
88
+ /** 所有者显示名,来自接口的 `sourceUserName`;后端没给时按当前用户(「我」)显示。 */
89
+ owner?: string;
90
+ sourceArtifactId?: string;
91
+ sourceSessionId?: string;
92
+ sourceMessageId?: string;
93
+ sourceTaskName?: string;
94
+ /**
95
+ * 全文检索命中的内容片段,只在搜索接口返回时才有。
96
+ * 搜索面板据此渲染结果行下方的灰色摘要块;没有就不显示,不用名称顶替。
97
+ */
98
+ snippet?: string;
99
+ /**
100
+ * 文件摘要(后端 `summary`)。
101
+ *
102
+ * 只有「Agent 产物转入我的文件」时才有值 —— 是转入那一刻的快照,
103
+ * 产物后续更新不会回流;普通上传的文件没有摘要。搜索面板的灰色小字用它。
104
+ */
105
+ summary?: string;
106
+ }
107
+ /**
108
+ * 我的资料节点 → `ChatResourceFile`:预览链路与「添加到任务」共用。
109
+ *
110
+ * 与 `artifactToResource` 同一口径(`url_type` 优先用接口给的预览类型),
111
+ * 区别只是资料的节点自带 `size`,不用像产物那样补 0。
112
+ */
113
+ export declare function materialToResource(node: MaterialNode): ChatResourceFile;
114
+ /** 目录树上给用户看的共享状态。审核通过但生效失败时,不能写成已经共享。 */
115
+ export declare function shareStateLabel(node: Pick<MaterialNode, 'shared' | 'reviewStatus' | 'effectStatus' | 'reviewStatusText' | 'effectStatusText'>): string;
116
+ export declare function nextFileId(prefix: string): string;
117
+ export declare const artifactGroups: import("vue").Reactive<ArtifactGroup[]>;
118
+ export declare const materialRoots: import("vue").Reactive<MaterialNode[]>;
119
+ export declare const ARTIFACT_KIND_OPTIONS: readonly ["全部类型", "文档", "表格", "代码", "网站"];
120
+ export type ArtifactKindFilter = (typeof ARTIFACT_KIND_OPTIONS)[number];
121
+ export declare function filterMaterialTree(nodes: MaterialNode[], keyword: string): MaterialNode[];
122
+ //# sourceMappingURL=chatMyFilesModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatMyFilesModel.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/chatMyFilesModel.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,33 @@
1
+ import type { UiDropdownMenuItem } from '../../../ui';
2
+ /**
3
+ * 「快速添加」菜单的唯一定义源。
4
+ *
5
+ * 三个入口共用这一份:`我的资料` 分组旁的 `+`、目录行 hover 出来的 `+`、
6
+ * 内容区右上角的「快速添加」按钮。菜单项、顺序、分组线、图标只在这里维护一次。
7
+ *
8
+ * 图标分两类:
9
+ * - 文件类型图标是蓝湖切图(彩色,跟着类型走,与列表/目录树的类型图标同一套);
10
+ * - 动作图标(上传和导入 / 新建文件夹,以及暂缓实现的更多类型 / 添加链接)统一用 @lucide/vue,
11
+ * 与仓库里其他动作型图标(X、Wrench、RotateCcw 等)保持同一套线条语言,
12
+ * 这样它们能跟着文字色走,不用为深色模式再出一套位图。
13
+ *
14
+ * 当前只开放「上传和导入」「新建文件夹」两项;新建 / 生成类与「添加链接」的功能链路
15
+ * 尚未实现,菜单项已注释隐藏,id 与 `quickAddFileTemplate` 的映射保留,恢复时零改动。
16
+ */
17
+ export type QuickAddActionId = 'new-md' | 'new-csv' | 'new-html' | 'new-image' | 'new-video' | 'new-word' | 'new-excel' | 'new-ppt' | 'upload' | 'link' | 'new-folder';
18
+ /** 面板宽度:要放得下「新建表格 (.csv)」+ 子菜单箭头,且不显得空。 */
19
+ export declare const QUICK_ADD_MENU_WIDTH = 208;
20
+ export declare const QUICK_ADD_MENU_PANEL_CLASS = "chat-quick-add-menu";
21
+ export declare const QUICK_ADD_MENU_SUB_PANEL_CLASS = "chat-quick-add-menu-sub";
22
+ export declare function createQuickAddMenuItems(): UiDropdownMenuItem[];
23
+ /**
24
+ * 子菜单点击返回 `父id:子id`(如 `more:new-word`),这里统一取叶子 id,
25
+ * 未知 id 返回 null,避免上层误触发。
26
+ */
27
+ export declare function normalizeQuickAddId(id: string): QuickAddActionId | null;
28
+ /** 新建类动作对应的默认文件名与扩展名;上传/链接/文件夹不建节点,返回 null。 */
29
+ export declare function quickAddFileTemplate(id: QuickAddActionId): {
30
+ name: string;
31
+ ext: string;
32
+ } | null;
33
+ //# sourceMappingURL=chatQuickAddMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatQuickAddMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/chatQuickAddMenu.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAYrD;;;;;;;;;;;;;;GAcG;AAEH,MAAM,MAAM,gBAAgB,GACxB,QAAQ,GACR,SAAS,GACT,UAAU,GACV,WAAW,GACX,WAAW,GACX,UAAU,GACV,WAAW,GACX,SAAS,GACT,QAAQ,GACR,MAAM,GACN,YAAY,CAAA;AAEhB,2CAA2C;AAC3C,eAAO,MAAM,oBAAoB,MAAM,CAAA;AACvC,eAAO,MAAM,0BAA0B,wBAAwB,CAAA;AAC/D,eAAO,MAAM,8BAA8B,4BAA4B,CAAA;AAEvE,wBAAgB,uBAAuB,IAAI,kBAAkB,EAAE,CA0B9D;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI,CAgBvE;AAED,+CAA+C;AAC/C,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,gBAAgB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAqB/F"}
@@ -0,0 +1,75 @@
1
+ import type { ChatCloudConfig } from '../../cloudConfig';
2
+ import type { MyFilesApiNodeType } from './chatMyFilesApi';
3
+ export type ReviewActionType = 'MY_FILE_SCHOOL_SHARE' | 'MY_FOLDER_SCHOOL_SHARE' | 'TEACHING_FILE_SCHOOL_SHARE' | 'TEACHING_EXCELLENT_CASE' | 'SKILL_SCHOOL_SHARE';
4
+ export type ReviewResourceType = 'MY_FILE' | 'MY_DIRECTORY' | 'TEACHING_FILE' | 'SKILL';
5
+ export interface ReviewApplication {
6
+ id: string;
7
+ actionType: string;
8
+ actionTypeText: string;
9
+ resourceType: string;
10
+ resourceId: string;
11
+ reviewStatus: string;
12
+ reviewStatusText: string;
13
+ effectStatus: string;
14
+ effectStatusText: string;
15
+ active: boolean;
16
+ applyRemark: string;
17
+ reviewComment: string;
18
+ effectError: string;
19
+ effectRetryCount: number;
20
+ submittedAt: string;
21
+ reviewedAt: string;
22
+ effectiveAt: string;
23
+ snapshotJson: string;
24
+ }
25
+ export interface ReviewPage {
26
+ pageNum: number;
27
+ pageSize: number;
28
+ total: number;
29
+ list: ReviewApplication[];
30
+ }
31
+ export interface ReviewListQuery {
32
+ pageNum?: number;
33
+ pageSize?: number;
34
+ actionType?: ReviewActionType;
35
+ resourceType?: ReviewResourceType;
36
+ reviewStatus?: string;
37
+ effectStatus?: string;
38
+ applicantUserId?: string;
39
+ }
40
+ export interface ReviewResourceStatus {
41
+ resourceType: string;
42
+ resourceId: string;
43
+ actionType: string;
44
+ reviewId: string;
45
+ reviewStatus: string;
46
+ reviewStatusText: string;
47
+ effectStatus: string;
48
+ effectStatusText: string;
49
+ effectError: string;
50
+ submittedAt: string;
51
+ effectiveAt: string;
52
+ }
53
+ /** 审核通过但生效失败时,接口仍是成功。提示要把这两件事分开说。 */
54
+ export declare function reviewOutcomeLabel(item: Pick<ReviewApplication, 'reviewStatus' | 'effectStatus' | 'effectError' | 'reviewStatusText' | 'effectStatusText'>): string;
55
+ export declare function parseReviewSnapshot(snapshotJson: string): unknown;
56
+ export declare function mapReviewApplication(result: unknown): ReviewApplication | undefined;
57
+ export declare function mapReviewPage(result: unknown): ReviewPage;
58
+ export declare function mapReviewStatuses(result: unknown): ReviewResourceStatus[];
59
+ export declare function submitMyFilesShare(cloud: ChatCloudConfig, input: {
60
+ nodeType: MyFilesApiNodeType;
61
+ nodeId: string;
62
+ applyRemark?: string;
63
+ }): Promise<ReviewApplication>;
64
+ export declare function fetchReviewList(cloud: ChatCloudConfig, query?: ReviewListQuery): Promise<ReviewPage>;
65
+ export declare function fetchReviewDetail(cloud: ChatCloudConfig, id: string): Promise<ReviewApplication>;
66
+ export declare function approveReview(cloud: ChatCloudConfig, id: string, reviewComment?: string): Promise<ReviewApplication>;
67
+ export declare function rejectReview(cloud: ChatCloudConfig, id: string, reviewComment?: string): Promise<ReviewApplication>;
68
+ export declare function withdrawReview(cloud: ChatCloudConfig, id: string): Promise<ReviewApplication>;
69
+ export declare function retryReviewEffect(cloud: ChatCloudConfig, id: string): Promise<ReviewApplication>;
70
+ export declare function fetchReviewStatus(cloud: ChatCloudConfig, input: {
71
+ resourceType: ReviewResourceType;
72
+ actionType: ReviewActionType;
73
+ resourceIds: string[];
74
+ }): Promise<ReviewResourceStatus[]>;
75
+ //# sourceMappingURL=chatReviewApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatReviewApi.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/chatReviewApi.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * 我的文件(ChatMyFiles)模块的唯一对外出口。
3
+ *
4
+ * 为什么要有这个 barrel:这个模块的组件、接口、类型散在 20 多个文件里,
5
+ * 宿主如果按文件路径逐个 import,内部一重构就全断。这里把「宿主真的会用到的」
6
+ * 收成稳定出口,内部文件随便挪。
7
+ *
8
+ * 刻意**不导出** chatMyFilesModel.ts 里的 `artifactGroups` / `materialRoots`:
9
+ * 那是未传 cloud 时的组件内示例数据,只在预览/演示路径下生效,
10
+ * 一旦进入公共 API,宿主就可能误当默认值用,线上会拿到假数据。
11
+ */
12
+ export { default as ChatMyFiles } from './ChatMyFiles.vue';
13
+ export * from './chatMyFilesApi';
14
+ export * from './chatReviewApi';
15
+ export { FILE_TRANSFER_UNAVAILABLE, artifactToTransferItem, fetchKnowledgeTargets, fileTransferTargetLabel, materialToTransferItem, transferFiles, transferFilesToKnowledge, transferFilesToMyFiles, transferFilesToTeaching, } from './chatFileTransfer';
16
+ export type { FileTransferChoice, FileTransferItem, FileTransferOutcome, FileTransferTarget, KnowledgeTarget, } from './chatFileTransfer';
17
+ export { KNOWLEDGE_SOURCE_MISSING, TEACHING_SOURCE_MISSING, createMyFilesTransferSource, } from './chatFileTransferSources';
18
+ export { useFileTransfer } from './useFileTransfer';
19
+ export type { UseFileTransfer, UseFileTransferOptions } from './useFileTransfer';
20
+ export type { MyFilesPreviewOptions, MyFilesPreviewMode } from './myFilesPreview';
21
+ export { resolvePreviewMode, fileExtension } from './myFilesPreview';
22
+ export { buildRecentPickerEntries, createMyFilesPickerSource, toMyFilesPickerEntries, } from './myFilesFilePicker';
23
+ export type { ArtifactFile, ArtifactGroup, ArtifactKind, ArtifactKindFilter, ArtifactSession, ChatMyFilesView, MaterialNode, MyFilesEffectStatus, MyFilesOriginType, MyFilesReviewStatus, MyFilesShareSource, } from './chatMyFilesModel';
24
+ export { ARTIFACT_KIND_OPTIONS, artifactRowKey, artifactToResource, filterMaterialTree, nextFileId, shareStateLabel, } from './chatMyFilesModel';
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAI1D,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAS/B,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,aAAa,EACb,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,GAChB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAIhF,YAAY,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACjF,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAQpE,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,qBAAqB,CAAA;AAI5B,YAAY,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EACL,qBAAqB,EACrB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,eAAe,GAChB,MAAM,oBAAoB,CAAA"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 「我的文件 / AI产物 / 审核」三套云接口共用的请求与响应解析原语。
3
+ *
4
+ * 实现已上移到 `src/shared/cloudApi.ts`(资料库模块也需要同一套原语,避免两处各写一份)。
5
+ * 本文件保留为 re-export shim,既有的 `from './myFilesApiUtils'` 引用与
6
+ * `ChatMyFilesRequestError` 类型断言全部保持可用,行为零改动。
7
+ */
8
+ export { CloudApiRequestError as ChatMyFilesRequestError, asArray, asRecord, definedFields, postJson, readNumber, readResult, readString, } from '../../../../shared/cloudApi';
9
+ //# sourceMappingURL=myFilesApiUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"myFilesApiUtils.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/myFilesApiUtils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,oBAAoB,IAAI,uBAAuB,EAC/C,OAAO,EACP,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,GACX,MAAM,6BAA6B,CAAA"}
@@ -0,0 +1,86 @@
1
+ import type { MyFilesChunkApi, MyFilesChunkBusinessType } from './chatMyFilesApi';
2
+ /**
3
+ * 大文件分片上传引擎(断点续传)。
4
+ *
5
+ * 移植自 basic-agent-web `utils/backendUpload.ts` 的 `uploadFileInChunks`,
6
+ * 与队列/接口层完全解耦:四个接口原语(init/put/status/complete)由调用方注入,
7
+ * 因此「我的资料」后续换成自己的分片契约时这个文件一行都不用改。
8
+ *
9
+ * 与源实现的差异:
10
+ * - 源实现失败即整文件重来;这里把 `uploadId` 暴露给调用方(`onUploadId`),
11
+ * 重试时先查 `status`,已传成功的分片直接跳过,只补传缺失的——这才是断点续传。
12
+ * - 续传时 `status` 查询失败(如服务端任务已过期)会自动重新 init,而不是直接判死。
13
+ * - 接口原语注入,源实现则是直接 import UploadApi。
14
+ */
15
+ /** 默认分片阈值:20MB,小于它的文件没必要走分片。 */
16
+ export declare const MY_FILES_CHUNK_THRESHOLD: number;
17
+ /** 默认单片大小:3MB。 */
18
+ export declare const MY_FILES_CHUNK_SIZE: number;
19
+ /** 单文件分片并发数。 */
20
+ export declare const MY_FILES_CHUNK_CONCURRENT = 3;
21
+ /** 单片失败重试次数。 */
22
+ export declare const MY_FILES_CHUNK_RETRY = 3;
23
+ /** 单文件硬上限 1GB,入队前预校验(对齐 basic-agent-web MAX_FILE_SIZE)。 */
24
+ export declare const MY_FILES_MAX_FILE_SIZE: number;
25
+ /**
26
+ * 配了分片通道时的单文件上限 2GB(后端 A3.7 的硬上限)。
27
+ *
28
+ * 直传通道还是 1GB:分片没配的时候大文件只能整体直传,
29
+ * 按 2GB 放行等于把失败推到上传中途。
30
+ */
31
+ export declare const MY_FILES_MAX_CHUNK_FILE_SIZE: number;
32
+ export interface MyFilesChunkUploadOptions {
33
+ file: File;
34
+ directoryId: string;
35
+ knowledgeId?: string;
36
+ api: MyFilesChunkApi;
37
+ /** 上次失败留下的 uploadId;给了就走续传,否则重新 init。 */
38
+ resumeUploadId?: string;
39
+ chunkSize?: number;
40
+ concurrent?: number;
41
+ retry?: number;
42
+ /** 落点类型;`PERSONAL_FILES` 表示「我的资料」,传完即入库、不触发解析。 */
43
+ businessType?: MyFilesChunkBusinessType;
44
+ /** init 一旦成功就回传 uploadId,调用方存到任务上供下次续传。 */
45
+ onUploadId?: (uploadId: string) => void;
46
+ /**
47
+ * 会话已失效(服务端清理了分片,必须整份重传)时回调。
48
+ *
49
+ * `complete` 失败有两种语义,后端不给区分信号:
50
+ * - 合并 / 上传对象存储 / 去重失败 → 分片**未清理**,会话还在,重试 `complete` 即可;
51
+ * - 提交解析失败 → 会话与分片**已被清理**,再调 `complete` 只会报「会话不存在」。
52
+ * 引擎用一次 `status` 探测来区分:查得到 = 会话还在,查不到 = 已失效。
53
+ */
54
+ onSessionExpired?: () => void;
55
+ /** 0-99;最后 1% 留给 complete。 */
56
+ onProgress?: (percent: number) => void;
57
+ signal?: AbortSignal;
58
+ /** 测试用:替换退避策略,默认 300ms 起步的指数退避 + 抖动。 */
59
+ backoff?: (attempt: number) => number;
60
+ }
61
+ export interface MyFilesChunkUploadResult {
62
+ uploadId: string;
63
+ fileId: string;
64
+ url: string;
65
+ size: number;
66
+ /**
67
+ * 文件已直接入库,调用方**不要**再调 `saveFiles` 登记一次。
68
+ *
69
+ * `PERSONAL_FILES` 的分片上传传完即入库(后端不解析),返回的 `fileId` 就是
70
+ * `k_files_list` 的记录 id;再登记一次会变成重复文件。
71
+ */
72
+ registered: boolean;
73
+ }
74
+ /** 按 `size` 上限过滤文件,超限的进 rejected,由调用方给用户提示。 */
75
+ export declare function filterMyFilesOversize(files: File[], maxBytes?: number): {
76
+ accepted: File[];
77
+ rejected: File[];
78
+ };
79
+ /**
80
+ * 分片上传单个文件。
81
+ *
82
+ * 流程:(续传:status 查已传分片)→ init → 并发 PUT 缺失分片 → complete。
83
+ * 进度以「已完成片数 / 总片数」计算,封顶 99,complete 成功由调用方补到 100。
84
+ */
85
+ export declare function uploadMyFileInChunks(options: MyFilesChunkUploadOptions): Promise<MyFilesChunkUploadResult>;
86
+ //# sourceMappingURL=myFilesChunkUpload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"myFilesChunkUpload.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/myFilesChunkUpload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAA;AAEjF;;;;;;;;;;;;GAYG;AAEH,gCAAgC;AAChC,eAAO,MAAM,wBAAwB,QAAmB,CAAA;AACxD,kBAAkB;AAClB,eAAO,MAAM,mBAAmB,QAAkB,CAAA;AAClD,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,IAAI,CAAA;AAC1C,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,IAAI,CAAA;AACrC,2DAA2D;AAC3D,eAAO,MAAM,sBAAsB,QAAqB,CAAA;AACxD;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,QAAyB,CAAA;AAElE,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,IAAI,CAAA;IACV,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,GAAG,EAAE,eAAe,CAAA;IACpB,yCAAyC;IACzC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kDAAkD;IAClD,YAAY,CAAC,EAAE,wBAAwB,CAAA;IACvC,2CAA2C;IAC3C,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC7B,8BAA8B;IAC9B,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,wCAAwC;IACxC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAA;CACtC;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ;;;;;OAKG;IACH,UAAU,EAAE,OAAO,CAAA;CACpB;AA8BD,+CAA+C;AAC/C,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,IAAI,EAAE,EACb,QAAQ,GAAE,MAA+B,GACxC;IAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAAC,QAAQ,EAAE,IAAI,EAAE,CAAA;CAAE,CAQxC;AAED;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,wBAAwB,CAAC,CA2FnC"}
@@ -0,0 +1,15 @@
1
+ import type { MaterialNode } from './chatMyFilesModel';
2
+ export declare function myFilesExpandMemoryKey(userId: string): string;
3
+ /** 读取记忆的展开 id 集合;没有记录或数据损坏时返回空集(= 全部折叠)。 */
4
+ export declare function loadExpandedFolderIds(key: string): Set<string>;
5
+ /** 写回展开 id 集合;写失败(配额/隐私模式)只影响记忆,不影响当前交互。 */
6
+ export declare function saveExpandedFolderIds(key: string, ids: ReadonlySet<string>): void;
7
+ /**
8
+ * 树刷新后剪掉已不存在的目录 id。
9
+ *
10
+ * 与 basic-agent-web `restoreExpandedState` 的口径一致:记忆以「当前树里还存在的
11
+ * 目录」为准,被删除/移走的目录直接从记忆剔除,而不是留着等它「回来」。
12
+ * 输入本身全部有效时原样返回(引用不变),调用方可以靠引用比较跳过无意义赋值。
13
+ */
14
+ export declare function pruneExpandedFolderIds(ids: ReadonlySet<string>, roots: MaterialNode[]): Set<string>;
15
+ //# sourceMappingURL=myFilesExpandMemory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"myFilesExpandMemory.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/myFilesExpandMemory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAwBtD,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED,4CAA4C;AAC5C,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAY9D;AAED,4CAA4C;AAC5C,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAQjF;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,WAAW,CAAC,MAAM,CAAC,EACxB,KAAK,EAAE,YAAY,EAAE,GACpB,GAAG,CAAC,MAAM,CAAC,CASb"}
@@ -0,0 +1,30 @@
1
+ import type { ChatCloudConfig } from '../../cloudConfig';
2
+ import type { ChatFilePickerEntry, ChatFilePickerSource } from '../../chatFilePicker';
3
+ import type { MaterialNode } from './chatMyFilesModel';
4
+ /**
5
+ * 我的文件目录树 → 选文件弹框的条目树。
6
+ *
7
+ * 文件夹保留下来(弹框要能展开子目录,也要能整目录挂到输入框),
8
+ * 所以这里**不 flatten**:结构原样给过去,展开与缩进由弹框负责。
9
+ */
10
+ export declare function toMyFilesPickerEntries(nodes: readonly MaterialNode[],
11
+ /** 这些节点所在的位置(父目录名);根层是「我的资料」。 */
12
+ location?: string): ChatFilePickerEntry[];
13
+ /**
14
+ * 「最近」页签:按访问时间倒序的平铺列表(含文件夹)。
15
+ *
16
+ * 不做层级:最近访问的价值是「刚才那个文件」,按树展开反而更难找。
17
+ * 时间取 `accessedAt`,老数据没有就退回 `updatedAt`。
18
+ */
19
+ export declare function buildRecentPickerEntries(nodes: readonly MaterialNode[], limit?: number): ChatFilePickerEntry[];
20
+ /**
21
+ * 默认「我的文件」来源:两个页签 —— 「最近」平铺最近访问,「我的资料」是目录树。
22
+ *
23
+ * 用的是仓库里已经在跑的目录树接口,所以宿主不接任何东西也能用;
24
+ * 要换成自己的库时,传 `filePickerSources.myFiles` 覆盖即可。
25
+ *
26
+ * `allowFolderSelection` 打开:文件夹挂到输入框时只带 id(`my_files_chat.folder_ids`),
27
+ * 由后端按 id 展开 —— 这是「我的文件」独有的能力,知识库的目录 id 后端不认。
28
+ */
29
+ export declare function createMyFilesPickerSource(cloud: ChatCloudConfig): ChatFilePickerSource;
30
+ //# sourceMappingURL=myFilesFilePicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"myFilesFilePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/myFilesFilePicker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAErF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEtD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,SAAS,YAAY,EAAE;AAC9B,iCAAiC;AACjC,QAAQ,SAAS,GAChB,mBAAmB,EAAE,CA0BvB;AAWD;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,SAAS,YAAY,EAAE,EAC9B,KAAK,SAAe,GACnB,mBAAmB,EAAE,CAmBvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,eAAe,GAAG,oBAAoB,CAiBtF"}
@@ -0,0 +1,32 @@
1
+ import type { MaterialNode } from './chatMyFilesModel';
2
+ /**
3
+ * 文件夹上传的路径模型(纯函数,无副作用、无请求)。
4
+ *
5
+ * 浏览器在 `input[webkitdirectory]` 场景下会给每个 File 挂上 `webkitRelativePath`
6
+ * (如 `课件/第一讲/a.pdf`),这就是「保留层级」的唯一信息来源。这里把它拆成
7
+ * 目录链 `['课件','第一讲']`,后续由上传队列逐级建目录。
8
+ *
9
+ * 算法口径移植自 basic-agent-web 的 `sub_knowledgeV2/hooks/useFolderStructureParser.ts`,
10
+ * 只保留可复用的路径拆解 / 前缀去重 / 分组,不引入其 Pinia 与 Element Plus 依赖。
11
+ */
12
+ export interface FolderUploadFile {
13
+ file: File;
14
+ /** 目标目录链,不含文件名;非文件夹上传(普通多选)为 `[]`。 */
15
+ folderPath: string[];
16
+ }
17
+ /** 目录链的稳定键。文件名不允许含 `/`,因此 join 不会冲突,且比 JSON.stringify 更易读。 */
18
+ export declare function pathKey(path: string[]): string;
19
+ /** 从 `webkitRelativePath` 拆出目录链;拿不到相对路径时等价于普通文件。 */
20
+ export declare function parseFolderFiles(files: File[]): FolderUploadFile[];
21
+ /** 所有需要创建的目录前缀(去重、按层级升序),父目录一定排在子目录之前。 */
22
+ export declare function buildFolderPaths(items: FolderUploadFile[]): string[][];
23
+ /** 按目录链分组,保持文件原始顺序(Map 迭代顺序=首次出现顺序)。 */
24
+ export declare function groupByFolder(items: FolderUploadFile[]): Map<string, FolderUploadFile[]>;
25
+ /**
26
+ * 在目录树里按「逐级同名文件夹」定位目录 id。
27
+ *
28
+ * 之所以不依赖 `parentId`:`MaterialNode` 目前没有该字段,而目录树接口返回的是
29
+ * 完整树,按名逐级下行既不需要额外字段,也能在懒加载缺失时安全返回 undefined。
30
+ */
31
+ export declare function findFolderIdByPath(nodes: MaterialNode[], path: string[]): string | undefined;
32
+ //# sourceMappingURL=myFilesFolderModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"myFilesFolderModel.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/myFilesFolderModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEtD;;;;;;;;;GASG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,IAAI,CAAA;IACV,sCAAsC;IACtC,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB;AAED,8DAA8D;AAC9D,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAE9C;AAED,oDAAoD;AACpD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,gBAAgB,EAAE,CAMlE;AAED,0CAA0C;AAC1C,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,MAAM,EAAE,EAAE,CAStE;AAED,wCAAwC;AACxC,wBAAgB,aAAa,CAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,CASxF;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAU5F"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * 类型筛选菜单(「全部类型 ⌄」)的选项模型。
3
+ *
4
+ * 「最近」页与「AI产物」页各有一个类型筛选菜单,选项集合不同(最近是
5
+ * 文档/表格/演示文稿/图片/音视频/其他,产物是 文档/表格/代码/网站),但
6
+ * 「选项长什么样、图标从哪来、面板加哪个类」必须完全一致,所以选项构造、
7
+ * 面板类名、图标映射都收在这里,两个页面只传自己的选项列表。
8
+ */
9
+ import type { UiDropdownMenuItem } from '../../../ui';
10
+ /**
11
+ * 挂在菜单面板上的类。菜单 Teleport 到 body,scoped 样式进不去,
12
+ * 所以「选项之间留缝」写在这个全局类下(见 chatKindMenu.css)。
13
+ */
14
+ export declare const KIND_MENU_PANEL_CLASS = "mf-kind-menu";
15
+ /** 类型名对应的图标地址;没有配的(如「全部类型」)返回 undefined。 */
16
+ export declare function kindMenuIcon(kind: string): string | undefined;
17
+ /** 把类型选项列表转成菜单项;两个页面共用同一份构造逻辑。 */
18
+ export declare function buildKindMenuItems(labels: readonly string[]): UiDropdownMenuItem[];
19
+ //# sourceMappingURL=myFilesKindMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"myFilesKindMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/myFilesKindMenu.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAGrD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,iBAAiB,CAAA;AAkBnD,4CAA4C;AAC5C,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAG7D;AAED,kCAAkC;AAClC,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,kBAAkB,EAAE,CAElF"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Markdown ⇄ 编辑器文档的互转,以及「这份 md 能不能用富文本方式编辑」的判断。
3
+ *
4
+ * 为什么自己写序列化:仓库里没有 turndown,`@tiptap/*` 也不带 markdown 序列化。
5
+ * 这里只覆盖 `richEditorExtensions.ts` 里 StarterKit 的节点集合
6
+ * (heading / paragraph / list / blockquote / codeBlock / hr + 粗斜删行内码链接),
7
+ * 保证「读进来什么、写回去还是什么」。
8
+ *
9
+ * 一旦源文件出现 schema 表达不了的语法(表格、图片、内嵌 HTML、任务列表…),
10
+ * 就不进富文本、留在源码模式——否则打开一次就把表格吃掉,这种静默数据损坏比丑更糟。
11
+ * 导出后仍可纯文本解析。
12
+ */
13
+ /** ProseMirror 文档节点的最小结构,避免把 `@tiptap/core` 的类型拖进纯工具模块。 */
14
+ export interface DocNode {
15
+ type?: string;
16
+ attrs?: Record<string, unknown> | null;
17
+ content?: DocNode[];
18
+ marks?: {
19
+ type: string;
20
+ attrs?: Record<string, unknown> | null;
21
+ }[];
22
+ text?: string;
23
+ }
24
+ /** md → 编辑器 HTML。内容只进 tiptap 的 schema,不直接落进页面,因此不做 HTML 净化。 */
25
+ export declare function markdownToEditorHtml(markdown: string): string;
26
+ /** 编辑器文档 → markdown 源码。空文档返回空串(不是空行)。 */
27
+ export declare function editorDocToMarkdown(doc: DocNode | null | undefined): string;
28
+ /**
29
+ * 列出这份 markdown 里「富文本模式表达不了」的语法。
30
+ * 返回空数组表示可以安全地用文档方式编辑。
31
+ */
32
+ export declare function unsupportedMarkdownFeatures(markdown: string): string[];
33
+ /**
34
+ * 字数统计口径:去掉空白后的字符数。
35
+ *
36
+ * 参考的是主流文档编辑器的「字数」:中文按字、英文按词读起来都顺,
37
+ * 且不会因为段落排版(缩进、换行)让数字跳动。
38
+ */
39
+ export declare function countDocChars(text: string): number;
40
+ //# sourceMappingURL=myFilesMarkdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"myFilesMarkdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/myFilesMarkdown.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAEH,2DAA2D;AAC3D,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACtC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;IACnB,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;KAAE,EAAE,CAAA;IAClE,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAID,+DAA+D;AAC/D,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG7D;AAwGD,yCAAyC;AACzC,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAI3E;AA2CD;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAUtE;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAElD"}
@@ -0,0 +1,52 @@
1
+ import type { OnlyOfficeLoadVal } from '../../types';
2
+ import type { MaterialNode } from './chatMyFilesModel';
3
+ /**
4
+ * 「我的资料」的**内容编辑总开关**。
5
+ *
6
+ * 当前为 `false`:资料库整体只读——
7
+ * - 文本类不出现「编辑 / 取消 / 保存」,源码视图与文档视图都不可写;
8
+ * - Office 文档一律走 OnlyOffice「纯预览版」(`mode: 'view'`、不挂保存回调);
9
+ * - 宿主的 `saveText` 保存管道即便接了也不会被调用(没有可触发的写入口)。
10
+ *
11
+ * 为什么做成开关而不是把编辑代码删掉:编辑链路(源码编辑器 / tiptap 文档编辑器 /
12
+ * OnlyOffice 编辑版 / 保存回调)本身是完整的,缺的只是一个入口。后续要放开时把这里
13
+ * 改成 `true` 即可,不用重新接一遍;也避免「删一半留一半」导致以后接不回去。
14
+ *
15
+ * **这一层只管「我的资料」**:AI 产物侧(`ChatArtifactPreview`)缺省本来就是
16
+ * 「纯预览版」,与这里的开关互不影响。
17
+ */
18
+ export declare const MY_FILES_EDITING_ENABLED = false;
19
+ export type MyFilesPreviewMode = 'text' | 'preview' | 'unsupported';
20
+ /** 压缩包 / 音视频 / 卡片形态:对话侧能渲染也不该在预览器里打开。 */
21
+ export declare function isUnpreviewableKind(kind: string): boolean;
22
+ export declare function fileExtension(node: Pick<MaterialNode, 'name' | 'ext'>): string;
23
+ /** 宿主可插拔的预览能力;两个钩子都可缺省。 */
24
+ export interface MyFilesPreviewOptions {
25
+ /**
26
+ * OnlyOffice 业务载荷(`editType` + 业务 id)。返回 undefined 时按原始地址只读预览。
27
+ * 要在「我的文件」里**保存** Office 文档,必须由宿主给出 `editType` 与对应业务 id,
28
+ * 后端才能按该 id 反解版本并接收保存回调。
29
+ *
30
+ * 注意:编辑总开关关闭时,文档一律以「纯预览版」打开(只读、不挂回调),
31
+ * 本钩子只用于把文档地址签出来,不构成编辑入口。
32
+ */
33
+ onlyOffice?: (node: MaterialNode) => OnlyOfficeLoadVal | undefined;
34
+ /**
35
+ * 文本类文件的保存管道。不传时编辑器只在本地内存生效(关闭即丢),
36
+ * 由页面提示「宿主管道未接入」。
37
+ *
38
+ * 注意:编辑总开关关闭时**不会被调用**——没有可写的入口,也就没有保存。
39
+ */
40
+ saveText?: (node: MaterialNode, content: string) => Promise<void>;
41
+ }
42
+ export declare function resolvePreviewMode(node: MaterialNode): MyFilesPreviewMode;
43
+ /**
44
+ * 「不支持预览」下面那句补充说明。
45
+ *
46
+ * 只说「暂不支持」用户不知道下一步做什么;压缩包和音视频的合理动作不同
47
+ * (解压 / 用播放器),所以按类别给一句指向下载的话。其它类型返回空串。
48
+ */
49
+ export declare function unsupportedPreviewHint(node: Pick<MaterialNode, 'name' | 'ext'>): string;
50
+ /** 编辑器里的语言标签,仅用于右上角提示。 */
51
+ export declare function previewLanguageLabel(node: MaterialNode): string;
52
+ //# sourceMappingURL=myFilesPreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"myFilesPreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/myFilesPreview.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAmDtD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,wBAAwB,QAAQ,CAAA;AAE7C,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,aAAa,CAAA;AAuCnE,yCAAyC;AACzC,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEzD;AA6BD,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,KAAK,CAAC,GAAG,MAAM,CAG9E;AAED,2BAA2B;AAC3B,MAAM,WAAW,qBAAqB;IACpC;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,iBAAiB,GAAG,SAAS,CAAA;IAClE;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAClE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,YAAY,GAAG,kBAAkB,CAYzE;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,KAAK,CAAC,GAAG,MAAM,CAMvF;AAED,0BAA0B;AAC1B,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM,CAS/D"}