codexmate 0.0.30 → 0.0.32

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 (144) hide show
  1. package/README.md +363 -421
  2. package/README.zh.md +371 -354
  3. package/cli/agents-files.js +224 -224
  4. package/cli/archive-helpers.js +446 -446
  5. package/cli/auth-profiles.js +375 -375
  6. package/cli/builtin-proxy.js +1725 -1725
  7. package/cli/claude-proxy.js +1022 -1022
  8. package/cli/config-bootstrap.js +402 -402
  9. package/cli/config-health.js +454 -454
  10. package/cli/doctor-core.js +903 -903
  11. package/cli/import-skills-url.js +356 -356
  12. package/cli/local-bridge.js +324 -324
  13. package/cli/openai-bridge.js +1653 -1653
  14. package/cli/openclaw-config.js +629 -629
  15. package/cli/session-convert-args.js +69 -65
  16. package/cli/session-convert-io.js +82 -82
  17. package/cli/session-convert.js +150 -43
  18. package/cli/session-usage.concurrent.js +28 -28
  19. package/cli/session-usage.js +118 -118
  20. package/cli/session-usage.models.js +176 -176
  21. package/cli/skills.js +1141 -1141
  22. package/cli/zip-commands.js +510 -510
  23. package/cli.js +15829 -15481
  24. package/lib/automation.js +404 -404
  25. package/lib/cli-file-utils.js +151 -151
  26. package/lib/cli-models-utils.js +440 -440
  27. package/lib/cli-network-utils.js +190 -190
  28. package/lib/cli-path-utils.js +85 -85
  29. package/lib/cli-session-utils.js +121 -121
  30. package/lib/cli-sessions.js +426 -417
  31. package/lib/cli-utils.js +155 -155
  32. package/lib/cli-webhook.js +126 -126
  33. package/lib/download-artifacts.js +92 -92
  34. package/lib/mcp-stdio.js +453 -453
  35. package/lib/task-orchestrator.js +869 -869
  36. package/lib/text-diff.js +303 -303
  37. package/lib/workflow-engine.js +340 -340
  38. package/package.json +76 -76
  39. package/plugins/README.md +20 -20
  40. package/plugins/README.zh-CN.md +20 -20
  41. package/plugins/prompt-templates/comment-polish/index.mjs +25 -25
  42. package/plugins/prompt-templates/computed.mjs +253 -253
  43. package/plugins/prompt-templates/index.mjs +8 -8
  44. package/plugins/prompt-templates/manifest.mjs +15 -15
  45. package/plugins/prompt-templates/methods.mjs +553 -553
  46. package/plugins/prompt-templates/overview.mjs +91 -91
  47. package/plugins/prompt-templates/ownership.mjs +19 -19
  48. package/plugins/prompt-templates/rule-ack/index.mjs +21 -21
  49. package/plugins/prompt-templates/storage.mjs +64 -64
  50. package/plugins/registry.mjs +16 -16
  51. package/web-ui/app.js +647 -645
  52. package/web-ui/index.html +36 -36
  53. package/web-ui/logic.agents-diff.mjs +386 -386
  54. package/web-ui/logic.claude.mjs +168 -168
  55. package/web-ui/logic.codex.mjs +69 -69
  56. package/web-ui/logic.mjs +5 -5
  57. package/web-ui/logic.runtime.mjs +128 -128
  58. package/web-ui/logic.session-convert.mjs +70 -70
  59. package/web-ui/logic.sessions.mjs +781 -765
  60. package/web-ui/modules/api.mjs +90 -90
  61. package/web-ui/modules/app.computed.dashboard.mjs +248 -248
  62. package/web-ui/modules/app.computed.index.mjs +17 -17
  63. package/web-ui/modules/app.computed.main-tabs.mjs +205 -205
  64. package/web-ui/modules/app.computed.session.mjs +693 -999
  65. package/web-ui/modules/app.constants.mjs +15 -15
  66. package/web-ui/modules/app.methods.agents.mjs +651 -632
  67. package/web-ui/modules/app.methods.claude-config.mjs +200 -200
  68. package/web-ui/modules/app.methods.codex-config.mjs +861 -917
  69. package/web-ui/modules/app.methods.index.mjs +94 -94
  70. package/web-ui/modules/app.methods.install.mjs +205 -205
  71. package/web-ui/modules/app.methods.navigation.mjs +774 -774
  72. package/web-ui/modules/app.methods.openclaw-core.mjs +814 -814
  73. package/web-ui/modules/app.methods.openclaw-editing.mjs +372 -372
  74. package/web-ui/modules/app.methods.openclaw-persist.mjs +369 -369
  75. package/web-ui/modules/app.methods.providers.mjs +529 -529
  76. package/web-ui/modules/app.methods.runtime.mjs +345 -345
  77. package/web-ui/modules/app.methods.session-actions.mjs +591 -593
  78. package/web-ui/modules/app.methods.session-browser.mjs +1012 -984
  79. package/web-ui/modules/app.methods.session-timeline.mjs +479 -479
  80. package/web-ui/modules/app.methods.session-trash.mjs +438 -438
  81. package/web-ui/modules/app.methods.startup-claude.mjs +537 -534
  82. package/web-ui/modules/app.methods.task-orchestration.mjs +556 -556
  83. package/web-ui/modules/app.methods.webhook.mjs +79 -79
  84. package/web-ui/modules/config-mode.computed.mjs +124 -124
  85. package/web-ui/modules/config-template-confirm-pref.mjs +33 -33
  86. package/web-ui/modules/i18n.dict.mjs +3177 -3146
  87. package/web-ui/modules/i18n.mjs +62 -62
  88. package/web-ui/modules/plugins.computed.mjs +3 -3
  89. package/web-ui/modules/plugins.methods.mjs +3 -3
  90. package/web-ui/modules/plugins.storage.mjs +11 -11
  91. package/web-ui/modules/provider-url-display.mjs +17 -17
  92. package/web-ui/modules/sessions-filters-url.mjs +85 -85
  93. package/web-ui/modules/skills.computed.mjs +107 -107
  94. package/web-ui/modules/skills.methods.mjs +482 -482
  95. package/web-ui/partials/index/layout-footer.html +13 -13
  96. package/web-ui/partials/index/layout-header.html +503 -500
  97. package/web-ui/partials/index/modal-config-template-agents.html +185 -174
  98. package/web-ui/partials/index/modal-confirm-toast.html +32 -32
  99. package/web-ui/partials/index/modal-health-check.html +45 -45
  100. package/web-ui/partials/index/modal-openclaw-config.html +280 -280
  101. package/web-ui/partials/index/modal-skills.html +200 -200
  102. package/web-ui/partials/index/modals-basic.html +162 -162
  103. package/web-ui/partials/index/panel-config-claude.html +136 -194
  104. package/web-ui/partials/index/panel-config-codex.html +197 -337
  105. package/web-ui/partials/index/panel-config-openclaw.html +83 -83
  106. package/web-ui/partials/index/panel-dashboard.html +219 -219
  107. package/web-ui/partials/index/panel-docs.html +115 -147
  108. package/web-ui/partials/index/panel-market.html +177 -177
  109. package/web-ui/partials/index/panel-orchestration.html +391 -391
  110. package/web-ui/partials/index/panel-plugins.html +253 -253
  111. package/web-ui/partials/index/panel-sessions.html +313 -308
  112. package/web-ui/partials/index/panel-settings.html +190 -190
  113. package/web-ui/partials/index/panel-trash.html +83 -88
  114. package/web-ui/partials/index/panel-usage.html +138 -371
  115. package/web-ui/res/json5.min.js +1 -1
  116. package/web-ui/res/vue.global.prod.js +13 -13
  117. package/web-ui/session-helpers.mjs +591 -594
  118. package/web-ui/source-bundle.cjs +233 -233
  119. package/web-ui/styles/base-theme.css +281 -281
  120. package/web-ui/styles/bridge-pool.css +197 -0
  121. package/web-ui/styles/controls-forms.css +433 -422
  122. package/web-ui/styles/dashboard.css +406 -406
  123. package/web-ui/styles/docs-panel.css +245 -271
  124. package/web-ui/styles/feedback.css +108 -108
  125. package/web-ui/styles/health-check-dialog.css +144 -144
  126. package/web-ui/styles/layout-shell.css +638 -626
  127. package/web-ui/styles/modals-core.css +466 -466
  128. package/web-ui/styles/navigation-panels.css +391 -391
  129. package/web-ui/styles/openclaw-structured.css +266 -266
  130. package/web-ui/styles/plugins-panel.css +564 -564
  131. package/web-ui/styles/responsive.css +392 -454
  132. package/web-ui/styles/sessions-list.css +647 -417
  133. package/web-ui/styles/sessions-preview.css +407 -407
  134. package/web-ui/styles/sessions-toolbar-trash.css +518 -334
  135. package/web-ui/styles/sessions-usage.css +588 -1040
  136. package/web-ui/styles/settings-panel.css +349 -349
  137. package/web-ui/styles/skills-list.css +305 -305
  138. package/web-ui/styles/skills-market.css +429 -429
  139. package/web-ui/styles/task-orchestration.css +822 -822
  140. package/web-ui/styles/titles-cards.css +472 -472
  141. package/web-ui/styles/trash-panel.css +90 -90
  142. package/web-ui/styles/webhook.css +81 -81
  143. package/web-ui/styles.css +24 -23
  144. package/web-ui.html +17 -17
@@ -1,472 +1,472 @@
1
- /* ============================================
2
- 主标题
3
- ============================================ */
4
- .main-title {
5
- font-size: clamp(18px, 1.3vw, 22px);
6
- font-weight: 700;
7
- line-height: 1.15;
8
- letter-spacing: -0.02em;
9
- margin-bottom: 0;
10
- color: var(--color-text-primary);
11
- font-family: var(--font-family-display);
12
- background: none;
13
- -webkit-background-clip: border-box;
14
- -webkit-text-fill-color: currentColor;
15
- background-clip: border-box;
16
- }
17
-
18
- .main-title .accent {
19
- color: var(--color-brand);
20
- -webkit-text-fill-color: var(--color-brand);
21
- position: relative;
22
- }
23
-
24
- .subtitle {
25
- font-size: 13px;
26
- color: var(--color-text-secondary);
27
- line-height: 1.58;
28
- margin-bottom: 0;
29
- max-width: 70ch;
30
- letter-spacing: 0;
31
- }
32
-
33
- /* ============================================
34
- 模式切换器 - Segmented Control
35
- ============================================ */
36
- .segmented-control {
37
- display: flex;
38
- background: rgba(255, 255, 255, 0.48);
39
- border-radius: var(--radius-md);
40
- padding: 4px;
41
- margin-bottom: 14px;
42
- position: relative;
43
- box-shadow: var(--shadow-subtle);
44
- border: 1px solid var(--color-border-soft);
45
- backdrop-filter: blur(12px);
46
- }
47
-
48
- .segment {
49
- flex: 1;
50
- padding: 8px 10px;
51
- border: none;
52
- background: transparent;
53
- font-size: var(--font-size-body);
54
- font-weight: var(--font-weight-secondary);
55
- color: var(--color-text-secondary);
56
- cursor: pointer;
57
- border-radius: var(--radius-sm);
58
- transition: color var(--transition-fast) var(--ease-smooth), background-color var(--transition-fast) var(--ease-smooth);
59
- position: relative;
60
- z-index: 2;
61
- letter-spacing: 0;
62
- }
63
-
64
- .segment:hover {
65
- color: var(--color-text-primary);
66
- }
67
-
68
- .segment.active {
69
- color: var(--color-brand-dark);
70
- background: rgba(255, 255, 255, 0.78);
71
- box-shadow: 0 8px 18px rgba(92, 68, 52, 0.08), inset 0 0 0 1px rgba(200, 121, 99, 0.12);
72
- }
73
-
74
- /* ============================================
75
- 卡片列表
76
- ============================================ */
77
- .card-list {
78
- display: flex;
79
- flex-direction: column;
80
- gap: 10px;
81
- margin-bottom: 8px;
82
- }
83
-
84
- /* ============================================
85
- 卡片
86
- ============================================ */
87
- .card {
88
- background:
89
- linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 251, 247, 0.76));
90
- border-radius: var(--radius-md);
91
- padding: 12px 14px;
92
- display: flex;
93
- align-items: center;
94
- justify-content: space-between;
95
- cursor: pointer;
96
- transition:
97
- border-color var(--transition-fast) var(--ease-smooth),
98
- background-color var(--transition-fast) var(--ease-smooth),
99
- box-shadow var(--transition-fast) var(--ease-smooth),
100
- transform var(--transition-fast) var(--ease-smooth);
101
- box-shadow: var(--shadow-card);
102
- user-select: none;
103
- will-change: auto;
104
- border: 1px solid var(--color-border-soft);
105
- position: relative;
106
- overflow: hidden;
107
- }
108
-
109
- .card:hover {
110
- border-color: var(--color-border-strong);
111
- box-shadow: var(--shadow-card-hover);
112
- transform: translateY(-1px);
113
- }
114
-
115
- .card::before,
116
- .card::after {
117
- content: "";
118
- position: absolute;
119
- pointer-events: none;
120
- }
121
-
122
- .card::before {
123
- left: 0;
124
- top: 50%;
125
- transform: translateY(-50%);
126
- width: 3px;
127
- height: 18px;
128
- border-radius: 0 2px 2px 0;
129
- background: transparent;
130
- transition: background var(--transition-fast) var(--ease-smooth);
131
- }
132
-
133
- .card::after {
134
- inset: 0;
135
- border-radius: inherit;
136
- background: linear-gradient(120deg, rgba(255, 255, 255, 0.55) 0%, transparent 58%);
137
- opacity: 0;
138
- transition: opacity var(--transition-fast) var(--ease-smooth);
139
- }
140
-
141
- .card:active {
142
- transform: translateY(0);
143
- transition: transform var(--transition-instant) var(--ease-smooth);
144
- }
145
-
146
- .card.active {
147
- background:
148
- linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(200, 121, 99, 0.15));
149
- border-color: rgba(200, 121, 99, 0.28);
150
- box-shadow: 0 14px 34px rgba(92, 68, 52, 0.12);
151
- }
152
-
153
- .card.active::before {
154
- background: var(--color-brand);
155
- }
156
-
157
- .card:hover::after {
158
- opacity: 0.6;
159
- }
160
-
161
- .card.active .card-icon {
162
- transform: scale(1.05);
163
- }
164
-
165
- .card-leading {
166
- display: flex;
167
- align-items: center;
168
- gap: 10px;
169
- flex: 1;
170
- min-width: 0;
171
- }
172
-
173
- .card-icon {
174
- width: 32px;
175
- height: 32px;
176
- border-radius: var(--radius-sm);
177
- background: rgba(200, 121, 99, 0.12);
178
- display: flex;
179
- align-items: center;
180
- justify-content: center;
181
- font-size: var(--font-size-title);
182
- font-weight: var(--font-weight-title);
183
- color: var(--color-brand-dark);
184
- flex-shrink: 0;
185
- transition: background-color var(--transition-fast) var(--ease-smooth), color var(--transition-fast) var(--ease-smooth);
186
- box-shadow: inset 0 0 0 1px rgba(200, 121, 99, 0.08);
187
- }
188
-
189
- .card.active .card-icon {
190
- background: rgba(200, 121, 99, 0.18);
191
- color: var(--color-brand-dark);
192
- box-shadow: inset 0 0 0 1px rgba(200, 121, 99, 0.14);
193
- }
194
-
195
- .card-content {
196
- display: flex;
197
- flex-direction: column;
198
- gap: 1px;
199
- min-width: 0;
200
- }
201
-
202
- .card-title {
203
- display: flex;
204
- align-items: center;
205
- gap: 6px;
206
- min-width: 0;
207
- font-size: var(--font-size-body);
208
- font-weight: var(--font-weight-secondary);
209
- color: var(--color-text-primary);
210
- white-space: nowrap;
211
- overflow: hidden;
212
- text-overflow: ellipsis;
213
- letter-spacing: -0.01em;
214
- }
215
-
216
- .card-title > span:first-child {
217
- min-width: 0;
218
- overflow: hidden;
219
- text-overflow: ellipsis;
220
- white-space: nowrap;
221
- }
222
-
223
- .provider-readonly-badge {
224
- display: inline-flex;
225
- align-items: center;
226
- justify-content: center;
227
- padding: 2px 8px;
228
- border-radius: var(--radius-full);
229
- font-size: 11px;
230
- line-height: 1;
231
- color: #6f4b00;
232
- background: linear-gradient(135deg, rgba(246, 211, 106, 0.32) 0%, rgba(246, 211, 106, 0.2) 100%);
233
- border: 1px solid rgba(191, 151, 40, 0.35);
234
- flex-shrink: 0;
235
- }
236
-
237
- .card-subtitle {
238
- font-size: 12px;
239
- color: var(--color-text-tertiary);
240
- white-space: nowrap;
241
- overflow: hidden;
242
- text-overflow: ellipsis;
243
- opacity: 0.9;
244
- }
245
-
246
- .card-subtitle-model {
247
- font-weight: 500;
248
- color: var(--color-text-secondary);
249
- opacity: 1;
250
- }
251
-
252
- .card-subtitle-url {
253
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
254
- font-size: 11px;
255
- opacity: 0.75;
256
- margin-top: 2px;
257
- }
258
-
259
- .card-trailing {
260
- display: grid;
261
- grid-auto-flow: column;
262
- grid-auto-columns: max-content;
263
- column-gap: var(--spacing-xs);
264
- row-gap: 6px;
265
- align-items: center;
266
- justify-content: end;
267
- align-self: center;
268
- }
269
-
270
- .card-trailing .card-actions {
271
- margin-left: 0;
272
- justify-self: end;
273
- }
274
-
275
- .card-trailing .pill,
276
- .card-trailing .latency {
277
- justify-self: end;
278
- }
279
-
280
- /* 卡片操作按钮 - hover 显示 */
281
- .card-actions {
282
- display: flex;
283
- gap: 8px;
284
- opacity: 0;
285
- pointer-events: none;
286
- transform: translateX(4px);
287
- transition: all var(--transition-normal) var(--ease-spring);
288
- }
289
-
290
- .card:hover .card-actions {
291
- opacity: 1;
292
- pointer-events: auto;
293
- transform: translateX(0);
294
- }
295
-
296
- .card:focus-within .card-actions {
297
- opacity: 1;
298
- pointer-events: auto;
299
- transform: translateX(0);
300
- }
301
-
302
- .mode-cards .card-actions {
303
- opacity: 1;
304
- pointer-events: auto;
305
- transform: translateX(0);
306
- }
307
-
308
- .card-action-btn {
309
- width: 40px;
310
- height: 40px;
311
- border-radius: 10px;
312
- border: 1px solid rgba(70, 86, 110, 0.22);
313
- background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
314
- color: var(--color-text-secondary);
315
- cursor: pointer;
316
- display: flex;
317
- align-items: center;
318
- justify-content: center;
319
- transition: all var(--transition-fast) var(--ease-spring);
320
- box-shadow: inset 0 1px 2px rgba(31, 26, 23, 0.04);
321
- }
322
-
323
- .card-action-btn:hover {
324
- background: linear-gradient(135deg, rgba(200, 121, 99, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
325
- color: var(--color-text-primary);
326
- transform: translateY(-1px);
327
- }
328
-
329
- .card-action-btn.delete:hover {
330
- background: linear-gradient(135deg, rgba(200, 74, 58, 0.1) 0%, rgba(200, 74, 58, 0.05) 100%);
331
- color: var(--color-error);
332
- }
333
-
334
- .card-action-btn:disabled,
335
- .card-action-btn.disabled {
336
- opacity: 0.45;
337
- cursor: not-allowed;
338
- transform: none;
339
- filter: grayscale(0.1);
340
- }
341
-
342
- .card-action-btn.delete:disabled:hover,
343
- .card-action-btn.delete.disabled:hover {
344
- background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
345
- color: var(--color-text-secondary);
346
- }
347
-
348
- .card-action-btn svg {
349
- width: 18px;
350
- height: 18px;
351
- }
352
-
353
- /* ============================================
354
- 状态徽章
355
- ============================================ */
356
- .pill {
357
- padding: 5px 11px;
358
- border-radius: var(--radius-full);
359
- font-size: var(--font-size-caption);
360
- font-weight: var(--font-weight-caption);
361
- background-color: rgba(255, 255, 255, 0.8);
362
- color: var(--color-text-tertiary);
363
- text-transform: uppercase;
364
- letter-spacing: 0.06em;
365
- transition: all var(--transition-fast) var(--ease-smooth);
366
- box-shadow: inset 0 0.5px 1px rgba(0, 0, 0, 0.04);
367
- }
368
-
369
- .pill.configured {
370
- background: linear-gradient(135deg, rgba(90, 139, 106, 0.15) 0%, rgba(90, 139, 106, 0.08) 100%);
371
- color: var(--color-success);
372
- box-shadow: inset 0 0.5px 1px rgba(90, 139, 106, 0.2);
373
- }
374
-
375
- .pill.empty {
376
- background: linear-gradient(135deg, rgba(200, 74, 58, 0.1) 0%, rgba(200, 74, 58, 0.05) 100%);
377
- color: var(--color-error);
378
- box-shadow: inset 0 0.5px 1px rgba(200, 74, 58, 0.15);
379
- }
380
-
381
- .latency {
382
- padding: 4px 10px;
383
- border-radius: var(--radius-full);
384
- font-size: var(--font-size-caption);
385
- font-weight: var(--font-weight-caption);
386
- background: var(--color-bg);
387
- color: var(--color-text-tertiary);
388
- letter-spacing: 0.02em;
389
- min-width: 64px;
390
- text-align: center;
391
- display: inline-flex;
392
- align-items: center;
393
- justify-content: center;
394
- flex-shrink: 0;
395
- }
396
-
397
- .latency.ok {
398
- color: var(--color-success);
399
- background: rgba(90, 139, 106, 0.1);
400
- }
401
-
402
- .latency.error {
403
- color: var(--color-error);
404
- background: rgba(200, 74, 58, 0.08);
405
- }
406
-
407
- .card-action-btn.loading svg {
408
- animation: spin 0.9s linear infinite;
409
- }
410
-
411
- /* ============================================
412
- 图标 - SVG 优化
413
- ============================================ */
414
- .icon {
415
- width: 20px;
416
- height: 20px;
417
- flex-shrink: 0;
418
- stroke-linecap: round;
419
- stroke-linejoin: round;
420
- }
421
-
422
- .icon-chevron-right {
423
- color: var(--color-text-tertiary);
424
- opacity: 0.5;
425
- }
426
-
427
- .provider-transform-icon {
428
- display: inline-flex;
429
- align-items: center;
430
- justify-content: center;
431
- margin-left: 6px;
432
- font-size: 14px;
433
- line-height: 1;
434
- opacity: 0.6;
435
- flex-shrink: 0;
436
- cursor: help;
437
- transition: opacity 0.2s ease;
438
- }
439
-
440
- .provider-transform-icon:hover {
441
- opacity: 1;
442
- }
443
-
444
- .card-icon {
445
- position: relative;
446
- }
447
-
448
- .card-icon-dot {
449
- position: absolute;
450
- bottom: -2px;
451
- right: -2px;
452
- width: 7px;
453
- height: 7px;
454
- border-radius: 50%;
455
- background: #22c55e;
456
- border: 1.5px solid var(--color-surface);
457
- box-shadow: 0 0 4px rgba(34, 197, 94, 0.6), 0 0 8px rgba(34, 197, 94, 0.3);
458
- animation: breathe 2s ease-in-out infinite;
459
- }
460
-
461
- @keyframes breathe {
462
- 0%, 100% {
463
- box-shadow: 0 0 4px rgba(34, 197, 94, 0.6), 0 0 8px rgba(34, 197, 94, 0.3);
464
- }
465
- 50% {
466
- box-shadow: 0 0 10px rgba(34, 197, 94, 0.8), 0 0 18px rgba(34, 197, 94, 0.5);
467
- }
468
- }
469
-
470
- .provider-transform-icon {
471
- display: none;
472
- }
1
+ /* ============================================
2
+ 主标题
3
+ ============================================ */
4
+ .main-title {
5
+ font-size: clamp(18px, 1.3vw, 22px);
6
+ font-weight: 700;
7
+ line-height: 1.15;
8
+ letter-spacing: -0.02em;
9
+ margin-bottom: 0;
10
+ color: var(--color-text-primary);
11
+ font-family: var(--font-family-display);
12
+ background: none;
13
+ -webkit-background-clip: border-box;
14
+ -webkit-text-fill-color: currentColor;
15
+ background-clip: border-box;
16
+ }
17
+
18
+ .main-title .accent {
19
+ color: var(--color-brand);
20
+ -webkit-text-fill-color: var(--color-brand);
21
+ position: relative;
22
+ }
23
+
24
+ .subtitle {
25
+ font-size: 13px;
26
+ color: var(--color-text-secondary);
27
+ line-height: 1.58;
28
+ margin-bottom: 0;
29
+ max-width: 70ch;
30
+ letter-spacing: 0;
31
+ }
32
+
33
+ /* ============================================
34
+ 模式切换器 - Segmented Control
35
+ ============================================ */
36
+ .segmented-control {
37
+ display: flex;
38
+ background: rgba(255, 255, 255, 0.48);
39
+ border-radius: var(--radius-md);
40
+ padding: 4px;
41
+ margin-bottom: 14px;
42
+ position: relative;
43
+ box-shadow: var(--shadow-subtle);
44
+ border: 1px solid var(--color-border-soft);
45
+ backdrop-filter: blur(12px);
46
+ }
47
+
48
+ .segment {
49
+ flex: 1;
50
+ padding: 8px 10px;
51
+ border: none;
52
+ background: transparent;
53
+ font-size: var(--font-size-body);
54
+ font-weight: var(--font-weight-secondary);
55
+ color: var(--color-text-secondary);
56
+ cursor: pointer;
57
+ border-radius: var(--radius-sm);
58
+ transition: color var(--transition-fast) var(--ease-smooth), background-color var(--transition-fast) var(--ease-smooth);
59
+ position: relative;
60
+ z-index: 2;
61
+ letter-spacing: 0;
62
+ }
63
+
64
+ .segment:hover {
65
+ color: var(--color-text-primary);
66
+ }
67
+
68
+ .segment.active {
69
+ color: var(--color-brand-dark);
70
+ background: rgba(255, 255, 255, 0.78);
71
+ box-shadow: 0 8px 18px rgba(92, 68, 52, 0.08), inset 0 0 0 1px rgba(200, 121, 99, 0.12);
72
+ }
73
+
74
+ /* ============================================
75
+ 卡片列表
76
+ ============================================ */
77
+ .card-list {
78
+ display: flex;
79
+ flex-direction: column;
80
+ gap: 10px;
81
+ margin-bottom: 8px;
82
+ }
83
+
84
+ /* ============================================
85
+ 卡片
86
+ ============================================ */
87
+ .card {
88
+ background:
89
+ linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 251, 247, 0.76));
90
+ border-radius: var(--radius-md);
91
+ padding: 12px 14px;
92
+ display: flex;
93
+ align-items: center;
94
+ justify-content: space-between;
95
+ cursor: pointer;
96
+ transition:
97
+ border-color var(--transition-fast) var(--ease-smooth),
98
+ background-color var(--transition-fast) var(--ease-smooth),
99
+ box-shadow var(--transition-fast) var(--ease-smooth),
100
+ transform var(--transition-fast) var(--ease-smooth);
101
+ box-shadow: var(--shadow-card);
102
+ user-select: none;
103
+ will-change: auto;
104
+ border: 1px solid var(--color-border-soft);
105
+ position: relative;
106
+ overflow: hidden;
107
+ }
108
+
109
+ .card:hover {
110
+ border-color: var(--color-border-strong);
111
+ box-shadow: var(--shadow-card-hover);
112
+ transform: translateY(-1px);
113
+ }
114
+
115
+ .card::before,
116
+ .card::after {
117
+ content: "";
118
+ position: absolute;
119
+ pointer-events: none;
120
+ }
121
+
122
+ .card::before {
123
+ left: 0;
124
+ top: 50%;
125
+ transform: translateY(-50%);
126
+ width: 3px;
127
+ height: 18px;
128
+ border-radius: 0 2px 2px 0;
129
+ background: transparent;
130
+ transition: background var(--transition-fast) var(--ease-smooth);
131
+ }
132
+
133
+ .card::after {
134
+ inset: 0;
135
+ border-radius: inherit;
136
+ background: linear-gradient(120deg, rgba(255, 255, 255, 0.55) 0%, transparent 58%);
137
+ opacity: 0;
138
+ transition: opacity var(--transition-fast) var(--ease-smooth);
139
+ }
140
+
141
+ .card:active {
142
+ transform: translateY(0);
143
+ transition: transform var(--transition-instant) var(--ease-smooth);
144
+ }
145
+
146
+ .card.active {
147
+ background:
148
+ linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(200, 121, 99, 0.15));
149
+ border-color: rgba(200, 121, 99, 0.28);
150
+ box-shadow: 0 14px 34px rgba(92, 68, 52, 0.12);
151
+ }
152
+
153
+ .card.active::before {
154
+ background: var(--color-brand);
155
+ }
156
+
157
+ .card:hover::after {
158
+ opacity: 0.6;
159
+ }
160
+
161
+ .card.active .card-icon {
162
+ transform: scale(1.05);
163
+ }
164
+
165
+ .card-leading {
166
+ display: flex;
167
+ align-items: center;
168
+ gap: 10px;
169
+ flex: 1;
170
+ min-width: 0;
171
+ }
172
+
173
+ .card-icon {
174
+ width: 32px;
175
+ height: 32px;
176
+ border-radius: var(--radius-sm);
177
+ background: rgba(200, 121, 99, 0.12);
178
+ display: flex;
179
+ align-items: center;
180
+ justify-content: center;
181
+ font-size: var(--font-size-title);
182
+ font-weight: var(--font-weight-title);
183
+ color: var(--color-brand-dark);
184
+ flex-shrink: 0;
185
+ transition: background-color var(--transition-fast) var(--ease-smooth), color var(--transition-fast) var(--ease-smooth);
186
+ box-shadow: inset 0 0 0 1px rgba(200, 121, 99, 0.08);
187
+ }
188
+
189
+ .card.active .card-icon {
190
+ background: rgba(200, 121, 99, 0.18);
191
+ color: var(--color-brand-dark);
192
+ box-shadow: inset 0 0 0 1px rgba(200, 121, 99, 0.14);
193
+ }
194
+
195
+ .card-content {
196
+ display: flex;
197
+ flex-direction: column;
198
+ gap: 1px;
199
+ min-width: 0;
200
+ }
201
+
202
+ .card-title {
203
+ display: flex;
204
+ align-items: center;
205
+ gap: 6px;
206
+ min-width: 0;
207
+ font-size: var(--font-size-body);
208
+ font-weight: var(--font-weight-secondary);
209
+ color: var(--color-text-primary);
210
+ white-space: nowrap;
211
+ overflow: hidden;
212
+ text-overflow: ellipsis;
213
+ letter-spacing: -0.01em;
214
+ }
215
+
216
+ .card-title > span:first-child {
217
+ min-width: 0;
218
+ overflow: hidden;
219
+ text-overflow: ellipsis;
220
+ white-space: nowrap;
221
+ }
222
+
223
+ .provider-readonly-badge {
224
+ display: inline-flex;
225
+ align-items: center;
226
+ justify-content: center;
227
+ padding: 2px 8px;
228
+ border-radius: var(--radius-full);
229
+ font-size: 11px;
230
+ line-height: 1;
231
+ color: #6f4b00;
232
+ background: linear-gradient(135deg, rgba(246, 211, 106, 0.32) 0%, rgba(246, 211, 106, 0.2) 100%);
233
+ border: 1px solid rgba(191, 151, 40, 0.35);
234
+ flex-shrink: 0;
235
+ }
236
+
237
+ .card-subtitle {
238
+ font-size: 12px;
239
+ color: var(--color-text-tertiary);
240
+ white-space: nowrap;
241
+ overflow: hidden;
242
+ text-overflow: ellipsis;
243
+ opacity: 0.9;
244
+ }
245
+
246
+ .card-subtitle-model {
247
+ font-weight: 500;
248
+ color: var(--color-text-secondary);
249
+ opacity: 1;
250
+ }
251
+
252
+ .card-subtitle-url {
253
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
254
+ font-size: 11px;
255
+ opacity: 0.75;
256
+ margin-top: 2px;
257
+ }
258
+
259
+ .card-trailing {
260
+ display: grid;
261
+ grid-auto-flow: column;
262
+ grid-auto-columns: max-content;
263
+ column-gap: var(--spacing-xs);
264
+ row-gap: 6px;
265
+ align-items: center;
266
+ justify-content: end;
267
+ align-self: center;
268
+ }
269
+
270
+ .card-trailing .card-actions {
271
+ margin-left: 0;
272
+ justify-self: end;
273
+ }
274
+
275
+ .card-trailing .pill,
276
+ .card-trailing .latency {
277
+ justify-self: end;
278
+ }
279
+
280
+ /* 卡片操作按钮 - hover 显示 */
281
+ .card-actions {
282
+ display: flex;
283
+ gap: 8px;
284
+ opacity: 0;
285
+ pointer-events: none;
286
+ transform: translateX(4px);
287
+ transition: all var(--transition-normal) var(--ease-spring);
288
+ }
289
+
290
+ .card:hover .card-actions {
291
+ opacity: 1;
292
+ pointer-events: auto;
293
+ transform: translateX(0);
294
+ }
295
+
296
+ .card:focus-within .card-actions {
297
+ opacity: 1;
298
+ pointer-events: auto;
299
+ transform: translateX(0);
300
+ }
301
+
302
+ .mode-cards .card-actions {
303
+ opacity: 1;
304
+ pointer-events: auto;
305
+ transform: translateX(0);
306
+ }
307
+
308
+ .card-action-btn {
309
+ width: 40px;
310
+ height: 40px;
311
+ border-radius: 10px;
312
+ border: 1px solid rgba(70, 86, 110, 0.22);
313
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
314
+ color: var(--color-text-secondary);
315
+ cursor: pointer;
316
+ display: flex;
317
+ align-items: center;
318
+ justify-content: center;
319
+ transition: all var(--transition-fast) var(--ease-spring);
320
+ box-shadow: inset 0 1px 2px rgba(31, 26, 23, 0.04);
321
+ }
322
+
323
+ .card-action-btn:hover {
324
+ background: linear-gradient(135deg, rgba(200, 121, 99, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
325
+ color: var(--color-text-primary);
326
+ transform: translateY(-1px);
327
+ }
328
+
329
+ .card-action-btn.delete:hover {
330
+ background: linear-gradient(135deg, rgba(200, 74, 58, 0.1) 0%, rgba(200, 74, 58, 0.05) 100%);
331
+ color: var(--color-error);
332
+ }
333
+
334
+ .card-action-btn:disabled,
335
+ .card-action-btn.disabled {
336
+ opacity: 0.45;
337
+ cursor: not-allowed;
338
+ transform: none;
339
+ filter: grayscale(0.1);
340
+ }
341
+
342
+ .card-action-btn.delete:disabled:hover,
343
+ .card-action-btn.delete.disabled:hover {
344
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
345
+ color: var(--color-text-secondary);
346
+ }
347
+
348
+ .card-action-btn svg {
349
+ width: 18px;
350
+ height: 18px;
351
+ }
352
+
353
+ /* ============================================
354
+ 状态徽章
355
+ ============================================ */
356
+ .pill {
357
+ padding: 5px 11px;
358
+ border-radius: var(--radius-full);
359
+ font-size: var(--font-size-caption);
360
+ font-weight: var(--font-weight-caption);
361
+ background-color: rgba(255, 255, 255, 0.8);
362
+ color: var(--color-text-tertiary);
363
+ text-transform: uppercase;
364
+ letter-spacing: 0.06em;
365
+ transition: all var(--transition-fast) var(--ease-smooth);
366
+ box-shadow: inset 0 0.5px 1px rgba(0, 0, 0, 0.04);
367
+ }
368
+
369
+ .pill.configured {
370
+ background: linear-gradient(135deg, rgba(90, 139, 106, 0.15) 0%, rgba(90, 139, 106, 0.08) 100%);
371
+ color: var(--color-success);
372
+ box-shadow: inset 0 0.5px 1px rgba(90, 139, 106, 0.2);
373
+ }
374
+
375
+ .pill.empty {
376
+ background: linear-gradient(135deg, rgba(200, 74, 58, 0.1) 0%, rgba(200, 74, 58, 0.05) 100%);
377
+ color: var(--color-error);
378
+ box-shadow: inset 0 0.5px 1px rgba(200, 74, 58, 0.15);
379
+ }
380
+
381
+ .latency {
382
+ padding: 4px 10px;
383
+ border-radius: var(--radius-full);
384
+ font-size: var(--font-size-caption);
385
+ font-weight: var(--font-weight-caption);
386
+ background: var(--color-bg);
387
+ color: var(--color-text-tertiary);
388
+ letter-spacing: 0.02em;
389
+ min-width: 64px;
390
+ text-align: center;
391
+ display: inline-flex;
392
+ align-items: center;
393
+ justify-content: center;
394
+ flex-shrink: 0;
395
+ }
396
+
397
+ .latency.ok {
398
+ color: var(--color-success);
399
+ background: rgba(90, 139, 106, 0.1);
400
+ }
401
+
402
+ .latency.error {
403
+ color: var(--color-error);
404
+ background: rgba(200, 74, 58, 0.08);
405
+ }
406
+
407
+ .card-action-btn.loading svg {
408
+ animation: spin 0.9s linear infinite;
409
+ }
410
+
411
+ /* ============================================
412
+ 图标 - SVG 优化
413
+ ============================================ */
414
+ .icon {
415
+ width: 20px;
416
+ height: 20px;
417
+ flex-shrink: 0;
418
+ stroke-linecap: round;
419
+ stroke-linejoin: round;
420
+ }
421
+
422
+ .icon-chevron-right {
423
+ color: var(--color-text-tertiary);
424
+ opacity: 0.5;
425
+ }
426
+
427
+ .provider-transform-icon {
428
+ display: inline-flex;
429
+ align-items: center;
430
+ justify-content: center;
431
+ margin-left: 6px;
432
+ font-size: 14px;
433
+ line-height: 1;
434
+ opacity: 0.6;
435
+ flex-shrink: 0;
436
+ cursor: help;
437
+ transition: opacity 0.2s ease;
438
+ }
439
+
440
+ .provider-transform-icon:hover {
441
+ opacity: 1;
442
+ }
443
+
444
+ .card-icon {
445
+ position: relative;
446
+ }
447
+
448
+ .card-icon-dot {
449
+ position: absolute;
450
+ bottom: -2px;
451
+ right: -2px;
452
+ width: 7px;
453
+ height: 7px;
454
+ border-radius: 50%;
455
+ background: #22c55e;
456
+ border: 1.5px solid var(--color-surface);
457
+ box-shadow: 0 0 4px rgba(34, 197, 94, 0.6), 0 0 8px rgba(34, 197, 94, 0.3);
458
+ animation: breathe 2s ease-in-out infinite;
459
+ }
460
+
461
+ @keyframes breathe {
462
+ 0%, 100% {
463
+ box-shadow: 0 0 4px rgba(34, 197, 94, 0.6), 0 0 8px rgba(34, 197, 94, 0.3);
464
+ }
465
+ 50% {
466
+ box-shadow: 0 0 10px rgba(34, 197, 94, 0.8), 0 0 18px rgba(34, 197, 94, 0.5);
467
+ }
468
+ }
469
+
470
+ .provider-transform-icon {
471
+ display: none;
472
+ }