codexmate 0.0.41 → 0.0.43

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