mirror of
https://gitee.com/270580156/weiyu.git
synced 2025-12-30 10:52:26 +00:00
0.9.8
This commit is contained in:
1
deploy/server/admin/2699.6f979839.async.js
Normal file
1
deploy/server/admin/2699.6f979839.async.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
deploy/server/admin/6929.b2ff601d.async.js
Normal file
1
deploy/server/admin/6929.b2ff601d.async.js
Normal file
File diff suppressed because one or more lines are too long
1
deploy/server/admin/704.111141a5.async.js
Normal file
1
deploy/server/admin/704.111141a5.async.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,19 +1,19 @@
|
||||
{
|
||||
"/admin/umi.css": "/admin/umi.c10bed78.css",
|
||||
"/admin/umi.js": "/admin/umi.f960cef6.js",
|
||||
"/admin/umi.js": "/admin/umi.03555f5d.js",
|
||||
"/admin/1365.85fa7609.async.js": "/admin/1365.85fa7609.async.js",
|
||||
"/admin/6502.2f15b9b8.async.js": "/admin/6502.2f15b9b8.async.js",
|
||||
"/admin/6856.6eea2a28.async.js": "/admin/6856.6eea2a28.async.js",
|
||||
"/admin/731.6fff2e07.async.js": "/admin/731.6fff2e07.async.js",
|
||||
"/admin/6692.57d89d03.async.js": "/admin/6692.57d89d03.async.js",
|
||||
"/admin/6165.ac895145.async.js": "/admin/6165.ac895145.async.js",
|
||||
"/admin/p__Auth__Login__index.js": "/admin/p__Auth__Login__index.b0ed5387.async.js",
|
||||
"/admin/p__Auth__Login__index.js": "/admin/p__Auth__Login__index.30ea427f.async.js",
|
||||
"/admin/p__Auth__Register__index.js": "/admin/p__Auth__Register__index.d0d305ac.async.js",
|
||||
"/admin/p__OAuth__Github.js": "/admin/p__OAuth__Github.1ed05897.async.js",
|
||||
"/admin/p__OAuth__Google.js": "/admin/p__OAuth__Google.520e7d46.async.js",
|
||||
"/admin/p__Welcome.js": "/admin/p__Welcome.7e490573.async.js",
|
||||
"/admin/p__Dashboard__Team__Member__index.css": "/admin/p__Dashboard__Team__Member__index.f9c908ef.chunk.css",
|
||||
"/admin/p__Dashboard__Team__Member__index.js": "/admin/p__Dashboard__Team__Member__index.ddf3103d.async.js",
|
||||
"/admin/p__Dashboard__Team__Member__index.js": "/admin/p__Dashboard__Team__Member__index.de699ba9.async.js",
|
||||
"/admin/p__Dashboard__Team__Role__index.js": "/admin/p__Dashboard__Team__Role__index.feebe0b2.async.js",
|
||||
"/admin/p__Dashboard__Team__Action__index.js": "/admin/p__Dashboard__Team__Action__index.e1883181.async.js",
|
||||
"/admin/p__Dashboard__Team__Organization__index.js": "/admin/p__Dashboard__Team__Organization__index.737a46a1.async.js",
|
||||
@@ -30,13 +30,13 @@
|
||||
"/admin/p__Dashboard__Service__Settings__index.js": "/admin/p__Dashboard__Service__Settings__index.1272a635.async.js",
|
||||
"/admin/p__Dashboard__Service__Statistic__index.js": "/admin/p__Dashboard__Service__Statistic__index.a3f0f925.async.js",
|
||||
"/admin/p__Dashboard__Ai__Robot__index.css": "/admin/p__Dashboard__Ai__Robot__index.cb670aa5.chunk.css",
|
||||
"/admin/p__Dashboard__Ai__Robot__index.js": "/admin/p__Dashboard__Ai__Robot__index.69d54019.async.js",
|
||||
"/admin/p__Dashboard__Ai__Robot__index.js": "/admin/p__Dashboard__Ai__Robot__index.cd81f967.async.js",
|
||||
"/admin/p__Dashboard__Ai__LlmProvider__index.css": "/admin/p__Dashboard__Ai__LlmProvider__index.7c72a3a2.chunk.css",
|
||||
"/admin/p__Dashboard__Ai__LlmProvider__index.js": "/admin/p__Dashboard__Ai__LlmProvider__index.70748001.async.js",
|
||||
"/admin/p__Dashboard__Ai__Mcp__index.css": "/admin/p__Dashboard__Ai__Mcp__index.f9c908ef.chunk.css",
|
||||
"/admin/p__Dashboard__Ai__Mcp__index.js": "/admin/p__Dashboard__Ai__Mcp__index.24ca5395.async.js",
|
||||
"/admin/p__Dashboard__Ai__Prompt__index.css": "/admin/p__Dashboard__Ai__Prompt__index.f9c908ef.chunk.css",
|
||||
"/admin/p__Dashboard__Ai__Prompt__index.js": "/admin/p__Dashboard__Ai__Prompt__index.f01f2900.async.js",
|
||||
"/admin/p__Dashboard__Ai__Prompt__index.js": "/admin/p__Dashboard__Ai__Prompt__index.ffc1c25d.async.js",
|
||||
"/admin/p__Dashboard__Ai__Message__index.js": "/admin/p__Dashboard__Ai__Message__index.d7a81c97.async.js",
|
||||
"/admin/p__Dashboard__Ai__Statistic__index.js": "/admin/p__Dashboard__Ai__Statistic__index.b75e6ebb.async.js",
|
||||
"/admin/p__Dashboard__Kbase__index.js": "/admin/p__Dashboard__Kbase__index.64303c5e.async.js",
|
||||
@@ -46,7 +46,7 @@
|
||||
"/admin/p__Dashboard__Kbase__Article__ArticleStatistic.js": "/admin/p__Dashboard__Kbase__Article__ArticleStatistic.466a88ca.async.js",
|
||||
"/admin/p__Dashboard__Kbase__Llm__index.js": "/admin/p__Dashboard__Kbase__Llm__index.cb0578c2.async.js",
|
||||
"/admin/p__Dashboard__Kbase__Llm__LlmData.css": "/admin/p__Dashboard__Kbase__Llm__LlmData.f9c908ef.chunk.css",
|
||||
"/admin/p__Dashboard__Kbase__Llm__LlmData.js": "/admin/p__Dashboard__Kbase__Llm__LlmData.d51d5a8f.async.js",
|
||||
"/admin/p__Dashboard__Kbase__Llm__LlmData.js": "/admin/p__Dashboard__Kbase__Llm__LlmData.a69bb010.async.js",
|
||||
"/admin/p__Dashboard__Kbase__AutoReply__index.js": "/admin/p__Dashboard__Kbase__AutoReply__index.07036be4.async.js",
|
||||
"/admin/p__Dashboard__Kbase__AutoReply__AutoReplyData.css": "/admin/p__Dashboard__Kbase__AutoReply__AutoReplyData.f9c908ef.chunk.css",
|
||||
"/admin/p__Dashboard__Kbase__AutoReply__AutoReplyData.js": "/admin/p__Dashboard__Kbase__AutoReply__AutoReplyData.2aecf08d.async.js",
|
||||
@@ -60,7 +60,7 @@
|
||||
"/admin/p__Dashboard__Kbase__Material__index.js": "/admin/p__Dashboard__Kbase__Material__index.5f5832b8.async.js",
|
||||
"/admin/p__Dashboard__Kbase__Upload__index.js": "/admin/p__Dashboard__Kbase__Upload__index.8454f2b9.async.js",
|
||||
"/admin/p__Dashboard__Kbase__Statistic__index.js": "/admin/p__Dashboard__Kbase__Statistic__index.4af69dfe.async.js",
|
||||
"/admin/p__Dashboard__Ticket__index.js": "/admin/p__Dashboard__Ticket__index.a2690e9a.async.js",
|
||||
"/admin/p__Dashboard__Ticket__index.js": "/admin/p__Dashboard__Ticket__index.e367195a.async.js",
|
||||
"/admin/p__Dashboard__Ticket__Settings__index.js": "/admin/p__Dashboard__Ticket__Settings__index.a7113385.async.js",
|
||||
"/admin/p__Dashboard__Ticket__Statistic__index.js": "/admin/p__Dashboard__Ticket__Statistic__index.4d0ca3b1.async.js",
|
||||
"/admin/p__Dashboard__Crm__index.js": "/admin/p__Dashboard__Crm__index.34fb6b66.async.js",
|
||||
@@ -170,9 +170,10 @@
|
||||
"/admin/5409.2feacf1d.async.js": "/admin/5409.2feacf1d.async.js",
|
||||
"/admin/2972.462f6267.async.js": "/admin/2972.462f6267.async.js",
|
||||
"/admin/3775.1f70f9e3.async.js": "/admin/3775.1f70f9e3.async.js",
|
||||
"/admin/81.e9647051.async.js": "/admin/81.e9647051.async.js",
|
||||
"/admin/704.111141a5.async.js": "/admin/704.111141a5.async.js",
|
||||
"/admin/2699.6f979839.async.js": "/admin/2699.6f979839.async.js",
|
||||
"/admin/3956.cc809c01.async.js": "/admin/3956.cc809c01.async.js",
|
||||
"/admin/6929.70f4d15c.async.js": "/admin/6929.70f4d15c.async.js",
|
||||
"/admin/6929.b2ff601d.async.js": "/admin/6929.b2ff601d.async.js",
|
||||
"/admin/8599.f6d48bd3.async.js": "/admin/8599.f6d48bd3.async.js",
|
||||
"/admin/1894.f87db98c.async.js": "/admin/1894.f87db98c.async.js",
|
||||
"/admin/8802.5010f991.async.js": "/admin/8802.5010f991.async.js",
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
<link rel="shortcut icon" href="/admin/favicon.ico">
|
||||
<title>微语</title>
|
||||
<link rel="stylesheet" href="/admin/umi.c10bed78.css">
|
||||
<script src="/admin/preload_helper.15429147.js"></script>
|
||||
<script src="/admin/preload_helper.37bd06f2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script src="/admin/umi.f960cef6.js"></script>
|
||||
<script src="/admin/umi.03555f5d.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
deploy/server/admin/preload_helper.37bd06f2.js
Normal file
1
deploy/server/admin/preload_helper.37bd06f2.js
Normal file
File diff suppressed because one or more lines are too long
1
deploy/server/admin/umi.03555f5d.js
Normal file
1
deploy/server/admin/umi.03555f5d.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{T as t}from"./index-D3U9ZjOM.js";import o from"./index-4m_I0HhO.js";async function a(i){return o("/visitor/api/v1/init",{method:"POST",data:{...i,client:t}})}async function e(i){return o("/visitor/api/v1/browse",{method:"POST",data:{...i,client:t}})}export{e as browse,a as initVisitor};
|
||||
import{T as t}from"./index-DVtwMnLL.js";import o from"./index-CGmdXIBN.js";async function a(i){return o("/visitor/api/v1/init",{method:"POST",data:{...i,client:t}})}async function e(i){return o("/visitor/api/v1/browse",{method:"POST",data:{...i,client:t}})}export{e as browse,a as initVisitor};
|
||||
@@ -1 +1 @@
|
||||
import{T as a}from"./index-D3U9ZjOM.js";import r from"./index-4m_I0HhO.js";async function n(e){return r("/visitor/api/v1/message/unread/count",{method:"GET",params:{...e,client:a}})}async function o(e){return r("/visitor/api/v1/message/unread/clear",{method:"POST",data:{...e,client:a}})}export{o as clearUnreadMessages,n as getUnreadMessageCount};
|
||||
import{T as a}from"./index-DVtwMnLL.js";import r from"./index-CGmdXIBN.js";async function n(e){return r("/visitor/api/v1/message/unread/count",{method:"GET",params:{...e,client:a}})}async function o(e){return r("/visitor/api/v1/message/unread/clear",{method:"POST",data:{...e,client:a}})}export{o as clearUnreadMessages,n as getUnreadMessageCount};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{getApiUrl as m}from"./index-C3nupFff.js";import"./index-DKwo37b6.js";async function f(t,l,o,a){try{const i=new Date().toISOString().replace(/[-:T.]/g,"").slice(0,14),s=l||`${i}_${t.name}`,d=o||t.type||"image/jpeg",e=new FormData;e.append("file",t),e.append("fileName",s),e.append("fileType",d),e.append("isAvatar",(a==null?void 0:a.isAvatar)||"false"),e.append("kbType",(a==null?void 0:a.kbType)||"feedback");const p=(a==null?void 0:a.visitorUid)||localStorage.getItem("bytedesk_uid")||localStorage.getItem("bytedesk_visitor_uid")||"",c=(a==null?void 0:a.visitorNickname)||localStorage.getItem("bytedesk_nickname")||"",g=(a==null?void 0:a.visitorAvatar)||localStorage.getItem("bytedesk_avatar")||"",u=(a==null?void 0:a.orgUid)||"";e.append("visitorUid",p),e.append("visitorNickname",c),e.append("visitorAvatar",g),e.append("orgUid",u),e.append("client",(a==null?void 0:a.client)||"web"),a!=null&&a.isDebug&&console.log("handleUpload formData",e);const v=`${m()}/visitor/api/upload/file`,n=await fetch(v,{method:"POST",headers:{},body:e});if(!n.ok)throw new Error(`上传失败: ${n.status} ${n.statusText}`);const r=await n.json();return a!=null&&a.isDebug&&console.log("upload data:",r),r}catch(i){throw console.error("文件上传失败:",i),i}}async function b(t,l){var o;const a=`screenshot_${new Date().toISOString().replace(/[-:T.]/g,"").slice(0,14)}.jpg`;return((o=(await f(t,a,"image/jpeg",{...l,kbType:"feedback"})).data)==null?void 0:o.fileUrl)||""}export{f as handleUpload,b as uploadScreenshot};
|
||||
import{getApiUrl as m}from"./index-CGmdXIBN.js";import"./index-DVtwMnLL.js";async function f(t,l,o,a){try{const i=new Date().toISOString().replace(/[-:T.]/g,"").slice(0,14),s=l||`${i}_${t.name}`,d=o||t.type||"image/jpeg",e=new FormData;e.append("file",t),e.append("fileName",s),e.append("fileType",d),e.append("isAvatar",(a==null?void 0:a.isAvatar)||"false"),e.append("kbType",(a==null?void 0:a.kbType)||"feedback");const p=(a==null?void 0:a.visitorUid)||localStorage.getItem("bytedesk_uid")||localStorage.getItem("bytedesk_visitor_uid")||"",c=(a==null?void 0:a.visitorNickname)||localStorage.getItem("bytedesk_nickname")||"",g=(a==null?void 0:a.visitorAvatar)||localStorage.getItem("bytedesk_avatar")||"",u=(a==null?void 0:a.orgUid)||"";e.append("visitorUid",p),e.append("visitorNickname",c),e.append("visitorAvatar",g),e.append("orgUid",u),e.append("client",(a==null?void 0:a.client)||"web"),a!=null&&a.isDebug&&console.log("handleUpload formData",e);const v=`${m()}/visitor/api/upload/file`,n=await fetch(v,{method:"POST",headers:{},body:e});if(!n.ok)throw new Error(`上传失败: ${n.status} ${n.statusText}`);const r=await n.json();return a!=null&&a.isDebug&&console.log("upload data:",r),r}catch(i){throw console.error("文件上传失败:",i),i}}async function b(t,l){var o;const a=`screenshot_${new Date().toISOString().replace(/[-:T.]/g,"").slice(0,14)}.jpg`;return((o=(await f(t,a,"image/jpeg",{...l,kbType:"feedback"})).data)==null?void 0:o.fileUrl)||""}export{f as handleUpload,b as uploadScreenshot};
|
||||
@@ -1 +1 @@
|
||||
import i from"./index-C3nupFff.js";import"./index-DKwo37b6.js";function e(t){return i({url:"/visitor/api/feedback/submit",method:"post",data:t})}export{e as submitFeedback};
|
||||
import i from"./index-CGmdXIBN.js";import"./index-DVtwMnLL.js";function e(t){return i({url:"/visitor/api/feedback/submit",method:"post",data:t})}export{e as submitFeedback};
|
||||
@@ -1 +1 @@
|
||||
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><link rel="icon" type="image/x-icon" href="/agent/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title></title><script type="module" crossorigin src="/agent/agent/assets/js/index-D3U9ZjOM.js"></script><link rel="stylesheet" crossorigin href="/agent/agent/assets/css/index-DMeNvbmc.css"></head><body><div id="root"></div><script src="https://cdn.weiyuai.cn/agent/assets/js/0.3.5/sdk.js"></script><script src="https://cdn.weiyuai.cn/agent/assets/js/2.0.2/index.js" async></script></body></html>
|
||||
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><link rel="icon" type="image/x-icon" href="/agent/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title></title><script type="module" crossorigin src="/agent/agent/assets/js/index-DVtwMnLL.js"></script><link rel="stylesheet" crossorigin href="/agent/agent/assets/css/index-DMeNvbmc.css"></head><body><div id="root"></div><script src="https://cdn.weiyuai.cn/agent/assets/js/0.3.5/sdk.js"></script><script src="https://cdn.weiyuai.cn/agent/assets/js/2.0.2/index.js" async></script></body></html>
|
||||
1
deploy/server/agenticflow/assets/index-BYImhDWs.js
Normal file
1
deploy/server/agenticflow/assets/index-BYImhDWs.js
Normal file
@@ -0,0 +1 @@
|
||||
import i from"./index-xL8NObU8.js";import"./index-DpSllGzO.js";function e(t){return i({url:"/visitor/api/feedback/submit",method:"post",data:t})}export{e as submitFeedback};
|
||||
@@ -1 +1 @@
|
||||
import{T as a}from"./index-DKwo37b6.js";import r from"./index-C3nupFff.js";async function n(e){return r("/visitor/api/v1/message/unread/count",{method:"GET",params:{...e,client:a}})}async function o(e){return r("/visitor/api/v1/message/unread/clear",{method:"POST",data:{...e,client:a}})}export{o as clearUnreadMessages,n as getUnreadMessageCount};
|
||||
import{T as a}from"./index-DpSllGzO.js";import r from"./index-xL8NObU8.js";async function n(e){return r("/visitor/api/v1/message/unread/count",{method:"GET",params:{...e,client:a}})}async function o(e){return r("/visitor/api/v1/message/unread/clear",{method:"POST",data:{...e,client:a}})}export{o as clearUnreadMessages,n as getUnreadMessageCount};
|
||||
@@ -1 +1 @@
|
||||
import{T as t}from"./index-DKwo37b6.js";import o from"./index-C3nupFff.js";async function a(i){return o("/visitor/api/v1/init",{method:"POST",data:{...i,client:t}})}async function e(i){return o("/visitor/api/v1/browse",{method:"POST",data:{...i,client:t}})}export{e as browse,a as initVisitor};
|
||||
import{T as t}from"./index-DpSllGzO.js";import o from"./index-xL8NObU8.js";async function a(i){return o("/visitor/api/v1/init",{method:"POST",data:{...i,client:t}})}async function e(i){return o("/visitor/api/v1/browse",{method:"POST",data:{...i,client:t}})}export{e as browse,a as initVisitor};
|
||||
File diff suppressed because one or more lines are too long
1
deploy/server/agenticflow/assets/index-MCPRLL4Y.js
Normal file
1
deploy/server/agenticflow/assets/index-MCPRLL4Y.js
Normal file
@@ -0,0 +1 @@
|
||||
import{getApiUrl as m}from"./index-xL8NObU8.js";import"./index-DpSllGzO.js";async function f(t,l,o,a){try{const i=new Date().toISOString().replace(/[-:T.]/g,"").slice(0,14),s=l||`${i}_${t.name}`,d=o||t.type||"image/jpeg",e=new FormData;e.append("file",t),e.append("fileName",s),e.append("fileType",d),e.append("isAvatar",(a==null?void 0:a.isAvatar)||"false"),e.append("kbType",(a==null?void 0:a.kbType)||"feedback");const p=(a==null?void 0:a.visitorUid)||localStorage.getItem("bytedesk_uid")||localStorage.getItem("bytedesk_visitor_uid")||"",c=(a==null?void 0:a.visitorNickname)||localStorage.getItem("bytedesk_nickname")||"",g=(a==null?void 0:a.visitorAvatar)||localStorage.getItem("bytedesk_avatar")||"",u=(a==null?void 0:a.orgUid)||"";e.append("visitorUid",p),e.append("visitorNickname",c),e.append("visitorAvatar",g),e.append("orgUid",u),e.append("client",(a==null?void 0:a.client)||"web"),a!=null&&a.isDebug&&console.log("handleUpload formData",e);const v=`${m()}/visitor/api/upload/file`,n=await fetch(v,{method:"POST",headers:{},body:e});if(!n.ok)throw new Error(`上传失败: ${n.status} ${n.statusText}`);const r=await n.json();return a!=null&&a.isDebug&&console.log("upload data:",r),r}catch(i){throw console.error("文件上传失败:",i),i}}async function b(t,l){var o;const a=`screenshot_${new Date().toISOString().replace(/[-:T.]/g,"").slice(0,14)}.jpg`;return((o=(await f(t,a,"image/jpeg",{...l,kbType:"feedback"})).data)==null?void 0:o.fileUrl)||""}export{f as handleUpload,b as uploadScreenshot};
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{r as T,u as n,a as h}from"./index-DKwo37b6.js";async function y(t){return T("/api/v1/thread/query",{method:"GET",params:{...t}})}const b={async loadThreads(t,s=3){const{setLoading:o,setError:d,setThreads:i,searchText:c,pagination:a,setPagination:l}=n.getState(),p=h.getState().currentOrg,g=async u=>{try{o(!0),d(null);const r={orgUid:p.uid,pageNumber:a.pageNumber,pageSize:a.pageSize};c&&(r.searchText=c);const e=await y(r);if(console.log("queryThreads response",r,e.data),e.data.code===200){if(l({...a,total:e.data.data.totalElements,pageNumber:e.data.data.last?a.pageNumber:a.pageNumber+1}),a.pageNumber===0)i(e.data.data.content);else{const{threads:S}=n.getState();i([...S,...e.data.data.content])}const{setThreadResult:m}=n.getState();m(e.data)}else throw new Error(e.data.message)}catch(r){if(u<s)return await new Promise(e=>setTimeout(e,1e3)),g(u+1);d(r instanceof Error?r.message:"Failed to load threads")}finally{o(!1)}};return g(1)},async resetAndLoad(){const{setPagination:t}=n.getState(),s=h.getState().currentOrg;return t({pageNumber:0,pageSize:100,total:0}),this.loadThreads(s.uid)},async loadThreadsWithFilters(t){const{setFilter:s}=n.getState();return Object.entries(t).forEach(([o,d])=>{s(o,d)}),this.resetAndLoad()}};export{b as threadService};
|
||||
import{r as T,u as n,a as h}from"./index-DpSllGzO.js";async function y(t){return T("/api/v1/thread/query",{method:"GET",params:{...t}})}const b={async loadThreads(t,s=3){const{setLoading:o,setError:d,setThreads:i,searchText:c,pagination:a,setPagination:l}=n.getState(),p=h.getState().currentOrg,g=async u=>{try{o(!0),d(null);const r={orgUid:p.uid,pageNumber:a.pageNumber,pageSize:a.pageSize};c&&(r.searchText=c);const e=await y(r);if(console.log("queryThreads response",r,e.data),e.data.code===200){if(l({...a,total:e.data.data.totalElements,pageNumber:e.data.data.last?a.pageNumber:a.pageNumber+1}),a.pageNumber===0)i(e.data.data.content);else{const{threads:S}=n.getState();i([...S,...e.data.data.content])}const{setThreadResult:m}=n.getState();m(e.data)}else throw new Error(e.data.message)}catch(r){if(u<s)return await new Promise(e=>setTimeout(e,1e3)),g(u+1);d(r instanceof Error?r.message:"Failed to load threads")}finally{o(!1)}};return g(1)},async resetAndLoad(){const{setPagination:t}=n.getState(),s=h.getState().currentOrg;return t({pageNumber:0,pageSize:100,total:0}),this.loadThreads(s.uid)},async loadThreadsWithFilters(t){const{setFilter:s}=n.getState();return Object.entries(t).forEach(([o,d])=>{s(o,d)}),this.resetAndLoad()}};export{b as threadService};
|
||||
@@ -21,7 +21,7 @@
|
||||
<!-- 导致无法连接mqtt服务器,暂时注释掉 -->
|
||||
<!-- <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" /> -->
|
||||
<title></title>
|
||||
<script type="module" crossorigin src="/agenticflow/assets/index-DKwo37b6.js"></script>
|
||||
<script type="module" crossorigin src="/agenticflow/assets/index-DpSllGzO.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/agenticflow/assets/index-Dr4kv2us.css">
|
||||
</head>
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
deploy/server/chat/assets/threadService-BwqEDSHl.js
Normal file
1
deploy/server/chat/assets/threadService-BwqEDSHl.js
Normal file
@@ -0,0 +1 @@
|
||||
import{r as c,u as o,a as i,T as h}from"./index-BnpJCwhg.js";async function u(e){return c("/api/v1/thread/query",{method:"GET",params:{...e}})}const l={async loadThreads(){const{setThreads:e,setLoading:r,setError:a}=o.getState();try{r(!0),a(null);const t={pageNumber:0,pageSize:100,type:h},s=await u(t);if(console.log("queryThreads response",s.data,t),s.data.code===200){const n=s.data.data.content.filter(d=>!d.hide);e(n)}else throw new Error(s.data.message)}catch(t){a(t instanceof Error?t.message:"加载会话失败")}finally{r(!1)}},async resetAndLoad(){const{setPagination:e}=o.getState(),r=i.getState().currentOrg;return e({pageNumber:0,pageSize:100,total:0}),this.loadThreads(r.uid)},async loadThreadsWithFilters(e){const{setFilter:r}=o.getState();return Object.entries(e).forEach(([a,t])=>{r(a,t)}),this.resetAndLoad()}};export{l as threadService};
|
||||
@@ -25,8 +25,8 @@
|
||||
<meta name="format-detection" content="email=no">
|
||||
<!-- title将由JavaScript动态设置,使用国际化 -->
|
||||
<title></title>
|
||||
<script type="module" crossorigin src="/chat/assets/index-Iz-Hq2jD.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/chat/assets/index-Cehp-tbt.css">
|
||||
<script type="module" crossorigin src="/chat/assets/index-BnpJCwhg.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/chat/assets/index-ChI_i-ZL.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user