codexmate 0.1.3 → 0.1.5
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.
- package/README.md +2 -2
- package/README.vi.md +2 -2
- package/README.zh.md +2 -2
- package/cli/analytics-export-args.js +2 -2
- package/cli/session-usage.js +5 -2
- package/cli.js +434 -57
- package/lib/cli-sessions.js +19 -0
- package/package.json +1 -1
- package/web-ui/app.js +2 -2
- package/web-ui/logic.sessions.mjs +5 -5
- package/web-ui/modules/app.computed.dashboard.mjs +0 -4
- package/web-ui/modules/app.computed.session.mjs +2 -1
- package/web-ui/modules/app.methods.session-actions.mjs +12 -4
- package/web-ui/modules/app.methods.session-browser.mjs +8 -4
- package/web-ui/modules/app.methods.session-trash.mjs +2 -2
- package/web-ui/modules/app.methods.startup-claude.mjs +2 -1
- package/web-ui/modules/app.methods.tool-config-permissions.mjs +3 -2
- package/web-ui/modules/app.methods.web-ui-preferences.mjs +2 -1
- package/web-ui/modules/i18n/locales/en.mjs +6 -8
- package/web-ui/modules/i18n/locales/ja.mjs +6 -8
- package/web-ui/modules/i18n/locales/vi.mjs +6 -8
- package/web-ui/modules/i18n/locales/zh-tw.mjs +6 -8
- package/web-ui/modules/i18n/locales/zh.mjs +6 -8
- package/web-ui/partials/index/panel-config-openclaw.html +37 -8
- package/web-ui/partials/index/panel-docs.html +0 -26
- package/web-ui/res/web-ui-render.precompiled.js +175 -163
- package/web-ui/styles/docs-panel.css +75 -90
|
@@ -8,15 +8,16 @@
|
|
|
8
8
|
gap: 16px;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
/* ---- Toolbar grid ----
|
|
11
|
+
/* ---- Toolbar grid ----
|
|
12
|
+
三张配置卡(PM / Mirror / Action)等列宽分占,避免
|
|
13
|
+
此前 span4×span8×span8 带来的重心右偏与左侧留白。 */
|
|
12
14
|
.docs-toolbar-grid {
|
|
13
15
|
display: grid;
|
|
14
|
-
grid-template-columns: repeat(
|
|
16
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
15
17
|
gap: 10px;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
.docs-toolbar-card {
|
|
19
|
-
grid-column: span 4;
|
|
20
21
|
display: flex;
|
|
21
22
|
flex-direction: column;
|
|
22
23
|
gap: 8px;
|
|
@@ -27,13 +28,48 @@
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
.docs-toolbar-card-wide {
|
|
30
|
-
|
|
31
|
+
/* 历史遗留的宽卡类,等宽网格下不再需要额外跨度,
|
|
32
|
+
保留类名以兼容模板中的引用。 */
|
|
33
|
+
grid-column: auto;
|
|
31
34
|
}
|
|
32
35
|
|
|
33
|
-
/*
|
|
36
|
+
/* Segmented control:把 install/registry 的散落 btn-mini
|
|
37
|
+
收敛成带容器边框的成组按钮,弱化“一堆小按钮”观感。 */
|
|
38
|
+
.docs-toolbar-card .install-action-tabs {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
flex-wrap: wrap;
|
|
41
|
+
gap: 4px;
|
|
42
|
+
padding: 4px;
|
|
43
|
+
border: 1px solid var(--color-border-soft);
|
|
44
|
+
border-radius: var(--radius-sm);
|
|
45
|
+
background: var(--color-bg-soft);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.docs-toolbar-card .install-action-tabs .btn-mini {
|
|
49
|
+
border-color: transparent;
|
|
50
|
+
background: transparent;
|
|
51
|
+
box-shadow: none;
|
|
52
|
+
padding: 6px 12px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.docs-toolbar-card .install-action-tabs .btn-mini:hover {
|
|
56
|
+
border-color: var(--color-border-soft);
|
|
57
|
+
background: var(--color-surface);
|
|
58
|
+
transform: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.docs-toolbar-card .install-action-tabs .btn-mini.active {
|
|
62
|
+
border-color: rgba(200, 121, 99, 0.22);
|
|
63
|
+
background: var(--color-surface);
|
|
64
|
+
box-shadow: var(--shadow-subtle);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* ---- Summary strip ----
|
|
68
|
+
原为 4 列网格但仅有 3 个 item,末列长期空置。改为
|
|
69
|
+
3 列等宽,composition 直接对齐内容数量。 */
|
|
34
70
|
.docs-summary-strip {
|
|
35
71
|
display: grid;
|
|
36
|
-
grid-template-columns: repeat(
|
|
72
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
37
73
|
gap: 10px;
|
|
38
74
|
margin-top: 2px;
|
|
39
75
|
}
|
|
@@ -48,8 +84,9 @@
|
|
|
48
84
|
background: var(--color-surface);
|
|
49
85
|
}
|
|
50
86
|
|
|
87
|
+
/* 三列等宽后不再需要额外跨度,保留类名兼容模板引用。 */
|
|
51
88
|
.docs-summary-item-wide {
|
|
52
|
-
grid-column:
|
|
89
|
+
grid-column: auto;
|
|
53
90
|
}
|
|
54
91
|
|
|
55
92
|
.docs-summary-label {
|
|
@@ -69,57 +106,6 @@
|
|
|
69
106
|
word-break: break-word;
|
|
70
107
|
}
|
|
71
108
|
|
|
72
|
-
.docs-installed-card {
|
|
73
|
-
margin-top: 12px;
|
|
74
|
-
padding: 12px;
|
|
75
|
-
border: 1px solid var(--color-border-soft);
|
|
76
|
-
border-radius: var(--radius-md);
|
|
77
|
-
background: var(--color-bg-soft);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.docs-installed-head,
|
|
81
|
-
.docs-installed-main {
|
|
82
|
-
display: flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
justify-content: space-between;
|
|
85
|
-
gap: 10px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.docs-installed-title,
|
|
89
|
-
.docs-installed-name {
|
|
90
|
-
font-weight: 700;
|
|
91
|
-
color: var(--color-text-primary);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.docs-installed-count,
|
|
95
|
-
.docs-installed-version {
|
|
96
|
-
font-size: 12px;
|
|
97
|
-
color: var(--color-text-muted);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.docs-installed-list {
|
|
101
|
-
display: grid;
|
|
102
|
-
gap: 8px;
|
|
103
|
-
margin-top: 10px;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.docs-installed-item {
|
|
107
|
-
min-width: 0;
|
|
108
|
-
padding: 10px;
|
|
109
|
-
border-radius: var(--radius-sm);
|
|
110
|
-
background: var(--color-bg-card);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.docs-installed-command {
|
|
114
|
-
display: block;
|
|
115
|
-
margin-top: 6px;
|
|
116
|
-
overflow: hidden;
|
|
117
|
-
text-overflow: ellipsis;
|
|
118
|
-
white-space: nowrap;
|
|
119
|
-
font-size: 12px;
|
|
120
|
-
color: var(--color-text-secondary);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
109
|
/* ---- Install rows ---- */
|
|
124
110
|
.docs-install-list {
|
|
125
111
|
display: flex;
|
|
@@ -155,7 +141,7 @@
|
|
|
155
141
|
display: flex;
|
|
156
142
|
align-items: center;
|
|
157
143
|
gap: 10px;
|
|
158
|
-
padding:
|
|
144
|
+
padding: 8px 8px 8px 14px;
|
|
159
145
|
border: 1px solid var(--color-border-soft);
|
|
160
146
|
border-radius: var(--radius-sm);
|
|
161
147
|
background: var(--color-surface-alt);
|
|
@@ -163,18 +149,21 @@
|
|
|
163
149
|
max-width: 100%;
|
|
164
150
|
}
|
|
165
151
|
|
|
152
|
+
/* 去框中框:box 本体已承担容器层,命令文本不再叠
|
|
153
|
+
二次背景/边框,降低视觉噪音、与终端观感对齐。 */
|
|
166
154
|
.docs-command-box .install-command {
|
|
167
155
|
flex: 1;
|
|
168
156
|
min-width: 0;
|
|
169
|
-
padding:
|
|
170
|
-
border-radius:
|
|
171
|
-
background:
|
|
172
|
-
border:
|
|
157
|
+
padding: 0;
|
|
158
|
+
border-radius: 0;
|
|
159
|
+
background: transparent;
|
|
160
|
+
border: 0;
|
|
173
161
|
white-space: normal;
|
|
174
162
|
word-break: break-all;
|
|
175
163
|
overflow-wrap: break-word;
|
|
176
164
|
font-size: 13px;
|
|
177
165
|
line-height: 1.5;
|
|
166
|
+
color: var(--color-text-primary);
|
|
178
167
|
font-family: var(--font-family-mono);
|
|
179
168
|
user-select: all;
|
|
180
169
|
}
|
|
@@ -226,9 +215,17 @@
|
|
|
226
215
|
display: grid;
|
|
227
216
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
228
217
|
gap: 12px;
|
|
218
|
+
align-items: stretch;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/* 仅剩 troubleshooting 卡时,单卡占满整行,避免右侧空置。 */
|
|
222
|
+
.docs-help-grid > .docs-note-card:only-child {
|
|
223
|
+
grid-column: 1 / -1;
|
|
229
224
|
}
|
|
230
225
|
|
|
231
226
|
.docs-note-card {
|
|
227
|
+
display: flex;
|
|
228
|
+
flex-direction: column;
|
|
232
229
|
padding: 16px;
|
|
233
230
|
border: 1px solid var(--color-border-soft);
|
|
234
231
|
border-radius: var(--radius-md);
|
|
@@ -246,46 +243,34 @@
|
|
|
246
243
|
margin: 0;
|
|
247
244
|
}
|
|
248
245
|
|
|
249
|
-
.docs-static-list {
|
|
250
|
-
margin: 0;
|
|
251
|
-
padding-left: 18px;
|
|
252
|
-
color: var(--color-text-secondary);
|
|
253
|
-
font-size: 13px;
|
|
254
|
-
line-height: 1.6;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.docs-static-list li + li {
|
|
258
|
-
margin-top: 8px;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.docs-section-note {
|
|
262
|
-
margin-top: 4px;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
246
|
/* ---- Responsive ---- */
|
|
266
247
|
@media (max-width: 1100px) {
|
|
267
|
-
.docs-toolbar-
|
|
268
|
-
|
|
269
|
-
grid-column: span 12;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.docs-summary-strip {
|
|
248
|
+
.docs-toolbar-grid {
|
|
249
|
+
/* PM 单占一行,mirror/action 并排占第二行,避免三卡齐挤窄列。 */
|
|
273
250
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
274
251
|
}
|
|
275
252
|
|
|
276
|
-
.docs-
|
|
253
|
+
.docs-toolbar-grid > .docs-toolbar-card:first-child {
|
|
277
254
|
grid-column: span 2;
|
|
278
255
|
}
|
|
256
|
+
|
|
257
|
+
.docs-summary-strip {
|
|
258
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
259
|
+
}
|
|
279
260
|
}
|
|
280
261
|
|
|
281
262
|
@media (max-width: 720px) {
|
|
282
|
-
.docs-
|
|
283
|
-
.docs-help-grid {
|
|
263
|
+
.docs-toolbar-grid {
|
|
284
264
|
grid-template-columns: 1fr;
|
|
285
265
|
}
|
|
286
266
|
|
|
287
|
-
.docs-
|
|
288
|
-
grid-column:
|
|
267
|
+
.docs-toolbar-grid > .docs-toolbar-card:first-child {
|
|
268
|
+
grid-column: auto;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.docs-summary-strip,
|
|
272
|
+
.docs-help-grid {
|
|
273
|
+
grid-template-columns: 1fr;
|
|
289
274
|
}
|
|
290
275
|
|
|
291
276
|
.docs-install-row,
|