codexmate 0.0.20 → 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 -259
  2. package/README.md +284 -252
  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 -338
  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 +13101 -13497
  14. package/lib/cli-file-utils.js +151 -151
  15. package/lib/cli-models-utils.js +419 -311
  16. package/lib/cli-network-utils.js +164 -164
  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 -70
  27. package/res/json5.min.js +1 -1
  28. package/res/vue.global.prod.js +13 -0
  29. package/web-ui/app.js +530 -397
  30. package/web-ui/index.html +33 -30
  31. package/web-ui/logic.agents-diff.mjs +386 -386
  32. package/web-ui/logic.claude.mjs +168 -108
  33. package/web-ui/logic.mjs +5 -5
  34. package/web-ui/logic.runtime.mjs +124 -124
  35. package/web-ui/logic.sessions.mjs +581 -263
  36. package/web-ui/modules/api.mjs +90 -69
  37. package/web-ui/modules/app.computed.dashboard.mjs +113 -113
  38. package/web-ui/modules/app.computed.index.mjs +15 -13
  39. package/web-ui/modules/app.computed.main-tabs.mjs +195 -0
  40. package/web-ui/modules/app.computed.session.mjs +507 -141
  41. package/web-ui/modules/app.constants.mjs +15 -15
  42. package/web-ui/modules/app.methods.agents.mjs +493 -493
  43. package/web-ui/modules/app.methods.claude-config.mjs +174 -174
  44. package/web-ui/modules/app.methods.codex-config.mjs +640 -640
  45. package/web-ui/modules/app.methods.index.mjs +88 -86
  46. package/web-ui/modules/app.methods.install.mjs +149 -157
  47. package/web-ui/modules/app.methods.navigation.mjs +619 -478
  48. package/web-ui/modules/app.methods.openclaw-core.mjs +814 -514
  49. package/web-ui/modules/app.methods.openclaw-editing.mjs +372 -337
  50. package/web-ui/modules/app.methods.openclaw-persist.mjs +369 -251
  51. package/web-ui/modules/app.methods.providers.mjs +363 -265
  52. package/web-ui/modules/app.methods.runtime.mjs +323 -323
  53. package/web-ui/modules/app.methods.session-actions.mjs +520 -457
  54. package/web-ui/modules/app.methods.session-browser.mjs +626 -435
  55. package/web-ui/modules/app.methods.session-timeline.mjs +448 -441
  56. package/web-ui/modules/app.methods.session-trash.mjs +422 -419
  57. package/web-ui/modules/app.methods.startup-claude.mjs +412 -406
  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 -69
  63. package/web-ui/partials/index/layout-header.html +402 -337
  64. package/web-ui/partials/index/modal-config-template-agents.html +125 -125
  65. package/web-ui/partials/index/modal-confirm-toast.html +32 -32
  66. package/web-ui/partials/index/modal-health-check.html +72 -72
  67. package/web-ui/partials/index/modal-openclaw-config.html +280 -275
  68. package/web-ui/partials/index/modal-skills.html +184 -184
  69. package/web-ui/partials/index/modals-basic.html +156 -196
  70. package/web-ui/partials/index/panel-config-claude.html +126 -100
  71. package/web-ui/partials/index/panel-config-codex.html +237 -237
  72. package/web-ui/partials/index/panel-config-openclaw.html +78 -84
  73. package/web-ui/partials/index/panel-docs.html +130 -0
  74. package/web-ui/partials/index/panel-market.html +174 -174
  75. package/web-ui/partials/index/panel-orchestration.html +397 -0
  76. package/web-ui/partials/index/panel-sessions.html +292 -387
  77. package/web-ui/partials/index/panel-settings.html +190 -166
  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 -233
  81. package/web-ui/styles/base-theme.css +271 -373
  82. package/web-ui/styles/controls-forms.css +360 -354
  83. package/web-ui/styles/docs-panel.css +182 -0
  84. package/web-ui/styles/feedback.css +108 -108
  85. package/web-ui/styles/health-check-dialog.css +144 -144
  86. package/web-ui/styles/layout-shell.css +376 -330
  87. package/web-ui/styles/modals-core.css +464 -449
  88. package/web-ui/styles/navigation-panels.css +348 -381
  89. package/web-ui/styles/openclaw-structured.css +266 -266
  90. package/web-ui/styles/responsive.css +450 -416
  91. package/web-ui/styles/sessions-list.css +400 -414
  92. package/web-ui/styles/sessions-preview.css +411 -405
  93. package/web-ui/styles/sessions-toolbar-trash.css +243 -243
  94. package/web-ui/styles/sessions-usage.css +628 -276
  95. package/web-ui/styles/skills-list.css +296 -298
  96. package/web-ui/styles/skills-market.css +335 -335
  97. package/web-ui/styles/task-orchestration.css +776 -0
  98. package/web-ui/styles/titles-cards.css +408 -407
  99. package/web-ui/styles.css +18 -16
  100. package/web-ui.html +17 -17
  101. package/res/screenshot.png +0 -0
  102. package/res/vue.global.js +0 -18552
@@ -1,354 +1,360 @@
1
- /* ============================================
2
- 选择器 - 用于模型选择
3
- ============================================ */
4
- .selector-section {
5
- background: linear-gradient(to bottom, var(--color-surface) 0%, rgba(255, 255, 255, 0.92) 100%);
6
- border-radius: var(--radius-lg);
7
- padding: calc(var(--spacing-sm) + 2px);
8
- margin-bottom: 16px;
9
- box-shadow: var(--shadow-card);
10
- border: 1px solid var(--color-border-soft);
11
- display: flex;
12
- flex-direction: column;
13
- gap: var(--spacing-xs);
14
- }
15
-
16
- .selector-header {
17
- display: flex;
18
- justify-content: space-between;
19
- align-items: center;
20
- margin-bottom: var(--spacing-xs);
21
- }
22
-
23
- .settings-tab-header {
24
- justify-content: flex-end;
25
- align-items: center;
26
- }
27
-
28
- .settings-tab-actions {
29
- display: flex;
30
- flex-wrap: wrap;
31
- gap: 8px;
32
- justify-content: flex-end;
33
- }
34
-
35
- .settings-tab-actions .btn-tool,
36
- .settings-tab-actions .btn-tool-compact {
37
- width: auto;
38
- }
39
-
40
- .trash-header-actions {
41
- display: flex;
42
- flex-direction: row;
43
- flex-wrap: nowrap;
44
- align-items: stretch;
45
- justify-content: flex-end;
46
- width: auto;
47
- max-width: 100%;
48
- margin-left: auto;
49
- }
50
-
51
- .selector-header .trash-header-actions > .btn-tool,
52
- .selector-header .trash-header-actions > .btn-tool-compact {
53
- display: flex;
54
- align-items: center;
55
- justify-content: center;
56
- align-self: stretch;
57
- margin: 0;
58
- width: auto;
59
- min-width: 0;
60
- max-width: 100%;
61
- height: 32px;
62
- min-height: 32px;
63
- padding: 0 10px;
64
- line-height: 1;
65
- vertical-align: top;
66
- position: relative;
67
- top: 0;
68
- white-space: nowrap;
69
- }
70
-
71
- .selector-header .trash-header-actions > .btn-tool:not(:disabled):hover,
72
- .selector-header .trash-header-actions > .btn-tool-compact:not(:disabled):hover {
73
- transform: none;
74
- }
75
-
76
- .selector-title {
77
- font-size: var(--font-size-caption);
78
- font-weight: var(--font-weight-secondary);
79
- color: var(--color-text-muted);
80
- text-transform: none;
81
- letter-spacing: 0.04em;
82
- opacity: 0.85;
83
- }
84
-
85
- .selector-actions {
86
- display: flex;
87
- gap: var(--spacing-xs);
88
- }
89
-
90
- .health-report {
91
- margin-top: 10px;
92
- padding: 10px 12px;
93
- border-radius: var(--radius-md);
94
- border: 1px solid var(--color-border-soft);
95
- background: var(--color-surface-alt);
96
- display: grid;
97
- gap: 8px;
98
- }
99
-
100
- .health-remote-toggle {
101
- display: inline-flex;
102
- align-items: center;
103
- gap: 8px;
104
- font-size: var(--font-size-caption);
105
- color: var(--color-text-secondary);
106
- }
107
-
108
- .health-remote-toggle input {
109
- accent-color: var(--color-brand);
110
- }
111
-
112
- .health-ok {
113
- color: var(--color-success);
114
- font-weight: var(--font-weight-secondary);
115
- }
116
-
117
- .health-issue {
118
- background: #fff6f5;
119
- border-left: 3px solid var(--color-error);
120
- padding: 8px 10px;
121
- border-radius: 10px;
122
- }
123
-
124
- .health-issue-title {
125
- font-size: var(--font-size-caption);
126
- font-weight: var(--font-weight-secondary);
127
- color: var(--color-text-primary);
128
- margin-bottom: 4px;
129
- }
130
-
131
- .health-issue-suggestion {
132
- font-size: var(--font-size-caption);
133
- color: var(--color-text-secondary);
134
- line-height: 1.4;
135
- }
136
-
137
- .btn-icon {
138
- width: 28px;
139
- height: 28px;
140
- border-radius: var(--radius-sm);
141
- border: none;
142
- background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
143
- color: white;
144
- cursor: pointer;
145
- font-size: 16px;
146
- display: flex;
147
- align-items: center;
148
- justify-content: center;
149
- transition: all var(--transition-fast) var(--ease-spring);
150
- box-shadow: 0 2px 4px rgba(210, 107, 90, 0.2);
151
- }
152
-
153
- .btn-icon:hover {
154
- transform: translateY(-1px) scale(1.05);
155
- box-shadow: 0 4px 8px rgba(210, 107, 90, 0.25);
156
- }
157
-
158
- .btn-icon:active {
159
- transform: translateY(0) scale(0.98);
160
- }
161
-
162
- .model-select {
163
- width: 100%;
164
- padding: 12px var(--spacing-sm);
165
- padding-right: 40px;
166
- border: 1px solid var(--color-border-soft);
167
- border-radius: var(--radius-sm);
168
- font-size: var(--font-size-body);
169
- font-weight: var(--font-weight-body);
170
- background-color: var(--color-surface-alt);
171
- color: var(--color-text-primary);
172
- outline: none;
173
- cursor: pointer;
174
- appearance: none;
175
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23505A66' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
176
- background-repeat: no-repeat;
177
- background-position: right 14px center;
178
- background-size: 12px;
179
- transition: all var(--transition-fast) var(--ease-smooth);
180
- box-shadow: inset 0 1px 2px rgba(31, 26, 23, 0.04);
181
- }
182
-
183
- .model-select:hover {
184
- border-color: var(--color-border-strong);
185
- background-color: var(--color-surface);
186
- }
187
-
188
- .model-select:focus {
189
- background-color: var(--color-surface);
190
- border-color: var(--color-brand);
191
- box-shadow: var(--shadow-input-focus);
192
- }
193
-
194
- .model-input {
195
- width: 100%;
196
- padding: 12px var(--spacing-sm);
197
- border: 1px solid var(--color-border-soft);
198
- border-radius: var(--radius-sm);
199
- font-size: var(--font-size-body);
200
- font-weight: var(--font-weight-body);
201
- background-color: var(--color-surface-alt);
202
- color: var(--color-text-primary);
203
- outline: none;
204
- transition: all var(--transition-fast) var(--ease-smooth);
205
- box-shadow: inset 0 1px 2px rgba(31, 26, 23, 0.04);
206
- }
207
-
208
- .model-input:hover {
209
- border-color: var(--color-border-strong);
210
- background-color: var(--color-surface);
211
- }
212
-
213
- .model-input:focus {
214
- background-color: var(--color-surface);
215
- border-color: var(--color-brand);
216
- box-shadow: var(--shadow-input-focus);
217
- }
218
-
219
- .config-template-hint {
220
- margin-top: 8px;
221
- margin-bottom: 10px;
222
- font-size: var(--font-size-caption);
223
- color: var(--color-text-tertiary);
224
- line-height: 1.4;
225
- }
226
-
227
- .codex-config-grid {
228
- display: grid;
229
- gap: var(--spacing-sm);
230
- grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
231
- align-items: start;
232
- }
233
-
234
- .codex-config-field {
235
- min-width: 0;
236
- margin-bottom: 0;
237
- }
238
-
239
- .btn-template-editor {
240
- width: 100%;
241
- margin-top: 2px;
242
- }
243
-
244
- /* ============================================
245
- 按钮
246
- ============================================ */
247
- .btn-add {
248
- width: 100%;
249
- padding: 14px var(--spacing-sm);
250
- border: 1.5px dashed rgba(208, 196, 182, 0.6);
251
- border-radius: var(--radius-lg);
252
- background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.15) 100%);
253
- font-size: var(--font-size-body);
254
- font-weight: var(--font-weight-secondary);
255
- color: var(--color-text-tertiary);
256
- cursor: pointer;
257
- transition: all var(--transition-normal) var(--ease-spring);
258
- display: flex;
259
- align-items: center;
260
- justify-content: center;
261
- gap: var(--spacing-xs);
262
- }
263
-
264
- .btn-add + .selector-section,
265
- .selector-section + .btn-add,
266
- .btn-add + .card-list,
267
- .card-list + .btn-add {
268
- margin-top: 12px;
269
- }
270
-
271
- .btn-add:hover {
272
- border-color: var(--color-brand);
273
- color: var(--color-brand);
274
- background: linear-gradient(to bottom, rgba(210, 107, 90, 0.05) 0%, rgba(210, 107, 90, 0.02) 100%);
275
- transform: translateY(-1px);
276
- }
277
-
278
- .btn-add:active {
279
- transform: translateY(0) scale(0.99);
280
- }
281
-
282
- .btn-add .icon {
283
- width: 18px;
284
- height: 18px;
285
- transition: transform var(--transition-normal) var(--ease-spring);
286
- }
287
-
288
- .btn-add:hover .icon {
289
- transform: rotate(90deg);
290
- }
291
-
292
- .btn-tool {
293
- padding: 12px var(--spacing-sm);
294
- border-radius: var(--radius-sm);
295
- border: 1px solid var(--color-border-soft);
296
- background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
297
- font-size: var(--font-size-body);
298
- font-weight: var(--font-weight-secondary);
299
- color: var(--color-text-secondary);
300
- cursor: pointer;
301
- transition: all var(--transition-fast) var(--ease-spring);
302
- box-shadow: var(--shadow-subtle);
303
- letter-spacing: -0.01em;
304
- width: 100%;
305
- text-align: center;
306
- }
307
-
308
- .selector-section .btn-tool + .btn-tool {
309
- margin-left: 0;
310
- margin-top: var(--spacing-xs);
311
- }
312
-
313
- .selector-header .trash-header-actions > .btn-tool + .btn-tool {
314
- margin-top: 0;
315
- }
316
-
317
- .btn-tool:not(:disabled):hover {
318
- border-color: var(--color-brand);
319
- color: var(--color-brand);
320
- transform: translateY(-1px);
321
- box-shadow: 0 4px 8px rgba(210, 107, 90, 0.12);
322
- }
323
-
324
- .btn-tool:disabled,
325
- .btn-tool[disabled] {
326
- opacity: 0.6;
327
- cursor: not-allowed;
328
- }
329
-
330
- .btn-tool:disabled:hover,
331
- .btn-tool[disabled]:hover,
332
- .btn-tool:disabled:active,
333
- .btn-tool[disabled]:active,
334
- .btn-tool-compact:disabled:hover,
335
- .btn-tool-compact[disabled]:hover,
336
- .btn-tool-compact:disabled:active,
337
- .btn-tool-compact[disabled]:active {
338
- border-color: var(--color-border-soft);
339
- color: var(--color-text-secondary);
340
- transform: none;
341
- box-shadow: var(--shadow-subtle);
342
- }
343
-
344
- .btn-tool-compact {
345
- padding: 9px 12px;
346
- font-size: var(--font-size-secondary);
347
- }
348
-
349
- .selector-header .btn-tool-compact {
350
- padding: 6px 10px;
351
- font-size: var(--font-size-caption);
352
- line-height: 1.1;
353
- box-shadow: var(--shadow-subtle);
354
- }
1
+ /* ============================================
2
+ 选择器 - 用于模型选择
3
+ ============================================ */
4
+ .selector-section {
5
+ background: transparent;
6
+ border-radius: 0;
7
+ padding: 12px 0 0;
8
+ margin-bottom: 12px;
9
+ box-shadow: none;
10
+ border: none;
11
+ border-top: 1px solid var(--color-border);
12
+ display: flex;
13
+ flex-direction: column;
14
+ gap: 6px;
15
+ }
16
+
17
+ .selector-header {
18
+ display: flex;
19
+ justify-content: space-between;
20
+ align-items: center;
21
+ margin-bottom: 2px;
22
+ }
23
+
24
+ .settings-tab-header {
25
+ justify-content: flex-end;
26
+ align-items: center;
27
+ }
28
+
29
+ .settings-tab-actions {
30
+ display: flex;
31
+ flex-wrap: wrap;
32
+ gap: 8px;
33
+ justify-content: flex-end;
34
+ }
35
+
36
+ .settings-tab-actions .btn-tool,
37
+ .settings-tab-actions .btn-tool-compact {
38
+ width: auto;
39
+ }
40
+
41
+ .trash-header-actions {
42
+ display: flex;
43
+ flex-direction: row;
44
+ flex-wrap: nowrap;
45
+ align-items: stretch;
46
+ justify-content: flex-end;
47
+ width: auto;
48
+ max-width: 100%;
49
+ margin-left: auto;
50
+ }
51
+
52
+ .selector-header .trash-header-actions > .btn-tool,
53
+ .selector-header .trash-header-actions > .btn-tool-compact {
54
+ display: flex;
55
+ align-items: center;
56
+ justify-content: center;
57
+ align-self: stretch;
58
+ margin: 0;
59
+ width: auto;
60
+ min-width: 0;
61
+ max-width: 100%;
62
+ height: 32px;
63
+ min-height: 32px;
64
+ padding: 0 10px;
65
+ line-height: 1;
66
+ vertical-align: top;
67
+ position: relative;
68
+ top: 0;
69
+ white-space: nowrap;
70
+ }
71
+
72
+ .selector-header .trash-header-actions > .btn-tool:not(:disabled):hover,
73
+ .selector-header .trash-header-actions > .btn-tool-compact:not(:disabled):hover {
74
+ transform: none;
75
+ }
76
+
77
+ .selector-title {
78
+ font-size: 11px;
79
+ font-weight: var(--font-weight-secondary);
80
+ color: var(--color-text-muted);
81
+ text-transform: none;
82
+ letter-spacing: 0.03em;
83
+ opacity: 0.85;
84
+ }
85
+
86
+ .selector-actions {
87
+ display: flex;
88
+ gap: var(--spacing-xs);
89
+ }
90
+
91
+ .health-report {
92
+ margin-top: 10px;
93
+ padding: 10px 0 0;
94
+ border-radius: 0;
95
+ border: 1px solid var(--color-border);
96
+ border-width: 1px 0 0;
97
+ background: transparent;
98
+ display: grid;
99
+ gap: 8px;
100
+ }
101
+
102
+ .health-remote-toggle {
103
+ display: inline-flex;
104
+ align-items: center;
105
+ gap: 8px;
106
+ font-size: var(--font-size-caption);
107
+ color: var(--color-text-secondary);
108
+ }
109
+
110
+ .health-remote-toggle input {
111
+ accent-color: var(--color-brand);
112
+ }
113
+
114
+ .health-ok {
115
+ color: var(--color-success);
116
+ font-weight: var(--font-weight-secondary);
117
+ }
118
+
119
+ .health-issue {
120
+ background: #FEF2F2;
121
+ border-left: 3px solid var(--color-error);
122
+ padding: 8px 10px;
123
+ border-radius: 8px;
124
+ }
125
+
126
+ .health-issue-title {
127
+ font-size: var(--font-size-caption);
128
+ font-weight: var(--font-weight-secondary);
129
+ color: var(--color-text-primary);
130
+ margin-bottom: 4px;
131
+ }
132
+
133
+ .health-issue-suggestion {
134
+ font-size: var(--font-size-caption);
135
+ color: var(--color-text-secondary);
136
+ line-height: 1.4;
137
+ }
138
+
139
+ .btn-icon {
140
+ width: 28px;
141
+ height: 28px;
142
+ border-radius: var(--radius-sm);
143
+ border: none;
144
+ background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
145
+ color: white;
146
+ cursor: pointer;
147
+ font-size: 16px;
148
+ display: flex;
149
+ align-items: center;
150
+ justify-content: center;
151
+ transition: all var(--transition-fast) var(--ease-spring);
152
+ box-shadow: 0 2px 4px rgba(210, 107, 90, 0.2);
153
+ }
154
+
155
+ .btn-icon:hover {
156
+ transform: translateY(-1px) scale(1.05);
157
+ box-shadow: 0 4px 8px rgba(210, 107, 90, 0.25);
158
+ }
159
+
160
+ .btn-icon:active {
161
+ transform: translateY(0) scale(0.98);
162
+ }
163
+
164
+ .model-select {
165
+ width: 100%;
166
+ min-height: 36px;
167
+ padding: 8px 10px;
168
+ padding-right: 34px;
169
+ border: 1px solid var(--color-border);
170
+ border-radius: 8px;
171
+ font-size: 13px;
172
+ font-weight: var(--font-weight-body);
173
+ background-color: var(--color-surface);
174
+ color: var(--color-text-primary);
175
+ outline: none;
176
+ cursor: pointer;
177
+ appearance: none;
178
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23505A66' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
179
+ background-repeat: no-repeat;
180
+ background-position: right 14px center;
181
+ background-size: 12px;
182
+ transition: all var(--transition-fast) var(--ease-smooth);
183
+ box-shadow: none;
184
+ }
185
+
186
+ .model-select:hover {
187
+ border-color: var(--color-border-strong);
188
+ background-color: var(--color-surface);
189
+ }
190
+
191
+ .model-select:focus {
192
+ background-color: var(--color-surface);
193
+ border-color: var(--color-brand);
194
+ box-shadow: var(--shadow-input-focus);
195
+ }
196
+
197
+ .model-input {
198
+ width: 100%;
199
+ min-height: 36px;
200
+ padding: 8px 10px;
201
+ border: 1px solid var(--color-border);
202
+ border-radius: 8px;
203
+ font-size: 13px;
204
+ font-weight: var(--font-weight-body);
205
+ background-color: var(--color-surface);
206
+ color: var(--color-text-primary);
207
+ outline: none;
208
+ transition: all var(--transition-fast) var(--ease-smooth);
209
+ box-shadow: none;
210
+ }
211
+
212
+ .model-input:hover {
213
+ border-color: var(--color-border-strong);
214
+ background-color: var(--color-surface);
215
+ }
216
+
217
+ .model-input:focus {
218
+ background-color: var(--color-surface);
219
+ border-color: var(--color-brand);
220
+ box-shadow: var(--shadow-input-focus);
221
+ }
222
+
223
+ .config-template-hint {
224
+ margin-top: 6px;
225
+ margin-bottom: 4px;
226
+ font-size: 11px;
227
+ color: var(--color-text-tertiary);
228
+ line-height: 1.35;
229
+ }
230
+
231
+ .codex-config-grid {
232
+ display: grid;
233
+ gap: 10px;
234
+ grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
235
+ align-items: start;
236
+ }
237
+
238
+ .codex-config-field {
239
+ min-width: 0;
240
+ margin-bottom: 0;
241
+ }
242
+
243
+ .btn-template-editor {
244
+ width: 100%;
245
+ margin-top: 2px;
246
+ }
247
+
248
+ /* ============================================
249
+ 按钮
250
+ ============================================ */
251
+ .btn-add {
252
+ width: 100%;
253
+ min-height: 38px;
254
+ padding: 8px 10px;
255
+ border: 1px dashed rgba(208, 196, 182, 0.55);
256
+ border-radius: 8px;
257
+ background: rgba(255, 255, 255, 0.22);
258
+ font-size: 13px;
259
+ font-weight: var(--font-weight-secondary);
260
+ color: var(--color-text-tertiary);
261
+ cursor: pointer;
262
+ transition: all var(--transition-normal) var(--ease-spring);
263
+ display: flex;
264
+ align-items: center;
265
+ justify-content: center;
266
+ gap: var(--spacing-xs);
267
+ }
268
+
269
+ .btn-add + .selector-section,
270
+ .selector-section + .btn-add,
271
+ .btn-add + .card-list,
272
+ .card-list + .btn-add {
273
+ margin-top: 8px;
274
+ }
275
+
276
+ .btn-add:hover {
277
+ border-color: var(--color-brand);
278
+ color: var(--color-brand);
279
+ background: linear-gradient(to bottom, rgba(210, 107, 90, 0.05) 0%, rgba(210, 107, 90, 0.02) 100%);
280
+ transform: translateY(-1px);
281
+ }
282
+
283
+ .btn-add:active {
284
+ transform: translateY(0) scale(0.99);
285
+ }
286
+
287
+ .btn-add .icon {
288
+ width: 18px;
289
+ height: 18px;
290
+ transition: transform var(--transition-normal) var(--ease-spring);
291
+ }
292
+
293
+ .btn-add:hover .icon {
294
+ transform: rotate(90deg);
295
+ }
296
+
297
+ .btn-tool {
298
+ min-height: 36px;
299
+ padding: 8px 10px;
300
+ border-radius: 8px;
301
+ border: 1px solid var(--color-border-soft);
302
+ background: rgba(255, 255, 255, 0.72);
303
+ font-size: 13px;
304
+ font-weight: var(--font-weight-secondary);
305
+ color: var(--color-text-secondary);
306
+ cursor: pointer;
307
+ transition: all var(--transition-fast) var(--ease-spring);
308
+ box-shadow: none;
309
+ letter-spacing: -0.01em;
310
+ width: 100%;
311
+ text-align: center;
312
+ }
313
+
314
+ .selector-section .btn-tool + .btn-tool {
315
+ margin-left: 0;
316
+ margin-top: var(--spacing-xs);
317
+ }
318
+
319
+ .selector-header .trash-header-actions > .btn-tool + .btn-tool {
320
+ margin-top: 0;
321
+ }
322
+
323
+ .btn-tool:not(:disabled):hover {
324
+ border-color: var(--color-brand);
325
+ color: var(--color-brand);
326
+ transform: translateY(-1px);
327
+ box-shadow: 0 4px 8px rgba(210, 107, 90, 0.12);
328
+ }
329
+
330
+ .btn-tool:disabled,
331
+ .btn-tool[disabled] {
332
+ opacity: 0.6;
333
+ cursor: not-allowed;
334
+ }
335
+
336
+ .btn-tool:disabled:hover,
337
+ .btn-tool[disabled]:hover,
338
+ .btn-tool:disabled:active,
339
+ .btn-tool[disabled]:active,
340
+ .btn-tool-compact:disabled:hover,
341
+ .btn-tool-compact[disabled]:hover,
342
+ .btn-tool-compact:disabled:active,
343
+ .btn-tool-compact[disabled]:active {
344
+ border-color: var(--color-border-soft);
345
+ color: var(--color-text-secondary);
346
+ transform: none;
347
+ box-shadow: var(--shadow-subtle);
348
+ }
349
+
350
+ .btn-tool-compact {
351
+ padding: 7px 10px;
352
+ font-size: 12px;
353
+ }
354
+
355
+ .selector-header .btn-tool-compact {
356
+ padding: 5px 8px;
357
+ font-size: 11px;
358
+ line-height: 1.1;
359
+ box-shadow: none;
360
+ }