From 18f2532f762b093b1c7cb3ed61d23e051ad2b972 Mon Sep 17 00:00:00 2001
From: yhjun1026 <460342015@qq.com>
Date: Wed, 2 Aug 2023 16:41:15 +0800
Subject: [PATCH] fix(web): Switching from the dashboard page to other dialogue
record pages reports an error
---
pilot/server/static/404.html | 2 +-
pilot/server/static/404/index.html | 2 +-
.../_buildManifest.js | 0
.../_ssgManifest.js | 0
.../_next/static/chunks/app/chat/page-86595a764417b205.js | 1 -
.../_next/static/chunks/app/chat/page-f0d8fd24469f64f9.js | 1 +
pilot/server/static/chat/index.html | 2 +-
pilot/server/static/chat/index.txt | 4 ++--
pilot/server/static/datastores/documents/chunklist/index.html | 2 +-
pilot/server/static/datastores/documents/chunklist/index.txt | 2 +-
pilot/server/static/datastores/documents/index.html | 2 +-
pilot/server/static/datastores/documents/index.txt | 2 +-
pilot/server/static/datastores/index.html | 2 +-
pilot/server/static/datastores/index.txt | 2 +-
pilot/server/static/index.html | 2 +-
pilot/server/static/index.txt | 2 +-
16 files changed, 14 insertions(+), 14 deletions(-)
rename pilot/server/static/_next/static/{9C-EourU_3qSC0HuMlO9a => Iwzr9XFjkUv9028K-ieh2}/_buildManifest.js (100%)
rename pilot/server/static/_next/static/{9C-EourU_3qSC0HuMlO9a => Iwzr9XFjkUv9028K-ieh2}/_ssgManifest.js (100%)
delete mode 100644 pilot/server/static/_next/static/chunks/app/chat/page-86595a764417b205.js
create mode 100644 pilot/server/static/_next/static/chunks/app/chat/page-f0d8fd24469f64f9.js
diff --git a/pilot/server/static/404.html b/pilot/server/static/404.html
index 2dda42bba..475a561c7 100644
--- a/pilot/server/static/404.html
+++ b/pilot/server/static/404.html
@@ -1 +1 @@
-
404: This page could not be found 404
This page could not be found.
\ No newline at end of file
+404: This page could not be found 404
This page could not be found.
\ No newline at end of file
diff --git a/pilot/server/static/404/index.html b/pilot/server/static/404/index.html
index 2dda42bba..475a561c7 100644
--- a/pilot/server/static/404/index.html
+++ b/pilot/server/static/404/index.html
@@ -1 +1 @@
-404: This page could not be found 404
This page could not be found.
\ No newline at end of file
+404: This page could not be found 404
This page could not be found.
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/9C-EourU_3qSC0HuMlO9a/_buildManifest.js b/pilot/server/static/_next/static/Iwzr9XFjkUv9028K-ieh2/_buildManifest.js
similarity index 100%
rename from pilot/server/static/_next/static/9C-EourU_3qSC0HuMlO9a/_buildManifest.js
rename to pilot/server/static/_next/static/Iwzr9XFjkUv9028K-ieh2/_buildManifest.js
diff --git a/pilot/server/static/_next/static/9C-EourU_3qSC0HuMlO9a/_ssgManifest.js b/pilot/server/static/_next/static/Iwzr9XFjkUv9028K-ieh2/_ssgManifest.js
similarity index 100%
rename from pilot/server/static/_next/static/9C-EourU_3qSC0HuMlO9a/_ssgManifest.js
rename to pilot/server/static/_next/static/Iwzr9XFjkUv9028K-ieh2/_ssgManifest.js
diff --git a/pilot/server/static/_next/static/chunks/app/chat/page-86595a764417b205.js b/pilot/server/static/_next/static/chunks/app/chat/page-86595a764417b205.js
deleted file mode 100644
index 2255ebf43..000000000
--- a/pilot/server/static/_next/static/chunks/app/chat/page-86595a764417b205.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{86066:function(e,l,t){Promise.resolve().then(t.bind(t,65641))},65641:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return X}});var n=t(9268),i=t(86006),a=t(91440),s=t(90022),r=t(69962),o=t(97287),d=t(73141),c=t(45642),u=t(8997),h=t(22046),x=t(83192),v=t(90545),p=t(89081),f=t(78915),m=t(71990),j=e=>{let l=(0,i.useReducer)((e,l)=>({...e,...l}),{...e});return l},b=t(57931),g=t(52040),y=e=>{let{queryAgentURL:l,channel:t,queryBody:n,initHistory:a,runHistoryList:s}=e,[r,o]=j({history:a||[]}),{refreshDialogList:d}=(0,b.Cg)(),c=new AbortController;(0,i.useEffect)(()=>{a&&o({history:a})},[a]);let u=async(e,i)=>{if(!e)return;let a=[...r.history,{role:"human",context:e}],s=a.length;o({history:a});try{await (0,m.L)("".concat(g.env.API_BASE_URL?g.env.API_BASE_URL:"").concat("/api"+l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...i,...n,user_input:e,channel:t}),signal:c.signal,async onopen(e){if(a.length<=1){var l;d();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),null===(l=window.history)||void 0===l||l.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==m.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw console.log("onerror"),Error(e)},onmessage:e=>{var l,t,n;if(e.data=null===(l=e.data)||void 0===l?void 0:l.replaceAll("\\n","\n"),"[DONE]"===e.data);else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))o({history:[...a,{role:"view",context:null===(n=e.data)||void 0===n?void 0:n.replace("[ERROR]","")}]});else{let l=[...a];e.data&&((null==l?void 0:l[s])?l[s].context="".concat(e.data):l.push({role:"view",context:e.data}),o({history:l}))}}})}catch(e){console.log(e),o({history:[...a,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:u,history:r.history}},_=t(67830),w=t(54842),Z=t(80937),N=t(311),P=t(94244),C=t(12025),S=t(46571),k=t(53113),E=t(35086),D=t(53047),R=t(81528),O=t(30530),L=t(64747),B=t(77614),I=t(19700),T=t(92391),A=t(55749),z=t(70781),F=t(75403),V=t(99398),q=t(49064),J=t(56008),M=t(84835),U=t.n(M),W=t(21628),H=t(15241),G=t(28179);let K=T.z.object({query:T.z.string().min(1)});var Y=e=>{var l;let{messages:a,onSubmit:r,readOnly:o,paramsList:d,runParamsList:c,isChartChat:u=!1,dbList:h,runDbList:p,supportTypes:m,clearIntialMessage:j,setChartsData:b}=e,g=(0,J.useSearchParams)(),y=g.get("initMessage"),T=g.get("scene"),M=(0,i.useRef)(null),[Y,Q]=(0,i.useState)(!1),[X,$]=(0,i.useState)(),[ee,el]=(0,i.useState)(!1),[et,en]=(0,i.useState)(),[ei,ea]=(0,i.useState)(a),[es,er]=(0,i.useState)(""),[eo,ed]=(0,i.useState)(!1),[ec,eu]=(0,i.useState)(h),eh=(e,l,t)=>{let n=U().cloneDeep(ec);n&&(void 0===(null==ec?void 0:ec[e])&&(n[e]={}),n[e][l]=t,eu(n))},ex=(0,I.cI)({resolver:(0,_.F)(K),defaultValues:{}}),ev=async e=>{let{query:l}=e;try{Q(!0),ex.reset(),await r(l,{select_param:null==d?void 0:d[X]})}catch(e){}finally{Q(!1)}},ep=async()=>{try{var e;let l=new URLSearchParams(window.location.search),t=l.get("initMessage");l.delete("initMessage"),null===(e=window.history)||void 0===e||e.replaceState(null,null,"?".concat(l.toString())),await ev({query:t})}catch(e){console.log(e)}finally{null==j||j()}},ef={overrides:{code:e=>{let{children:l}=e;return(0,n.jsx)(V.Z,{language:"javascript",style:q.Z,children:l})}},wrapper:i.Fragment},em=e=>{let l=e;try{l=JSON.parse(e)}catch(e){console.log(e)}return l},ej=i.useMemo(()=>{if("function"==typeof(null==window?void 0:window.fetch)){let e=t(62631);return t(25204),t(82372),e.default}},[]);return i.useEffect(()=>{M.current&&M.current.scrollTo(0,M.current.scrollHeight)},[null==a?void 0:a.length]),i.useEffect(()=>{y&&a.length<=0&&ep()},[y,a.length]),i.useEffect(()=>{var e,l;d&&(null===(e=Object.keys(d||{}))||void 0===e?void 0:e.length)>0&&$(null===(l=Object.keys(d||{}))||void 0===l?void 0:l[0])},[d]),i.useEffect(()=>{if(u){let e=U().cloneDeep(a);e.forEach(e=>{(null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=em(null==e?void 0:e.context))}),ea(e.filter(e=>["view","human"].includes(e.role)))}else ea(a.filter(e=>["view","human"].includes(e.role)))},[u,a]),(0,i.useEffect)(()=>{let e=U().cloneDeep(h);null==e||e.forEach(e=>{let l=null==m?void 0:m.find(l=>l.db_type===e.db_type);e.isfileDb=null==l?void 0:l.is_file_db}),eu(e)},[h,m]),(0,n.jsxs)("div",{className:"w-full h-full",children:[(0,n.jsxs)(Z.Z,{className:"w-full h-full bg-[#fefefe] dark:bg-[#212121]",sx:{table:{borderCollapse:"collapse",border:"1px solid #ccc",width:"100%"},"th, td":{border:"1px solid #ccc",padding:"10px",textAlign:"center"}},children:[(0,n.jsxs)(Z.Z,{ref:M,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null==ei?void 0:ei.map((e,l)=>{var t,i;return(0,n.jsx)(Z.Z,{children:(0,n.jsx)(s.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:l=>({background:"view"===e.role?"var(--joy-palette-primary-softBg, var(--joy-palette-primary-100, #DDF1FF))":"unset",border:"unset",borderRadius:"unset",padding:"24px 0 26px 0",lineHeight:"24px"}),children:(0,n.jsxs)(v.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,n.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,n.jsx)(z.Z,{}):(0,n.jsx)(A.Z,{})}),(0,n.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:u&&"view"===e.role&&"object"==typeof(null==e?void 0:e.context)?(0,n.jsxs)(n.Fragment,{children:["[".concat(e.context.template_name,"]: "),(0,n.jsx)(N.Z,{sx:{color:"#1677ff"},component:"button",onClick:()=>{el(!0),en(l),er(JSON.stringify(null==e?void 0:e.context,null,2))},children:e.context.template_introduce||"暂无介绍"})]}):(0,n.jsx)(F.Z,{options:ef,children:null===(t=e.context)||void 0===t?void 0:null===(i=t.replaceAll)||void 0===i?void 0:i.call(t,"\\n","\n")})})]})})},l)}),Y&&(0,n.jsx)(P.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!o&&(0,n.jsx)(v.Z,{className:"bg-[#fefefe] dark:bg-[#212121] before:bg-[#fefefe] before:dark:bg-[#212121]",sx:{position:"relative","&::before":{content:'" "',position:"absolute",top:"-18px",left:"0",right:"0",width:"100%",margin:"0 auto",height:"20px",filter:"blur(10px)",zIndex:2}},children:(0,n.jsxs)("form",{style:{maxWidth:"100%",width:"76%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px",paddingBottom:"58px",paddingTop:"20px"},onSubmit:e=>{e.stopPropagation(),ex.handleSubmit(ev)(e)},children:[(0,n.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[Object.keys(d||{}).length>0&&(0,n.jsx)("div",{className:"flex items-center gap-3",children:(0,n.jsx)(C.Z,{value:X,onChange:(e,l)=>{$(l)},sx:{maxWidth:"100%"},children:null===(l=Object.keys(d||{}))||void 0===l?void 0:l.map(e=>(0,n.jsx)(S.Z,{value:e,children:e},e))})}),["chat_with_db_execute","chat_with_db_qa"].includes(T)&&(0,n.jsx)(k.Z,{"aria-label":"Like",variant:"plain",color:"neutral",sx:{padding:0,"&: hover":{backgroundColor:"unset"}},onClick:()=>{ed(!0)},children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,n.jsx)(G.Z,{style:{marginBottom:"0.125rem",fontSize:"28px"}}),(0,n.jsx)("span",{style:{display:"block",lineHeight:"25px",fontSize:12,marginLeft:6},children:"DB Connect Setting"})]})})]}),(0,n.jsx)(E.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,n.jsx)(D.ZP,{type:"submit",disabled:Y,children:(0,n.jsx)(w.Z,{})}),...ex.register("query")})]})})]}),(0,n.jsx)(R.Z,{open:ee,onClose:()=>{el(!1)},children:(0,n.jsxs)(O.Z,{"aria-labelledby":"variant-modal-title","aria-describedby":"variant-modal-description",children:[(0,n.jsx)(L.Z,{}),(0,n.jsxs)(v.Z,{sx:{marginTop:"32px"},children:[!!ej&&(0,n.jsx)(ej,{mode:"json",value:es,height:"600px",width:"820px",onChange:er,placeholder:"默认json数据",debounceChangePeriod:100,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,setOptions:{useWorker:!0,showLineNumbers:!0,highlightSelectedWord:!0,tabSize:2}}),(0,n.jsx)(k.Z,{variant:"outlined",className:"w-full",sx:{marginTop:"12px"},onClick:()=>{if(et)try{let e=U().cloneDeep(ei),l=JSON.parse(es);e[et].context=l,ea(e),null==b||b(null==l?void 0:l.charts),el(!1),er("")}catch(e){W.ZP.error("JSON 格式化出错")}},children:"Submit"})]})]})}),(0,n.jsx)(R.Z,{open:eo,onClose:()=>{ed(!1),null==c||c()},children:(0,n.jsxs)(O.Z,{children:[(0,n.jsx)(L.Z,{}),(0,n.jsxs)(x.Z,{children:[(0,n.jsx)("caption",{children:(0,n.jsx)("h3",{style:{fontWeight:"bold"},children:"数据库列表"})}),(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{style:{width:"140px"},children:"数据库类型"}),(0,n.jsx)("th",{style:{width:"130px"},children:"数据库名"}),(0,n.jsx)("th",{style:{width:"150px"},children:"链接地址/域名"}),(0,n.jsx)("th",{style:{width:"100px"},children:"端口"}),(0,n.jsx)("th",{style:{width:"140px"},children:"用户名"}),(0,n.jsx)("th",{style:{width:"140px"},children:"密码"}),(0,n.jsx)("th",{style:{width:"140px"},children:"备注"}),(0,n.jsx)("th",{style:{width:"140px"},children:"操作"})]})}),(0,n.jsxs)("tbody",{children:[null==ec?void 0:ec.map((e,l)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(C.Z,{defaultValue:null==e?void 0:e.db_type,onChange:(e,t)=>{let n=null==m?void 0:m.find(e=>e.db_type===t),i=U().cloneDeep(ec);i[l].db_type=t,i[l].isfileDb=null==n?void 0:n.is_file_db,n?(i[l].db_host="",i[l].db_port=""):i[l].db_path="",eu(i)},children:null==m?void 0:m.map(e=>(0,n.jsx)(S.Z,{value:e.db_type,children:null==e?void 0:e.db_type},e.db_type))}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_type,children:null==e?void 0:e.db_type})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isNew)?(0,n.jsx)(E.ZP,{value:null==e?void 0:e.db_name,onChange:e=>{eh(l,"db_name",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_name,children:null==e?void 0:e.db_name})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(E.ZP,{value:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host,onChange:t=>{(null==e?void 0:e.isfileDb)?eh(l,"db_path",t.target.value):eh(l,"db_host",t.target.value)}}):(0,n.jsx)(H.Z,{title:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host,children:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(null==e?void 0:e.isfileDb)?"-":(0,n.jsx)(E.ZP,{value:null==e?void 0:e.db_port,onChange:e=>{eh(l,"db_port",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_port,children:null==e?void 0:e.db_port})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(E.ZP,{defaultValue:e.db_user,onChange:e=>{eh(l,"db_user",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_user,children:null==e?void 0:e.db_user})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(E.ZP,{defaultValue:e.db_pwd,type:"password",onChange:e=>{eh(l,"db_pwd",e.target.value)}}):(0,n.jsx)(n.Fragment,{children:"******"})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(E.ZP,{defaultValue:null==e?void 0:e.comment,onChange:e=>{eh(l,"comment",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.comment,children:null==e?void 0:e.comment})}),(0,n.jsx)("td",{children:(0,n.jsxs)(v.Z,{sx:{gap:1,["& .".concat(B.Z.root)]:{padding:0,"&:hover":{background:"transparent"}}},children:[(null==e?void 0:e.isEdit)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(k.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:async()=>{let l=U().cloneDeep(e),t={db_type:null==l?void 0:l.db_type,db_name:null==l?void 0:l.db_name,file_path:(null==l?void 0:l.isfileDb)?null==l?void 0:l.db_path:void 0,db_host:(null==l?void 0:l.isfileDb)?void 0:null==l?void 0:l.db_host,db_port:(null==l?void 0:l.isfileDb)?void 0:null==l?void 0:l.db_port,db_user:null==l?void 0:l.db_user,db_pwd:null==l?void 0:l.db_pwd,comment:null==l?void 0:l.comment};if(l.isNew){let e=null==h?void 0:h.map(e=>null==e?void 0:e.db_name);if(null==e?void 0:e.includes(null==l?void 0:l.db_name)){W.ZP.error("该数据库名称已存在");return}await (0,f.PR)("/api/v1/chat/db/add",t)}else await (0,f.PR)("/api/v1/chat/db/edit",t);await (null==p?void 0:p())},children:"保存"}),(0,n.jsx)(k.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:()=>{let t=U().cloneDeep(ec);(null==e?void 0:e.isNew)?t.splice(l,1):(t[l].isEdit=!1,t[l]=null==h?void 0:h[l]),eu(t)},children:"取消"})]}):(0,n.jsx)(k.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:()=>{let e=U().cloneDeep(ec);e[l].isEdit=!0,eu(e)},children:"编辑"}),(0,n.jsx)(k.Z,{size:"sm",variant:"soft",color:"danger",onClick:async()=>{(null==e?void 0:e.db_name)&&(await (0,f.PR)("/api/v1/chat/db/delete?db_name=".concat(null==e?void 0:e.db_name)),await (null==p?void 0:p()))},children:"删除"})]})})]},l)),(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:8,children:(0,n.jsx)(k.Z,{variant:"outlined",sx:{width:"100%"},onClick:()=>{let e=U().cloneDeep(ec);null==e||e.push({isEdit:!0,isNew:!0,db_name:""}),eu(e)},children:"+ 新增一行"})})})]})]})]})})]})};let Q=()=>(0,n.jsxs)(s.Z,{className:"h-full w-full flex bg-transparent",children:[(0,n.jsx)(r.Z,{animation:"wave",variant:"text",level:"body2"}),(0,n.jsx)(r.Z,{animation:"wave",variant:"text",level:"body2"}),(0,n.jsx)(o.Z,{ratio:"21/9",className:"flex-1",sx:{["& .".concat(d.Z.content)]:{height:"100%"}},children:(0,n.jsx)(r.Z,{variant:"overlay",className:"h-full"})})]});var X=()=>{let[e,l]=(0,i.useState)();i.useRef(null);let[t,r]=i.useState(!1),o=(0,J.useSearchParams)(),{refreshDialogList:d}=(0,b.Cg)(),m=o.get("id"),j=o.get("scene"),{data:g,run:_}=(0,p.Z)(async()=>await (0,f.Tk)("/v1/chat/dialogue/messages/history",{con_uid:m}),{ready:!!m,refreshDeps:[m]}),{data:w,run:Z}=(0,p.Z)(async()=>await (0,f.Tk)("/v1/chat/db/list"),{ready:!!j&&!!["chat_with_db_execute","chat_with_db_qa"].includes(j)}),{data:N}=(0,p.Z)(async()=>await (0,f.Tk)("/v1/chat/db/support/type"),{ready:!!j&&!!["chat_with_db_execute","chat_with_db_qa"].includes(j)}),{data:P,run:C}=(0,p.Z)(async()=>await (0,f.Kw)("/v1/chat/mode/params/list?chat_mode=".concat(j)),{ready:!!j,refreshDeps:[m,j]}),{history:S,handleChatSubmit:k}=y({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:m,chat_mode:j||"chat_normal"},initHistory:null==g?void 0:g.data,runHistoryList:_});(0,i.useEffect)(()=>{try{var e;let t=null==S?void 0:null===(e=S[S.length-1])||void 0===e?void 0:e.context,n=JSON.parse(t);l((null==n?void 0:n.template_name)==="report"?null==n?void 0:n.charts:void 0)}catch(e){l(void 0)}},[S]);let E=(0,i.useMemo)(()=>{if(e){let l=[],t=null==e?void 0:e.filter(e=>"IndicatorValue"===e.chart_type);t.length>0&&l.push({rowIndex:l.length,cols:t,type:"IndicatorValue"});let n=null==e?void 0:e.filter(e=>"IndicatorValue"!==e.chart_type),i=n.length,a=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][i].forEach(e=>{if(e>0){let t=n.slice(a,a+e);a+=e,l.push({rowIndex:l.length,cols:t})}}),l}},[e]);return(0,n.jsxs)(c.Z,{container:!0,spacing:2,className:"h-full",sx:{flexGrow:1},children:[e&&(0,n.jsx)(c.Z,{xs:8,className:"max-h-full",children:(0,n.jsx)("div",{className:"flex flex-col gap-3 h-full",children:null==E?void 0:E.map(e=>(0,n.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex flex-1 gap-3 overflow-hidden":""),children:e.cols.map(e=>{if("IndicatorValue"===e.chart_type)return(0,n.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(s.Z,{sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"justify-around",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,n.jsx)(h.ZP,{children:e.value})]})})},e.name))},e.chart_uid);if("LineChart"===e.chart_type)return(0,n.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,n.jsx)(s.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"h-full",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1 h-full",children:(0,n.jsx)(a.Chart,{padding:[10,20,50,40],autoFit:!0,data:e.values,children:(0,n.jsx)(a.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"name*value",color:"type"})})})]})})},e.chart_uid);if("BarChart"===e.chart_type)return(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(s.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"h-full",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(a.Chart,{autoFit:!0,data:e.values,children:[(0,n.jsx)(a.Interval,{position:"name*value",style:{lineWidth:3,stroke:(0,a.getTheme)().colors10[0]}}),(0,n.jsx)(a.Tooltip,{shared:!0})]})})]})})},e.chart_uid);if("Table"===e.chart_type){var l,t;let i=U().groupBy(e.values,"type");return(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(s.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"h-full",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(x.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:Object.keys(i).map(e=>(0,n.jsx)("th",{children:e},e))})}),(0,n.jsx)("tbody",{children:null===(l=Object.values(i))||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.map((e,l)=>{var t;return(0,n.jsx)("tr",{children:null===(t=Object.keys(i))||void 0===t?void 0:t.map(e=>{var t;return(0,n.jsx)("td",{children:(null==i?void 0:null===(t=i[e])||void 0===t?void 0:t[l].value)||""},e)})},l)})})]})})]})})},e.chart_uid)}})},e.rowIndex))})}),!e&&"chat_dashboard"===j&&(0,n.jsx)(c.Z,{xs:8,className:"max-h-full p-6",children:(0,n.jsx)("div",{className:"flex flex-col gap-3 h-full",children:(0,n.jsxs)(c.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,n.jsx)(c.Z,{xs:8,children:(0,n.jsx)(v.Z,{className:"h-full w-full",sx:{display:"flex",gap:2},children:(0,n.jsx)(Q,{})})}),(0,n.jsx)(c.Z,{xs:4,children:(0,n.jsx)(Q,{})}),(0,n.jsx)(c.Z,{xs:4,children:(0,n.jsx)(Q,{})}),(0,n.jsx)(c.Z,{xs:8,children:(0,n.jsx)(Q,{})})]})})}),(0,n.jsx)(c.Z,{xs:"chat_dashboard"===j?4:12,className:"h-full max-h-full",children:(0,n.jsx)("div",{className:"h-full",style:{boxShadow:"chat_dashboard"===j?"0px 0px 9px 0px #c1c0c080":"unset"},children:(0,n.jsx)(Y,{clearIntialMessage:async()=>{await d()},dbList:null==w?void 0:w.data,runDbList:Z,supportTypes:null==N?void 0:N.data,isChartChat:"chat_dashboard"===j,messages:S||[],onSubmit:k,paramsList:null==P?void 0:P.data,runParamsList:C,setChartsData:l})})})]})}},57931:function(e,l,t){"use strict";t.d(l,{ZP:function(){return d},Cg:function(){return r}});var n=t(9268),i=t(89081),a=t(78915),s=t(86006);let[r,o]=function(){let e=s.createContext(void 0);return[function(){let l=s.useContext(e);if(void 0===l)throw Error("useCtx must be inside a Provider with a value");return l},e.Provider]}();var d=e=>{let{children:l}=e,{run:t,data:s,refresh:r}=(0,i.Z)(async()=>await (0,a.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(o,{value:{dialogueList:s,queryDialogueList:t,refreshDialogList:r},children:l})}},78915:function(e,l,t){"use strict";t.d(l,{Tk:function(){return c},Kw:function(){return u},PR:function(){return h},Ej:function(){return x}});var n=t(21628),i=t(24214),a=t(52040);let s=i.Z.create({baseURL:a.env.API_BASE_URL});s.defaults.timeout=1e4,s.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var r=t(84835);let o={"content-type":"application/json"},d=e=>{if(!(0,r.isPlainObject)(e))return JSON.stringify(e);let l={...e};for(let e in l){let t=l[e];"string"==typeof t&&(l[e]=t.trim())}return JSON.stringify(l)},c=(e,l)=>{if(l){let t=Object.keys(l).filter(e=>void 0!==l[e]&&""!==l[e]).map(e=>"".concat(e,"=").concat(l[e])).join("&");t&&(e+="?".concat(t))}return s.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},u=(e,l)=>{let t=d(l);return s.post("/api"+e,{body:t,headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},h=(e,l)=>(d(l),s.post(e,l,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),x=(e,l)=>s.post(e,l).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,757,282,838,60,759,192,86,316,790,767,259,751,320,253,769,744],function(){return e(e.s=86066)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/chat/page-f0d8fd24469f64f9.js b/pilot/server/static/_next/static/chunks/app/chat/page-f0d8fd24469f64f9.js
new file mode 100644
index 000000000..adde9b119
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/chat/page-f0d8fd24469f64f9.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{86066:function(e,l,t){Promise.resolve().then(t.bind(t,65641))},65641:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return X}});var n=t(9268),i=t(86006),a=t(91440),s=t(90022),r=t(69962),o=t(97287),d=t(73141),c=t(45642),u=t(8997),h=t(22046),x=t(83192),v=t(90545),p=t(89081),f=t(78915),m=t(71990),j=e=>{let l=(0,i.useReducer)((e,l)=>({...e,...l}),{...e});return l},b=t(57931),g=t(56008),y=t(21628),_=t(52040),w=e=>{let{queryAgentURL:l,channel:t,queryBody:n,initHistory:a,runHistoryList:s}=e,[r,o]=j({history:a||[]}),d=(0,g.useSearchParams)(),c=d.get("id"),{refreshDialogList:u}=(0,b.Cg)(),h=new AbortController;(0,i.useEffect)(()=>{a&&o({history:a})},[a]);let x=async(e,i)=>{if(!e)return;let a=[...r.history,{role:"human",context:e}],s=a.length;o({history:a});let d={conv_uid:c,...i,...n,user_input:e,channel:t};if(!(null==d?void 0:d.conv_uid)){y.ZP.error("conv_uid 不存在,请刷新后重试");return}try{await (0,m.L)("".concat(_.env.API_BASE_URL?_.env.API_BASE_URL:"").concat("/api"+l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d),signal:h.signal,async onopen(e){if(a.length<=1){var l;u();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),null===(l=window.history)||void 0===l||l.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==m.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw console.log("onerror"),Error(e)},onmessage:e=>{var l,t,n;if(e.data=null===(l=e.data)||void 0===l?void 0:l.replaceAll("\\n","\n"),"[DONE]"===e.data);else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))o({history:[...a,{role:"view",context:null===(n=e.data)||void 0===n?void 0:n.replace("[ERROR]","")}]});else{let l=[...a];e.data&&((null==l?void 0:l[s])?l[s].context="".concat(e.data):l.push({role:"view",context:e.data}),o({history:l}))}}})}catch(e){console.log(e),o({history:[...a,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:x,history:r.history}},Z=t(67830),N=t(54842),P=t(80937),S=t(311),C=t(94244),k=t(12025),E=t(46571),D=t(53113),R=t(35086),O=t(53047),L=t(81528),B=t(30530),I=t(64747),T=t(77614),A=t(19700),z=t(92391),F=t(55749),V=t(70781),q=t(75403),J=t(99398),M=t(49064),U=t(84835),W=t.n(U),H=t(15241),G=t(28179);let K=z.z.object({query:z.z.string().min(1)});var Y=e=>{var l;let{messages:a,onSubmit:r,readOnly:o,paramsList:d,runParamsList:c,dbList:u,runDbList:h,supportTypes:p,clearIntialMessage:m,setChartsData:j}=e,b=(0,g.useSearchParams)(),_=b.get("initMessage"),w=b.get("scene"),z="chat_dashboard"===w,U=(0,i.useRef)(null),[Y,Q]=(0,i.useState)(!1),[X,$]=(0,i.useState)(),[ee,el]=(0,i.useState)(!1),[et,en]=(0,i.useState)(),[ei,ea]=(0,i.useState)(a),[es,er]=(0,i.useState)(""),[eo,ed]=(0,i.useState)(!1),[ec,eu]=(0,i.useState)(u),eh=(e,l,t)=>{let n=W().cloneDeep(ec);n&&(void 0===(null==ec?void 0:ec[e])&&(n[e]={}),n[e][l]=t,eu(n))},ex=(0,A.cI)({resolver:(0,Z.F)(K),defaultValues:{}}),ev=async e=>{let{query:l}=e;try{Q(!0),ex.reset(),await r(l,{select_param:null==d?void 0:d[X]})}catch(e){}finally{Q(!1)}},ep=async()=>{try{var e;let l=new URLSearchParams(window.location.search),t=l.get("initMessage");l.delete("initMessage"),null===(e=window.history)||void 0===e||e.replaceState(null,null,"?".concat(l.toString())),await ev({query:t})}catch(e){console.log(e)}finally{null==m||m()}},ef={overrides:{code:e=>{let{children:l}=e;return(0,n.jsx)(J.Z,{language:"javascript",style:M.Z,children:l})}},wrapper:i.Fragment},em=e=>{let l=e;try{l=JSON.parse(e)}catch(e){console.log(e)}return l},ej=i.useMemo(()=>{if("function"==typeof(null==window?void 0:window.fetch)){let e=t(62631);return t(25204),t(82372),e.default}},[]);return i.useEffect(()=>{U.current&&U.current.scrollTo(0,U.current.scrollHeight)},[null==a?void 0:a.length]),i.useEffect(()=>{_&&a.length<=0&&ep()},[_,a.length]),i.useEffect(()=>{var e,l;d&&(null===(e=Object.keys(d||{}))||void 0===e?void 0:e.length)>0&&$(null===(l=Object.keys(d||{}))||void 0===l?void 0:l[0])},[d]),i.useEffect(()=>{if(z){let e=W().cloneDeep(a);e.forEach(e=>{(null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=em(null==e?void 0:e.context))}),ea(e.filter(e=>["view","human"].includes(e.role)))}else ea(a.filter(e=>["view","human"].includes(e.role)))},[z,a]),(0,i.useEffect)(()=>{let e=W().cloneDeep(u);null==e||e.forEach(e=>{let l=null==p?void 0:p.find(l=>l.db_type===e.db_type);e.isfileDb=null==l?void 0:l.is_file_db}),eu(e)},[u,p]),(0,n.jsxs)("div",{className:"w-full h-full",children:[(0,n.jsxs)(P.Z,{className:"w-full h-full bg-[#fefefe] dark:bg-[#212121]",sx:{table:{borderCollapse:"collapse",border:"1px solid #ccc",width:"100%"},"th, td":{border:"1px solid #ccc",padding:"10px",textAlign:"center"}},children:[(0,n.jsxs)(P.Z,{ref:U,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null==ei?void 0:ei.map((e,l)=>{var t,i;return(0,n.jsx)(P.Z,{children:(0,n.jsx)(s.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:l=>({background:"view"===e.role?"var(--joy-palette-primary-softBg, var(--joy-palette-primary-100, #DDF1FF))":"unset",border:"unset",borderRadius:"unset",padding:"24px 0 26px 0",lineHeight:"24px"}),children:(0,n.jsxs)(v.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,n.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,n.jsx)(V.Z,{}):(0,n.jsx)(F.Z,{})}),(0,n.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:z&&"view"===e.role&&"object"==typeof(null==e?void 0:e.context)?(0,n.jsxs)(n.Fragment,{children:["[".concat(e.context.template_name,"]: "),(0,n.jsx)(S.Z,{sx:{color:"#1677ff"},component:"button",onClick:()=>{el(!0),en(l),er(JSON.stringify(null==e?void 0:e.context,null,2))},children:e.context.template_introduce||"暂无介绍"})]}):(0,n.jsx)(n.Fragment,{children:"string"==typeof e.context&&(0,n.jsx)(q.Z,{options:ef,children:null===(t=e.context)||void 0===t?void 0:null===(i=t.replaceAll)||void 0===i?void 0:i.call(t,"\\n","\n")})})})]})})},l)}),Y&&(0,n.jsx)(C.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!o&&(0,n.jsx)(v.Z,{className:"bg-[#fefefe] dark:bg-[#212121] before:bg-[#fefefe] before:dark:bg-[#212121]",sx:{position:"relative","&::before":{content:'" "',position:"absolute",top:"-18px",left:"0",right:"0",width:"100%",margin:"0 auto",height:"20px",filter:"blur(10px)",zIndex:2}},children:(0,n.jsxs)("form",{style:{maxWidth:"100%",width:"76%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px",paddingBottom:"58px",paddingTop:"20px"},onSubmit:e=>{e.stopPropagation(),ex.handleSubmit(ev)(e)},children:[(0,n.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[Object.keys(d||{}).length>0&&(0,n.jsx)("div",{className:"flex items-center gap-3",children:(0,n.jsx)(k.Z,{value:X,onChange:(e,l)=>{$(l)},sx:{maxWidth:"100%"},children:null===(l=Object.keys(d||{}))||void 0===l?void 0:l.map(e=>(0,n.jsx)(E.Z,{value:e,children:e},e))})}),["chat_with_db_execute","chat_with_db_qa"].includes(w)&&(0,n.jsx)(D.Z,{"aria-label":"Like",variant:"plain",color:"neutral",sx:{padding:0,"&: hover":{backgroundColor:"unset"}},onClick:()=>{ed(!0)},children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,n.jsx)(G.Z,{style:{marginBottom:"0.125rem",fontSize:"28px"}}),(0,n.jsx)("span",{style:{display:"block",lineHeight:"25px",fontSize:12,marginLeft:6},children:"DB Connect Setting"})]})})]}),(0,n.jsx)(R.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,n.jsx)(O.ZP,{type:"submit",disabled:Y,children:(0,n.jsx)(N.Z,{})}),...ex.register("query")})]})})]}),(0,n.jsx)(L.Z,{open:ee,onClose:()=>{el(!1)},children:(0,n.jsxs)(B.Z,{"aria-labelledby":"variant-modal-title","aria-describedby":"variant-modal-description",children:[(0,n.jsx)(I.Z,{}),(0,n.jsxs)(v.Z,{sx:{marginTop:"32px"},children:[!!ej&&(0,n.jsx)(ej,{mode:"json",value:es,height:"600px",width:"820px",onChange:er,placeholder:"默认json数据",debounceChangePeriod:100,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,setOptions:{useWorker:!0,showLineNumbers:!0,highlightSelectedWord:!0,tabSize:2}}),(0,n.jsx)(D.Z,{variant:"outlined",className:"w-full",sx:{marginTop:"12px"},onClick:()=>{if(et)try{let e=W().cloneDeep(ei),l=JSON.parse(es);e[et].context=l,ea(e),null==j||j(null==l?void 0:l.charts),el(!1),er("")}catch(e){y.ZP.error("JSON 格式化出错")}},children:"Submit"})]})]})}),(0,n.jsx)(L.Z,{open:eo,onClose:()=>{ed(!1),null==c||c()},children:(0,n.jsxs)(B.Z,{children:[(0,n.jsx)(I.Z,{}),(0,n.jsxs)(x.Z,{children:[(0,n.jsx)("caption",{children:(0,n.jsx)("h3",{style:{fontWeight:"bold"},children:"数据库列表"})}),(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{style:{width:"140px"},children:"数据库类型"}),(0,n.jsx)("th",{style:{width:"130px"},children:"数据库名"}),(0,n.jsx)("th",{style:{width:"150px"},children:"链接地址/域名"}),(0,n.jsx)("th",{style:{width:"100px"},children:"端口"}),(0,n.jsx)("th",{style:{width:"140px"},children:"用户名"}),(0,n.jsx)("th",{style:{width:"140px"},children:"密码"}),(0,n.jsx)("th",{style:{width:"140px"},children:"备注"}),(0,n.jsx)("th",{style:{width:"140px"},children:"操作"})]})}),(0,n.jsxs)("tbody",{children:[null==ec?void 0:ec.map((e,l)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(k.Z,{defaultValue:null==e?void 0:e.db_type,onChange:(e,t)=>{let n=null==p?void 0:p.find(e=>e.db_type===t),i=W().cloneDeep(ec);i[l].db_type=t,i[l].isfileDb=null==n?void 0:n.is_file_db,n?(i[l].db_host="",i[l].db_port=""):i[l].db_path="",eu(i)},children:null==p?void 0:p.map(e=>(0,n.jsx)(E.Z,{value:e.db_type,children:null==e?void 0:e.db_type},e.db_type))}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_type,children:null==e?void 0:e.db_type})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isNew)?(0,n.jsx)(R.ZP,{value:null==e?void 0:e.db_name,onChange:e=>{eh(l,"db_name",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_name,children:null==e?void 0:e.db_name})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(R.ZP,{value:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host,onChange:t=>{(null==e?void 0:e.isfileDb)?eh(l,"db_path",t.target.value):eh(l,"db_host",t.target.value)}}):(0,n.jsx)(H.Z,{title:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host,children:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(null==e?void 0:e.isfileDb)?"-":(0,n.jsx)(R.ZP,{value:null==e?void 0:e.db_port,onChange:e=>{eh(l,"db_port",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_port,children:null==e?void 0:e.db_port})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(R.ZP,{defaultValue:e.db_user,onChange:e=>{eh(l,"db_user",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_user,children:null==e?void 0:e.db_user})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(R.ZP,{defaultValue:e.db_pwd,type:"password",onChange:e=>{eh(l,"db_pwd",e.target.value)}}):(0,n.jsx)(n.Fragment,{children:"******"})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(R.ZP,{defaultValue:null==e?void 0:e.comment,onChange:e=>{eh(l,"comment",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.comment,children:null==e?void 0:e.comment})}),(0,n.jsx)("td",{children:(0,n.jsxs)(v.Z,{sx:{gap:1,["& .".concat(T.Z.root)]:{padding:0,"&:hover":{background:"transparent"}}},children:[(null==e?void 0:e.isEdit)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(D.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:async()=>{let l=W().cloneDeep(e),t={db_type:null==l?void 0:l.db_type,db_name:null==l?void 0:l.db_name,file_path:(null==l?void 0:l.isfileDb)?null==l?void 0:l.db_path:void 0,db_host:(null==l?void 0:l.isfileDb)?void 0:null==l?void 0:l.db_host,db_port:(null==l?void 0:l.isfileDb)?void 0:null==l?void 0:l.db_port,db_user:null==l?void 0:l.db_user,db_pwd:null==l?void 0:l.db_pwd,comment:null==l?void 0:l.comment};if(l.isNew){let e=null==u?void 0:u.map(e=>null==e?void 0:e.db_name);if(null==e?void 0:e.includes(null==l?void 0:l.db_name)){y.ZP.error("该数据库名称已存在");return}await (0,f.PR)("/api/v1/chat/db/add",t)}else await (0,f.PR)("/api/v1/chat/db/edit",t);await (null==h?void 0:h())},children:"保存"}),(0,n.jsx)(D.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:()=>{let t=W().cloneDeep(ec);(null==e?void 0:e.isNew)?t.splice(l,1):(t[l].isEdit=!1,t[l]=null==u?void 0:u[l]),eu(t)},children:"取消"})]}):(0,n.jsx)(D.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:()=>{let e=W().cloneDeep(ec);e[l].isEdit=!0,eu(e)},children:"编辑"}),(0,n.jsx)(D.Z,{size:"sm",variant:"soft",color:"danger",onClick:async()=>{(null==e?void 0:e.db_name)&&(await (0,f.PR)("/api/v1/chat/db/delete?db_name=".concat(null==e?void 0:e.db_name)),await (null==h?void 0:h()))},children:"删除"})]})})]},l)),(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:8,children:(0,n.jsx)(D.Z,{variant:"outlined",sx:{width:"100%"},onClick:()=>{let e=W().cloneDeep(ec);null==e||e.push({isEdit:!0,isNew:!0,db_name:""}),eu(e)},children:"+ 新增一行"})})})]})]})]})})]})};let Q=()=>(0,n.jsxs)(s.Z,{className:"h-full w-full flex bg-transparent",children:[(0,n.jsx)(r.Z,{animation:"wave",variant:"text",level:"body2"}),(0,n.jsx)(r.Z,{animation:"wave",variant:"text",level:"body2"}),(0,n.jsx)(o.Z,{ratio:"21/9",className:"flex-1",sx:{["& .".concat(d.Z.content)]:{height:"100%"}},children:(0,n.jsx)(r.Z,{variant:"overlay",className:"h-full"})})]});var X=()=>{let[e,l]=(0,i.useState)();i.useRef(null);let[t,r]=i.useState(!1),o=(0,g.useSearchParams)(),{refreshDialogList:d}=(0,b.Cg)(),m=o.get("id"),j=o.get("scene"),{data:y,run:_}=(0,p.Z)(async()=>await (0,f.Tk)("/v1/chat/dialogue/messages/history",{con_uid:m}),{ready:!!m,refreshDeps:[m]}),{data:Z,run:N}=(0,p.Z)(async()=>await (0,f.Tk)("/v1/chat/db/list"),{ready:!!j&&!!["chat_with_db_execute","chat_with_db_qa"].includes(j)}),{data:P}=(0,p.Z)(async()=>await (0,f.Tk)("/v1/chat/db/support/type"),{ready:!!j&&!!["chat_with_db_execute","chat_with_db_qa"].includes(j)}),{data:S,run:C}=(0,p.Z)(async()=>await (0,f.Kw)("/v1/chat/mode/params/list?chat_mode=".concat(j)),{ready:!!j,refreshDeps:[m,j]}),{history:k,handleChatSubmit:E}=w({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:m,chat_mode:j||"chat_normal"},initHistory:null==y?void 0:y.data,runHistoryList:_});(0,i.useEffect)(()=>{try{var e;let t=null==k?void 0:null===(e=k[k.length-1])||void 0===e?void 0:e.context,n=JSON.parse(t);l((null==n?void 0:n.template_name)==="report"?null==n?void 0:n.charts:void 0)}catch(e){l(void 0)}},[k]);let D=(0,i.useMemo)(()=>{if(e){let l=[],t=null==e?void 0:e.filter(e=>"IndicatorValue"===e.chart_type);t.length>0&&l.push({rowIndex:l.length,cols:t,type:"IndicatorValue"});let n=null==e?void 0:e.filter(e=>"IndicatorValue"!==e.chart_type),i=n.length,a=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][i].forEach(e=>{if(e>0){let t=n.slice(a,a+e);a+=e,l.push({rowIndex:l.length,cols:t})}}),l}},[e]);return(0,n.jsxs)(c.Z,{container:!0,spacing:2,className:"h-full",sx:{flexGrow:1},children:[e&&(0,n.jsx)(c.Z,{xs:8,className:"max-h-full",children:(0,n.jsx)("div",{className:"flex flex-col gap-3 h-full",children:null==D?void 0:D.map(e=>(0,n.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex flex-1 gap-3 overflow-hidden":""),children:e.cols.map(e=>{if("IndicatorValue"===e.chart_type)return(0,n.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(s.Z,{sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"justify-around",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,n.jsx)(h.ZP,{children:e.value})]})})},e.name))},e.chart_uid);if("LineChart"===e.chart_type)return(0,n.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,n.jsx)(s.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"h-full",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1 h-full",children:(0,n.jsx)(a.Chart,{padding:[10,20,50,40],autoFit:!0,data:e.values,children:(0,n.jsx)(a.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"name*value",color:"type"})})})]})})},e.chart_uid);if("BarChart"===e.chart_type)return(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(s.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"h-full",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(a.Chart,{autoFit:!0,data:e.values,children:[(0,n.jsx)(a.Interval,{position:"name*value",style:{lineWidth:3,stroke:(0,a.getTheme)().colors10[0]}}),(0,n.jsx)(a.Tooltip,{shared:!0})]})})]})})},e.chart_uid);if("Table"===e.chart_type){var l,t;let i=W().groupBy(e.values,"type");return(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(s.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"h-full",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(x.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:Object.keys(i).map(e=>(0,n.jsx)("th",{children:e},e))})}),(0,n.jsx)("tbody",{children:null===(l=Object.values(i))||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.map((e,l)=>{var t;return(0,n.jsx)("tr",{children:null===(t=Object.keys(i))||void 0===t?void 0:t.map(e=>{var t;return(0,n.jsx)("td",{children:(null==i?void 0:null===(t=i[e])||void 0===t?void 0:t[l].value)||""},e)})},l)})})]})})]})})},e.chart_uid)}})},e.rowIndex))})}),!e&&"chat_dashboard"===j&&(0,n.jsx)(c.Z,{xs:8,className:"max-h-full p-6",children:(0,n.jsx)("div",{className:"flex flex-col gap-3 h-full",children:(0,n.jsxs)(c.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,n.jsx)(c.Z,{xs:8,children:(0,n.jsx)(v.Z,{className:"h-full w-full",sx:{display:"flex",gap:2},children:(0,n.jsx)(Q,{})})}),(0,n.jsx)(c.Z,{xs:4,children:(0,n.jsx)(Q,{})}),(0,n.jsx)(c.Z,{xs:4,children:(0,n.jsx)(Q,{})}),(0,n.jsx)(c.Z,{xs:8,children:(0,n.jsx)(Q,{})})]})})}),(0,n.jsx)(c.Z,{xs:"chat_dashboard"===j?4:12,className:"h-full max-h-full",children:(0,n.jsx)("div",{className:"h-full",style:{boxShadow:"chat_dashboard"===j?"0px 0px 9px 0px #c1c0c080":"unset"},children:(0,n.jsx)(Y,{clearIntialMessage:async()=>{await d()},dbList:null==Z?void 0:Z.data,runDbList:N,supportTypes:null==P?void 0:P.data,isChartChat:"chat_dashboard"===j,messages:k||[],onSubmit:E,paramsList:null==S?void 0:S.data,runParamsList:C,setChartsData:l})})})]})}},57931:function(e,l,t){"use strict";t.d(l,{ZP:function(){return d},Cg:function(){return r}});var n=t(9268),i=t(89081),a=t(78915),s=t(86006);let[r,o]=function(){let e=s.createContext(void 0);return[function(){let l=s.useContext(e);if(void 0===l)throw Error("useCtx must be inside a Provider with a value");return l},e.Provider]}();var d=e=>{let{children:l}=e,{run:t,data:s,refresh:r}=(0,i.Z)(async()=>await (0,a.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(o,{value:{dialogueList:s,queryDialogueList:t,refreshDialogList:r},children:l})}},78915:function(e,l,t){"use strict";t.d(l,{Tk:function(){return c},Kw:function(){return u},PR:function(){return h},Ej:function(){return x}});var n=t(21628),i=t(24214),a=t(52040);let s=i.Z.create({baseURL:a.env.API_BASE_URL});s.defaults.timeout=1e4,s.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var r=t(84835);let o={"content-type":"application/json"},d=e=>{if(!(0,r.isPlainObject)(e))return JSON.stringify(e);let l={...e};for(let e in l){let t=l[e];"string"==typeof t&&(l[e]=t.trim())}return JSON.stringify(l)},c=(e,l)=>{if(l){let t=Object.keys(l).filter(e=>void 0!==l[e]&&""!==l[e]).map(e=>"".concat(e,"=").concat(l[e])).join("&");t&&(e+="?".concat(t))}return s.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},u=(e,l)=>{let t=d(l);return s.post("/api"+e,{body:t,headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},h=(e,l)=>(d(l),s.post(e,l,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),x=(e,l)=>s.post(e,l).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,757,282,838,60,759,192,86,316,790,767,259,751,320,253,769,744],function(){return e(e.s=86066)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/chat/index.html b/pilot/server/static/chat/index.html
index cc937105f..3b2660a20 100644
--- a/pilot/server/static/chat/index.html
+++ b/pilot/server/static/chat/index.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pilot/server/static/chat/index.txt b/pilot/server/static/chat/index.txt
index 894545ed7..6366c9742 100644
--- a/pilot/server/static/chat/index.txt
+++ b/pilot/server/static/chat/index.txt
@@ -1,9 +1,9 @@
1:HL["/_next/static/css/f7886471966370ed.css",{"as":"style"}]
-0:["9C-EourU_3qSC0HuMlO9a",[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f7886471966370ed.css","precedence":"next"}]],["$L3",null]]]]]
+0:["Iwzr9XFjkUv9028K-ieh2",[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f7886471966370ed.css","precedence":"next"}]],["$L3",null]]]]]
4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","838:static/chunks/838-25c9b71d449c8910.js","60:static/chunks/60-8ef99caef9fdf742.js","759:static/chunks/759-22c7defc3aa943a7.js","409:static/chunks/409-4b199bf070fd70fc.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-055e926a104869ef.js"],"name":"","async":false}
5:I{"id":"13211","chunks":["272:static/chunks/webpack-8be0750561cfcccd.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
6:I{"id":"5767","chunks":["272:static/chunks/webpack-8be0750561cfcccd.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
7:I{"id":"37396","chunks":["272:static/chunks/webpack-8be0750561cfcccd.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
-8:I{"id":"65641","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","757:static/chunks/f60284a2-6891068c9ea7ce77.js","282:static/chunks/7e4358a0-8f10c290d655cdf1.js","838:static/chunks/838-25c9b71d449c8910.js","60:static/chunks/60-8ef99caef9fdf742.js","759:static/chunks/759-22c7defc3aa943a7.js","192:static/chunks/192-e9f419fb9f5bc502.js","86:static/chunks/86-6193a530bd8e3ef4.js","316:static/chunks/316-370750739484dff7.js","790:static/chunks/790-97e6b769f5c791cb.js","767:static/chunks/767-b93280f4b5b5e975.js","259:static/chunks/259-2c3490a9eca2f411.js","751:static/chunks/751-30fee9a32c6e64a2.js","320:static/chunks/320-63dc542e9a7120d1.js","929:static/chunks/app/chat/page-86595a764417b205.js"],"name":"","async":false}
+8:I{"id":"65641","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","757:static/chunks/f60284a2-6891068c9ea7ce77.js","282:static/chunks/7e4358a0-8f10c290d655cdf1.js","838:static/chunks/838-25c9b71d449c8910.js","60:static/chunks/60-8ef99caef9fdf742.js","759:static/chunks/759-22c7defc3aa943a7.js","192:static/chunks/192-e9f419fb9f5bc502.js","86:static/chunks/86-6193a530bd8e3ef4.js","316:static/chunks/316-370750739484dff7.js","790:static/chunks/790-97e6b769f5c791cb.js","767:static/chunks/767-b93280f4b5b5e975.js","259:static/chunks/259-2c3490a9eca2f411.js","751:static/chunks/751-30fee9a32c6e64a2.js","320:static/chunks/320-63dc542e9a7120d1.js","929:static/chunks/app/chat/page-f0d8fd24469f64f9.js"],"name":"","async":false}
2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","chat","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"chat"},"styles":[]}],"params":{}}],null]
3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]]
diff --git a/pilot/server/static/datastores/documents/chunklist/index.html b/pilot/server/static/datastores/documents/chunklist/index.html
index 94db628d4..df720c5fc 100644
--- a/pilot/server/static/datastores/documents/chunklist/index.html
+++ b/pilot/server/static/datastores/documents/chunklist/index.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pilot/server/static/datastores/documents/chunklist/index.txt b/pilot/server/static/datastores/documents/chunklist/index.txt
index c5b9c1c2d..836f17d75 100644
--- a/pilot/server/static/datastores/documents/chunklist/index.txt
+++ b/pilot/server/static/datastores/documents/chunklist/index.txt
@@ -1,5 +1,5 @@
1:HL["/_next/static/css/f7886471966370ed.css",{"as":"style"}]
-0:["9C-EourU_3qSC0HuMlO9a",[[["",{"children":["datastores",{"children":["documents",{"children":["chunklist",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f7886471966370ed.css","precedence":"next"}]],["$L3",null]]]]]
+0:["Iwzr9XFjkUv9028K-ieh2",[[["",{"children":["datastores",{"children":["documents",{"children":["chunklist",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f7886471966370ed.css","precedence":"next"}]],["$L3",null]]]]]
4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","838:static/chunks/838-25c9b71d449c8910.js","60:static/chunks/60-8ef99caef9fdf742.js","759:static/chunks/759-22c7defc3aa943a7.js","409:static/chunks/409-4b199bf070fd70fc.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-055e926a104869ef.js"],"name":"","async":false}
5:I{"id":"13211","chunks":["272:static/chunks/webpack-8be0750561cfcccd.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
6:I{"id":"5767","chunks":["272:static/chunks/webpack-8be0750561cfcccd.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
diff --git a/pilot/server/static/datastores/documents/index.html b/pilot/server/static/datastores/documents/index.html
index 494daea26..d1cfadcb4 100644
--- a/pilot/server/static/datastores/documents/index.html
+++ b/pilot/server/static/datastores/documents/index.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pilot/server/static/datastores/documents/index.txt b/pilot/server/static/datastores/documents/index.txt
index 081a2cb0c..87de745e1 100644
--- a/pilot/server/static/datastores/documents/index.txt
+++ b/pilot/server/static/datastores/documents/index.txt
@@ -1,5 +1,5 @@
1:HL["/_next/static/css/f7886471966370ed.css",{"as":"style"}]
-0:["9C-EourU_3qSC0HuMlO9a",[[["",{"children":["datastores",{"children":["documents",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f7886471966370ed.css","precedence":"next"}]],["$L3",null]]]]]
+0:["Iwzr9XFjkUv9028K-ieh2",[[["",{"children":["datastores",{"children":["documents",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f7886471966370ed.css","precedence":"next"}]],["$L3",null]]]]]
4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","838:static/chunks/838-25c9b71d449c8910.js","60:static/chunks/60-8ef99caef9fdf742.js","759:static/chunks/759-22c7defc3aa943a7.js","409:static/chunks/409-4b199bf070fd70fc.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-055e926a104869ef.js"],"name":"","async":false}
5:I{"id":"13211","chunks":["272:static/chunks/webpack-8be0750561cfcccd.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
6:I{"id":"5767","chunks":["272:static/chunks/webpack-8be0750561cfcccd.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
diff --git a/pilot/server/static/datastores/index.html b/pilot/server/static/datastores/index.html
index bba92630a..49690a3b2 100644
--- a/pilot/server/static/datastores/index.html
+++ b/pilot/server/static/datastores/index.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pilot/server/static/datastores/index.txt b/pilot/server/static/datastores/index.txt
index 63bcebd43..c8c99d775 100644
--- a/pilot/server/static/datastores/index.txt
+++ b/pilot/server/static/datastores/index.txt
@@ -1,5 +1,5 @@
1:HL["/_next/static/css/f7886471966370ed.css",{"as":"style"}]
-0:["9C-EourU_3qSC0HuMlO9a",[[["",{"children":["datastores",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f7886471966370ed.css","precedence":"next"}]],["$L3",null]]]]]
+0:["Iwzr9XFjkUv9028K-ieh2",[[["",{"children":["datastores",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f7886471966370ed.css","precedence":"next"}]],["$L3",null]]]]]
4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","838:static/chunks/838-25c9b71d449c8910.js","60:static/chunks/60-8ef99caef9fdf742.js","759:static/chunks/759-22c7defc3aa943a7.js","409:static/chunks/409-4b199bf070fd70fc.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-055e926a104869ef.js"],"name":"","async":false}
5:I{"id":"13211","chunks":["272:static/chunks/webpack-8be0750561cfcccd.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
6:I{"id":"5767","chunks":["272:static/chunks/webpack-8be0750561cfcccd.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
diff --git a/pilot/server/static/index.html b/pilot/server/static/index.html
index 27f3519c9..2e9b01c12 100644
--- a/pilot/server/static/index.html
+++ b/pilot/server/static/index.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pilot/server/static/index.txt b/pilot/server/static/index.txt
index ec0ab4e03..0facf7076 100644
--- a/pilot/server/static/index.txt
+++ b/pilot/server/static/index.txt
@@ -1,5 +1,5 @@
1:HL["/_next/static/css/f7886471966370ed.css",{"as":"style"}]
-0:["9C-EourU_3qSC0HuMlO9a",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f7886471966370ed.css","precedence":"next"}]],["$L3",null]]]]]
+0:["Iwzr9XFjkUv9028K-ieh2",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f7886471966370ed.css","precedence":"next"}]],["$L3",null]]]]]
4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","838:static/chunks/838-25c9b71d449c8910.js","60:static/chunks/60-8ef99caef9fdf742.js","759:static/chunks/759-22c7defc3aa943a7.js","409:static/chunks/409-4b199bf070fd70fc.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-055e926a104869ef.js"],"name":"","async":false}
5:I{"id":"13211","chunks":["272:static/chunks/webpack-8be0750561cfcccd.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
6:I{"id":"5767","chunks":["272:static/chunks/webpack-8be0750561cfcccd.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}