codexmate 0.1.2 → 0.1.4
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 +6 -3
- package/cli.js +382 -4
- package/package.json +1 -1
- package/web-ui/app.js +16 -2
- package/web-ui/index.html +1 -0
- package/web-ui/modules/app.computed.dashboard.mjs +10 -0
- package/web-ui/modules/app.methods.index.mjs +2 -0
- package/web-ui/modules/app.methods.install.mjs +14 -0
- package/web-ui/modules/app.methods.kilocode-config.mjs +164 -0
- package/web-ui/modules/app.methods.navigation.mjs +12 -0
- package/web-ui/modules/app.methods.startup-claude.mjs +3 -1
- package/web-ui/modules/app.methods.tool-config-permissions.mjs +4 -2
- package/web-ui/modules/app.methods.web-ui-preferences.mjs +3 -1
- package/web-ui/modules/config-mode.computed.mjs +11 -1
- package/web-ui/modules/i18n/locales/en.mjs +32 -6
- package/web-ui/modules/i18n/locales/ja.mjs +35 -10
- package/web-ui/modules/i18n/locales/vi.mjs +36 -11
- package/web-ui/modules/i18n/locales/zh-tw.mjs +37 -11
- package/web-ui/modules/i18n/locales/zh.mjs +37 -11
- package/web-ui/partials/index/layout-header.html +32 -21
- package/web-ui/partials/index/panel-config-kilocode.html +101 -0
- package/web-ui/partials/index/panel-config-openclaw.html +37 -8
- package/web-ui/partials/index/panel-config-opencode.html +1 -0
- package/web-ui/partials/index/panel-docs.html +1 -11
- package/web-ui/res/web-ui-render.precompiled.js +478 -171
- package/web-ui/styles/controls-forms.css +10 -0
- package/web-ui/styles/docs-panel.css +75 -39
- package/web-ui/styles/layout-shell.css +11 -0
|
@@ -325,6 +325,16 @@
|
|
|
325
325
|
box-shadow: var(--shadow-input-focus);
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
+
.template-textarea[readonly] {
|
|
329
|
+
cursor: default;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.template-textarea[readonly]:focus {
|
|
333
|
+
background: rgba(255, 255, 255, 0.72);
|
|
334
|
+
border-color: var(--color-border);
|
|
335
|
+
box-shadow: var(--shadow-subtle);
|
|
336
|
+
}
|
|
337
|
+
|
|
328
338
|
.codex-config-grid {
|
|
329
339
|
display: grid;
|
|
330
340
|
gap: 10px;
|
|
@@ -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 {
|
|
@@ -104,7 +141,7 @@
|
|
|
104
141
|
display: flex;
|
|
105
142
|
align-items: center;
|
|
106
143
|
gap: 10px;
|
|
107
|
-
padding:
|
|
144
|
+
padding: 8px 8px 8px 14px;
|
|
108
145
|
border: 1px solid var(--color-border-soft);
|
|
109
146
|
border-radius: var(--radius-sm);
|
|
110
147
|
background: var(--color-surface-alt);
|
|
@@ -112,18 +149,21 @@
|
|
|
112
149
|
max-width: 100%;
|
|
113
150
|
}
|
|
114
151
|
|
|
152
|
+
/* 去框中框:box 本体已承担容器层,命令文本不再叠
|
|
153
|
+
二次背景/边框,降低视觉噪音、与终端观感对齐。 */
|
|
115
154
|
.docs-command-box .install-command {
|
|
116
155
|
flex: 1;
|
|
117
156
|
min-width: 0;
|
|
118
|
-
padding:
|
|
119
|
-
border-radius:
|
|
120
|
-
background:
|
|
121
|
-
border:
|
|
157
|
+
padding: 0;
|
|
158
|
+
border-radius: 0;
|
|
159
|
+
background: transparent;
|
|
160
|
+
border: 0;
|
|
122
161
|
white-space: normal;
|
|
123
162
|
word-break: break-all;
|
|
124
163
|
overflow-wrap: break-word;
|
|
125
164
|
font-size: 13px;
|
|
126
165
|
line-height: 1.5;
|
|
166
|
+
color: var(--color-text-primary);
|
|
127
167
|
font-family: var(--font-family-mono);
|
|
128
168
|
user-select: all;
|
|
129
169
|
}
|
|
@@ -175,9 +215,17 @@
|
|
|
175
215
|
display: grid;
|
|
176
216
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
177
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;
|
|
178
224
|
}
|
|
179
225
|
|
|
180
226
|
.docs-note-card {
|
|
227
|
+
display: flex;
|
|
228
|
+
flex-direction: column;
|
|
181
229
|
padding: 16px;
|
|
182
230
|
border: 1px solid var(--color-border-soft);
|
|
183
231
|
border-radius: var(--radius-md);
|
|
@@ -195,46 +243,34 @@
|
|
|
195
243
|
margin: 0;
|
|
196
244
|
}
|
|
197
245
|
|
|
198
|
-
.docs-static-list {
|
|
199
|
-
margin: 0;
|
|
200
|
-
padding-left: 18px;
|
|
201
|
-
color: var(--color-text-secondary);
|
|
202
|
-
font-size: 13px;
|
|
203
|
-
line-height: 1.6;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.docs-static-list li + li {
|
|
207
|
-
margin-top: 8px;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.docs-section-note {
|
|
211
|
-
margin-top: 4px;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
246
|
/* ---- Responsive ---- */
|
|
215
247
|
@media (max-width: 1100px) {
|
|
216
|
-
.docs-toolbar-
|
|
217
|
-
|
|
218
|
-
grid-column: span 12;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.docs-summary-strip {
|
|
248
|
+
.docs-toolbar-grid {
|
|
249
|
+
/* PM 单占一行,mirror/action 并排占第二行,避免三卡齐挤窄列。 */
|
|
222
250
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
223
251
|
}
|
|
224
252
|
|
|
225
|
-
.docs-
|
|
253
|
+
.docs-toolbar-grid > .docs-toolbar-card:first-child {
|
|
226
254
|
grid-column: span 2;
|
|
227
255
|
}
|
|
256
|
+
|
|
257
|
+
.docs-summary-strip {
|
|
258
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
259
|
+
}
|
|
228
260
|
}
|
|
229
261
|
|
|
230
262
|
@media (max-width: 720px) {
|
|
231
|
-
.docs-
|
|
232
|
-
.docs-help-grid {
|
|
263
|
+
.docs-toolbar-grid {
|
|
233
264
|
grid-template-columns: 1fr;
|
|
234
265
|
}
|
|
235
266
|
|
|
236
|
-
.docs-
|
|
237
|
-
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;
|
|
238
274
|
}
|
|
239
275
|
|
|
240
276
|
.docs-install-row,
|
|
@@ -397,6 +397,17 @@ body::after {
|
|
|
397
397
|
position: relative;
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
+
.side-item-compact {
|
|
401
|
+
padding-top: 7px;
|
|
402
|
+
padding-bottom: 7px;
|
|
403
|
+
gap: 2px;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.side-item-compact::before {
|
|
407
|
+
height: 14px;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
|
|
400
411
|
.side-item-icon {
|
|
401
412
|
display: none;
|
|
402
413
|
width: 28px;
|