@customize-agent/server 4.0.30 → 4.0.32

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 (90) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +33 -45
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/routes-manifest.json +0 -6
  5. package/.next/server/chunks/1928.js +1 -1
  6. package/.next/server/chunks/1936.js +1 -1
  7. package/.next/server/chunks/3298.js +101 -0
  8. package/.next/server/chunks/8204.js +1 -1
  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/assets/generated/preview.js +1 -1
  13. package/.next/server/pages/api/assets/generated/preview.js.nft.json +1 -1
  14. package/.next/server/pages/api/assets/generated.js +1 -1
  15. package/.next/server/pages/api/assets/generated.js.nft.json +1 -1
  16. package/.next/server/pages/api/documents/chapter/regenerate.js +1 -1
  17. package/.next/server/pages/api/documents/chapter/regenerate.js.nft.json +1 -1
  18. package/.next/server/pages/api/documents/export.js +1 -1
  19. package/.next/server/pages/api/documents/export.js.nft.json +1 -1
  20. package/.next/server/pages/api/documents/generate.js +2 -2
  21. package/.next/server/pages/api/documents/generate.js.nft.json +1 -1
  22. package/.next/server/pages/api/documents/generated/[id].js +1 -1
  23. package/.next/server/pages/api/documents/generated/[id].js.nft.json +1 -1
  24. package/.next/server/pages/api/documents/generated.js +1 -1
  25. package/.next/server/pages/api/documents/generated.js.nft.json +1 -1
  26. package/.next/server/pages/api/documents/roles.js +1 -1
  27. package/.next/server/pages/api/documents/templates.js +1 -1
  28. package/.next/server/pages/api/documents/templates.js.nft.json +1 -1
  29. package/.next/server/pages/api/kb/files.js +1 -1
  30. package/.next/server/pages/api/prompt.js +1 -1
  31. package/.next/server/pages/asset-library.html +1 -1
  32. package/.next/server/pages/context/long-term.html +1 -1
  33. package/.next/server/pages/context/short-term.html +1 -1
  34. package/.next/server/pages/document-roles.html +1 -1
  35. package/.next/server/pages/documents.html +1 -1
  36. package/.next/server/pages/guide.html +1 -1
  37. package/.next/server/pages/index.html +1 -1
  38. package/.next/server/pages/knowledge/file-detail.html +1 -1
  39. package/.next/server/pages/knowledge/files.html +1 -1
  40. package/.next/server/pages/knowledge/manage.html +1 -1
  41. package/.next/server/pages/knowledge/search.html +1 -1
  42. package/.next/server/pages/knowledge.html +1 -1
  43. package/.next/server/pages/models.html +1 -1
  44. package/.next/server/pages/overview.html +1 -1
  45. package/.next/server/pages/prompt.html +1 -1
  46. package/.next/server/pages/settings.html +1 -1
  47. package/.next/server/pages/system/logs.html +1 -1
  48. package/.next/server/pages-manifest.json +29 -31
  49. package/.next/static/M3RTsFPBW6tg_7bJE5A2X/_buildManifest.js +1 -0
  50. package/.next/static/chunks/289-30e7c55f49a896b7.js +38 -0
  51. package/.next/static/chunks/455-97ad88d6604f54b7.js +6 -0
  52. package/.next/static/chunks/53-d534407b1397d66a.js +1 -0
  53. package/.next/static/chunks/647-d5e08fda405f7059.js +1 -0
  54. package/.next/static/chunks/694-2d545cfbb9779f2c.js +1 -0
  55. package/.next/static/chunks/795-d8fb7a0420512701.js +1 -0
  56. package/.next/static/chunks/861-91cbdd34b8e23151.js +1 -0
  57. package/.next/static/chunks/909-27ada1f00a52e11d.js +1 -0
  58. package/.next/static/chunks/pages/{_app-8abe93a007ab30a7.js → _app-2df1181f6609ae11.js} +2 -2
  59. package/.next/static/chunks/pages/context/{long-term-2e6a30a8f879df47.js → long-term-6b9a9683a4d6ea86.js} +1 -1
  60. package/.next/static/chunks/pages/context/{short-term-730211234fa3add6.js → short-term-6078efae6e3a905c.js} +1 -1
  61. package/.next/static/chunks/pages/{document-roles-4293f5fae599ff83.js → document-roles-24e4ba16d654959d.js} +1 -1
  62. package/.next/static/chunks/pages/documents-fc1a4fdb681f49a2.js +1 -0
  63. package/.next/static/chunks/pages/guide-7d15d3d3ddb0205e.js +1 -0
  64. package/.next/static/chunks/pages/{index-591c5acdff8d0690.js → index-a2a24e9602e7ea52.js} +1 -1
  65. package/.next/static/chunks/pages/knowledge/{file-detail-0a5e267f77f4e8b3.js → file-detail-97c77dfaf472a4b6.js} +1 -1
  66. package/.next/static/chunks/pages/knowledge/files-75a33100a1b3b5b5.js +1 -0
  67. package/.next/static/chunks/pages/models-d5e80645dc4a61b1.js +1 -0
  68. package/.next/static/chunks/pages/{overview-8d8ba5a1c0aa39ea.js → overview-1260176045ed5f7a.js} +1 -1
  69. package/.next/static/chunks/pages/system/{logs-f4e222140dc7b30c.js → logs-3826fa44a76b12fc.js} +1 -1
  70. package/package.json +1 -1
  71. package/.next/server/chunks/3445.js +0 -76
  72. package/.next/server/pages/api/documents/specs.js +0 -1
  73. package/.next/server/pages/api/documents/specs.js.nft.json +0 -1
  74. package/.next/server/pages/document-specs.html +0 -1
  75. package/.next/server/pages/document-specs.js.nft.json +0 -1
  76. package/.next/static/chunks/130-c1e5c14958fcba2b.js +0 -1
  77. package/.next/static/chunks/131-e2f0164f12b82496.js +0 -1
  78. package/.next/static/chunks/265-32ec272a49cfacef.js +0 -1
  79. package/.next/static/chunks/289-6bf8af72114aefd5.js +0 -38
  80. package/.next/static/chunks/455-e04e99d9e242de44.js +0 -6
  81. package/.next/static/chunks/512-12bd409cebeca05b.js +0 -1
  82. package/.next/static/chunks/698-5f16390243596219.js +0 -1
  83. package/.next/static/chunks/795-67a87e03d67ed908.js +0 -1
  84. package/.next/static/chunks/pages/document-specs-0fa19a0e348efc80.js +0 -1
  85. package/.next/static/chunks/pages/documents-3b87f1bf389b2f18.js +0 -1
  86. package/.next/static/chunks/pages/guide-74f0f7f42bc211b0.js +0 -1
  87. package/.next/static/chunks/pages/knowledge/files-4b0132dd66e57085.js +0 -1
  88. package/.next/static/chunks/pages/models-b5f68c4c70257495.js +0 -1
  89. package/.next/static/dq39asOIM1hVN5SMdBZn3/_buildManifest.js +0 -1
  90. /package/.next/static/{dq39asOIM1hVN5SMdBZn3 → M3RTsFPBW6tg_7bJE5A2X}/_ssgManifest.js +0 -0
package/.next/BUILD_ID CHANGED
@@ -1 +1 @@
1
- dq39asOIM1hVN5SMdBZn3
1
+ M3RTsFPBW6tg_7bJE5A2X
@@ -5,8 +5,8 @@
5
5
  "devFiles": [],
6
6
  "ampDevFiles": [],
7
7
  "lowPriorityFiles": [
8
- "static/dq39asOIM1hVN5SMdBZn3/_buildManifest.js",
9
- "static/dq39asOIM1hVN5SMdBZn3/_ssgManifest.js"
8
+ "static/M3RTsFPBW6tg_7bJE5A2X/_buildManifest.js",
9
+ "static/M3RTsFPBW6tg_7bJE5A2X/_ssgManifest.js"
10
10
  ],
11
11
  "rootMainFiles": [],
12
12
  "rootMainFilesTree": {},
@@ -17,16 +17,16 @@
17
17
  "static/chunks/main-91fb767ebd74c9c1.js",
18
18
  "static/chunks/433-233659be69169c19.js",
19
19
  "static/chunks/787-c18af810af3433f6.js",
20
- "static/chunks/131-e2f0164f12b82496.js",
21
- "static/chunks/795-67a87e03d67ed908.js",
22
- "static/chunks/pages/index-591c5acdff8d0690.js"
20
+ "static/chunks/694-2d545cfbb9779f2c.js",
21
+ "static/chunks/795-d8fb7a0420512701.js",
22
+ "static/chunks/pages/index-a2a24e9602e7ea52.js"
23
23
  ],
24
24
  "/_app": [
25
25
  "static/chunks/webpack-77d10b4726f13aa5.js",
26
26
  "static/chunks/framework-161be364fd69a7ce.js",
27
27
  "static/chunks/main-91fb767ebd74c9c1.js",
28
28
  "static/css/38dba0a7a42a8df3.css",
29
- "static/chunks/pages/_app-8abe93a007ab30a7.js"
29
+ "static/chunks/pages/_app-2df1181f6609ae11.js"
30
30
  ],
31
31
  "/_error": [
32
32
  "static/chunks/webpack-77d10b4726f13aa5.js",
@@ -54,10 +54,10 @@
54
54
  "static/chunks/195-2c0168eacab722d2.js",
55
55
  "static/chunks/985-4b4a3ed36ada16eb.js",
56
56
  "static/chunks/150-134099bf526e9292.js",
57
- "static/chunks/455-e04e99d9e242de44.js",
58
- "static/chunks/289-6bf8af72114aefd5.js",
57
+ "static/chunks/289-30e7c55f49a896b7.js",
58
+ "static/chunks/455-97ad88d6604f54b7.js",
59
59
  "static/chunks/932-2f195f4200ce9378.js",
60
- "static/chunks/pages/context/long-term-2e6a30a8f879df47.js"
60
+ "static/chunks/pages/context/long-term-6b9a9683a4d6ea86.js"
61
61
  ],
62
62
  "/context/short-term": [
63
63
  "static/chunks/webpack-77d10b4726f13aa5.js",
@@ -69,10 +69,10 @@
69
69
  "static/chunks/195-2c0168eacab722d2.js",
70
70
  "static/chunks/985-4b4a3ed36ada16eb.js",
71
71
  "static/chunks/150-134099bf526e9292.js",
72
- "static/chunks/455-e04e99d9e242de44.js",
73
- "static/chunks/289-6bf8af72114aefd5.js",
72
+ "static/chunks/289-30e7c55f49a896b7.js",
73
+ "static/chunks/455-97ad88d6604f54b7.js",
74
74
  "static/chunks/932-2f195f4200ce9378.js",
75
- "static/chunks/pages/context/short-term-730211234fa3add6.js"
75
+ "static/chunks/pages/context/short-term-6078efae6e3a905c.js"
76
76
  ],
77
77
  "/document-roles": [
78
78
  "static/chunks/webpack-77d10b4726f13aa5.js",
@@ -82,22 +82,9 @@
82
82
  "static/chunks/787-c18af810af3433f6.js",
83
83
  "static/chunks/576-6699fed6c88502fe.js",
84
84
  "static/chunks/195-2c0168eacab722d2.js",
85
- "static/chunks/455-e04e99d9e242de44.js",
86
- "static/chunks/698-5f16390243596219.js",
87
- "static/chunks/pages/document-roles-4293f5fae599ff83.js"
88
- ],
89
- "/document-specs": [
90
- "static/chunks/webpack-77d10b4726f13aa5.js",
91
- "static/chunks/framework-161be364fd69a7ce.js",
92
- "static/chunks/main-91fb767ebd74c9c1.js",
93
- "static/chunks/433-233659be69169c19.js",
94
- "static/chunks/787-c18af810af3433f6.js",
95
- "static/chunks/576-6699fed6c88502fe.js",
96
- "static/chunks/195-2c0168eacab722d2.js",
97
- "static/chunks/455-e04e99d9e242de44.js",
98
- "static/chunks/938-45efd516bb130bd5.js",
99
- "static/chunks/265-32ec272a49cfacef.js",
100
- "static/chunks/pages/document-specs-0fa19a0e348efc80.js"
85
+ "static/chunks/455-97ad88d6604f54b7.js",
86
+ "static/chunks/909-27ada1f00a52e11d.js",
87
+ "static/chunks/pages/document-roles-24e4ba16d654959d.js"
101
88
  ],
102
89
  "/documents": [
103
90
  "static/chunks/webpack-77d10b4726f13aa5.js",
@@ -107,11 +94,11 @@
107
94
  "static/chunks/787-c18af810af3433f6.js",
108
95
  "static/chunks/576-6699fed6c88502fe.js",
109
96
  "static/chunks/195-2c0168eacab722d2.js",
110
- "static/chunks/455-e04e99d9e242de44.js",
97
+ "static/chunks/455-97ad88d6604f54b7.js",
111
98
  "static/chunks/506-93f730bc149d0dce.js",
112
99
  "static/chunks/412-b9c854c6a76db67d.js",
113
- "static/chunks/130-c1e5c14958fcba2b.js",
114
- "static/chunks/pages/documents-3b87f1bf389b2f18.js"
100
+ "static/chunks/53-d534407b1397d66a.js",
101
+ "static/chunks/pages/documents-fc1a4fdb681f49a2.js"
115
102
  ],
116
103
  "/guide": [
117
104
  "static/chunks/webpack-77d10b4726f13aa5.js",
@@ -121,7 +108,7 @@
121
108
  "static/chunks/787-c18af810af3433f6.js",
122
109
  "static/chunks/412-b9c854c6a76db67d.js",
123
110
  "static/chunks/20-00147a779147a5a4.js",
124
- "static/chunks/pages/guide-74f0f7f42bc211b0.js"
111
+ "static/chunks/pages/guide-7d15d3d3ddb0205e.js"
125
112
  ],
126
113
  "/knowledge": [
127
114
  "static/chunks/webpack-77d10b4726f13aa5.js",
@@ -138,11 +125,11 @@
138
125
  "static/chunks/576-6699fed6c88502fe.js",
139
126
  "static/chunks/985-4b4a3ed36ada16eb.js",
140
127
  "static/chunks/150-134099bf526e9292.js",
141
- "static/chunks/289-6bf8af72114aefd5.js",
128
+ "static/chunks/289-30e7c55f49a896b7.js",
142
129
  "static/chunks/506-93f730bc149d0dce.js",
143
- "static/chunks/512-12bd409cebeca05b.js",
130
+ "static/chunks/861-91cbdd34b8e23151.js",
144
131
  "static/css/09be1fdeab8595ab.css",
145
- "static/chunks/pages/knowledge/file-detail-0a5e267f77f4e8b3.js"
132
+ "static/chunks/pages/knowledge/file-detail-97c77dfaf472a4b6.js"
146
133
  ],
147
134
  "/knowledge/files": [
148
135
  "static/chunks/webpack-77d10b4726f13aa5.js",
@@ -153,9 +140,9 @@
153
140
  "static/chunks/576-6699fed6c88502fe.js",
154
141
  "static/chunks/985-4b4a3ed36ada16eb.js",
155
142
  "static/chunks/150-134099bf526e9292.js",
156
- "static/chunks/289-6bf8af72114aefd5.js",
143
+ "static/chunks/289-30e7c55f49a896b7.js",
157
144
  "static/css/09be1fdeab8595ab.css",
158
- "static/chunks/pages/knowledge/files-4b0132dd66e57085.js"
145
+ "static/chunks/pages/knowledge/files-75a33100a1b3b5b5.js"
159
146
  ],
160
147
  "/knowledge/manage": [
161
148
  "static/chunks/webpack-77d10b4726f13aa5.js",
@@ -188,9 +175,10 @@
188
175
  "static/chunks/576-6699fed6c88502fe.js",
189
176
  "static/chunks/195-2c0168eacab722d2.js",
190
177
  "static/chunks/985-4b4a3ed36ada16eb.js",
191
- "static/chunks/455-e04e99d9e242de44.js",
178
+ "static/chunks/455-97ad88d6604f54b7.js",
192
179
  "static/chunks/938-45efd516bb130bd5.js",
193
- "static/chunks/pages/models-b5f68c4c70257495.js"
180
+ "static/chunks/647-d5e08fda405f7059.js",
181
+ "static/chunks/pages/models-d5e80645dc4a61b1.js"
194
182
  ],
195
183
  "/overview": [
196
184
  "static/chunks/webpack-77d10b4726f13aa5.js",
@@ -198,9 +186,9 @@
198
186
  "static/chunks/main-91fb767ebd74c9c1.js",
199
187
  "static/chunks/433-233659be69169c19.js",
200
188
  "static/chunks/787-c18af810af3433f6.js",
201
- "static/chunks/131-e2f0164f12b82496.js",
202
- "static/chunks/795-67a87e03d67ed908.js",
203
- "static/chunks/pages/overview-8d8ba5a1c0aa39ea.js"
189
+ "static/chunks/694-2d545cfbb9779f2c.js",
190
+ "static/chunks/795-d8fb7a0420512701.js",
191
+ "static/chunks/pages/overview-1260176045ed5f7a.js"
204
192
  ],
205
193
  "/prompt": [
206
194
  "static/chunks/webpack-77d10b4726f13aa5.js",
@@ -231,9 +219,9 @@
231
219
  "static/chunks/195-2c0168eacab722d2.js",
232
220
  "static/chunks/985-4b4a3ed36ada16eb.js",
233
221
  "static/chunks/150-134099bf526e9292.js",
234
- "static/chunks/289-6bf8af72114aefd5.js",
235
- "static/chunks/512-12bd409cebeca05b.js",
236
- "static/chunks/pages/system/logs-f4e222140dc7b30c.js"
222
+ "static/chunks/289-30e7c55f49a896b7.js",
223
+ "static/chunks/861-91cbdd34b8e23151.js",
224
+ "static/chunks/pages/system/logs-3826fa44a76b12fc.js"
237
225
  ]
238
226
  },
239
227
  "ampFirstPages": []
@@ -3,9 +3,9 @@
3
3
  "routes": {},
4
4
  "dynamicRoutes": {},
5
5
  "preview": {
6
- "previewModeId": "4d2b4df4a1b520c8ea502d29f1dec664",
7
- "previewModeSigningKey": "e08d9ec8d28d89947f412cffa6398184a34b27ecb68873e40b055055df32aff2",
8
- "previewModeEncryptionKey": "b9b3d7d29be86156cbe1c1e5ff4e63c6db01169067287aeee9e376b14f23e107"
6
+ "previewModeId": "23431d82ca68dd00146b5f5bf50818e5",
7
+ "previewModeSigningKey": "24b1bd16b9d5e5dfdf073b63c0d86a1eb1c7cf3da6a2f8cbc34292951528d79f",
8
+ "previewModeEncryptionKey": "70b3ac4e9380b6985cfdf7d02bf58372a08ff8ffe4d1c270a44088e8e927d144"
9
9
  },
10
10
  "notFoundRoutes": []
11
11
  }
@@ -86,12 +86,6 @@
86
86
  "routeKeys": {},
87
87
  "namedRegex": "^/document\\-roles(?:/)?$"
88
88
  },
89
- {
90
- "page": "/document-specs",
91
- "regex": "^/document\\-specs(?:/)?$",
92
- "routeKeys": {},
93
- "namedRegex": "^/document\\-specs(?:/)?$"
94
- },
95
89
  {
96
90
  "page": "/documents",
97
91
  "regex": "^/documents(?:/)?$",
@@ -1 +1 @@
1
- "use strict";exports.id=1928,exports.ids=[1928],exports.modules={61928:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{default:()=>l});var e=c(8732),f=c(82015),g=c(94487),h=c(60056),i=c(79270),j=c(22147),k=a([g]);function l(){let a=(0,g.Vr)(),[b,c]=(0,f.useState)(null),[d,k]=(0,f.useState)(!0),[l,m]=(0,f.useState)(0),[n,o]=(0,f.useState)(0),[p,q]=(0,f.useState)(0),[r,s]=(0,f.useState)(0),[t,u]=(0,f.useState)(0),[v,w]=(0,f.useState)(null),x=(0,f.useCallback)(async()=>{k(!0);try{let[a,b,d,e,f,g]=await Promise.all([(0,j.FC)(),(0,j.Z3)().catch(()=>[]),(0,j.lv)().catch(()=>({roles:[],configs:[]})),(0,j.mx)().catch(()=>({specs:[]})),(0,j.Dl)().catch(()=>({templates:[]})),(0,j.II)().catch(()=>null)]);c(a),m(Array.isArray(b)?b.length:0);let h=Array.isArray(d.roles)?d.roles:[];o(h.filter(a=>"file"===a.type).length),q(h.filter(a=>"prompt"===a.type).length),s(Array.isArray(e.specs)?e.specs.length:0),u(Array.isArray(f.templates)?f.templates.length:0),w(g)}catch{}finally{k(!1)}},[]),y=(b?.cpu.usagePercent??0)>80?"var(--colorDanger)":(b?.cpu.usagePercent??0)>50?"var(--colorWarning)":"var(--colorOk)",z=(b?.memory.usagePercent??0)>80?"var(--colorDanger)":(b?.memory.usagePercent??0)>50?"var(--colorWarning)":"var(--colorOk)",A=b?.tasks.total?Math.round(b.tasks.success/b.tasks.total*100):0,B=b?.models?.[0],C=b?.logs.latestAt?new Date(b.logs.latestAt).toLocaleString():"暂无日志";return(0,e.jsxs)("div",{className:"space-y-6 animateFadeIn",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h1",{className:"pageTitle",children:a("overview.title")}),(0,e.jsx)("p",{className:"pageDesc",children:a("overview.description")})]}),(0,e.jsxs)(h.$x,{children:[(0,e.jsxs)("span",{style:{color:"var(--colorTextSecondary)",fontSize:12},children:["统计更新:",C]}),(0,e.jsx)(h.$n,{icon:(0,e.jsx)(i.ReloadOutlined,{spin:d}),loading:d,onClick:()=>{x()},children:a("common.retry")})]})]}),(0,e.jsxs)(h.fI,{gutter:[16,16],children:[(0,e.jsx)(h.fv,{xs:24,sm:12,children:(0,e.jsx)(h.Zp,{size:"small",title:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.CloudServerOutlined,{})," CPU"]}),children:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsx)(h.ke,{type:"circle",percent:b?.cpu.usagePercent??0,size:120,strokeColor:y,format:a=>`${a?.toFixed(1)}%`}),(0,e.jsxs)("div",{className:"text-xs mt-2",style:{color:"var(--colorTextSecondary)"},children:[b?.cpu.cores??0," ",a("overview.cores")]})]})})}),(0,e.jsx)(h.fv,{xs:24,sm:12,children:(0,e.jsx)(h.Zp,{size:"small",title:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.HddOutlined,{})," ",a("overview.memory")]}),children:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsx)(h.ke,{type:"circle",percent:b?.memory.usagePercent??0,size:120,strokeColor:z,format:a=>`${a}%`}),(0,e.jsxs)("div",{className:"text-xs mt-2",style:{color:"var(--colorTextSecondary)"},children:[b?.memory.processMB??0," MB / ",b?.memory.totalMB??0," MB"]})]})})})]}),(0,e.jsxs)(h.fI,{gutter:[16,16],children:[(0,e.jsx)(h.fv,{xs:12,sm:6,children:(0,e.jsx)(h.Zp,{size:"small",children:(0,e.jsx)(h.jL,{title:"运行时间",value:b?Math.floor(b.uptime/3600):0,suffix:"小时",prefix:(0,e.jsx)(i.ApiOutlined,{})})})}),(0,e.jsx)(h.fv,{xs:12,sm:6,children:(0,e.jsxs)(h.Zp,{size:"small",children:[(0,e.jsx)(h.jL,{title:a("overview.tokensUsed"),value:b?.tokens.total??0,prefix:(0,e.jsx)(i.ThunderboltOutlined,{})}),(0,e.jsxs)("div",{style:{color:"var(--colorTextSecondary)",fontSize:12},children:["Prompt ",b?.tokens.prompt??0," / Completion ",b?.tokens.completion??0]})]})}),(0,e.jsx)(h.fv,{xs:12,sm:6,children:(0,e.jsxs)(h.Zp,{size:"small",children:[(0,e.jsx)(h.jL,{title:a("overview.tasksTotal"),value:b?.tasks.total??0,prefix:(0,e.jsx)(i.FileTextOutlined,{})}),(0,e.jsxs)("div",{style:{color:"var(--colorTextSecondary)",fontSize:12},children:["成功 ",b?.tasks.success??0," / 失败 ",b?.tasks.failed??0," / 运行中 ",b?.tasks.running??0]})]})}),(0,e.jsx)(h.fv,{xs:12,sm:6,children:(0,e.jsx)(h.Zp,{size:"small",children:(0,e.jsx)(h.jL,{title:a("overview.successRate"),value:A,suffix:"%",prefix:A>80?(0,e.jsx)(i.CheckCircleOutlined,{style:{color:"var(--colorOk)"}}):(0,e.jsx)(i.CloseCircleOutlined,{style:{color:"var(--colorDanger)"}})})})})]}),(0,e.jsx)(h.Zp,{size:"small",title:"资源概览",children:(0,e.jsxs)(h.fI,{gutter:[16,16],children:[(0,e.jsx)(h.fv,{xs:24,sm:12,md:8,lg:4,children:(0,e.jsx)(h.Zp,{size:"small",style:{height:"100%"},children:(0,e.jsx)(h.jL,{title:"文件角色",value:n,prefix:(0,e.jsx)(i.FileTextOutlined,{style:{color:"var(--colorAccent)"}})})})}),(0,e.jsx)(h.fv,{xs:24,sm:12,md:8,lg:4,children:(0,e.jsx)(h.Zp,{size:"small",style:{height:"100%"},children:(0,e.jsx)(h.jL,{title:"提示词角色",value:p,prefix:(0,e.jsx)(i.FormOutlined,{style:{color:"var(--colorWarning)"}})})})}),(0,e.jsx)(h.fv,{xs:24,sm:12,md:8,lg:4,children:(0,e.jsx)(h.Zp,{size:"small",style:{height:"100%"},children:(0,e.jsx)(h.jL,{title:"文档规范包",value:r,prefix:(0,e.jsx)(i.SafetyOutlined,{style:{color:"var(--colorOk)"}})})})}),(0,e.jsx)(h.fv,{xs:24,sm:12,md:8,lg:4,children:(0,e.jsx)(h.Zp,{size:"small",style:{height:"100%"},children:(0,e.jsx)(h.jL,{title:"模板",value:t,prefix:(0,e.jsx)(i.LayoutOutlined,{style:{color:"var(--colorDanger)"}})})})}),(0,e.jsx)(h.fv,{xs:24,sm:12,md:8,lg:4,children:(0,e.jsxs)(h.Zp,{size:"small",style:{height:"100%",overflow:"hidden"},children:[(0,e.jsx)(h.jL,{title:"语义模型",value:v?.provider==="openai-compatible"?"外部 Embedding":v?"本地语义模型":"—",prefix:(0,e.jsx)(i.NodeIndexOutlined,{style:{color:"var(--colorAccent)"}}),valueStyle:{fontSize:18,whiteSpace:"nowrap"}}),v?.model&&(0,e.jsxs)("div",{className:"text-xs mt-1",style:{color:"var(--colorTextSecondary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:`${v.model}${v.dimensions?` \xb7 ${v.dimensions}维`:""}`,children:[v.model,v.dimensions?` \xb7 ${v.dimensions}维`:""]})]})}),(0,e.jsx)(h.fv,{xs:24,sm:12,md:8,lg:4,children:(0,e.jsx)(h.Zp,{size:"small",style:{height:"100%"},children:(0,e.jsx)(h.jL,{title:"模型供应商",value:l,prefix:(0,e.jsx)(i.RobotOutlined,{style:{color:"var(--colorAccent)"}})})})}),(0,e.jsx)(h.fv,{xs:24,sm:12,md:8,lg:4,children:(0,e.jsx)(h.Zp,{size:"small",style:{height:"100%"},children:(0,e.jsx)(h.jL,{title:"审计日志",value:b?.logs.events??0,suffix:"条",prefix:(0,e.jsx)(i.ApiOutlined,{style:{color:"var(--colorOk)"}})})})})]})}),(0,e.jsxs)(h.fI,{gutter:[16,16],children:[(0,e.jsx)(h.fv,{xs:24,sm:12,children:(0,e.jsx)(h.Zp,{size:"small",title:a("overview.topModel"),style:{height:"100%"},children:B?(0,e.jsxs)("div",{className:"flex items-center gap-4",children:[(0,e.jsx)(i.ApiOutlined,{style:{fontSize:24,color:"var(--colorAccent)"}}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"font-semibold",children:B.model}),(0,e.jsxs)("div",{style:{color:"var(--colorTextSecondary)",fontSize:12},children:["@",B.provider," — ",B.count," ",a("overview.calls")]})]})]}):(0,e.jsx)("span",{style:{color:"var(--colorTextSecondary)"},children:"暂无真实模型调用日志"})})}),(0,e.jsx)(h.fv,{xs:24,sm:12,children:(0,e.jsx)(h.Zp,{size:"small",title:a("overview.taskTypes"),style:{height:"100%"},children:b?.tasks.types&&Object.keys(b.tasks.types).length>0?(0,e.jsx)(h.$x,{wrap:!0,children:Object.entries(b.tasks.types).sort((a,b)=>b[1]-a[1]).map(([a,b])=>(0,e.jsxs)(h.vw,{children:[a.slice(0,30),": ",b]},a))}):(0,e.jsx)("span",{style:{color:"var(--colorTextSecondary)"},children:a("common.noData")})})})]})]})}g=(k.then?(await k)():k)[0],d()}catch(a){d(a)}})}};
1
+ "use strict";exports.id=1928,exports.ids=[1928],exports.modules={61928:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{default:()=>l});var e=c(8732),f=c(82015),g=c(94487),h=c(60056),i=c(79270),j=c(22147),k=a([g]);function l(){let a=(0,g.Vr)(),[b,c]=(0,f.useState)(null),[d,k]=(0,f.useState)(!0),[l,m]=(0,f.useState)(0),[n,o]=(0,f.useState)(0),[p,q]=(0,f.useState)(0),[r,s]=(0,f.useState)(0),[t,u]=(0,f.useState)(null),v=(0,f.useCallback)(async()=>{k(!0);try{let[a,b,d,e,f]=await Promise.all([(0,j.FC)(),(0,j.Z3)().catch(()=>[]),(0,j.lv)().catch(()=>({roles:[],configs:[]})),(0,j.Dl)().catch(()=>({templates:[]})),(0,j.II)().catch(()=>null)]);c(a),m(Array.isArray(b)?b.length:0);let g=Array.isArray(d.roles)?d.roles:[];o(g.filter(a=>"file"===a.type).length),q(g.filter(a=>"prompt"===a.type).length),s(Array.isArray(e.templates)?e.templates.length:0),u(f)}catch{}finally{k(!1)}},[]),w=(b?.cpu.usagePercent??0)>80?"var(--colorDanger)":(b?.cpu.usagePercent??0)>50?"var(--colorWarning)":"var(--colorOk)",x=(b?.memory.usagePercent??0)>80?"var(--colorDanger)":(b?.memory.usagePercent??0)>50?"var(--colorWarning)":"var(--colorOk)",y=b?.tasks.total?Math.round(b.tasks.success/b.tasks.total*100):0,z=b?.models?.[0],A=b?.logs.latestAt?new Date(b.logs.latestAt).toLocaleString():"暂无日志";return(0,e.jsxs)("div",{className:"space-y-6 animateFadeIn",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h1",{className:"pageTitle",children:a("overview.title")}),(0,e.jsx)("p",{className:"pageDesc",children:a("overview.description")})]}),(0,e.jsxs)(h.$x,{children:[(0,e.jsxs)("span",{style:{color:"var(--colorTextSecondary)",fontSize:12},children:["统计更新:",A]}),(0,e.jsx)(h.$n,{icon:(0,e.jsx)(i.ReloadOutlined,{spin:d}),loading:d,onClick:()=>{v()},children:a("common.retry")})]})]}),(0,e.jsxs)(h.fI,{gutter:[16,16],children:[(0,e.jsx)(h.fv,{xs:24,sm:12,children:(0,e.jsx)(h.Zp,{size:"small",title:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.CloudServerOutlined,{})," CPU"]}),children:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsx)(h.ke,{type:"circle",percent:b?.cpu.usagePercent??0,size:120,strokeColor:w,format:a=>`${a?.toFixed(1)}%`}),(0,e.jsxs)("div",{className:"text-xs mt-2",style:{color:"var(--colorTextSecondary)"},children:[b?.cpu.cores??0," ",a("overview.cores")]})]})})}),(0,e.jsx)(h.fv,{xs:24,sm:12,children:(0,e.jsx)(h.Zp,{size:"small",title:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.HddOutlined,{})," ",a("overview.memory")]}),children:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsx)(h.ke,{type:"circle",percent:b?.memory.usagePercent??0,size:120,strokeColor:x,format:a=>`${a}%`}),(0,e.jsxs)("div",{className:"text-xs mt-2",style:{color:"var(--colorTextSecondary)"},children:[b?.memory.processMB??0," MB / ",b?.memory.totalMB??0," MB"]})]})})})]}),(0,e.jsxs)(h.fI,{gutter:[16,16],children:[(0,e.jsx)(h.fv,{xs:12,sm:6,children:(0,e.jsx)(h.Zp,{size:"small",children:(0,e.jsx)(h.jL,{title:"运行时间",value:b?Math.floor(b.uptime/3600):0,suffix:"小时",prefix:(0,e.jsx)(i.ApiOutlined,{})})})}),(0,e.jsx)(h.fv,{xs:12,sm:6,children:(0,e.jsxs)(h.Zp,{size:"small",children:[(0,e.jsx)(h.jL,{title:a("overview.tokensUsed"),value:b?.tokens.total??0,prefix:(0,e.jsx)(i.ThunderboltOutlined,{})}),(0,e.jsxs)("div",{style:{color:"var(--colorTextSecondary)",fontSize:12},children:["Prompt ",b?.tokens.prompt??0," / Completion ",b?.tokens.completion??0]})]})}),(0,e.jsx)(h.fv,{xs:12,sm:6,children:(0,e.jsxs)(h.Zp,{size:"small",children:[(0,e.jsx)(h.jL,{title:a("overview.tasksTotal"),value:b?.tasks.total??0,prefix:(0,e.jsx)(i.FileTextOutlined,{})}),(0,e.jsxs)("div",{style:{color:"var(--colorTextSecondary)",fontSize:12},children:["成功 ",b?.tasks.success??0," / 失败 ",b?.tasks.failed??0," / 运行中 ",b?.tasks.running??0]})]})}),(0,e.jsx)(h.fv,{xs:12,sm:6,children:(0,e.jsx)(h.Zp,{size:"small",children:(0,e.jsx)(h.jL,{title:a("overview.successRate"),value:y,suffix:"%",prefix:y>80?(0,e.jsx)(i.CheckCircleOutlined,{style:{color:"var(--colorOk)"}}):(0,e.jsx)(i.CloseCircleOutlined,{style:{color:"var(--colorDanger)"}})})})})]}),(0,e.jsx)(h.Zp,{size:"small",title:"资源概览",children:(0,e.jsxs)(h.fI,{gutter:[16,16],children:[(0,e.jsx)(h.fv,{xs:24,sm:12,md:8,lg:4,children:(0,e.jsx)(h.Zp,{size:"small",style:{height:"100%"},children:(0,e.jsx)(h.jL,{title:"文件角色",value:n,prefix:(0,e.jsx)(i.FileTextOutlined,{style:{color:"var(--colorAccent)"}})})})}),(0,e.jsx)(h.fv,{xs:24,sm:12,md:8,lg:4,children:(0,e.jsx)(h.Zp,{size:"small",style:{height:"100%"},children:(0,e.jsx)(h.jL,{title:"提示词角色",value:p,prefix:(0,e.jsx)(i.FormOutlined,{style:{color:"var(--colorWarning)"}})})})}),(0,e.jsx)(h.fv,{xs:24,sm:12,md:8,lg:4,children:(0,e.jsx)(h.Zp,{size:"small",style:{height:"100%"},children:(0,e.jsx)(h.jL,{title:"模板",value:r,prefix:(0,e.jsx)(i.LayoutOutlined,{style:{color:"var(--colorDanger)"}})})})}),(0,e.jsx)(h.fv,{xs:24,sm:12,md:8,lg:4,children:(0,e.jsxs)(h.Zp,{size:"small",style:{height:"100%",overflow:"hidden"},children:[(0,e.jsx)(h.jL,{title:"语义模型",value:t?.provider==="openai-compatible"?"外部 Embedding":t?"本地语义模型":"—",prefix:(0,e.jsx)(i.NodeIndexOutlined,{style:{color:"var(--colorAccent)"}}),valueStyle:{fontSize:18,whiteSpace:"nowrap"}}),t?.model&&(0,e.jsxs)("div",{className:"text-xs mt-1",style:{color:"var(--colorTextSecondary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:`${t.model}${t.dimensions?` \xb7 ${t.dimensions}维`:""}`,children:[t.model,t.dimensions?` \xb7 ${t.dimensions}维`:""]})]})}),(0,e.jsx)(h.fv,{xs:24,sm:12,md:8,lg:4,children:(0,e.jsx)(h.Zp,{size:"small",style:{height:"100%"},children:(0,e.jsx)(h.jL,{title:"模型供应商",value:l,prefix:(0,e.jsx)(i.RobotOutlined,{style:{color:"var(--colorAccent)"}})})})}),(0,e.jsx)(h.fv,{xs:24,sm:12,md:8,lg:4,children:(0,e.jsx)(h.Zp,{size:"small",style:{height:"100%"},children:(0,e.jsx)(h.jL,{title:"审计日志",value:b?.logs.events??0,suffix:"条",prefix:(0,e.jsx)(i.ApiOutlined,{style:{color:"var(--colorOk)"}})})})})]})}),(0,e.jsxs)(h.fI,{gutter:[16,16],children:[(0,e.jsx)(h.fv,{xs:24,sm:12,children:(0,e.jsx)(h.Zp,{size:"small",title:a("overview.topModel"),style:{height:"100%"},children:z?(0,e.jsxs)("div",{className:"flex items-center gap-4",children:[(0,e.jsx)(i.ApiOutlined,{style:{fontSize:24,color:"var(--colorAccent)"}}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"font-semibold",children:z.model}),(0,e.jsxs)("div",{style:{color:"var(--colorTextSecondary)",fontSize:12},children:["@",z.provider," — ",z.count," ",a("overview.calls")]})]})]}):(0,e.jsx)("span",{style:{color:"var(--colorTextSecondary)"},children:"暂无真实模型调用日志"})})}),(0,e.jsx)(h.fv,{xs:24,sm:12,children:(0,e.jsx)(h.Zp,{size:"small",title:a("overview.taskTypes"),style:{height:"100%"},children:b?.tasks.types&&Object.keys(b.tasks.types).length>0?(0,e.jsx)(h.$x,{wrap:!0,children:Object.entries(b.tasks.types).sort((a,b)=>b[1]-a[1]).map(([a,b])=>(0,e.jsxs)(h.vw,{children:[a.slice(0,30),": ",b]},a))}):(0,e.jsx)("span",{style:{color:"var(--colorTextSecondary)"},children:a("common.noData")})})})]})]})}g=(k.then?(await k)():k)[0],d()}catch(a){d(a)}})}};