codexmate 0.0.20 → 0.0.22

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 (96) hide show
  1. package/README.md +289 -152
  2. package/README.zh.md +321 -0
  3. package/cli/agents-files.js +224 -0
  4. package/cli/archive-helpers.js +446 -0
  5. package/cli/auth-profiles.js +359 -0
  6. package/cli/builtin-proxy.js +1044 -0
  7. package/cli/claude-proxy.js +998 -0
  8. package/cli/config-bootstrap.js +384 -0
  9. package/cli/openai-bridge.js +950 -0
  10. package/cli/openclaw-config.js +629 -0
  11. package/cli/session-usage.concurrent.js +28 -0
  12. package/cli/session-usage.js +112 -0
  13. package/cli/session-usage.models.js +176 -0
  14. package/cli/skills.js +1141 -0
  15. package/cli/zip-commands.js +510 -0
  16. package/cli.js +9408 -9719
  17. package/lib/cli-models-utils.js +109 -1
  18. package/lib/cli-path-utils.js +69 -0
  19. package/lib/cli-sessions.js +386 -0
  20. package/lib/download-artifacts.js +77 -0
  21. package/lib/task-orchestrator.js +869 -0
  22. package/package.json +14 -10
  23. package/res/logo.png +0 -0
  24. package/res/vue.global.prod.js +13 -0
  25. package/web-ui/app.js +193 -15
  26. package/web-ui/index.html +5 -1
  27. package/web-ui/logic.agents-diff.mjs +1 -1
  28. package/web-ui/logic.claude.mjs +60 -0
  29. package/web-ui/logic.runtime.mjs +11 -7
  30. package/web-ui/logic.sessions.mjs +372 -21
  31. package/web-ui/modules/api.mjs +22 -1
  32. package/web-ui/modules/app.computed.dashboard.mjs +23 -10
  33. package/web-ui/modules/app.computed.index.mjs +4 -0
  34. package/web-ui/modules/app.computed.main-tabs.mjs +198 -0
  35. package/web-ui/modules/app.computed.session.mjs +521 -9
  36. package/web-ui/modules/app.methods.agents.mjs +62 -11
  37. package/web-ui/modules/app.methods.codex-config.mjs +189 -34
  38. package/web-ui/modules/app.methods.index.mjs +7 -1
  39. package/web-ui/modules/app.methods.install.mjs +24 -20
  40. package/web-ui/modules/app.methods.navigation.mjs +142 -1
  41. package/web-ui/modules/app.methods.openclaw-core.mjs +339 -39
  42. package/web-ui/modules/app.methods.openclaw-editing.mjs +39 -4
  43. package/web-ui/modules/app.methods.openclaw-persist.mjs +122 -4
  44. package/web-ui/modules/app.methods.providers.mjs +192 -53
  45. package/web-ui/modules/app.methods.session-actions.mjs +99 -19
  46. package/web-ui/modules/app.methods.session-browser.mjs +196 -5
  47. package/web-ui/modules/app.methods.session-timeline.mjs +22 -15
  48. package/web-ui/modules/app.methods.session-trash.mjs +3 -0
  49. package/web-ui/modules/app.methods.startup-claude.mjs +70 -71
  50. package/web-ui/modules/app.methods.task-orchestration.mjs +471 -0
  51. package/web-ui/modules/config-mode.computed.mjs +2 -0
  52. package/web-ui/modules/config-template-confirm-pref.mjs +33 -0
  53. package/web-ui/modules/i18n.mjs +1609 -0
  54. package/web-ui/modules/plugins.computed.mjs +220 -0
  55. package/web-ui/modules/plugins.methods.mjs +620 -0
  56. package/web-ui/modules/plugins.storage.mjs +37 -0
  57. package/web-ui/partials/index/layout-footer.html +1 -57
  58. package/web-ui/partials/index/layout-header.html +299 -175
  59. package/web-ui/partials/index/modal-config-template-agents.html +79 -29
  60. package/web-ui/partials/index/modal-confirm-toast.html +1 -1
  61. package/web-ui/partials/index/modal-health-check.html +14 -14
  62. package/web-ui/partials/index/modal-openclaw-config.html +47 -42
  63. package/web-ui/partials/index/modal-skills.html +130 -114
  64. package/web-ui/partials/index/modals-basic.html +71 -102
  65. package/web-ui/partials/index/panel-config-claude.html +50 -12
  66. package/web-ui/partials/index/panel-config-codex.html +34 -37
  67. package/web-ui/partials/index/panel-config-openclaw.html +10 -16
  68. package/web-ui/partials/index/panel-docs.html +147 -0
  69. package/web-ui/partials/index/panel-market.html +38 -38
  70. package/web-ui/partials/index/panel-orchestration.html +397 -0
  71. package/web-ui/partials/index/panel-plugins.html +243 -0
  72. package/web-ui/partials/index/panel-sessions.html +51 -146
  73. package/web-ui/partials/index/panel-settings.html +188 -96
  74. package/web-ui/partials/index/panel-usage.html +353 -0
  75. package/web-ui/session-helpers.mjs +221 -10
  76. package/web-ui/styles/base-theme.css +120 -229
  77. package/web-ui/styles/controls-forms.css +59 -51
  78. package/web-ui/styles/docs-panel.css +247 -0
  79. package/web-ui/styles/layout-shell.css +394 -128
  80. package/web-ui/styles/modals-core.css +18 -3
  81. package/web-ui/styles/navigation-panels.css +184 -183
  82. package/web-ui/styles/plugins-panel.css +518 -0
  83. package/web-ui/styles/responsive.css +102 -62
  84. package/web-ui/styles/sessions-list.css +13 -27
  85. package/web-ui/styles/sessions-preview.css +13 -7
  86. package/web-ui/styles/sessions-toolbar-trash.css +25 -0
  87. package/web-ui/styles/sessions-usage.css +581 -6
  88. package/web-ui/styles/settings-panel.css +166 -0
  89. package/web-ui/styles/skills-list.css +16 -11
  90. package/web-ui/styles/skills-market.css +63 -2
  91. package/web-ui/styles/task-orchestration.css +776 -0
  92. package/web-ui/styles/titles-cards.css +67 -66
  93. package/web-ui/styles.css +4 -0
  94. package/README.en.md +0 -259
  95. package/res/screenshot.png +0 -0
  96. package/res/vue.global.js +0 -18552
@@ -0,0 +1,518 @@
1
+ .plugins-layout {
2
+ display: grid;
3
+ grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
4
+ gap: var(--spacing-sm);
5
+ align-items: start;
6
+ }
7
+
8
+ .plugins-sidebar {
9
+ border: 1px solid rgba(160, 145, 130, 0.22);
10
+ border-radius: var(--radius-md);
11
+ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.7) 100%);
12
+ box-shadow: var(--shadow-subtle);
13
+ padding: var(--spacing-sm);
14
+ min-width: 0;
15
+ }
16
+
17
+ .plugins-sidebar-header {
18
+ margin-bottom: var(--spacing-sm);
19
+ align-items: flex-start;
20
+ gap: var(--spacing-xs);
21
+ }
22
+
23
+ .plugins-panel-note {
24
+ margin-top: 4px;
25
+ font-size: var(--font-size-caption);
26
+ color: var(--color-text-tertiary);
27
+ line-height: 1.45;
28
+ }
29
+
30
+ .plugins-list {
31
+ display: grid;
32
+ gap: 10px;
33
+ }
34
+
35
+ .plugins-item {
36
+ width: 100%;
37
+ text-align: left;
38
+ display: flex;
39
+ justify-content: space-between;
40
+ align-items: flex-start;
41
+ gap: var(--spacing-xs);
42
+ padding: 12px 12px;
43
+ border-radius: var(--radius-sm);
44
+ border: 1px solid rgba(160, 145, 130, 0.18);
45
+ background: rgba(255, 255, 255, 0.6);
46
+ cursor: pointer;
47
+ transition: border-color var(--transition-fast) var(--ease-spring), background var(--transition-fast) var(--ease-spring), transform var(--transition-fast) var(--ease-spring);
48
+ }
49
+
50
+ .plugins-item:hover {
51
+ transform: translateY(-1px);
52
+ border-color: rgba(208, 88, 58, 0.28);
53
+ }
54
+
55
+ .plugins-item.active {
56
+ border-color: rgba(208, 88, 58, 0.45);
57
+ background: linear-gradient(to bottom, rgba(255, 243, 236, 0.96) 0%, rgba(255, 232, 220, 0.78) 100%);
58
+ }
59
+
60
+ .plugins-item-main {
61
+ min-width: 0;
62
+ }
63
+
64
+ .plugins-item-title {
65
+ font-size: var(--font-size-body);
66
+ font-weight: var(--font-weight-secondary);
67
+ color: var(--color-text-secondary);
68
+ }
69
+
70
+ .plugins-item-meta {
71
+ margin-top: 4px;
72
+ font-size: var(--font-size-caption);
73
+ color: var(--color-text-tertiary);
74
+ line-height: 1.45;
75
+ overflow-wrap: anywhere;
76
+ }
77
+
78
+ .plugins-main {
79
+ min-width: 0;
80
+ }
81
+
82
+ .plugins-panel {
83
+ border: 1px solid rgba(160, 145, 130, 0.22);
84
+ border-radius: var(--radius-md);
85
+ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.76) 100%);
86
+ box-shadow: var(--shadow-subtle);
87
+ padding: var(--spacing-sm);
88
+ }
89
+
90
+ .plugins-panel-head {
91
+ margin-bottom: var(--spacing-sm);
92
+ }
93
+
94
+ .plugins-panel-title {
95
+ font-size: var(--font-size-title);
96
+ font-weight: var(--font-weight-title);
97
+ color: var(--color-text-primary);
98
+ letter-spacing: -0.01em;
99
+ }
100
+
101
+ .plugins-panel-subtitle {
102
+ margin-top: 6px;
103
+ font-size: var(--font-size-caption);
104
+ color: var(--color-text-tertiary);
105
+ line-height: 1.55;
106
+ }
107
+
108
+ .plugins-panel-subtitle code {
109
+ font-family: var(--font-family-mono);
110
+ font-size: 0.95em;
111
+ }
112
+
113
+ /* Prompt templates */
114
+ .prompt-templates-modebar {
115
+ display: inline-flex;
116
+ gap: 8px;
117
+ padding: 6px;
118
+ border: 1px solid rgba(160, 145, 130, 0.18);
119
+ border-radius: 999px;
120
+ background: rgba(255, 255, 255, 0.62);
121
+ margin-bottom: var(--spacing-sm);
122
+ }
123
+
124
+ .mode-pill {
125
+ border: 0;
126
+ border-radius: 999px;
127
+ padding: 8px 12px;
128
+ font-size: var(--font-size-caption);
129
+ letter-spacing: 0.01em;
130
+ cursor: pointer;
131
+ background: transparent;
132
+ color: var(--color-text-tertiary);
133
+ transition: background var(--transition-fast) var(--ease-spring), color var(--transition-fast) var(--ease-spring), transform var(--transition-fast) var(--ease-spring);
134
+ }
135
+
136
+ .mode-pill.active {
137
+ background: linear-gradient(to bottom, rgba(201, 94, 75, 0.18) 0%, rgba(201, 94, 75, 0.08) 100%);
138
+ color: var(--color-text-secondary);
139
+ }
140
+
141
+ .mode-pill:hover {
142
+ transform: translateY(-1px);
143
+ }
144
+
145
+ .prompt-compose {
146
+ display: grid;
147
+ gap: var(--spacing-sm);
148
+ }
149
+
150
+ .prompt-compose-command-row {
151
+ display: flex;
152
+ gap: 10px;
153
+ flex-wrap: wrap;
154
+ align-items: center;
155
+ }
156
+
157
+ .prompt-compose-command-input {
158
+ flex: 1;
159
+ min-width: 240px;
160
+ background-color: var(--color-surface);
161
+ border-color: rgba(163, 146, 134, 0.18);
162
+ box-shadow: inset 0 1px 2px rgba(31, 26, 23, 0.03);
163
+ }
164
+
165
+ .prompt-compose-form {
166
+ padding: 12px;
167
+ border-radius: var(--radius-md);
168
+ border: 1px solid rgba(160, 145, 130, 0.18);
169
+ background: rgba(255, 255, 255, 0.62);
170
+ display: grid;
171
+ gap: 10px;
172
+ }
173
+
174
+ .prompt-compose-template-select {
175
+ width: 100%;
176
+ }
177
+
178
+ .prompt-compose-code-input {
179
+ font-family: var(--font-family-mono);
180
+ font-size: var(--font-size-caption);
181
+ line-height: 1.55;
182
+ white-space: pre;
183
+ }
184
+
185
+ .prompt-compose-actions {
186
+ display: flex;
187
+ gap: 8px;
188
+ flex-wrap: wrap;
189
+ justify-content: flex-end;
190
+ }
191
+
192
+ .prompt-compose-modal {
193
+ position: fixed;
194
+ inset: 0;
195
+ z-index: 999;
196
+ display: grid;
197
+ place-items: center;
198
+ }
199
+
200
+ .prompt-compose-modal-backdrop {
201
+ position: absolute;
202
+ inset: 0;
203
+ background: rgba(20, 16, 12, 0.45);
204
+ backdrop-filter: blur(2px);
205
+ }
206
+
207
+ .prompt-compose-modal-dialog {
208
+ position: relative;
209
+ width: min(760px, calc(100vw - 32px));
210
+ max-height: min(72vh, 640px);
211
+ overflow: hidden;
212
+ border-radius: calc(var(--radius-md) + 4px);
213
+ border: 1px solid rgba(210, 180, 160, 0.35);
214
+ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 100%);
215
+ box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
216
+ display: grid;
217
+ grid-template-rows: auto auto minmax(0, 1fr);
218
+ padding: 14px;
219
+ }
220
+
221
+ .prompt-compose-modal-head {
222
+ display: flex;
223
+ gap: 10px;
224
+ align-items: center;
225
+ justify-content: space-between;
226
+ margin-bottom: 12px;
227
+ }
228
+
229
+ .prompt-compose-modal-title {
230
+ font-size: var(--font-size-secondary);
231
+ font-weight: var(--font-weight-secondary);
232
+ color: var(--color-text-secondary);
233
+ }
234
+
235
+ .prompt-compose-modal-search {
236
+ margin-bottom: 12px;
237
+ }
238
+
239
+ .prompt-compose-picker-list {
240
+ display: grid;
241
+ gap: 10px;
242
+ overflow: auto;
243
+ padding-right: 2px;
244
+ }
245
+
246
+ .prompt-compose-picker-item {
247
+ width: 100%;
248
+ text-align: left;
249
+ border: 1px dashed var(--color-border-soft);
250
+ border-radius: var(--radius-sm);
251
+ background: rgba(255, 255, 255, 0.58);
252
+ padding: 12px;
253
+ display: flex;
254
+ justify-content: space-between;
255
+ align-items: flex-start;
256
+ gap: 10px;
257
+ cursor: pointer;
258
+ transition: border-color var(--transition-fast) var(--ease-spring), background var(--transition-fast) var(--ease-spring);
259
+ }
260
+
261
+ .prompt-compose-picker-item:hover {
262
+ border-color: rgba(201, 94, 75, 0.55);
263
+ }
264
+
265
+ .prompt-compose-picker-item-title {
266
+ font-size: var(--font-size-secondary);
267
+ font-weight: var(--font-weight-secondary);
268
+ color: var(--color-text-secondary);
269
+ }
270
+
271
+ .prompt-compose-picker-item-meta {
272
+ margin-top: 6px;
273
+ display: inline-flex;
274
+ gap: 8px;
275
+ align-items: center;
276
+ color: var(--color-text-tertiary);
277
+ font-size: var(--font-size-caption);
278
+ }
279
+
280
+ .prompt-compose-picker-item-meta .mono {
281
+ font-family: var(--font-family-mono);
282
+ }
283
+
284
+ .prompt-compose-workspace {
285
+ display: grid;
286
+ gap: var(--spacing-sm);
287
+ }
288
+
289
+ .prompt-compose-selected {
290
+ padding: 12px;
291
+ border-radius: var(--radius-md);
292
+ border: 1px solid rgba(160, 145, 130, 0.18);
293
+ background: rgba(255, 255, 255, 0.62);
294
+ }
295
+
296
+ .prompt-compose-selected-title {
297
+ font-size: var(--font-size-body);
298
+ font-weight: var(--font-weight-secondary);
299
+ color: var(--color-text-secondary);
300
+ }
301
+
302
+ .prompt-compose-selected-meta {
303
+ margin-top: 6px;
304
+ font-size: var(--font-size-caption);
305
+ color: var(--color-text-tertiary);
306
+ line-height: 1.5;
307
+ }
308
+
309
+ .prompt-compose-canvas {
310
+ padding: 12px;
311
+ border-radius: var(--radius-md);
312
+ border: 1px solid rgba(160, 145, 130, 0.18);
313
+ background: rgba(255, 255, 255, 0.62);
314
+ font-family: var(--font-family-mono);
315
+ font-size: var(--font-size-caption);
316
+ line-height: 1.6;
317
+ white-space: pre-wrap;
318
+ overflow-wrap: anywhere;
319
+ }
320
+
321
+ .prompt-fragment-text {
322
+ color: var(--color-text-secondary);
323
+ }
324
+
325
+ .prompt-fragment-var {
326
+ display: inline-block;
327
+ vertical-align: baseline;
328
+ min-width: 120px;
329
+ max-width: 100%;
330
+ padding: 6px 8px;
331
+ margin: 0 4px;
332
+ border-radius: 10px;
333
+ border: 1px solid rgba(201, 94, 75, 0.38);
334
+ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.78) 100%);
335
+ color: var(--color-text-primary);
336
+ font-family: var(--font-family-mono);
337
+ font-size: var(--font-size-caption);
338
+ line-height: 1.4;
339
+ resize: vertical;
340
+ }
341
+
342
+ .prompt-fragment-var:focus {
343
+ outline: none;
344
+ box-shadow: 0 0 0 3px rgba(201, 94, 75, 0.16);
345
+ }
346
+
347
+ .prompt-templates-grid {
348
+ display: grid;
349
+ grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
350
+ gap: var(--spacing-sm);
351
+ align-items: start;
352
+ }
353
+
354
+ .prompt-templates-pane {
355
+ min-width: 0;
356
+ }
357
+
358
+ .prompt-templates-toolbar {
359
+ display: flex;
360
+ gap: 10px;
361
+ flex-wrap: wrap;
362
+ align-items: center;
363
+ margin-bottom: 10px;
364
+ }
365
+
366
+ .prompt-templates-toolbar .form-input {
367
+ flex: 1;
368
+ min-width: 200px;
369
+ }
370
+
371
+ .prompt-templates-list {
372
+ display: grid;
373
+ gap: 10px;
374
+ max-height: min(62vh, 560px);
375
+ overflow: auto;
376
+ padding-right: 2px;
377
+ }
378
+
379
+ .prompt-template-item {
380
+ border: 1px dashed var(--color-border-soft);
381
+ border-radius: var(--radius-sm);
382
+ background: rgba(255, 255, 255, 0.58);
383
+ padding: 12px;
384
+ display: flex;
385
+ justify-content: space-between;
386
+ align-items: flex-start;
387
+ gap: 10px;
388
+ cursor: pointer;
389
+ transition: border-color var(--transition-fast) var(--ease-spring), background var(--transition-fast) var(--ease-spring);
390
+ }
391
+
392
+ .prompt-template-item.active {
393
+ border-color: rgba(201, 94, 75, 0.55);
394
+ background: linear-gradient(to bottom, rgba(201, 94, 75, 0.09) 0%, rgba(201, 94, 75, 0.03) 100%);
395
+ }
396
+
397
+ .prompt-template-item-title {
398
+ font-size: var(--font-size-secondary);
399
+ font-weight: var(--font-weight-secondary);
400
+ color: var(--color-text-secondary);
401
+ }
402
+
403
+ .prompt-template-item-meta {
404
+ margin-top: 6px;
405
+ display: inline-flex;
406
+ gap: 8px;
407
+ align-items: center;
408
+ color: var(--color-text-tertiary);
409
+ font-size: var(--font-size-caption);
410
+ }
411
+
412
+ .prompt-template-item-meta .mono {
413
+ font-family: var(--font-family-mono);
414
+ }
415
+
416
+ .prompt-editor-head {
417
+ display: flex;
418
+ flex-direction: column;
419
+ gap: 10px;
420
+ padding: 12px;
421
+ border-radius: var(--radius-md);
422
+ border: 1px solid rgba(160, 145, 130, 0.18);
423
+ background: rgba(255, 255, 255, 0.62);
424
+ margin-bottom: var(--spacing-sm);
425
+ }
426
+
427
+ .prompt-editor-title-row {
428
+ display: flex;
429
+ gap: 10px;
430
+ align-items: center;
431
+ flex-wrap: wrap;
432
+ }
433
+
434
+ .prompt-editor-name {
435
+ flex: 1;
436
+ min-width: 220px;
437
+ }
438
+
439
+ .prompt-editor-actions {
440
+ display: flex;
441
+ gap: 8px;
442
+ flex-wrap: wrap;
443
+ align-items: center;
444
+ }
445
+
446
+ .prompt-editor-textarea,
447
+ .prompt-preview-textarea {
448
+ font-family: var(--font-family-mono);
449
+ font-size: var(--font-size-caption);
450
+ line-height: 1.55;
451
+ white-space: pre;
452
+ }
453
+
454
+ .prompt-vars-block,
455
+ .prompt-preview-block {
456
+ margin-top: var(--spacing-sm);
457
+ padding: 12px;
458
+ border-radius: var(--radius-md);
459
+ border: 1px solid rgba(160, 145, 130, 0.18);
460
+ background: rgba(255, 255, 255, 0.62);
461
+ }
462
+
463
+ .prompt-vars-head {
464
+ display: flex;
465
+ justify-content: space-between;
466
+ align-items: flex-start;
467
+ gap: 10px;
468
+ margin-bottom: 10px;
469
+ }
470
+
471
+ .prompt-vars-title {
472
+ font-size: var(--font-size-body);
473
+ font-weight: var(--font-weight-secondary);
474
+ color: var(--color-text-secondary);
475
+ }
476
+
477
+ .prompt-vars-empty {
478
+ font-size: var(--font-size-caption);
479
+ color: var(--color-text-tertiary);
480
+ padding: 6px 0;
481
+ }
482
+
483
+ .prompt-vars-grid {
484
+ display: grid;
485
+ grid-template-columns: repeat(2, minmax(0, 1fr));
486
+ gap: 10px;
487
+ }
488
+
489
+ .prompt-var-row {
490
+ display: grid;
491
+ grid-template-columns: minmax(90px, 140px) minmax(0, 1fr);
492
+ gap: 10px;
493
+ align-items: center;
494
+ }
495
+
496
+ .prompt-var-label {
497
+ color: var(--color-text-tertiary);
498
+ font-size: var(--font-size-caption);
499
+ }
500
+
501
+ .prompt-var-input {
502
+ min-width: 0;
503
+ }
504
+
505
+ @media (max-width: 980px) {
506
+ .plugins-layout {
507
+ grid-template-columns: 1fr;
508
+ }
509
+ .prompt-templates-grid {
510
+ grid-template-columns: 1fr;
511
+ }
512
+ .prompt-vars-grid {
513
+ grid-template-columns: 1fr;
514
+ }
515
+ .prompt-var-row {
516
+ grid-template-columns: 1fr;
517
+ }
518
+ }