codexmate 0.0.19 → 0.0.21

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 (102) hide show
  1. package/README.en.md +349 -255
  2. package/README.md +284 -248
  3. package/cli/agents-files.js +162 -0
  4. package/cli/archive-helpers.js +446 -0
  5. package/cli/auth-profiles.js +359 -0
  6. package/cli/builtin-proxy.js +580 -0
  7. package/cli/claude-proxy.js +998 -0
  8. package/cli/config-bootstrap.js +384 -0
  9. package/cli/config-health.js +338 -0
  10. package/cli/openclaw-config.js +629 -0
  11. package/cli/skills.js +1141 -0
  12. package/cli/zip-commands.js +510 -0
  13. package/cli.js +13129 -12973
  14. package/lib/cli-file-utils.js +151 -151
  15. package/lib/cli-models-utils.js +419 -152
  16. package/lib/cli-network-utils.js +164 -148
  17. package/lib/cli-path-utils.js +69 -0
  18. package/lib/cli-session-utils.js +121 -121
  19. package/lib/cli-sessions.js +386 -0
  20. package/lib/cli-utils.js +155 -155
  21. package/lib/download-artifacts.js +77 -0
  22. package/lib/mcp-stdio.js +440 -440
  23. package/lib/task-orchestrator.js +869 -0
  24. package/lib/text-diff.js +303 -303
  25. package/lib/workflow-engine.js +340 -340
  26. package/package.json +74 -63
  27. package/res/json5.min.js +1 -1
  28. package/res/vue.global.prod.js +13 -0
  29. package/web-ui/app.js +530 -5548
  30. package/web-ui/index.html +33 -2246
  31. package/web-ui/logic.agents-diff.mjs +386 -0
  32. package/web-ui/logic.claude.mjs +168 -0
  33. package/web-ui/logic.mjs +5 -793
  34. package/web-ui/logic.runtime.mjs +124 -0
  35. package/web-ui/logic.sessions.mjs +581 -0
  36. package/web-ui/modules/api.mjs +90 -0
  37. package/web-ui/modules/app.computed.dashboard.mjs +113 -0
  38. package/web-ui/modules/app.computed.index.mjs +15 -0
  39. package/web-ui/modules/app.computed.main-tabs.mjs +195 -0
  40. package/web-ui/modules/app.computed.session.mjs +507 -0
  41. package/web-ui/modules/app.constants.mjs +15 -0
  42. package/web-ui/modules/app.methods.agents.mjs +493 -0
  43. package/web-ui/modules/app.methods.claude-config.mjs +174 -0
  44. package/web-ui/modules/app.methods.codex-config.mjs +640 -0
  45. package/web-ui/modules/app.methods.index.mjs +88 -0
  46. package/web-ui/modules/app.methods.install.mjs +149 -0
  47. package/web-ui/modules/app.methods.navigation.mjs +619 -0
  48. package/web-ui/modules/app.methods.openclaw-core.mjs +814 -0
  49. package/web-ui/modules/app.methods.openclaw-editing.mjs +372 -0
  50. package/web-ui/modules/app.methods.openclaw-persist.mjs +369 -0
  51. package/web-ui/modules/app.methods.providers.mjs +363 -0
  52. package/web-ui/modules/app.methods.runtime.mjs +323 -0
  53. package/web-ui/modules/app.methods.session-actions.mjs +520 -0
  54. package/web-ui/modules/app.methods.session-browser.mjs +626 -0
  55. package/web-ui/modules/app.methods.session-timeline.mjs +448 -0
  56. package/web-ui/modules/app.methods.session-trash.mjs +422 -0
  57. package/web-ui/modules/app.methods.startup-claude.mjs +412 -0
  58. package/web-ui/modules/app.methods.task-orchestration.mjs +471 -0
  59. package/web-ui/modules/config-mode.computed.mjs +126 -124
  60. package/web-ui/modules/skills.computed.mjs +107 -107
  61. package/web-ui/modules/skills.methods.mjs +481 -481
  62. package/web-ui/partials/index/layout-footer.html +13 -0
  63. package/web-ui/partials/index/layout-header.html +402 -0
  64. package/web-ui/partials/index/modal-config-template-agents.html +125 -0
  65. package/web-ui/partials/index/modal-confirm-toast.html +32 -0
  66. package/web-ui/partials/index/modal-health-check.html +72 -0
  67. package/web-ui/partials/index/modal-openclaw-config.html +280 -0
  68. package/web-ui/partials/index/modal-skills.html +184 -0
  69. package/web-ui/partials/index/modals-basic.html +156 -0
  70. package/web-ui/partials/index/panel-config-claude.html +126 -0
  71. package/web-ui/partials/index/panel-config-codex.html +237 -0
  72. package/web-ui/partials/index/panel-config-openclaw.html +78 -0
  73. package/web-ui/partials/index/panel-docs.html +130 -0
  74. package/web-ui/partials/index/panel-market.html +174 -0
  75. package/web-ui/partials/index/panel-orchestration.html +397 -0
  76. package/web-ui/partials/index/panel-sessions.html +292 -0
  77. package/web-ui/partials/index/panel-settings.html +190 -0
  78. package/web-ui/partials/index/panel-usage.html +213 -0
  79. package/web-ui/session-helpers.mjs +559 -362
  80. package/web-ui/source-bundle.cjs +233 -0
  81. package/web-ui/styles/base-theme.css +271 -0
  82. package/web-ui/styles/controls-forms.css +360 -0
  83. package/web-ui/styles/docs-panel.css +182 -0
  84. package/web-ui/styles/feedback.css +108 -0
  85. package/web-ui/styles/health-check-dialog.css +144 -0
  86. package/web-ui/styles/layout-shell.css +376 -0
  87. package/web-ui/styles/modals-core.css +464 -0
  88. package/web-ui/styles/navigation-panels.css +348 -0
  89. package/web-ui/styles/openclaw-structured.css +266 -0
  90. package/web-ui/styles/responsive.css +450 -0
  91. package/web-ui/styles/sessions-list.css +400 -0
  92. package/web-ui/styles/sessions-preview.css +411 -0
  93. package/web-ui/styles/sessions-toolbar-trash.css +243 -0
  94. package/web-ui/styles/sessions-usage.css +628 -0
  95. package/web-ui/styles/skills-list.css +296 -0
  96. package/web-ui/styles/skills-market.css +335 -0
  97. package/web-ui/styles/task-orchestration.css +776 -0
  98. package/web-ui/styles/titles-cards.css +408 -0
  99. package/web-ui/styles.css +18 -4668
  100. package/web-ui.html +17 -17
  101. package/res/screenshot.png +0 -0
  102. package/res/vue.global.js +0 -18552
@@ -0,0 +1,400 @@
1
+ .session-empty {
2
+ padding: 28px var(--spacing-sm);
3
+ text-align: center;
4
+ border: 1px dashed var(--color-border-soft);
5
+ border-radius: var(--radius-lg);
6
+ color: var(--color-text-tertiary);
7
+ background: var(--bg-warm-gradient);
8
+ position: relative;
9
+ box-shadow: var(--shadow-subtle);
10
+ }
11
+
12
+ .session-empty::before {
13
+ content: "";
14
+ display: block;
15
+ width: 36px;
16
+ height: 36px;
17
+ border-radius: 50%;
18
+ margin: 0 auto 10px;
19
+ background: rgba(210, 107, 90, 0.12);
20
+ box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.7);
21
+ }
22
+
23
+ .trash-list {
24
+ display: grid;
25
+ gap: 12px;
26
+ margin-top: 12px;
27
+ }
28
+
29
+ .trash-item.session-item {
30
+ min-height: auto;
31
+ height: auto;
32
+ cursor: default;
33
+ content-visibility: visible;
34
+ contain-intrinsic-size: auto;
35
+ }
36
+
37
+ .trash-item.session-item:hover,
38
+ .trash-item.session-item:active {
39
+ transform: none;
40
+ border-color: var(--color-border-soft);
41
+ background: linear-gradient(to bottom, var(--color-surface) 0%, rgba(255, 255, 255, 0.92) 100%);
42
+ box-shadow: var(--shadow-subtle);
43
+ }
44
+
45
+ .trash-item.session-item::before {
46
+ background: linear-gradient(180deg, rgba(70, 86, 110, 0.26), rgba(70, 86, 110, 0.08));
47
+ }
48
+
49
+ .trash-item-main {
50
+ min-width: 0;
51
+ flex: 1;
52
+ }
53
+
54
+ .trash-item-mainline {
55
+ display: flex;
56
+ align-items: flex-start;
57
+ gap: 8px;
58
+ }
59
+
60
+ .trash-item-title {
61
+ flex: 1;
62
+ font-size: var(--font-size-body);
63
+ font-weight: var(--font-weight-secondary);
64
+ color: var(--color-text-primary);
65
+ line-height: 1.4;
66
+ display: -webkit-box;
67
+ -webkit-line-clamp: 2;
68
+ -webkit-box-orient: vertical;
69
+ white-space: normal;
70
+ overflow: hidden;
71
+ overflow-wrap: anywhere;
72
+ }
73
+
74
+ .trash-item-meta {
75
+ margin-top: 6px;
76
+ }
77
+
78
+ .trash-item-side {
79
+ display: flex;
80
+ flex-direction: column;
81
+ align-items: flex-end;
82
+ gap: 8px;
83
+ flex-shrink: 0;
84
+ min-width: 132px;
85
+ }
86
+
87
+ .trash-item-actions {
88
+ display: grid;
89
+ grid-template-columns: repeat(2, minmax(116px, 116px));
90
+ align-self: flex-end;
91
+ justify-content: flex-end;
92
+ gap: 8px;
93
+ }
94
+
95
+ .trash-item-actions .btn-mini {
96
+ width: 100%;
97
+ height: 38px;
98
+ min-height: 38px;
99
+ padding: 0 12px;
100
+ display: inline-flex;
101
+ align-items: center;
102
+ justify-content: center;
103
+ line-height: 1;
104
+ white-space: nowrap;
105
+ }
106
+
107
+ .trash-item-time {
108
+ width: 100%;
109
+ text-align: right;
110
+ white-space: nowrap;
111
+ color: var(--color-text-tertiary);
112
+ }
113
+
114
+ .trash-item-path {
115
+ margin-top: 8px;
116
+ display: grid;
117
+ grid-template-columns: 48px minmax(0, 1fr);
118
+ gap: 8px;
119
+ align-items: start;
120
+ white-space: normal;
121
+ overflow-wrap: anywhere;
122
+ }
123
+
124
+ .trash-item-label {
125
+ display: inline-block;
126
+ color: var(--color-text-secondary);
127
+ font-weight: var(--font-weight-secondary);
128
+ }
129
+
130
+ .trash-item-path span:last-child {
131
+ min-width: 0;
132
+ word-break: break-word;
133
+ }
134
+
135
+ .trash-item .session-count-badge {
136
+ margin-top: 2px;
137
+ }
138
+
139
+ .session-layout {
140
+ display: grid;
141
+ grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
142
+ gap: var(--spacing-sm);
143
+ align-items: start;
144
+ height: min(72vh, 760px);
145
+ min-height: 520px;
146
+ }
147
+
148
+ .session-layout.session-standalone {
149
+ grid-template-columns: minmax(0, 1fr);
150
+ }
151
+
152
+ .session-standalone-page {
153
+ max-width: 960px;
154
+ margin: 0 auto;
155
+ padding: var(--spacing-sm) 0;
156
+ }
157
+
158
+ .session-standalone-title {
159
+ font-size: var(--font-size-title);
160
+ font-weight: var(--font-weight-title);
161
+ color: var(--color-text-primary);
162
+ margin-bottom: var(--spacing-sm);
163
+ letter-spacing: -0.01em;
164
+ }
165
+
166
+ .session-standalone-text {
167
+ white-space: pre-wrap;
168
+ font-family: var(--font-family-body);
169
+ font-size: var(--font-size-body);
170
+ line-height: 1.7;
171
+ color: var(--color-text-primary);
172
+ word-break: break-word;
173
+ }
174
+
175
+ .session-list {
176
+ display: flex;
177
+ flex-direction: column;
178
+ gap: var(--spacing-xs);
179
+ position: sticky;
180
+ top: 12px;
181
+ height: 100%;
182
+ max-height: none;
183
+ overflow-y: auto;
184
+ overflow-x: hidden;
185
+ padding-right: 0;
186
+ min-width: 0;
187
+ scrollbar-width: none;
188
+ -ms-overflow-style: none;
189
+ }
190
+
191
+ .session-list::-webkit-scrollbar {
192
+ width: 0;
193
+ height: 0;
194
+ display: none;
195
+ }
196
+
197
+ .session-item {
198
+ border: 1px solid var(--color-border-soft);
199
+ border-radius: var(--radius-sm);
200
+ background: linear-gradient(to bottom, var(--color-surface) 0%, rgba(255, 255, 255, 0.92) 100%);
201
+ padding: 16px;
202
+ cursor: pointer;
203
+ transition: all var(--transition-fast) var(--ease-spring);
204
+ user-select: none;
205
+ min-width: 0;
206
+ position: relative;
207
+ overflow: hidden;
208
+ min-height: 102px;
209
+ content-visibility: auto;
210
+ contain-intrinsic-size: 102px;
211
+ }
212
+
213
+ .session-item-header {
214
+ display: flex;
215
+ align-items: center;
216
+ justify-content: space-between;
217
+ gap: 10px;
218
+ margin-bottom: 4px;
219
+ }
220
+
221
+ .session-item-main {
222
+ min-width: 0;
223
+ flex: 1;
224
+ display: flex;
225
+ align-items: center;
226
+ gap: 8px;
227
+ }
228
+
229
+ .session-item:hover {
230
+ border-color: var(--color-brand);
231
+ background: linear-gradient(to bottom, rgba(210, 107, 90, 0.08) 0%, rgba(255, 255, 255, 0.98) 100%);
232
+ transform: translateY(-1px);
233
+ }
234
+
235
+ .session-item:focus-visible {
236
+ outline: 3px solid rgba(201, 94, 75, 0.25);
237
+ outline-offset: 2px;
238
+ border-color: var(--color-brand);
239
+ background: linear-gradient(to bottom, rgba(210, 107, 90, 0.08) 0%, rgba(255, 255, 255, 0.98) 100%);
240
+ }
241
+
242
+ .session-item::before {
243
+ content: "";
244
+ position: absolute;
245
+ left: 0;
246
+ top: 10px;
247
+ bottom: 10px;
248
+ width: 3px;
249
+ border-radius: 999px;
250
+ background: rgba(210, 107, 90, 0.15);
251
+ transition: background var(--transition-fast) var(--ease-spring);
252
+ }
253
+
254
+ .session-item:active {
255
+ transform: scale(0.99);
256
+ }
257
+
258
+ .session-item.active {
259
+ border-color: var(--color-brand);
260
+ background: linear-gradient(to bottom, rgba(210, 107, 90, 0.1) 0%, rgba(255, 255, 255, 0.98) 100%);
261
+ box-shadow: 0 6px 16px rgba(210, 107, 90, 0.12);
262
+ }
263
+
264
+ .session-item.pinned {
265
+ border-color: rgba(208, 88, 58, 0.42);
266
+ background: linear-gradient(to bottom, rgba(210, 107, 90, 0.12) 0%, rgba(255, 251, 247, 0.98) 100%);
267
+ box-shadow: 0 8px 18px rgba(210, 107, 90, 0.10);
268
+ }
269
+
270
+ .session-item.pinned::before {
271
+ background: linear-gradient(180deg, rgba(201, 94, 75, 0.8), rgba(201, 94, 75, 0.32));
272
+ }
273
+
274
+ .session-item.active::before {
275
+ background: linear-gradient(180deg, rgba(201, 94, 75, 0.9), rgba(201, 94, 75, 0.4));
276
+ }
277
+
278
+ .session-item-title {
279
+ font-size: var(--font-size-body);
280
+ font-weight: var(--font-weight-secondary);
281
+ color: var(--color-text-primary);
282
+ line-height: 1.4;
283
+ display: -webkit-box;
284
+ -webkit-line-clamp: 2;
285
+ -webkit-box-orient: vertical;
286
+ white-space: normal;
287
+ overflow: hidden;
288
+ flex: 1;
289
+ max-width: none;
290
+ }
291
+
292
+ .session-item-actions {
293
+ display: inline-flex;
294
+ align-items: center;
295
+ gap: 6px;
296
+ flex-shrink: 0;
297
+ }
298
+
299
+ .session-item-copy {
300
+ border: 1px solid rgba(70, 86, 110, 0.35);
301
+ background: rgba(70, 86, 110, 0.08);
302
+ color: var(--color-text-secondary);
303
+ width: 22px;
304
+ height: 22px;
305
+ border-radius: 8px;
306
+ display: inline-flex;
307
+ align-items: center;
308
+ justify-content: center;
309
+ cursor: pointer;
310
+ flex-shrink: 0;
311
+ transition: all var(--transition-fast) var(--ease-spring);
312
+ }
313
+
314
+ .session-item-copy:hover {
315
+ border-color: rgba(70, 86, 110, 0.7);
316
+ background: rgba(70, 86, 110, 0.16);
317
+ color: var(--color-text-primary);
318
+ transform: translateY(-1px);
319
+ }
320
+
321
+ .session-item-copy:disabled {
322
+ opacity: 0.5;
323
+ cursor: not-allowed;
324
+ transform: none;
325
+ }
326
+
327
+ .session-item-copy svg {
328
+ width: 10px;
329
+ height: 10px;
330
+ }
331
+
332
+ .session-item-pin {
333
+ border-color: rgba(208, 88, 58, 0.24);
334
+ }
335
+
336
+ .session-item-pin .pin-icon,
337
+ .session-item-pin svg {
338
+ width: 9px;
339
+ height: 9px;
340
+ color: rgba(208, 88, 58, 0.78);
341
+ }
342
+
343
+ .session-item.pinned .session-item-pin {
344
+ background: rgba(208, 88, 58, 0.16);
345
+ border-color: rgba(208, 88, 58, 0.46);
346
+ box-shadow: inset 0 0 0 1px rgba(208, 88, 58, 0.08);
347
+ }
348
+
349
+ .session-item.pinned .session-item-pin .pin-icon,
350
+ .session-item.pinned .session-item-pin svg {
351
+ color: var(--color-brand-dark);
352
+ }
353
+
354
+ .session-item-sub.session-item-snippet {
355
+ display: none !important;
356
+ }
357
+
358
+ .session-item-sub {
359
+ font-size: var(--font-size-caption);
360
+ color: var(--color-text-tertiary);
361
+ line-height: 1.35;
362
+ white-space: nowrap;
363
+ overflow: hidden;
364
+ text-overflow: ellipsis;
365
+ }
366
+
367
+ .session-item-sub.session-item-wrap {
368
+ white-space: normal;
369
+ }
370
+
371
+ .session-item-meta {
372
+ display: flex;
373
+ flex-wrap: wrap;
374
+ align-items: center;
375
+ gap: 6px;
376
+ margin-top: 2px;
377
+ margin-bottom: 2px;
378
+ }
379
+
380
+ .session-item-time {
381
+ font-size: var(--font-size-caption);
382
+ color: var(--color-text-tertiary);
383
+ white-space: nowrap;
384
+ }
385
+
386
+ .session-preview {
387
+ border: 1px solid var(--color-border-soft);
388
+ border-radius: var(--radius-xl);
389
+ background: linear-gradient(to bottom, var(--color-surface-elevated) 0%, rgba(255, 255, 255, 0.96) 100%);
390
+ box-shadow: var(--shadow-card);
391
+ min-height: 0;
392
+ max-height: none;
393
+ height: 100%;
394
+ display: flex;
395
+ flex-direction: column;
396
+ overflow: hidden;
397
+ position: relative;
398
+ transform: translateX(4px);
399
+ transition: transform var(--transition-normal) var(--ease-spring-soft), box-shadow var(--transition-normal) var(--ease-spring-soft);
400
+ }