codexmate 0.0.23 → 0.0.25

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.md +32 -9
  2. package/README.zh.md +33 -9
  3. package/cli/auth-profiles.js +23 -7
  4. package/cli/builtin-proxy.js +35 -0
  5. package/cli/claude-proxy.js +24 -0
  6. package/cli/doctor-core.js +903 -0
  7. package/cli/import-skills-url.js +356 -0
  8. package/cli/openai-bridge.js +51 -4
  9. package/cli/session-usage.js +8 -2
  10. package/cli.js +1921 -399
  11. package/lib/automation.js +404 -0
  12. package/lib/cli-models-utils.js +0 -40
  13. package/lib/cli-network-utils.js +28 -2
  14. package/lib/cli-path-utils.js +21 -5
  15. package/lib/cli-sessions.js +32 -1
  16. package/lib/download-artifacts.js +17 -2
  17. package/lib/mcp-stdio.js +13 -0
  18. package/package.json +3 -3
  19. package/plugins/README.md +20 -0
  20. package/plugins/README.zh-CN.md +20 -0
  21. package/plugins/prompt-templates/comment-polish/index.mjs +25 -0
  22. package/plugins/prompt-templates/computed.mjs +253 -0
  23. package/plugins/prompt-templates/index.mjs +8 -0
  24. package/plugins/prompt-templates/manifest.mjs +15 -0
  25. package/plugins/prompt-templates/methods.mjs +619 -0
  26. package/plugins/prompt-templates/overview.mjs +90 -0
  27. package/plugins/prompt-templates/ownership.mjs +19 -0
  28. package/plugins/prompt-templates/rule-ack/index.mjs +21 -0
  29. package/plugins/prompt-templates/storage.mjs +64 -0
  30. package/plugins/registry.mjs +16 -0
  31. package/web-ui/app.js +21 -35
  32. package/web-ui/index.html +4 -3
  33. package/web-ui/logic.sessions.mjs +2 -2
  34. package/web-ui/modules/app.computed.dashboard.mjs +24 -22
  35. package/web-ui/modules/app.computed.main-tabs.mjs +3 -0
  36. package/web-ui/modules/app.computed.session.mjs +17 -0
  37. package/web-ui/modules/app.methods.agents.mjs +91 -3
  38. package/web-ui/modules/app.methods.codex-config.mjs +153 -164
  39. package/web-ui/modules/app.methods.install.mjs +28 -0
  40. package/web-ui/modules/app.methods.navigation.mjs +34 -1
  41. package/web-ui/modules/app.methods.runtime.mjs +24 -2
  42. package/web-ui/modules/app.methods.session-actions.mjs +8 -1
  43. package/web-ui/modules/app.methods.session-browser.mjs +37 -6
  44. package/web-ui/modules/app.methods.session-trash.mjs +4 -2
  45. package/web-ui/modules/config-mode.computed.mjs +1 -3
  46. package/web-ui/modules/i18n.dict.mjs +2055 -0
  47. package/web-ui/modules/i18n.mjs +2 -1769
  48. package/web-ui/partials/index/layout-header.html +48 -34
  49. package/web-ui/partials/index/modal-config-template-agents.html +3 -4
  50. package/web-ui/partials/index/modal-health-check.html +33 -60
  51. package/web-ui/partials/index/panel-config-claude.html +35 -15
  52. package/web-ui/partials/index/panel-config-codex.html +47 -19
  53. package/web-ui/partials/index/panel-config-openclaw.html +8 -3
  54. package/web-ui/partials/index/panel-dashboard.html +186 -0
  55. package/web-ui/partials/index/panel-docs.html +1 -1
  56. package/web-ui/partials/index/panel-market.html +3 -0
  57. package/web-ui/partials/index/panel-orchestration.html +3 -0
  58. package/web-ui/partials/index/panel-plugins.html +16 -10
  59. package/web-ui/partials/index/panel-sessions.html +8 -3
  60. package/web-ui/partials/index/panel-settings.html +1 -1
  61. package/web-ui/partials/index/panel-usage.html +9 -1
  62. package/web-ui/res/logo-pack.webp +0 -0
  63. package/web-ui/styles/controls-forms.css +58 -4
  64. package/web-ui/styles/dashboard.css +274 -0
  65. package/web-ui/styles/layout-shell.css +3 -2
  66. package/web-ui/styles/responsive.css +0 -2
  67. package/web-ui/styles/sessions-list.css +5 -7
  68. package/web-ui/styles/sessions-toolbar-trash.css +4 -4
  69. package/web-ui/styles/sessions-usage.css +33 -0
  70. package/web-ui/styles.css +1 -0
  71. package/res/logo.png +0 -0
  72. /package/{res → web-ui/res}/json5.min.js +0 -0
  73. /package/{res → web-ui/res}/vue.global.prod.js +0 -0
@@ -0,0 +1,274 @@
1
+ .doctor-hero {
2
+ margin-top: 0;
3
+ }
4
+
5
+ .doctor-grid {
6
+ display: grid;
7
+ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
8
+ gap: 12px;
9
+ }
10
+
11
+ .doctor-card {
12
+ text-align: left;
13
+ padding: 14px 14px 12px;
14
+ border-radius: var(--radius-lg);
15
+ border: 1px solid var(--color-border-soft);
16
+ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.92) 0%, rgba(246, 240, 232, 0.9) 100%);
17
+ box-shadow: var(--shadow-subtle);
18
+ cursor: pointer;
19
+ display: flex;
20
+ flex-direction: column;
21
+ gap: 8px;
22
+ min-width: 0;
23
+ max-width: 100%;
24
+ overflow: hidden;
25
+ }
26
+
27
+ .doctor-card:disabled {
28
+ opacity: 0.6;
29
+ cursor: not-allowed;
30
+ }
31
+
32
+ .doctor-card-title {
33
+ font-size: var(--font-size-body);
34
+ font-weight: var(--font-weight-title);
35
+ color: var(--color-text-primary);
36
+ }
37
+
38
+ .doctor-card-meta {
39
+ display: flex;
40
+ align-items: center;
41
+ gap: 6px;
42
+ font-size: var(--font-size-caption);
43
+ color: var(--color-text-tertiary);
44
+ white-space: nowrap;
45
+ overflow: hidden;
46
+ text-overflow: ellipsis;
47
+ }
48
+
49
+ .doctor-card-meta span {
50
+ min-width: 0;
51
+ }
52
+
53
+ .doctor-card-meta span:not(:nth-child(2)) {
54
+ flex: 1 1 auto;
55
+ overflow: hidden;
56
+ text-overflow: ellipsis;
57
+ }
58
+
59
+ .doctor-card-kv {
60
+ display: grid;
61
+ grid-template-columns: 92px minmax(0, 1fr);
62
+ gap: 8px;
63
+ align-items: baseline;
64
+ font-size: var(--font-size-caption);
65
+ color: var(--color-text-secondary);
66
+ min-width: 0;
67
+ }
68
+
69
+ .doctor-card-kv > span:first-child {
70
+ color: var(--color-text-tertiary);
71
+ }
72
+
73
+ .doctor-card-kv > span:nth-child(2) {
74
+ min-width: 0;
75
+ overflow: hidden;
76
+ display: -webkit-box;
77
+ -webkit-box-orient: vertical;
78
+ -webkit-line-clamp: 2;
79
+ overflow-wrap: anywhere;
80
+ word-break: break-word;
81
+ justify-self: center;
82
+ text-align: center;
83
+ }
84
+
85
+ .doctor-kv-error {
86
+ color: #8a2f36;
87
+ overflow: hidden;
88
+ text-overflow: ellipsis;
89
+ white-space: nowrap;
90
+ }
91
+
92
+ .doctor-status-row {
93
+ margin-top: 12px;
94
+ display: flex;
95
+ flex-wrap: wrap;
96
+ gap: 10px;
97
+ justify-content: center;
98
+ }
99
+
100
+ .doctor-status-chip {
101
+ display: inline-flex;
102
+ align-items: center;
103
+ gap: 8px;
104
+ padding: 8px 10px;
105
+ border-radius: 999px;
106
+ border: 1px solid var(--color-border-soft);
107
+ background: rgba(255, 255, 255, 0.78);
108
+ font-size: var(--font-size-caption);
109
+ color: var(--color-text-secondary);
110
+ justify-content: center;
111
+ text-align: center;
112
+ }
113
+
114
+ .doctor-status-chip strong {
115
+ color: var(--color-text-primary);
116
+ font-weight: var(--font-weight-secondary);
117
+ }
118
+
119
+ .doctor-status-chip.ok {
120
+ border-color: rgba(57, 181, 97, 0.25);
121
+ background: rgba(57, 181, 97, 0.08);
122
+ color: #2b6a3b;
123
+ }
124
+
125
+ .doctor-status-chip.warn {
126
+ border-color: rgba(246, 211, 106, 0.45);
127
+ background: rgba(246, 211, 106, 0.16);
128
+ color: #6f4b00;
129
+ }
130
+
131
+ .doctor-status-chip.error {
132
+ border-color: rgba(220, 95, 108, 0.28);
133
+ background: rgba(220, 95, 108, 0.08);
134
+ color: #8a2f36;
135
+ }
136
+
137
+ .doctor-health-result {
138
+ margin-top: 14px;
139
+ border-radius: var(--radius-lg);
140
+ border: 1px solid var(--color-border-soft);
141
+ padding: 12px 12px 10px;
142
+ background: rgba(255, 255, 255, 0.78);
143
+ text-align: center;
144
+ }
145
+
146
+ .doctor-health-result.ok {
147
+ border-color: rgba(57, 181, 97, 0.25);
148
+ background: rgba(57, 181, 97, 0.08);
149
+ color: #2b6a3b;
150
+ }
151
+
152
+ .doctor-health-result.error {
153
+ border-color: rgba(220, 95, 108, 0.28);
154
+ background: rgba(220, 95, 108, 0.08);
155
+ color: #8a2f36;
156
+ }
157
+
158
+ .doctor-health-title {
159
+ font-weight: var(--font-weight-secondary);
160
+ color: var(--color-text-primary);
161
+ margin-bottom: 8px;
162
+ text-align: center;
163
+ }
164
+
165
+ .doctor-health-issues {
166
+ display: flex;
167
+ flex-direction: column;
168
+ gap: 6px;
169
+ font-size: var(--font-size-caption);
170
+ align-items: center;
171
+ }
172
+
173
+ .doctor-health-issue {
174
+ padding: 8px 10px;
175
+ border-radius: 12px;
176
+ border: 1px solid rgba(220, 95, 108, 0.2);
177
+ background: rgba(255, 255, 255, 0.75);
178
+ color: var(--color-text-secondary);
179
+ overflow-wrap: anywhere;
180
+ word-break: break-word;
181
+ text-align: center;
182
+ width: 100%;
183
+ max-width: 720px;
184
+ }
185
+
186
+ .doctor-action-list {
187
+ margin-top: 14px;
188
+ display: grid;
189
+ gap: 10px;
190
+ }
191
+
192
+ .doctor-action-card {
193
+ border-radius: var(--radius-lg);
194
+ border: 1px solid var(--color-border-soft);
195
+ background: rgba(255, 255, 255, 0.78);
196
+ padding: 12px;
197
+ overflow: hidden;
198
+ text-align: center;
199
+ }
200
+
201
+ .doctor-action-head {
202
+ display: flex;
203
+ align-items: center;
204
+ justify-content: center;
205
+ gap: 10px;
206
+ flex-wrap: wrap;
207
+ margin-bottom: 8px;
208
+ }
209
+
210
+ .doctor-action-title {
211
+ font-weight: var(--font-weight-secondary);
212
+ color: var(--color-text-primary);
213
+ min-width: 0;
214
+ overflow: hidden;
215
+ text-overflow: ellipsis;
216
+ white-space: nowrap;
217
+ max-width: 100%;
218
+ }
219
+
220
+ .doctor-action-severity {
221
+ font-size: var(--font-size-caption);
222
+ padding: 3px 10px;
223
+ border-radius: 999px;
224
+ border: 1px solid var(--color-border-soft);
225
+ background: rgba(255, 255, 255, 0.85);
226
+ color: var(--color-text-secondary);
227
+ text-transform: uppercase;
228
+ }
229
+
230
+ .doctor-action-severity.error {
231
+ border-color: rgba(220, 95, 108, 0.28);
232
+ background: rgba(220, 95, 108, 0.08);
233
+ color: #8a2f36;
234
+ }
235
+
236
+ .doctor-action-severity.warn {
237
+ border-color: rgba(246, 211, 106, 0.45);
238
+ background: rgba(246, 211, 106, 0.16);
239
+ color: #6f4b00;
240
+ }
241
+
242
+ .doctor-action-severity.info {
243
+ border-color: rgba(126, 163, 215, 0.35);
244
+ background: rgba(126, 163, 215, 0.14);
245
+ color: #1f3d62;
246
+ }
247
+
248
+ .doctor-action-impact {
249
+ font-size: var(--font-size-caption);
250
+ color: var(--color-text-secondary);
251
+ overflow-wrap: anywhere;
252
+ word-break: break-word;
253
+ max-width: 920px;
254
+ margin: 0 auto 10px;
255
+ }
256
+
257
+ .doctor-action-buttons {
258
+ display: flex;
259
+ flex-wrap: wrap;
260
+ gap: 8px;
261
+ justify-content: center;
262
+ }
263
+
264
+ .doctor-action-footer {
265
+ display: flex;
266
+ justify-content: center;
267
+ margin-top: 2px;
268
+ }
269
+
270
+ @media (max-width: 520px) {
271
+ .doctor-card-kv {
272
+ grid-template-columns: 76px minmax(0, 1fr);
273
+ }
274
+ }
@@ -315,14 +315,14 @@ body::after {
315
315
  color: var(--color-text-muted);
316
316
  letter-spacing: 0.06em;
317
317
  text-transform: uppercase;
318
- padding: 0 8px;
318
+ padding: 0 6px;
319
319
  margin-bottom: 8px;
320
320
  }
321
321
 
322
322
  .side-item {
323
323
  width: 100%;
324
324
  text-align: left;
325
- padding: 7px 10px;
325
+ padding: 5px;
326
326
  border-radius: 8px;
327
327
  border: 1px solid transparent;
328
328
  background: transparent;
@@ -347,6 +347,7 @@ body::after {
347
347
  border-radius: 0 2px 2px 0;
348
348
  background: transparent;
349
349
  transition: background-color var(--transition-fast) var(--ease-smooth);
350
+ display: none;
350
351
  }
351
352
 
352
353
  .side-item:hover {
@@ -268,8 +268,6 @@ textarea:focus-visible {
268
268
  }
269
269
 
270
270
  .session-item-title {
271
- -webkit-line-clamp: 1;
272
- max-height: none;
273
271
  white-space: nowrap;
274
272
  text-overflow: ellipsis;
275
273
  overflow: hidden;
@@ -142,7 +142,7 @@
142
142
  gap: var(--spacing-sm);
143
143
  align-items: start;
144
144
  height: min(72vh, 760px);
145
- min-height: 520px;
145
+ min-height: 360px;
146
146
  }
147
147
 
148
148
  .session-layout.session-standalone {
@@ -205,9 +205,9 @@
205
205
  min-width: 0;
206
206
  position: relative;
207
207
  overflow: hidden;
208
- min-height: 102px;
208
+ min-height: 80px;
209
209
  content-visibility: auto;
210
- contain-intrinsic-size: 102px;
210
+ contain-intrinsic-size: 80px;
211
211
  }
212
212
 
213
213
  .session-item-header {
@@ -280,11 +280,9 @@
280
280
  font-weight: var(--font-weight-secondary);
281
281
  color: var(--color-text-primary);
282
282
  line-height: 1.4;
283
- display: -webkit-box;
284
- -webkit-line-clamp: 2;
285
- -webkit-box-orient: vertical;
286
- white-space: normal;
283
+ white-space: nowrap;
287
284
  overflow: hidden;
285
+ text-overflow: ellipsis;
288
286
  flex: 1;
289
287
  max-width: none;
290
288
  }
@@ -2,7 +2,7 @@
2
2
  display: grid;
3
3
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
4
4
  gap: var(--spacing-xs);
5
- margin-bottom: var(--spacing-sm);
5
+ margin-bottom: var(--spacing-xs);
6
6
  align-items: end;
7
7
  }
8
8
 
@@ -31,9 +31,9 @@
31
31
  align-items: center;
32
32
  justify-content: flex-end;
33
33
  gap: var(--spacing-xs);
34
- margin-top: -2px;
35
- padding-top: 6px;
36
- margin-bottom: 12px;
34
+ margin-top: -1px;
35
+ padding-top: 4px;
36
+ margin-bottom: var(--spacing-xs);
37
37
  border-top: 1px dashed var(--color-border-soft);
38
38
  }
39
39
 
@@ -44,6 +44,30 @@
44
44
  margin-bottom: 16px;
45
45
  }
46
46
 
47
+ .usage-current-session-bar {
48
+ display: flex;
49
+ flex-wrap: wrap;
50
+ align-items: center;
51
+ gap: 12px;
52
+ padding: 10px 12px;
53
+ margin: 0 0 14px;
54
+ border-radius: 12px;
55
+ border: 1px solid var(--color-border-soft);
56
+ background: var(--color-surface-alt);
57
+ font-size: 12px;
58
+ color: var(--color-text-secondary);
59
+ }
60
+
61
+ .usage-current-session-label {
62
+ font-weight: 700;
63
+ color: var(--color-text-primary);
64
+ }
65
+
66
+ .usage-current-session-item strong {
67
+ font-weight: 700;
68
+ color: var(--color-text-primary);
69
+ }
70
+
47
71
  .usage-range-group {
48
72
  display: flex;
49
73
  gap: 8px;
@@ -509,6 +533,15 @@
509
533
  scrollbar-color: rgba(199, 116, 98, 0.72) rgba(199, 116, 98, 0.08);
510
534
  }
511
535
 
536
+ .usage-list-top-paths {
537
+ max-height: 140px;
538
+ gap: 6px;
539
+ }
540
+
541
+ .usage-card-top-paths {
542
+ grid-column: 1 / -1;
543
+ }
544
+
512
545
  .usage-list-scroll::-webkit-scrollbar {
513
546
  width: 10px;
514
547
  }
package/web-ui/styles.css CHANGED
@@ -8,6 +8,7 @@
8
8
  @import url('./styles/sessions-list.css');
9
9
  @import url('./styles/sessions-preview.css');
10
10
  @import url('./styles/sessions-usage.css');
11
+ @import url('./styles/dashboard.css');
11
12
  @import url('./styles/task-orchestration.css');
12
13
  @import url('./styles/modals-core.css');
13
14
  @import url('./styles/health-check-dialog.css');
package/res/logo.png DELETED
Binary file
File without changes
File without changes