codexmate 0.0.21 → 0.0.23

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 (115) hide show
  1. package/README.md +390 -284
  2. package/README.zh.md +322 -0
  3. package/cli/agents-files.js +224 -162
  4. package/cli/archive-helpers.js +446 -446
  5. package/cli/auth-profiles.js +359 -359
  6. package/cli/builtin-proxy.js +1044 -580
  7. package/cli/claude-proxy.js +998 -998
  8. package/cli/config-bootstrap.js +384 -384
  9. package/cli/config-health.js +338 -338
  10. package/cli/openai-bridge.js +950 -0
  11. package/cli/openclaw-config.js +629 -629
  12. package/cli/session-usage.concurrent.js +28 -0
  13. package/cli/session-usage.js +112 -0
  14. package/cli/session-usage.models.js +176 -0
  15. package/cli/skills.js +1141 -1141
  16. package/cli/zip-commands.js +510 -510
  17. package/cli.js +13214 -13129
  18. package/lib/cli-file-utils.js +151 -151
  19. package/lib/cli-models-utils.js +419 -419
  20. package/lib/cli-network-utils.js +164 -164
  21. package/lib/cli-path-utils.js +69 -69
  22. package/lib/cli-session-utils.js +121 -121
  23. package/lib/cli-sessions.js +386 -386
  24. package/lib/cli-utils.js +155 -155
  25. package/lib/download-artifacts.js +77 -77
  26. package/lib/mcp-stdio.js +440 -440
  27. package/lib/task-orchestrator.js +869 -869
  28. package/lib/text-diff.js +303 -303
  29. package/lib/workflow-engine.js +340 -340
  30. package/package.json +74 -74
  31. package/res/json5.min.js +1 -1
  32. package/res/logo.png +0 -0
  33. package/res/vue.global.prod.js +13 -13
  34. package/web-ui/app.js +626 -530
  35. package/web-ui/index.html +34 -33
  36. package/web-ui/logic.agents-diff.mjs +386 -386
  37. package/web-ui/logic.claude.mjs +168 -168
  38. package/web-ui/logic.mjs +5 -5
  39. package/web-ui/logic.runtime.mjs +128 -124
  40. package/web-ui/logic.sessions.mjs +614 -581
  41. package/web-ui/modules/api.mjs +90 -90
  42. package/web-ui/modules/app.computed.dashboard.mjs +126 -113
  43. package/web-ui/modules/app.computed.index.mjs +17 -15
  44. package/web-ui/modules/app.computed.main-tabs.mjs +202 -195
  45. package/web-ui/modules/app.computed.session.mjs +653 -507
  46. package/web-ui/modules/app.constants.mjs +15 -15
  47. package/web-ui/modules/app.methods.agents.mjs +544 -493
  48. package/web-ui/modules/app.methods.claude-config.mjs +174 -174
  49. package/web-ui/modules/app.methods.codex-config.mjs +795 -640
  50. package/web-ui/modules/app.methods.index.mjs +92 -88
  51. package/web-ui/modules/app.methods.install.mjs +177 -149
  52. package/web-ui/modules/app.methods.navigation.mjs +662 -619
  53. package/web-ui/modules/app.methods.openclaw-core.mjs +814 -814
  54. package/web-ui/modules/app.methods.openclaw-editing.mjs +372 -372
  55. package/web-ui/modules/app.methods.openclaw-persist.mjs +369 -369
  56. package/web-ui/modules/app.methods.providers.mjs +404 -363
  57. package/web-ui/modules/app.methods.runtime.mjs +323 -323
  58. package/web-ui/modules/app.methods.session-actions.mjs +537 -520
  59. package/web-ui/modules/app.methods.session-browser.mjs +691 -626
  60. package/web-ui/modules/app.methods.session-timeline.mjs +448 -448
  61. package/web-ui/modules/app.methods.session-trash.mjs +422 -422
  62. package/web-ui/modules/app.methods.startup-claude.mjs +417 -412
  63. package/web-ui/modules/app.methods.task-orchestration.mjs +556 -471
  64. package/web-ui/modules/config-mode.computed.mjs +126 -126
  65. package/web-ui/modules/config-template-confirm-pref.mjs +33 -0
  66. package/web-ui/modules/i18n.mjs +1823 -0
  67. package/web-ui/modules/plugins.computed.mjs +3 -0
  68. package/web-ui/modules/plugins.methods.mjs +3 -0
  69. package/web-ui/modules/plugins.storage.mjs +11 -0
  70. package/web-ui/modules/sessions-filters-url.mjs +85 -0
  71. package/web-ui/modules/skills.computed.mjs +107 -107
  72. package/web-ui/modules/skills.methods.mjs +481 -481
  73. package/web-ui/partials/index/layout-footer.html +13 -13
  74. package/web-ui/partials/index/layout-header.html +461 -402
  75. package/web-ui/partials/index/modal-config-template-agents.html +175 -125
  76. package/web-ui/partials/index/modal-confirm-toast.html +32 -32
  77. package/web-ui/partials/index/modal-health-check.html +72 -72
  78. package/web-ui/partials/index/modal-openclaw-config.html +280 -280
  79. package/web-ui/partials/index/modal-skills.html +200 -184
  80. package/web-ui/partials/index/modals-basic.html +165 -156
  81. package/web-ui/partials/index/panel-config-claude.html +159 -126
  82. package/web-ui/partials/index/panel-config-codex.html +255 -237
  83. package/web-ui/partials/index/panel-config-openclaw.html +78 -78
  84. package/web-ui/partials/index/panel-docs.html +147 -130
  85. package/web-ui/partials/index/panel-market.html +174 -174
  86. package/web-ui/partials/index/panel-orchestration.html +388 -397
  87. package/web-ui/partials/index/panel-plugins.html +273 -0
  88. package/web-ui/partials/index/panel-sessions.html +298 -292
  89. package/web-ui/partials/index/panel-settings.html +258 -190
  90. package/web-ui/partials/index/panel-usage.html +353 -213
  91. package/web-ui/session-helpers.mjs +573 -559
  92. package/web-ui/source-bundle.cjs +233 -233
  93. package/web-ui/styles/base-theme.css +264 -271
  94. package/web-ui/styles/controls-forms.css +369 -360
  95. package/web-ui/styles/docs-panel.css +247 -182
  96. package/web-ui/styles/feedback.css +108 -108
  97. package/web-ui/styles/health-check-dialog.css +144 -144
  98. package/web-ui/styles/layout-shell.css +602 -376
  99. package/web-ui/styles/modals-core.css +464 -464
  100. package/web-ui/styles/navigation-panels.css +390 -348
  101. package/web-ui/styles/openclaw-structured.css +266 -266
  102. package/web-ui/styles/plugins-panel.css +523 -0
  103. package/web-ui/styles/responsive.css +456 -450
  104. package/web-ui/styles/sessions-list.css +400 -400
  105. package/web-ui/styles/sessions-preview.css +411 -411
  106. package/web-ui/styles/sessions-toolbar-trash.css +268 -243
  107. package/web-ui/styles/sessions-usage.css +879 -628
  108. package/web-ui/styles/settings-panel.css +166 -0
  109. package/web-ui/styles/skills-list.css +303 -296
  110. package/web-ui/styles/skills-market.css +406 -335
  111. package/web-ui/styles/task-orchestration.css +822 -776
  112. package/web-ui/styles/titles-cards.css +408 -408
  113. package/web-ui/styles.css +20 -18
  114. package/web-ui.html +17 -17
  115. package/README.en.md +0 -349
@@ -1,360 +1,369 @@
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
- }
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 .settings-tab-actions > .btn-tool + .btn-tool,
320
+ .selector-header .settings-tab-actions > .btn-tool-compact + .btn-tool,
321
+ .selector-header .settings-tab-actions > .btn-tool + .btn-tool-compact,
322
+ .selector-header .settings-tab-actions > .btn-tool-compact + .btn-tool-compact {
323
+ margin-top: 0;
324
+ }
325
+
326
+ .selector-header .trash-header-actions > .btn-tool + .btn-tool {
327
+ margin-top: 0;
328
+ }
329
+
330
+ .btn-tool:not(:disabled):hover {
331
+ border-color: var(--color-brand);
332
+ color: var(--color-brand);
333
+ transform: translateY(-1px);
334
+ box-shadow: 0 4px 8px rgba(210, 107, 90, 0.12);
335
+ }
336
+
337
+ .btn-tool:disabled,
338
+ .btn-tool[disabled] {
339
+ opacity: 0.6;
340
+ cursor: not-allowed;
341
+ }
342
+
343
+ .btn-tool:disabled:hover,
344
+ .btn-tool[disabled]:hover,
345
+ .btn-tool:disabled:active,
346
+ .btn-tool[disabled]:active,
347
+ .btn-tool-compact:disabled:hover,
348
+ .btn-tool-compact[disabled]:hover,
349
+ .btn-tool-compact:disabled:active,
350
+ .btn-tool-compact[disabled]:active {
351
+ border-color: var(--color-border-soft);
352
+ color: var(--color-text-secondary);
353
+ transform: none;
354
+ box-shadow: var(--shadow-subtle);
355
+ }
356
+
357
+ .btn-tool-compact {
358
+ padding: 7px 10px;
359
+ font-size: 12px;
360
+ }
361
+
362
+ .selector-header .btn-tool-compact {
363
+ padding: 3px 7px;
364
+ font-size: 10px;
365
+ line-height: 1;
366
+ box-shadow: none;
367
+ min-height: 24px;
368
+ white-space: nowrap;
369
+ }