codexmate 0.0.23 → 0.0.24

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 (55) hide show
  1. package/README.md +4 -3
  2. package/README.zh.md +4 -2
  3. package/cli/auth-profiles.js +23 -7
  4. package/cli/doctor-core.js +903 -0
  5. package/cli/import-skills-url.js +334 -0
  6. package/cli.js +304 -208
  7. package/lib/cli-models-utils.js +0 -40
  8. package/lib/cli-network-utils.js +28 -2
  9. package/package.json +5 -2
  10. package/plugins/README.md +20 -0
  11. package/plugins/README.zh-CN.md +20 -0
  12. package/plugins/prompt-templates/comment-polish/index.mjs +25 -0
  13. package/plugins/prompt-templates/computed.mjs +253 -0
  14. package/plugins/prompt-templates/index.mjs +8 -0
  15. package/plugins/prompt-templates/manifest.mjs +15 -0
  16. package/plugins/prompt-templates/methods.mjs +619 -0
  17. package/plugins/prompt-templates/overview.mjs +90 -0
  18. package/plugins/prompt-templates/ownership.mjs +19 -0
  19. package/plugins/prompt-templates/rule-ack/index.mjs +21 -0
  20. package/plugins/prompt-templates/storage.mjs +64 -0
  21. package/plugins/registry.mjs +16 -0
  22. package/res/logo-pack.webp +0 -0
  23. package/web-ui/app.js +15 -32
  24. package/web-ui/index.html +4 -3
  25. package/web-ui/modules/app.computed.dashboard.mjs +22 -22
  26. package/web-ui/modules/app.computed.main-tabs.mjs +3 -0
  27. package/web-ui/modules/app.methods.agents.mjs +91 -3
  28. package/web-ui/modules/app.methods.codex-config.mjs +153 -164
  29. package/web-ui/modules/app.methods.navigation.mjs +34 -1
  30. package/web-ui/modules/app.methods.runtime.mjs +24 -2
  31. package/web-ui/modules/app.methods.session-browser.mjs +9 -2
  32. package/web-ui/modules/config-mode.computed.mjs +1 -3
  33. package/web-ui/modules/i18n.dict.mjs +2039 -0
  34. package/web-ui/modules/i18n.mjs +2 -1769
  35. package/web-ui/partials/index/layout-header.html +36 -32
  36. package/web-ui/partials/index/modal-config-template-agents.html +3 -4
  37. package/web-ui/partials/index/modal-health-check.html +33 -60
  38. package/web-ui/partials/index/panel-config-claude.html +35 -15
  39. package/web-ui/partials/index/panel-config-codex.html +47 -19
  40. package/web-ui/partials/index/panel-config-openclaw.html +8 -3
  41. package/web-ui/partials/index/panel-dashboard.html +186 -0
  42. package/web-ui/partials/index/panel-docs.html +1 -1
  43. package/web-ui/partials/index/panel-market.html +3 -0
  44. package/web-ui/partials/index/panel-orchestration.html +3 -0
  45. package/web-ui/partials/index/panel-plugins.html +16 -10
  46. package/web-ui/partials/index/panel-sessions.html +4 -1
  47. package/web-ui/partials/index/panel-settings.html +1 -1
  48. package/web-ui/partials/index/panel-usage.html +2 -1
  49. package/web-ui/styles/controls-forms.css +9 -2
  50. package/web-ui/styles/dashboard.css +274 -0
  51. package/web-ui/styles/layout-shell.css +2 -2
  52. package/web-ui/styles/sessions-list.css +3 -3
  53. package/web-ui/styles/sessions-usage.css +9 -0
  54. package/web-ui/styles.css +1 -0
  55. package/res/logo.png +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;
@@ -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 {
@@ -509,6 +509,15 @@
509
509
  scrollbar-color: rgba(199, 116, 98, 0.72) rgba(199, 116, 98, 0.08);
510
510
  }
511
511
 
512
+ .usage-list-top-paths {
513
+ max-height: 140px;
514
+ gap: 6px;
515
+ }
516
+
517
+ .usage-card-top-paths {
518
+ grid-column: 1 / -1;
519
+ }
520
+
512
521
  .usage-list-scroll::-webkit-scrollbar {
513
522
  width: 10px;
514
523
  }
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