diff --git a/pilot/server/static/404.html b/pilot/server/static/404.html index 82a1767c8..5b797823a 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 82a1767c8..5b797823a 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/chunks/app/agents/page-6aeab11b87fb9b87.js b/pilot/server/static/_next/static/chunks/app/agents/page-8a82157969e577d4.js similarity index 80% rename from pilot/server/static/_next/static/chunks/app/agents/page-6aeab11b87fb9b87.js rename to pilot/server/static/_next/static/chunks/app/agents/page-8a82157969e577d4.js index 2526c3a77..1e4134c48 100644 --- a/pilot/server/static/_next/static/chunks/app/agents/page-6aeab11b87fb9b87.js +++ b/pilot/server/static/_next/static/chunks/app/agents/page-8a82157969e577d4.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[718],{82738:function(e,t,l){Promise.resolve().then(l.bind(l,4191))},4191:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return A}});var s=l(9268),r=l(67830),a=l(54842),n=l(70900),o=l(62414),i=l(94244),c=l(33155),u=l(7354),d=l(35891),h=l(35086),m=l(53047),x=l(86006),p=l(19700),y=l(92391),f=l(70321),v=l(75403),j=l(99398),g=l(49064);let Z=y.z.object({query:y.z.string().min(1)});var b=e=>{let{messages:t,onSubmit:l,initialMessage:y,readOnly:b,paramsList:w,clearIntialMessage:N}=e,k=x.useRef(null),[P,S]=(0,x.useState)(!1),[T,C]=(0,x.useState)(),[R,O]=(0,x.useState)(),A=(0,p.cI)({resolver:(0,r.F)(Z),defaultValues:{}}),E=async e=>{let{query:t}=e;try{S(!0),A.reset(),await l(t,{select_param:null==w?void 0:w[R]})}catch(e){}finally{S(!1)}},_=async()=>{try{let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await E({query:y})}catch(e){console.log(e)}finally{null==N||N()}},L={overrides:{code:e=>{let{children:t}=e;return(0,s.jsx)(j.Z,{language:"javascript",style:g.Z,children:t})}}};return x.useEffect(()=>{k.current&&k.current.scrollTo(0,k.current.scrollHeight)},[null==t?void 0:t.length]),x.useEffect(()=>{y&&t.length<=0&&_()},[y]),x.useEffect(()=>{var e,t;w&&(null===(e=Object.keys(w||{}))||void 0===e?void 0:e.length)>0&&O(null===(t=Object.keys(w||{}))||void 0===t?void 0:t[0])},[w]),(0,s.jsx)("div",{className:"mx-auto flex h-full max-w-3xl flex-col gap-6 px-5 py-6 sm:gap-8 xl:max-w-5xl",children:(0,s.jsxs)(n.Z,{direction:"column",gap:2,sx:{display:"flex",flex:1,flexBasis:"100%",width:"100%",height:"100%",maxHeight:"100%",minHeight:"100%",mx:"auto"},children:[(0,s.jsxs)(n.Z,{ref:k,direction:"column",gap:2,sx:{boxSizing:"border-box",maxWidth:"100%",width:"100%",mx:"auto",flex:1,maxHeight:"100%",overflowY:"auto",p:2,border:"1px solid",borderColor:"var(--joy-palette-divider)"},children:[T&&(0,s.jsx)(o.Z,{size:"sm",variant:"outlined",color:"primary",className:"message-agent",sx:{mr:"auto",ml:"none",whiteSpace:"pre-wrap"},children:null==T?void 0:T.context}),t.filter(e=>["view","human"].includes(e.role)).map((e,t)=>{var l;return(0,s.jsx)(n.Z,{sx:{mr:"view"===e.role?"auto":"none",ml:"human"===e.role?"auto":"none"},children:(0,s.jsx)(o.Z,{size:"sm",variant:"outlined",className:"view"===e.role?"message-agent":"message-human",color:"view"===e.role?"primary":"neutral",sx:e=>({px:2,"ol, ul":{my:0,pl:2},ol:{listStyle:"numeric"},ul:{listStyle:"disc",mb:2},li:{my:1},a:{textDecoration:"underline"}}),children:(0,s.jsx)(v.Z,{options:L,children:null===(l=e.context)||void 0===l?void 0:l.replaceAll("\\n","\n")})})},t)}),P&&(0,s.jsx)(i.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!b&&(0,s.jsxs)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px"},onSubmit:e=>{e.stopPropagation(),A.handleSubmit(E)(e)},children:[Object.keys(w||{}).length>0&&(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(c.Z,{value:R,onChange:(e,t)=>{O(t)},className:"max-w-xs",children:Object.keys(w||{}).map(e=>(0,s.jsx)(u.Z,{value:e,children:null==w?void 0:w[e]},e))}),(0,s.jsx)(d.Z,{className:"cursor-pointer",title:R,placement:"top",variant:"outlined",children:(0,s.jsx)(f.Z,{})})]}),(0,s.jsx)(h.ZP,{sx:{width:"100%"},variant:"outlined",endDecorator:(0,s.jsx)(m.ZP,{type:"submit",disabled:P,children:(0,s.jsx)(a.Z,{})}),...A.register("query")})]})]})})},w=l(91440),N=l(50645),k=l(5737),P=l(45642),S=l(26974),T=l(22046),C=l(78417),R=l(66487);let O=(0,N.Z)(k.Z)(e=>{let{theme:t}=e;return{...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}});var A=()=>{let{handleChatSubmit:e,history:t}=(0,R.Z)({queryAgentURL:"/v1/chat/completions"}),l=[{year:"1951 年",sales:0},{year:"1952 年",sales:52},{year:"1956 年",sales:61},{year:"1957 年",sales:45},{year:"1958 年",sales:48},{year:"1959 年",sales:38},{year:"1960 年",sales:38},{year:"1962 年",sales:38}];return(0,s.jsx)("div",{className:"p-4 flex flex-row gap-6 min-h-full w-full",children:(0,s.jsx)("div",{className:"flex w-full",children:(0,s.jsxs)(P.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,s.jsx)(P.Z,{xs:8,children:(0,s.jsxs)(C.Z,{spacing:2,className:"h-full",children:[(0,s.jsx)(O,{children:(0,s.jsx)(P.Z,{container:!0,spacing:2,children:[{label:"Revenue Won",value:"$7,811,851"},{label:"Close %",value:"37.7%"},{label:"AVG Days to Close",value:"121"},{label:"Opportunities Won",value:"526"}].map(e=>(0,s.jsx)(P.Z,{xs:3,children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(S.Z,{className:"justify-around",children:[(0,s.jsx)(T.ZP,{gutterBottom:!0,component:"div",children:e.label}),(0,s.jsx)(T.ZP,{children:e.value})]})})},e.label))})}),(0,s.jsx)(O,{className:"flex-1",children:(0,s.jsx)(o.Z,{className:"h-full",children:(0,s.jsxs)(S.Z,{className:"h-full",children:[(0,s.jsx)(T.ZP,{gutterBottom:!0,component:"div",children:"Revenue Won by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsx)(w.Chart,{padding:[10,20,50,40],autoFit:!0,data:[{month:"Jan",city:"Tokyo",temperature:7},{month:"Feb",city:"Tokyo",temperature:13},{month:"Mar",city:"Tokyo",temperature:16.5},{month:"Apr",city:"Tokyo",temperature:14.5},{month:"May",city:"Tokyo",temperature:10},{month:"Jun",city:"Tokyo",temperature:7.5},{month:"Jul",city:"Tokyo",temperature:9.2},{month:"Aug",city:"Tokyo",temperature:14.5},{month:"Sep",city:"Tokyo",temperature:9.3},{month:"Oct",city:"Tokyo",temperature:8.3},{month:"Nov",city:"Tokyo",temperature:8.9},{month:"Dec",city:"Tokyo",temperature:5.6}],children:(0,s.jsx)(w.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"month*temperature",color:"city"})})})]})})}),(0,s.jsx)(O,{className:"flex-1",children:(0,s.jsxs)(P.Z,{container:!0,spacing:2,className:"h-full",children:[(0,s.jsx)(P.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(S.Z,{className:"h-full",children:[(0,s.jsx)(T.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})}),(0,s.jsx)(P.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(S.Z,{className:"h-full",children:[(0,s.jsx)(T.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})}),(0,s.jsx)(P.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(S.Z,{className:"h-full",children:[(0,s.jsx)(T.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})})]})})]})}),(0,s.jsx)(P.Z,{xs:4,children:(0,s.jsx)(b,{messages:t,onSubmit:e})})]})})})}},57931:function(e,t,l){"use strict";l.d(t,{ZP:function(){return c},Cg:function(){return o}});var s=l(9268),r=l(89081),a=l(78915),n=l(86006);let[o,i]=function(){let e=n.createContext(void 0);return[function(){let t=n.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:l,data:n,refresh:o}=(0,r.Z)(async()=>await (0,a.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,s.jsx)(i,{value:{dialogueList:n,queryDialogueList:l,refreshDialogList:o},children:t})}},66487:function(e,t,l){"use strict";l.d(t,{Z:function(){return i}});var s=l(71990),r=l(86006),a=e=>{let t=(0,r.useReducer)((e,t)=>({...e,...t}),{...e});return t},n=l(57931),o=l(52040),i=e=>{let{queryAgentURL:t,channel:l,queryBody:i,initHistory:c}=e,[u,d]=a({history:c||[]}),{refreshDialogList:h}=(0,n.Cg)();(0,r.useEffect)(()=>{c&&d({history:c})},[c]);let m=async(e,t)=>{if(!e)return;let r=[...u.history,{role:"human",context:e}],a=r.length;d({history:r});try{let n=new AbortController;await (0,s.L)("".concat(o.env.API_BASE_URL?o.env.API_BASE_URL:"",'{"/api" + queryAgentURL}'),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...t,...i,user_input:e,channel:l}),signal:n.signal,async onopen(e){if(r.length<=1){h();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==s.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)n.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))n.abort(),d({history:[...r,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...r];e.data&&((null==t?void 0:t[a])?t[a].context="".concat(e.data):t.push({role:"view",context:e.data}),d({history:t}))}}})}catch(e){console.log("---e",e),d({history:[...r,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:m,history:u.history}}},78915:function(e,t,l){"use strict";l.d(t,{T:function(){return u},K:function(){return d}});var s=l(21628),r=l(24214),a=l(52040);let n=r.Z.create({baseURL:a.env.API_BASE_URL});n.defaults.timeout=1e4,n.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var o=l(84835);let i={"content-type":"application/json"},c=e=>{if(!(0,o.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let l=t[e];"string"==typeof l&&(t[e]=l.trim())}return JSON.stringify(t)},u=(e,t)=>{if(t){let l=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");l&&(e+="?".concat(l))}return n.get("/api"+e,{headers:i}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let l=c(t);return n.post("/api"+e,{body:l,headers:i}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})}}},function(e){e.O(0,[180,757,797,577,86,562,259,751,662,481,253,769,744],function(){return e(e.s=82738)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[718],{82738:function(e,t,l){Promise.resolve().then(l.bind(l,4191))},4191:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return A}});var s=l(9268),r=l(67830),a=l(54842),n=l(70900),o=l(62414),i=l(94244),c=l(33155),u=l(7354),d=l(35891),h=l(35086),m=l(53047),x=l(86006),p=l(19700),y=l(92391),f=l(70321),v=l(75403),j=l(99398),g=l(49064);let Z=y.z.object({query:y.z.string().min(1)});var b=e=>{let{messages:t,onSubmit:l,initialMessage:y,readOnly:b,paramsList:w,clearIntialMessage:N}=e,k=x.useRef(null),[P,S]=(0,x.useState)(!1),[T,C]=(0,x.useState)(),[R,O]=(0,x.useState)(),A=(0,p.cI)({resolver:(0,r.F)(Z),defaultValues:{}}),E=async e=>{let{query:t}=e;try{S(!0),A.reset(),await l(t,{select_param:null==w?void 0:w[R]})}catch(e){}finally{S(!1)}},_=async()=>{try{let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await E({query:y})}catch(e){console.log(e)}finally{null==N||N()}},L={overrides:{code:e=>{let{children:t}=e;return(0,s.jsx)(j.Z,{language:"javascript",style:g.Z,children:t})}}};return x.useEffect(()=>{k.current&&k.current.scrollTo(0,k.current.scrollHeight)},[null==t?void 0:t.length]),x.useEffect(()=>{y&&t.length<=0&&_()},[y]),x.useEffect(()=>{var e,t;w&&(null===(e=Object.keys(w||{}))||void 0===e?void 0:e.length)>0&&O(null===(t=Object.keys(w||{}))||void 0===t?void 0:t[0])},[w]),(0,s.jsx)("div",{className:"mx-auto flex h-full max-w-3xl flex-col gap-6 px-5 py-6 sm:gap-8 xl:max-w-5xl",children:(0,s.jsxs)(n.Z,{direction:"column",gap:2,sx:{display:"flex",flex:1,flexBasis:"100%",width:"100%",height:"100%",maxHeight:"100%",minHeight:"100%",mx:"auto"},children:[(0,s.jsxs)(n.Z,{ref:k,direction:"column",gap:2,sx:{boxSizing:"border-box",maxWidth:"100%",width:"100%",mx:"auto",flex:1,maxHeight:"100%",overflowY:"auto",p:2,border:"1px solid",borderColor:"var(--joy-palette-divider)"},children:[T&&(0,s.jsx)(o.Z,{size:"sm",variant:"outlined",color:"primary",className:"message-agent",sx:{mr:"auto",ml:"none",whiteSpace:"pre-wrap"},children:null==T?void 0:T.context}),t.filter(e=>["view","human"].includes(e.role)).map((e,t)=>{var l;return(0,s.jsx)(n.Z,{sx:{mr:"view"===e.role?"auto":"none",ml:"human"===e.role?"auto":"none"},children:(0,s.jsx)(o.Z,{size:"sm",variant:"outlined",className:"view"===e.role?"message-agent":"message-human",color:"view"===e.role?"primary":"neutral",sx:e=>({px:2,"ol, ul":{my:0,pl:2},ol:{listStyle:"numeric"},ul:{listStyle:"disc",mb:2},li:{my:1},a:{textDecoration:"underline"}}),children:(0,s.jsx)(v.Z,{options:L,children:null===(l=e.context)||void 0===l?void 0:l.replaceAll("\\n","\n")})})},t)}),P&&(0,s.jsx)(i.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!b&&(0,s.jsxs)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px"},onSubmit:e=>{e.stopPropagation(),A.handleSubmit(E)(e)},children:[Object.keys(w||{}).length>0&&(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(c.Z,{value:R,onChange:(e,t)=>{O(t)},className:"max-w-xs",children:Object.keys(w||{}).map(e=>(0,s.jsx)(u.Z,{value:e,children:null==w?void 0:w[e]},e))}),(0,s.jsx)(d.Z,{className:"cursor-pointer",title:R,placement:"top",variant:"outlined",children:(0,s.jsx)(f.Z,{})})]}),(0,s.jsx)(h.ZP,{sx:{width:"100%"},variant:"outlined",endDecorator:(0,s.jsx)(m.ZP,{type:"submit",disabled:P,children:(0,s.jsx)(a.Z,{})}),...A.register("query")})]})]})})},w=l(91440),N=l(50645),k=l(5737),P=l(45642),S=l(26974),T=l(22046),C=l(78417),R=l(66487);let O=(0,N.Z)(k.Z)(e=>{let{theme:t}=e;return{...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}});var A=()=>{let{handleChatSubmit:e,history:t}=(0,R.Z)({queryAgentURL:"/v1/chat/completions"}),l=[{year:"1951 年",sales:0},{year:"1952 年",sales:52},{year:"1956 年",sales:61},{year:"1957 年",sales:45},{year:"1958 年",sales:48},{year:"1959 年",sales:38},{year:"1960 年",sales:38},{year:"1962 年",sales:38}];return(0,s.jsx)("div",{className:"p-4 flex flex-row gap-6 min-h-full w-full",children:(0,s.jsx)("div",{className:"flex w-full",children:(0,s.jsxs)(P.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,s.jsx)(P.Z,{xs:8,children:(0,s.jsxs)(C.Z,{spacing:2,className:"h-full",children:[(0,s.jsx)(O,{children:(0,s.jsx)(P.Z,{container:!0,spacing:2,children:[{label:"Revenue Won",value:"$7,811,851"},{label:"Close %",value:"37.7%"},{label:"AVG Days to Close",value:"121"},{label:"Opportunities Won",value:"526"}].map(e=>(0,s.jsx)(P.Z,{xs:3,children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(S.Z,{className:"justify-around",children:[(0,s.jsx)(T.ZP,{gutterBottom:!0,component:"div",children:e.label}),(0,s.jsx)(T.ZP,{children:e.value})]})})},e.label))})}),(0,s.jsx)(O,{className:"flex-1",children:(0,s.jsx)(o.Z,{className:"h-full",children:(0,s.jsxs)(S.Z,{className:"h-full",children:[(0,s.jsx)(T.ZP,{gutterBottom:!0,component:"div",children:"Revenue Won by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsx)(w.Chart,{padding:[10,20,50,40],autoFit:!0,data:[{month:"Jan",city:"Tokyo",temperature:7},{month:"Feb",city:"Tokyo",temperature:13},{month:"Mar",city:"Tokyo",temperature:16.5},{month:"Apr",city:"Tokyo",temperature:14.5},{month:"May",city:"Tokyo",temperature:10},{month:"Jun",city:"Tokyo",temperature:7.5},{month:"Jul",city:"Tokyo",temperature:9.2},{month:"Aug",city:"Tokyo",temperature:14.5},{month:"Sep",city:"Tokyo",temperature:9.3},{month:"Oct",city:"Tokyo",temperature:8.3},{month:"Nov",city:"Tokyo",temperature:8.9},{month:"Dec",city:"Tokyo",temperature:5.6}],children:(0,s.jsx)(w.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"month*temperature",color:"city"})})})]})})}),(0,s.jsx)(O,{className:"flex-1",children:(0,s.jsxs)(P.Z,{container:!0,spacing:2,className:"h-full",children:[(0,s.jsx)(P.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(S.Z,{className:"h-full",children:[(0,s.jsx)(T.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})}),(0,s.jsx)(P.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(S.Z,{className:"h-full",children:[(0,s.jsx)(T.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})}),(0,s.jsx)(P.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(S.Z,{className:"h-full",children:[(0,s.jsx)(T.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})})]})})]})}),(0,s.jsx)(P.Z,{xs:4,children:(0,s.jsx)(b,{messages:t,onSubmit:e})})]})})})}},57931:function(e,t,l){"use strict";l.d(t,{ZP:function(){return c},Cg:function(){return o}});var s=l(9268),r=l(89081),a=l(78915),n=l(86006);let[o,i]=function(){let e=n.createContext(void 0);return[function(){let t=n.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:l,data:n,refresh:o}=(0,r.Z)(async()=>await (0,a.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,s.jsx)(i,{value:{dialogueList:n,queryDialogueList:l,refreshDialogList:o},children:t})}},66487:function(e,t,l){"use strict";l.d(t,{Z:function(){return i}});var s=l(71990),r=l(86006),a=e=>{let t=(0,r.useReducer)((e,t)=>({...e,...t}),{...e});return t},n=l(57931),o=l(52040),i=e=>{let{queryAgentURL:t,channel:l,queryBody:i,initHistory:c}=e,[u,d]=a({history:c||[]}),{refreshDialogList:h}=(0,n.Cg)();(0,r.useEffect)(()=>{c&&d({history:c})},[c]);let m=async(e,r)=>{if(!e)return;let a=[...u.history,{role:"human",context:e}],n=a.length;d({history:a});try{let c=new AbortController;await (0,s.L)("".concat(o.env.API_BASE_URL?o.env.API_BASE_URL:"").concat("/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...r,...i,user_input:e,channel:l}),signal:c.signal,async onopen(e){if(a.length<=1){h();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==s.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)c.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))c.abort(),d({history:[...a,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...a];e.data&&((null==t?void 0:t[n])?t[n].context="".concat(e.data):t.push({role:"view",context:e.data}),d({history:t}))}}})}catch(e){console.log("---e",e),d({history:[...a,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:m,history:u.history}}},78915:function(e,t,l){"use strict";l.d(t,{T:function(){return u},K:function(){return d}});var s=l(21628),r=l(24214),a=l(52040);let n=r.Z.create({baseURL:a.env.API_BASE_URL});n.defaults.timeout=1e4,n.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var o=l(84835);let i={"content-type":"application/json"},c=e=>{if(!(0,o.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let l=t[e];"string"==typeof l&&(t[e]=l.trim())}return JSON.stringify(t)},u=(e,t)=>{if(t){let l=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");l&&(e+="?".concat(l))}return n.get("/api"+e,{headers:i}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let l=c(t);return n.post("/api"+e,{body:l,headers:i}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})}}},function(e){e.O(0,[180,757,797,577,86,562,259,751,662,481,253,769,744],function(){return e(e.s=82738)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/chat/page-bec29698095b2e0b.js b/pilot/server/static/_next/static/chunks/app/chat/page-b2e9a5320d939e6d.js similarity index 73% rename from pilot/server/static/_next/static/chunks/app/chat/page-bec29698095b2e0b.js rename to pilot/server/static/_next/static/chunks/app/chat/page-b2e9a5320d939e6d.js index 23df5d63c..956ee6519 100644 --- a/pilot/server/static/_next/static/chunks/app/chat/page-bec29698095b2e0b.js +++ b/pilot/server/static/_next/static/chunks/app/chat/page-b2e9a5320d939e6d.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{55749:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),s=r(9268),i=(0,n.default)([(0,s.jsx)("path",{d:"M19.89 10.75c.07.41.11.82.11 1.25 0 4.41-3.59 8-8 8s-8-3.59-8-8c0-.05.01-.1 0-.14 2.6-.98 4.69-2.99 5.74-5.55 3.38 4.14 7.97 3.73 8.99 3.61l-.89-1.93c-.13.01-4.62.38-7.18-3.86 1.01-.16 1.71-.15 2.59-.01 2.52-1.15 1.93-.89 2.76-1.26C14.78 2.3 13.43 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.43-.3-2.78-.84-4.01l-1.27 2.76zM8.08 5.03C7.45 6.92 6.13 8.5 4.42 9.47 5.05 7.58 6.37 6 8.08 5.03z"},"0"),(0,s.jsx)("circle",{cx:"15",cy:"13",r:"1.25"},"1"),(0,s.jsx)("circle",{cx:"9",cy:"13",r:"1.25"},"2"),(0,s.jsx)("path",{d:"m23 4.5-2.4-1.1L19.5 1l-1.1 2.4L16 4.5l2.4 1.1L19.5 8l1.1-2.4z"},"3")],"FaceRetouchingNaturalOutlined");t.Z=i},70781:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),s=r(9268),i=(0,n.default)((0,s.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zm-2 10H6V7h12v12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13zm7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5zM8 15h8v2H8v-2z"}),"SmartToyOutlined");t.Z=i},90545:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var a=r(40431),n=r(46750),s=r(86006),i=r(89791),o=r(4323),l=r(51579),c=r(86601),u=r(95887),d=r(9268);let h=["className","component"];var f=r(47327),v=r(98918);let m=function(e={}){let{themeId:t,defaultTheme:r,defaultClassName:f="MuiBox-root",generateClassName:v}=e,m=(0,o.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z),g=s.forwardRef(function(e,s){let o=(0,u.Z)(r),l=(0,c.Z)(e),{className:g,component:p="div"}=l,x=(0,n.Z)(l,h);return(0,d.jsx)(m,(0,a.Z)({as:p,ref:s,className:(0,i.Z)(g,v?v(f):f),theme:t&&o[t]||o},x))});return g}({defaultTheme:v.Z,defaultClassName:"MuiBox-root",generateClassName:f.Z.generate});var g=m},84380:function(e,t,r){Promise.resolve().then(r.bind(r,59498))},59498:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return C}});var a=r(9268),n=r(89081),s=r(78915),i=r(66487),o=r(67830),l=r(54842),c=r(70900),u=r(62414),d=r(90545),h=r(94244),f=r(33155),v=r(7354),m=r(35086),g=r(53047),p=r(86006),x=r(19700),y=r(92391),j=r(55749),w=r(70781),b=r(75403),Z=r(99398),S=r(49064),P=r(56008);let N=y.z.object({query:y.z.string().min(1)});var R=e=>{var t;let{messages:r,onSubmit:n,readOnly:s,paramsList:i,clearIntialMessage:y}=e,R=(0,P.useSearchParams)(),_=R.get("initMessage"),C=p.useRef(null),[O,k]=(0,p.useState)(!1),[E,L]=(0,p.useState)(),z=(0,x.cI)({resolver:(0,o.F)(N),defaultValues:{}}),A=async e=>{let{query:t}=e;try{console.log("submit"),k(!0),z.reset(),await n(t,{select_param:null==i?void 0:i[E]})}catch(e){}finally{k(!1)}},M=async()=>{try{let e=new URLSearchParams(window.location.search),t=e.get("initMessage");e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await A({query:t})}catch(e){console.log(e)}finally{null==y||y()}},T={overrides:{code:e=>{let{children:t}=e;return(0,a.jsx)(Z.Z,{language:"javascript",style:S.Z,children:t})}},wrapper:p.Fragment};return p.useEffect(()=>{C.current&&C.current.scrollTo(0,C.current.scrollHeight)},[null==r?void 0:r.length]),p.useEffect(()=>{_&&r.length<=0&&M()},[_,r.length]),p.useEffect(()=>{var e,t;i&&(null===(e=Object.keys(i||{}))||void 0===e?void 0:e.length)>0&&L(null===(t=Object.keys(i||{}))||void 0===t?void 0:t[0])},[i]),(0,a.jsx)("div",{className:"w-full h-full",children:(0,a.jsxs)(c.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,a.jsxs)(c.Z,{ref:C,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null===(t=r.filter(e=>["view","human"].includes(e.role)))||void 0===t?void 0:t.map((e,t)=>{var r;return(0,a.jsx)(c.Z,{children:(0,a.jsx)(u.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:t=>({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,a.jsxs)(d.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,a.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,a.jsx)(w.Z,{}):(0,a.jsx)(j.Z,{})}),(0,a.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:(0,a.jsx)(b.Z,{options:T,children:null===(r=e.context)||void 0===r?void 0:r.replaceAll("\\n","\n")})})]})})},t)}),O&&(0,a.jsx)(h.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!s&&(0,a.jsx)(d.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,a.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(),z.handleSubmit(A)(e)},children:[Object.keys(i||{}).length>0&&(0,a.jsx)("div",{className:"flex items-center gap-3",children:(0,a.jsx)(f.Z,{value:E,onChange:(e,t)=>{L(t)},sx:{maxWidth:"100%"},children:Object.keys(i||{}).map(e=>(0,a.jsx)(v.Z,{value:e,children:e},e))})}),(0,a.jsx)(m.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,a.jsx)(g.ZP,{type:"submit",disabled:O,children:(0,a.jsx)(l.Z,{})}),...z.register("query")})]})})]})})},_=r(57931),C=()=>{let e=(0,P.useSearchParams)(),{refreshDialogList:t}=(0,_.Cg)(),r=e.get("id"),o=e.get("scene"),{data:l}=(0,n.Z)(async()=>await (0,s.T)("/v1/chat/dialogue/messages/history",{con_uid:r}),{ready:!!r,refreshDeps:[r]}),{data:c}=(0,n.Z)(async()=>await (0,s.K)("/v1/chat/mode/params/list?chat_mode=".concat(o)),{ready:!!o,refreshDeps:[r,o]}),{history:u,handleChatSubmit:d}=(0,i.Z)({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:r,chat_mode:o||"chat_normal"},initHistory:null==l?void 0:l.data});return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(R,{clearIntialMessage:async()=>{await t()},messages:u||[],onSubmit:d,paramsList:null==c?void 0:c.data})})}},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return c},Cg:function(){return o}});var a=r(9268),n=r(89081),s=r(78915),i=r(86006);let[o,l]=function(){let e=i.createContext(void 0);return[function(){let t=i.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:r,data:i,refresh:o}=(0,n.Z)(async()=>await (0,s.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,a.jsx)(l,{value:{dialogueList:i,queryDialogueList:r,refreshDialogList:o},children:t})}},66487:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var a=r(71990),n=r(86006),s=e=>{let t=(0,n.useReducer)((e,t)=>({...e,...t}),{...e});return t},i=r(57931),o=r(52040),l=e=>{let{queryAgentURL:t,channel:r,queryBody:l,initHistory:c}=e,[u,d]=s({history:c||[]}),{refreshDialogList:h}=(0,i.Cg)();(0,n.useEffect)(()=>{c&&d({history:c})},[c]);let f=async(e,t)=>{if(!e)return;let n=[...u.history,{role:"human",context:e}],s=n.length;d({history:n});try{let i=new AbortController;await (0,a.L)("".concat(o.env.API_BASE_URL?o.env.API_BASE_URL:"",'{"/api" + queryAgentURL}'),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...t,...l,user_input:e,channel:r}),signal:i.signal,async onopen(e){if(n.length<=1){h();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==a.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)i.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))i.abort(),d({history:[...n,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...n];e.data&&((null==t?void 0:t[s])?t[s].context="".concat(e.data):t.push({role:"view",context:e.data}),d({history:t}))}}})}catch(e){console.log("---e",e),d({history:[...n,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:f,history:u.history}}},78915:function(e,t,r){"use strict";r.d(t,{T:function(){return u},K:function(){return d}});var a=r(21628),n=r(24214),s=r(52040);let i=n.Z.create({baseURL:s.env.API_BASE_URL});i.defaults.timeout=1e4,i.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var o=r(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,o.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},u=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return i.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let r=c(t);return i.post("/api"+e,{body:r,headers:l}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})}},56008:function(e,t,r){e.exports=r(30794)}},function(e){e.O(0,[180,797,577,86,562,259,751,662,253,769,744],function(){return e(e.s=84380)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{55749:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),s=r(9268),i=(0,n.default)([(0,s.jsx)("path",{d:"M19.89 10.75c.07.41.11.82.11 1.25 0 4.41-3.59 8-8 8s-8-3.59-8-8c0-.05.01-.1 0-.14 2.6-.98 4.69-2.99 5.74-5.55 3.38 4.14 7.97 3.73 8.99 3.61l-.89-1.93c-.13.01-4.62.38-7.18-3.86 1.01-.16 1.71-.15 2.59-.01 2.52-1.15 1.93-.89 2.76-1.26C14.78 2.3 13.43 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.43-.3-2.78-.84-4.01l-1.27 2.76zM8.08 5.03C7.45 6.92 6.13 8.5 4.42 9.47 5.05 7.58 6.37 6 8.08 5.03z"},"0"),(0,s.jsx)("circle",{cx:"15",cy:"13",r:"1.25"},"1"),(0,s.jsx)("circle",{cx:"9",cy:"13",r:"1.25"},"2"),(0,s.jsx)("path",{d:"m23 4.5-2.4-1.1L19.5 1l-1.1 2.4L16 4.5l2.4 1.1L19.5 8l1.1-2.4z"},"3")],"FaceRetouchingNaturalOutlined");t.Z=i},70781:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),s=r(9268),i=(0,n.default)((0,s.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zm-2 10H6V7h12v12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13zm7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5zM8 15h8v2H8v-2z"}),"SmartToyOutlined");t.Z=i},90545:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var a=r(40431),n=r(46750),s=r(86006),i=r(89791),o=r(4323),l=r(51579),c=r(86601),u=r(95887),d=r(9268);let h=["className","component"];var f=r(47327),v=r(98918);let m=function(e={}){let{themeId:t,defaultTheme:r,defaultClassName:f="MuiBox-root",generateClassName:v}=e,m=(0,o.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z),g=s.forwardRef(function(e,s){let o=(0,u.Z)(r),l=(0,c.Z)(e),{className:g,component:p="div"}=l,x=(0,n.Z)(l,h);return(0,d.jsx)(m,(0,a.Z)({as:p,ref:s,className:(0,i.Z)(g,v?v(f):f),theme:t&&o[t]||o},x))});return g}({defaultTheme:v.Z,defaultClassName:"MuiBox-root",generateClassName:f.Z.generate});var g=m},84380:function(e,t,r){Promise.resolve().then(r.bind(r,59498))},59498:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return C}});var a=r(9268),n=r(89081),s=r(78915),i=r(66487),o=r(67830),l=r(54842),c=r(70900),u=r(62414),d=r(90545),h=r(94244),f=r(33155),v=r(7354),m=r(35086),g=r(53047),p=r(86006),x=r(19700),y=r(92391),j=r(55749),w=r(70781),b=r(75403),Z=r(99398),S=r(49064),P=r(56008);let N=y.z.object({query:y.z.string().min(1)});var R=e=>{var t;let{messages:r,onSubmit:n,readOnly:s,paramsList:i,clearIntialMessage:y}=e,R=(0,P.useSearchParams)(),_=R.get("initMessage"),C=p.useRef(null),[O,k]=(0,p.useState)(!1),[E,z]=(0,p.useState)(),L=(0,x.cI)({resolver:(0,o.F)(N),defaultValues:{}}),A=async e=>{let{query:t}=e;try{console.log("submit"),k(!0),L.reset(),await n(t,{select_param:null==i?void 0:i[E]})}catch(e){}finally{k(!1)}},M=async()=>{try{let e=new URLSearchParams(window.location.search),t=e.get("initMessage");e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await A({query:t})}catch(e){console.log(e)}finally{null==y||y()}},T={overrides:{code:e=>{let{children:t}=e;return(0,a.jsx)(Z.Z,{language:"javascript",style:S.Z,children:t})}},wrapper:p.Fragment};return p.useEffect(()=>{C.current&&C.current.scrollTo(0,C.current.scrollHeight)},[null==r?void 0:r.length]),p.useEffect(()=>{_&&r.length<=0&&M()},[_,r.length]),p.useEffect(()=>{var e,t;i&&(null===(e=Object.keys(i||{}))||void 0===e?void 0:e.length)>0&&z(null===(t=Object.keys(i||{}))||void 0===t?void 0:t[0])},[i]),(0,a.jsx)("div",{className:"w-full h-full",children:(0,a.jsxs)(c.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,a.jsxs)(c.Z,{ref:C,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null===(t=r.filter(e=>["view","human"].includes(e.role)))||void 0===t?void 0:t.map((e,t)=>{var r;return(0,a.jsx)(c.Z,{children:(0,a.jsx)(u.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:t=>({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,a.jsxs)(d.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,a.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,a.jsx)(w.Z,{}):(0,a.jsx)(j.Z,{})}),(0,a.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:(0,a.jsx)(b.Z,{options:T,children:null===(r=e.context)||void 0===r?void 0:r.replaceAll("\\n","\n")})})]})})},t)}),O&&(0,a.jsx)(h.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!s&&(0,a.jsx)(d.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,a.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(),L.handleSubmit(A)(e)},children:[Object.keys(i||{}).length>0&&(0,a.jsx)("div",{className:"flex items-center gap-3",children:(0,a.jsx)(f.Z,{value:E,onChange:(e,t)=>{z(t)},sx:{maxWidth:"100%"},children:Object.keys(i||{}).map(e=>(0,a.jsx)(v.Z,{value:e,children:e},e))})}),(0,a.jsx)(m.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,a.jsx)(g.ZP,{type:"submit",disabled:O,children:(0,a.jsx)(l.Z,{})}),...L.register("query")})]})})]})})},_=r(57931),C=()=>{let e=(0,P.useSearchParams)(),{refreshDialogList:t}=(0,_.Cg)(),r=e.get("id"),o=e.get("scene"),{data:l}=(0,n.Z)(async()=>await (0,s.T)("/v1/chat/dialogue/messages/history",{con_uid:r}),{ready:!!r,refreshDeps:[r]}),{data:c}=(0,n.Z)(async()=>await (0,s.K)("/v1/chat/mode/params/list?chat_mode=".concat(o)),{ready:!!o,refreshDeps:[r,o]}),{history:u,handleChatSubmit:d}=(0,i.Z)({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:r,chat_mode:o||"chat_normal"},initHistory:null==l?void 0:l.data});return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(R,{clearIntialMessage:async()=>{await t()},messages:u||[],onSubmit:d,paramsList:null==c?void 0:c.data})})}},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return c},Cg:function(){return o}});var a=r(9268),n=r(89081),s=r(78915),i=r(86006);let[o,l]=function(){let e=i.createContext(void 0);return[function(){let t=i.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:r,data:i,refresh:o}=(0,n.Z)(async()=>await (0,s.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,a.jsx)(l,{value:{dialogueList:i,queryDialogueList:r,refreshDialogList:o},children:t})}},66487:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var a=r(71990),n=r(86006),s=e=>{let t=(0,n.useReducer)((e,t)=>({...e,...t}),{...e});return t},i=r(57931),o=r(52040),l=e=>{let{queryAgentURL:t,channel:r,queryBody:l,initHistory:c}=e,[u,d]=s({history:c||[]}),{refreshDialogList:h}=(0,i.Cg)();(0,n.useEffect)(()=>{c&&d({history:c})},[c]);let f=async(e,n)=>{if(!e)return;let s=[...u.history,{role:"human",context:e}],i=s.length;d({history:s});try{let c=new AbortController;await (0,a.L)("".concat(o.env.API_BASE_URL?o.env.API_BASE_URL:"").concat("/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...l,user_input:e,channel:r}),signal:c.signal,async onopen(e){if(s.length<=1){h();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==a.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)c.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))c.abort(),d({history:[...s,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...s];e.data&&((null==t?void 0:t[i])?t[i].context="".concat(e.data):t.push({role:"view",context:e.data}),d({history:t}))}}})}catch(e){console.log("---e",e),d({history:[...s,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:f,history:u.history}}},78915:function(e,t,r){"use strict";r.d(t,{T:function(){return u},K:function(){return d}});var a=r(21628),n=r(24214),s=r(52040);let i=n.Z.create({baseURL:s.env.API_BASE_URL});i.defaults.timeout=1e4,i.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var o=r(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,o.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},u=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return i.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let r=c(t);return i.post("/api"+e,{body:r,headers:l}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})}},56008:function(e,t,r){e.exports=r(30794)}},function(e){e.O(0,[180,797,577,86,562,259,751,662,253,769,744],function(){return e(e.s=84380)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-2c82a1b061f2cc3b.js b/pilot/server/static/_next/static/chunks/app/datastores/page-2c82a1b061f2cc3b.js deleted file mode 100644 index 65c462fec..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/page-2c82a1b061f2cc3b.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{25123:function(e,t,n){"use strict";var o=n(78997);t.Z=void 0;var s=o(n(76906)),a=n(9268),i=(0,s.default)((0,a.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-8-2h2v-4h4v-2h-4V7h-2v4H7v2h4z"}),"AddBoxOutlined");t.Z=i},29382:function(e,t,n){"use strict";var o=n(78997);t.Z=void 0;var s=o(n(76906)),a=n(9268),i=(0,s.default)([(0,a.jsx)("path",{d:"M5 5h2v3h10V5h2v5h2V5c0-1.1-.9-2-2-2h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v-2H5V5zm7-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,a.jsx)("path",{d:"M20.3 18.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S12 14 12 16.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l2.7 2.7 1.4-1.4-2.7-2.7zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"},"1")],"ContentPasteSearchOutlined");t.Z=i},31982:function(e,t,n){Promise.resolve().then(n.bind(n,44323))},44323:function(e,t,n){"use strict";n.r(t);var o=n(9268),s=n(56008),a=n(86006),i=n(72474),r=n(59534),c=n(25123),l=n(29382),d=n(50157),x=n(21628),p=n(50645),h=n(5737),g=n(78635),u=n(90545),f=n(70900),m=n(11437),j=n(35086),b=n(53113),S=n(866),w=n(22046),y=n(28086),Z=n(52040);let{Dragger:P}=d.default,v=(0,p.Z)(h.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),k=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],C=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,s.useRouter)(),{mode:t}=(0,g.tv)(),[n,d]=(0,a.useState)(0),[p,_]=(0,a.useState)(""),[T,O]=(0,a.useState)([]),[R,A]=(0,a.useState)(!1),[B,z]=(0,a.useState)(""),[N,E]=(0,a.useState)(""),[U,L]=(0,a.useState)(""),[F,D]=(0,a.useState)(""),[I,W]=(0,a.useState)(""),[J,V]=(0,a.useState)(null),[M,G]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{(async function(){let e=await fetch("".concat(Z.env.API_BASE_URL,"/knowledge/space/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();t.success&&O(t.data)})()},[]),(0,o.jsxs)(u.Z,{sx:{width:"100%",height:"100%",backgroundColor:"light"===t?"rgb(238, 240, 245)":"rgb(33, 33, 33)"},children:[(0,o.jsx)(u.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,o.jsxs)(f.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,o.jsxs)(u.Z,{sx:{boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",backgroundColor:"light"===t?"rgb(224, 228, 237)":"rgb(72, 72, 72)",flexShrink:0,flexGrow:0,cursor:"pointer","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>A(!0),children:[(0,o.jsx)(c.Z,{sx:{marginRight:"10px",fontSize:"30px"}}),"Space"]}),T.map((n,s)=>(0,o.jsxs)(u.Z,{sx:{padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",backgroundColor:"light"===t?"rgb(255, 255, 255)":"rgb(72, 72, 72)",borderTop:"3px solid rgb(82, 196, 26)",flexShrink:0,flexGrow:0,cursor:"pointer","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(n.name))},children:[(0,o.jsxs)(u.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,o.jsx)(l.Z,{sx:{marginRight:"5px"}}),n.name]}),(0,o.jsxs)(u.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,o.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(u.Z,{sx:{color:"black"},children:n.vector_type}),(0,o.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,o.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(u.Z,{sx:{color:"black"},children:n.owner}),(0,o.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,o.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(u.Z,{sx:{color:"black"},children:n.docs||0}),(0,o.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]})]},s)),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{})]})}),(0,o.jsx)(m.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:R,onClose:()=>A(!1),children:(0,o.jsxs)(h.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,o.jsx)(u.Z,{sx:{width:"100%"},children:(0,o.jsx)(f.Z,{spacing:2,direction:"row",children:k.map((e,t)=>(0,o.jsxs)(v,{sx:{fontWeight:n===t?"bold":"",color:n===t?"#814DDE":""},children:[tz(e.target.value)})]}),(0,o.jsx)(b.Z,{variant:"outlined",onClick:async()=>{if(""===B){x.ZP.error("please input the name");return}let e=await fetch("".concat(Z.env.API_BASE_URL,"/knowledge/space/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:B,vector_type:"Chroma",owner:"keting",desc:"test1"})}),t=await e.json();if(t.success){x.ZP.success("success"),d(1);let e=await fetch("".concat(Z.env.API_BASE_URL,"/knowledge/space/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();t.success&&O(t.data)}else x.ZP.error(t.err_msg||"failed")},children:"Next"})]}):1===n?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(u.Z,{sx:{margin:"30px auto"},children:C.map(e=>(0,o.jsxs)(h.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{_(e.type),d(2)},children:[(0,o.jsx)(h.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,o.jsx)(h.Z,{children:e.subTitle})]},e.type))})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(u.Z,{sx:{margin:"30px auto"},children:["Name:",(0,o.jsx)(j.ZP,{placeholder:"Please input the name",onChange:e=>L(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===p?(0,o.jsxs)(o.Fragment,{children:["Web Page URL:",(0,o.jsx)(j.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>E(e.target.value)})]}):"file"===p?(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(P,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){V(null),L("");return}V(e.file.originFileObj),L(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,o.jsx)("p",{className:"ant-upload-drag-icon",children:(0,o.jsx)(i.Z,{})}),(0,o.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,o.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,o.jsxs)(o.Fragment,{children:["Text Source(Optional):",(0,o.jsx)(j.ZP,{placeholder:"Please input the text source",onChange:e=>D(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,o.jsx)(S.Z,{onChange:e=>W(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,o.jsx)(w.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,o.jsx)(y.Z,{checked:M,onChange:e=>G(e.target.checked)}),children:"Synch:"})]}),(0,o.jsxs)(f.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,o.jsx)(b.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>d(1),children:"< Back"}),(0,o.jsx)(b.Z,{variant:"outlined",onClick:async()=>{if(""===U){x.ZP.error("Please input the name");return}if("webPage"===p){if(""===N){x.ZP.error("Please input the Web Page URL");return}let e=await fetch("".concat(Z.env.API_BASE_URL,"/knowledge/").concat(B,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:U,content:N,doc_type:"URL"})}),t=await e.json();t.success?(x.ZP.success("success"),A(!1),M&&fetch("".concat(Z.env.API_BASE_URL,"/knowledge/").concat(B,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[t.data]})})):x.ZP.error(t.err_msg||"failed")}else if("file"===p){if(!J){x.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",U),e.append("doc_file",J),e.append("doc_type","DOCUMENT");let t=await fetch("".concat(Z.env.API_BASE_URL,"/knowledge/").concat(B,"/document/upload"),{method:"POST",body:e}),n=await t.json();n.success?(x.ZP.success("success"),A(!1),M&&fetch("".concat(Z.env.API_BASE_URL,"/knowledge/").concat(B,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[n.data]})})):x.ZP.error(n.err_msg||"failed")}else{if(""===I){x.ZP.error("Please input the text");return}let e=await fetch("".concat(Z.env.API_BASE_URL,"/knowledge/").concat(B,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:U,source:F,content:I,doc_type:"TEXT"})}),t=await e.json();t.success?(x.ZP.success("success"),A(!1),M&&fetch("".concat(Z.env.API_BASE_URL,"/knowledge/").concat(B,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[t.data]})})):x.ZP.error(t.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}}},function(e){e.O(0,[797,577,86,693,118,672,642,253,769,744],function(){return e(e.s=31982)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-b0300a298ea0bd00.js b/pilot/server/static/_next/static/chunks/app/datastores/page-b0300a298ea0bd00.js new file mode 100644 index 000000000..abe3c81cb --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/datastores/page-b0300a298ea0bd00.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{25123:function(e,t,n){"use strict";var o=n(78997);t.Z=void 0;var s=o(n(76906)),a=n(9268),i=(0,s.default)((0,a.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-8-2h2v-4h4v-2h-4V7h-2v4H7v2h4z"}),"AddBoxOutlined");t.Z=i},29382:function(e,t,n){"use strict";var o=n(78997);t.Z=void 0;var s=o(n(76906)),a=n(9268),i=(0,s.default)([(0,a.jsx)("path",{d:"M5 5h2v3h10V5h2v5h2V5c0-1.1-.9-2-2-2h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v-2H5V5zm7-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,a.jsx)("path",{d:"M20.3 18.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S12 14 12 16.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l2.7 2.7 1.4-1.4-2.7-2.7zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"},"1")],"ContentPasteSearchOutlined");t.Z=i},31982:function(e,t,n){Promise.resolve().then(n.bind(n,44323))},44323:function(e,t,n){"use strict";n.r(t);var o=n(9268),s=n(56008),a=n(86006),i=n(72474),r=n(59534),c=n(25123),l=n(29382),d=n(50157),x=n(21628),p=n(50645),h=n(5737),u=n(78635),g=n(90545),f=n(70900),m=n(11437),j=n(35086),b=n(53113),S=n(866),w=n(22046),y=n(28086),Z=n(52040);let{Dragger:P}=d.default,v=(0,p.Z)(h.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),k=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],_=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,s.useRouter)(),{mode:t}=(0,u.tv)(),[n,d]=(0,a.useState)(0),[p,C]=(0,a.useState)(""),[T,O]=(0,a.useState)([]),[R,E]=(0,a.useState)(!1),[F,N]=(0,a.useState)(""),[A,B]=(0,a.useState)(""),[z,U]=(0,a.useState)(""),[L,D]=(0,a.useState)(""),[I,W]=(0,a.useState)(""),[J,V]=(0,a.useState)(null),[M,G]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{(async function(){let e=await fetch("".concat(Z.env.API_BASE_URL,"/knowledge/space/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();t.success&&O(t.data)})()},[]),(0,o.jsxs)(g.Z,{sx:{width:"100%",height:"100%"},className:"bg-[#EEF0F5] dark:bg-[#212121]",children:[(0,o.jsx)(g.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,o.jsxs)(f.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,o.jsxs)(g.Z,{sx:{boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",flexShrink:0,flexGrow:0,cursor:"pointer","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>E(!0),className:"bg-[#E0E4ED] dark:bg-[#484848]",children:[(0,o.jsx)(c.Z,{sx:{marginRight:"10px",fontSize:"30px"}}),"Space"]}),T.map((t,n)=>(0,o.jsxs)(g.Z,{sx:{padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",borderTop:"3px solid rgb(82, 196, 26)",flexShrink:0,flexGrow:0,cursor:"pointer","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(t.name))},className:"bg-[#FFFFFF] dark:bg-[#484848]",children:[(0,o.jsxs)(g.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,o.jsx)(l.Z,{sx:{marginRight:"5px"}}),t.name]}),(0,o.jsxs)(g.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,o.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(g.Z,{sx:{color:"black"},children:t.vector_type}),(0,o.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,o.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(g.Z,{sx:{color:"black"},children:t.owner}),(0,o.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,o.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(g.Z,{sx:{color:"black"},children:t.docs||0}),(0,o.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]})]},n)),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{})]})}),(0,o.jsx)(m.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:R,onClose:()=>E(!1),children:(0,o.jsxs)(h.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,o.jsx)(g.Z,{sx:{width:"100%"},children:(0,o.jsx)(f.Z,{spacing:2,direction:"row",children:k.map((e,t)=>(0,o.jsxs)(v,{sx:{fontWeight:n===t?"bold":"",color:n===t?"#814DDE":""},children:[tN(e.target.value)})]}),(0,o.jsx)(b.Z,{variant:"outlined",onClick:async()=>{if(""===F){x.ZP.error("please input the name");return}let e=await fetch("".concat(Z.env.API_BASE_URL,"/knowledge/space/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:F,vector_type:"Chroma",owner:"keting",desc:"test1"})}),t=await e.json();if(t.success){x.ZP.success("success"),d(1);let e=await fetch("".concat(Z.env.API_BASE_URL,"/knowledge/space/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();t.success&&O(t.data)}else x.ZP.error(t.err_msg||"failed")},children:"Next"})]}):1===n?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(g.Z,{sx:{margin:"30px auto"},children:_.map(e=>(0,o.jsxs)(h.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{C(e.type),d(2)},children:[(0,o.jsx)(h.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,o.jsx)(h.Z,{children:e.subTitle})]},e.type))})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(g.Z,{sx:{margin:"30px auto"},children:["Name:",(0,o.jsx)(j.ZP,{placeholder:"Please input the name",onChange:e=>U(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===p?(0,o.jsxs)(o.Fragment,{children:["Web Page URL:",(0,o.jsx)(j.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>B(e.target.value)})]}):"file"===p?(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(P,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){V(null),U("");return}V(e.file.originFileObj),U(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,o.jsx)("p",{className:"ant-upload-drag-icon",children:(0,o.jsx)(i.Z,{})}),(0,o.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,o.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,o.jsxs)(o.Fragment,{children:["Text Source(Optional):",(0,o.jsx)(j.ZP,{placeholder:"Please input the text source",onChange:e=>D(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,o.jsx)(S.Z,{onChange:e=>W(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,o.jsx)(w.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,o.jsx)(y.Z,{checked:M,onChange:e=>G(e.target.checked)}),children:"Synch:"})]}),(0,o.jsxs)(f.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,o.jsx)(b.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>d(1),children:"< Back"}),(0,o.jsx)(b.Z,{variant:"outlined",onClick:async()=>{if(""===z){x.ZP.error("Please input the name");return}if("webPage"===p){if(""===A){x.ZP.error("Please input the Web Page URL");return}let e=await fetch("".concat(Z.env.API_BASE_URL,"/knowledge/").concat(F,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:z,content:A,doc_type:"URL"})}),t=await e.json();t.success?(x.ZP.success("success"),E(!1),M&&fetch("".concat(Z.env.API_BASE_URL,"/knowledge/").concat(F,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[t.data]})})):x.ZP.error(t.err_msg||"failed")}else if("file"===p){if(!J){x.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",z),e.append("doc_file",J),e.append("doc_type","DOCUMENT");let t=await fetch("".concat(Z.env.API_BASE_URL,"/knowledge/").concat(F,"/document/upload"),{method:"POST",body:e}),n=await t.json();n.success?(x.ZP.success("success"),E(!1),M&&fetch("".concat(Z.env.API_BASE_URL,"/knowledge/").concat(F,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[n.data]})})):x.ZP.error(n.err_msg||"failed")}else{if(""===I){x.ZP.error("Please input the text");return}let e=await fetch("".concat(Z.env.API_BASE_URL,"/knowledge/").concat(F,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:z,source:L,content:I,doc_type:"TEXT"})}),t=await e.json();t.success?(x.ZP.success("success"),E(!1),M&&fetch("".concat(Z.env.API_BASE_URL,"/knowledge/").concat(F,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[t.data]})})):x.ZP.error(t.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}}},function(e){e.O(0,[797,577,86,693,118,672,642,253,769,744],function(){return e(e.s=31982)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/layout-3463461ae68b31ef.js b/pilot/server/static/_next/static/chunks/app/layout-731d6df3273507ea.js similarity index 100% rename from pilot/server/static/_next/static/chunks/app/layout-3463461ae68b31ef.js rename to pilot/server/static/_next/static/chunks/app/layout-731d6df3273507ea.js diff --git a/pilot/server/static/_next/static/chunks/webpack-b546a9873d86091b.js b/pilot/server/static/_next/static/chunks/webpack-316952b6875e34f8.js similarity index 98% rename from pilot/server/static/_next/static/chunks/webpack-b546a9873d86091b.js rename to pilot/server/static/_next/static/chunks/webpack-316952b6875e34f8.js index 0e6ec8a51..6081950f7 100644 --- a/pilot/server/static/_next/static/chunks/webpack-b546a9873d86091b.js +++ b/pilot/server/static/_next/static/chunks/webpack-316952b6875e34f8.js @@ -1 +1 @@ -!function(){"use strict";var e,t,n,r,o,u,i,c,f,a={},l={};function d(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,loaded:!1,exports:{}},r=!0;try{a[e].call(n.exports,n,n.exports,d),r=!1}finally{r&&delete l[e]}return n.loaded=!0,n.exports}d.m=a,e=[],d.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(d.O).every(function(e){return d.O[e](n[f])})?n.splice(f--,1):(c=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(d.O).every(function(e){return d.O[e](n[f])})?n.splice(f--,1):(c=!1,o\*\]\:pointer-events-auto>*{pointer-events:auto}#nprogress{pointer-events:none}#nprogress .bar{background:var(--joy-palette-primary-500,#096bde);position:fixed;z-index:10031;top:0;left:0;width:100%;height:3px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px var(--joy-palette-primary-500,#096bde),0 0 5px var(--joy-palette-primary-500,#096bde);opacity:1;transform:rotate(3deg) translateY(-4px)} \ No newline at end of file +*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Josefin Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.z-0{z-index:0}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.-mr-3{margin-right:-.75rem}.mb-\[10\%\]{margin-bottom:10%}.mr-3{margin-right:.75rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-6{margin-top:1.5rem}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-12{height:3rem}.h-9{height:2.25rem}.h-full{height:100%}.max-h-screen{max-height:100vh}.min-h-0{min-height:0}.min-h-full{min-height:100%}.w-12{width:3rem}.w-9{width:2.25rem}.w-full{width:100%}.w-screen{width:100vw}.min-w-0{min-width:0}.max-w-3xl{max-width:48rem}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-rows-\[auto\2c 1fr\]{grid-template-rows:auto 1fr}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.overflow-auto{overflow:auto}.overflow-hidden,.truncate{overflow:hidden}.truncate{text-overflow:ellipsis;white-space:nowrap}.rounded-none{border-radius:0}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.bg-\[\#E0E4ED\]{--tw-bg-opacity:1;background-color:rgb(224 228 237/var(--tw-bg-opacity))}.bg-\[\#EEF0F5\]{--tw-bg-opacity:1;background-color:rgb(238 240 245/var(--tw-bg-opacity))}.bg-\[\#FFFFFF\]{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-\[\#fefefe\]{--tw-bg-opacity:1;background-color:rgb(254 254 254/var(--tw-bg-opacity))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\[\#31afff\]{--tw-gradient-from:#31afff var(--tw-gradient-from-position);--tw-gradient-to:rgba(49,175,255,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-\[\#1677ff\]{--tw-gradient-to:#1677ff var(--tw-gradient-to-position)}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-7{padding-top:1.75rem}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-sans{font-family:Josefin Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-base{font-size:1rem;line-height:1.5rem}.text-\[\#878c93\]{--tw-text-opacity:1;color:rgb(135 140 147/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}body{margin:0;color:var(--joy-palette-text-primary,var(--joy-palette-neutral-800,#25252d));font-family:var(--joy-fontFamily-body,var(--joy-Josefin Sans,sans-serif));font-size:var(--joy-fontSize-md,1rem);line-height:var(--joy-lineHeight-md,1.5);background-color:var(--joy-palette-background-body)}body .ant-btn-primary{background-color:#1677ff}.ant-pagination .ant-pagination-next *,.ant-pagination .ant-pagination-prev *{color:#9123a7!important}.ant-pagination .ant-pagination-item{border-color:#9123a7!important;background-color:#9123a7!important}.ant-pagination .ant-pagination-item.ant-pagination-item-active a{color:#fff!important}.before\:bg-\[\#fefefe\]:before{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(254 254 254/var(--tw-bg-opacity))}:is(.dark .dark\:border-gray-800){--tw-border-opacity:1;border-color:rgb(31 41 55/var(--tw-border-opacity))}:is(.dark .dark\:bg-\[\#212121\]){--tw-bg-opacity:1;background-color:rgb(33 33 33/var(--tw-bg-opacity))}:is(.dark .dark\:bg-\[\#484848\]){--tw-bg-opacity:1;background-color:rgb(72 72 72/var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800\/70){background-color:rgba(31,41,55,.7)}:is(.dark .dark\:bg-gradient-to-r){background-image:linear-gradient(to right,var(--tw-gradient-stops))}:is(.dark .dark\:from-\[\#6a6a6a\]){--tw-gradient-from:#6a6a6a var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,42%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}:is(.dark .dark\:to-\[\#80868f\]){--tw-gradient-to:#80868f var(--tw-gradient-to-position)}:is(.dark .dark\:text-gray-300){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}:is(.dark .before\:dark\:bg-\[\#212121\]):before{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(33 33 33/var(--tw-bg-opacity))}@media not all and (min-width:768px){.max-md\:hidden{display:none}.max-md\:border-t{border-top-width:1px}}@media (min-width:640px){.sm\:gap-8{gap:2rem}}@media (min-width:768px){.md\:hidden{display:none}.md\:grid-cols-\[280px\2c 1fr\]{grid-template-columns:280px 1fr}.md\:grid-rows-\[1fr\]{grid-template-rows:1fr}}@media (min-width:1024px){.lg\:col-span-3{grid-column:span 3/span 3}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:gap-6{gap:1.5rem}}@media (min-width:1280px){.xl\:max-w-4xl{max-width:56rem}.xl\:max-w-5xl{max-width:64rem}}.\[\&\>\*\]\:pointer-events-auto>*{pointer-events:auto}#nprogress{pointer-events:none}#nprogress .bar{background:var(--joy-palette-primary-500,#096bde);position:fixed;z-index:10031;top:0;left:0;width:100%;height:3px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px var(--joy-palette-primary-500,#096bde),0 0 5px var(--joy-palette-primary-500,#096bde);opacity:1;transform:rotate(3deg) translateY(-4px)} \ No newline at end of file diff --git a/pilot/server/static/_next/static/n5G9YyfG75SNu_CBFXDsk/_buildManifest.js b/pilot/server/static/_next/static/mmAyWyhL6AIO7dcJKajvs/_buildManifest.js similarity index 100% rename from pilot/server/static/_next/static/n5G9YyfG75SNu_CBFXDsk/_buildManifest.js rename to pilot/server/static/_next/static/mmAyWyhL6AIO7dcJKajvs/_buildManifest.js diff --git a/pilot/server/static/_next/static/n5G9YyfG75SNu_CBFXDsk/_ssgManifest.js b/pilot/server/static/_next/static/mmAyWyhL6AIO7dcJKajvs/_ssgManifest.js similarity index 100% rename from pilot/server/static/_next/static/n5G9YyfG75SNu_CBFXDsk/_ssgManifest.js rename to pilot/server/static/_next/static/mmAyWyhL6AIO7dcJKajvs/_ssgManifest.js diff --git a/pilot/server/static/agents/index.html b/pilot/server/static/agents/index.html index a261df930..9b6303f18 100644 --- a/pilot/server/static/agents/index.html +++ b/pilot/server/static/agents/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/pilot/server/static/agents/index.txt b/pilot/server/static/agents/index.txt index 5db8276d2..f961fb1e7 100644 --- a/pilot/server/static/agents/index.txt +++ b/pilot/server/static/agents/index.txt @@ -1,9 +1,9 @@ -1:HL["/_next/static/css/2d59d2fccc805bbc.css",{"as":"style"}] -0:["n5G9YyfG75SNu_CBFXDsk",[[["",{"children":["agents",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-3463461ae68b31ef.js"],"name":"","async":false} -5:I{"id":"13211","chunks":["272:static/chunks/webpack-b546a9873d86091b.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-b546a9873d86091b.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-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"4191","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","757:static/chunks/f60284a2-6891068c9ea7ce77.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","562:static/chunks/562-967d90db5cfc2e85.js","259:static/chunks/259-2c3490a9eca2f411.js","751:static/chunks/751-9808572c67f2351c.js","662:static/chunks/662-6f651dffca342bc9.js","481:static/chunks/481-55e7d47dd2c74b66.js","718:static/chunks/app/agents/page-6aeab11b87fb9b87.js"],"name":"","async":false} +1:HL["/_next/static/css/397a9cda76937376.css",{"as":"style"}] +0:["mmAyWyhL6AIO7dcJKajvs",[[["",{"children":["agents",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/397a9cda76937376.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-731d6df3273507ea.js"],"name":"","async":false} +5:I{"id":"13211","chunks":["272:static/chunks/webpack-316952b6875e34f8.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-316952b6875e34f8.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-316952b6875e34f8.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +8:I{"id":"4191","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","757:static/chunks/f60284a2-6891068c9ea7ce77.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","562:static/chunks/562-967d90db5cfc2e85.js","259:static/chunks/259-2c3490a9eca2f411.js","751:static/chunks/751-9808572c67f2351c.js","662:static/chunks/662-6f651dffca342bc9.js","481:static/chunks/481-55e7d47dd2c74b66.js","718:static/chunks/app/agents/page-8a82157969e577d4.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","agents","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":[]}],null],"segment":"agents"},"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/chat/index.html b/pilot/server/static/chat/index.html index c1aac989f..27c7853f7 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 7605b8094..331cbb4a9 100644 --- a/pilot/server/static/chat/index.txt +++ b/pilot/server/static/chat/index.txt @@ -1,9 +1,9 @@ -1:HL["/_next/static/css/2d59d2fccc805bbc.css",{"as":"style"}] -0:["n5G9YyfG75SNu_CBFXDsk",[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-3463461ae68b31ef.js"],"name":"","async":false} -5:I{"id":"13211","chunks":["272:static/chunks/webpack-b546a9873d86091b.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-b546a9873d86091b.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-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"59498","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","562:static/chunks/562-967d90db5cfc2e85.js","259:static/chunks/259-2c3490a9eca2f411.js","751:static/chunks/751-9808572c67f2351c.js","662:static/chunks/662-6f651dffca342bc9.js","929:static/chunks/app/chat/page-bec29698095b2e0b.js"],"name":"","async":false} +1:HL["/_next/static/css/397a9cda76937376.css",{"as":"style"}] +0:["mmAyWyhL6AIO7dcJKajvs",[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/397a9cda76937376.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-731d6df3273507ea.js"],"name":"","async":false} +5:I{"id":"13211","chunks":["272:static/chunks/webpack-316952b6875e34f8.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-316952b6875e34f8.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-316952b6875e34f8.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +8:I{"id":"59498","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","562:static/chunks/562-967d90db5cfc2e85.js","259:static/chunks/259-2c3490a9eca2f411.js","751:static/chunks/751-9808572c67f2351c.js","662:static/chunks/662-6f651dffca342bc9.js","929:static/chunks/app/chat/page-b2e9a5320d939e6d.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 c98ee2efc..d93ee08b3 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 ad59571c7..9986be5d1 100644 --- a/pilot/server/static/datastores/documents/chunklist/index.txt +++ b/pilot/server/static/datastores/documents/chunklist/index.txt @@ -1,9 +1,9 @@ -1:HL["/_next/static/css/2d59d2fccc805bbc.css",{"as":"style"}] -0:["n5G9YyfG75SNu_CBFXDsk",[[["",{"children":["datastores",{"children":["documents",{"children":["chunklist",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-3463461ae68b31ef.js"],"name":"","async":false} -5:I{"id":"13211","chunks":["272:static/chunks/webpack-b546a9873d86091b.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-b546a9873d86091b.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-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +1:HL["/_next/static/css/397a9cda76937376.css",{"as":"style"}] +0:["mmAyWyhL6AIO7dcJKajvs",[[["",{"children":["datastores",{"children":["documents",{"children":["chunklist",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/397a9cda76937376.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-731d6df3273507ea.js"],"name":"","async":false} +5:I{"id":"13211","chunks":["272:static/chunks/webpack-316952b6875e34f8.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-316952b6875e34f8.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-316952b6875e34f8.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 8:I{"id":"26257","chunks":["797:static/chunks/797-d2478b2581e1fdcb.js","693:static/chunks/693-ed79550f78fd681b.js","118:static/chunks/118-46b95fe35f46f1b9.js","440:static/chunks/440-8431a38ed9f2e11b.js","55:static/chunks/55-41778c7520ea1334.js","538:static/chunks/app/datastores/documents/chunklist/page-72f7f9cb769de003.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","datastores","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","datastores","children","documents","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","datastores","children","documents","children","chunklist","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":"chunklist"},"styles":[]}],"segment":"documents"},"styles":[]}],"segment":"datastores"},"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/index.html b/pilot/server/static/datastores/documents/index.html index 4388a1fdb..cede22473 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 7871ae57c..28357e385 100644 --- a/pilot/server/static/datastores/documents/index.txt +++ b/pilot/server/static/datastores/documents/index.txt @@ -1,9 +1,9 @@ -1:HL["/_next/static/css/2d59d2fccc805bbc.css",{"as":"style"}] -0:["n5G9YyfG75SNu_CBFXDsk",[[["",{"children":["datastores",{"children":["documents",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-3463461ae68b31ef.js"],"name":"","async":false} -5:I{"id":"13211","chunks":["272:static/chunks/webpack-b546a9873d86091b.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-b546a9873d86091b.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-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +1:HL["/_next/static/css/397a9cda76937376.css",{"as":"style"}] +0:["mmAyWyhL6AIO7dcJKajvs",[[["",{"children":["datastores",{"children":["documents",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/397a9cda76937376.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-731d6df3273507ea.js"],"name":"","async":false} +5:I{"id":"13211","chunks":["272:static/chunks/webpack-316952b6875e34f8.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-316952b6875e34f8.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-316952b6875e34f8.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 8:I{"id":"16692","chunks":["550:static/chunks/925f3d25-1af7259455ef26bd.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","693:static/chunks/693-ed79550f78fd681b.js","118:static/chunks/118-46b95fe35f46f1b9.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","55:static/chunks/55-41778c7520ea1334.js","642:static/chunks/642-df31c252aa27b391.js","470:static/chunks/app/datastores/documents/page-d8e7a09883074ff0.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","datastores","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","datastores","children","documents","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":"documents"},"styles":[]}],"segment":"datastores"},"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/index.html b/pilot/server/static/datastores/index.html index 196e27d60..a83edca47 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 0072a86a2..857f075e8 100644 --- a/pilot/server/static/datastores/index.txt +++ b/pilot/server/static/datastores/index.txt @@ -1,9 +1,9 @@ -1:HL["/_next/static/css/2d59d2fccc805bbc.css",{"as":"style"}] -0:["n5G9YyfG75SNu_CBFXDsk",[[["",{"children":["datastores",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-3463461ae68b31ef.js"],"name":"","async":false} -5:I{"id":"13211","chunks":["272:static/chunks/webpack-b546a9873d86091b.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-b546a9873d86091b.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-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"44323","chunks":["797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","693:static/chunks/693-ed79550f78fd681b.js","118:static/chunks/118-46b95fe35f46f1b9.js","672:static/chunks/672-860e1c1d53658862.js","642:static/chunks/642-df31c252aa27b391.js","43:static/chunks/app/datastores/page-2c82a1b061f2cc3b.js"],"name":"","async":false} +1:HL["/_next/static/css/397a9cda76937376.css",{"as":"style"}] +0:["mmAyWyhL6AIO7dcJKajvs",[[["",{"children":["datastores",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/397a9cda76937376.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-731d6df3273507ea.js"],"name":"","async":false} +5:I{"id":"13211","chunks":["272:static/chunks/webpack-316952b6875e34f8.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-316952b6875e34f8.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-316952b6875e34f8.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +8:I{"id":"44323","chunks":["797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","693:static/chunks/693-ed79550f78fd681b.js","118:static/chunks/118-46b95fe35f46f1b9.js","672:static/chunks/672-860e1c1d53658862.js","642:static/chunks/642-df31c252aa27b391.js","43:static/chunks/app/datastores/page-b0300a298ea0bd00.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","datastores","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":"datastores"},"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/index.html b/pilot/server/static/index.html index f83c84261..924e09989 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 9b5dbe9b9..985c410d2 100644 --- a/pilot/server/static/index.txt +++ b/pilot/server/static/index.txt @@ -1,9 +1,9 @@ -1:HL["/_next/static/css/2d59d2fccc805bbc.css",{"as":"style"}] -0:["n5G9YyfG75SNu_CBFXDsk",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-3463461ae68b31ef.js"],"name":"","async":false} -5:I{"id":"13211","chunks":["272:static/chunks/webpack-b546a9873d86091b.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-b546a9873d86091b.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-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} +1:HL["/_next/static/css/397a9cda76937376.css",{"as":"style"}] +0:["mmAyWyhL6AIO7dcJKajvs",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/397a9cda76937376.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-731d6df3273507ea.js"],"name":"","async":false} +5:I{"id":"13211","chunks":["272:static/chunks/webpack-316952b6875e34f8.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-316952b6875e34f8.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-316952b6875e34f8.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 8:I{"id":"26925","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","562:static/chunks/562-967d90db5cfc2e85.js","259:static/chunks/259-2c3490a9eca2f411.js","931:static/chunks/app/page-3ac84803013d92de.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":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"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"}]]