@customize-agent/server 3.0.6 → 3.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +47 -29
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/routes-manifest.json +6 -0
  5. package/.next/server/chunks/3445.js +9 -3
  6. package/.next/server/chunks/8204.js +1 -1
  7. package/.next/server/chunks/9270.js +1 -1
  8. package/.next/server/chunks/9301.js +2 -2
  9. package/.next/server/middleware-build-manifest.js +1 -1
  10. package/.next/server/pages/404.html +1 -1
  11. package/.next/server/pages/500.html +1 -1
  12. package/.next/server/pages/api/config/healthCheck.js +1 -1
  13. package/.next/server/pages/api/documents/chapter/regenerate.js +1 -1
  14. package/.next/server/pages/api/documents/chapter/regenerate.js.nft.json +1 -1
  15. package/.next/server/pages/api/documents/export.js +1 -1
  16. package/.next/server/pages/api/documents/generate.js +1 -1
  17. package/.next/server/pages/api/documents/generate.js.nft.json +1 -1
  18. package/.next/server/pages/api/documents/roles.js +1 -0
  19. package/.next/server/pages/api/documents/roles.js.nft.json +1 -0
  20. package/.next/server/pages/api/documents/templates.js +1 -1
  21. package/.next/server/pages/api/documents/templates.js.nft.json +1 -1
  22. package/.next/server/pages/context/long-term.html +1 -1
  23. package/.next/server/pages/context/short-term.html +1 -1
  24. package/.next/server/pages/document-roles.html +1 -0
  25. package/.next/server/pages/document-roles.js.nft.json +1 -0
  26. package/.next/server/pages/documents.html +1 -1
  27. package/.next/server/pages/index.html +1 -1
  28. package/.next/server/pages/knowledge/file-detail.html +1 -1
  29. package/.next/server/pages/knowledge/files.html +1 -1
  30. package/.next/server/pages/knowledge/manage.html +1 -1
  31. package/.next/server/pages/knowledge/search.html +1 -1
  32. package/.next/server/pages/knowledge.html +1 -1
  33. package/.next/server/pages/models.html +1 -1
  34. package/.next/server/pages/overview.html +1 -1
  35. package/.next/server/pages/prompt.html +1 -1
  36. package/.next/server/pages/settings.html +1 -1
  37. package/.next/server/pages-manifest.json +20 -18
  38. package/.next/static/TPNkWJVdxfNk1foFSh7Uw/_buildManifest.js +1 -0
  39. package/.next/static/chunks/129-abc5698c238befa3.js +1 -0
  40. package/.next/static/chunks/174-4fe307a1ae432ca3.js +10 -0
  41. package/.next/static/chunks/{400-f85b695e54242828.js → 400-82e564931b06011b.js} +1 -1
  42. package/.next/static/chunks/846-7f8d40514b6985f3.js +1 -0
  43. package/.next/static/chunks/pages/{_app-d9d9adbf0172510f.js → _app-b70d02eb20e482ce.js} +10 -10
  44. package/.next/static/chunks/pages/context/{long-term-60c9b8da1fd821a9.js → long-term-7dd213ed6aaf6901.js} +1 -1
  45. package/.next/static/chunks/pages/context/{short-term-1067b9478401973f.js → short-term-70f45e74d6778422.js} +1 -1
  46. package/.next/static/chunks/pages/document-roles-8f6b20debf515131.js +1 -0
  47. package/.next/static/chunks/pages/documents-56ca6f45e69c19e5.js +1 -0
  48. package/.next/static/chunks/pages/knowledge/{file-detail-761346f946ea02fd.js → file-detail-9a889d5cb64f568c.js} +1 -1
  49. package/.next/static/chunks/pages/knowledge/{files-28f36c822a6efa78.js → files-1d99abf5b4d33896.js} +1 -1
  50. package/.next/static/chunks/pages/knowledge/manage-21b21d79b5cf4cd5.js +1 -0
  51. package/.next/static/chunks/pages/knowledge/{search-03f3c606937fd44e.js → search-70a7b107d722facd.js} +1 -1
  52. package/.next/static/chunks/pages/knowledge-b3ef77e79801287c.js +1 -0
  53. package/.next/static/chunks/pages/models-faf86bc243e1e43a.js +1 -0
  54. package/.next/static/chunks/pages/overview-f7614487f399659f.js +1 -0
  55. package/.next/static/chunks/pages/{prompt-80e3d275c7f9d63b.js → prompt-54f8cf8df33e3c2e.js} +1 -1
  56. package/package.json +4 -4
  57. package/.next/static/chunks/174-002febc1c103bc03.js +0 -10
  58. package/.next/static/chunks/883-76858084c93bf1c6.js +0 -1
  59. package/.next/static/chunks/pages/documents-a5a4df40a6ff152d.js +0 -1
  60. package/.next/static/chunks/pages/knowledge/manage-3703b1829d1901da.js +0 -1
  61. package/.next/static/chunks/pages/knowledge-81fd1e907a6fcb84.js +0 -1
  62. package/.next/static/chunks/pages/models-0a223f1f7c826b49.js +0 -1
  63. package/.next/static/chunks/pages/overview-6088b235c99ccb83.js +0 -1
  64. package/.next/static/k4Jthqz4KZmSXtMBuRWer/_buildManifest.js +0 -1
  65. /package/.next/static/{k4Jthqz4KZmSXtMBuRWer → TPNkWJVdxfNk1foFSh7Uw}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[449],{3018:(e,t)=>{"use strict";t.A={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"}},3114:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7109),o=n(5450),s=n(8483);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let i=r.forwardRef((e,t)=>r.createElement(s.A,a({},e,{ref:t,icon:o.A})))},3139:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/overview",function(){return n(3502)}])},3502:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>z});var r=n(5321),o=n(7109),s=n(6644),a=n(2700),i=n(5114),c=n(2256),l=n(8770),d=n(8787),u=n(9605),p=n(4849),h=n(3442),y=n(1702),f=n(6109),m=n(2192),v=n(8200),g=n(8483);function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let j=o.forwardRef((e,t)=>o.createElement(g.A,x({},e,{ref:t,icon:v.A})));var b=n(933),w=n(3114),A=n(9071),O=n(9012),S=n(6374);function T(){return(T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let k=o.forwardRef((e,t)=>o.createElement(g.A,T({},e,{ref:t,icon:S.A})));var C=n(3018);function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let E=o.forwardRef((e,t)=>o.createElement(g.A,P({},e,{ref:t,icon:C.A})));var N=n(6578);function z(){var e,t,n,v,g,x,S,T,C,P,z,R;let L=(0,s.Vr)(),J=(0,f.useRouter)(),[U,M]=(0,o.useState)(null),[D,H]=(0,o.useState)(!0),[B,I]=(0,o.useState)(0),_=(0,o.useCallback)(async()=>{H(!0);try{let[e,t]=await Promise.all([(0,N.FC)(),(0,N.Z3)().catch(()=>[])]);M(e),I(Array.isArray(t)?t.length:0)}catch(e){}finally{H(!1)}},[]);if((0,o.useEffect)(()=>{_();let e=setInterval(()=>{_()},1e4);return()=>clearInterval(e)},[_]),D&&!U)return(0,r.jsx)("div",{className:"flex justify-center py-16",children:(0,r.jsx)(a.A,{size:"large"})});let F=(null!=(t=null==U?void 0:U.cpu.usagePercent)?t:0)>80?"var(--colorDanger)":(null!=(n=null==U?void 0:U.cpu.usagePercent)?n:0)>50?"var(--colorWarning)":"var(--colorOk)",V=(null!=(v=null==U?void 0:U.memory.usagePercent)?v:0)>80?"var(--colorDanger)":(null!=(g=null==U?void 0:U.memory.usagePercent)?g:0)>50?"var(--colorWarning)":"var(--colorOk)",W=(null==U?void 0:U.tasks.total)?Math.round(U.tasks.success/U.tasks.total*100):0,q=null==U||null==(e=U.models)?void 0:e[0];return(0,r.jsxs)("div",{className:"space-y-6 animateFadeIn",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"pageTitle",children:L("overview.title")}),(0,r.jsx)("p",{className:"pageDesc",children:L("overview.description")})]}),(0,r.jsx)(i.Ay,{icon:(0,r.jsx)(m.A,{spin:D}),loading:D,onClick:()=>{_()},children:L("common.retry")})]}),(0,r.jsxs)(c.A,{gutter:[16,16],children:[(0,r.jsx)(l.A,{xs:24,sm:12,children:(0,r.jsx)(d.A,{size:"small",title:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j,{})," CPU"]}),children:(0,r.jsxs)("div",{style:{textAlign:"center"},children:[(0,r.jsx)(u.A,{type:"circle",percent:null!=(x=null==U?void 0:U.cpu.usagePercent)?x:0,size:120,strokeColor:F,format:e=>"".concat(null==e?void 0:e.toFixed(1),"%")}),(0,r.jsxs)("div",{className:"text-xs mt-2",style:{color:"var(--colorTextSecondary)"},children:[null!=(S=null==U?void 0:U.cpu.cores)?S:0," ",L("overview.cores")]})]})})}),(0,r.jsx)(l.A,{xs:24,sm:12,children:(0,r.jsx)(d.A,{size:"small",title:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.A,{})," ",L("overview.memory")]}),children:(0,r.jsxs)("div",{style:{textAlign:"center"},children:[(0,r.jsx)(u.A,{type:"circle",percent:null!=(T=null==U?void 0:U.memory.usagePercent)?T:0,size:120,strokeColor:V,format:e=>"".concat(e,"%")}),(0,r.jsxs)("div",{className:"text-xs mt-2",style:{color:"var(--colorTextSecondary)"},children:[null!=(C=null==U?void 0:U.memory.processMB)?C:0," MB / ",null!=(P=null==U?void 0:U.memory.totalMB)?P:0," MB"]})]})})})]}),(0,r.jsxs)(c.A,{gutter:[16,16],children:[(0,r.jsx)(l.A,{xs:12,sm:6,children:(0,r.jsx)(d.A,{size:"small",children:(0,r.jsx)(p.A,{title:L("overview.providersCount"),value:B,prefix:(0,r.jsx)(w.A,{})})})}),(0,r.jsx)(l.A,{xs:12,sm:6,children:(0,r.jsx)(d.A,{size:"small",children:(0,r.jsx)(p.A,{title:L("overview.tokensUsed"),value:null!=(z=null==U?void 0:U.tokens.total)?z:0,prefix:(0,r.jsx)(A.A,{})})})}),(0,r.jsx)(l.A,{xs:12,sm:6,children:(0,r.jsx)(d.A,{size:"small",children:(0,r.jsx)(p.A,{title:L("overview.tasksTotal"),value:null!=(R=null==U?void 0:U.tasks.total)?R:0,prefix:(0,r.jsx)(O.A,{})})})}),(0,r.jsx)(l.A,{xs:12,sm:6,children:(0,r.jsx)(d.A,{size:"small",children:(0,r.jsx)(p.A,{title:L("overview.successRate"),value:W,suffix:"%",prefix:W>80?(0,r.jsx)(k,{style:{color:"var(--colorOk)"}}):(0,r.jsx)(E,{style:{color:"var(--colorDanger)"}})})})})]}),(0,r.jsxs)(c.A,{gutter:[16,16],children:[(0,r.jsx)(l.A,{xs:24,sm:12,children:(0,r.jsx)(d.A,{size:"small",title:L("overview.topModel"),children:q?(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)(w.A,{style:{fontSize:24,color:"var(--colorAccent)"}}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"font-semibold",children:q.model}),(0,r.jsxs)("div",{style:{color:"var(--colorTextSecondary)",fontSize:12},children:["@",q.provider," — ",q.count," ",L("overview.calls")]})]})]}):(0,r.jsx)("span",{style:{color:"var(--colorTextSecondary)"},children:L("common.noData")})})}),(0,r.jsx)(l.A,{xs:24,sm:12,children:(0,r.jsx)(d.A,{size:"small",title:L("overview.taskTypes"),children:(null==U?void 0:U.tasks.types)&&Object.keys(U.tasks.types).length>0?(0,r.jsx)(h.A,{wrap:!0,children:Object.entries(U.tasks.types).map(e=>{let[t,n]=e;return(0,r.jsxs)(y.A,{children:[t.slice(0,30),": ",n]},t)})}):(0,r.jsx)("span",{style:{color:"var(--colorTextSecondary)"},children:L("common.noData")})})})]}),(0,r.jsx)(d.A,{title:L("overview.quickActions"),size:"small",children:(0,r.jsxs)(h.A,{wrap:!0,children:[(0,r.jsx)(i.Ay,{onClick:()=>{J.push("/knowledge/manage")},children:L("overview.goToKnowledge")}),(0,r.jsx)(i.Ay,{onClick:()=>{J.push("/models")},children:L("overview.goToModels")}),(0,r.jsx)(i.Ay,{onClick:()=>{J.push("/settings")},children:L("overview.goToSettings")}),(0,r.jsx)(i.Ay,{onClick:()=>{J.push("/prompt")},children:L("nav.promptManagement")}),(0,r.jsx)(i.Ay,{onClick:()=>{J.push("/context/long-term")},children:L("nav.contextEngineering")})]})})]})}},5450:(e,t)=>{"use strict";t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"}},6109:(e,t,n)=>{e.exports=n(7212)},6374:(e,t)=>{"use strict";t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"}},6578:(e,t,n)=>{"use strict";async function r(e,t){let n=await fetch(e,t);if(!n.ok){let e=await n.text(),t=e||"HTTP ".concat(n.status);try{let n=JSON.parse(e);t=n.error||n.message||t}catch(e){}throw Error(t)}return n.json()}async function o(e){let t=e?"?projectRoot=".concat(encodeURIComponent(e)):"";return r("/api/kb/stats".concat(t))}async function s(e){var t,n;let o=new URLSearchParams;return(null==e?void 0:e.projectRoot)&&o.set("projectRoot",e.projectRoot),(null==e?void 0:e.category)&&o.set("category",e.category),(null==e?void 0:e.page)&&o.set("page",String(null!=(t=e.page)?t:1)),(null==e?void 0:e.limit)&&o.set("limit",String(null!=(n=e.limit)?n:50)),r("/api/kb/files?".concat(o))}async function a(e,t){let n=new URLSearchParams({relativePath:e});return t&&n.set("projectRoot",t),r("/api/kb/files/detail?".concat(n))}async function i(e,t){return r("/api/kb/files/reindex",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({relativePath:e,projectRoot:t})})}async function c(e,t,n){return r("/api/kb/files/open",{method:"POST",body:JSON.stringify({relativePath:e,target:t,projectRoot:n})})}async function l(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=r.result,n=e.indexOf(",");t(n>=0?e.slice(n+1):e)},r.onerror=n,r.readAsDataURL(e)})}async function d(e,t,n){return r("/api/kb/upload",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({files:await Promise.all(e.map(async e=>({fileName:e.name,fileData:await l(e),relativePath:e.webkitRelativePath||void 0}))),projectRoot:t,uploadId:n})})}async function u(e){return r("/api/kb/upload/progress?id=".concat(encodeURIComponent(e)))}async function p(e){let t=new URLSearchParams({limit:"50"});return e&&t.set("projectRoot",e),r("/api/kb/operations?".concat(t))}async function h(e){let t=new URLSearchParams;return e&&t.set("projectRoot",e),r("/api/kb/operations?".concat(t),{method:"DELETE"})}async function y(e,t){return r("/api/kb/files",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({relativePath:e,projectRoot:t})})}async function f(e,t){return r("/api/kb/files",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({relativePaths:e,projectRoot:t})})}async function m(e){return r("/api/kb/files",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({all:!0,projectRoot:e})})}async function v(e){return r("/api/kb/reindex",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectRoot:e})})}async function g(){return r("/api/kb/features")}async function x(e,t){var n,o,s,a,i;let c=new URLSearchParams({q:e});return(null==t?void 0:t.projectRoot)&&c.set("projectRoot",t.projectRoot),(null==t?void 0:t.category)&&c.set("category",t.category),(null==t?void 0:t.limit)&&c.set("limit",String(null!=(i=t.limit)?i:20)),(null==t||null==(n=t.weights)?void 0:n.keyword)!=null&&c.set("keywordWeight",String(t.weights.keyword)),(null==t||null==(o=t.weights)?void 0:o.vector)!=null&&c.set("vectorWeight",String(t.weights.vector)),(null==t||null==(s=t.weights)?void 0:s.rewrite)!=null&&c.set("rewriteWeight",String(t.weights.rewrite)),(null==t||null==(a=t.weights)?void 0:a.hybridBonus)!=null&&c.set("hybridBonus",String(t.weights.hybridBonus)),r("/api/kb/search?".concat(c))}async function j(){return r("/api/prompt")}async function b(){return r("/api/documents/templates")}async function w(e){return r("/api/documents/templates",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function A(e){return r("/api/documents/templates?templateId=".concat(encodeURIComponent(e)),{method:"DELETE"})}async function O(e){return r("/api/documents/templates",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({templateId:e})})}async function S(e){return r("/api/documents/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function T(e){return r("/api/documents/chapter/regenerate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function k(){return r("/api/documents/drafts")}async function C(e,t){return r("/api/documents/drafts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({draft:e,id:t})})}async function P(e){let t=await fetch("/api/documents/export",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw Error(await t.text());return t.blob()}async function E(){return r("/api/config/providers")}async function N(e,t){return r("/api/config/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,...t})})}async function z(e){return r("/api/config/providers/".concat(encodeURIComponent(e)),{method:"DELETE"})}async function R(){return r("/api/config/models")}async function L(e){return r("/api/config/models",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function J(){return r("/api/config/embedding")}async function U(e){return r("/api/config/embedding",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function M(){return r("/api/config/embedding/healthCheck",{method:"POST"})}async function D(e){return r("/api/config/healthCheck",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:e})})}async function H(){return r("/api/system/stats")}async function B(e,t){let n=t?"?type=".concat(e,"&search=").concat(encodeURIComponent(t)):"?type=".concat(e);return r("/api/context".concat(n))}async function I(e){return r("/api/context?type=".concat(e,"&stats=1"))}async function _(e){return r("/api/context",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"compress",type:e})})}async function F(e){return r("/api/context",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"clear",type:e})})}async function V(e){return r("/api/context?id=".concat(encodeURIComponent(e)),{method:"DELETE"})}async function W(e,t){return r("/api/context",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,...t})})}async function q(e){return r("/api/config/providers/".concat(encodeURIComponent(e)))}n.d(t,{Af:()=>C,Bh:()=>q,Dl:()=>b,E:()=>F,FC:()=>H,H1:()=>v,H7:()=>h,HC:()=>i,HT:()=>s,II:()=>J,OX:()=>S,PH:()=>_,QT:()=>u,Qx:()=>p,R1:()=>T,SJ:()=>f,UE:()=>P,VW:()=>g,W2:()=>x,X8:()=>m,Z3:()=>E,_m:()=>N,aP:()=>L,bV:()=>O,bZ:()=>D,c1:()=>d,dd:()=>U,dx:()=>j,h0:()=>A,h1:()=>z,hc:()=>o,hn:()=>B,l2:()=>w,p:()=>I,q7:()=>k,tn:()=>c,u6:()=>M,xC:()=>a,xq:()=>y,xw:()=>V,zo:()=>W,zr:()=>R})},8200:(e,t)=>{"use strict";t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z"}},{tag:"path",attrs:{d:"M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z"}},{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}}]},name:"cloud-server",theme:"outlined"}},8847:(e,t)=>{"use strict";t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"}},9071:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7109),o=n(8847),s=n(8483);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let i=r.forwardRef((e,t)=>r.createElement(s.A,a({},e,{ref:t,icon:o.A})))}},e=>{e.O(0,[260,544,227,15,958,636,593,792],()=>e(e.s=3139)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- self.__BUILD_MANIFEST=function(s,e,t,c,a,n,d,i,b,f,k,r,o,u,h,g,l,j,m,p,_){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:g,bitArray:[]},__routerFilterDynamic:{numItems:k,errorRate:1e-4,numBits:k,numHashes:g,bitArray:[]},"/":["static/chunks/pages/index-505bd438c95ec0e8.js"],"/_error":["static/chunks/pages/_error-18decb9cd478883d.js"],"/context/long-term":[s,e,t,c,a,n,d,i,b,f,r,l,"static/chunks/pages/context/long-term-60c9b8da1fd821a9.js"],"/context/short-term":[s,e,t,c,a,n,d,i,b,f,r,l,"static/chunks/pages/context/short-term-1067b9478401973f.js"],"/documents":[s,e,t,c,a,n,d,f,r,o,"static/chunks/883-76858084c93bf1c6.js","static/chunks/pages/documents-a5a4df40a6ff152d.js"],"/knowledge":["static/chunks/pages/knowledge-81fd1e907a6fcb84.js"],"/knowledge/file-detail":[s,e,t,c,a,n,d,i,b,o,j,"static/chunks/517-c6a8c0e680dafa46.js",u,"static/chunks/pages/knowledge/file-detail-761346f946ea02fd.js"],"/knowledge/files":[s,e,t,c,a,n,d,i,b,m,u,"static/chunks/pages/knowledge/files-28f36c822a6efa78.js"],"/knowledge/manage":[s,e,t,a,n,d,i,b,p,"static/chunks/891-ff3efd43c148bd2c.js","static/chunks/pages/knowledge/manage-3703b1829d1901da.js"],"/knowledge/search":[s,e,t,c,a,o,_,j,u,"static/chunks/pages/knowledge/search-03f3c606937fd44e.js"],"/models":[s,e,t,c,n,f,r,_,"static/css/0e153583d22cc52e.css","static/chunks/pages/models-0a223f1f7c826b49.js"],"/overview":[s,e,a,m,p,"static/chunks/pages/overview-6088b235c99ccb83.js"],"/prompt":[s,e,t,c,i,f,"static/chunks/pages/prompt-80e3d275c7f9d63b.js"],"/settings":[s,"static/css/82b6ddff0ef364fe.css","static/chunks/pages/settings-daf6d46ceb1dbd41.js"],sortedPages:["/","/_app","/_error","/context/long-term","/context/short-term","/documents","/knowledge","/knowledge/file-detail","/knowledge/files","/knowledge/manage","/knowledge/search","/models","/overview","/prompt","/settings"]}}("static/chunks/260-b4f5be8cad9d5eb8.js","static/chunks/544-b1e7fb125bd5ba92.js","static/chunks/425-fe4960449c1faceb.js","static/chunks/668-ff3d8f8bff59e606.js","static/chunks/227-5d0e79ce4e00983e.js","static/chunks/740-2d2619c22f2573ad.js","static/chunks/174-002febc1c103bc03.js","static/chunks/446-c2604ca982998533.js","static/chunks/400-f85b695e54242828.js","static/chunks/492-764fcf49f0c198bc.js",0,"static/chunks/455-3fed2dde34ca1eef.js","static/chunks/292-a1cc113f5092109b.js","static/css/d284a7454d6f6b06.css",1e-4,NaN,"static/chunks/257-43a44acbd7b6e330.js","static/chunks/969-7ca2307001c18a53.js","static/chunks/15-c0cd098235feea60.js","static/chunks/958-ed6bd7651b040ee8.js","static/chunks/992-52509d4b96af607f.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();