@customize-agent/server 4.0.116 → 4.0.118

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 (72) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +65 -61
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/required-server-files.json +3 -1
  5. package/.next/server/chunks/1928.js +1 -1
  6. package/.next/server/chunks/1936.js +1 -1
  7. package/.next/server/chunks/6041.js +69 -69
  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/asset-library.html +1 -1
  13. package/.next/server/pages/document-roles.html +1 -1
  14. package/.next/server/pages/documents.html +1 -1
  15. package/.next/server/pages/guide.html +1 -1
  16. package/.next/server/pages/index.html +1 -1
  17. package/.next/server/pages/knowledge/file-detail.html +1 -1
  18. package/.next/server/pages/knowledge/files.html +1 -1
  19. package/.next/server/pages/knowledge/manage.html +1 -1
  20. package/.next/server/pages/knowledge.html +1 -1
  21. package/.next/server/pages/models.html +1 -1
  22. package/.next/server/pages/overview.html +1 -1
  23. package/.next/server/pages/prompt.html +1 -1
  24. package/.next/server/pages/settings.html +1 -1
  25. package/.next/server/pages/system/logs.html +1 -1
  26. package/.next/server/pages-manifest.json +24 -24
  27. package/.next/static/56P8i_y0wG1AJbu_xC4nI/_buildManifest.js +1 -0
  28. package/.next/static/chunks/187-358527d7061417bf.js +1 -0
  29. package/.next/static/chunks/209-5117020514c2bd0c.js +4 -0
  30. package/.next/static/chunks/230-8184e70eae35f2bb.js +1 -0
  31. package/.next/static/chunks/{945-9e9382e35f024c04.js → 238-16333381c574f65b.js} +1 -1
  32. package/.next/static/chunks/{289-39ef5df8097382b4.js → 289-35ac595388bbd018.js} +14 -14
  33. package/.next/static/chunks/455-e1b41ac4946d2b6f.js +6 -0
  34. package/.next/static/chunks/506-93f730bc149d0dce.js +1 -0
  35. package/.next/static/chunks/576-6699fed6c88502fe.js +1 -0
  36. package/.next/static/chunks/580-618d7d7e7b74daf6.js +19 -0
  37. package/.next/static/chunks/644-3299885a9dc1ef78.js +11 -0
  38. package/.next/static/chunks/649-06b72042a4de8074.js +4 -0
  39. package/.next/static/chunks/665-88e20299084b9e73.js +1 -0
  40. package/.next/static/chunks/7-20bcc985742a9ae1.js +10 -0
  41. package/.next/static/chunks/788-3afeb069ed706ac0.js +1 -0
  42. package/.next/static/chunks/pages/_app-34260fc817f32ddc.js +185 -0
  43. package/.next/static/chunks/pages/{asset-library-dc19b6ccd193de27.js → asset-library-bedc7113dfc7ad6a.js} +1 -1
  44. package/.next/static/chunks/pages/{document-roles-33e93d6bee1b0381.js → document-roles-3d8c5440cc3f15fd.js} +1 -1
  45. package/.next/static/chunks/pages/documents-fcf2ad9543097b4d.js +1 -0
  46. package/.next/static/chunks/pages/{guide-40908b2721e92d01.js → guide-9d7d88a25d972c06.js} +1 -1
  47. package/.next/static/chunks/pages/knowledge/{file-detail-58d6d3365af15b4c.js → file-detail-b9b728f62832b91c.js} +1 -1
  48. package/.next/static/chunks/pages/knowledge/{files-3bf25ca6491cebe3.js → files-cf9a04089447fcd8.js} +1 -1
  49. package/.next/static/chunks/pages/knowledge/{manage-c98ed288e65c3e84.js → manage-67b5c7fe257f37c5.js} +1 -1
  50. package/.next/static/chunks/pages/{models-4fb81218cff53e21.js → models-89f9769a32da8e5f.js} +1 -1
  51. package/.next/static/chunks/pages/{prompt-031bc6ab32830ae5.js → prompt-09514790e22505cb.js} +1 -1
  52. package/.next/static/chunks/pages/system/{logs-b073e55810452aca.js → logs-b274976ce158117c.js} +1 -1
  53. package/.next/static/css/58ab2477d4a05124.css +1 -0
  54. package/next.config.ts +0 -1
  55. package/package.json +2 -2
  56. package/scripts/verify-next-static.js +9 -5
  57. package/.next/static/SYuSSOYmrJbaCRIbjCuR_/_buildManifest.js +0 -1
  58. package/.next/static/chunks/155-2f71ef31b9336adb.js +0 -1
  59. package/.next/static/chunks/337-b06909f6d29f6d1f.js +0 -1
  60. package/.next/static/chunks/403-0469cb096084301f.js +0 -1
  61. package/.next/static/chunks/405-74ecbacd0b5a3128.js +0 -8
  62. package/.next/static/chunks/433-233659be69169c19.js +0 -1
  63. package/.next/static/chunks/455-97ad88d6604f54b7.js +0 -6
  64. package/.next/static/chunks/478-ac4777b05b3c42e8.js +0 -1
  65. package/.next/static/chunks/497-58fdc9f4b4437f94.js +0 -4
  66. package/.next/static/chunks/576-fdadae734b47b56b.js +0 -1
  67. package/.next/static/chunks/713-efe6b531f7a30a5f.js +0 -1
  68. package/.next/static/chunks/985-4b4a3ed36ada16eb.js +0 -4
  69. package/.next/static/chunks/pages/_app-35958e1c02c7aede.js +0 -212
  70. package/.next/static/chunks/pages/documents-31b36cb18b965b3b.js +0 -1
  71. package/.next/static/css/31dcc01973fbcb8a.css +0 -1
  72. /package/.next/static/{SYuSSOYmrJbaCRIbjCuR_ → 56P8i_y0wG1AJbu_xC4nI}/_ssgManifest.js +0 -0
package/.next/BUILD_ID CHANGED
@@ -1 +1 @@
1
- SYuSSOYmrJbaCRIbjCuR_
1
+ 56P8i_y0wG1AJbu_xC4nI
@@ -5,8 +5,8 @@
5
5
  "devFiles": [],
6
6
  "ampDevFiles": [],
7
7
  "lowPriorityFiles": [
8
- "static/SYuSSOYmrJbaCRIbjCuR_/_buildManifest.js",
9
- "static/SYuSSOYmrJbaCRIbjCuR_/_ssgManifest.js"
8
+ "static/56P8i_y0wG1AJbu_xC4nI/_buildManifest.js",
9
+ "static/56P8i_y0wG1AJbu_xC4nI/_ssgManifest.js"
10
10
  ],
11
11
  "rootMainFiles": [],
12
12
  "rootMainFilesTree": {},
@@ -23,8 +23,8 @@
23
23
  "static/chunks/webpack-4224e970a97a4a86.js",
24
24
  "static/chunks/framework-161be364fd69a7ce.js",
25
25
  "static/chunks/main-91fb767ebd74c9c1.js",
26
- "static/css/31dcc01973fbcb8a.css",
27
- "static/chunks/pages/_app-35958e1c02c7aede.js"
26
+ "static/css/58ab2477d4a05124.css",
27
+ "static/chunks/pages/_app-34260fc817f32ddc.js"
28
28
  ],
29
29
  "/_error": [
30
30
  "static/chunks/webpack-4224e970a97a4a86.js",
@@ -36,49 +36,51 @@
36
36
  "static/chunks/webpack-4224e970a97a4a86.js",
37
37
  "static/chunks/framework-161be364fd69a7ce.js",
38
38
  "static/chunks/main-91fb767ebd74c9c1.js",
39
- "static/chunks/433-233659be69169c19.js",
40
- "static/chunks/155-2f71ef31b9336adb.js",
41
- "static/chunks/985-4b4a3ed36ada16eb.js",
42
- "static/chunks/713-efe6b531f7a30a5f.js",
43
- "static/chunks/289-39ef5df8097382b4.js",
44
- "static/chunks/945-9e9382e35f024c04.js",
45
- "static/chunks/pages/asset-library-dc19b6ccd193de27.js"
39
+ "static/chunks/580-618d7d7e7b74daf6.js",
40
+ "static/chunks/665-88e20299084b9e73.js",
41
+ "static/chunks/209-5117020514c2bd0c.js",
42
+ "static/chunks/7-20bcc985742a9ae1.js",
43
+ "static/chunks/289-35ac595388bbd018.js",
44
+ "static/chunks/238-16333381c574f65b.js",
45
+ "static/chunks/pages/asset-library-bedc7113dfc7ad6a.js"
46
46
  ],
47
47
  "/document-roles": [
48
48
  "static/chunks/webpack-4224e970a97a4a86.js",
49
49
  "static/chunks/framework-161be364fd69a7ce.js",
50
50
  "static/chunks/main-91fb767ebd74c9c1.js",
51
- "static/chunks/433-233659be69169c19.js",
52
- "static/chunks/155-2f71ef31b9336adb.js",
53
- "static/chunks/576-fdadae734b47b56b.js",
51
+ "static/chunks/580-618d7d7e7b74daf6.js",
52
+ "static/chunks/665-88e20299084b9e73.js",
53
+ "static/chunks/576-6699fed6c88502fe.js",
54
54
  "static/chunks/787-c18af810af3433f6.js",
55
55
  "static/chunks/195-2c0168eacab722d2.js",
56
- "static/chunks/455-97ad88d6604f54b7.js",
56
+ "static/chunks/455-e1b41ac4946d2b6f.js",
57
57
  "static/chunks/466-1cd359f130473697.js",
58
- "static/chunks/pages/document-roles-33e93d6bee1b0381.js"
58
+ "static/chunks/pages/document-roles-3d8c5440cc3f15fd.js"
59
59
  ],
60
60
  "/documents": [
61
61
  "static/chunks/webpack-4224e970a97a4a86.js",
62
62
  "static/chunks/framework-161be364fd69a7ce.js",
63
63
  "static/chunks/main-91fb767ebd74c9c1.js",
64
- "static/chunks/433-233659be69169c19.js",
65
- "static/chunks/155-2f71ef31b9336adb.js",
66
- "static/chunks/576-fdadae734b47b56b.js",
67
- "static/chunks/713-efe6b531f7a30a5f.js",
64
+ "static/chunks/580-618d7d7e7b74daf6.js",
65
+ "static/chunks/665-88e20299084b9e73.js",
66
+ "static/chunks/576-6699fed6c88502fe.js",
67
+ "static/chunks/209-5117020514c2bd0c.js",
68
+ "static/chunks/7-20bcc985742a9ae1.js",
68
69
  "static/chunks/787-c18af810af3433f6.js",
69
70
  "static/chunks/195-2c0168eacab722d2.js",
70
- "static/chunks/455-97ad88d6604f54b7.js",
71
- "static/chunks/497-58fdc9f4b4437f94.js",
72
- "static/chunks/pages/documents-31b36cb18b965b3b.js"
71
+ "static/chunks/455-e1b41ac4946d2b6f.js",
72
+ "static/chunks/506-93f730bc149d0dce.js",
73
+ "static/chunks/230-8184e70eae35f2bb.js",
74
+ "static/chunks/pages/documents-fcf2ad9543097b4d.js"
73
75
  ],
74
76
  "/guide": [
75
77
  "static/chunks/webpack-4224e970a97a4a86.js",
76
78
  "static/chunks/framework-161be364fd69a7ce.js",
77
79
  "static/chunks/main-91fb767ebd74c9c1.js",
78
- "static/chunks/433-233659be69169c19.js",
80
+ "static/chunks/665-88e20299084b9e73.js",
79
81
  "static/chunks/787-c18af810af3433f6.js",
80
- "static/chunks/405-74ecbacd0b5a3128.js",
81
- "static/chunks/pages/guide-40908b2721e92d01.js"
82
+ "static/chunks/644-3299885a9dc1ef78.js",
83
+ "static/chunks/pages/guide-9d7d88a25d972c06.js"
82
84
  ],
83
85
  "/knowledge": [
84
86
  "static/chunks/webpack-4224e970a97a4a86.js",
@@ -90,50 +92,52 @@
90
92
  "static/chunks/webpack-4224e970a97a4a86.js",
91
93
  "static/chunks/framework-161be364fd69a7ce.js",
92
94
  "static/chunks/main-91fb767ebd74c9c1.js",
93
- "static/chunks/433-233659be69169c19.js",
94
- "static/chunks/155-2f71ef31b9336adb.js",
95
- "static/chunks/576-fdadae734b47b56b.js",
96
- "static/chunks/985-4b4a3ed36ada16eb.js",
97
- "static/chunks/713-efe6b531f7a30a5f.js",
95
+ "static/chunks/580-618d7d7e7b74daf6.js",
96
+ "static/chunks/665-88e20299084b9e73.js",
97
+ "static/chunks/576-6699fed6c88502fe.js",
98
+ "static/chunks/209-5117020514c2bd0c.js",
99
+ "static/chunks/7-20bcc985742a9ae1.js",
98
100
  "static/chunks/787-c18af810af3433f6.js",
99
- "static/chunks/289-39ef5df8097382b4.js",
101
+ "static/chunks/289-35ac595388bbd018.js",
102
+ "static/chunks/506-93f730bc149d0dce.js",
100
103
  "static/chunks/850-0f48354694fc6b3e.js",
101
104
  "static/css/ad5a592c79d1448b.css",
102
- "static/chunks/pages/knowledge/file-detail-58d6d3365af15b4c.js"
105
+ "static/chunks/pages/knowledge/file-detail-b9b728f62832b91c.js"
103
106
  ],
104
107
  "/knowledge/files": [
105
108
  "static/chunks/webpack-4224e970a97a4a86.js",
106
109
  "static/chunks/framework-161be364fd69a7ce.js",
107
110
  "static/chunks/main-91fb767ebd74c9c1.js",
108
- "static/chunks/433-233659be69169c19.js",
109
- "static/chunks/155-2f71ef31b9336adb.js",
110
- "static/chunks/576-fdadae734b47b56b.js",
111
- "static/chunks/985-4b4a3ed36ada16eb.js",
112
- "static/chunks/713-efe6b531f7a30a5f.js",
113
- "static/chunks/289-39ef5df8097382b4.js",
111
+ "static/chunks/580-618d7d7e7b74daf6.js",
112
+ "static/chunks/665-88e20299084b9e73.js",
113
+ "static/chunks/576-6699fed6c88502fe.js",
114
+ "static/chunks/209-5117020514c2bd0c.js",
115
+ "static/chunks/7-20bcc985742a9ae1.js",
116
+ "static/chunks/289-35ac595388bbd018.js",
114
117
  "static/css/ad5a592c79d1448b.css",
115
- "static/chunks/pages/knowledge/files-3bf25ca6491cebe3.js"
118
+ "static/chunks/pages/knowledge/files-cf9a04089447fcd8.js"
116
119
  ],
117
120
  "/knowledge/manage": [
118
121
  "static/chunks/webpack-4224e970a97a4a86.js",
119
122
  "static/chunks/framework-161be364fd69a7ce.js",
120
123
  "static/chunks/main-91fb767ebd74c9c1.js",
121
- "static/chunks/433-233659be69169c19.js",
124
+ "static/chunks/580-618d7d7e7b74daf6.js",
125
+ "static/chunks/665-88e20299084b9e73.js",
122
126
  "static/chunks/787-c18af810af3433f6.js",
123
- "static/chunks/403-0469cb096084301f.js",
124
- "static/chunks/pages/knowledge/manage-c98ed288e65c3e84.js"
127
+ "static/chunks/506-93f730bc149d0dce.js",
128
+ "static/chunks/788-3afeb069ed706ac0.js",
129
+ "static/chunks/pages/knowledge/manage-67b5c7fe257f37c5.js"
125
130
  ],
126
131
  "/models": [
127
132
  "static/chunks/webpack-4224e970a97a4a86.js",
128
133
  "static/chunks/framework-161be364fd69a7ce.js",
129
134
  "static/chunks/main-91fb767ebd74c9c1.js",
130
- "static/chunks/155-2f71ef31b9336adb.js",
131
- "static/chunks/576-fdadae734b47b56b.js",
132
- "static/chunks/985-4b4a3ed36ada16eb.js",
135
+ "static/chunks/580-618d7d7e7b74daf6.js",
136
+ "static/chunks/576-6699fed6c88502fe.js",
133
137
  "static/chunks/195-2c0168eacab722d2.js",
134
- "static/chunks/455-97ad88d6604f54b7.js",
135
- "static/chunks/337-b06909f6d29f6d1f.js",
136
- "static/chunks/pages/models-4fb81218cff53e21.js"
138
+ "static/chunks/455-e1b41ac4946d2b6f.js",
139
+ "static/chunks/649-06b72042a4de8074.js",
140
+ "static/chunks/pages/models-89f9769a32da8e5f.js"
137
141
  ],
138
142
  "/overview": [
139
143
  "static/chunks/webpack-4224e970a97a4a86.js",
@@ -147,12 +151,12 @@
147
151
  "static/chunks/webpack-4224e970a97a4a86.js",
148
152
  "static/chunks/framework-161be364fd69a7ce.js",
149
153
  "static/chunks/main-91fb767ebd74c9c1.js",
150
- "static/chunks/155-2f71ef31b9336adb.js",
151
- "static/chunks/576-fdadae734b47b56b.js",
152
- "static/chunks/985-4b4a3ed36ada16eb.js",
154
+ "static/chunks/580-618d7d7e7b74daf6.js",
155
+ "static/chunks/576-6699fed6c88502fe.js",
156
+ "static/chunks/209-5117020514c2bd0c.js",
153
157
  "static/chunks/195-2c0168eacab722d2.js",
154
- "static/chunks/478-ac4777b05b3c42e8.js",
155
- "static/chunks/pages/prompt-031bc6ab32830ae5.js"
158
+ "static/chunks/187-358527d7061417bf.js",
159
+ "static/chunks/pages/prompt-09514790e22505cb.js"
156
160
  ],
157
161
  "/settings": [
158
162
  "static/chunks/webpack-4224e970a97a4a86.js",
@@ -164,14 +168,14 @@
164
168
  "static/chunks/webpack-4224e970a97a4a86.js",
165
169
  "static/chunks/framework-161be364fd69a7ce.js",
166
170
  "static/chunks/main-91fb767ebd74c9c1.js",
167
- "static/chunks/433-233659be69169c19.js",
168
- "static/chunks/155-2f71ef31b9336adb.js",
169
- "static/chunks/576-fdadae734b47b56b.js",
170
- "static/chunks/985-4b4a3ed36ada16eb.js",
171
- "static/chunks/713-efe6b531f7a30a5f.js",
171
+ "static/chunks/580-618d7d7e7b74daf6.js",
172
+ "static/chunks/665-88e20299084b9e73.js",
173
+ "static/chunks/576-6699fed6c88502fe.js",
174
+ "static/chunks/209-5117020514c2bd0c.js",
175
+ "static/chunks/7-20bcc985742a9ae1.js",
172
176
  "static/chunks/195-2c0168eacab722d2.js",
173
- "static/chunks/289-39ef5df8097382b4.js",
174
- "static/chunks/pages/system/logs-b073e55810452aca.js"
177
+ "static/chunks/289-35ac595388bbd018.js",
178
+ "static/chunks/pages/system/logs-b274976ce158117c.js"
175
179
  ]
176
180
  },
177
181
  "ampFirstPages": []
@@ -3,9 +3,9 @@
3
3
  "routes": {},
4
4
  "dynamicRoutes": {},
5
5
  "preview": {
6
- "previewModeId": "68e3272c400d9ce2b1ef93993e9767a3",
7
- "previewModeSigningKey": "75ec74bddf62b4950b3231e8e99bf68745345e118af09459404ad87a03206150",
8
- "previewModeEncryptionKey": "6ee88915fdf04c98fe2912e04e409a94807e1225da9035f459cfd48abf36fa3b"
6
+ "previewModeId": "d1b672bdcbb60dbc503f75dbd4e266cb",
7
+ "previewModeSigningKey": "7616c6d0406b3c346e9216ef3181b504796a63c2880e9f3b2bd37fb45118f9fa",
8
+ "previewModeEncryptionKey": "d0013bbba8f4d3f5463c1370680ba7d192afbe1eac796dbeb5437cd8888cf64f"
9
9
  },
10
10
  "notFoundRoutes": []
11
11
  }
@@ -62,7 +62,9 @@
62
62
  "remotePatterns": [],
63
63
  "unoptimized": false
64
64
  },
65
- "devIndicators": false,
65
+ "devIndicators": {
66
+ "position": "bottom-left"
67
+ },
66
68
  "onDemandEntries": {
67
69
  "maxInactiveAge": 60000,
68
70
  "pagesBufferLength": 5
@@ -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:()=>m});var e=c(8732),f=c(82015),g=c(94487),h=c(60056),i=c(79270),j=c(22147),k=a([g]);function l({title:a,value:b,subtext:c,icon:d,colorClass:f,animationClass:g}){return(0,e.jsxs)("div",{className:`p-4 animateFadeIn flex flex-col justify-between border-l-2 border-transparent hover:border-[var(--colorBrand)] transition-colors ${g||""}`,style:{opacity:0},children:[(0,e.jsxs)("div",{className:"flex items-start justify-between mb-2",children:[(0,e.jsx)("div",{className:"text-xs font-semibold text-[var(--colorTextSecondary)] tracking-wide uppercase",children:a}),d&&(0,e.jsx)("div",{className:f,style:{opacity:.7},children:d})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-3xl font-bold tracking-tight",children:b}),c&&(0,e.jsx)("div",{className:"text-xs mt-1 truncate font-medium",style:{color:"var(--colorTextTertiary)"},children:c})]})]})}function m(){let a=(0,g.Vr)(),[b,c]=(0,f.useState)(null),[d,k]=(0,f.useState)(!0),[m,n]=(0,f.useState)(0),[o,p]=(0,f.useState)(0),[q,r]=(0,f.useState)(0),[s,t]=(0,f.useState)(0),[u,v]=(0,f.useState)(null),w=(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),n(Array.isArray(b)?b.length:0);let g=Array.isArray(d.roles)?d.roles:[];p(g.filter(a=>"file"===a.type).length),r(g.filter(a=>"prompt"===a.type).length),t(Array.isArray(e.templates)?e.templates.length:0),v(f)}catch{}finally{k(!1)}},[]),x=b?.tasks.total?Math.round(b.tasks.success/b.tasks.total*100):0,y=b?.models?.[0],z=b?.logs.latestAt?new Date(b.logs.latestAt).toLocaleString():a("overview.noLogs");return(0,e.jsxs)("div",{className:"space-y-12",children:[(0,e.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-end justify-between gap-4 pb-6 border-b border-[var(--borderColor)]",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h1",{className:"text-3xl font-extrabold tracking-tight text-[var(--colorText)] mb-2",children:a("overview.title")}),(0,e.jsx)("p",{className:"text-sm text-[var(--colorTextSecondary)]",children:a("overview.description")})]}),(0,e.jsxs)(h.$x,{children:[(0,e.jsxs)("span",{className:"text-xs font-mono",style:{color:"var(--colorTextTertiary)"},children:[a("overview.updated"),": ",z]}),(0,e.jsx)(h.$n,{type:"text",icon:(0,e.jsx)(i.ReloadOutlined,{spin:d}),onClick:()=>{w()}})]})]}),(0,e.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8 divide-x border-b pb-8 border-[var(--borderColor)] divide-[var(--borderColor)] -mx-4 px-4",children:[(0,e.jsx)(l,{title:a("overview.uptime"),value:`${b?Math.floor(b.uptime/3600):0}h`,icon:(0,e.jsx)(i.ApiOutlined,{size:16}),colorClass:"text-[var(--colorBrand)]",animationClass:"stagger-1"}),(0,e.jsx)(l,{title:a("overview.tokensUsed"),value:(b?.tokens.total??0).toLocaleString(),subtext:`P ${b?.tokens.prompt??0} / C ${b?.tokens.completion??0}`,icon:(0,e.jsx)(i.ThunderboltOutlined,{size:16}),colorClass:"text-[var(--colorWarn)]",animationClass:"stagger-2"}),(0,e.jsx)(l,{title:a("overview.tasksTotal"),value:(b?.tasks.total??0).toLocaleString(),subtext:`✓ ${b?.tasks.success??0} | ✗ ${b?.tasks.failed??0} | ↻ ${b?.tasks.running??0}`,icon:(0,e.jsx)(i.FileTextOutlined,{size:16}),colorClass:"text-[var(--colorInfo)]",animationClass:"stagger-3"}),(0,e.jsx)(l,{title:a("overview.successRate"),value:`${x}%`,icon:x>80?(0,e.jsx)(i.CheckCircleOutlined,{size:16}):(0,e.jsx)(i.CloseCircleOutlined,{size:16}),colorClass:x>80?"text-[var(--colorOk)]":"text-[var(--colorDanger)]",animationClass:"stagger-4"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{className:"text-sm font-semibold mb-6 uppercase tracking-wider text-[var(--colorTextSecondary)] animateFadeIn stagger-5",style:{opacity:0},children:a("overview.systemResources")}),(0,e.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-y-8 gap-x-4",children:[(0,e.jsx)(l,{title:a("overview.fileRoles"),value:o,animationClass:"stagger-5"}),(0,e.jsx)(l,{title:a("overview.promptRoles"),value:q,animationClass:"stagger-5"}),(0,e.jsx)(l,{title:a("overview.templateCount"),value:s,animationClass:"stagger-5"}),(0,e.jsx)(l,{title:a("overview.semanticModel"),value:u?.provider==="openai-compatible"?a("overview.external"):u?a("overview.local"):"—",subtext:u?.model??a("overview.notConfigured"),animationClass:"stagger-5"}),(0,e.jsx)(l,{title:a("overview.modelProviders"),value:m,animationClass:"stagger-5"}),(0,e.jsx)(l,{title:a("overview.auditLogs"),value:b?.logs.events??0,animationClass:"stagger-5"})]})]}),(0,e.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 pt-8 border-t border-[var(--borderColor)] animateFadeIn stagger-5",style:{opacity:0},children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-sm font-semibold mb-6 uppercase tracking-wider text-[var(--colorTextSecondary)]",children:a("overview.hardwareUsage")}),(0,e.jsxs)("div",{className:"space-y-6",children:[(0,e.jsxs)("div",{className:"flex items-center gap-6",children:[(0,e.jsx)(h.ke,{type:"dashboard",percent:b?.cpu.usagePercent??0,size:64,strokeColor:(b?.cpu.usagePercent??0)>80?"var(--colorDanger)":"var(--colorText)",strokeWidth:10}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-sm font-medium text-[var(--colorTextSecondary)]",children:a("overview.cpuUsage")}),(0,e.jsxs)("div",{className:"text-xl font-bold",children:[b?.cpu.usagePercent?.toFixed(1)??"0.0","%"]}),(0,e.jsxs)("div",{className:"text-xs text-[var(--colorTextTertiary)]",children:[b?.cpu.cores??0," ",a("overview.cores")]})]})]}),(0,e.jsxs)("div",{className:"flex items-center gap-6",children:[(0,e.jsx)(h.ke,{type:"dashboard",percent:b?.memory.usagePercent??0,size:64,strokeColor:(b?.memory.usagePercent??0)>80?"var(--colorDanger)":"var(--colorTextSecondary)",strokeWidth:10}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-sm font-medium text-[var(--colorTextSecondary)]",children:a("overview.memoryUsage")}),(0,e.jsxs)("div",{className:"text-xl font-bold",children:[b?.memory.usagePercent??0,"%"]}),(0,e.jsxs)("div",{className:"text-xs text-[var(--colorTextTertiary)]",children:[b?.memory.processMB??0," MB / ",b?.memory.totalMB??0," MB"]})]})]})]})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-sm font-semibold mb-6 uppercase tracking-wider text-[var(--colorTextSecondary)]",children:a("overview.activityContext")}),(0,e.jsxs)("div",{className:"space-y-6",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-xs text-[var(--colorTextTertiary)] mb-1",children:a("overview.topModel")}),y?(0,e.jsxs)("div",{className:"font-semibold flex items-center gap-2",children:[(0,e.jsx)(i.RobotOutlined,{className:"text-[var(--colorTextSecondary)]"})," ",y.model,(0,e.jsxs)("span",{className:"font-normal text-[var(--colorTextTertiary)] text-sm",children:["@",y.provider]})]}):(0,e.jsx)("span",{className:"text-sm text-[var(--colorTextTertiary)]",children:a("overview.noDataAvailable")})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-xs text-[var(--colorTextTertiary)] mb-3",children:a("overview.recentTaskTypes")}),b?.tasks.types&&Object.keys(b.tasks.types).length>0?(0,e.jsx)("div",{className:"flex flex-wrap gap-2",children:Object.entries(b.tasks.types).sort((a,b)=>b[1]-a[1]).map(([a,b])=>(0,e.jsxs)("div",{className:"px-2 py-1 rounded text-xs font-mono bg-[var(--colorBgHover)] text-[var(--colorTextSecondary)]",children:[a.slice(0,30)," ",(0,e.jsx)("span",{className:"ml-2 font-bold text-[var(--colorText)]",children:b})]},a))}):(0,e.jsx)("span",{className:"text-sm text-[var(--colorTextTertiary)]",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:()=>m});var e=c(8732),f=c(82015),g=c(94487),h=c(60056),i=c(79270),j=c(22147),k=a([g]);function l({title:a,value:b,subtext:c,icon:d,colorClass:f,animationClass:g}){return(0,e.jsxs)("div",{className:`p-4 animateFadeIn flex flex-col justify-between border-l-2 border-transparent hover:border-[var(--colorBrand)] transition-colors ${g||""}`,style:{opacity:0},children:[(0,e.jsxs)("div",{className:"flex items-start justify-between mb-2",children:[(0,e.jsx)("div",{className:"text-xs font-semibold text-[var(--colorTextSecondary)] tracking-wide uppercase",children:a}),d&&(0,e.jsx)("div",{className:f,style:{opacity:.7},children:d})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-3xl font-bold tracking-tight",children:b}),c&&(0,e.jsx)("div",{className:"text-xs mt-1 truncate font-medium",style:{color:"var(--colorTextTertiary)"},children:c})]})]})}function m(){let a=(0,g.Vr)(),[b,c]=(0,f.useState)(null),[d,k]=(0,f.useState)(!0),[m,n]=(0,f.useState)(0),[o,p]=(0,f.useState)(0),[q,r]=(0,f.useState)(0),[s,t]=(0,f.useState)(0),[u,v]=(0,f.useState)(null),w=(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),n(Array.isArray(b)?b.length:0);let g=Array.isArray(d.roles)?d.roles:[];p(g.filter(a=>"file"===a.type).length),r(g.filter(a=>"prompt"===a.type).length),t(Array.isArray(e.templates)?e.templates.length:0),v(f)}catch{}finally{k(!1)}},[]),x=b?.tasks.total?Math.round(b.tasks.success/b.tasks.total*100):0,y=b?.models?.[0],z=b?.logs.latestAt?new Date(b.logs.latestAt).toLocaleString():a("overview.noLogs");return(0,e.jsxs)("div",{className:"space-y-12",children:[(0,e.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-end justify-between gap-4 pb-6 border-b border-[var(--borderColor)]",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h1",{className:"text-3xl font-extrabold tracking-tight text-[var(--colorText)] mb-2",children:a("overview.title")}),(0,e.jsx)("p",{className:"text-sm text-[var(--colorTextSecondary)]",children:a("overview.description")})]}),(0,e.jsxs)(h.Space,{children:[(0,e.jsxs)("span",{className:"text-xs font-mono",style:{color:"var(--colorTextTertiary)"},children:[a("overview.updated"),": ",z]}),(0,e.jsx)(h.Button,{type:"text",icon:(0,e.jsx)(i.ReloadOutlined,{spin:d}),onClick:()=>{w()}})]})]}),(0,e.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8 divide-x border-b pb-8 border-[var(--borderColor)] divide-[var(--borderColor)] -mx-4 px-4",children:[(0,e.jsx)(l,{title:a("overview.uptime"),value:`${b?Math.floor(b.uptime/3600):0}h`,icon:(0,e.jsx)(i.ApiOutlined,{size:16}),colorClass:"text-[var(--colorBrand)]",animationClass:"stagger-1"}),(0,e.jsx)(l,{title:a("overview.tokensUsed"),value:(b?.tokens.total??0).toLocaleString(),subtext:`P ${b?.tokens.prompt??0} / C ${b?.tokens.completion??0}`,icon:(0,e.jsx)(i.ThunderboltOutlined,{size:16}),colorClass:"text-[var(--colorWarn)]",animationClass:"stagger-2"}),(0,e.jsx)(l,{title:a("overview.tasksTotal"),value:(b?.tasks.total??0).toLocaleString(),subtext:`✓ ${b?.tasks.success??0} | ✗ ${b?.tasks.failed??0} | ↻ ${b?.tasks.running??0}`,icon:(0,e.jsx)(i.FileTextOutlined,{size:16}),colorClass:"text-[var(--colorInfo)]",animationClass:"stagger-3"}),(0,e.jsx)(l,{title:a("overview.successRate"),value:`${x}%`,icon:x>80?(0,e.jsx)(i.CheckCircleOutlined,{size:16}):(0,e.jsx)(i.CloseCircleOutlined,{size:16}),colorClass:x>80?"text-[var(--colorOk)]":"text-[var(--colorDanger)]",animationClass:"stagger-4"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{className:"text-sm font-semibold mb-6 uppercase tracking-wider text-[var(--colorTextSecondary)] animateFadeIn stagger-5",style:{opacity:0},children:a("overview.systemResources")}),(0,e.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-y-8 gap-x-4",children:[(0,e.jsx)(l,{title:a("overview.fileRoles"),value:o,animationClass:"stagger-5"}),(0,e.jsx)(l,{title:a("overview.promptRoles"),value:q,animationClass:"stagger-5"}),(0,e.jsx)(l,{title:a("overview.templateCount"),value:s,animationClass:"stagger-5"}),(0,e.jsx)(l,{title:a("overview.semanticModel"),value:u?.provider==="openai-compatible"?a("overview.external"):u?a("overview.local"):"—",subtext:u?.model??a("overview.notConfigured"),animationClass:"stagger-5"}),(0,e.jsx)(l,{title:a("overview.modelProviders"),value:m,animationClass:"stagger-5"}),(0,e.jsx)(l,{title:a("overview.auditLogs"),value:b?.logs.events??0,animationClass:"stagger-5"})]})]}),(0,e.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 pt-8 border-t border-[var(--borderColor)] animateFadeIn stagger-5",style:{opacity:0},children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-sm font-semibold mb-6 uppercase tracking-wider text-[var(--colorTextSecondary)]",children:a("overview.hardwareUsage")}),(0,e.jsxs)("div",{className:"space-y-6",children:[(0,e.jsxs)("div",{className:"flex items-center gap-6",children:[(0,e.jsx)(h.Progress,{type:"dashboard",percent:b?.cpu.usagePercent??0,size:64,strokeColor:(b?.cpu.usagePercent??0)>80?"var(--colorDanger)":"var(--colorText)",strokeWidth:10}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-sm font-medium text-[var(--colorTextSecondary)]",children:a("overview.cpuUsage")}),(0,e.jsxs)("div",{className:"text-xl font-bold",children:[b?.cpu.usagePercent?.toFixed(1)??"0.0","%"]}),(0,e.jsxs)("div",{className:"text-xs text-[var(--colorTextTertiary)]",children:[b?.cpu.cores??0," ",a("overview.cores")]})]})]}),(0,e.jsxs)("div",{className:"flex items-center gap-6",children:[(0,e.jsx)(h.Progress,{type:"dashboard",percent:b?.memory.usagePercent??0,size:64,strokeColor:(b?.memory.usagePercent??0)>80?"var(--colorDanger)":"var(--colorTextSecondary)",strokeWidth:10}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-sm font-medium text-[var(--colorTextSecondary)]",children:a("overview.memoryUsage")}),(0,e.jsxs)("div",{className:"text-xl font-bold",children:[b?.memory.usagePercent??0,"%"]}),(0,e.jsxs)("div",{className:"text-xs text-[var(--colorTextTertiary)]",children:[b?.memory.processMB??0," MB / ",b?.memory.totalMB??0," MB"]})]})]})]})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-sm font-semibold mb-6 uppercase tracking-wider text-[var(--colorTextSecondary)]",children:a("overview.activityContext")}),(0,e.jsxs)("div",{className:"space-y-6",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-xs text-[var(--colorTextTertiary)] mb-1",children:a("overview.topModel")}),y?(0,e.jsxs)("div",{className:"font-semibold flex items-center gap-2",children:[(0,e.jsx)(i.RobotOutlined,{className:"text-[var(--colorTextSecondary)]"})," ",y.model,(0,e.jsxs)("span",{className:"font-normal text-[var(--colorTextTertiary)] text-sm",children:["@",y.provider]})]}):(0,e.jsx)("span",{className:"text-sm text-[var(--colorTextTertiary)]",children:a("overview.noDataAvailable")})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-xs text-[var(--colorTextTertiary)] mb-3",children:a("overview.recentTaskTypes")}),b?.tasks.types&&Object.keys(b.tasks.types).length>0?(0,e.jsx)("div",{className:"flex flex-wrap gap-2",children:Object.entries(b.tasks.types).sort((a,b)=>b[1]-a[1]).map(([a,b])=>(0,e.jsxs)("div",{className:"px-2 py-1 rounded text-xs font-mono bg-[var(--colorBgHover)] text-[var(--colorTextSecondary)]",children:[a.slice(0,30)," ",(0,e.jsx)("span",{className:"ml-2 font-bold text-[var(--colorText)]",children:b})]},a))}):(0,e.jsx)("span",{className:"text-sm text-[var(--colorTextTertiary)]",children:a("common.noData")})]})]})]})]})]})}g=(k.then?(await k)():k)[0],d()}catch(a){d(a)}})}};