codexmate 0.0.18 → 0.0.20

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 (73) hide show
  1. package/README.en.md +34 -17
  2. package/README.md +34 -25
  3. package/cli/config-health.js +338 -0
  4. package/cli.js +1570 -839
  5. package/lib/cli-models-utils.js +186 -27
  6. package/lib/cli-network-utils.js +117 -101
  7. package/package.json +8 -1
  8. package/web-ui/app.js +379 -5754
  9. package/web-ui/index.html +15 -2079
  10. package/web-ui/logic.agents-diff.mjs +386 -0
  11. package/web-ui/logic.claude.mjs +108 -0
  12. package/web-ui/logic.mjs +5 -793
  13. package/web-ui/logic.runtime.mjs +124 -0
  14. package/web-ui/logic.sessions.mjs +263 -0
  15. package/web-ui/modules/api.mjs +69 -0
  16. package/web-ui/modules/app.computed.dashboard.mjs +113 -0
  17. package/web-ui/modules/app.computed.index.mjs +13 -0
  18. package/web-ui/modules/app.computed.session.mjs +141 -0
  19. package/web-ui/modules/app.constants.mjs +15 -0
  20. package/web-ui/modules/app.methods.agents.mjs +493 -0
  21. package/web-ui/modules/app.methods.claude-config.mjs +174 -0
  22. package/web-ui/modules/app.methods.codex-config.mjs +640 -0
  23. package/web-ui/modules/app.methods.index.mjs +86 -0
  24. package/web-ui/modules/app.methods.install.mjs +157 -0
  25. package/web-ui/modules/app.methods.navigation.mjs +478 -0
  26. package/web-ui/modules/app.methods.openclaw-core.mjs +514 -0
  27. package/web-ui/modules/app.methods.openclaw-editing.mjs +337 -0
  28. package/web-ui/modules/app.methods.openclaw-persist.mjs +251 -0
  29. package/web-ui/modules/app.methods.providers.mjs +265 -0
  30. package/web-ui/modules/app.methods.runtime.mjs +323 -0
  31. package/web-ui/modules/app.methods.session-actions.mjs +457 -0
  32. package/web-ui/modules/app.methods.session-browser.mjs +435 -0
  33. package/web-ui/modules/app.methods.session-timeline.mjs +441 -0
  34. package/web-ui/modules/app.methods.session-trash.mjs +419 -0
  35. package/web-ui/modules/app.methods.startup-claude.mjs +406 -0
  36. package/web-ui/modules/config-mode.computed.mjs +1 -0
  37. package/web-ui/modules/skills.computed.mjs +26 -1
  38. package/web-ui/modules/skills.methods.mjs +154 -23
  39. package/web-ui/partials/index/layout-footer.html +69 -0
  40. package/web-ui/partials/index/layout-header.html +337 -0
  41. package/web-ui/partials/index/modal-config-template-agents.html +125 -0
  42. package/web-ui/partials/index/modal-confirm-toast.html +32 -0
  43. package/web-ui/partials/index/modal-health-check.html +72 -0
  44. package/web-ui/partials/index/modal-openclaw-config.html +275 -0
  45. package/web-ui/partials/index/modal-skills.html +184 -0
  46. package/web-ui/partials/index/modals-basic.html +196 -0
  47. package/web-ui/partials/index/panel-config-claude.html +100 -0
  48. package/web-ui/partials/index/panel-config-codex.html +237 -0
  49. package/web-ui/partials/index/panel-config-openclaw.html +84 -0
  50. package/web-ui/partials/index/panel-market.html +174 -0
  51. package/web-ui/partials/index/panel-sessions.html +387 -0
  52. package/web-ui/partials/index/panel-settings.html +166 -0
  53. package/web-ui/session-helpers.mjs +12 -0
  54. package/web-ui/source-bundle.cjs +233 -0
  55. package/web-ui/styles/base-theme.css +373 -0
  56. package/web-ui/styles/controls-forms.css +354 -0
  57. package/web-ui/styles/feedback.css +108 -0
  58. package/web-ui/styles/health-check-dialog.css +144 -0
  59. package/web-ui/styles/layout-shell.css +330 -0
  60. package/web-ui/styles/modals-core.css +449 -0
  61. package/web-ui/styles/navigation-panels.css +381 -0
  62. package/web-ui/styles/openclaw-structured.css +266 -0
  63. package/web-ui/styles/responsive.css +416 -0
  64. package/web-ui/styles/sessions-list.css +414 -0
  65. package/web-ui/styles/sessions-preview.css +405 -0
  66. package/web-ui/styles/sessions-toolbar-trash.css +243 -0
  67. package/web-ui/styles/sessions-usage.css +276 -0
  68. package/web-ui/styles/skills-list.css +298 -0
  69. package/web-ui/styles/skills-market.css +335 -0
  70. package/web-ui/styles/titles-cards.css +407 -0
  71. package/web-ui/styles.css +16 -4499
  72. package/doc/CHANGELOG.md +0 -32
  73. package/doc/CHANGELOG.zh-CN.md +0 -34
@@ -0,0 +1,407 @@
1
+ /* ============================================
2
+ 主标题
3
+ ============================================ */
4
+ .main-title {
5
+ font-size: var(--font-size-display);
6
+ font-weight: var(--font-weight-display);
7
+ line-height: var(--line-height-tight);
8
+ letter-spacing: -0.03em;
9
+ margin-bottom: 10px;
10
+ color: var(--color-text-primary);
11
+ font-family: var(--font-family-display);
12
+ background: linear-gradient(135deg, var(--color-text-primary) 0%, rgba(27, 23, 20, 0.78) 100%);
13
+ -webkit-background-clip: text;
14
+ -webkit-text-fill-color: transparent;
15
+ background-clip: text;
16
+ }
17
+
18
+ .main-title .accent {
19
+ color: var(--color-brand);
20
+ -webkit-text-fill-color: var(--color-brand);
21
+ position: relative;
22
+ }
23
+
24
+ .subtitle {
25
+ font-size: var(--font-size-body);
26
+ color: var(--color-text-tertiary);
27
+ line-height: var(--line-height-normal);
28
+ margin-bottom: 20px;
29
+ max-width: 640px;
30
+ letter-spacing: 0.01em;
31
+ }
32
+
33
+ /* ============================================
34
+ 模式切换器 - Segmented Control
35
+ ============================================ */
36
+ .segmented-control {
37
+ display: flex;
38
+ background: rgba(255, 255, 255, 0.92);
39
+ border-radius: var(--radius-xl);
40
+ padding: 6px;
41
+ margin-bottom: 20px;
42
+ position: relative;
43
+ box-shadow: inset 0 1px 2px rgba(31, 26, 23, 0.06);
44
+ border: 1px solid rgba(255, 255, 255, 0.7);
45
+ backdrop-filter: blur(6px);
46
+ }
47
+
48
+ .segment {
49
+ flex: 1;
50
+ padding: 11px 16px;
51
+ border: none;
52
+ background: transparent;
53
+ font-size: var(--font-size-body);
54
+ font-weight: var(--font-weight-secondary);
55
+ color: var(--color-text-secondary);
56
+ cursor: pointer;
57
+ border-radius: 10px;
58
+ transition: all var(--transition-normal) var(--ease-spring);
59
+ position: relative;
60
+ z-index: 2;
61
+ letter-spacing: 0.01em;
62
+ }
63
+
64
+ .segment:hover {
65
+ color: var(--color-text-primary);
66
+ }
67
+
68
+ .segment.active {
69
+ color: var(--color-text-primary);
70
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
71
+ box-shadow: var(--shadow-subtle), inset 0 1px 0 rgba(255, 255, 255, 0.85);
72
+ }
73
+
74
+ /* ============================================
75
+ 卡片列表
76
+ ============================================ */
77
+ .card-list {
78
+ display: flex;
79
+ flex-direction: column;
80
+ gap: 12px;
81
+ margin-bottom: 12px;
82
+ }
83
+
84
+ /* ============================================
85
+ 卡片
86
+ ============================================ */
87
+ .card {
88
+ background: linear-gradient(180deg, #fffdf9 0%, #fff8f2 100%);
89
+ border-radius: var(--radius-lg);
90
+ padding: 10px;
91
+ display: flex;
92
+ align-items: center;
93
+ justify-content: space-between;
94
+ cursor: pointer;
95
+ transition:
96
+ transform var(--transition-normal) var(--ease-spring),
97
+ box-shadow var(--transition-normal) var(--ease-spring),
98
+ background-color var(--transition-fast) var(--ease-smooth);
99
+ box-shadow: 0 10px 24px rgba(27, 23, 20, 0.08);
100
+ user-select: none;
101
+ will-change: transform;
102
+ border: 1px solid rgba(216, 201, 184, 0.55);
103
+ position: relative;
104
+ overflow: hidden;
105
+ }
106
+
107
+ .card:hover {
108
+ transform: translateY(-1px);
109
+ box-shadow: var(--shadow-card-hover);
110
+ }
111
+
112
+ .card::before,
113
+ .card::after {
114
+ content: "";
115
+ position: absolute;
116
+ pointer-events: none;
117
+ }
118
+
119
+ .card::before {
120
+ left: 0;
121
+ top: 10px;
122
+ bottom: 10px;
123
+ width: 3px;
124
+ border-radius: 999px;
125
+ background: transparent;
126
+ transition: background var(--transition-fast) var(--ease-smooth);
127
+ }
128
+
129
+ .card::after {
130
+ inset: 0;
131
+ border-radius: inherit;
132
+ background: linear-gradient(120deg, rgba(255, 255, 255, 0.7) 0%, transparent 55%);
133
+ opacity: 0;
134
+ transition: opacity var(--transition-normal) var(--ease-smooth);
135
+ }
136
+
137
+ .card:active {
138
+ transform: translateY(0);
139
+ transition: transform var(--transition-instant) var(--ease-smooth);
140
+ }
141
+
142
+ .card.active {
143
+ background: linear-gradient(to bottom, rgba(210, 107, 90, 0.14) 0%, rgba(255, 255, 255, 0.98) 100%);
144
+ border-color: rgba(201, 94, 75, 0.55);
145
+ box-shadow: 0 10px 28px rgba(210, 107, 90, 0.14);
146
+ }
147
+
148
+ .card.active::before {
149
+ background: linear-gradient(180deg, rgba(201, 94, 75, 0.95) 0%, rgba(201, 94, 75, 0.35) 100%);
150
+ }
151
+
152
+ .card:hover::after {
153
+ opacity: 0.6;
154
+ }
155
+
156
+ .card.active .card-icon {
157
+ transform: scale(1.05);
158
+ }
159
+
160
+ .card-leading {
161
+ display: flex;
162
+ align-items: center;
163
+ gap: var(--spacing-sm);
164
+ flex: 1;
165
+ min-width: 0;
166
+ }
167
+
168
+ .card-icon {
169
+ width: 40px;
170
+ height: 40px;
171
+ border-radius: var(--radius-sm);
172
+ background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 241, 232, 0.65) 100%);
173
+ display: flex;
174
+ align-items: center;
175
+ justify-content: center;
176
+ font-size: var(--font-size-title);
177
+ font-weight: var(--font-weight-title);
178
+ color: var(--color-text-secondary);
179
+ flex-shrink: 0;
180
+ transition: all var(--transition-normal) var(--ease-spring-soft);
181
+ box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7);
182
+ }
183
+
184
+ .card.active .card-icon {
185
+ background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
186
+ color: white;
187
+ box-shadow: 0 2px 8px rgba(210, 107, 90, 0.3);
188
+ }
189
+
190
+ .card-content {
191
+ display: flex;
192
+ flex-direction: column;
193
+ gap: 2px;
194
+ min-width: 0;
195
+ }
196
+
197
+ .card-title {
198
+ display: flex;
199
+ align-items: center;
200
+ gap: 8px;
201
+ min-width: 0;
202
+ font-size: var(--font-size-body);
203
+ font-weight: var(--font-weight-secondary);
204
+ color: var(--color-text-primary);
205
+ white-space: nowrap;
206
+ overflow: hidden;
207
+ text-overflow: ellipsis;
208
+ letter-spacing: -0.01em;
209
+ }
210
+
211
+ .card-title > span:first-child {
212
+ min-width: 0;
213
+ overflow: hidden;
214
+ text-overflow: ellipsis;
215
+ white-space: nowrap;
216
+ }
217
+
218
+ .provider-readonly-badge {
219
+ display: inline-flex;
220
+ align-items: center;
221
+ justify-content: center;
222
+ padding: 2px 8px;
223
+ border-radius: var(--radius-full);
224
+ font-size: 11px;
225
+ line-height: 1;
226
+ color: #6f4b00;
227
+ background: linear-gradient(135deg, rgba(246, 211, 106, 0.32) 0%, rgba(246, 211, 106, 0.2) 100%);
228
+ border: 1px solid rgba(191, 151, 40, 0.35);
229
+ flex-shrink: 0;
230
+ }
231
+
232
+ .card-subtitle {
233
+ font-size: var(--font-size-secondary);
234
+ color: var(--color-text-tertiary);
235
+ white-space: nowrap;
236
+ overflow: hidden;
237
+ text-overflow: ellipsis;
238
+ opacity: 0.8;
239
+ }
240
+
241
+ .card-trailing {
242
+ display: grid;
243
+ grid-auto-flow: column;
244
+ grid-auto-columns: max-content;
245
+ column-gap: var(--spacing-xs);
246
+ row-gap: 6px;
247
+ align-items: center;
248
+ justify-content: end;
249
+ align-self: center;
250
+ }
251
+
252
+ .card-trailing .card-actions {
253
+ margin-left: 0;
254
+ justify-self: end;
255
+ }
256
+
257
+ .card-trailing .pill,
258
+ .card-trailing .latency {
259
+ justify-self: end;
260
+ }
261
+
262
+ /* 卡片操作按钮 - hover 显示 */
263
+ .card-actions {
264
+ display: flex;
265
+ gap: 8px;
266
+ opacity: 0;
267
+ pointer-events: none;
268
+ transform: translateX(4px);
269
+ transition: all var(--transition-normal) var(--ease-spring);
270
+ }
271
+
272
+ .card:hover .card-actions {
273
+ opacity: 1;
274
+ pointer-events: auto;
275
+ transform: translateX(0);
276
+ }
277
+
278
+ .card:focus-within .card-actions {
279
+ opacity: 1;
280
+ pointer-events: auto;
281
+ transform: translateX(0);
282
+ }
283
+
284
+ .mode-cards .card-actions {
285
+ opacity: 1;
286
+ pointer-events: auto;
287
+ transform: translateX(0);
288
+ }
289
+
290
+ .card-action-btn {
291
+ width: 40px;
292
+ height: 40px;
293
+ border-radius: 10px;
294
+ border: 1px solid rgba(70, 86, 110, 0.22);
295
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
296
+ color: var(--color-text-secondary);
297
+ cursor: pointer;
298
+ display: flex;
299
+ align-items: center;
300
+ justify-content: center;
301
+ transition: all var(--transition-fast) var(--ease-spring);
302
+ box-shadow: inset 0 1px 2px rgba(31, 26, 23, 0.04);
303
+ }
304
+
305
+ .card-action-btn:hover {
306
+ background: linear-gradient(135deg, rgba(210, 107, 90, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
307
+ color: var(--color-text-primary);
308
+ transform: translateY(-1px);
309
+ }
310
+
311
+ .card-action-btn.delete:hover {
312
+ background: linear-gradient(135deg, rgba(200, 74, 58, 0.1) 0%, rgba(200, 74, 58, 0.05) 100%);
313
+ color: var(--color-error);
314
+ }
315
+
316
+ .card-action-btn:disabled,
317
+ .card-action-btn.disabled {
318
+ opacity: 0.45;
319
+ cursor: not-allowed;
320
+ transform: none;
321
+ filter: grayscale(0.1);
322
+ }
323
+
324
+ .card-action-btn.delete:disabled:hover,
325
+ .card-action-btn.delete.disabled:hover {
326
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
327
+ color: var(--color-text-secondary);
328
+ }
329
+
330
+ .card-action-btn svg {
331
+ width: 18px;
332
+ height: 18px;
333
+ }
334
+
335
+ /* ============================================
336
+ 状态徽章
337
+ ============================================ */
338
+ .pill {
339
+ padding: 5px 11px;
340
+ border-radius: var(--radius-full);
341
+ font-size: var(--font-size-caption);
342
+ font-weight: var(--font-weight-caption);
343
+ background-color: rgba(255, 255, 255, 0.8);
344
+ color: var(--color-text-tertiary);
345
+ text-transform: uppercase;
346
+ letter-spacing: 0.06em;
347
+ transition: all var(--transition-fast) var(--ease-smooth);
348
+ box-shadow: inset 0 0.5px 1px rgba(0, 0, 0, 0.04);
349
+ }
350
+
351
+ .pill.configured {
352
+ background: linear-gradient(135deg, rgba(90, 139, 106, 0.15) 0%, rgba(90, 139, 106, 0.08) 100%);
353
+ color: var(--color-success);
354
+ box-shadow: inset 0 0.5px 1px rgba(90, 139, 106, 0.2);
355
+ }
356
+
357
+ .pill.empty {
358
+ background: linear-gradient(135deg, rgba(200, 74, 58, 0.1) 0%, rgba(200, 74, 58, 0.05) 100%);
359
+ color: var(--color-error);
360
+ box-shadow: inset 0 0.5px 1px rgba(200, 74, 58, 0.15);
361
+ }
362
+
363
+ .latency {
364
+ padding: 4px 10px;
365
+ border-radius: var(--radius-full);
366
+ font-size: var(--font-size-caption);
367
+ font-weight: var(--font-weight-caption);
368
+ background: var(--color-bg);
369
+ color: var(--color-text-tertiary);
370
+ letter-spacing: 0.02em;
371
+ min-width: 64px;
372
+ text-align: center;
373
+ display: inline-flex;
374
+ align-items: center;
375
+ justify-content: center;
376
+ flex-shrink: 0;
377
+ }
378
+
379
+ .latency.ok {
380
+ color: var(--color-success);
381
+ background: rgba(90, 139, 106, 0.1);
382
+ }
383
+
384
+ .latency.error {
385
+ color: var(--color-error);
386
+ background: rgba(200, 74, 58, 0.08);
387
+ }
388
+
389
+ .card-action-btn.loading svg {
390
+ animation: spin 0.9s linear infinite;
391
+ }
392
+
393
+ /* ============================================
394
+ 图标 - SVG 优化
395
+ ============================================ */
396
+ .icon {
397
+ width: 20px;
398
+ height: 20px;
399
+ flex-shrink: 0;
400
+ stroke-linecap: round;
401
+ stroke-linejoin: round;
402
+ }
403
+
404
+ .icon-chevron-right {
405
+ color: var(--color-text-tertiary);
406
+ opacity: 0.5;
407
+ }