codexmate 0.0.40 → 0.0.41

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 -156
  2. package/README.zh.md +168 -156
  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 +16458 -16341
  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 +695 -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 +601 -601
  79. package/web-ui/modules/app.methods.runtime.mjs +420 -420
  80. package/web-ui/modules/app.methods.session-actions.mjs +591 -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 +554 -554
  85. package/web-ui/modules/app.methods.task-orchestration.mjs +556 -556
  86. package/web-ui/modules/app.methods.tool-config-permissions.mjs +87 -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 +1140 -1140
  91. package/web-ui/modules/i18n/locales/ja.mjs +1130 -1130
  92. package/web-ui/modules/i18n/locales/vi.mjs +239 -239
  93. package/web-ui/modules/i18n/locales/zh.mjs +1143 -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 +319 -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 +7666 -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 +486 -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,499 +1,499 @@
1
- /* ============================================
2
- 模态框
3
- ============================================ */
4
- @keyframes modalFadeIn {
5
- from { opacity: 0; }
6
- to { opacity: 1; }
7
- }
8
-
9
- @keyframes modalSlideUp {
10
- from { transform: translateY(24px); opacity: 0; }
11
- to { transform: translateY(0); opacity: 1; }
12
- }
13
-
14
- .modal-overlay {
15
- position: fixed;
16
- top: 0;
17
- left: 0;
18
- right: 0;
19
- bottom: 0;
20
- background:
21
- radial-gradient(circle at 50% 18%, rgba(255, 248, 241, 0.22), rgba(255, 248, 241, 0) 36%),
22
- linear-gradient(to bottom, rgba(31, 26, 23, 0.28) 0%, rgba(31, 26, 23, 0.48) 100%);
23
- display: flex;
24
- justify-content: center;
25
- align-items: center;
26
- z-index: 100;
27
- backdrop-filter: blur(8px) saturate(180%);
28
- -webkit-backdrop-filter: blur(8px) saturate(180%);
29
- animation: modalFadeIn var(--transition-normal) var(--ease-out-expo);
30
- }
31
-
32
- .modal {
33
- background: linear-gradient(to bottom, rgba(255, 255, 255, 0.96) 0%, rgba(255, 250, 246, 0.94) 100%);
34
- width: 90%;
35
- max-width: 400px;
36
- max-height: 90vh;
37
- overflow-y: auto;
38
- overscroll-behavior: contain;
39
- border-radius: var(--radius-xl);
40
- padding: var(--spacing-md);
41
- box-shadow: var(--shadow-modal);
42
- border: 1px solid rgba(255, 255, 255, 0.72);
43
- animation: modalSlideUp var(--transition-slow) var(--ease-spring);
44
- }
45
-
46
- .modal-wide {
47
- max-width: 980px;
48
- }
49
-
50
- .modal-editor {
51
- width: min(96vw, 980px);
52
- max-height: calc(100vh - 24px);
53
- display: flex;
54
- flex-direction: column;
55
- overflow: hidden;
56
- padding: 0;
57
- }
58
-
59
- .agents-modal {
60
- width: min(92vw, 900px);
61
- max-height: calc(100vh - 56px);
62
- }
63
-
64
- .modal-editor-header {
65
- margin-bottom: 0;
66
- padding: var(--spacing-md) var(--spacing-md) 0;
67
- }
68
-
69
- .modal-editor-body {
70
- flex: 1;
71
- min-height: 0;
72
- overflow-y: auto;
73
- padding: var(--spacing-sm) var(--spacing-md) 0;
74
- }
75
-
76
- .modal-editor-footer {
77
- margin-top: 0;
78
- padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
79
- border-top: 1px solid var(--color-border-soft);
80
- background: linear-gradient(to bottom, rgba(255, 250, 246, 0.78) 0%, rgba(255, 250, 246, 0.96) 100%);
81
- backdrop-filter: blur(10px);
82
- }
83
-
84
- .modal-title {
85
- font-size: var(--font-size-title);
86
- font-weight: var(--font-weight-title);
87
- margin-bottom: var(--spacing-md);
88
- color: var(--color-text-primary);
89
- letter-spacing: -0.01em;
90
- }
91
-
92
- .confirm-dialog {
93
- max-width: 460px;
94
- }
95
-
96
- .confirm-dialog-message {
97
- font-size: var(--font-size-body);
98
- line-height: 1.7;
99
- color: var(--color-text-secondary);
100
- white-space: pre-wrap;
101
- }
102
-
103
- .confirm-dialog-actions {
104
- margin-top: var(--spacing-lg);
105
- justify-content: flex-end;
106
- }
107
-
108
- .install-list {
109
- display: flex;
110
- flex-direction: column;
111
- gap: var(--spacing-sm);
112
- margin-top: var(--spacing-sm);
113
- }
114
-
115
- .install-row {
116
- display: flex;
117
- align-items: center;
118
- gap: var(--spacing-sm);
119
- padding: 10px 12px;
120
- border: 1px solid var(--color-border-soft);
121
- border-radius: var(--radius-md);
122
- background: rgba(255, 255, 255, 0.48);
123
- }
124
-
125
- .install-row-main {
126
- flex: 1;
127
- display: flex;
128
- flex-direction: column;
129
- gap: 6px;
130
- }
131
-
132
- .install-row-title {
133
- font-size: var(--font-size-secondary);
134
- color: var(--color-text-secondary);
135
- }
136
-
137
- .install-command {
138
- flex: 1;
139
- font-family: var(--font-family-mono);
140
- font-size: var(--font-size-secondary);
141
- color: var(--color-text-primary);
142
- word-break: break-all;
143
- background: rgba(255, 255, 255, 0.72);
144
- padding: 8px 10px;
145
- border-radius: var(--radius-sm);
146
- border: 1px solid var(--color-border-soft);
147
- }
148
-
149
- .install-row .btn-mini {
150
- white-space: nowrap;
151
- }
152
-
153
- .install-action-tabs {
154
- display: flex;
155
- gap: var(--spacing-xs);
156
- flex-wrap: wrap;
157
- }
158
-
159
- .install-action-tabs .btn-mini.active {
160
- background: var(--color-brand-light);
161
- border-color: rgba(200, 121, 99, 0.22);
162
- color: var(--color-brand-dark);
163
- }
164
-
165
- .install-registry-input {
166
- width: 100%;
167
- }
168
-
169
- .install-registry-hint {
170
- width: 100%;
171
- margin-top: 2px;
172
- }
173
-
174
- .install-help {
175
- margin-top: var(--spacing-sm);
176
- border-top: 1px dashed var(--color-border-soft);
177
- padding-top: var(--spacing-sm);
178
- }
179
-
180
- .install-help-list {
181
- margin: 6px 0 0;
182
- padding-left: 18px;
183
- color: var(--color-text-secondary);
184
- font-size: var(--font-size-secondary);
185
- }
186
-
187
- .install-help-list li + li {
188
- margin-top: 4px;
189
- }
190
-
191
- .modal-header {
192
- display: flex;
193
- align-items: center;
194
- justify-content: space-between;
195
- gap: var(--spacing-sm);
196
- margin-bottom: var(--spacing-md);
197
- flex-wrap: wrap;
198
- }
199
-
200
- .modal-header .modal-title {
201
- margin-bottom: 0;
202
- }
203
-
204
- .modal-header-actions {
205
- display: inline-flex;
206
- align-items: center;
207
- gap: 8px;
208
- margin-left: auto;
209
- }
210
-
211
- .btn-modal-copy {
212
- padding: 6px 12px;
213
- white-space: nowrap;
214
- flex-shrink: 0;
215
- }
216
-
217
- .form-group {
218
- margin-bottom: var(--spacing-sm);
219
- }
220
-
221
- .form-label {
222
- display: block;
223
- font-size: var(--font-size-secondary);
224
- font-weight: var(--font-weight-secondary);
225
- color: var(--color-text-secondary);
226
- margin-bottom: 7px;
227
- letter-spacing: 0.01em;
228
- }
229
-
230
- .form-input {
231
- width: 100%;
232
- padding: 13px var(--spacing-sm);
233
- border: 1.5px solid var(--color-border-soft);
234
- border-radius: var(--radius-sm);
235
- font-size: var(--font-size-body);
236
- background-color: var(--color-surface-alt);
237
- color: var(--color-text-primary);
238
- outline: none;
239
- transition: all var(--transition-fast) var(--ease-spring);
240
- font-family: var(--font-family-body);
241
- box-shadow: inset 0 1px 2px rgba(31, 26, 23, 0.04);
242
- }
243
-
244
- .form-input:hover {
245
- border-color: var(--color-border-strong);
246
- }
247
-
248
- .form-input:focus {
249
- border-color: var(--color-brand);
250
- background-color: var(--color-surface);
251
- box-shadow: var(--shadow-input-focus);
252
- }
253
-
254
- .form-input.invalid,
255
- .form-input.invalid:hover,
256
- .form-input.invalid:focus {
257
- border-color: var(--color-error);
258
- }
259
-
260
- .form-input.invalid:focus {
261
- box-shadow: 0 0 0 3px rgba(196, 69, 54, 0.14);
262
- }
263
-
264
- .form-input::placeholder {
265
- color: var(--color-text-tertiary);
266
- opacity: 0.7;
267
- }
268
-
269
- .input-with-toggle {
270
- position: relative;
271
- display: flex;
272
- align-items: center;
273
- }
274
-
275
- .input-with-toggle .form-input {
276
- width: 100%;
277
- padding-right: 36px;
278
- }
279
-
280
- .input-toggle-btn {
281
- position: absolute;
282
- right: 6px;
283
- display: flex;
284
- align-items: center;
285
- justify-content: center;
286
- width: 28px;
287
- height: 28px;
288
- padding: 0;
289
- border: none;
290
- border-radius: var(--radius-sm);
291
- background: transparent;
292
- color: var(--color-text-secondary);
293
- cursor: pointer;
294
- transition: color var(--transition-fast);
295
- }
296
-
297
- .input-toggle-btn:hover {
298
- color: var(--color-text-primary);
299
- background: var(--color-surface-alt);
300
- }
301
-
302
- .form-select {
303
- width: 100%;
304
- min-height: 44px;
305
- padding: 10px 40px 10px 12px;
306
- border: 1.5px solid var(--color-border-soft);
307
- border-radius: var(--radius-sm);
308
- font-size: var(--font-size-secondary);
309
- font-weight: var(--font-weight-secondary);
310
- background-color: var(--color-surface-alt);
311
- color: var(--color-text-primary);
312
- outline: none;
313
- transition: all var(--transition-fast) var(--ease-spring);
314
- font-family: var(--font-family-body);
315
- box-shadow: inset 0 1px 2px rgba(31, 26, 23, 0.04);
316
- cursor: pointer;
317
- appearance: none;
318
- -webkit-appearance: none;
319
- -moz-appearance: none;
320
- 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.6' stroke-linecap='round' stroke-linejoin='round' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
321
- background-repeat: no-repeat;
322
- background-position: right 14px center;
323
- background-size: 12px;
324
- }
325
-
326
- .form-select:hover {
327
- border-color: var(--color-border-strong);
328
- background-color: var(--color-surface);
329
- }
330
-
331
- .form-select:focus {
332
- border-color: var(--color-brand);
333
- background-color: var(--color-surface);
334
- box-shadow: var(--shadow-input-focus);
335
- }
336
-
337
- .form-select:disabled {
338
- background: linear-gradient(to right, var(--color-bg) 0%, rgba(247, 241, 232, 0.5) 100%);
339
- color: var(--color-text-tertiary);
340
- cursor: not-allowed;
341
- border-color: transparent;
342
- }
343
-
344
- .template-editor {
345
- min-height: min(60vh, 520px);
346
- max-height: min(65vh, 620px);
347
- resize: vertical;
348
- overflow: auto;
349
- white-space: pre;
350
- font-family: var(--font-family-mono);
351
- font-size: 13px;
352
- line-height: 1.45;
353
- }
354
-
355
- .template-editor-warning {
356
- margin-top: 8px;
357
- color: #8d5b31;
358
- font-size: var(--font-size-caption);
359
- line-height: 1.4;
360
- }
361
-
362
-
363
- .agents-diff-hint {
364
- margin-top: 6px;
365
- color: var(--color-text-tertiary);
366
- font-size: var(--font-size-caption);
367
- }
368
-
369
- .agents-diff-save-alert {
370
- margin-bottom: 8px;
371
- padding: 8px 10px;
372
- border-radius: var(--radius-sm);
373
- border: 1px solid rgba(238, 178, 90, 0.45);
374
- background: rgba(255, 236, 204, 0.72);
375
- color: #8d5b31;
376
- font-size: var(--font-size-caption);
377
- font-weight: var(--font-weight-secondary);
378
- }
379
-
380
- .agents-diff-summary {
381
- display: flex;
382
- align-items: center;
383
- gap: 8px;
384
- margin-bottom: 8px;
385
- font-size: var(--font-size-caption);
386
- color: var(--color-text-tertiary);
387
- }
388
-
389
- .agents-diff-stat {
390
- display: inline-flex;
391
- align-items: center;
392
- gap: 4px;
393
- padding: 2px 8px;
394
- border-radius: 999px;
395
- border: 1px solid transparent;
396
- font-weight: var(--font-weight-secondary);
397
- }
398
-
399
- .agents-diff-stat.add {
400
- color: #2b6a3b;
401
- background: rgba(57, 181, 97, 0.12);
402
- border-color: rgba(57, 181, 97, 0.2);
403
- }
404
-
405
- .agents-diff-stat.del {
406
- color: #8a2f36;
407
- background: rgba(220, 95, 108, 0.12);
408
- border-color: rgba(220, 95, 108, 0.2);
409
- }
410
-
411
-
412
- .agents-diff-empty {
413
- padding: 10px 12px;
414
- font-size: var(--font-size-caption);
415
- color: var(--color-text-tertiary);
416
- border: 1px dashed var(--color-border-soft);
417
- border-radius: var(--radius-sm);
418
- background: rgba(255, 255, 255, 0.6);
419
- }
420
-
421
- .agents-diff-view {
422
- border: 1px solid var(--color-border-soft);
423
- border-radius: var(--radius-sm);
424
- background: rgba(255, 255, 255, 0.7);
425
- font-family: var(--font-family-mono);
426
- font-size: 12px;
427
- line-height: 1.55;
428
- max-height: min(32vh, 280px);
429
- overflow: auto;
430
- }
431
-
432
-
433
- .agents-diff-editor {
434
- min-height: min(60vh, 520px);
435
- max-height: min(65vh, 620px);
436
- }
437
-
438
- .agents-modal .template-editor,
439
- .agents-modal .agents-diff-editor {
440
- min-height: min(52vh, 460px);
441
- max-height: min(58vh, 540px);
442
- }
443
-
444
- .agents-diff-line {
445
- display: grid;
446
- grid-template-columns: 16px 1fr;
447
- gap: 8px;
448
- padding: 2px 10px;
449
- align-items: start;
450
- }
451
-
452
- .agents-diff-line + .agents-diff-line {
453
- border-top: none;
454
- }
455
-
456
- .agents-diff-line.add {
457
- background: rgba(57, 181, 97, 0.08);
458
- }
459
-
460
- .agents-diff-line.del {
461
- background: rgba(220, 95, 108, 0.1);
462
- }
463
-
464
- .agents-diff-line.context {
465
- background: transparent;
466
- }
467
-
468
-
469
- .agents-diff-line-sign {
470
- text-align: center;
471
- color: var(--color-text-tertiary);
472
- min-height: 20px;
473
- }
474
-
475
- .agents-diff-line-text {
476
- white-space: pre-wrap;
477
- word-break: break-word;
478
- color: var(--color-text-primary);
479
- }
480
-
481
- .form-input:disabled,
482
- .form-input[readonly] {
483
- background: linear-gradient(to right, var(--color-bg) 0%, rgba(247, 241, 232, 0.5) 100%);
484
- color: var(--color-text-tertiary);
485
- cursor: not-allowed;
486
- border-color: transparent;
487
- }
488
-
489
- .form-hint {
490
- font-size: var(--font-size-caption);
491
- color: var(--color-text-tertiary);
492
- margin-top: 5px;
493
- opacity: 0.8;
494
- }
495
-
496
- .form-hint.form-error {
497
- color: var(--color-error);
498
- opacity: 1;
499
- }
1
+ /* ============================================
2
+ 模态框
3
+ ============================================ */
4
+ @keyframes modalFadeIn {
5
+ from { opacity: 0; }
6
+ to { opacity: 1; }
7
+ }
8
+
9
+ @keyframes modalSlideUp {
10
+ from { transform: translateY(24px); opacity: 0; }
11
+ to { transform: translateY(0); opacity: 1; }
12
+ }
13
+
14
+ .modal-overlay {
15
+ position: fixed;
16
+ top: 0;
17
+ left: 0;
18
+ right: 0;
19
+ bottom: 0;
20
+ background:
21
+ radial-gradient(circle at 50% 18%, rgba(255, 248, 241, 0.22), rgba(255, 248, 241, 0) 36%),
22
+ linear-gradient(to bottom, rgba(31, 26, 23, 0.28) 0%, rgba(31, 26, 23, 0.48) 100%);
23
+ display: flex;
24
+ justify-content: center;
25
+ align-items: center;
26
+ z-index: 100;
27
+ backdrop-filter: blur(8px) saturate(180%);
28
+ -webkit-backdrop-filter: blur(8px) saturate(180%);
29
+ animation: modalFadeIn var(--transition-normal) var(--ease-out-expo);
30
+ }
31
+
32
+ .modal {
33
+ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.96) 0%, rgba(255, 250, 246, 0.94) 100%);
34
+ width: 90%;
35
+ max-width: 400px;
36
+ max-height: 90vh;
37
+ overflow-y: auto;
38
+ overscroll-behavior: contain;
39
+ border-radius: var(--radius-xl);
40
+ padding: var(--spacing-md);
41
+ box-shadow: var(--shadow-modal);
42
+ border: 1px solid rgba(255, 255, 255, 0.72);
43
+ animation: modalSlideUp var(--transition-slow) var(--ease-spring);
44
+ }
45
+
46
+ .modal-wide {
47
+ max-width: 980px;
48
+ }
49
+
50
+ .modal-editor {
51
+ width: min(96vw, 980px);
52
+ max-height: calc(100vh - 24px);
53
+ display: flex;
54
+ flex-direction: column;
55
+ overflow: hidden;
56
+ padding: 0;
57
+ }
58
+
59
+ .agents-modal {
60
+ width: min(92vw, 900px);
61
+ max-height: calc(100vh - 56px);
62
+ }
63
+
64
+ .modal-editor-header {
65
+ margin-bottom: 0;
66
+ padding: var(--spacing-md) var(--spacing-md) 0;
67
+ }
68
+
69
+ .modal-editor-body {
70
+ flex: 1;
71
+ min-height: 0;
72
+ overflow-y: auto;
73
+ padding: var(--spacing-sm) var(--spacing-md) 0;
74
+ }
75
+
76
+ .modal-editor-footer {
77
+ margin-top: 0;
78
+ padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
79
+ border-top: 1px solid var(--color-border-soft);
80
+ background: linear-gradient(to bottom, rgba(255, 250, 246, 0.78) 0%, rgba(255, 250, 246, 0.96) 100%);
81
+ backdrop-filter: blur(10px);
82
+ }
83
+
84
+ .modal-title {
85
+ font-size: var(--font-size-title);
86
+ font-weight: var(--font-weight-title);
87
+ margin-bottom: var(--spacing-md);
88
+ color: var(--color-text-primary);
89
+ letter-spacing: -0.01em;
90
+ }
91
+
92
+ .confirm-dialog {
93
+ max-width: 460px;
94
+ }
95
+
96
+ .confirm-dialog-message {
97
+ font-size: var(--font-size-body);
98
+ line-height: 1.7;
99
+ color: var(--color-text-secondary);
100
+ white-space: pre-wrap;
101
+ }
102
+
103
+ .confirm-dialog-actions {
104
+ margin-top: var(--spacing-lg);
105
+ justify-content: flex-end;
106
+ }
107
+
108
+ .install-list {
109
+ display: flex;
110
+ flex-direction: column;
111
+ gap: var(--spacing-sm);
112
+ margin-top: var(--spacing-sm);
113
+ }
114
+
115
+ .install-row {
116
+ display: flex;
117
+ align-items: center;
118
+ gap: var(--spacing-sm);
119
+ padding: 10px 12px;
120
+ border: 1px solid var(--color-border-soft);
121
+ border-radius: var(--radius-md);
122
+ background: rgba(255, 255, 255, 0.48);
123
+ }
124
+
125
+ .install-row-main {
126
+ flex: 1;
127
+ display: flex;
128
+ flex-direction: column;
129
+ gap: 6px;
130
+ }
131
+
132
+ .install-row-title {
133
+ font-size: var(--font-size-secondary);
134
+ color: var(--color-text-secondary);
135
+ }
136
+
137
+ .install-command {
138
+ flex: 1;
139
+ font-family: var(--font-family-mono);
140
+ font-size: var(--font-size-secondary);
141
+ color: var(--color-text-primary);
142
+ word-break: break-all;
143
+ background: rgba(255, 255, 255, 0.72);
144
+ padding: 8px 10px;
145
+ border-radius: var(--radius-sm);
146
+ border: 1px solid var(--color-border-soft);
147
+ }
148
+
149
+ .install-row .btn-mini {
150
+ white-space: nowrap;
151
+ }
152
+
153
+ .install-action-tabs {
154
+ display: flex;
155
+ gap: var(--spacing-xs);
156
+ flex-wrap: wrap;
157
+ }
158
+
159
+ .install-action-tabs .btn-mini.active {
160
+ background: var(--color-brand-light);
161
+ border-color: rgba(200, 121, 99, 0.22);
162
+ color: var(--color-brand-dark);
163
+ }
164
+
165
+ .install-registry-input {
166
+ width: 100%;
167
+ }
168
+
169
+ .install-registry-hint {
170
+ width: 100%;
171
+ margin-top: 2px;
172
+ }
173
+
174
+ .install-help {
175
+ margin-top: var(--spacing-sm);
176
+ border-top: 1px dashed var(--color-border-soft);
177
+ padding-top: var(--spacing-sm);
178
+ }
179
+
180
+ .install-help-list {
181
+ margin: 6px 0 0;
182
+ padding-left: 18px;
183
+ color: var(--color-text-secondary);
184
+ font-size: var(--font-size-secondary);
185
+ }
186
+
187
+ .install-help-list li + li {
188
+ margin-top: 4px;
189
+ }
190
+
191
+ .modal-header {
192
+ display: flex;
193
+ align-items: center;
194
+ justify-content: space-between;
195
+ gap: var(--spacing-sm);
196
+ margin-bottom: var(--spacing-md);
197
+ flex-wrap: wrap;
198
+ }
199
+
200
+ .modal-header .modal-title {
201
+ margin-bottom: 0;
202
+ }
203
+
204
+ .modal-header-actions {
205
+ display: inline-flex;
206
+ align-items: center;
207
+ gap: 8px;
208
+ margin-left: auto;
209
+ }
210
+
211
+ .btn-modal-copy {
212
+ padding: 6px 12px;
213
+ white-space: nowrap;
214
+ flex-shrink: 0;
215
+ }
216
+
217
+ .form-group {
218
+ margin-bottom: var(--spacing-sm);
219
+ }
220
+
221
+ .form-label {
222
+ display: block;
223
+ font-size: var(--font-size-secondary);
224
+ font-weight: var(--font-weight-secondary);
225
+ color: var(--color-text-secondary);
226
+ margin-bottom: 7px;
227
+ letter-spacing: 0.01em;
228
+ }
229
+
230
+ .form-input {
231
+ width: 100%;
232
+ padding: 13px var(--spacing-sm);
233
+ border: 1.5px solid var(--color-border-soft);
234
+ border-radius: var(--radius-sm);
235
+ font-size: var(--font-size-body);
236
+ background-color: var(--color-surface-alt);
237
+ color: var(--color-text-primary);
238
+ outline: none;
239
+ transition: all var(--transition-fast) var(--ease-spring);
240
+ font-family: var(--font-family-body);
241
+ box-shadow: inset 0 1px 2px rgba(31, 26, 23, 0.04);
242
+ }
243
+
244
+ .form-input:hover {
245
+ border-color: var(--color-border-strong);
246
+ }
247
+
248
+ .form-input:focus {
249
+ border-color: var(--color-brand);
250
+ background-color: var(--color-surface);
251
+ box-shadow: var(--shadow-input-focus);
252
+ }
253
+
254
+ .form-input.invalid,
255
+ .form-input.invalid:hover,
256
+ .form-input.invalid:focus {
257
+ border-color: var(--color-error);
258
+ }
259
+
260
+ .form-input.invalid:focus {
261
+ box-shadow: 0 0 0 3px rgba(196, 69, 54, 0.14);
262
+ }
263
+
264
+ .form-input::placeholder {
265
+ color: var(--color-text-tertiary);
266
+ opacity: 0.7;
267
+ }
268
+
269
+ .input-with-toggle {
270
+ position: relative;
271
+ display: flex;
272
+ align-items: center;
273
+ }
274
+
275
+ .input-with-toggle .form-input {
276
+ width: 100%;
277
+ padding-right: 36px;
278
+ }
279
+
280
+ .input-toggle-btn {
281
+ position: absolute;
282
+ right: 6px;
283
+ display: flex;
284
+ align-items: center;
285
+ justify-content: center;
286
+ width: 28px;
287
+ height: 28px;
288
+ padding: 0;
289
+ border: none;
290
+ border-radius: var(--radius-sm);
291
+ background: transparent;
292
+ color: var(--color-text-secondary);
293
+ cursor: pointer;
294
+ transition: color var(--transition-fast);
295
+ }
296
+
297
+ .input-toggle-btn:hover {
298
+ color: var(--color-text-primary);
299
+ background: var(--color-surface-alt);
300
+ }
301
+
302
+ .form-select {
303
+ width: 100%;
304
+ min-height: 44px;
305
+ padding: 10px 40px 10px 12px;
306
+ border: 1.5px solid var(--color-border-soft);
307
+ border-radius: var(--radius-sm);
308
+ font-size: var(--font-size-secondary);
309
+ font-weight: var(--font-weight-secondary);
310
+ background-color: var(--color-surface-alt);
311
+ color: var(--color-text-primary);
312
+ outline: none;
313
+ transition: all var(--transition-fast) var(--ease-spring);
314
+ font-family: var(--font-family-body);
315
+ box-shadow: inset 0 1px 2px rgba(31, 26, 23, 0.04);
316
+ cursor: pointer;
317
+ appearance: none;
318
+ -webkit-appearance: none;
319
+ -moz-appearance: none;
320
+ 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.6' stroke-linecap='round' stroke-linejoin='round' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
321
+ background-repeat: no-repeat;
322
+ background-position: right 14px center;
323
+ background-size: 12px;
324
+ }
325
+
326
+ .form-select:hover {
327
+ border-color: var(--color-border-strong);
328
+ background-color: var(--color-surface);
329
+ }
330
+
331
+ .form-select:focus {
332
+ border-color: var(--color-brand);
333
+ background-color: var(--color-surface);
334
+ box-shadow: var(--shadow-input-focus);
335
+ }
336
+
337
+ .form-select:disabled {
338
+ background: linear-gradient(to right, var(--color-bg) 0%, rgba(247, 241, 232, 0.5) 100%);
339
+ color: var(--color-text-tertiary);
340
+ cursor: not-allowed;
341
+ border-color: transparent;
342
+ }
343
+
344
+ .template-editor {
345
+ min-height: min(60vh, 520px);
346
+ max-height: min(65vh, 620px);
347
+ resize: vertical;
348
+ overflow: auto;
349
+ white-space: pre;
350
+ font-family: var(--font-family-mono);
351
+ font-size: 13px;
352
+ line-height: 1.45;
353
+ }
354
+
355
+ .template-editor-warning {
356
+ margin-top: 8px;
357
+ color: #8d5b31;
358
+ font-size: var(--font-size-caption);
359
+ line-height: 1.4;
360
+ }
361
+
362
+
363
+ .agents-diff-hint {
364
+ margin-top: 6px;
365
+ color: var(--color-text-tertiary);
366
+ font-size: var(--font-size-caption);
367
+ }
368
+
369
+ .agents-diff-save-alert {
370
+ margin-bottom: 8px;
371
+ padding: 8px 10px;
372
+ border-radius: var(--radius-sm);
373
+ border: 1px solid rgba(238, 178, 90, 0.45);
374
+ background: rgba(255, 236, 204, 0.72);
375
+ color: #8d5b31;
376
+ font-size: var(--font-size-caption);
377
+ font-weight: var(--font-weight-secondary);
378
+ }
379
+
380
+ .agents-diff-summary {
381
+ display: flex;
382
+ align-items: center;
383
+ gap: 8px;
384
+ margin-bottom: 8px;
385
+ font-size: var(--font-size-caption);
386
+ color: var(--color-text-tertiary);
387
+ }
388
+
389
+ .agents-diff-stat {
390
+ display: inline-flex;
391
+ align-items: center;
392
+ gap: 4px;
393
+ padding: 2px 8px;
394
+ border-radius: 999px;
395
+ border: 1px solid transparent;
396
+ font-weight: var(--font-weight-secondary);
397
+ }
398
+
399
+ .agents-diff-stat.add {
400
+ color: #2b6a3b;
401
+ background: rgba(57, 181, 97, 0.12);
402
+ border-color: rgba(57, 181, 97, 0.2);
403
+ }
404
+
405
+ .agents-diff-stat.del {
406
+ color: #8a2f36;
407
+ background: rgba(220, 95, 108, 0.12);
408
+ border-color: rgba(220, 95, 108, 0.2);
409
+ }
410
+
411
+
412
+ .agents-diff-empty {
413
+ padding: 10px 12px;
414
+ font-size: var(--font-size-caption);
415
+ color: var(--color-text-tertiary);
416
+ border: 1px dashed var(--color-border-soft);
417
+ border-radius: var(--radius-sm);
418
+ background: rgba(255, 255, 255, 0.6);
419
+ }
420
+
421
+ .agents-diff-view {
422
+ border: 1px solid var(--color-border-soft);
423
+ border-radius: var(--radius-sm);
424
+ background: rgba(255, 255, 255, 0.7);
425
+ font-family: var(--font-family-mono);
426
+ font-size: 12px;
427
+ line-height: 1.55;
428
+ max-height: min(32vh, 280px);
429
+ overflow: auto;
430
+ }
431
+
432
+
433
+ .agents-diff-editor {
434
+ min-height: min(60vh, 520px);
435
+ max-height: min(65vh, 620px);
436
+ }
437
+
438
+ .agents-modal .template-editor,
439
+ .agents-modal .agents-diff-editor {
440
+ min-height: min(52vh, 460px);
441
+ max-height: min(58vh, 540px);
442
+ }
443
+
444
+ .agents-diff-line {
445
+ display: grid;
446
+ grid-template-columns: 16px 1fr;
447
+ gap: 8px;
448
+ padding: 2px 10px;
449
+ align-items: start;
450
+ }
451
+
452
+ .agents-diff-line + .agents-diff-line {
453
+ border-top: none;
454
+ }
455
+
456
+ .agents-diff-line.add {
457
+ background: rgba(57, 181, 97, 0.08);
458
+ }
459
+
460
+ .agents-diff-line.del {
461
+ background: rgba(220, 95, 108, 0.1);
462
+ }
463
+
464
+ .agents-diff-line.context {
465
+ background: transparent;
466
+ }
467
+
468
+
469
+ .agents-diff-line-sign {
470
+ text-align: center;
471
+ color: var(--color-text-tertiary);
472
+ min-height: 20px;
473
+ }
474
+
475
+ .agents-diff-line-text {
476
+ white-space: pre-wrap;
477
+ word-break: break-word;
478
+ color: var(--color-text-primary);
479
+ }
480
+
481
+ .form-input:disabled,
482
+ .form-input[readonly] {
483
+ background: linear-gradient(to right, var(--color-bg) 0%, rgba(247, 241, 232, 0.5) 100%);
484
+ color: var(--color-text-tertiary);
485
+ cursor: not-allowed;
486
+ border-color: transparent;
487
+ }
488
+
489
+ .form-hint {
490
+ font-size: var(--font-size-caption);
491
+ color: var(--color-text-tertiary);
492
+ margin-top: 5px;
493
+ opacity: 0.8;
494
+ }
495
+
496
+ .form-hint.form-error {
497
+ color: var(--color-error);
498
+ opacity: 1;
499
+ }