codexmate 0.0.29 → 0.0.30

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