@deep-eye/core 1.3.83 → 1.3.85
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 +69 -0
- package/README.md +1 -1
- package/dist/{ChartRenderer-Cjy0_9Vd.js → ChartRenderer-4jMDeAxm.js} +1 -1
- package/dist/{ChartRenderer-DYaFJva0.cjs → ChartRenderer-Bq-WRQmw.cjs} +1 -1
- package/dist/ChatMyFilesArtifacts-D7unczTL.js +1013 -0
- package/dist/ChatMyFilesArtifacts-dk7QXDl0.cjs +1 -0
- package/dist/components/chat/ChatApp.vue.d.ts +37 -14
- package/dist/components/chat/ChatApp.vue.d.ts.map +1 -1
- package/dist/components/chat/addToTask.d.ts +1 -1
- package/dist/components/chat/addToTask.d.ts.map +1 -1
- package/dist/components/chat/attachmentController.d.ts.map +1 -1
- package/dist/components/chat/attachments.d.ts +4 -1
- package/dist/components/chat/attachments.d.ts.map +1 -1
- package/dist/components/chat/chatErrors.d.ts.map +1 -1
- package/dist/components/chat/chatFilePicker.d.ts +91 -1
- package/dist/components/chat/chatFilePicker.d.ts.map +1 -1
- package/dist/components/chat/chatQuota.d.ts +29 -14
- package/dist/components/chat/chatQuota.d.ts.map +1 -1
- package/dist/components/chat/chatSessionSidebarAssets.d.ts +4 -2
- package/dist/components/chat/chatSessionSidebarAssets.d.ts.map +1 -1
- package/dist/components/chat/cloudConfig.d.ts +6 -0
- package/dist/components/chat/cloudConfig.d.ts.map +1 -1
- package/dist/components/chat/components/ChatFilePickerDialog.vue.d.ts +5 -5
- package/dist/components/chat/components/ChatFilePickerDialog.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatKnowledgeLibraryList.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatMentionFileMenu.vue.d.ts +24 -0
- package/dist/components/chat/components/ChatMentionFileMenu.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatPreviewDrawer.vue.d.ts +31 -0
- package/dist/components/chat/components/ChatPreviewDrawer.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatPreviewHeader.vue.d.ts +1 -1
- package/dist/components/chat/components/ChatPreviewHeader.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatQuotaDialog.vue.d.ts +20 -1
- package/dist/components/chat/components/ChatQuotaDialog.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatQuotaEntry.vue.d.ts +14 -3
- package/dist/components/chat/components/ChatQuotaEntry.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSender.vue.d.ts +3 -3
- package/dist/components/chat/components/ChatSender.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSessionSidebar.vue.d.ts +9 -2
- package/dist/components/chat/components/ChatSessionSidebar.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ConversationIndex.vue.d.ts.map +1 -1
- package/dist/components/chat/components/InputContentParts.vue.d.ts.map +1 -1
- package/dist/components/chat/components/IntermediateFileCards.vue.d.ts.map +1 -1
- package/dist/components/chat/components/MessageBubble.vue.d.ts.map +1 -1
- package/dist/components/chat/components/UserMessageEditor.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatArtifactFileRow.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatArtifactPreview.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatFileCheckbox.vue.d.ts +2 -0
- package/dist/components/chat/components/files/ChatFileCheckbox.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFiles.vue.d.ts +11 -0
- package/dist/components/chat/components/files/ChatMyFiles.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesArtifacts.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesDirectory.vue.d.ts +6 -0
- package/dist/components/chat/components/files/ChatMyFilesDirectory.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesEmptyGuide.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesFileTable.vue.d.ts +66 -3
- package/dist/components/chat/components/files/ChatMyFilesFileTable.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesFolder.vue.d.ts +61 -5
- package/dist/components/chat/components/files/ChatMyFilesFolder.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesGuideIcon.vue.d.ts +7 -0
- package/dist/components/chat/components/files/ChatMyFilesGuideIcon.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesPrompt.vue.d.ts +7 -0
- package/dist/components/chat/components/files/ChatMyFilesPrompt.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesQuickAdd.vue.d.ts +17 -3
- package/dist/components/chat/components/files/ChatMyFilesQuickAdd.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesRecent.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesSearchDialog.vue.d.ts +18 -2
- package/dist/components/chat/components/files/ChatMyFilesSearchDialog.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesTree.vue.d.ts +1 -1
- package/dist/components/chat/components/files/ChatMyFilesTree.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesUploadDialog.vue.d.ts +2 -2
- package/dist/components/chat/components/files/ChatMyFilesUploadPanel.vue.d.ts +8 -0
- package/dist/components/chat/components/files/ChatMyFilesUploadPanel.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatSelectionBar.vue.d.ts +36 -0
- package/dist/components/chat/components/files/ChatSelectionBar.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatUploadPanel.vue.d.ts +34 -0
- package/dist/components/chat/components/files/ChatUploadPanel.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/chatArtifactFileActions.d.ts +26 -11
- package/dist/components/chat/components/files/chatArtifactFileActions.d.ts.map +1 -1
- package/dist/components/chat/components/files/chatFileTransfer.d.ts +93 -11
- package/dist/components/chat/components/files/chatFileTransfer.d.ts.map +1 -1
- package/dist/components/chat/components/files/chatFileTransferSources.d.ts +37 -3
- package/dist/components/chat/components/files/chatFileTransferSources.d.ts.map +1 -1
- package/dist/components/chat/components/files/chatMyFilesApi.d.ts +132 -2
- package/dist/components/chat/components/files/chatMyFilesApi.d.ts.map +1 -1
- package/dist/components/chat/components/files/chatMyFilesModel.d.ts +24 -3
- package/dist/components/chat/components/files/chatMyFilesModel.d.ts.map +1 -1
- package/dist/components/chat/components/files/chatUploadPanel.d.ts +42 -0
- package/dist/components/chat/components/files/chatUploadPanel.d.ts.map +1 -0
- package/dist/components/chat/components/files/guideIcon.d.ts +10 -0
- package/dist/components/chat/components/files/guideIcon.d.ts.map +1 -0
- package/dist/components/chat/components/files/index.d.ts +20 -2
- package/dist/components/chat/components/files/index.d.ts.map +1 -1
- package/dist/components/chat/components/files/myFilesFilePicker.d.ts +16 -3
- package/dist/components/chat/components/files/myFilesFilePicker.d.ts.map +1 -1
- package/dist/components/chat/components/files/myFilesRows.d.ts +15 -0
- package/dist/components/chat/components/files/myFilesRows.d.ts.map +1 -1
- package/dist/components/chat/components/files/myFilesToast.d.ts +31 -0
- package/dist/components/chat/components/files/myFilesToast.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesTransferQueue.d.ts +81 -0
- package/dist/components/chat/components/files/myFilesTransferQueue.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesUploadQueue.d.ts +2 -0
- package/dist/components/chat/components/files/myFilesUploadQueue.d.ts.map +1 -1
- package/dist/components/chat/components/files/useFileTransfer.d.ts +32 -6
- package/dist/components/chat/components/files/useFileTransfer.d.ts.map +1 -1
- package/dist/components/chat/components/index.d.ts +4 -0
- package/dist/components/chat/components/index.d.ts.map +1 -1
- package/dist/components/chat/components/mentionFileMenu.d.ts +130 -0
- package/dist/components/chat/components/mentionFileMenu.d.ts.map +1 -0
- package/dist/components/chat/composables/chatQuotaApi.d.ts +28 -0
- package/dist/components/chat/composables/chatQuotaApi.d.ts.map +1 -0
- package/dist/components/chat/composables/useChatColorMode.d.ts +11 -0
- package/dist/components/chat/composables/useChatColorMode.d.ts.map +1 -0
- package/dist/components/chat/composables/useChatQuota.d.ts +23 -0
- package/dist/components/chat/composables/useChatQuota.d.ts.map +1 -0
- package/dist/components/chat/composer/ComposerFormattedText.vue.d.ts.map +1 -1
- package/dist/components/chat/composer/ComposerInlineParts.vue.d.ts.map +1 -1
- package/dist/components/chat/composer/composerExtensions.d.ts +3 -0
- package/dist/components/chat/composer/composerExtensions.d.ts.map +1 -1
- package/dist/components/chat/composer/composerText.d.ts +6 -1
- package/dist/components/chat/composer/composerText.d.ts.map +1 -1
- package/dist/components/chat/fileChipView.d.ts +21 -0
- package/dist/components/chat/fileChipView.d.ts.map +1 -0
- package/dist/components/chat/fileToken.d.ts +42 -0
- package/dist/components/chat/fileToken.d.ts.map +1 -0
- package/dist/components/chat/hydrateHistory.d.ts.map +1 -1
- package/dist/components/chat/icons/ChatTipMenuAssetIcon.vue.d.ts +9 -0
- package/dist/components/chat/icons/ChatTipMenuAssetIcon.vue.d.ts.map +1 -1
- package/dist/components/chat/icons/ChatTipMenuLocalFileIcon.vue.d.ts.map +1 -1
- package/dist/components/chat/icons/ChatTipMenuMyFilesIcon.vue.d.ts.map +1 -1
- package/dist/components/chat/index.d.ts +2 -2
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/mdoc/ArtifactBlock.vue.d.ts.map +1 -1
- package/dist/components/chat/mentionEditor.d.ts +3 -1
- package/dist/components/chat/mentionEditor.d.ts.map +1 -1
- package/dist/components/chat/responseStream.d.ts +3 -1
- package/dist/components/chat/responseStream.d.ts.map +1 -1
- package/dist/components/chat/types.d.ts +31 -6
- package/dist/components/chat/types.d.ts.map +1 -1
- package/dist/components/library/LibraryApp.vue.d.ts +8 -2
- package/dist/components/library/LibraryApp.vue.d.ts.map +1 -1
- package/dist/components/library/components/LibrarySidebar.vue.d.ts +6 -2
- package/dist/components/library/components/LibrarySidebar.vue.d.ts.map +1 -1
- package/dist/components/library/components/LibraryTreeNode.vue.d.ts.map +1 -1
- package/dist/components/ui/components/UiMenuNestedSubmenu.vue.d.ts.map +1 -1
- package/dist/components/ui/components/UiSplitPane.vue.d.ts +38 -0
- package/dist/components/ui/components/UiSplitPane.vue.d.ts.map +1 -0
- package/dist/components/ui/components/index.d.ts +1 -0
- package/dist/components/ui/components/index.d.ts.map +1 -1
- package/dist/{docx-preview-DMQ6xzQM.js → docx-preview-_KbfGYVZ.js} +1 -1
- package/dist/{docx-preview-DG8slhP7.cjs → docx-preview-ljv2r1o6.cjs} +1 -1
- package/dist/index-B0LYCMyD.cjs +1447 -0
- package/dist/{index-DRZPTPoe.js → index-CgfD9R7Z.js} +1 -1
- package/dist/{index-B4nd6sY1.cjs → index-DkAkCzn-.cjs} +1 -1
- package/dist/{index-CBCQPl8n.js → index-xNFX7ZcL.js} +36813 -33436
- package/dist/index.cjs +1 -1
- package/dist/index.js +607 -572
- package/dist/{papaparse.min-CpVaJlaF.js → papaparse.min-CxNXl7Vn.js} +1 -1
- package/dist/{papaparse.min-BRNq6gPR.cjs → papaparse.min-DYV83FIL.cjs} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/ChatMyFilesArtifacts-B8IrM7Gv.cjs +0 -1
- package/dist/ChatMyFilesArtifacts-CPbY91Eg.js +0 -1029
- package/dist/index-CJ-Mb6SU.cjs +0 -1410
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("@vueuse/core");const l=require("./index-B0LYCMyD.cjs"),Qe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%2024.0%2024.0'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cclipPath%20id='i0'%3e%3cpath%20d='M2000,0%20L2000,4212%20L0,4212%20L0,0%20L2000,0%20Z'%3e%3c/path%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='translate(-157.0%20-2549.0)'%3e%3cg%20clip-path='url(%23i0)'%3e%3cg%20transform='translate(145.0%202545.0)'%3e%3cg%20transform='translate(12.0%204.0)'%3e%3cg%20transform='translate(24.0%2024.0)%20rotate(90.0)%20scale(-1.0%201.0)'%3e%3cg%20transform='translate(17.5%209.5)%20rotate(90.00000000000001)'%3e%3cpath%20d='M0,0%20L5,5%20L0,10'%20stroke='currentColor'%20stroke-width='1.8'%20fill='none'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Je={class:"chat-artifact-row__lead"},Xe={class:"chat-artifact-row__name"},et=["title"],tt={class:"chat-artifact-row__meta"},at={class:"chat-artifact-row__cell chat-artifact-row__cell--kind"},lt=["title"],nt={class:"chat-artifact-row__cell chat-artifact-row__cell--time"},ot={class:"chat-artifact-row__cell chat-artifact-row__cell--size"},st=e.defineComponent({name:"ChatArtifactFileRow",__name:"ChatArtifactFileRow",props:{file:{},selected:{type:Boolean},actionsDisabled:{type:Boolean,default:!1},showOwner:{type:Boolean,default:!1}},emits:["toggle","open","action"],setup(c,{emit:N}){const s=c,y=N,_=l.useTransferTargetFilter(),p=e.computed(()=>l.createArtifactFileMenuItems({disabled:s.actionsDisabled},{canUploadTo:_(s.file)})),{Menu:u}=l.useUiDropdown({items:p,placement:l.ARTIFACT_FILE_MENU_PLACEMENT,width:l.ARTIFACT_FILE_MENU_WIDTH,panelClass:l.ARTIFACT_FILE_MENU_PANEL_CLASS,submenuPanelClass:l.ARTIFACT_FILE_SUBMENU_PANEL_CLASS,onItemClick:({id:f})=>{if(f.split(":").at(-1)==="download"){if(s.actionsDisabled)return;s.file.url&&l.downloadFromSrc(s.file.url,s.file.name);return}y("action",f)}}),m=e.computed(()=>[s.file.kind,s.file.updatedLabel,s.file.sizeLabel].filter(Boolean).join(" · "));return(f,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["chat-artifact-row",{"is-selected":c.selected,"has-owner":c.showOwner}]),onClick:v[3]||(v[3]=B=>y("toggle"))},[e.createElementVNode("span",Je,[e.createVNode(l.ChatFileCheckbox,{class:"chat-artifact-row__check",checked:c.selected,label:c.selected?"取消选择":"选择文件",onToggle:v[0]||(v[0]=B=>y("toggle"))},null,8,["checked","label"]),e.createVNode(l.ChatMyFilesTypeMark,{ext:c.file.ext,name:c.file.name},null,8,["ext","name"])]),e.createElementVNode("span",Xe,[e.createElementVNode("button",{class:"chat-artifact-row__title",type:"button",title:c.file.name,onClick:v[1]||(v[1]=e.withModifiers(B=>y("open"),["stop"]))},e.toDisplayString(c.file.name),9,et),e.createElementVNode("span",tt,e.toDisplayString(m.value),1)]),e.createElementVNode("span",at,e.toDisplayString(c.file.kind),1),c.showOwner?(e.openBlock(),e.createElementBlock("span",{key:0,class:"chat-artifact-row__cell chat-artifact-row__cell--owner",title:c.file.owner||""},e.toDisplayString(c.file.owner||"—"),9,lt)):e.createCommentVNode("",!0),e.createElementVNode("span",nt,e.toDisplayString(c.file.updatedLabel),1),e.createElementVNode("span",ot,e.toDisplayString(c.file.sizeLabel),1),e.createVNode(e.unref(u),null,{default:e.withCtx(()=>[e.createVNode(l.ArtifactFileMoreButton,{class:"chat-artifact-row__more","data-testid":"artifact-row-more",loading:"lazy",decoding:"async",onClick:v[2]||(v[2]=e.withModifiers(()=>{},["stop"]))})]),_:1})],2))}}),rt=l._export_sfc(st,[["__scopeId","data-v-c9c7f7c8"]]),ct=["aria-label"],it={class:"chat-artifact-preview__body"},ut={key:3,class:"chat-artifact-preview__empty"},dt=e.defineComponent({name:"ChatArtifactPreview",__name:"ChatArtifactPreview",props:{file:{},cloud:{default:void 0},actionsDisabled:{type:Boolean,default:!1},onlyofficeProfile:{default:"preview"}},emits:["close","action"],setup(c,{emit:N}){const s=c,y=N,_=l.useTransferTargetFilter(),p=e.computed(()=>l.createArtifactFileMenuItems({disabled:s.actionsDisabled},{canUploadTo:_(s.file)})),{Menu:u}=l.useUiDropdown({items:p,placement:l.ARTIFACT_FILE_MENU_PLACEMENT,width:l.ARTIFACT_FILE_MENU_WIDTH,panelClass:l.ARTIFACT_FILE_MENU_PANEL_CLASS,submenuPanelClass:l.ARTIFACT_FILE_SUBMENU_PANEL_CLASS,zIndex:3100,onItemClick:({id:i})=>{if(i.split(":").at(-1)==="download"){G();return}y("action",i)}}),m=e.ref(null),f=e.ref(!0);let v=0;async function B(){const i=++v;if(m.value=null,s.file.url){m.value={url:s.file.url,previewType:s.file.previewType},f.value=!1;return}f.value=!0;const O=await l.resolveArtifactPreview(s.cloud,s.file);i===v&&(m.value=O??null,f.value=!1)}const k=e.computed(()=>l.artifactToResource(s.file,m.value??void 0)),R=e.computed(()=>{var i;return((i=m.value)==null?void 0:i.url)??""}),oe=e.computed(()=>l.getChatPreviewKind(k.value)),W=e.computed(()=>l.isPlainTextResource(k.value)),D=e.ref(""),K=e.ref(0),P=e.ref(!1);let j;function se(i){D.value=i.text,K.value=i.lines}async function Y(){if(D.value){try{await navigator.clipboard.writeText(D.value)}catch{return}P.value=!0,clearTimeout(j),j=setTimeout(()=>{P.value=!1},1600)}}const E=e.computed(()=>[s.file.kind,W.value&&K.value?`${K.value} 行`:"",s.file.sizeLabel].filter(Boolean).join(" · ")),g=e.computed(()=>l.isUnpreviewableKind(oe.value)),$=e.computed(()=>l.unsupportedPreviewHint(s.file)),C=e.computed(()=>!!R.value&&!g.value);e.watch(()=>[s.file.id,s.file.url],()=>void B());const F=e.ref(),Q=e.ref();let b=null;const U=l.useDocViewerChromeHost();e.watch(()=>s.file.id,()=>{l.resetDocViewerChrome(U),D.value="",K.value=0,P.value=!1});const I=e.ref(!1),w=e.ref(!1);let z=!1;function T(){z||(z=!0,I.value=!1)}function V(){z&&y("close")}function G(){var O;const i=(O=m.value)==null?void 0:O.url;i&&l.downloadFromSrc(i,s.file.name)}function X(){w.value=!w.value}function re(i){if(i.key==="Escape"){if(w.value){w.value=!1;return}T()}}return e.onMounted(()=>{b=document.activeElement instanceof HTMLElement?document.activeElement:null,I.value=!0,B(),e.nextTick(()=>{var i;return(i=Q.value)==null?void 0:i.focusClose()})}),e.onBeforeUnmount(()=>{b==null||b.focus(),b=null,clearTimeout(j)}),(i,O)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"cap-drawer",onAfterLeave:V},{default:e.withCtx(()=>[I.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["chat-artifact-preview",{"is-expanded":w.value}]),onKeydown:re},[e.createElementVNode("div",{class:"chat-artifact-preview__backdrop",onClick:T}),e.createElementVNode("section",{ref_key:"panelRef",ref:F,class:"chat-artifact-preview__panel",role:"dialog","aria-modal":"true","aria-label":`${c.file.name} 预览`},[e.createVNode(l.ChatPreviewHeader,{ref_key:"headerRef",ref:Q,class:"chat-artifact-preview__header",name:c.file.name,ext:c.file.ext,meta:E.value,chrome:e.unref(U),"show-download":!!R.value,fullscreen:w.value,"show-copy":W.value&&!!D.value,copied:P.value,"show-fullscreen":"",onDownload:G,onCopy:Y,onFullscreen:X,onClose:T},{actions:e.withCtx(()=>[e.createVNode(e.unref(u),null,{default:e.withCtx(()=>[e.createVNode(l.ArtifactFileMoreButton,{class:"chat-artifact-preview__more",loading:"eager",decoding:"async"})]),_:1})]),_:1},8,["name","ext","meta","chrome","show-download","fullscreen","show-copy","copied"]),e.createElementVNode("div",it,[f.value?(e.openBlock(),e.createBlock(l.ChatPreviewSkeleton,{key:0,label:"正在加载文件"})):C.value&&W.value?(e.openBlock(),e.createBlock(l.ChatTextReader,{key:1,src:R.value,onLoaded:se},null,8,["src"])):C.value?(e.openBlock(),e.createBlock(l.ChatFilePreview,{key:2,class:"chat-artifact-preview__viewer",resource:k.value,"onlyoffice-profile":c.onlyofficeProfile,"screenshot-ask":!1,"hide-close":"","hide-download":"","hide-fullscreen":"","hide-sidebar":"","hide-image-controls":""},null,8,["resource","onlyoffice-profile"])):(e.openBlock(),e.createElementBlock("div",ut,[g.value?(e.openBlock(),e.createBlock(l._sfc_main,{key:0,ext:c.file.ext,name:c.file.name,description:$.value,download:!!R.value,"secondary-label":R.value?void 0:"返回列表",onDownload:G,onSecondary:T},null,8,["ext","name","description","download","secondary-label"])):(e.openBlock(),e.createBlock(l._sfc_main,{key:1,title:"暂时无法预览",description:"未能获取该文件的预览地址,可稍后重试,或返回列表用其他方式打开。","secondary-label":"返回列表",onSecondary:T}))]))])],8,ct)],34)):e.createCommentVNode("",!0)]),_:1})]))}}),ft=l._export_sfc(dt,[["__scopeId","data-v-d66b7d72"]]),mt={class:"art-skeleton","aria-hidden":"true"},vt={key:0,class:"art-skeleton__group"},pt={class:"art-skeleton__task"},_t={class:"art-skeleton__name"},ht=e.defineComponent({name:"ChatArtifactsSkeleton",__name:"ChatArtifactsSkeleton",props:{blocks:{default:2},rows:{default:2},groupHead:{type:Boolean,default:!1}},setup(c){const N=["42%","54%","34%","48%"],s=["58%","44%","66%","50%"],y=p=>N[p%N.length],_=p=>s[p%s.length];return(p,u)=>(e.openBlock(),e.createElementBlock("div",mt,[c.groupHead?(e.openBlock(),e.createElementBlock("div",vt,[...u[0]||(u[0]=[e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__chevron"},null,-1),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__group-name"},null,-1),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__group-count"},null,-1)])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.blocks,m=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"art-skeleton__block"},[e.createElementVNode("div",pt,[u[1]||(u[1]=e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__spark"},null,-1)),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__task-name",style:e.normalizeStyle({width:N[(m+1)%N.length]})},null,4)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.rows,f=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"art-skeleton__row"},[u[3]||(u[3]=e.createElementVNode("span",{class:"art-skeleton__lead"},[e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__icon"})],-1)),e.createElementVNode("span",_t,[e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__bar art-skeleton__bar--name",style:e.normalizeStyle({width:y(f-1)})},null,4),u[2]||(u[2]=e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__bar art-skeleton__bar--meta"},null,-1))]),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__cell art-skeleton__cell--kind",style:e.normalizeStyle({width:_(f)})},null,4),e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__cell art-skeleton__cell--time",style:e.normalizeStyle({width:_(f+1)})},null,4),u[4]||(u[4]=e.createElementVNode("span",{class:"mf-skeleton-row art-skeleton__cell art-skeleton__cell--size"},null,-1)),u[5]||(u[5]=e.createElementVNode("span",{class:"art-skeleton__cell--action"},null,-1))]))),128))]))),128))]))}}),be=l._export_sfc(ht,[["__scopeId","data-v-6ca80140"]]),kt={class:"chat-my-files-artifacts__frame"},yt={class:"chat-my-files-artifacts__toolbar"},wt=["src"],gt={class:"chat-my-files-artifacts__filter",type:"button"},Et=["src"],Ct={class:"chat-my-files-artifacts__search"},bt=["src"],Tt={key:0,class:"chat-my-files-artifacts__progress",role:"status","aria-label":"正在加载 AI 产物"},Nt={class:"chat-my-files-artifacts__table"},At={key:0,class:"chat-my-files-artifacts__col chat-my-files-artifacts__col--owner"},Bt={key:0,class:"chat-my-files-artifacts__skeleton","data-testid":"artifact-first-load","aria-busy":"true"},Vt=["aria-expanded","onClick"],St=["src"],Ft={class:"chat-my-files-artifacts__group-name"},It={class:"chat-my-files-artifacts__group-count"},xt=["inert"],Lt={class:"chat-my-files-artifacts__group-clip"},Mt={class:"chat-my-files-artifacts__task-head"},Rt=["src"],Dt=["title"],Pt=["disabled","aria-busy","onClick"],$t={class:"chat-my-files-artifacts__sentinel-sheet"},Ut={class:"chat-my-files-artifacts__sr-only",role:"status"},zt=["disabled","aria-busy"],Z=6,Ot=3,Te=400,Ht=e.defineComponent({name:"ChatMyFilesArtifacts",__name:"ChatMyFilesArtifacts",props:{cloud:{},actionsDisabled:{type:Boolean}},emits:["back","add-to-task"],setup(c,{emit:N}){const s=c,y=N,_=e.ref(""),p=e.ref("全部类型"),u=e.ref("updatedAt"),m=e.ref("desc"),f=e.ref(new Set),v=e.ref(new Set),B=l.useMyFilesToast();function k(t,a="info"){B==null||B(t,a)}const R=l.useChatContext(),{source:oe,open:W,busy:D,title:K,request:P,confirm:j,close:se}=l.useFileTransfer({getCloud:()=>s.cloud,flash:k,sources:()=>R.transferSources.value,board:l.getMyFilesTransferQueue()}),Y=l.injectChatAddToTask(),E=e.ref([]),g=e.ref(!1),$=e.ref(""),C=e.ref(!1),F=e.ref(new Set),Q=e.ref(1),b=e.ref(!1),U=e.ref(!1),I=e.ref({});let w=0,z=0;const T=new Map,V=e.computed(()=>g.value&&E.value.length===0);function G(){return s.cloud?E.value:l.artifactGroups}function X(t,a){const n=new Set(F.value);a?n.add(t):n.delete(t),F.value=n}function re(t){const a=(t.productCount??0)-t.files.length;return a>0?`还有 ${a} 个`:"加载更多"}async function i(t="replace"){const a=s.cloud;if(!a||t==="append"&&g.value)return;const n=++w,o=t==="append"?Q.value+1:1;t==="replace"&&L&&(A.value=Z,ee.clear()),g.value=!0,$.value="",C.value=t==="append";try{const r=await l.fetchArtifactLibrary(a,{page:o,pageSize:l.ARTIFACT_SESSION_PAGE_SIZE,search:_.value.trim()});if(n!==w)return;const d=l.countArtifactSessions(E.value);E.value=t==="append"?l.mergeArtifactGroups(E.value,r):r;const h=l.countArtifactSessions(E.value)-d;Q.value=o,t==="replace"&&(I.value={}),U.value=!1;const M=l.countArtifactSessions(r)>=l.ARTIFACT_SESSION_PAGE_SIZE;b.value=M&&(t==="replace"||h>0)}catch(r){if(n!==w)return;const d=r instanceof Error?r.message:"产物加载失败";E.value.length?t==="append"&&(U.value=!0):$.value=d,k(d,"error")}finally{n===w&&(g.value=!1,C.value=!1,fe())}}function O(){i("replace")}async function Ne(t){const a=s.cloud;if(!a||g.value||F.value.has(t))return;const n=(T.get(t)??0)+1;T.set(t,n);const o=w;X(t,!0);try{let r=I.value[t]??1,d=0;for(;d<5;){d+=1;const h=await l.fetchArtifactPage(a,t,r,l.ARTIFACT_FILE_PAGE_SIZE);if(T.get(t)!==n||w!==o)return;const M=l.appendArtifactPage(E.value,t,h);if(E.value=M.groups,r+=1,I.value={...I.value,[t]:r},M.added>0||!M.hasMore)break}}catch(r){if(T.get(t)!==n)return;k(r instanceof Error?r.message:"产物加载失败","error")}finally{T.get(t)===n&&X(t,!1)}}const Ae=l.buildKindMenuItems(l.ARTIFACT_KIND_OPTIONS),{Menu:Be}=l.useUiDropdown({items:Ae,placement:"bottom-start",width:140,selectedId:p,panelClass:l.KIND_MENU_PANEL_CLASS,onItemClick:({id:t})=>{Ve(t)&&(p.value=t)}});function Ve(t){return l.ARTIFACT_KIND_OPTIONS.includes(t)}function Se(t){if(!u.value)return t;const a=m.value==="asc"?1:-1;return[...t].sort((n,o)=>u.value==="name"?n.name.localeCompare(o.name,"zh")*a:(n.updatedAt-o.updatedAt)*a)}const x=e.computed(()=>{const t=s.cloud?"":_.value.trim().toLowerCase();return G().map(a=>{const n=!!t&&a.name.toLowerCase().includes(t),o=a.sessions.map(r=>{const d=!!t&&r.title.toLowerCase().includes(t),h=Se(r.files.filter(M=>{const je=p.value==="全部类型"||M.kind===p.value,Ye=!t||M.name.toLowerCase().includes(t);return je&&(n||d||Ye)}));return{...r,files:h}}).filter(r=>r.files.length>0||r.hasMore===!0);return{...a,taskCount:a.taskCount??a.sessions.length,sessions:o}}).filter(a=>a.sessions.length>0)}),Fe=e.computed(()=>x.value.flatMap(t=>t.sessions.flatMap(a=>a.files.map(n=>l.artifactRowKey(a.id,n.id))))),ce=e.computed(()=>Fe.value.filter(t=>v.value.has(t)).length),ee=new Map,L=typeof IntersectionObserver<"u",te=e.ref(null),ae=e.ref(null),A=e.ref(L?Z:Number.POSITIVE_INFINITY);let S=null,ie=!1,le=0;const _e=e.computed(()=>x.value.reduce((t,a)=>t+a.sessions.length,0)),H=e.computed(()=>_e.value>A.value),he=e.computed(()=>{if(!H.value)return x.value;let t=A.value;const a=[];for(const n of x.value){if(t<=0)break;const o=n.sessions.slice(0,t);t-=o.length,a.push({...n,sessions:o})}return a});function ke(){!s.cloud||!L||!b.value||g.value||V.value||_e.value-A.value>Ot||i("append")}let ne=1;function Ie(){if(ne>0)return ne-=1,!0;const t=te.value,a=ae.value;if(!t||!a)return!1;const n=a.getBoundingClientRect(),o=t.getBoundingClientRect();return n.top<o.bottom&&n.bottom>o.top}function ye(){if(L){if(H.value){A.value+=Z;return}b.value&&!g.value&&!V.value&&Ie()&&i("append")}}function xe(){if(H.value){A.value+=Z;return}i("append")}const Le=e.computed(()=>!L||U.value),ue=e.computed(()=>H.value||b.value);let de=0;function fe(){!L||ie||(ie=!0,window.requestAnimationFrame(()=>{if(ie=!1,performance.now()<de)return;const t=ae.value,a=te.value;if(!t||!a)return;const n=t.getBoundingClientRect(),o=a.getBoundingClientRect();n.top<o.bottom+240&&n.bottom>o.top-240&&ye()}))}function we(){window.clearTimeout(le),le=window.setTimeout(()=>{le=0,ue.value&&(ne=1,fe())},Te+40)}function ge(){if(!L)return;S==null||S.disconnect();const t=ae.value;t&&(S=new IntersectionObserver(a=>{if(a.some(n=>n.isIntersecting)){if(performance.now()<de){we();return}ne=1,ye(),ke()}},{root:te.value,rootMargin:"240px 0px"}),S.observe(t))}e.watch([_,p,u,m],()=>{L&&(A.value=Z)}),e.watch([H,b,A],()=>{ge(),fe(),ke()},{flush:"post"});const J=e.computed(()=>!!_.value.trim()||p.value!=="全部类型"),Me=e.computed(()=>J.value?"没有匹配的文件":"暂无 AI 产物"),Re=e.computed(()=>J.value?"换个关键词或切换到「全部类型」试试,也可以清空筛选查看全部产物":"对话里生成的文件会收在这里,可以再加回任务继续使用"),De=e.computed(()=>J.value?"清空筛选":"返回我的文件"),Pe=e.computed(()=>!$.value&&(V.value||x.value.length>0)),me=e.computed(()=>x.value.some(t=>t.sessions.some(a=>a.files.some(n=>!!n.owner))));function $e(){if(!J.value){y("back");return}_.value="",p.value="全部类型"}function Ee(t){if(u.value!==t){u.value=t,m.value=t==="name"?"asc":"desc";return}m.value=m.value==="asc"?"desc":"asc"}function Ce(t){return u.value!==t?"idle":m.value==="asc"?"asc":"desc"}function Ue(t){var r;de=performance.now()+Te;const a=new Set(f.value),n=!a.has(t);n?a.add(t):a.delete(t);const o=n?((r=he.value.find(d=>d.id===t))==null?void 0:r.sessions.length)??0:ee.get(t)??0;n?ee.set(t,o):ee.delete(t),A.value=Math.max(Z,A.value+(n?o:-o)),f.value=a,we()}function ze(t){const a=new Set(v.value);a.has(t)?a.delete(t):a.add(t),v.value=a}const q=e.ref(null),Oe=e.ref("");function He(t,a){Oe.value=t,q.value=a}function Ke(t){const a=l.normalizeArtifactFileActionId(t);if(!a)return;const n=q.value;if(a==="add-task"){if(s.actionsDisabled===!0)return;n&&pe([l.artifactToResource(n)]);return}const o=l.fileTransferTargetOfAction(a);if(o){if(s.actionsDisabled===!0||!n)return;P(o,[l.artifactToTransferItem(n)]);return}const r=l.resolveArtifactFileAction(t,{unavailable:!!s.cloud,disabled:s.actionsDisabled===!0});if(r){if(r.kind==="unavailable"){k(r.notice,"warning");return}r.kind==="notice"&&k(r.notice,"warning")}}function ve(){v.value=new Set}function Ge(t){for(const a of G())for(const n of a.sessions){const o=n.files.findIndex(r=>l.artifactRowKey(n.id,r.id)===t);if(o>=0)return{groupId:a.id,session:n,index:o}}}function qe(t,a){const n=Ge(t);if(!n)return;const o=l.normalizeArtifactFileActionId(a);if(!o)return;const r=n.session.files[n.index];if(!r)return;if(o==="add-task"){if(s.actionsDisabled===!0)return;pe([l.artifactToResource(r)]);return}const d=l.fileTransferTargetOfAction(o);if(d){if(s.actionsDisabled===!0)return;P(d,[l.artifactToTransferItem(r,n.session)]);return}const h=l.resolveArtifactFileAction(a,{unavailable:!!s.cloud,disabled:s.actionsDisabled===!0});if(h){if(h.kind==="unavailable"){k(h.notice,"warning");return}h.kind==="notice"&&k(h.notice,"warning")}}function pe(t){if(t.length!==0){if(Y){Y(t);return}y("add-to-task",t),k(l.ARTIFACT_FILE_ACTION_NOTICES["add-task"],"success")}}function Ze(){return x.value.flatMap(t=>t.sessions.flatMap(a=>a.files.filter(n=>v.value.has(l.artifactRowKey(a.id,n.id))).map(n=>l.artifactToResource(n))))}function We(){if(s.actionsDisabled===!0)return;const t=Ze();if(t.length!==0){if(!Y){if(s.cloud){k(l.ARTIFACT_FILE_ACTIONS_UNAVAILABLE_NOTICE,"warning");return}k(`已添加 ${ce.value} 个文件到任务`,"success"),ve();return}pe(t),ve()}}return e.watch(_,()=>{s.cloud&&(window.clearTimeout(z),z=window.setTimeout(()=>{i("replace")},300))}),e.onMounted(()=>{ge(),s.cloud&&i()}),e.onUnmounted(()=>{S==null||S.disconnect(),S=null,window.clearTimeout(z),window.clearTimeout(le)}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["chat-my-files-artifacts",{"has-selection":ce.value>0}])},[e.createElementVNode("div",kt,[e.createElementVNode("header",yt,[e.createElementVNode("button",{class:"chat-my-files-artifacts__back",type:"button",onClick:a[0]||(a[0]=n=>y("back"))},[e.createElementVNode("img",{loading:"eager",decoding:"async",class:"chat-my-files-artifacts__back-glyph",src:e.unref(Qe),alt:""},null,8,wt),a[5]||(a[5]=e.createElementVNode("span",null,"返回我的文件",-1))]),e.createVNode(e.unref(Be),null,{"item-icon":e.withCtx(({item:n})=>[e.createVNode(l._sfc_main$1,{kind:n.id},null,8,["kind"])]),default:e.withCtx(()=>[e.createElementVNode("button",gt,[e.createElementVNode("span",null,e.toDisplayString(p.value),1),e.createElementVNode("img",{loading:"eager",decoding:"async",class:"chat-my-files-artifacts__filter-glyph",src:e.unref(l.chevronDownIcon),alt:""},null,8,Et)])]),_:1}),e.createElementVNode("label",Ct,[e.createElementVNode("img",{loading:"eager",decoding:"async",class:"chat-my-files-artifacts__search-glyph",src:e.unref(l.searchIcon),alt:""},null,8,bt),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=n=>_.value=n),type:"search",placeholder:"搜索文件、任务或工作空间",title:"搜索文件、任务或工作空间"},null,512),[[e.vModelText,_.value]])])]),g.value&&!C.value&&!V.value?(e.openBlock(),e.createElementBlock("div",Tt)):e.createCommentVNode("",!0),e.createElementVNode("div",Nt,[Pe.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["chat-my-files-artifacts__head",{"has-owner":me.value}])},[e.createElementVNode("button",{class:"chat-my-files-artifacts__sort chat-my-files-artifacts__sort--name",type:"button",onClick:a[2]||(a[2]=n=>Ee("name"))},[a[7]||(a[7]=e.createTextVNode(" 名称 ",-1)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["chat-my-files-artifacts__sort-glyph",`is-${Ce("name")}`]),viewBox:"0 0 20 20","aria-hidden":"true"},[...a[6]||(a[6]=[e.createElementVNode("path",{class:"up",d:"M10 3.5 13.5 8H6.5Z"},null,-1),e.createElementVNode("path",{class:"down",d:"M10 16.5 6.5 12h7Z"},null,-1)])],2))]),a[10]||(a[10]=e.createElementVNode("span",{class:"chat-my-files-artifacts__col chat-my-files-artifacts__col--kind"},"类型",-1)),me.value?(e.openBlock(),e.createElementBlock("span",At,"更新人")):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"chat-my-files-artifacts__sort chat-my-files-artifacts__sort--time",type:"button",onClick:a[3]||(a[3]=n=>Ee("updatedAt"))},[a[9]||(a[9]=e.createTextVNode(" 更新时间 ",-1)),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["chat-my-files-artifacts__sort-glyph",`is-${Ce("updatedAt")}`]),viewBox:"0 0 20 20","aria-hidden":"true"},[...a[8]||(a[8]=[e.createElementVNode("path",{class:"up",d:"M10 3.5 13.5 8H6.5Z"},null,-1),e.createElementVNode("path",{class:"down",d:"M10 16.5 6.5 12h7Z"},null,-1)])],2))]),a[11]||(a[11]=e.createElementVNode("span",{class:"chat-my-files-artifacts__col chat-my-files-artifacts__col--size"},"大小",-1)),a[12]||(a[12]=e.createElementVNode("span",{class:"chat-my-files-artifacts__col chat-my-files-artifacts__col--action"},"操作",-1))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"bodyRef",ref:te,class:"chat-my-files-artifacts__body"},[V.value?(e.openBlock(),e.createElementBlock("div",Bt,[e.createVNode(be,{"group-head":"",blocks:2,rows:3}),a[13]||(a[13]=e.createElementVNode("p",{class:"chat-my-files-artifacts__sr-only",role:"status"},"正在加载 AI 产物",-1))])):$.value?(e.openBlock(),e.createBlock(l.ChatMyFilesState,{key:1,class:"chat-my-files-artifacts__state",tone:"error",variant:"error",title:"产物加载失败",description:$.value,"action-text":"重新加载",onAction:O},null,8,["description"])):x.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(l.ChatMyFilesState,{key:2,class:"chat-my-files-artifacts__state",variant:J.value?"search":"files",title:Me.value,description:Re.value,"action-text":De.value,onAction:$e},null,8,["variant","title","description","action-text"])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(he.value,n=>(e.openBlock(),e.createElementBlock("section",{key:n.id,class:"chat-my-files-artifacts__group"},[e.createElementVNode("button",{class:"chat-my-files-artifacts__group-head",type:"button","aria-expanded":!f.value.has(n.id),onClick:o=>Ue(n.id)},[e.createElementVNode("img",{loading:"lazy",decoding:"async",class:e.normalizeClass(["chat-my-files-artifacts__chevron",{"is-open":!f.value.has(n.id)}]),src:e.unref(l.chevronDownIcon),alt:""},null,10,St),e.createElementVNode("span",Ft,e.toDisplayString(n.name),1),e.createElementVNode("em",It,e.toDisplayString(n.taskCount)+"个任务",1)],8,Vt),e.createElementVNode("div",{class:e.normalizeClass(["chat-my-files-artifacts__group-body",{"is-collapsed":f.value.has(n.id)}]),inert:f.value.has(n.id)||void 0},[e.createElementVNode("div",Lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.sessions,(o,r)=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:"chat-my-files-artifacts__task",style:e.normalizeStyle({"--mf-stagger":r})},[e.createElementVNode("div",Mt,[e.createElementVNode("img",{loading:"lazy",decoding:"async",class:"chat-my-files-artifacts__spark",src:e.unref(l.sparkIcon),alt:""},null,8,Rt),e.createElementVNode("span",{title:o.title},e.toDisplayString(o.title),9,Dt)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.files,d=>(e.openBlock(),e.createBlock(rt,{key:e.unref(l.artifactRowKey)(o.id,d.id),file:d,selected:v.value.has(e.unref(l.artifactRowKey)(o.id,d.id)),"show-owner":me.value,"actions-disabled":c.actionsDisabled,onToggle:h=>ze(e.unref(l.artifactRowKey)(o.id,d.id)),onOpen:h=>He(e.unref(l.artifactRowKey)(o.id,d.id),d),onAction:h=>qe(e.unref(l.artifactRowKey)(o.id,d.id),h)},null,8,["file","selected","show-owner","actions-disabled","onToggle","onOpen","onAction"]))),128)),c.cloud&&o.hasMore?(e.openBlock(),e.createElementBlock("button",{key:0,class:"chat-my-files-artifacts__more",type:"button","data-testid":"artifact-file-more",disabled:F.value.has(o.id),"aria-busy":F.value.has(o.id),onClick:d=>Ne(o.id)},e.toDisplayString(F.value.has(o.id)?"加载中":re(o)),9,Pt)):e.createCommentVNode("",!0)],4))),128))])],10,xt)]))),128)),c.cloud&&ue.value&&!V.value?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"sentinelRef",ref:ae,class:e.normalizeClass(["chat-my-files-artifacts__sentinel",{"is-loading":C.value}])},[e.createElementVNode("div",$t,[C.value?(e.openBlock(),e.createBlock(be,{key:0,blocks:1,rows:1})):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),e.createElementVNode("p",Ut,e.toDisplayString(C.value?"正在加载更多 AI 产物":""),1),c.cloud&&ue.value&&!V.value&&Le.value?(e.openBlock(),e.createElementBlock("button",{key:4,class:"chat-my-files-artifacts__sessions-more",type:"button","data-testid":"artifact-session-more",disabled:g.value&&!H.value,"aria-busy":C.value,onClick:xe},e.toDisplayString(C.value?"加载中":U.value?"重新加载":H.value?"显示更多任务":"加载更多会话"),9,zt)):e.createCommentVNode("",!0)],512)]),e.createVNode(l._sfc_main$2,{count:ce.value,onClear:ve,onAddTask:We},null,8,["count"]),q.value?(e.openBlock(),e.createBlock(ft,{key:q.value.id,file:q.value,cloud:c.cloud,"actions-disabled":c.actionsDisabled,onClose:a[4]||(a[4]=n=>q.value=null),onAction:Ke},null,8,["file","cloud","actions-disabled"])):e.createCommentVNode("",!0),e.createVNode(l.ChatFilePickerDialog,{source:e.unref(oe),open:e.unref(W),mode:"target",title:e.unref(K),busy:e.unref(D),"onUpdate:open":e.unref(se),onConfirm:e.unref(j)},null,8,["source","open","title","busy","onUpdate:open","onConfirm"])])],2))}}),Kt=l._export_sfc(Ht,[["__scopeId","data-v-13517c8c"]]);exports.default=Kt;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ChatSkillCardModel } from '../skill/types';
|
|
2
|
+
import { type ChatFilesToast } from './components/files/myFilesToast';
|
|
2
3
|
import { type ChatCloudConfig } from './cloudConfig';
|
|
3
4
|
import { type ChatSessionNavItem, type ChatSidebarTexts } from './chatSessionSidebarTypes';
|
|
4
5
|
import { type ChatAppMyFilesConfig } from './chatAppMyFiles';
|
|
@@ -26,7 +27,16 @@ type __VLS_Props = {
|
|
|
26
27
|
/** Explicit override; omit to let the sidebar own its own (persisted) collapse state, auto-forced on narrow screens. */
|
|
27
28
|
collapsed?: boolean;
|
|
28
29
|
senderConfig?: Partial<ChatSenderProps>;
|
|
29
|
-
|
|
30
|
+
/**
|
|
31
|
+
* 侧栏积分入口下方的「深色 / 系统 / 浅色」切换。默认不显示。
|
|
32
|
+
* 选择经 `update:colorMode` 抛出;宿主没绑 `v-model:color-mode` 时由组件记住(localStorage)。
|
|
33
|
+
*/
|
|
34
|
+
showAppearance?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* 把颜色模式同步到 `<html>`(`.dark`、`data-theme`、`color-scheme`),整页跟着变。
|
|
37
|
+
* 默认 `false`:只影响组件自身;宿主有自己的主题系统时保持关闭。
|
|
38
|
+
*/
|
|
39
|
+
syncDocumentColorMode?: boolean;
|
|
30
40
|
theme?: ChatTheme;
|
|
31
41
|
attachmentInput?: ChatAttachmentInput;
|
|
32
42
|
attachmentLimits?: Partial<ChatAttachmentLimits>;
|
|
@@ -40,6 +50,14 @@ type __VLS_Props = {
|
|
|
40
50
|
* 不配时我的资料 / 知识库仍可用(组件库有默认实现),备课中心给出明确说明。
|
|
41
51
|
*/
|
|
42
52
|
transferSources?: ChatFileTransferSources;
|
|
53
|
+
/**
|
|
54
|
+
* 文件相关反馈的统一出口(toast),宿主注入(典型实现是 `ElMessage`)。
|
|
55
|
+
*
|
|
56
|
+
* 覆盖两处:对话内产物卡片的「上传到 / 添加到任务」结果,
|
|
57
|
+
* 以及 `myFiles` 内置页的全部一次性反馈(重命名 / 删除 / 上传终态)。
|
|
58
|
+
* 不传时各页退回自己的内嵌提示(气泡内小条),不影响功能。
|
|
59
|
+
*/
|
|
60
|
+
filesToast?: ChatFilesToast;
|
|
43
61
|
pendingAskUser?: AskUserPayload | null;
|
|
44
62
|
enableQueue?: boolean;
|
|
45
63
|
showSidebar?: boolean;
|
|
@@ -68,13 +86,14 @@ type __VLS_Props = {
|
|
|
68
86
|
activeNavKey?: string;
|
|
69
87
|
};
|
|
70
88
|
type __VLS_ModelProps = {
|
|
89
|
+
'colorMode'?: ChatColorMode | undefined;
|
|
71
90
|
'sessionId'?: string | null;
|
|
72
91
|
'pane'?: 'chat' | 'page';
|
|
73
92
|
'model'?: string | undefined;
|
|
74
93
|
'mode'?: ChatAgentMode | undefined;
|
|
75
94
|
};
|
|
76
95
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
77
|
-
declare var
|
|
96
|
+
declare var __VLS_25: {}, __VLS_28: {}, __VLS_86: {}, __VLS_89: {
|
|
78
97
|
triggerId: string;
|
|
79
98
|
query: string;
|
|
80
99
|
select: (payload: {
|
|
@@ -83,7 +102,7 @@ declare var __VLS_24: {}, __VLS_27: {}, __VLS_85: {}, __VLS_88: {
|
|
|
83
102
|
}) => void;
|
|
84
103
|
close: () => void;
|
|
85
104
|
anchorRect: DOMRect | null;
|
|
86
|
-
},
|
|
105
|
+
}, __VLS_92: {
|
|
87
106
|
message: ConversationMessage;
|
|
88
107
|
index: number;
|
|
89
108
|
isLast: boolean;
|
|
@@ -94,25 +113,25 @@ declare var __VLS_24: {}, __VLS_27: {}, __VLS_85: {}, __VLS_88: {
|
|
|
94
113
|
onToolAction: (payload: import("./types").ChatToolActionPayload) => void;
|
|
95
114
|
onEditSend: (payload: import("./types").ChatEditSendPayload) => void;
|
|
96
115
|
onRegenerate: (payload: import("./types").ChatRegeneratePayload) => void;
|
|
97
|
-
},
|
|
116
|
+
}, __VLS_95: {}, __VLS_113: {}, __VLS_125: {}, __VLS_132: {};
|
|
98
117
|
type __VLS_Slots = {} & {
|
|
99
|
-
'sidebar-brand'?: (props: typeof
|
|
118
|
+
'sidebar-brand'?: (props: typeof __VLS_25) => any;
|
|
100
119
|
} & {
|
|
101
|
-
nav?: (props: typeof
|
|
120
|
+
nav?: (props: typeof __VLS_28) => any;
|
|
102
121
|
} & {
|
|
103
|
-
sender?: (props: typeof
|
|
122
|
+
sender?: (props: typeof __VLS_86) => any;
|
|
104
123
|
} & {
|
|
105
|
-
'trigger-menu'?: (props: typeof
|
|
124
|
+
'trigger-menu'?: (props: typeof __VLS_89) => any;
|
|
106
125
|
} & {
|
|
107
|
-
message?: (props: typeof
|
|
126
|
+
message?: (props: typeof __VLS_92) => any;
|
|
108
127
|
} & {
|
|
109
|
-
empty?: (props: typeof
|
|
128
|
+
empty?: (props: typeof __VLS_95) => any;
|
|
110
129
|
} & {
|
|
111
|
-
'empty-extra'?: (props: typeof
|
|
130
|
+
'empty-extra'?: (props: typeof __VLS_113) => any;
|
|
112
131
|
} & {
|
|
113
|
-
footer?: (props: typeof
|
|
132
|
+
footer?: (props: typeof __VLS_125) => any;
|
|
114
133
|
} & {
|
|
115
|
-
page?: (props: typeof
|
|
134
|
+
page?: (props: typeof __VLS_132) => any;
|
|
116
135
|
};
|
|
117
136
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, ChatAppExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
118
137
|
stop: () => any;
|
|
@@ -146,6 +165,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, ChatA
|
|
|
146
165
|
"artifact-open": (payload: unknown) => any;
|
|
147
166
|
"file-preview": (payload: unknown) => any;
|
|
148
167
|
"response-error": (error: Error, info: unknown) => any;
|
|
168
|
+
"update:colorMode": (value: ChatColorMode | undefined) => any;
|
|
149
169
|
"nav-select": (key: string) => any;
|
|
150
170
|
"session-created": (payload: {
|
|
151
171
|
id: string;
|
|
@@ -193,6 +213,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, ChatA
|
|
|
193
213
|
"onArtifact-open"?: ((payload: unknown) => any) | undefined;
|
|
194
214
|
"onFile-preview"?: ((payload: unknown) => any) | undefined;
|
|
195
215
|
"onResponse-error"?: ((error: Error, info: unknown) => any) | undefined;
|
|
216
|
+
"onUpdate:colorMode"?: ((value: ChatColorMode | undefined) => any) | undefined;
|
|
196
217
|
"onNav-select"?: ((key: string) => any) | undefined;
|
|
197
218
|
"onSession-created"?: ((payload: {
|
|
198
219
|
id: string;
|
|
@@ -212,7 +233,6 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, ChatA
|
|
|
212
233
|
theme: ChatTheme;
|
|
213
234
|
sessionId: string | null;
|
|
214
235
|
myFiles: boolean | ChatAppMyFilesConfig;
|
|
215
|
-
colorMode: ChatColorMode;
|
|
216
236
|
previewRenderers: ChatPreviewRendererMap;
|
|
217
237
|
toolRenderers: ChatToolRendererMap;
|
|
218
238
|
transferSources: ChatFileTransferSources;
|
|
@@ -230,6 +250,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, ChatA
|
|
|
230
250
|
senderConfig: Partial<ChatSenderProps>;
|
|
231
251
|
conversationConfig: ConversationListConfig;
|
|
232
252
|
centeredEmptyState: boolean;
|
|
253
|
+
showAppearance: boolean;
|
|
233
254
|
navItems: ChatSessionNavItem[];
|
|
234
255
|
moreNavItems: ChatSessionNavItem[];
|
|
235
256
|
moreNavLabel: string;
|
|
@@ -243,6 +264,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, ChatA
|
|
|
243
264
|
};
|
|
244
265
|
sidebarTexts: Partial<ChatSidebarTexts>;
|
|
245
266
|
syncSessionQuery: boolean;
|
|
267
|
+
syncDocumentColorMode: boolean;
|
|
268
|
+
filesToast: ChatFilesToast;
|
|
246
269
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
247
270
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
248
271
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatApp.vue.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ChatApp.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatApp.vue.d.ts","sourceRoot":"","sources":["../../../src/components/chat/ChatApp.vue"],"names":[],"mappings":"AA+4CA,OAAO,KAAK,EAEV,kBAAkB,EAGnB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAGzF,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAA;AACxE,OAAO,EAKL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M,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -27,7 +27,7 @@ export declare function injectChatAddToTask(): ChatAddToTaskHandler | null;
|
|
|
27
27
|
* `resource`),`uploadResult` 是历史字段的占位——这里按同一形状补齐,避免为了
|
|
28
28
|
* 挂一个已经在云上的文件再走一次七牛上传(大文件重传的代价用户是能感知的)。
|
|
29
29
|
*/
|
|
30
|
-
export declare function createResourceAttachment(resource: ChatResourceFile): UploadedChatAttachment;
|
|
30
|
+
export declare function createResourceAttachment(resource: ChatResourceFile, fileId?: string): UploadedChatAttachment;
|
|
31
31
|
/** 同一份文件(同名同地址)只挂一次;地址为空时退回按文件名去重。 */
|
|
32
32
|
export declare function resourceAttachmentKey(resource: {
|
|
33
33
|
filename: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addToTask.d.ts","sourceRoot":"","sources":["../../../src/components/chat/addToTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,YAAY,EAAE,MAAM,KAAK,CAAA;AAC/C,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EAEpB,sBAAsB,EACvB,MAAM,SAAS,CAAA;AAEhB;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,oBAAoB,CAA2B,CAAA;AAE3F,wDAAwD;AACxD,wBAAgB,mBAAmB,IAAI,oBAAoB,GAAG,IAAI,CAEjE;AAKD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"addToTask.d.ts","sourceRoot":"","sources":["../../../src/components/chat/addToTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,YAAY,EAAE,MAAM,KAAK,CAAA;AAC/C,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EAEpB,sBAAsB,EACvB,MAAM,SAAS,CAAA;AAEhB;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,oBAAoB,CAA2B,CAAA;AAE3F,wDAAwD;AACxD,wBAAgB,mBAAmB,IAAI,oBAAoB,GAAG,IAAI,CAEjE;AAKD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,gBAAgB,EAC1B,MAAM,SAAK,GACV,sBAAsB,CAwBxB;AAED,sCAAsC;AACtC,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE;IAC9C,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,GAAG,MAAM,CAET;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,aAAa,GAAG,oBAAoB,CAQlF;AAED,6BAA6B;AAC7B,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachmentController.d.ts","sourceRoot":"","sources":["../../../src/components/chat/attachmentController.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"attachmentController.d.ts","sourceRoot":"","sources":["../../../src/components/chat/attachmentController.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,SAAS,CAAA;AAEhB,UAAU,uBAAuB;IAC/B,MAAM,EAAE,gBAAgB,CAAA;IACxB,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;CACxC;AAED,KAAK,gBAAgB,GAAG,CACtB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,uBAAuB,KAC7B,OAAO,CAAC,mBAAmB,CAAC,CAAA;AAEjC,MAAM,WAAW,+BAA+B;IAC9C,cAAc,EAAE,MAAM,SAAS,sBAAsB,EAAE,CAAA;IACvD,cAAc,EAAE,CAAC,WAAW,EAAE,SAAS,sBAAsB,EAAE,KAAK,IAAI,CAAA;IACxE,eAAe,EAAE,MAAM,gBAAgB,GAAG,SAAS,CAAA;IACnD,SAAS,CAAC,EAAE,MAAM,oBAAoB,CAAA;IACtC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI,CAAA;IAC3D,MAAM,CAAC,EAAE,gBAAgB,CAAA;CAC1B;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACnD,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACpC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5B,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAID,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,+BAA+B,GACvC,wBAAwB,CA0K1B"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { ChatAttachmentError, ChatAttachmentInput, ChatAttachmentInputTarget, ChatAttachmentLimits, ChatComposerAttachment, ChatFileCategory, ChatModelInputMediaPart, ChatResourceFile, ChatSendMention, ChatSendPayload, QiniuUploadFileItem } from './types';
|
|
2
2
|
import { type ChatAgentMode } from './chatAgentMode';
|
|
3
3
|
export declare const DEFAULT_CHAT_ATTACHMENT_LIMITS: ChatAttachmentLimits;
|
|
4
|
+
/** `maxFiles` 不是正数时不限制条数。 */
|
|
5
|
+
export declare function messageFileCountCap(maxFiles: number): number | undefined;
|
|
4
6
|
export declare function getFileExtension(fileName: string): string;
|
|
5
7
|
export declare function classifyAttachment(file: Pick<File, 'name' | 'type'>): ChatFileCategory;
|
|
6
8
|
export declare function classifyResourceFile(resource: ChatResourceFile): ChatFileCategory;
|
|
7
9
|
export declare function resolveAttachmentInputTarget(resource: ChatResourceFile, attachmentInput?: ChatAttachmentInput): ChatAttachmentInputTarget;
|
|
8
10
|
export declare function createAttachmentFingerprint(file: Pick<File, 'name' | 'size' | 'lastModified'>): string;
|
|
9
|
-
|
|
11
|
+
/** 输入框上传不按体积拒绝。个数上限仍在 `attachmentController`。 */
|
|
12
|
+
export declare function validateAttachmentFile(_file: File, _limits?: ChatAttachmentLimits): ChatAttachmentError | null;
|
|
10
13
|
export declare function parseQiniuUploadResult(value: unknown): QiniuUploadFileItem;
|
|
11
14
|
export declare function toChatResourceFile(result: QiniuUploadFileItem): ChatResourceFile;
|
|
12
15
|
export interface BuildChatSendPayloadOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachments.d.ts","sourceRoot":"","sources":["../../../src/components/chat/attachments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAEhB,uBAAuB,EAEvB,gBAAgB,EAChB,eAAe,EACf,eAAe,EAEf,mBAAmB,EAEpB,MAAM,SAAS,CAAA;AAChB,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAgC5E,eAAO,MAAM,8BAA8B,EAAE,oBAM5C,CAAA;AAID,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGzD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC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CAOA;AAUD,sFAAsF;AACtF,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAE/D;AAED,0EAA0E;AAC1E,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAMpD"}
|
|
@@ -66,6 +66,13 @@ export interface ChatFilePickerEntry {
|
|
|
66
66
|
* 走另一套两步弹框(先选库、再选文件),由 `ChatFilePickerLibrary` 承载。
|
|
67
67
|
*/
|
|
68
68
|
kind?: 'file' | 'folder';
|
|
69
|
+
/**
|
|
70
|
+
* 分组行:能展开,但不能勾选,确认时也不会当成文件夹提交。
|
|
71
|
+
*
|
|
72
|
+
* 「AI产物」的空间组和任务用它。它们的 id 不是资料夹 id,
|
|
73
|
+
* 勾选后会进 `my_files_chat.folder_ids`,后端不认。
|
|
74
|
+
*/
|
|
75
|
+
groupHeader?: boolean;
|
|
69
76
|
/** 子节点(目录树)。不传就是一层平铺列表。 */
|
|
70
77
|
children?: readonly ChatFilePickerEntry[];
|
|
71
78
|
}
|
|
@@ -75,6 +82,21 @@ export interface ChatFilePickerLibrary {
|
|
|
75
82
|
name: string;
|
|
76
83
|
/** 分组标题(个人知识库 / 共享知识库 / 我加入的…)。缺省归到「全部」。 */
|
|
77
84
|
group?: string;
|
|
85
|
+
/**
|
|
86
|
+
* 封面图地址(知识库头像)。
|
|
87
|
+
*
|
|
88
|
+
* 库和库在列表里长得一模一样时,名字是唯一的区分依据,扫描成本很高;
|
|
89
|
+
* 头像把「认库」变回一次图形识别。没有封面时组件用名称首字生成色块,
|
|
90
|
+
* 与知识库页面里的兜底表现一致,不会出现空白方块。
|
|
91
|
+
*/
|
|
92
|
+
cover?: string;
|
|
93
|
+
/**
|
|
94
|
+
* 名称下面的一行次要信息,如「36 个文件」「12 个文件 · 6 人」。
|
|
95
|
+
*
|
|
96
|
+
* 选落点时用户常靠「哪个库东西多 / 是我在用的那个」来定位,
|
|
97
|
+
* 给一行轻量元信息比让用户逐个点进去看有效得多。
|
|
98
|
+
*/
|
|
99
|
+
meta?: string;
|
|
78
100
|
}
|
|
79
101
|
/** 弹框顶部可切换的分组(如知识库列表)。 */
|
|
80
102
|
export interface ChatFilePickerTab {
|
|
@@ -87,12 +109,30 @@ export interface ChatFilePickerTab {
|
|
|
87
109
|
* 宿主实现:返回该库在当前关键词 / 当前分组下的文件树。组件库不知道各家的库接口,
|
|
88
110
|
* 只约定形状;失败时抛错即可,弹框会展示错误并允许重试。
|
|
89
111
|
*/
|
|
112
|
+
/**
|
|
113
|
+
* 一页列表。
|
|
114
|
+
*
|
|
115
|
+
* 目录树来源直接返回数组,弹框视为没有下一页。
|
|
116
|
+
* 「AI产物」这类分页接口返回这个形状,`hasMore` 为真时弹框滚到底再要下一页。
|
|
117
|
+
*/
|
|
118
|
+
export interface ChatFilePickerPage {
|
|
119
|
+
entries: readonly ChatFilePickerEntry[];
|
|
120
|
+
hasMore?: boolean;
|
|
121
|
+
}
|
|
122
|
+
export type ChatFilePickerLoadResult = readonly ChatFilePickerEntry[] | ChatFilePickerPage;
|
|
123
|
+
/** 把加载结果收成「条目 + 还有没有下一页」。纯数组没有下一页。 */
|
|
124
|
+
export declare function readChatFilePickerPage(result: ChatFilePickerLoadResult): {
|
|
125
|
+
entries: readonly ChatFilePickerEntry[];
|
|
126
|
+
hasMore: boolean;
|
|
127
|
+
};
|
|
90
128
|
export type ChatFilePickerLoader = (query: {
|
|
91
129
|
keyword?: string;
|
|
92
130
|
/** 当前选中的分组 key(来自 `source.tabs`);未声明页签时为 undefined。 */
|
|
93
131
|
tab?: string;
|
|
132
|
+
/** 从 1 开始。只有会分页的来源才用它;不传按第一页。 */
|
|
133
|
+
page?: number;
|
|
94
134
|
signal?: AbortSignal;
|
|
95
|
-
}) => Promise<
|
|
135
|
+
}) => Promise<ChatFilePickerLoadResult>;
|
|
96
136
|
/** 「整库」列表加载器(知识库这类先选库的来源用)。 */
|
|
97
137
|
export type ChatFilePickerLibraryLoader = (query: {
|
|
98
138
|
keyword?: string;
|
|
@@ -113,6 +153,37 @@ interface ChatFilePickerSourceBase {
|
|
|
113
153
|
title?: string;
|
|
114
154
|
/** 空列表文案。 */
|
|
115
155
|
emptyText?: string;
|
|
156
|
+
/**
|
|
157
|
+
* 「上传到备课中心」随落点一起提交的备课属性(`copyToTeaching` /
|
|
158
|
+
* `importArtifactToTeaching` 的可选入参)。
|
|
159
|
+
*
|
|
160
|
+
* 只在 `teaching` 落点被消费:宿主把「当前学年学期 / 资源范围」这类**环境级**
|
|
161
|
+
* 默认值放在来源上,选择弹框确认时一并带回,而不是让每个入口各自拼一遍。
|
|
162
|
+
* 不传就走后端默认(教案 / 本校 / 普通 / 备课上下文补全学年学期)。
|
|
163
|
+
*
|
|
164
|
+
* 注意 `term`:接口文档写「1/2」,备课域全站口径是 `0 上 / 1 下 / -1 全`,
|
|
165
|
+
* 冲突未裁决前宿主**不要**传它(空值由后端按备课上下文补全)。
|
|
166
|
+
*/
|
|
167
|
+
teaching?: ChatFilePickerTeachingOptions;
|
|
168
|
+
/**
|
|
169
|
+
* 「上传到」落点接受的扩展名(带不带前导点、大小写都不影响)。
|
|
170
|
+
*
|
|
171
|
+
* 只在作为 `ChatFileTransferSources` 落点时生效:扩展名不在其中的文件,
|
|
172
|
+
* 菜单里不出现这个落点,提交前也会被拦下。不传 = 不限制。
|
|
173
|
+
* 「+ → 添加文件」复用同一个来源时不受它影响。
|
|
174
|
+
*/
|
|
175
|
+
transferExtensions?: readonly string[];
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* 备课落点的环境级属性。`resourceType` 的枚举与备课域
|
|
179
|
+
* (`TeachingResourceType`)一致,字面量重复声明以避免接口契约层反向依赖编排层。
|
|
180
|
+
*/
|
|
181
|
+
export interface ChatFilePickerTeachingOptions {
|
|
182
|
+
resourceType?: 'COURSEWARE' | 'VIDEO' | 'WORKSHEET' | 'LESSON_PLAN' | 'PROJECT';
|
|
183
|
+
resourceRange?: string;
|
|
184
|
+
evaluationTag?: string;
|
|
185
|
+
year?: number;
|
|
186
|
+
term?: number;
|
|
116
187
|
}
|
|
117
188
|
/**
|
|
118
189
|
* 目录树来源(我的文件):一次给一棵树,弹框展开 + 勾选文件/文件夹。
|
|
@@ -146,6 +217,10 @@ export interface ChatFileTreePickerSource extends ChatFilePickerSourceBase {
|
|
|
146
217
|
* 对齐设计稿:弹框顶部两个页签「选择知识库 / 选择文件」。
|
|
147
218
|
* 「选择知识库」里按分组勾选整库(确认后按知识库选区进对话),
|
|
148
219
|
* 「选择文件」里左侧选库、右侧勾选该库的文件(确认后按文件挂附件)。
|
|
220
|
+
*
|
|
221
|
+
* **选落点(`mode: 'target'`)是另一套视图**:没有页签,左栏库列表、右栏该库的
|
|
222
|
+
* 文件夹树(首行「根目录」、单选)。上传的目标只能是目录,把文件列出来让用户
|
|
223
|
+
* 挑是纯干扰 —— 这也是这个来源需要额外一个 {@link loadFolders} 的原因。
|
|
149
224
|
*/
|
|
150
225
|
export interface ChatFileLibraryPickerSource extends ChatFilePickerSourceBase {
|
|
151
226
|
layout: 'library';
|
|
@@ -153,9 +228,24 @@ export interface ChatFileLibraryPickerSource extends ChatFilePickerSourceBase {
|
|
|
153
228
|
loadLibraries: ChatFilePickerLibraryLoader;
|
|
154
229
|
/** 拉某个库里的文件。 */
|
|
155
230
|
loadFiles: ChatFilePickerLibraryFilesLoader;
|
|
231
|
+
/**
|
|
232
|
+
* 拉某个库里的**文件夹树**(仅选落点模式用)。
|
|
233
|
+
*
|
|
234
|
+
* 不传时退化:用 `loadFiles` 的结果再筛一遍 `kind === 'folder'`,
|
|
235
|
+
* 但拍平的文件列表本来就拿不到目录层级,筛完通常只剩空 —— 所以库来源
|
|
236
|
+
* 想在「上传到」里选到具体目录,就应该提供它。
|
|
237
|
+
*/
|
|
238
|
+
loadFolders?: ChatFilePickerLibraryFilesLoader;
|
|
156
239
|
/** 空文件列表文案。 */
|
|
157
240
|
emptyFilesText?: string;
|
|
158
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
* 「选落点」时右栏「根目录」这一行的 id。
|
|
244
|
+
*
|
|
245
|
+
* 根目录不是库里的真实节点,但需要一个可选中的身份:选中它表示「落在库根」,
|
|
246
|
+
* 提交时**不带**目录 id(后端按不传处理)。用不可见字符前缀避免撞上真实目录 id。
|
|
247
|
+
*/
|
|
248
|
+
export declare const CHAT_FILE_PICKER_TARGET_ROOT_ID = "__chat_file_picker_root__";
|
|
159
249
|
/** 一个库来源(我的文件 / 知识库)。 */
|
|
160
250
|
export type ChatFilePickerSource = ChatFileTreePickerSource | ChatFileLibraryPickerSource;
|
|
161
251
|
/** 宿主可接入的库来源集合。 */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatFilePicker.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chatFilePicker.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE9D;;;;;;;;GAQG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,CAAA;AAEhE,4BAA4B;AAC5B,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAA;AAExE;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,GAAG,UAAU,CAAA;AAEzE;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAItE,CAAA;AAED,aAAa;AACb,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAIpE,CAAA;AAED,YAAY;AACZ,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAIpE,CAAA;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,2BAA2B;IAC3B,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gC;IAChC,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,SAAS,mBAAmB,EAAE,EACvC,WAAW,GAAE,QAAQ,CAAC,MAAM,CAAM,GACjC,iBAAiB,EAAE,CAgBrB;AAED;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,SAAS,mBAAmB,EAAE,EACvC,WAAW,GAAE,QAAQ,CAAC,MAAM,CAAM,GACjC,iBAAiB,EAAE,CAsBrB;AAED,6CAA6C,CAAC,wBAAgB,sBAAsB,CAClF,SAAS,EAAE,SAAS,qBAAqB,EAAE,GAC1C,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,qBAAqB,EAAE,CAAA;CAAE,CAAC,CAS1D"}
|
|
@@ -1,31 +1,46 @@
|
|
|
1
1
|
export type ChatQuotaSource = 'personal' | 'school';
|
|
2
|
-
|
|
2
|
+
/** `quotaOverview` 的四个数,单位积分。缺失按 0。 */
|
|
3
|
+
export interface ChatQuotaOverview {
|
|
4
|
+
userTotal: number;
|
|
5
|
+
userUsed: number;
|
|
6
|
+
schoolTotal: number;
|
|
7
|
+
schoolUsed: number;
|
|
8
|
+
}
|
|
3
9
|
export interface ChatQuotaPool {
|
|
4
10
|
source: ChatQuotaSource;
|
|
5
11
|
label: string;
|
|
6
12
|
used: number;
|
|
7
13
|
total: number;
|
|
8
|
-
timeLabel: string;
|
|
9
|
-
timeValue: string;
|
|
10
14
|
}
|
|
15
|
+
/** `listPointsDetails` 的一轮对话。 */
|
|
11
16
|
export interface ChatQuotaRecord {
|
|
12
17
|
id: string;
|
|
13
18
|
title: string;
|
|
14
19
|
time: string;
|
|
15
|
-
|
|
20
|
+
/** 旧轮次没有积分字段时为 `null`。 */
|
|
21
|
+
points: number | null;
|
|
16
22
|
model: string;
|
|
17
|
-
source: ChatQuotaSource;
|
|
18
23
|
}
|
|
19
|
-
|
|
20
|
-
export
|
|
24
|
+
/** 消耗明细的时间范围:`week` 不传时间走接口默认(本周一至周日)。 */
|
|
25
|
+
export type ChatQuotaRange = 'week' | 'month';
|
|
26
|
+
export declare const QUOTA_RANGE_OPTIONS: {
|
|
27
|
+
key: ChatQuotaRange;
|
|
28
|
+
label: string;
|
|
29
|
+
}[];
|
|
30
|
+
export declare const QUOTA_RECORDS_PAGE_SIZE = 20;
|
|
31
|
+
export declare function toQuotaPools(overview: ChatQuotaOverview): ChatQuotaPool[];
|
|
21
32
|
export declare function quotaRemainingPercent(used: number, total: number): number;
|
|
22
33
|
export declare function quotaUsedPercent(used: number, total: number): number;
|
|
23
|
-
export declare function
|
|
24
|
-
export declare function formatQuotaCost(value: number): string;
|
|
34
|
+
export declare function formatPoints(value: number): string;
|
|
35
|
+
export declare function formatQuotaCost(value: number | null): string;
|
|
25
36
|
export declare function formatQuotaUsage(used: number, total: number): string;
|
|
26
|
-
|
|
27
|
-
export declare function
|
|
28
|
-
|
|
29
|
-
export declare
|
|
30
|
-
|
|
37
|
+
/** 用量右侧的状态词:用完写「已用完」,没有额度不写。 */
|
|
38
|
+
export declare function quotaStatusText(used: number, total: number): string;
|
|
39
|
+
/** 接口只给日期时按天收口(起点 00:00:00 / 终点 23:59:59)。 */
|
|
40
|
+
export declare function quotaRangeQuery(range: ChatQuotaRange, now?: Date): {
|
|
41
|
+
startTime?: string;
|
|
42
|
+
endTime?: string;
|
|
43
|
+
};
|
|
44
|
+
/** `createDate` 是东八区 `yyyy-MM-dd HH:mm:ss`,原样换成斜杠;没有时用 `timestamp` 本地格式化。 */
|
|
45
|
+
export declare function formatQuotaTime(createDate?: string | null, timestamp?: number | null): string;
|
|
31
46
|
//# sourceMappingURL=chatQuota.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatQuota.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chatQuota.ts"],"names":[],"mappings":"AAAA,MA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C,KAAK,EAAE,MAAM,GAAG,MAAM,CAGlD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAG5D;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEpE;AAED,gCAAgC;AAChC,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAInE;AAUD,8CAA8C;AAC9C,wBAAgB,eAAe,CAC7B,KAAK,EAAE,cAAc,EACrB,GAAG,GAAE,IAAiB,GACrB;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAc1C;AAED,6EAA6E;AAC7E,wBAAgB,eAAe,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAQ7F"}
|
|
@@ -12,10 +12,12 @@ export interface ChatSessionSidebarAssets {
|
|
|
12
12
|
}
|
|
13
13
|
export declare const DEFAULT_SIDEBAR_ASSETS: ChatSessionSidebarAssets;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* 由 ChatSessionSidebar 内部作为 moreNavIcon
|
|
15
|
+
* 「更多」行的四宫格图标:侧栏通用 chrome,不绑定任何产品菜单,
|
|
16
|
+
* 由 ChatSessionSidebar 内部作为 moreNavIcon 使用。
|
|
17
|
+
* 浮层当前项靠背景高亮表示选中。
|
|
17
18
|
*/
|
|
18
19
|
export declare const SIDEBAR_MORE_NAV_ICON: string;
|
|
20
|
+
/** 勾选图标资源。浮层不再绘制,保留导出以免已引用它的宿主断掉。 */
|
|
19
21
|
export declare const SIDEBAR_NAV_CHECK_ICON: string;
|
|
20
22
|
/**
|
|
21
23
|
* 通用「我的文件」导航图标,供宿主在 navItems 中配置 files 项时使用。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatSessionSidebarAssets.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chatSessionSidebarAssets.ts"],"names":[],"mappings":"AAOA,OAAO,SAAS,MAAM,yCAAyC,CAAA;AAC/D,OAAO,eAAe,MAAM,gDAAgD,CAAA;AAG5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAGjE,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,kBAAkB,EAAE,MAAM,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,eAAO,MAAM,sBAAsB,EAAE,wBAQpC,CAAA;AAED
|
|
1
|
+
{"version":3,"file":"chatSessionSidebarAssets.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chatSessionSidebarAssets.ts"],"names":[],"mappings":"AAOA,OAAO,SAAS,MAAM,yCAAyC,CAAA;AAC/D,OAAO,eAAe,MAAM,gDAAgD,CAAA;AAG5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAGjE,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,kBAAkB,EAAE,MAAM,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,eAAO,MAAM,sBAAsB,EAAE,wBAQpC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAqB,CAAA;AACzD,qCAAqC;AACrC,eAAO,MAAM,sBAAsB,EAAE,MAAkB,CAAA;AAEvD;;;GAGG;AACH,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,CAAA;AAErC,wBAAgB,cAAc,CAC5B,MAAM,EAAE,wBAAwB,EAChC,IAAI,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,EACzD,MAAM,EAAE,OAAO,GACd,MAAM,CAOR;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAElE;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,CAEvF;AAED,6DAA6D;AAC7D,wBAAgB,wBAAwB,CACtC,KAAK,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,EACrC,KAAK,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAChC,MAAM,CAER"}
|
|
@@ -81,6 +81,10 @@ export interface ChatCloudHistoryConfig {
|
|
|
81
81
|
topUrl?: string;
|
|
82
82
|
/** 置顶会话列表,入参同 `findByUserId` 但不含 `groupId`。 */
|
|
83
83
|
findTopByUserIdUrl?: string;
|
|
84
|
+
/** 侧栏积分概览:个人、学校的总额度与已使用。 */
|
|
85
|
+
quotaOverviewUrl?: string;
|
|
86
|
+
/** 侧栏积分消耗明细:一轮一条,按时间倒序分页。 */
|
|
87
|
+
pointsDetailsUrl?: string;
|
|
84
88
|
}
|
|
85
89
|
export interface ChatCloudSkillsConfig {
|
|
86
90
|
params?: ChatSkillPublishedSearchParams;
|
|
@@ -219,6 +223,8 @@ export declare const DEFAULT_HISTORY_DELETE_URL = "/cloud/aibasicservices/generi
|
|
|
219
223
|
export declare const DEFAULT_HISTORY_MOVE_GROUP_URL = "/cloud/aibasicservices/genericAgent/history/check/moveGroup";
|
|
220
224
|
export declare const DEFAULT_HISTORY_TOP_URL = "/cloud/aibasicservices/genericAgent/history/check/top";
|
|
221
225
|
export declare const DEFAULT_HISTORY_FIND_TOP_BY_USER_URL = "/cloud/aibasicservices/genericAgent/history/check/findTopByUserId";
|
|
226
|
+
export declare const DEFAULT_QUOTA_OVERVIEW_URL = "/cloud/aibasicservices/genericAgent/history/check/quotaOverview";
|
|
227
|
+
export declare const DEFAULT_POINTS_DETAILS_URL = "/cloud/aibasicservices/genericAgent/history/check/listPointsDetails";
|
|
222
228
|
export declare const DEFAULT_SESSION_GROUP_LIST_URL = "/cloud/aibasicservices/genericAgent/group/check/list";
|
|
223
229
|
export declare const DEFAULT_SESSION_GROUP_CREATE_URL = "/cloud/aibasicservices/genericAgent/group/check/create";
|
|
224
230
|
export declare const DEFAULT_SESSION_GROUP_RENAME_URL = "/cloud/aibasicservices/genericAgent/group/check/rename";
|