@customize-agent/server 4.0.95 → 4.0.97

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 (88) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +52 -79
  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/8204.js +1 -1
  8. package/.next/server/middleware-build-manifest.js +1 -1
  9. package/.next/server/pages/404.html +1 -1
  10. package/.next/server/pages/500.html +1 -1
  11. package/.next/server/pages/_app.js +1 -1
  12. package/.next/server/pages/_app.js.nft.json +1 -1
  13. package/.next/server/pages/_error.js +1 -1
  14. package/.next/server/pages/_error.js.nft.json +1 -1
  15. package/.next/server/pages/asset-library.html +1 -1
  16. package/.next/server/pages/document-roles.html +1 -1
  17. package/.next/server/pages/documents.html +1 -1
  18. package/.next/server/pages/guide.html +1 -1
  19. package/.next/server/pages/index.html +1 -1
  20. package/.next/server/pages/index.js.nft.json +1 -1
  21. package/.next/server/pages/knowledge/file-detail.html +1 -1
  22. package/.next/server/pages/knowledge/files.html +1 -1
  23. package/.next/server/pages/knowledge/manage.html +1 -1
  24. package/.next/server/pages/knowledge.html +1 -1
  25. package/.next/server/pages/models.html +1 -1
  26. package/.next/server/pages/overview.html +1 -1
  27. package/.next/server/pages/prompt.html +1 -1
  28. package/.next/server/pages/settings.html +1 -1
  29. package/.next/server/pages/system/logs.html +1 -1
  30. package/.next/server/pages-manifest.json +22 -23
  31. package/.next/static/023mfOogIrGGOivjQt58T/_buildManifest.js +1 -0
  32. package/.next/static/chunks/337-b06909f6d29f6d1f.js +1 -0
  33. package/.next/static/chunks/371-291e96a3ec471950.js +6 -0
  34. package/.next/static/chunks/375-1e1be370b94c7512.js +1 -0
  35. package/.next/static/chunks/478-ac4777b05b3c42e8.js +1 -0
  36. package/.next/static/chunks/63-dd8eeb8edd766bae.js +4 -0
  37. package/.next/static/chunks/726-835aceca52ec904a.js +1 -0
  38. package/.next/static/chunks/788-72bd97a04f2aee27.js +1 -0
  39. package/.next/static/chunks/795-ed2375ec938022d8.js +1 -0
  40. package/.next/static/chunks/850-0f48354694fc6b3e.js +1 -0
  41. package/.next/static/chunks/pages/{_app-d0d7f3a02373fa7e.js → _app-d98d9d52c6257579.js} +17 -17
  42. package/.next/static/chunks/pages/{asset-library-c744f6c91b24629f.js → asset-library-b76abaab31043cdb.js} +1 -1
  43. package/.next/static/chunks/pages/document-roles-edefc9a1752155f1.js +1 -0
  44. package/.next/static/chunks/pages/documents-cccd60ddbf3d8401.js +1 -0
  45. package/.next/static/chunks/pages/{guide-e00b6e23a8dd41b3.js → guide-40908b2721e92d01.js} +1 -1
  46. package/.next/static/chunks/pages/{index-a2a24e9602e7ea52.js → index-9df5670a1487dbb1.js} +1 -1
  47. package/.next/static/chunks/pages/knowledge/file-detail-8c37a455e6cc010f.js +1 -0
  48. package/.next/static/chunks/pages/knowledge/files-ebe54cb8a7886df1.js +1 -0
  49. package/.next/static/chunks/pages/knowledge/manage-1363f53928abf98c.js +1 -0
  50. package/.next/static/chunks/pages/models-8883cd27c251e4ae.js +1 -0
  51. package/.next/static/chunks/pages/{overview-1260176045ed5f7a.js → overview-63f3dda2dde16c9e.js} +1 -1
  52. package/.next/static/chunks/pages/prompt-5adc3ca18a2764f4.js +1 -0
  53. package/.next/static/chunks/pages/settings-810eb1a6cf1a6b02.js +1 -0
  54. package/.next/static/chunks/pages/system/logs-1b77471f6db59846.js +1 -0
  55. package/.next/static/chunks/webpack-4224e970a97a4a86.js +1 -0
  56. package/.next/static/css/20743781fa68bc70.css +1 -0
  57. package/messages/en-US.json +127 -3
  58. package/messages/zh-CN.json +128 -3
  59. package/package.json +4 -2
  60. package/postcss.config.mjs +3 -1
  61. package/scripts/start-server.cjs +5 -0
  62. package/.next/server/pages/knowledge/search.html +0 -1
  63. package/.next/server/pages/knowledge/search.js.nft.json +0 -1
  64. package/.next/static/3nHhxjRVb6Sv1RCvTTJ6o/_buildManifest.js +0 -1
  65. package/.next/static/chunks/192-dee7faefaf840b17.js +0 -1
  66. package/.next/static/chunks/238-4ad320af4f787bd6.js +0 -1
  67. package/.next/static/chunks/375-4a1c73eb22d653d2.js +0 -1
  68. package/.next/static/chunks/525-5d947137d894f5fe.js +0 -1
  69. package/.next/static/chunks/621-1c48b0d6d904f023.js +0 -4
  70. package/.next/static/chunks/694-2d545cfbb9779f2c.js +0 -1
  71. package/.next/static/chunks/788-7f7359a830e3f4fd.js +0 -1
  72. package/.next/static/chunks/795-e8cfd56df2293576.js +0 -1
  73. package/.next/static/chunks/797-9166f495bb6138e3.js +0 -6
  74. package/.next/static/chunks/861-91cbdd34b8e23151.js +0 -1
  75. package/.next/static/chunks/938-45efd516bb130bd5.js +0 -1
  76. package/.next/static/chunks/pages/document-roles-5108efe16c9b0dd0.js +0 -1
  77. package/.next/static/chunks/pages/documents-1fad70e8cff2eff9.js +0 -1
  78. package/.next/static/chunks/pages/knowledge/file-detail-44e52d9e351e8784.js +0 -1
  79. package/.next/static/chunks/pages/knowledge/files-4f7bacb11528982e.js +0 -1
  80. package/.next/static/chunks/pages/knowledge/manage-205647551376b193.js +0 -1
  81. package/.next/static/chunks/pages/knowledge/search-577f08171a786578.js +0 -1
  82. package/.next/static/chunks/pages/models-47a9542ac5bec5c0.js +0 -1
  83. package/.next/static/chunks/pages/prompt-aad4329e419fb442.js +0 -1
  84. package/.next/static/chunks/pages/settings-78d0d5322fd61afe.js +0 -1
  85. package/.next/static/chunks/pages/system/logs-c97311a24d1a67e1.js +0 -1
  86. package/.next/static/chunks/webpack-77d10b4726f13aa5.js +0 -1
  87. package/.next/static/css/38dba0a7a42a8df3.css +0 -1
  88. /package/.next/static/{3nHhxjRVb6Sv1RCvTTJ6o → 023mfOogIrGGOivjQt58T}/_ssgManifest.js +0 -0
package/.next/BUILD_ID CHANGED
@@ -1 +1 @@
1
- 3nHhxjRVb6Sv1RCvTTJ6o
1
+ 023mfOogIrGGOivjQt58T
@@ -5,195 +5,168 @@
5
5
  "devFiles": [],
6
6
  "ampDevFiles": [],
7
7
  "lowPriorityFiles": [
8
- "static/3nHhxjRVb6Sv1RCvTTJ6o/_buildManifest.js",
9
- "static/3nHhxjRVb6Sv1RCvTTJ6o/_ssgManifest.js"
8
+ "static/023mfOogIrGGOivjQt58T/_buildManifest.js",
9
+ "static/023mfOogIrGGOivjQt58T/_ssgManifest.js"
10
10
  ],
11
11
  "rootMainFiles": [],
12
12
  "rootMainFilesTree": {},
13
13
  "pages": {
14
14
  "/": [
15
- "static/chunks/webpack-77d10b4726f13aa5.js",
15
+ "static/chunks/webpack-4224e970a97a4a86.js",
16
16
  "static/chunks/framework-161be364fd69a7ce.js",
17
17
  "static/chunks/main-91fb767ebd74c9c1.js",
18
- "static/chunks/433-233659be69169c19.js",
19
- "static/chunks/787-c18af810af3433f6.js",
20
- "static/chunks/694-2d545cfbb9779f2c.js",
21
- "static/chunks/795-e8cfd56df2293576.js",
22
- "static/chunks/pages/index-a2a24e9602e7ea52.js"
18
+ "static/chunks/795-ed2375ec938022d8.js",
19
+ "static/chunks/pages/index-9df5670a1487dbb1.js"
23
20
  ],
24
21
  "/_app": [
25
- "static/chunks/webpack-77d10b4726f13aa5.js",
22
+ "static/chunks/webpack-4224e970a97a4a86.js",
26
23
  "static/chunks/framework-161be364fd69a7ce.js",
27
24
  "static/chunks/main-91fb767ebd74c9c1.js",
28
- "static/css/38dba0a7a42a8df3.css",
29
- "static/chunks/pages/_app-d0d7f3a02373fa7e.js"
25
+ "static/css/20743781fa68bc70.css",
26
+ "static/chunks/pages/_app-d98d9d52c6257579.js"
30
27
  ],
31
28
  "/_error": [
32
- "static/chunks/webpack-77d10b4726f13aa5.js",
29
+ "static/chunks/webpack-4224e970a97a4a86.js",
33
30
  "static/chunks/framework-161be364fd69a7ce.js",
34
31
  "static/chunks/main-91fb767ebd74c9c1.js",
35
32
  "static/chunks/pages/_error-282257fbdcc167b4.js"
36
33
  ],
37
34
  "/asset-library": [
38
- "static/chunks/webpack-77d10b4726f13aa5.js",
35
+ "static/chunks/webpack-4224e970a97a4a86.js",
39
36
  "static/chunks/framework-161be364fd69a7ce.js",
40
37
  "static/chunks/main-91fb767ebd74c9c1.js",
41
38
  "static/chunks/433-233659be69169c19.js",
42
39
  "static/chunks/787-c18af810af3433f6.js",
43
40
  "static/chunks/102-881dcc464f983c89.js",
44
41
  "static/chunks/767-e97ea5dee1ab87b5.js",
45
- "static/chunks/pages/asset-library-c744f6c91b24629f.js"
42
+ "static/chunks/pages/asset-library-b76abaab31043cdb.js"
46
43
  ],
47
44
  "/document-roles": [
48
- "static/chunks/webpack-77d10b4726f13aa5.js",
45
+ "static/chunks/webpack-4224e970a97a4a86.js",
49
46
  "static/chunks/framework-161be364fd69a7ce.js",
50
47
  "static/chunks/main-91fb767ebd74c9c1.js",
51
48
  "static/chunks/433-233659be69169c19.js",
52
- "static/chunks/787-c18af810af3433f6.js",
53
49
  "static/chunks/576-6699fed6c88502fe.js",
50
+ "static/chunks/787-c18af810af3433f6.js",
54
51
  "static/chunks/195-2c0168eacab722d2.js",
55
- "static/chunks/797-9166f495bb6138e3.js",
56
- "static/chunks/192-dee7faefaf840b17.js",
57
- "static/chunks/pages/document-roles-5108efe16c9b0dd0.js"
52
+ "static/chunks/371-291e96a3ec471950.js",
53
+ "static/chunks/726-835aceca52ec904a.js",
54
+ "static/chunks/pages/document-roles-edefc9a1752155f1.js"
58
55
  ],
59
56
  "/documents": [
60
- "static/chunks/webpack-77d10b4726f13aa5.js",
57
+ "static/chunks/webpack-4224e970a97a4a86.js",
61
58
  "static/chunks/framework-161be364fd69a7ce.js",
62
59
  "static/chunks/main-91fb767ebd74c9c1.js",
63
60
  "static/chunks/433-233659be69169c19.js",
64
- "static/chunks/787-c18af810af3433f6.js",
65
61
  "static/chunks/576-6699fed6c88502fe.js",
62
+ "static/chunks/787-c18af810af3433f6.js",
66
63
  "static/chunks/195-2c0168eacab722d2.js",
67
- "static/chunks/375-4a1c73eb22d653d2.js",
64
+ "static/chunks/375-1e1be370b94c7512.js",
65
+ "static/chunks/371-291e96a3ec471950.js",
68
66
  "static/chunks/506-93f730bc149d0dce.js",
69
- "static/chunks/797-9166f495bb6138e3.js",
70
- "static/chunks/621-1c48b0d6d904f023.js",
71
- "static/chunks/pages/documents-1fad70e8cff2eff9.js"
67
+ "static/chunks/63-dd8eeb8edd766bae.js",
68
+ "static/chunks/pages/documents-cccd60ddbf3d8401.js"
72
69
  ],
73
70
  "/guide": [
74
- "static/chunks/webpack-77d10b4726f13aa5.js",
71
+ "static/chunks/webpack-4224e970a97a4a86.js",
75
72
  "static/chunks/framework-161be364fd69a7ce.js",
76
73
  "static/chunks/main-91fb767ebd74c9c1.js",
77
74
  "static/chunks/433-233659be69169c19.js",
78
75
  "static/chunks/787-c18af810af3433f6.js",
79
76
  "static/chunks/405-74ecbacd0b5a3128.js",
80
- "static/chunks/pages/guide-e00b6e23a8dd41b3.js"
77
+ "static/chunks/pages/guide-40908b2721e92d01.js"
81
78
  ],
82
79
  "/knowledge": [
83
- "static/chunks/webpack-77d10b4726f13aa5.js",
80
+ "static/chunks/webpack-4224e970a97a4a86.js",
84
81
  "static/chunks/framework-161be364fd69a7ce.js",
85
82
  "static/chunks/main-91fb767ebd74c9c1.js",
86
83
  "static/chunks/pages/knowledge-905248d8dcb15453.js"
87
84
  ],
88
85
  "/knowledge/file-detail": [
89
- "static/chunks/webpack-77d10b4726f13aa5.js",
86
+ "static/chunks/webpack-4224e970a97a4a86.js",
90
87
  "static/chunks/framework-161be364fd69a7ce.js",
91
88
  "static/chunks/main-91fb767ebd74c9c1.js",
92
89
  "static/chunks/433-233659be69169c19.js",
93
- "static/chunks/787-c18af810af3433f6.js",
94
90
  "static/chunks/576-6699fed6c88502fe.js",
91
+ "static/chunks/787-c18af810af3433f6.js",
95
92
  "static/chunks/985-4b4a3ed36ada16eb.js",
96
- "static/chunks/375-4a1c73eb22d653d2.js",
93
+ "static/chunks/375-1e1be370b94c7512.js",
97
94
  "static/chunks/102-881dcc464f983c89.js",
98
- "static/chunks/506-93f730bc149d0dce.js",
99
95
  "static/chunks/289-0031e62ca424247b.js",
100
- "static/chunks/861-91cbdd34b8e23151.js",
96
+ "static/chunks/506-93f730bc149d0dce.js",
97
+ "static/chunks/850-0f48354694fc6b3e.js",
101
98
  "static/css/09be1fdeab8595ab.css",
102
- "static/chunks/pages/knowledge/file-detail-44e52d9e351e8784.js"
99
+ "static/chunks/pages/knowledge/file-detail-8c37a455e6cc010f.js"
103
100
  ],
104
101
  "/knowledge/files": [
105
- "static/chunks/webpack-77d10b4726f13aa5.js",
102
+ "static/chunks/webpack-4224e970a97a4a86.js",
106
103
  "static/chunks/framework-161be364fd69a7ce.js",
107
104
  "static/chunks/main-91fb767ebd74c9c1.js",
108
105
  "static/chunks/433-233659be69169c19.js",
109
- "static/chunks/787-c18af810af3433f6.js",
110
106
  "static/chunks/576-6699fed6c88502fe.js",
111
107
  "static/chunks/985-4b4a3ed36ada16eb.js",
112
- "static/chunks/375-4a1c73eb22d653d2.js",
108
+ "static/chunks/375-1e1be370b94c7512.js",
113
109
  "static/chunks/102-881dcc464f983c89.js",
114
110
  "static/chunks/289-0031e62ca424247b.js",
115
111
  "static/css/09be1fdeab8595ab.css",
116
- "static/chunks/pages/knowledge/files-4f7bacb11528982e.js"
112
+ "static/chunks/pages/knowledge/files-ebe54cb8a7886df1.js"
117
113
  ],
118
114
  "/knowledge/manage": [
119
- "static/chunks/webpack-77d10b4726f13aa5.js",
115
+ "static/chunks/webpack-4224e970a97a4a86.js",
120
116
  "static/chunks/framework-161be364fd69a7ce.js",
121
117
  "static/chunks/main-91fb767ebd74c9c1.js",
122
118
  "static/chunks/433-233659be69169c19.js",
123
119
  "static/chunks/787-c18af810af3433f6.js",
124
120
  "static/chunks/506-93f730bc149d0dce.js",
125
- "static/chunks/788-7f7359a830e3f4fd.js",
126
- "static/chunks/pages/knowledge/manage-205647551376b193.js"
127
- ],
128
- "/knowledge/search": [
129
- "static/chunks/webpack-77d10b4726f13aa5.js",
130
- "static/chunks/framework-161be364fd69a7ce.js",
131
- "static/chunks/main-91fb767ebd74c9c1.js",
132
- "static/chunks/433-233659be69169c19.js",
133
- "static/chunks/787-c18af810af3433f6.js",
134
- "static/chunks/576-6699fed6c88502fe.js",
135
- "static/chunks/506-93f730bc149d0dce.js",
136
- "static/chunks/938-45efd516bb130bd5.js",
137
- "static/css/09be1fdeab8595ab.css",
138
- "static/chunks/pages/knowledge/search-577f08171a786578.js"
121
+ "static/chunks/788-72bd97a04f2aee27.js",
122
+ "static/chunks/pages/knowledge/manage-1363f53928abf98c.js"
139
123
  ],
140
124
  "/models": [
141
- "static/chunks/webpack-77d10b4726f13aa5.js",
125
+ "static/chunks/webpack-4224e970a97a4a86.js",
142
126
  "static/chunks/framework-161be364fd69a7ce.js",
143
127
  "static/chunks/main-91fb767ebd74c9c1.js",
144
- "static/chunks/433-233659be69169c19.js",
145
- "static/chunks/787-c18af810af3433f6.js",
146
128
  "static/chunks/576-6699fed6c88502fe.js",
147
129
  "static/chunks/195-2c0168eacab722d2.js",
148
130
  "static/chunks/985-4b4a3ed36ada16eb.js",
149
- "static/chunks/797-9166f495bb6138e3.js",
150
- "static/chunks/938-45efd516bb130bd5.js",
151
- "static/chunks/238-4ad320af4f787bd6.js",
152
- "static/chunks/pages/models-47a9542ac5bec5c0.js"
131
+ "static/chunks/371-291e96a3ec471950.js",
132
+ "static/chunks/337-b06909f6d29f6d1f.js",
133
+ "static/chunks/pages/models-8883cd27c251e4ae.js"
153
134
  ],
154
135
  "/overview": [
155
- "static/chunks/webpack-77d10b4726f13aa5.js",
136
+ "static/chunks/webpack-4224e970a97a4a86.js",
156
137
  "static/chunks/framework-161be364fd69a7ce.js",
157
138
  "static/chunks/main-91fb767ebd74c9c1.js",
158
- "static/chunks/433-233659be69169c19.js",
159
- "static/chunks/787-c18af810af3433f6.js",
160
- "static/chunks/694-2d545cfbb9779f2c.js",
161
- "static/chunks/795-e8cfd56df2293576.js",
162
- "static/chunks/pages/overview-1260176045ed5f7a.js"
139
+ "static/chunks/795-ed2375ec938022d8.js",
140
+ "static/chunks/pages/overview-63f3dda2dde16c9e.js"
163
141
  ],
164
142
  "/prompt": [
165
- "static/chunks/webpack-77d10b4726f13aa5.js",
143
+ "static/chunks/webpack-4224e970a97a4a86.js",
166
144
  "static/chunks/framework-161be364fd69a7ce.js",
167
145
  "static/chunks/main-91fb767ebd74c9c1.js",
168
- "static/chunks/433-233659be69169c19.js",
169
- "static/chunks/787-c18af810af3433f6.js",
170
146
  "static/chunks/576-6699fed6c88502fe.js",
171
147
  "static/chunks/195-2c0168eacab722d2.js",
172
148
  "static/chunks/985-4b4a3ed36ada16eb.js",
173
- "static/chunks/525-5d947137d894f5fe.js",
174
- "static/chunks/pages/prompt-aad4329e419fb442.js"
149
+ "static/chunks/478-ac4777b05b3c42e8.js",
150
+ "static/chunks/pages/prompt-5adc3ca18a2764f4.js"
175
151
  ],
176
152
  "/settings": [
177
- "static/chunks/webpack-77d10b4726f13aa5.js",
153
+ "static/chunks/webpack-4224e970a97a4a86.js",
178
154
  "static/chunks/framework-161be364fd69a7ce.js",
179
155
  "static/chunks/main-91fb767ebd74c9c1.js",
180
- "static/chunks/433-233659be69169c19.js",
181
- "static/chunks/787-c18af810af3433f6.js",
182
- "static/chunks/pages/settings-78d0d5322fd61afe.js"
156
+ "static/chunks/pages/settings-810eb1a6cf1a6b02.js"
183
157
  ],
184
158
  "/system/logs": [
185
- "static/chunks/webpack-77d10b4726f13aa5.js",
159
+ "static/chunks/webpack-4224e970a97a4a86.js",
186
160
  "static/chunks/framework-161be364fd69a7ce.js",
187
161
  "static/chunks/main-91fb767ebd74c9c1.js",
188
162
  "static/chunks/433-233659be69169c19.js",
189
163
  "static/chunks/576-6699fed6c88502fe.js",
190
164
  "static/chunks/195-2c0168eacab722d2.js",
191
165
  "static/chunks/985-4b4a3ed36ada16eb.js",
192
- "static/chunks/375-4a1c73eb22d653d2.js",
166
+ "static/chunks/375-1e1be370b94c7512.js",
193
167
  "static/chunks/102-881dcc464f983c89.js",
194
168
  "static/chunks/289-0031e62ca424247b.js",
195
- "static/chunks/861-91cbdd34b8e23151.js",
196
- "static/chunks/pages/system/logs-c97311a24d1a67e1.js"
169
+ "static/chunks/pages/system/logs-1b77471f6db59846.js"
197
170
  ]
198
171
  },
199
172
  "ampFirstPages": []
@@ -3,9 +3,9 @@
3
3
  "routes": {},
4
4
  "dynamicRoutes": {},
5
5
  "preview": {
6
- "previewModeId": "70619050285c84744d9d292f7cab2154",
7
- "previewModeSigningKey": "a3fd766e16fc4fb82006b7f9695b6036ca754b79d3a5df37ec61fb26ce43856b",
8
- "previewModeEncryptionKey": "bc0d9872a9fc02a77fc19e46220a5a6a465b943b4f44ccead1ac6d2c27655c66"
6
+ "previewModeId": "1c8a80571581e4736b825b539ac1109e",
7
+ "previewModeSigningKey": "e336ead5ed6a2f471e3b107224874777c5dfcead94842d2ad0bd20db8dc5b9b5",
8
+ "previewModeEncryptionKey": "b69288370e99188d75d9839cb9e4d9b2c47167e2504378554a80c37693eb8a7f"
9
9
  },
10
10
  "notFoundRoutes": []
11
11
  }
@@ -110,12 +110,6 @@
110
110
  "routeKeys": {},
111
111
  "namedRegex": "^/knowledge/manage(?:/)?$"
112
112
  },
113
- {
114
- "page": "/knowledge/search",
115
- "regex": "^/knowledge/search(?:/)?$",
116
- "routeKeys": {},
117
- "namedRegex": "^/knowledge/search(?:/)?$"
118
- },
119
113
  {
120
114
  "page": "/models",
121
115
  "regex": "^/models(?:/)?$",
@@ -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)(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)}})}};
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():"暂无日志";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:["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:"运行时间",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:"System Resources"}),(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:"文件角色",value:o,animationClass:"stagger-5"}),(0,e.jsx)(l,{title:"提示词角色",value:q,animationClass:"stagger-5"}),(0,e.jsx)(l,{title:"模板数量",value:s,animationClass:"stagger-5"}),(0,e.jsx)(l,{title:"语义模型",value:u?.provider==="openai-compatible"?"External":u?"Local":"—",subtext:u?.model??"Not Configured",animationClass:"stagger-5"}),(0,e.jsx)(l,{title:"模型供应商",value:m,animationClass:"stagger-5"}),(0,e.jsx)(l,{title:"审计日志",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:"Hardware Usage"}),(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:"CPU Usage"}),(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:"Memory Usage"}),(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:"Activity Context"}),(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:"Top Model"}),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:"No data available"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-xs text-[var(--colorTextTertiary)] mb-2",children:"Recent Task Types"}),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)}})}};