@evomap/evolver 1.80.6 → 1.80.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.zh-CN.md +18 -11
  2. package/assets/gep/candidates.jsonl +3 -2
  3. package/index.js +55 -2
  4. package/package.json +1 -1
  5. package/src/adapters/opencode.js +137 -2
  6. package/src/config.js +5 -0
  7. package/src/evolve/guards.js +1 -1
  8. package/src/evolve/pipeline/collect.js +1 -1
  9. package/src/evolve/pipeline/dispatch.js +1 -1
  10. package/src/evolve/pipeline/enrich.js +1 -1
  11. package/src/evolve/pipeline/hub.js +1 -1
  12. package/src/evolve/pipeline/select.js +1 -1
  13. package/src/evolve/pipeline/signals.js +1 -1
  14. package/src/evolve/utils.js +1 -1
  15. package/src/evolve.js +1 -1
  16. package/src/gep/.integrity +0 -0
  17. package/src/gep/a2aProtocol.js +1 -1
  18. package/src/gep/assetStore.js +59 -5
  19. package/src/gep/candidateEval.js +1 -1
  20. package/src/gep/candidates.js +1 -1
  21. package/src/gep/contentHash.js +1 -1
  22. package/src/gep/crypto.js +1 -1
  23. package/src/gep/curriculum.js +1 -1
  24. package/src/gep/deviceId.js +1 -1
  25. package/src/gep/envFingerprint.js +1 -1
  26. package/src/gep/epigenetics.js +1 -0
  27. package/src/gep/explore.js +1 -1
  28. package/src/gep/hash.js +1 -0
  29. package/src/gep/hubReview.js +1 -1
  30. package/src/gep/hubSearch.js +1 -1
  31. package/src/gep/hubVerify.js +1 -1
  32. package/src/gep/integrityCheck.js +1 -1
  33. package/src/gep/learningSignals.js +1 -1
  34. package/src/gep/memoryGraph.js +1 -1
  35. package/src/gep/memoryGraphAdapter.js +1 -1
  36. package/src/gep/mutation.js +1 -1
  37. package/src/gep/narrativeMemory.js +1 -1
  38. package/src/gep/personality.js +1 -1
  39. package/src/gep/policyCheck.js +1 -1
  40. package/src/gep/prompt.js +1 -1
  41. package/src/gep/reflection.js +1 -1
  42. package/src/gep/selector.js +1 -1
  43. package/src/gep/shield.js +1 -1
  44. package/src/gep/skillDistiller.js +1 -1
  45. package/src/gep/solidify.js +1 -1
  46. package/src/gep/strategy.js +1 -1
  47. package/src/gep/taskReceiver.js +7 -2
  48. package/src/webui/client/clientJs/assets.js +111 -0
  49. package/src/webui/client/clientJs/bootstrap.js +92 -0
  50. package/src/webui/client/clientJs/common.js +77 -0
  51. package/src/webui/client/clientJs/i18n.js +366 -0
  52. package/src/webui/client/clientJs/index.js +35 -0
  53. package/src/webui/client/clientJs/interactions.js +351 -0
  54. package/src/webui/client/clientJs/overview.js +152 -0
  55. package/src/webui/client/clientJs/personality.js +285 -0
  56. package/src/webui/client/clientJs/pipelines.js +330 -0
  57. package/src/webui/client/indexHtml.js +221 -0
  58. package/src/webui/client/static.js +23 -0
  59. package/src/webui/client/stylesCss.js +639 -0
  60. package/src/webui/client/vendor/README.md +15 -0
  61. package/src/webui/client/vendor/echarts.min.js +45 -0
  62. package/src/webui/index.js +14 -0
  63. package/src/webui/observer/assets.js +146 -0
  64. package/src/webui/observer/index.js +37 -0
  65. package/src/webui/observer/interactions.js +120 -0
  66. package/src/webui/observer/jsonl.js +75 -0
  67. package/src/webui/observer/paths.js +46 -0
  68. package/src/webui/observer/personality.js +43 -0
  69. package/src/webui/observer/pipelineEvents.js +58 -0
  70. package/src/webui/observer/redact.js +63 -0
  71. package/src/webui/observer/runs.js +356 -0
  72. package/src/webui/observer/safety.js +57 -0
  73. package/src/webui/observer/skills.js +70 -0
  74. package/src/webui/observer/status.js +71 -0
  75. package/src/webui/server/http.js +138 -0
  76. package/src/webui/server/routes.js +41 -0
@@ -0,0 +1,639 @@
1
+ 'use strict';
2
+
3
+ function getStylesCss() {
4
+ return `
5
+ /* ===========================================================
6
+ * Theme — HSL CSS variables, palette ported from
7
+ * evomap/evox-desktop/frontend/src/styles.css so the read-only
8
+ * Evolver dashboard shares the same visual language as the
9
+ * Wails desktop app.
10
+ * ----------------------------------------------------------- */
11
+ :root {
12
+ --background: 0 0% 100%;
13
+ --foreground: 0 0% 9%;
14
+ --card: 0 0% 100%;
15
+ --card-foreground: 0 0% 9%;
16
+ --popover: 0 0% 100%;
17
+ --popover-foreground: 0 0% 9%;
18
+ --primary: 240 5.9% 10%;
19
+ --primary-foreground: 0 0% 98%;
20
+ --secondary: 240 5% 94%;
21
+ --secondary-foreground: 240 5.9% 10%;
22
+ --muted: 240 5% 94%;
23
+ --muted-foreground: 240 3.8% 42%;
24
+ --accent: 217 91% 60%;
25
+ --accent-foreground: 0 0% 98%;
26
+ --destructive: 0 72% 50%;
27
+ --destructive-foreground: 0 0% 98%;
28
+ --success: 142 71% 38%;
29
+ --warning: 38 95% 50%;
30
+ --border: 240 5.9% 87%;
31
+ --input: 240 5.9% 87%;
32
+ --ring: 240 5.9% 10%;
33
+ --radius: 0.75rem;
34
+ }
35
+ /* Dark theme — applied when <html> has the .dark class. The class is
36
+ * set synchronously in <head> by THEME_INIT_SCRIPT (see indexHtml.js)
37
+ * before the stylesheet evaluates, so there is no flash of the wrong
38
+ * palette on first paint. Selection is class-based (not @media) so the
39
+ * topbar toggle can override the OS preference at runtime. */
40
+ .dark {
41
+ --background: 0 0% 4%;
42
+ --foreground: 0 0% 98%;
43
+ --card: 0 0% 6%;
44
+ --card-foreground: 0 0% 98%;
45
+ --popover: 0 0% 6%;
46
+ --popover-foreground: 0 0% 98%;
47
+ --primary: 0 0% 98%;
48
+ --primary-foreground: 240 5.9% 10%;
49
+ --secondary: 0 0% 12%;
50
+ --secondary-foreground: 0 0% 98%;
51
+ --muted: 0 0% 12%;
52
+ --muted-foreground: 240 5% 64.9%;
53
+ --accent: 217 91% 65%;
54
+ --accent-foreground: 240 5.9% 10%;
55
+ --destructive: 0 62.8% 50%;
56
+ --destructive-foreground: 0 0% 98%;
57
+ --success: 142 60% 45%;
58
+ --warning: 38 95% 56%;
59
+ --border: 0 0% 14%;
60
+ --input: 0 0% 14%;
61
+ --ring: 0 0% 83.1%;
62
+ }
63
+
64
+ /* ===========================================================
65
+ * Base
66
+ * ----------------------------------------------------------- */
67
+ * { box-sizing: border-box; }
68
+ html, body { height: 100%; margin: 0; }
69
+ body {
70
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji";
71
+ font-size: 14px;
72
+ line-height: 1.5;
73
+ color: hsl(var(--foreground));
74
+ background: hsl(var(--background));
75
+ font-feature-settings: "cv02", "cv03", "cv04", "cv11";
76
+ -webkit-font-smoothing: antialiased;
77
+ -moz-osx-font-smoothing: grayscale;
78
+ }
79
+ ::selection { background: hsl(var(--primary) / 0.3); color: inherit; }
80
+ code, pre, .mono { font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace; }
81
+
82
+ /* Atmosphere — single soft radial gradient, lifted from evox-desktop. */
83
+ .app-atmosphere::before {
84
+ content: "";
85
+ position: fixed; inset: 0;
86
+ pointer-events: none;
87
+ z-index: 0;
88
+ background: radial-gradient(ellipse 80% 80% at 50% -20%, rgba(120, 119, 198, 0.10), rgba(255, 255, 255, 0) 60%);
89
+ }
90
+ .dark .app-atmosphere::before {
91
+ background: radial-gradient(ellipse 80% 80% at 50% -20%, rgba(99, 102, 241, 0.08), rgba(0, 0, 0, 0) 60%);
92
+ }
93
+
94
+ /* Thin scrollbar (only inside .evox-scroll containers). */
95
+ .evox-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
96
+ .evox-scroll::-webkit-scrollbar-track { background: transparent; }
97
+ .evox-scroll::-webkit-scrollbar-thumb {
98
+ background: hsl(var(--muted-foreground) / 0.3);
99
+ border-radius: 10px;
100
+ border: 2px solid transparent;
101
+ background-clip: padding-box;
102
+ }
103
+ .evox-scroll::-webkit-scrollbar-thumb:hover {
104
+ background: hsl(var(--muted-foreground) / 0.5);
105
+ }
106
+
107
+ /* ===========================================================
108
+ * App shell — sidebar (240) + main column
109
+ * ----------------------------------------------------------- */
110
+ .shell {
111
+ position: relative;
112
+ z-index: 1;
113
+ display: flex;
114
+ height: 100vh;
115
+ overflow: hidden;
116
+ }
117
+
118
+ .sidebar {
119
+ position: relative;
120
+ z-index: 10;
121
+ display: flex;
122
+ flex-direction: column;
123
+ width: 240px;
124
+ flex-shrink: 0;
125
+ border-right: 1px solid hsl(var(--border) / 0.6);
126
+ background: hsl(var(--background) / 0.7);
127
+ backdrop-filter: blur(20px);
128
+ -webkit-backdrop-filter: blur(20px);
129
+ padding: 8px 0 0 0;
130
+ }
131
+
132
+ /* Brand: gradient mark + title + uppercase eyebrow. */
133
+ .brand {
134
+ display: flex;
135
+ align-items: center;
136
+ gap: 12px;
137
+ padding: 16px 20px 12px 20px;
138
+ }
139
+ .brand-mark {
140
+ width: 56px; height: 56px;
141
+ border-radius: 16px;
142
+ display: block;
143
+ object-fit: cover;
144
+ box-shadow: 0 6px 20px rgba(0,0,0,0.14), inset 0 0 0 1px rgba(0,0,0,0.10);
145
+ user-select: none;
146
+ }
147
+ .dark .brand-mark {
148
+ box-shadow: 0 6px 20px rgba(0,0,0,0.36), inset 0 0 0 1px rgba(255,255,255,0.10);
149
+ }
150
+ .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
151
+ .brand-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: hsl(var(--foreground)); }
152
+ .brand-eyebrow {
153
+ margin-top: 4px;
154
+ font-size: 10px; font-weight: 500;
155
+ text-transform: uppercase; letter-spacing: 0.2em;
156
+ color: hsl(var(--muted-foreground));
157
+ }
158
+
159
+ .nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 12px 12px; }
160
+ .nav-item {
161
+ display: flex; align-items: center; gap: 12px;
162
+ padding: 8px 12px;
163
+ font-size: 13px; font-weight: 500;
164
+ color: hsl(var(--muted-foreground));
165
+ background: transparent;
166
+ border: 0;
167
+ border-radius: 8px;
168
+ cursor: pointer;
169
+ text-align: left;
170
+ transition: background-color 150ms, color 150ms, box-shadow 150ms;
171
+ }
172
+ .nav-item:hover {
173
+ color: hsl(var(--foreground));
174
+ background: hsl(var(--foreground) / 0.05);
175
+ }
176
+ /* Active nav uses an accent-tinted background so the brand color
177
+ * dominates and any radial-atmosphere bleed through the translucent
178
+ * sidebar (the previous "pinkish" wash) is overridden. */
179
+ .nav-item.active {
180
+ color: hsl(var(--accent));
181
+ background: hsl(var(--accent) / 0.10);
182
+ box-shadow: inset 0 0 0 1px hsl(var(--accent) / 0.18);
183
+ }
184
+ .nav-item.active .nav-icon { color: hsl(var(--accent)); opacity: 1; }
185
+ .nav-icon {
186
+ display: inline-flex; align-items: center; justify-content: center;
187
+ width: 16px; height: 16px;
188
+ opacity: 0.65;
189
+ transition: opacity 150ms;
190
+ }
191
+ .nav-item.active .nav-icon, .nav-item:hover .nav-icon { opacity: 0.95; }
192
+ .nav-icon svg { width: 16px; height: 16px; }
193
+
194
+ .sidebar-spacer { flex: 1 1 auto; min-height: 0; }
195
+ .sidebar-footer {
196
+ padding: 12px 20px;
197
+ font-size: 10px; font-weight: 500;
198
+ letter-spacing: 0.06em;
199
+ color: hsl(var(--muted-foreground) / 0.7);
200
+ truncate: ellipsis;
201
+ }
202
+
203
+ /* ===========================================================
204
+ * Top bar (page title + actions)
205
+ * ----------------------------------------------------------- */
206
+ .main-col { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
207
+ .topbar {
208
+ display: flex; align-items: center; justify-content: space-between;
209
+ height: 64px; flex-shrink: 0;
210
+ padding: 0 24px;
211
+ border-bottom: 1px solid hsl(var(--border) / 0.5);
212
+ background: hsl(var(--background) / 0.8);
213
+ backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
214
+ z-index: 5;
215
+ }
216
+ .topbar-left { display: flex; flex-direction: column; gap: 2px; }
217
+ .topbar-title { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
218
+ .topbar-eyebrow { margin: 0; font-size: 11px; color: hsl(var(--muted-foreground)); }
219
+ .topbar-actions { display: flex; align-items: center; gap: 8px; }
220
+
221
+ .btn-ghost {
222
+ display: inline-flex; align-items: center; gap: 6px;
223
+ padding: 6px 12px;
224
+ font-size: 13px; font-weight: 500;
225
+ color: hsl(var(--muted-foreground));
226
+ background: hsl(var(--muted) / 0.4);
227
+ border: 1px solid hsl(var(--border) / 0.7);
228
+ border-radius: 8px;
229
+ cursor: pointer;
230
+ transition: background-color 150ms, color 150ms;
231
+ }
232
+ .btn-ghost:hover {
233
+ color: hsl(var(--foreground));
234
+ background: hsl(var(--foreground) / 0.05);
235
+ }
236
+ .btn-ghost .nav-icon { opacity: 0.7; }
237
+ .btn-ghost:hover .nav-icon { opacity: 1; }
238
+
239
+ /* Topbar theme toggle. Sun and moon icons are stacked; only one is
240
+ * visible at a time depending on the active theme. The button itself
241
+ * is a flat, square icon-button (28x28) consistent with evox-desktop. */
242
+ .btn-icon {
243
+ display: inline-flex; align-items: center; justify-content: center;
244
+ width: 28px; height: 28px;
245
+ color: hsl(var(--muted-foreground) / 0.85);
246
+ background: transparent;
247
+ border: 0;
248
+ border-radius: 6px;
249
+ cursor: pointer;
250
+ transition: background-color 150ms, color 150ms;
251
+ }
252
+ .btn-icon:hover {
253
+ color: hsl(var(--foreground));
254
+ background: hsl(var(--foreground) / 0.05);
255
+ }
256
+ .btn-icon svg { width: 14px; height: 14px; }
257
+ .theme-icon-sun { display: none; }
258
+ .theme-icon-moon { display: inline-flex; }
259
+ .dark .theme-icon-sun { display: inline-flex; }
260
+ .dark .theme-icon-moon { display: none; }
261
+
262
+ /* Locale toggle reuses .btn-icon geometry but renders a 2-character
263
+ * glyph (EN / 中) instead of an SVG. The slightly bumped letter-spacing
264
+ * keeps the Latin variant from looking cramped at 11px. */
265
+ .btn-locale .locale-glyph {
266
+ font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
267
+ line-height: 1; color: inherit;
268
+ }
269
+ [data-locale="zh"] .btn-locale .locale-glyph { font-size: 13px; letter-spacing: 0; }
270
+
271
+ /* ===========================================================
272
+ * Content + cards
273
+ * ----------------------------------------------------------- */
274
+ .content { flex: 1 1 auto; overflow-y: auto; padding: 24px; }
275
+
276
+ .view { display: none; flex-direction: column; gap: 20px; }
277
+ .view.active { display: flex; }
278
+
279
+ .grid-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
280
+ .grid-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
281
+ .grid-bottom { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
282
+ @media (max-width: 1100px) { .grid-bottom { grid-template-columns: 1fr; } }
283
+
284
+ .card {
285
+ background: hsl(var(--card) / 0.6);
286
+ border: 1px solid hsl(var(--border) / 0.4);
287
+ border-radius: 16px;
288
+ padding: 18px 20px;
289
+ box-shadow: 0 1px 2px rgba(0,0,0,0.04);
290
+ backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
291
+ }
292
+ .card-sub { margin: -6px 0 12px 0; }
293
+
294
+ h1, h2, h3, h4 { margin: 0; }
295
+ h2 {
296
+ font-size: 10px; font-weight: 600;
297
+ text-transform: uppercase; letter-spacing: 0.2em;
298
+ color: hsl(var(--muted-foreground));
299
+ margin: 0 0 14px 0;
300
+ }
301
+ h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px 0; }
302
+ h4 {
303
+ font-size: 11px; font-weight: 600;
304
+ text-transform: uppercase; letter-spacing: 0.1em;
305
+ color: hsl(var(--muted-foreground));
306
+ margin: 0 0 8px 0;
307
+ }
308
+
309
+ .chart-container { width: 100%; height: 240px; }
310
+ .chart-container.chart-tall { height: 320px; }
311
+ .chart-container.chart-xl { height: 480px; }
312
+
313
+ button { font-family: inherit; font-size: 13px; cursor: pointer; }
314
+ code {
315
+ background: hsl(var(--muted) / 0.7);
316
+ padding: 1px 6px;
317
+ border-radius: 4px;
318
+ font-size: 0.85em;
319
+ color: hsl(var(--foreground));
320
+ }
321
+ .muted { color: hsl(var(--muted-foreground)); }
322
+ .small { font-size: 12px; }
323
+
324
+ dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
325
+ dt { color: hsl(var(--muted-foreground)); }
326
+ dd { margin: 0; font-weight: 500; word-break: break-all; }
327
+
328
+ /* ===========================================================
329
+ * Tables
330
+ * ----------------------------------------------------------- */
331
+ .table-wrapper { overflow-x: auto; margin: 0 -20px -18px -20px; }
332
+ table { width: 100%; border-collapse: collapse; font-size: 13px; }
333
+ th, td {
334
+ padding: 10px 20px;
335
+ text-align: left;
336
+ border-bottom: 1px solid hsl(var(--border) / 0.5);
337
+ vertical-align: top;
338
+ }
339
+ th {
340
+ color: hsl(var(--muted-foreground));
341
+ font-weight: 500;
342
+ background: hsl(var(--muted) / 0.4);
343
+ position: sticky; top: 0;
344
+ font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
345
+ }
346
+ tr:last-child td { border-bottom: none; }
347
+ #runsTable tbody tr { transition: background-color 120ms; }
348
+ #runsTable tbody tr:hover td { background: hsl(var(--foreground) / 0.04); cursor: pointer; }
349
+
350
+ .data-table { width: 100%; }
351
+ .data-table td details summary { cursor: pointer; color: hsl(var(--accent)); }
352
+
353
+ /* ===========================================================
354
+ * Status indicators (dot) + colored pills
355
+ * ----------------------------------------------------------- */
356
+ .status-indicator {
357
+ display: inline-block; width: 8px; height: 8px;
358
+ border-radius: 50%;
359
+ margin-right: 6px;
360
+ vertical-align: middle;
361
+ }
362
+ .status-success { background: hsl(var(--success)); }
363
+ .status-running { background: hsl(var(--accent)); }
364
+ .status-failed { background: hsl(var(--destructive)); }
365
+ .status-blocked { background: hsl(var(--warning)); }
366
+ .status-skipped { background: hsl(var(--muted-foreground)); }
367
+ .status-warning { background: hsl(var(--warning)); }
368
+ .status-abandoned { background: color-mix(in srgb, hsl(var(--warning)) 60%, hsl(var(--muted-foreground))); }
369
+
370
+ .pill {
371
+ display: inline-block;
372
+ padding: 2px 9px;
373
+ border-radius: 999px;
374
+ font-size: 11px; font-weight: 500;
375
+ background: hsl(var(--accent) / 0.12);
376
+ color: hsl(var(--accent));
377
+ margin: 2px 2px 2px 0;
378
+ }
379
+ .pill.repair { background: hsl(var(--destructive) / 0.14); color: hsl(var(--destructive)); }
380
+ .pill.optimize { background: hsl(var(--accent) / 0.14); color: hsl(var(--accent)); }
381
+ .pill.innovate { background: hsl(var(--success) / 0.14); color: hsl(var(--success)); }
382
+ .pill.explore { background: hsl(var(--warning) / 0.18); color: hsl(var(--warning)); }
383
+ .pill.signal { background: hsl(var(--warning) / 0.14); color: hsl(var(--warning)); }
384
+ .pill.asset_publish, .pill.asset_publish_skip { background: hsl(var(--success) / 0.14); color: hsl(var(--success)); }
385
+ .pill.hub_search_hit { background: hsl(var(--accent) / 0.14); color: hsl(var(--accent)); }
386
+ .pill.asset_reuse, .pill.asset_reference { background: hsl(265 80% 55% / 0.18); color: hsl(265 70% 60%); }
387
+ .pill.hello { background: hsl(var(--accent) / 0.16); color: hsl(var(--accent)); }
388
+ .pill.heartbeat { background: hsl(var(--success) / 0.16); color: hsl(var(--success)); }
389
+ .pill.fetch { background: hsl(265 80% 55% / 0.18); color: hsl(265 70% 60%); }
390
+ .pill.lifecycle { background: hsl(var(--accent) / 0.14); color: hsl(var(--accent)); }
391
+ .pill.asset { background: hsl(38 95% 50% / 0.18); color: hsl(38 95% 45%); }
392
+ .pill.atp { background: hsl(265 80% 55% / 0.16); color: hsl(265 70% 60%); }
393
+
394
+ /* ===========================================================
395
+ * Timeline
396
+ * ----------------------------------------------------------- */
397
+ .timeline { list-style: none; padding: 0; margin: 0; position: relative; }
398
+ .timeline::before {
399
+ content: ''; position: absolute;
400
+ left: 11px; top: 4px; bottom: 0;
401
+ width: 2px;
402
+ background: hsl(var(--border));
403
+ }
404
+ .timeline li { position: relative; padding: 0 0 18px 32px; }
405
+ .timeline li:last-child { padding-bottom: 0; }
406
+ .timeline li::before {
407
+ content: ''; position: absolute;
408
+ left: 6px; top: 4px;
409
+ width: 12px; height: 12px;
410
+ border-radius: 50%;
411
+ background: hsl(var(--card));
412
+ border: 2px solid hsl(var(--border));
413
+ z-index: 1;
414
+ }
415
+ .timeline li.success::before { border-color: hsl(var(--success)); background: hsl(var(--success)); }
416
+ .timeline li.running::before { border-color: hsl(var(--accent)); background: hsl(var(--accent)); }
417
+ .timeline li.failed::before { border-color: hsl(var(--destructive)); background: hsl(var(--destructive)); }
418
+ .timeline li.blocked::before { border-color: hsl(var(--warning)); background: hsl(var(--warning)); }
419
+ .timeline-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; line-height: 1; }
420
+ .timeline-desc { font-size: 13px; color: hsl(var(--muted-foreground)); margin: 0; line-height: 1.45; }
421
+
422
+ /* ===========================================================
423
+ * Run detail blocks
424
+ * ----------------------------------------------------------- */
425
+ .run-header { margin-bottom: 16px; }
426
+ .run-meta {
427
+ display: flex; gap: 18px;
428
+ font-size: 13px; color: hsl(var(--muted-foreground));
429
+ flex-wrap: wrap; margin-top: 4px;
430
+ }
431
+ .run-meta strong { color: hsl(var(--foreground)); font-weight: 500; }
432
+ .run-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 18px; }
433
+ @media (max-width: 1000px) { .run-body { grid-template-columns: 1fr; } }
434
+ .run-detail-grid {
435
+ display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
436
+ gap: 12px; padding-top: 16px;
437
+ border-top: 1px solid hsl(var(--border) / 0.5);
438
+ }
439
+ .detail-block {
440
+ background: hsl(var(--muted) / 0.4);
441
+ border: 1px solid hsl(var(--border) / 0.5);
442
+ border-radius: 12px;
443
+ padding: 14px;
444
+ }
445
+ .detail-block h4 { margin: 0 0 8px 0; }
446
+ .reason-list { padding-left: 18px; margin: 4px 0; font-size: 12.5px; }
447
+ .reason-list li { margin: 2px 0; }
448
+ .snippet {
449
+ font-family: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
450
+ font-size: 11.5px;
451
+ background: hsl(var(--muted) / 0.6);
452
+ padding: 10px 12px;
453
+ border-radius: 8px;
454
+ max-height: 180px;
455
+ overflow: auto;
456
+ white-space: pre-wrap;
457
+ word-break: break-word;
458
+ }
459
+
460
+ /* ===========================================================
461
+ * Filter bar (Hub Activity)
462
+ * ----------------------------------------------------------- */
463
+ .filter-bar {
464
+ display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
465
+ padding: 8px 0 12px 0;
466
+ border-bottom: 1px solid hsl(var(--border) / 0.5);
467
+ margin-bottom: 12px;
468
+ }
469
+ .filter-group { display: flex; gap: 6px; align-items: center; }
470
+ .filter-label {
471
+ font-size: 11px; color: hsl(var(--muted-foreground));
472
+ text-transform: uppercase; letter-spacing: 0.1em;
473
+ }
474
+ .filter-pill {
475
+ background: transparent;
476
+ color: hsl(var(--muted-foreground));
477
+ border: 1px solid hsl(var(--border));
478
+ padding: 4px 12px;
479
+ border-radius: 999px;
480
+ cursor: pointer;
481
+ font-size: 12px;
482
+ transition: color 120ms, border-color 120ms, background-color 120ms;
483
+ }
484
+ .filter-pill:hover { color: hsl(var(--foreground)); border-color: hsl(var(--accent) / 0.6); }
485
+ .filter-pill.active {
486
+ background: hsl(var(--accent) / 0.14);
487
+ color: hsl(var(--accent));
488
+ border-color: hsl(var(--accent) / 0.4);
489
+ }
490
+ .filter-toggle {
491
+ display: flex; gap: 6px; align-items: center;
492
+ font-size: 12px;
493
+ color: hsl(var(--muted-foreground));
494
+ cursor: pointer;
495
+ }
496
+
497
+ /* ===========================================================
498
+ * Lifecycle / stat boxes
499
+ * ----------------------------------------------------------- */
500
+ .lifecycle-summary {
501
+ display: grid;
502
+ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
503
+ gap: 10px;
504
+ margin-bottom: 14px;
505
+ }
506
+ .stat-box {
507
+ background: hsl(var(--muted) / 0.4);
508
+ border: 1px solid hsl(var(--border) / 0.5);
509
+ border-radius: 12px;
510
+ padding: 10px 14px;
511
+ }
512
+ .stat-box.success { border-color: hsl(var(--success) / 0.4); }
513
+ .stat-box.pending { border-color: hsl(var(--warning) / 0.4); }
514
+ .stat-box.failed { border-color: hsl(var(--destructive) / 0.4); }
515
+ .stat-label {
516
+ font-size: 10px;
517
+ color: hsl(var(--muted-foreground));
518
+ text-transform: uppercase;
519
+ letter-spacing: 0.12em;
520
+ }
521
+ .stat-value { font-size: 17px; font-weight: 600; margin-top: 4px; letter-spacing: -0.01em; }
522
+ .lifecycle-last-error {
523
+ grid-column: 1 / -1;
524
+ padding: 10px 12px;
525
+ border-radius: 8px;
526
+ background: hsl(var(--destructive) / 0.10);
527
+ border: 1px solid hsl(var(--destructive) / 0.3);
528
+ font-size: 13px;
529
+ }
530
+ .lifecycle-table { font-size: 12.5px; }
531
+ .lifecycle-table tr.fail td { color: hsl(var(--destructive)); }
532
+ .lifecycle-error {
533
+ font-family: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
534
+ font-size: 11.5px;
535
+ max-width: 320px; overflow: hidden;
536
+ text-overflow: ellipsis; white-space: nowrap;
537
+ }
538
+
539
+ /* ===========================================================
540
+ * Score bar / validation
541
+ * ----------------------------------------------------------- */
542
+ .score-bar {
543
+ position: relative; display: inline-block;
544
+ width: 90px; height: 16px;
545
+ background: hsl(var(--muted) / 0.6);
546
+ border-radius: 6px; overflow: hidden;
547
+ vertical-align: middle;
548
+ }
549
+ .score-bar-lg { width: 240px; height: 22px; }
550
+ .score-bar-fill { height: 100%; transition: width 0.4s ease; }
551
+ .score-bar-text {
552
+ position: absolute; inset: 0;
553
+ display: flex; align-items: center; justify-content: center;
554
+ font-size: 11px; font-weight: 600;
555
+ color: hsl(var(--foreground));
556
+ text-shadow: 0 0 2px hsl(var(--card));
557
+ }
558
+ .validation-block { grid-column: span 2; }
559
+ .validation-summary { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 10px; }
560
+ .validation-status { display: flex; align-items: center; gap: 6px; font-size: 14px; }
561
+ .validation-score-wrap { display: flex; align-items: center; gap: 10px; }
562
+ .validation-score-label { font-size: 12px; color: hsl(var(--muted-foreground)); }
563
+ .validation-dims { margin: 6px 0; }
564
+ .validation-dim {
565
+ background: hsl(var(--success) / 0.18) !important;
566
+ color: hsl(var(--success)) !important;
567
+ }
568
+ .validation-observed { margin-top: 6px; font-size: 12.5px; }
569
+ .validation-predictive { margin-top: 8px; font-size: 12.5px; }
570
+ .validation-predictive summary { cursor: pointer; color: hsl(var(--accent)); }
571
+
572
+ /* ===========================================================
573
+ * Skill / event / stream / snapshot lists
574
+ * ----------------------------------------------------------- */
575
+ .skill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
576
+ .skill-list li { padding: 10px 0; border-bottom: 1px solid hsl(var(--border) / 0.5); }
577
+ .skill-list li:last-child { border: none; }
578
+ .skill-list p { margin: 4px 0; font-size: 13px; }
579
+
580
+ .asset-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
581
+ .asset-tab {
582
+ background: hsl(var(--muted) / 0.4);
583
+ color: hsl(var(--muted-foreground));
584
+ border: 1px solid hsl(var(--border) / 0.7);
585
+ padding: 6px 14px;
586
+ border-radius: 8px;
587
+ cursor: pointer;
588
+ font-size: 13px; font-weight: 500;
589
+ transition: background-color 120ms, color 120ms;
590
+ }
591
+ .asset-tab:hover { color: hsl(var(--foreground)); }
592
+ .asset-tab.active {
593
+ background: hsl(var(--accent) / 0.12);
594
+ color: hsl(var(--accent));
595
+ border-color: hsl(var(--accent) / 0.4);
596
+ }
597
+
598
+ .event-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
599
+ .event-list li {
600
+ padding: 12px 14px;
601
+ background: hsl(var(--muted) / 0.4);
602
+ border: 1px solid hsl(var(--border) / 0.4);
603
+ border-radius: 10px;
604
+ font-size: 13px;
605
+ display: flex; flex-direction: column; gap: 4px;
606
+ }
607
+
608
+ .stream-list {
609
+ list-style: none; padding: 0; margin: 0;
610
+ display: flex; flex-direction: column; gap: 8px;
611
+ max-height: 540px; overflow-y: auto;
612
+ }
613
+ .stream-item {
614
+ padding: 10px 14px;
615
+ background: hsl(var(--muted) / 0.4);
616
+ border-left: 3px solid hsl(var(--accent));
617
+ border-radius: 0 10px 10px 0;
618
+ font-size: 13px;
619
+ }
620
+ .stream-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
621
+ .stream-title { font-weight: 500; word-break: break-all; }
622
+
623
+ .snapshot-grid {
624
+ display: grid;
625
+ grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
626
+ gap: 12px;
627
+ }
628
+ .snapshot-grid .snapshot-empty { grid-column: 1 / -1; margin: 0; white-space: nowrap; }
629
+ .snapshot-card {
630
+ padding: 12px 14px;
631
+ background: hsl(var(--muted) / 0.4);
632
+ border: 1px solid hsl(var(--border) / 0.4);
633
+ border-radius: 10px;
634
+ font-size: 13px;
635
+ }
636
+ `;
637
+ }
638
+
639
+ module.exports = { getStylesCss };
@@ -0,0 +1,15 @@
1
+ # Vendored client assets
2
+
3
+ | File | Source | Version | License |
4
+ |---|---|---|---|
5
+ | echarts.min.js | https://github.com/apache/echarts | 5.5.0 | Apache-2.0 |
6
+
7
+ Vendored so the local Web UI dashboard works fully offline and avoids
8
+ leaking a request hint (IP / User-Agent) to a third-party CDN.
9
+
10
+ ## Upgrade procedure
11
+
12
+ 1. `npm view echarts@<version> dist.shasum` to grab the published shasum.
13
+ 2. `npm view echarts@<version> dist.tarball` to grab the tarball URL.
14
+ 3. Download tarball, verify shasum, extract `package/dist/echarts.min.js`.
15
+ 4. Replace the file here, bump the table above, run `node --test test/webui*.test.js`.