codexmate 0.0.27 → 0.0.28

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 (137) hide show
  1. package/README.md +421 -421
  2. package/README.zh.md +354 -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 +1620 -1299
  7. package/cli/claude-proxy.js +1022 -1022
  8. package/cli/config-bootstrap.js +384 -384
  9. package/cli/config-health.js +338 -338
  10. package/cli/doctor-core.js +903 -903
  11. package/cli/import-skills-url.js +356 -356
  12. package/cli/openai-bridge.js +1489 -1091
  13. package/cli/openclaw-config.js +629 -629
  14. package/cli/session-convert-args.js +65 -65
  15. package/cli/session-convert-io.js +82 -82
  16. package/cli/session-convert.js +43 -43
  17. package/cli/session-usage.concurrent.js +28 -28
  18. package/cli/session-usage.js +118 -118
  19. package/cli/session-usage.models.js +176 -176
  20. package/cli/skills.js +1141 -1141
  21. package/cli/zip-commands.js +510 -510
  22. package/cli.js +15264 -15251
  23. package/lib/automation.js +404 -404
  24. package/lib/cli-file-utils.js +151 -151
  25. package/lib/cli-models-utils.js +440 -379
  26. package/lib/cli-network-utils.js +190 -190
  27. package/lib/cli-path-utils.js +85 -85
  28. package/lib/cli-session-utils.js +121 -121
  29. package/lib/cli-sessions.js +417 -417
  30. package/lib/cli-utils.js +155 -155
  31. package/lib/download-artifacts.js +92 -92
  32. package/lib/mcp-stdio.js +453 -453
  33. package/lib/task-orchestrator.js +869 -869
  34. package/lib/text-diff.js +303 -303
  35. package/lib/workflow-engine.js +340 -340
  36. package/package.json +3 -1
  37. package/plugins/README.md +20 -20
  38. package/plugins/README.zh-CN.md +20 -20
  39. package/plugins/prompt-templates/comment-polish/index.mjs +25 -25
  40. package/plugins/prompt-templates/computed.mjs +253 -253
  41. package/plugins/prompt-templates/index.mjs +8 -8
  42. package/plugins/prompt-templates/manifest.mjs +15 -15
  43. package/plugins/prompt-templates/methods.mjs +553 -619
  44. package/plugins/prompt-templates/overview.mjs +91 -90
  45. package/plugins/prompt-templates/ownership.mjs +19 -19
  46. package/plugins/prompt-templates/rule-ack/index.mjs +21 -21
  47. package/plugins/prompt-templates/storage.mjs +64 -64
  48. package/plugins/registry.mjs +16 -16
  49. package/web-ui/app.js +625 -634
  50. package/web-ui/index.html +35 -35
  51. package/web-ui/logic.agents-diff.mjs +386 -386
  52. package/web-ui/logic.claude.mjs +168 -168
  53. package/web-ui/logic.codex.mjs +56 -0
  54. package/web-ui/logic.mjs +5 -5
  55. package/web-ui/logic.runtime.mjs +128 -128
  56. package/web-ui/logic.session-convert.mjs +70 -70
  57. package/web-ui/logic.sessions.mjs +765 -765
  58. package/web-ui/modules/api.mjs +90 -90
  59. package/web-ui/modules/app.computed.dashboard.mjs +225 -171
  60. package/web-ui/modules/app.computed.index.mjs +17 -17
  61. package/web-ui/modules/app.computed.main-tabs.mjs +205 -205
  62. package/web-ui/modules/app.computed.session.mjs +994 -994
  63. package/web-ui/modules/app.constants.mjs +15 -15
  64. package/web-ui/modules/app.methods.agents.mjs +632 -632
  65. package/web-ui/modules/app.methods.claude-config.mjs +190 -184
  66. package/web-ui/modules/app.methods.codex-config.mjs +892 -860
  67. package/web-ui/modules/app.methods.index.mjs +92 -92
  68. package/web-ui/modules/app.methods.install.mjs +205 -205
  69. package/web-ui/modules/app.methods.navigation.mjs +743 -743
  70. package/web-ui/modules/app.methods.openclaw-core.mjs +814 -814
  71. package/web-ui/modules/app.methods.openclaw-editing.mjs +372 -372
  72. package/web-ui/modules/app.methods.openclaw-persist.mjs +369 -369
  73. package/web-ui/modules/app.methods.providers.mjs +412 -404
  74. package/web-ui/modules/app.methods.runtime.mjs +345 -345
  75. package/web-ui/modules/app.methods.session-actions.mjs +593 -596
  76. package/web-ui/modules/app.methods.session-browser.mjs +984 -989
  77. package/web-ui/modules/app.methods.session-timeline.mjs +479 -479
  78. package/web-ui/modules/app.methods.session-trash.mjs +439 -439
  79. package/web-ui/modules/app.methods.startup-claude.mjs +533 -526
  80. package/web-ui/modules/app.methods.task-orchestration.mjs +556 -556
  81. package/web-ui/modules/config-mode.computed.mjs +124 -124
  82. package/web-ui/modules/config-template-confirm-pref.mjs +33 -33
  83. package/web-ui/modules/i18n.dict.mjs +2109 -2131
  84. package/web-ui/modules/i18n.mjs +56 -56
  85. package/web-ui/modules/plugins.computed.mjs +3 -3
  86. package/web-ui/modules/plugins.methods.mjs +3 -3
  87. package/web-ui/modules/plugins.storage.mjs +11 -11
  88. package/web-ui/modules/provider-url-display.mjs +17 -0
  89. package/web-ui/modules/sessions-filters-url.mjs +85 -85
  90. package/web-ui/modules/skills.computed.mjs +107 -107
  91. package/web-ui/modules/skills.methods.mjs +481 -481
  92. package/web-ui/partials/index/layout-footer.html +13 -13
  93. package/web-ui/partials/index/layout-header.html +475 -475
  94. package/web-ui/partials/index/modal-config-template-agents.html +174 -174
  95. package/web-ui/partials/index/modal-confirm-toast.html +32 -32
  96. package/web-ui/partials/index/modal-health-check.html +45 -45
  97. package/web-ui/partials/index/modal-openclaw-config.html +280 -280
  98. package/web-ui/partials/index/modal-skills.html +200 -200
  99. package/web-ui/partials/index/modals-basic.html +165 -165
  100. package/web-ui/partials/index/panel-config-claude.html +188 -187
  101. package/web-ui/partials/index/panel-config-codex.html +312 -283
  102. package/web-ui/partials/index/panel-config-openclaw.html +83 -83
  103. package/web-ui/partials/index/panel-dashboard.html +186 -186
  104. package/web-ui/partials/index/panel-docs.html +147 -147
  105. package/web-ui/partials/index/panel-market.html +177 -177
  106. package/web-ui/partials/index/panel-orchestration.html +391 -391
  107. package/web-ui/partials/index/panel-plugins.html +253 -279
  108. package/web-ui/partials/index/panel-sessions.html +316 -326
  109. package/web-ui/partials/index/panel-settings.html +253 -274
  110. package/web-ui/partials/index/panel-usage.html +371 -371
  111. package/web-ui/res/json5.min.js +1 -1
  112. package/web-ui/res/vue.global.prod.js +13 -13
  113. package/web-ui/session-helpers.mjs +576 -576
  114. package/web-ui/source-bundle.cjs +233 -233
  115. package/web-ui/styles/base-theme.css +281 -268
  116. package/web-ui/styles/controls-forms.css +422 -423
  117. package/web-ui/styles/dashboard.css +274 -274
  118. package/web-ui/styles/docs-panel.css +247 -247
  119. package/web-ui/styles/feedback.css +108 -108
  120. package/web-ui/styles/health-check-dialog.css +144 -144
  121. package/web-ui/styles/layout-shell.css +606 -603
  122. package/web-ui/styles/modals-core.css +466 -464
  123. package/web-ui/styles/navigation-panels.css +391 -390
  124. package/web-ui/styles/openclaw-structured.css +266 -266
  125. package/web-ui/styles/plugins-panel.css +523 -523
  126. package/web-ui/styles/responsive.css +454 -454
  127. package/web-ui/styles/sessions-list.css +419 -415
  128. package/web-ui/styles/sessions-preview.css +411 -411
  129. package/web-ui/styles/sessions-toolbar-trash.css +330 -330
  130. package/web-ui/styles/sessions-usage.css +1040 -1040
  131. package/web-ui/styles/settings-panel.css +185 -185
  132. package/web-ui/styles/skills-list.css +303 -303
  133. package/web-ui/styles/skills-market.css +406 -406
  134. package/web-ui/styles/task-orchestration.css +822 -822
  135. package/web-ui/styles/titles-cards.css +472 -408
  136. package/web-ui/styles.css +21 -21
  137. package/web-ui.html +17 -17
@@ -1,523 +1,523 @@
1
- .plugins-layout {
2
- display: grid;
3
- grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
4
- gap: var(--spacing-sm);
5
- align-items: start;
6
- }
7
-
8
- .plugins-sidebar {
9
- border: 1px solid rgba(160, 145, 130, 0.22);
10
- border-radius: var(--radius-md);
11
- background: linear-gradient(to bottom, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.7) 100%);
12
- box-shadow: var(--shadow-subtle);
13
- padding: var(--spacing-sm);
14
- min-width: 0;
15
- }
16
-
17
- .plugins-sidebar-header {
18
- margin-bottom: var(--spacing-sm);
19
- align-items: flex-start;
20
- gap: var(--spacing-xs);
21
- }
22
-
23
- .plugins-panel-note {
24
- margin-top: 4px;
25
- font-size: var(--font-size-caption);
26
- color: var(--color-text-tertiary);
27
- line-height: 1.45;
28
- }
29
-
30
- .plugins-list {
31
- display: grid;
32
- gap: 10px;
33
- }
34
-
35
- .plugins-item {
36
- width: 100%;
37
- text-align: left;
38
- display: flex;
39
- justify-content: space-between;
40
- align-items: flex-start;
41
- gap: var(--spacing-xs);
42
- padding: 12px 12px;
43
- border-radius: var(--radius-sm);
44
- border: 1px solid rgba(160, 145, 130, 0.18);
45
- background: rgba(255, 255, 255, 0.6);
46
- cursor: pointer;
47
- transition: border-color var(--transition-fast) var(--ease-spring), background var(--transition-fast) var(--ease-spring), transform var(--transition-fast) var(--ease-spring);
48
- }
49
-
50
- .plugins-item:hover {
51
- transform: translateY(-1px);
52
- border-color: rgba(208, 88, 58, 0.28);
53
- }
54
-
55
- .plugins-item.active {
56
- border-color: rgba(208, 88, 58, 0.45);
57
- background: linear-gradient(to bottom, rgba(255, 243, 236, 0.96) 0%, rgba(255, 232, 220, 0.78) 100%);
58
- }
59
-
60
- .plugins-item-main {
61
- min-width: 0;
62
- }
63
-
64
- .plugins-item-title {
65
- font-size: var(--font-size-body);
66
- font-weight: var(--font-weight-secondary);
67
- color: var(--color-text-secondary);
68
- }
69
-
70
- .plugins-item-meta {
71
- margin-top: 4px;
72
- font-size: var(--font-size-caption);
73
- color: var(--color-text-tertiary);
74
- line-height: 1.45;
75
- overflow-wrap: anywhere;
76
- }
77
-
78
- .plugins-main {
79
- min-width: 0;
80
- }
81
-
82
- .plugins-panel {
83
- border: 1px solid rgba(160, 145, 130, 0.22);
84
- border-radius: var(--radius-md);
85
- background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.76) 100%);
86
- box-shadow: var(--shadow-subtle);
87
- padding: var(--spacing-sm);
88
- }
89
-
90
- .plugins-panel-head {
91
- margin-bottom: var(--spacing-sm);
92
- }
93
-
94
- .plugins-panel-title {
95
- font-size: var(--font-size-title);
96
- font-weight: var(--font-weight-title);
97
- color: var(--color-text-primary);
98
- letter-spacing: -0.01em;
99
- }
100
-
101
- .plugins-panel-subtitle {
102
- margin-top: 6px;
103
- font-size: var(--font-size-caption);
104
- color: var(--color-text-tertiary);
105
- line-height: 1.55;
106
- }
107
-
108
- .plugins-panel-subtitle code {
109
- font-family: var(--font-family-mono);
110
- font-size: 0.95em;
111
- }
112
-
113
- /* Prompt templates */
114
- .prompt-templates-modebar {
115
- display: inline-flex;
116
- gap: 8px;
117
- padding: 6px;
118
- border: 1px solid rgba(160, 145, 130, 0.18);
119
- border-radius: 999px;
120
- background: rgba(255, 255, 255, 0.62);
121
- margin-bottom: var(--spacing-sm);
122
- }
123
-
124
- .mode-pill {
125
- border: 0;
126
- border-radius: 999px;
127
- padding: 8px 12px;
128
- font-size: var(--font-size-caption);
129
- letter-spacing: 0.01em;
130
- cursor: pointer;
131
- background: transparent;
132
- color: var(--color-text-tertiary);
133
- transition: background var(--transition-fast) var(--ease-spring), color var(--transition-fast) var(--ease-spring), transform var(--transition-fast) var(--ease-spring);
134
- }
135
-
136
- .mode-pill.active {
137
- background: linear-gradient(to bottom, rgba(201, 94, 75, 0.18) 0%, rgba(201, 94, 75, 0.08) 100%);
138
- color: var(--color-text-secondary);
139
- }
140
-
141
- .mode-pill:hover {
142
- transform: translateY(-1px);
143
- }
144
-
145
- .prompt-compose {
146
- display: grid;
147
- gap: var(--spacing-sm);
148
- }
149
-
150
- .prompt-compose-command-row {
151
- display: flex;
152
- gap: 10px;
153
- flex-wrap: wrap;
154
- align-items: center;
155
- }
156
-
157
- .prompt-compose-command-input {
158
- flex: 1;
159
- min-width: 240px;
160
- background-color: var(--color-surface);
161
- border-color: rgba(163, 146, 134, 0.18);
162
- box-shadow: inset 0 1px 2px rgba(31, 26, 23, 0.03);
163
- }
164
-
165
- .prompt-compose-form {
166
- padding: 12px;
167
- border-radius: var(--radius-md);
168
- border: 1px solid rgba(160, 145, 130, 0.18);
169
- background: rgba(255, 255, 255, 0.62);
170
- display: grid;
171
- gap: 10px;
172
- }
173
-
174
- .prompt-compose-template-select {
175
- width: 100%;
176
- }
177
-
178
- .prompt-compose-code-input {
179
- font-family: var(--font-family-mono);
180
- font-size: var(--font-size-caption);
181
- line-height: 1.55;
182
- white-space: pre;
183
- }
184
-
185
- .prompt-compose-actions {
186
- display: flex;
187
- gap: 8px;
188
- flex-wrap: wrap;
189
- justify-content: flex-end;
190
- }
191
-
192
- .prompt-compose-modal {
193
- position: fixed;
194
- inset: 0;
195
- z-index: 999;
196
- display: grid;
197
- place-items: center;
198
- }
199
-
200
- .prompt-compose-modal-backdrop {
201
- position: absolute;
202
- inset: 0;
203
- background: rgba(20, 16, 12, 0.45);
204
- backdrop-filter: blur(2px);
205
- }
206
-
207
- .prompt-compose-modal-dialog {
208
- position: relative;
209
- width: min(760px, calc(100vw - 32px));
210
- max-height: min(72vh, 640px);
211
- overflow: hidden;
212
- border-radius: calc(var(--radius-md) + 4px);
213
- border: 1px solid rgba(210, 180, 160, 0.35);
214
- background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 100%);
215
- box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
216
- display: grid;
217
- grid-template-rows: auto auto minmax(0, 1fr);
218
- padding: 14px;
219
- }
220
-
221
- .prompt-compose-modal-head {
222
- display: flex;
223
- gap: 10px;
224
- align-items: center;
225
- justify-content: space-between;
226
- margin-bottom: 12px;
227
- }
228
-
229
- .prompt-compose-modal-title {
230
- font-size: var(--font-size-secondary);
231
- font-weight: var(--font-weight-secondary);
232
- color: var(--color-text-secondary);
233
- }
234
-
235
- .prompt-compose-modal-search {
236
- margin-bottom: 12px;
237
- }
238
-
239
- .prompt-compose-picker-list {
240
- display: grid;
241
- gap: 10px;
242
- overflow: auto;
243
- padding-right: 2px;
244
- }
245
-
246
- .prompt-compose-picker-item {
247
- width: 100%;
248
- text-align: left;
249
- border: 1px dashed var(--color-border-soft);
250
- border-radius: var(--radius-sm);
251
- background: rgba(255, 255, 255, 0.58);
252
- padding: 12px;
253
- display: flex;
254
- justify-content: space-between;
255
- align-items: flex-start;
256
- gap: 10px;
257
- cursor: pointer;
258
- transition: border-color var(--transition-fast) var(--ease-spring), background var(--transition-fast) var(--ease-spring);
259
- }
260
-
261
- .prompt-compose-picker-item:hover {
262
- border-color: rgba(201, 94, 75, 0.55);
263
- }
264
-
265
- .prompt-compose-picker-item-title {
266
- font-size: var(--font-size-secondary);
267
- font-weight: var(--font-weight-secondary);
268
- color: var(--color-text-secondary);
269
- }
270
-
271
- .prompt-compose-picker-item-meta {
272
- margin-top: 6px;
273
- display: inline-flex;
274
- gap: 8px;
275
- align-items: center;
276
- color: var(--color-text-tertiary);
277
- font-size: var(--font-size-caption);
278
- }
279
-
280
- .prompt-compose-picker-item-meta .mono {
281
- font-family: var(--font-family-mono);
282
- }
283
-
284
- .prompt-compose-workspace {
285
- display: grid;
286
- gap: var(--spacing-sm);
287
- }
288
-
289
- .prompt-compose-selected {
290
- padding: 12px;
291
- border-radius: var(--radius-md);
292
- border: 1px solid rgba(160, 145, 130, 0.18);
293
- background: rgba(255, 255, 255, 0.62);
294
- }
295
-
296
- .prompt-compose-selected-title {
297
- font-size: var(--font-size-body);
298
- font-weight: var(--font-weight-secondary);
299
- color: var(--color-text-secondary);
300
- }
301
-
302
- .prompt-compose-selected-meta {
303
- margin-top: 6px;
304
- font-size: var(--font-size-caption);
305
- color: var(--color-text-tertiary);
306
- line-height: 1.5;
307
- }
308
-
309
- .prompt-compose-canvas {
310
- padding: 12px;
311
- border-radius: var(--radius-md);
312
- border: 1px solid rgba(160, 145, 130, 0.18);
313
- background: rgba(255, 255, 255, 0.62);
314
- font-family: var(--font-family-mono);
315
- font-size: var(--font-size-caption);
316
- line-height: 1.6;
317
- white-space: pre-wrap;
318
- overflow-wrap: anywhere;
319
- }
320
-
321
- .prompt-fragment-text {
322
- color: var(--color-text-secondary);
323
- }
324
-
325
- .prompt-fragment-var {
326
- display: inline-block;
327
- vertical-align: baseline;
328
- min-width: 120px;
329
- max-width: 100%;
330
- padding: 6px 8px;
331
- margin: 0 4px;
332
- border-radius: 10px;
333
- border: 1px solid rgba(201, 94, 75, 0.38);
334
- background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.78) 100%);
335
- color: var(--color-text-primary);
336
- font-family: var(--font-family-mono);
337
- font-size: var(--font-size-caption);
338
- line-height: 1.4;
339
- resize: vertical;
340
- }
341
-
342
- .prompt-fragment-var:focus {
343
- outline: none;
344
- box-shadow: 0 0 0 3px rgba(201, 94, 75, 0.16);
345
- }
346
-
347
- .prompt-templates-grid {
348
- display: grid;
349
- grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
350
- gap: var(--spacing-sm);
351
- align-items: start;
352
- }
353
-
354
- .prompt-templates-pane {
355
- min-width: 0;
356
- }
357
-
358
- .prompt-templates-toolbar {
359
- display: flex;
360
- gap: 10px;
361
- flex-wrap: wrap;
362
- align-items: center;
363
- margin-bottom: 10px;
364
- }
365
-
366
- .prompt-templates-toolbar .form-input {
367
- flex: 1;
368
- min-width: 200px;
369
- }
370
-
371
- .prompt-templates-list {
372
- display: grid;
373
- gap: 10px;
374
- max-height: min(62vh, 560px);
375
- overflow: auto;
376
- padding-right: 2px;
377
- }
378
-
379
- .prompt-template-item {
380
- border: 1px dashed var(--color-border-soft);
381
- border-radius: var(--radius-sm);
382
- background: rgba(255, 255, 255, 0.58);
383
- padding: 12px;
384
- display: flex;
385
- justify-content: space-between;
386
- align-items: flex-start;
387
- gap: 10px;
388
- cursor: pointer;
389
- transition: border-color var(--transition-fast) var(--ease-spring), background var(--transition-fast) var(--ease-spring);
390
- }
391
-
392
- .prompt-template-item.active {
393
- border-color: rgba(201, 94, 75, 0.55);
394
- background: linear-gradient(to bottom, rgba(201, 94, 75, 0.09) 0%, rgba(201, 94, 75, 0.03) 100%);
395
- }
396
-
397
- .prompt-template-item-title {
398
- font-size: var(--font-size-secondary);
399
- font-weight: var(--font-weight-secondary);
400
- color: var(--color-text-secondary);
401
- }
402
-
403
- .prompt-template-item-meta {
404
- margin-top: 6px;
405
- display: inline-flex;
406
- gap: 8px;
407
- align-items: center;
408
- color: var(--color-text-tertiary);
409
- font-size: var(--font-size-caption);
410
- }
411
-
412
- .prompt-template-item-meta .mono {
413
- font-family: var(--font-family-mono);
414
- }
415
-
416
- .prompt-editor-head {
417
- display: flex;
418
- flex-direction: column;
419
- gap: 10px;
420
- padding: 12px;
421
- border-radius: var(--radius-md);
422
- border: 1px solid rgba(160, 145, 130, 0.18);
423
- background: rgba(255, 255, 255, 0.62);
424
- margin-bottom: var(--spacing-sm);
425
- }
426
-
427
- .prompt-editor-title-row {
428
- display: flex;
429
- gap: 10px;
430
- align-items: center;
431
- flex-wrap: wrap;
432
- }
433
-
434
- .prompt-editor-name {
435
- flex: 1;
436
- min-width: 220px;
437
- }
438
-
439
- .prompt-editor-actions {
440
- display: flex;
441
- gap: 8px;
442
- flex-wrap: wrap;
443
- align-items: center;
444
- }
445
-
446
- .prompt-editor-textarea,
447
- .prompt-preview-textarea {
448
- font-family: var(--font-family-mono);
449
- font-size: var(--font-size-caption);
450
- line-height: 1.55;
451
- white-space: pre;
452
- }
453
-
454
- .prompt-vars-block,
455
- .prompt-preview-block {
456
- margin-top: var(--spacing-sm);
457
- padding: 12px;
458
- border-radius: var(--radius-md);
459
- border: 1px solid rgba(160, 145, 130, 0.18);
460
- background: rgba(255, 255, 255, 0.62);
461
- }
462
-
463
- .prompt-vars-head {
464
- display: flex;
465
- justify-content: space-between;
466
- align-items: flex-start;
467
- gap: 10px;
468
- margin-bottom: 10px;
469
- }
470
-
471
- .prompt-vars-title {
472
- font-size: var(--font-size-body);
473
- font-weight: var(--font-weight-secondary);
474
- color: var(--color-text-secondary);
475
- }
476
-
477
- .prompt-vars-empty {
478
- font-size: var(--font-size-caption);
479
- color: var(--color-text-tertiary);
480
- padding: 6px 0;
481
- }
482
-
483
- .prompt-vars-grid {
484
- display: grid;
485
- grid-template-columns: repeat(2, minmax(0, 1fr));
486
- gap: 10px;
487
- }
488
-
489
- .prompt-var-row {
490
- display: grid;
491
- grid-template-columns: minmax(90px, 140px) minmax(0, 1fr);
492
- gap: 10px;
493
- align-items: center;
494
- }
495
-
496
- .prompt-var-label {
497
- color: var(--color-text-tertiary);
498
- font-size: var(--font-size-caption);
499
- }
500
-
501
- .prompt-var-input {
502
- min-width: 0;
503
- }
504
-
505
- .prompt-var-input.is-missing {
506
- border-color: var(--color-error);
507
- box-shadow: 0 0 0 1px rgba(196, 69, 54, 0.18);
508
- }
509
-
510
- @media (max-width: 980px) {
511
- .plugins-layout {
512
- grid-template-columns: 1fr;
513
- }
514
- .prompt-templates-grid {
515
- grid-template-columns: 1fr;
516
- }
517
- .prompt-vars-grid {
518
- grid-template-columns: 1fr;
519
- }
520
- .prompt-var-row {
521
- grid-template-columns: 1fr;
522
- }
523
- }
1
+ .plugins-layout {
2
+ display: grid;
3
+ grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
4
+ gap: var(--spacing-sm);
5
+ align-items: start;
6
+ }
7
+
8
+ .plugins-sidebar {
9
+ border: 1px solid rgba(160, 145, 130, 0.22);
10
+ border-radius: var(--radius-md);
11
+ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.7) 100%);
12
+ box-shadow: var(--shadow-subtle);
13
+ padding: var(--spacing-sm);
14
+ min-width: 0;
15
+ }
16
+
17
+ .plugins-sidebar-header {
18
+ margin-bottom: var(--spacing-sm);
19
+ align-items: flex-start;
20
+ gap: var(--spacing-xs);
21
+ }
22
+
23
+ .plugins-panel-note {
24
+ margin-top: 4px;
25
+ font-size: var(--font-size-caption);
26
+ color: var(--color-text-tertiary);
27
+ line-height: 1.45;
28
+ }
29
+
30
+ .plugins-list {
31
+ display: grid;
32
+ gap: 10px;
33
+ }
34
+
35
+ .plugins-item {
36
+ width: 100%;
37
+ text-align: left;
38
+ display: flex;
39
+ justify-content: space-between;
40
+ align-items: flex-start;
41
+ gap: var(--spacing-xs);
42
+ padding: 12px 12px;
43
+ border-radius: var(--radius-sm);
44
+ border: 1px solid rgba(160, 145, 130, 0.18);
45
+ background: rgba(255, 255, 255, 0.6);
46
+ cursor: pointer;
47
+ transition: border-color var(--transition-fast) var(--ease-spring), background var(--transition-fast) var(--ease-spring), transform var(--transition-fast) var(--ease-spring);
48
+ }
49
+
50
+ .plugins-item:hover {
51
+ transform: translateY(-1px);
52
+ border-color: rgba(208, 88, 58, 0.28);
53
+ }
54
+
55
+ .plugins-item.active {
56
+ border-color: rgba(208, 88, 58, 0.45);
57
+ background: linear-gradient(to bottom, rgba(255, 243, 236, 0.96) 0%, rgba(255, 232, 220, 0.78) 100%);
58
+ }
59
+
60
+ .plugins-item-main {
61
+ min-width: 0;
62
+ }
63
+
64
+ .plugins-item-title {
65
+ font-size: var(--font-size-body);
66
+ font-weight: var(--font-weight-secondary);
67
+ color: var(--color-text-secondary);
68
+ }
69
+
70
+ .plugins-item-meta {
71
+ margin-top: 4px;
72
+ font-size: var(--font-size-caption);
73
+ color: var(--color-text-tertiary);
74
+ line-height: 1.45;
75
+ overflow-wrap: anywhere;
76
+ }
77
+
78
+ .plugins-main {
79
+ min-width: 0;
80
+ }
81
+
82
+ .plugins-panel {
83
+ border: 1px solid rgba(160, 145, 130, 0.22);
84
+ border-radius: var(--radius-md);
85
+ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.76) 100%);
86
+ box-shadow: var(--shadow-subtle);
87
+ padding: var(--spacing-sm);
88
+ }
89
+
90
+ .plugins-panel-head {
91
+ margin-bottom: var(--spacing-sm);
92
+ }
93
+
94
+ .plugins-panel-title {
95
+ font-size: var(--font-size-title);
96
+ font-weight: var(--font-weight-title);
97
+ color: var(--color-text-primary);
98
+ letter-spacing: -0.01em;
99
+ }
100
+
101
+ .plugins-panel-subtitle {
102
+ margin-top: 6px;
103
+ font-size: var(--font-size-caption);
104
+ color: var(--color-text-tertiary);
105
+ line-height: 1.55;
106
+ }
107
+
108
+ .plugins-panel-subtitle code {
109
+ font-family: var(--font-family-mono);
110
+ font-size: 0.95em;
111
+ }
112
+
113
+ /* Prompt templates */
114
+ .prompt-templates-modebar {
115
+ display: inline-flex;
116
+ gap: 8px;
117
+ padding: 6px;
118
+ border: 1px solid rgba(160, 145, 130, 0.18);
119
+ border-radius: 999px;
120
+ background: rgba(255, 255, 255, 0.62);
121
+ margin-bottom: var(--spacing-sm);
122
+ }
123
+
124
+ .mode-pill {
125
+ border: 0;
126
+ border-radius: 999px;
127
+ padding: 8px 12px;
128
+ font-size: var(--font-size-caption);
129
+ letter-spacing: 0.01em;
130
+ cursor: pointer;
131
+ background: transparent;
132
+ color: var(--color-text-tertiary);
133
+ transition: background var(--transition-fast) var(--ease-spring), color var(--transition-fast) var(--ease-spring), transform var(--transition-fast) var(--ease-spring);
134
+ }
135
+
136
+ .mode-pill.active {
137
+ background: linear-gradient(to bottom, rgba(201, 94, 75, 0.18) 0%, rgba(201, 94, 75, 0.08) 100%);
138
+ color: var(--color-text-secondary);
139
+ }
140
+
141
+ .mode-pill:hover {
142
+ transform: translateY(-1px);
143
+ }
144
+
145
+ .prompt-compose {
146
+ display: grid;
147
+ gap: var(--spacing-sm);
148
+ }
149
+
150
+ .prompt-compose-command-row {
151
+ display: flex;
152
+ gap: 10px;
153
+ flex-wrap: wrap;
154
+ align-items: center;
155
+ }
156
+
157
+ .prompt-compose-command-input {
158
+ flex: 1;
159
+ min-width: 240px;
160
+ background-color: var(--color-surface);
161
+ border-color: rgba(163, 146, 134, 0.18);
162
+ box-shadow: inset 0 1px 2px rgba(31, 26, 23, 0.03);
163
+ }
164
+
165
+ .prompt-compose-form {
166
+ padding: 12px;
167
+ border-radius: var(--radius-md);
168
+ border: 1px solid rgba(160, 145, 130, 0.18);
169
+ background: rgba(255, 255, 255, 0.62);
170
+ display: grid;
171
+ gap: 10px;
172
+ }
173
+
174
+ .prompt-compose-template-select {
175
+ width: 100%;
176
+ }
177
+
178
+ .prompt-compose-code-input {
179
+ font-family: var(--font-family-mono);
180
+ font-size: var(--font-size-caption);
181
+ line-height: 1.55;
182
+ white-space: pre;
183
+ }
184
+
185
+ .prompt-compose-actions {
186
+ display: flex;
187
+ gap: 8px;
188
+ flex-wrap: wrap;
189
+ justify-content: flex-end;
190
+ }
191
+
192
+ .prompt-compose-modal {
193
+ position: fixed;
194
+ inset: 0;
195
+ z-index: 999;
196
+ display: grid;
197
+ place-items: center;
198
+ }
199
+
200
+ .prompt-compose-modal-backdrop {
201
+ position: absolute;
202
+ inset: 0;
203
+ background: rgba(20, 16, 12, 0.45);
204
+ backdrop-filter: blur(2px);
205
+ }
206
+
207
+ .prompt-compose-modal-dialog {
208
+ position: relative;
209
+ width: min(760px, calc(100vw - 32px));
210
+ max-height: min(72vh, 640px);
211
+ overflow: hidden;
212
+ border-radius: calc(var(--radius-md) + 4px);
213
+ border: 1px solid rgba(210, 180, 160, 0.35);
214
+ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 100%);
215
+ box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
216
+ display: grid;
217
+ grid-template-rows: auto auto minmax(0, 1fr);
218
+ padding: 14px;
219
+ }
220
+
221
+ .prompt-compose-modal-head {
222
+ display: flex;
223
+ gap: 10px;
224
+ align-items: center;
225
+ justify-content: space-between;
226
+ margin-bottom: 12px;
227
+ }
228
+
229
+ .prompt-compose-modal-title {
230
+ font-size: var(--font-size-secondary);
231
+ font-weight: var(--font-weight-secondary);
232
+ color: var(--color-text-secondary);
233
+ }
234
+
235
+ .prompt-compose-modal-search {
236
+ margin-bottom: 12px;
237
+ }
238
+
239
+ .prompt-compose-picker-list {
240
+ display: grid;
241
+ gap: 10px;
242
+ overflow: auto;
243
+ padding-right: 2px;
244
+ }
245
+
246
+ .prompt-compose-picker-item {
247
+ width: 100%;
248
+ text-align: left;
249
+ border: 1px dashed var(--color-border-soft);
250
+ border-radius: var(--radius-sm);
251
+ background: rgba(255, 255, 255, 0.58);
252
+ padding: 12px;
253
+ display: flex;
254
+ justify-content: space-between;
255
+ align-items: flex-start;
256
+ gap: 10px;
257
+ cursor: pointer;
258
+ transition: border-color var(--transition-fast) var(--ease-spring), background var(--transition-fast) var(--ease-spring);
259
+ }
260
+
261
+ .prompt-compose-picker-item:hover {
262
+ border-color: rgba(201, 94, 75, 0.55);
263
+ }
264
+
265
+ .prompt-compose-picker-item-title {
266
+ font-size: var(--font-size-secondary);
267
+ font-weight: var(--font-weight-secondary);
268
+ color: var(--color-text-secondary);
269
+ }
270
+
271
+ .prompt-compose-picker-item-meta {
272
+ margin-top: 6px;
273
+ display: inline-flex;
274
+ gap: 8px;
275
+ align-items: center;
276
+ color: var(--color-text-tertiary);
277
+ font-size: var(--font-size-caption);
278
+ }
279
+
280
+ .prompt-compose-picker-item-meta .mono {
281
+ font-family: var(--font-family-mono);
282
+ }
283
+
284
+ .prompt-compose-workspace {
285
+ display: grid;
286
+ gap: var(--spacing-sm);
287
+ }
288
+
289
+ .prompt-compose-selected {
290
+ padding: 12px;
291
+ border-radius: var(--radius-md);
292
+ border: 1px solid rgba(160, 145, 130, 0.18);
293
+ background: rgba(255, 255, 255, 0.62);
294
+ }
295
+
296
+ .prompt-compose-selected-title {
297
+ font-size: var(--font-size-body);
298
+ font-weight: var(--font-weight-secondary);
299
+ color: var(--color-text-secondary);
300
+ }
301
+
302
+ .prompt-compose-selected-meta {
303
+ margin-top: 6px;
304
+ font-size: var(--font-size-caption);
305
+ color: var(--color-text-tertiary);
306
+ line-height: 1.5;
307
+ }
308
+
309
+ .prompt-compose-canvas {
310
+ padding: 12px;
311
+ border-radius: var(--radius-md);
312
+ border: 1px solid rgba(160, 145, 130, 0.18);
313
+ background: rgba(255, 255, 255, 0.62);
314
+ font-family: var(--font-family-mono);
315
+ font-size: var(--font-size-caption);
316
+ line-height: 1.6;
317
+ white-space: pre-wrap;
318
+ overflow-wrap: anywhere;
319
+ }
320
+
321
+ .prompt-fragment-text {
322
+ color: var(--color-text-secondary);
323
+ }
324
+
325
+ .prompt-fragment-var {
326
+ display: inline-block;
327
+ vertical-align: baseline;
328
+ min-width: 120px;
329
+ max-width: 100%;
330
+ padding: 6px 8px;
331
+ margin: 0 4px;
332
+ border-radius: 10px;
333
+ border: 1px solid rgba(201, 94, 75, 0.38);
334
+ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.78) 100%);
335
+ color: var(--color-text-primary);
336
+ font-family: var(--font-family-mono);
337
+ font-size: var(--font-size-caption);
338
+ line-height: 1.4;
339
+ resize: vertical;
340
+ }
341
+
342
+ .prompt-fragment-var:focus {
343
+ outline: none;
344
+ box-shadow: 0 0 0 3px rgba(201, 94, 75, 0.16);
345
+ }
346
+
347
+ .prompt-templates-grid {
348
+ display: grid;
349
+ grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
350
+ gap: var(--spacing-sm);
351
+ align-items: start;
352
+ }
353
+
354
+ .prompt-templates-pane {
355
+ min-width: 0;
356
+ }
357
+
358
+ .prompt-templates-toolbar {
359
+ display: flex;
360
+ gap: 10px;
361
+ flex-wrap: wrap;
362
+ align-items: center;
363
+ margin-bottom: 10px;
364
+ }
365
+
366
+ .prompt-templates-toolbar .form-input {
367
+ flex: 1;
368
+ min-width: 200px;
369
+ }
370
+
371
+ .prompt-templates-list {
372
+ display: grid;
373
+ gap: 10px;
374
+ max-height: min(62vh, 560px);
375
+ overflow: auto;
376
+ padding-right: 2px;
377
+ }
378
+
379
+ .prompt-template-item {
380
+ border: 1px dashed var(--color-border-soft);
381
+ border-radius: var(--radius-sm);
382
+ background: rgba(255, 255, 255, 0.58);
383
+ padding: 12px;
384
+ display: flex;
385
+ justify-content: space-between;
386
+ align-items: flex-start;
387
+ gap: 10px;
388
+ cursor: pointer;
389
+ transition: border-color var(--transition-fast) var(--ease-spring), background var(--transition-fast) var(--ease-spring);
390
+ }
391
+
392
+ .prompt-template-item.active {
393
+ border-color: rgba(201, 94, 75, 0.55);
394
+ background: linear-gradient(to bottom, rgba(201, 94, 75, 0.09) 0%, rgba(201, 94, 75, 0.03) 100%);
395
+ }
396
+
397
+ .prompt-template-item-title {
398
+ font-size: var(--font-size-secondary);
399
+ font-weight: var(--font-weight-secondary);
400
+ color: var(--color-text-secondary);
401
+ }
402
+
403
+ .prompt-template-item-meta {
404
+ margin-top: 6px;
405
+ display: inline-flex;
406
+ gap: 8px;
407
+ align-items: center;
408
+ color: var(--color-text-tertiary);
409
+ font-size: var(--font-size-caption);
410
+ }
411
+
412
+ .prompt-template-item-meta .mono {
413
+ font-family: var(--font-family-mono);
414
+ }
415
+
416
+ .prompt-editor-head {
417
+ display: flex;
418
+ flex-direction: column;
419
+ gap: 10px;
420
+ padding: 12px;
421
+ border-radius: var(--radius-md);
422
+ border: 1px solid rgba(160, 145, 130, 0.18);
423
+ background: rgba(255, 255, 255, 0.62);
424
+ margin-bottom: var(--spacing-sm);
425
+ }
426
+
427
+ .prompt-editor-title-row {
428
+ display: flex;
429
+ gap: 10px;
430
+ align-items: center;
431
+ flex-wrap: wrap;
432
+ }
433
+
434
+ .prompt-editor-name {
435
+ flex: 1;
436
+ min-width: 220px;
437
+ }
438
+
439
+ .prompt-editor-actions {
440
+ display: flex;
441
+ gap: 8px;
442
+ flex-wrap: wrap;
443
+ align-items: center;
444
+ }
445
+
446
+ .prompt-editor-textarea,
447
+ .prompt-preview-textarea {
448
+ font-family: var(--font-family-mono);
449
+ font-size: var(--font-size-caption);
450
+ line-height: 1.55;
451
+ white-space: pre;
452
+ }
453
+
454
+ .prompt-vars-block,
455
+ .prompt-preview-block {
456
+ margin-top: var(--spacing-sm);
457
+ padding: 12px;
458
+ border-radius: var(--radius-md);
459
+ border: 1px solid rgba(160, 145, 130, 0.18);
460
+ background: rgba(255, 255, 255, 0.62);
461
+ }
462
+
463
+ .prompt-vars-head {
464
+ display: flex;
465
+ justify-content: space-between;
466
+ align-items: flex-start;
467
+ gap: 10px;
468
+ margin-bottom: 10px;
469
+ }
470
+
471
+ .prompt-vars-title {
472
+ font-size: var(--font-size-body);
473
+ font-weight: var(--font-weight-secondary);
474
+ color: var(--color-text-secondary);
475
+ }
476
+
477
+ .prompt-vars-empty {
478
+ font-size: var(--font-size-caption);
479
+ color: var(--color-text-tertiary);
480
+ padding: 6px 0;
481
+ }
482
+
483
+ .prompt-vars-grid {
484
+ display: grid;
485
+ grid-template-columns: repeat(2, minmax(0, 1fr));
486
+ gap: 10px;
487
+ }
488
+
489
+ .prompt-var-row {
490
+ display: grid;
491
+ grid-template-columns: minmax(90px, 140px) minmax(0, 1fr);
492
+ gap: 10px;
493
+ align-items: center;
494
+ }
495
+
496
+ .prompt-var-label {
497
+ color: var(--color-text-tertiary);
498
+ font-size: var(--font-size-caption);
499
+ }
500
+
501
+ .prompt-var-input {
502
+ min-width: 0;
503
+ }
504
+
505
+ .prompt-var-input.is-missing {
506
+ border-color: var(--color-error);
507
+ box-shadow: 0 0 0 1px rgba(196, 69, 54, 0.18);
508
+ }
509
+
510
+ @media (max-width: 980px) {
511
+ .plugins-layout {
512
+ grid-template-columns: 1fr;
513
+ }
514
+ .prompt-templates-grid {
515
+ grid-template-columns: 1fr;
516
+ }
517
+ .prompt-vars-grid {
518
+ grid-template-columns: 1fr;
519
+ }
520
+ .prompt-var-row {
521
+ grid-template-columns: 1fr;
522
+ }
523
+ }