@customize-agent/server 4.0.31 → 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.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +33 -45
- package/.next/prerender-manifest.json +3 -3
- package/.next/routes-manifest.json +0 -6
- package/.next/server/chunks/1928.js +1 -1
- package/.next/server/chunks/1936.js +1 -1
- package/.next/server/chunks/3298.js +101 -0
- package/.next/server/chunks/8204.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/pages/api/assets/generated/preview.js +1 -1
- package/.next/server/pages/api/assets/generated/preview.js.nft.json +1 -1
- package/.next/server/pages/api/assets/generated.js +1 -1
- package/.next/server/pages/api/assets/generated.js.nft.json +1 -1
- package/.next/server/pages/api/documents/chapter/regenerate.js +1 -1
- package/.next/server/pages/api/documents/chapter/regenerate.js.nft.json +1 -1
- package/.next/server/pages/api/documents/export.js +1 -1
- package/.next/server/pages/api/documents/export.js.nft.json +1 -1
- package/.next/server/pages/api/documents/generate.js +2 -2
- package/.next/server/pages/api/documents/generate.js.nft.json +1 -1
- package/.next/server/pages/api/documents/generated/[id].js +1 -1
- package/.next/server/pages/api/documents/generated/[id].js.nft.json +1 -1
- package/.next/server/pages/api/documents/generated.js +1 -1
- package/.next/server/pages/api/documents/generated.js.nft.json +1 -1
- package/.next/server/pages/api/documents/roles.js +1 -1
- package/.next/server/pages/api/documents/templates.js +1 -1
- package/.next/server/pages/api/documents/templates.js.nft.json +1 -1
- package/.next/server/pages/api/kb/files.js +1 -1
- package/.next/server/pages/api/prompt.js +1 -1
- package/.next/server/pages/asset-library.html +1 -1
- package/.next/server/pages/context/long-term.html +1 -1
- package/.next/server/pages/context/short-term.html +1 -1
- package/.next/server/pages/document-roles.html +1 -1
- package/.next/server/pages/documents.html +1 -1
- package/.next/server/pages/guide.html +1 -1
- package/.next/server/pages/index.html +1 -1
- package/.next/server/pages/knowledge/file-detail.html +1 -1
- package/.next/server/pages/knowledge/files.html +1 -1
- package/.next/server/pages/knowledge/manage.html +1 -1
- package/.next/server/pages/knowledge/search.html +1 -1
- package/.next/server/pages/knowledge.html +1 -1
- package/.next/server/pages/models.html +1 -1
- package/.next/server/pages/overview.html +1 -1
- package/.next/server/pages/prompt.html +1 -1
- package/.next/server/pages/settings.html +1 -1
- package/.next/server/pages/system/logs.html +1 -1
- package/.next/server/pages-manifest.json +21 -23
- package/.next/static/M3RTsFPBW6tg_7bJE5A2X/_buildManifest.js +1 -0
- package/.next/static/chunks/289-30e7c55f49a896b7.js +38 -0
- package/.next/static/chunks/455-97ad88d6604f54b7.js +6 -0
- package/.next/static/chunks/53-d534407b1397d66a.js +1 -0
- package/.next/static/chunks/647-d5e08fda405f7059.js +1 -0
- package/.next/static/chunks/694-2d545cfbb9779f2c.js +1 -0
- package/.next/static/chunks/795-d8fb7a0420512701.js +1 -0
- package/.next/static/chunks/861-91cbdd34b8e23151.js +1 -0
- package/.next/static/chunks/909-27ada1f00a52e11d.js +1 -0
- package/.next/static/chunks/pages/{_app-8abe93a007ab30a7.js → _app-2df1181f6609ae11.js} +2 -2
- package/.next/static/chunks/pages/context/{long-term-2e6a30a8f879df47.js → long-term-6b9a9683a4d6ea86.js} +1 -1
- package/.next/static/chunks/pages/context/{short-term-730211234fa3add6.js → short-term-6078efae6e3a905c.js} +1 -1
- package/.next/static/chunks/pages/{document-roles-4293f5fae599ff83.js → document-roles-24e4ba16d654959d.js} +1 -1
- package/.next/static/chunks/pages/documents-fc1a4fdb681f49a2.js +1 -0
- package/.next/static/chunks/pages/guide-7d15d3d3ddb0205e.js +1 -0
- package/.next/static/chunks/pages/{index-591c5acdff8d0690.js → index-a2a24e9602e7ea52.js} +1 -1
- package/.next/static/chunks/pages/knowledge/{file-detail-0a5e267f77f4e8b3.js → file-detail-97c77dfaf472a4b6.js} +1 -1
- package/.next/static/chunks/pages/knowledge/files-75a33100a1b3b5b5.js +1 -0
- package/.next/static/chunks/pages/models-d5e80645dc4a61b1.js +1 -0
- package/.next/static/chunks/pages/{overview-8d8ba5a1c0aa39ea.js → overview-1260176045ed5f7a.js} +1 -1
- package/.next/static/chunks/pages/system/{logs-f4e222140dc7b30c.js → logs-3826fa44a76b12fc.js} +1 -1
- package/package.json +3 -3
- package/.next/server/chunks/3445.js +0 -76
- package/.next/server/pages/api/documents/specs.js +0 -1
- package/.next/server/pages/api/documents/specs.js.nft.json +0 -1
- package/.next/server/pages/document-specs.html +0 -1
- package/.next/server/pages/document-specs.js.nft.json +0 -1
- package/.next/static/0HB7cANSrxY1wLaf736r0/_buildManifest.js +0 -1
- package/.next/static/chunks/130-c1e5c14958fcba2b.js +0 -1
- package/.next/static/chunks/131-e2f0164f12b82496.js +0 -1
- package/.next/static/chunks/265-32ec272a49cfacef.js +0 -1
- package/.next/static/chunks/289-6bf8af72114aefd5.js +0 -38
- package/.next/static/chunks/455-e04e99d9e242de44.js +0 -6
- package/.next/static/chunks/512-12bd409cebeca05b.js +0 -1
- package/.next/static/chunks/698-5f16390243596219.js +0 -1
- package/.next/static/chunks/795-67a87e03d67ed908.js +0 -1
- package/.next/static/chunks/pages/document-specs-0fa19a0e348efc80.js +0 -1
- package/.next/static/chunks/pages/documents-3b87f1bf389b2f18.js +0 -1
- package/.next/static/chunks/pages/guide-74f0f7f42bc211b0.js +0 -1
- package/.next/static/chunks/pages/knowledge/files-4b0132dd66e57085.js +0 -1
- package/.next/static/chunks/pages/models-b5f68c4c70257495.js +0 -1
- /package/.next/static/{0HB7cANSrxY1wLaf736r0 → M3RTsFPBW6tg_7bJE5A2X}/_ssgManifest.js +0 -0
package/.next/BUILD_ID
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
M3RTsFPBW6tg_7bJE5A2X
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"devFiles": [],
|
|
6
6
|
"ampDevFiles": [],
|
|
7
7
|
"lowPriorityFiles": [
|
|
8
|
-
"static/
|
|
9
|
-
"static/
|
|
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/
|
|
21
|
-
"static/chunks/795-
|
|
22
|
-
"static/chunks/pages/index-
|
|
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-
|
|
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/
|
|
58
|
-
"static/chunks/
|
|
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-
|
|
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/
|
|
73
|
-
"static/chunks/
|
|
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-
|
|
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-
|
|
86
|
-
"static/chunks/
|
|
87
|
-
"static/chunks/pages/document-roles-
|
|
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-
|
|
97
|
+
"static/chunks/455-97ad88d6604f54b7.js",
|
|
111
98
|
"static/chunks/506-93f730bc149d0dce.js",
|
|
112
99
|
"static/chunks/412-b9c854c6a76db67d.js",
|
|
113
|
-
"static/chunks/
|
|
114
|
-
"static/chunks/pages/documents-
|
|
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-
|
|
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-
|
|
128
|
+
"static/chunks/289-30e7c55f49a896b7.js",
|
|
142
129
|
"static/chunks/506-93f730bc149d0dce.js",
|
|
143
|
-
"static/chunks/
|
|
130
|
+
"static/chunks/861-91cbdd34b8e23151.js",
|
|
144
131
|
"static/css/09be1fdeab8595ab.css",
|
|
145
|
-
"static/chunks/pages/knowledge/file-detail-
|
|
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-
|
|
143
|
+
"static/chunks/289-30e7c55f49a896b7.js",
|
|
157
144
|
"static/css/09be1fdeab8595ab.css",
|
|
158
|
-
"static/chunks/pages/knowledge/files-
|
|
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-
|
|
178
|
+
"static/chunks/455-97ad88d6604f54b7.js",
|
|
192
179
|
"static/chunks/938-45efd516bb130bd5.js",
|
|
193
|
-
"static/chunks/
|
|
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/
|
|
202
|
-
"static/chunks/795-
|
|
203
|
-
"static/chunks/pages/overview-
|
|
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-
|
|
235
|
-
"static/chunks/
|
|
236
|
-
"static/chunks/pages/system/logs-
|
|
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": "
|
|
7
|
-
"previewModeSigningKey": "
|
|
8
|
-
"previewModeEncryptionKey": "
|
|
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)(
|
|
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)}})}};
|