openclaw-openagent 1.0.9 → 1.0.11
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.
- package/dist/src/plugin-ui/assets/bg.png +0 -0
- package/dist/src/plugin-ui/assets/icon.png +0 -0
- package/dist/src/plugin-ui/assets/openagent-override.js +1553 -826
- package/dist/src/plugin-ui/ui-extension-loader/registry-regex.js +53 -5
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -3
- package/src/plugin-ui/assets/bg.png +0 -0
- package/src/plugin-ui/assets/icon.png +0 -0
- package/src/plugin-ui/assets/openagent-override.js +1553 -826
- package/src/plugin-ui/build.cjs +79 -4
- package/src/plugin-ui/modules/agent-book/panel/agent-book.js +92 -9
- package/src/plugin-ui/modules/agent-book/panel/agent-card.js +26 -10
- package/src/plugin-ui/modules/agent-book/panel/agent-data.js +1 -1
- package/src/plugin-ui/modules/agent-book/panel/inject-ui.js +46 -0
- package/src/plugin-ui/modules/agent-book/panel/styles.js +313 -178
- package/src/plugin-ui/modules/loader/bootstrap.js +1 -1
- package/src/plugin-ui/modules/loader/shared-state.js +54 -0
- package/src/plugin-ui/modules/remote-agent/execution-card.js +347 -124
- package/src/plugin-ui/modules/remote-agent/output-card.js +91 -31
- package/src/plugin-ui/modules/remote-agent/render-hooks.js +97 -18
- package/src/plugin-ui/modules/remote-agent/styles.js +482 -457
- package/src/plugin-ui/modules/remote-agent/tool-card-model.js +6 -0
- package/src/plugin-ui/ui-extension-loader/registry-regex.ts +50 -5
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
// 注意:不使用 .chat-tool-card 类名,避免 scanner.js 误匹配。
|
|
7
7
|
|
|
8
8
|
(function _clInjectRemoteAgentStyles() {
|
|
9
|
-
|
|
9
|
+
var oldStyle = document.getElementById('cl-remote-agent-styles');
|
|
10
|
+
if (oldStyle) oldStyle.remove();
|
|
10
11
|
var style = document.createElement('style');
|
|
11
12
|
style.id = 'cl-remote-agent-styles';
|
|
12
13
|
style.textContent = [
|
|
@@ -69,7 +70,20 @@
|
|
|
69
70
|
' border: 0 !important;',
|
|
70
71
|
' background: transparent !important;',
|
|
71
72
|
' box-shadow: none !important;',
|
|
72
|
-
' padding
|
|
73
|
+
' padding: 10px 0 !important;',
|
|
74
|
+
' width: 100%;',
|
|
75
|
+
' max-width: 100% !important;',
|
|
76
|
+
' overflow: hidden !important;',
|
|
77
|
+
'}',
|
|
78
|
+
'.chat-tool-msg-collapse.chat-tool-msg-collapse--manual.is-open:has(.cl-remote-agent-card) {',
|
|
79
|
+
' margin-left: 0 !important;',
|
|
80
|
+
'}',
|
|
81
|
+
// ── 外层活动组容器 ──
|
|
82
|
+
'.chat-activity-group__body:has(.cl-remote-agent-card) {',
|
|
83
|
+
' border-radius: 14px;',
|
|
84
|
+
' border: 1px solid #E5E5EA;',
|
|
85
|
+
' background: #F8F9FA;',
|
|
86
|
+
' margin: 8px;',
|
|
73
87
|
' padding-bottom: 0 !important;',
|
|
74
88
|
'}',
|
|
75
89
|
'.chat-bubble:has(.cl-remote-agent-card) > .chat-text,',
|
|
@@ -100,567 +114,578 @@
|
|
|
100
114
|
'.cl-remote-agent-card {',
|
|
101
115
|
' max-height: none;',
|
|
102
116
|
' overflow: visible;',
|
|
103
|
-
' width:
|
|
117
|
+
' width: 100%;',
|
|
104
118
|
' max-width: 100%;',
|
|
105
|
-
' border: 1px solid
|
|
106
|
-
' border-radius:
|
|
107
|
-
'
|
|
108
|
-
' background: var(--card, #fff);',
|
|
119
|
+
' border: 1px solid rgba(0,0,0,0.05);',
|
|
120
|
+
' border-radius: 14px;',
|
|
121
|
+
' background: #fff;',
|
|
109
122
|
' display: flex;',
|
|
110
123
|
' flex-direction: column;',
|
|
111
|
-
' gap:
|
|
124
|
+
' gap: 10px;',
|
|
112
125
|
' box-sizing: border-box;',
|
|
113
126
|
'}',
|
|
114
127
|
|
|
115
128
|
// ── 顶部 OpenAgent 标题条 ──
|
|
116
129
|
'.cl-openagent-header {',
|
|
117
|
-
' width: fit-content;',
|
|
118
130
|
' max-width: 100%;',
|
|
119
|
-
' min-height: var(--cl-native-summary-min-height, 34px);',
|
|
120
131
|
' display: flex;',
|
|
121
132
|
' align-items: center;',
|
|
122
|
-
' gap:
|
|
123
|
-
'
|
|
133
|
+
' gap: 6px;',
|
|
134
|
+
' height: 34px;',
|
|
135
|
+
' padding: 6px 0;',
|
|
136
|
+
' border-radius: 10px;',
|
|
124
137
|
' box-sizing: border-box;',
|
|
125
|
-
' border:
|
|
126
|
-
'
|
|
127
|
-
' background: color-mix(in srgb, var(--bg-hover, #F4F5F7) 50%, transparent);',
|
|
128
|
-
' color: var(--text, #2F2F33);',
|
|
138
|
+
' border: none;',
|
|
139
|
+
' background: transparent;',
|
|
129
140
|
' font-family: "PingFang SC", sans-serif;',
|
|
130
|
-
' font-size: var(--cl-native-summary-font-size, 13px);',
|
|
131
|
-
' line-height: var(--cl-native-summary-line-height, 1.2);',
|
|
132
141
|
'}',
|
|
133
|
-
'.cl-openagent-header
|
|
134
|
-
' width: 6px;',
|
|
135
|
-
' color: var(--muted, rgba(47,47,51,0.45));',
|
|
136
|
-
' font-size: 8px;',
|
|
137
|
-
' line-height: 1;',
|
|
138
|
-
' flex: 0 0 auto;',
|
|
142
|
+
'.cl-openagent-header:hover {',
|
|
139
143
|
'}',
|
|
140
|
-
'
|
|
141
|
-
'
|
|
144
|
+
'/* Output mode (Figma 373:12082) */',
|
|
145
|
+
'.cl-openagent-header--output,',
|
|
146
|
+
'.cl-exec-v2 .cl-openagent-header--output {',
|
|
147
|
+
' border-radius: 10px 10px 0 0 !important;',
|
|
148
|
+
' border: 1px solid rgba(229, 229, 234, 0.75) !important;',
|
|
149
|
+
' background: linear-gradient(90deg, rgba(220, 38, 38, 0.09) 0%, rgba(220, 38, 38, 0) 34%),',
|
|
150
|
+
' linear-gradient(90deg, rgb(253, 253, 254) 0%, rgb(253, 253, 254) 100%) !important;',
|
|
151
|
+
' box-shadow: 0px 8px 11px rgba(0, 0, 0, 0.12);',
|
|
152
|
+
' padding: 8px 6px !important;',
|
|
153
|
+
'}',
|
|
154
|
+
'.cl-openagent-header--output .cl-openagent-agent,',
|
|
155
|
+
'.cl-exec-v2 .cl-openagent-header--output .cl-openagent-agent {',
|
|
156
|
+
' display: none;',
|
|
157
|
+
'}',
|
|
158
|
+
'.cl-openagent-header--output:hover,',
|
|
159
|
+
'.cl-exec-v2 .cl-openagent-header--output:hover {',
|
|
160
|
+
' border-color: rgba(0,0,0,0.1);',
|
|
161
|
+
'}',
|
|
162
|
+
'.cl-openagent-expand-icon {',
|
|
163
|
+
' display: flex;',
|
|
164
|
+
' align-items: center;',
|
|
165
|
+
' justify-content: center;',
|
|
142
166
|
' width: 15px;',
|
|
143
|
-
' height:
|
|
144
|
-
' flex: 0
|
|
167
|
+
' height: 15px;',
|
|
168
|
+
' flex-shrink: 0;',
|
|
169
|
+
' transition: transform 0.2s ease;',
|
|
145
170
|
'}',
|
|
146
|
-
'.cl-openagent-
|
|
147
|
-
'
|
|
148
|
-
'
|
|
149
|
-
'
|
|
150
|
-
' width:
|
|
151
|
-
' height:
|
|
152
|
-
' border:
|
|
153
|
-
'
|
|
154
|
-
'
|
|
171
|
+
'.cl-openagent-expand-icon.cl-openagent-expanded {',
|
|
172
|
+
' transform: rotate(180deg);',
|
|
173
|
+
'}',
|
|
174
|
+
'.cl-openagent-badge {',
|
|
175
|
+
' width: 14px;',
|
|
176
|
+
' height: 14px;',
|
|
177
|
+
' border-radius: 14px;',
|
|
178
|
+
' background: url(./icon.png) center/cover no-repeat;',
|
|
179
|
+
' flex-shrink: 0;',
|
|
180
|
+
' overflow: hidden;',
|
|
155
181
|
'}',
|
|
156
|
-
'.cl-openagent-
|
|
157
|
-
'.cl-openagent-header-icon::after { left: 5px; top: 2px; }',
|
|
158
|
-
'.cl-openagent-header-title {',
|
|
182
|
+
'.cl-openagent-text-row {',
|
|
159
183
|
' display: flex;',
|
|
160
184
|
' align-items: center;',
|
|
161
|
-
' gap:
|
|
185
|
+
' gap: 6px;',
|
|
162
186
|
' min-width: 0;',
|
|
187
|
+
' line-height: 1.32;',
|
|
188
|
+
'}',
|
|
189
|
+
'.cl-openagent-label {',
|
|
190
|
+
' font-size: 12px;',
|
|
191
|
+
' font-weight: 500;',
|
|
192
|
+
' color: #333;',
|
|
163
193
|
' white-space: nowrap;',
|
|
164
194
|
'}',
|
|
165
|
-
'.cl-openagent-
|
|
166
|
-
'
|
|
167
|
-
' font-weight:
|
|
168
|
-
'
|
|
169
|
-
'
|
|
195
|
+
'.cl-openagent-agent {',
|
|
196
|
+
' font-size: 12px;',
|
|
197
|
+
' font-weight: 500;',
|
|
198
|
+
' color: #333;',
|
|
199
|
+
' white-space: nowrap;',
|
|
170
200
|
'}',
|
|
171
|
-
'.cl-openagent-
|
|
172
|
-
'
|
|
201
|
+
'.cl-openagent-status {',
|
|
202
|
+
' font-size: 11px;',
|
|
173
203
|
' font-weight: 400;',
|
|
204
|
+
' color: #666;',
|
|
205
|
+
' white-space: nowrap;',
|
|
174
206
|
'}',
|
|
175
|
-
// ── Figma
|
|
207
|
+
// ── Execution detail card (Figma 346:181) ──
|
|
176
208
|
'.cl-thought-chain-content {',
|
|
177
|
-
' width: 100%;',
|
|
178
|
-
' min-height: 0;',
|
|
179
|
-
' box-sizing: border-box;',
|
|
180
|
-
' border: 1px solid color-mix(in srgb, var(--border, rgba(0,0,0,0.04)) 60%, transparent);',
|
|
181
|
-
' border-radius: 8px;',
|
|
182
|
-
' background: var(--card, #fff);',
|
|
183
|
-
' padding: 8px;',
|
|
184
209
|
' display: flex;',
|
|
185
210
|
' flex-direction: column;',
|
|
186
|
-
'
|
|
187
|
-
' gap: 12px;',
|
|
188
|
-
'}',
|
|
189
|
-
// ── 共享展开态宿主清理 ──
|
|
190
|
-
'details.chat-tools-collapse:has(.cl-thought-chain-content--execution),',
|
|
191
|
-
'details.chat-tools-collapse:has(.cl-output-result),',
|
|
192
|
-
'details.chat-tool-msg-collapse:has(.cl-thought-chain-content--execution),',
|
|
193
|
-
'details.chat-tool-msg-collapse:has(.cl-output-result),',
|
|
194
|
-
'.chat-tools-collapse:has(.cl-thought-chain-content--execution),',
|
|
195
|
-
'.chat-tools-collapse:has(.cl-output-result),',
|
|
196
|
-
'.chat-tool-msg-collapse:has(.cl-thought-chain-content--execution),',
|
|
197
|
-
'.chat-tool-msg-collapse:has(.cl-output-result) {',
|
|
198
|
-
' max-width: 100% !important;',
|
|
199
|
-
' display: block !important;',
|
|
200
|
-
' box-sizing: border-box !important;',
|
|
211
|
+
' gap: 16px;',
|
|
201
212
|
'}',
|
|
202
|
-
|
|
203
|
-
'
|
|
204
|
-
'
|
|
205
|
-
'
|
|
213
|
+
'.cl-exec-detail-card {',
|
|
214
|
+
' padding: 8px 16px 8px 12px;',
|
|
215
|
+
' border-radius: 8px;',
|
|
216
|
+
' background: #f8f8f8 url(./bg.png) no-repeat;',
|
|
217
|
+
' background-size: 100% 100%;',
|
|
218
|
+
' background-position: center;',
|
|
219
|
+
' width: 460px;',
|
|
220
|
+
' max-width: 100%;',
|
|
206
221
|
' box-sizing: border-box;',
|
|
207
222
|
'}',
|
|
208
|
-
'.cl-
|
|
209
|
-
'
|
|
210
|
-
'
|
|
223
|
+
'.cl-exec-detail-row {',
|
|
224
|
+
' display: flex;',
|
|
225
|
+
' align-items: center;',
|
|
226
|
+
' gap: 16px;',
|
|
211
227
|
'}',
|
|
212
|
-
'.cl-
|
|
213
|
-
' width:
|
|
228
|
+
'.cl-exec-agent-avatar {',
|
|
229
|
+
' width: 68px;',
|
|
230
|
+
' height: 68px;',
|
|
231
|
+
' border-radius: 50%;',
|
|
232
|
+
' object-fit: cover;',
|
|
233
|
+
' flex-shrink: 0;',
|
|
214
234
|
'}',
|
|
215
|
-
|
|
216
|
-
'
|
|
217
|
-
'
|
|
235
|
+
'.cl-exec-detail-info {',
|
|
236
|
+
' display: flex;',
|
|
237
|
+
' flex-direction: column;',
|
|
238
|
+
' gap: 6px;',
|
|
239
|
+
' flex: 1;',
|
|
240
|
+
' min-width: 0;',
|
|
218
241
|
'}',
|
|
219
|
-
'.cl-
|
|
220
|
-
'
|
|
242
|
+
'.cl-exec-name-row {',
|
|
243
|
+
' display: flex;',
|
|
244
|
+
' align-items: center;',
|
|
245
|
+
' justify-content: space-between;',
|
|
246
|
+
' gap: 8px;',
|
|
247
|
+
' margin-bottom: 6px;',
|
|
221
248
|
'}',
|
|
222
|
-
|
|
223
|
-
'
|
|
224
|
-
'
|
|
225
|
-
'
|
|
226
|
-
'
|
|
227
|
-
'
|
|
249
|
+
'.cl-exec-agent-name {',
|
|
250
|
+
' font-family: "PingFang SC", sans-serif;',
|
|
251
|
+
' font-size: 17px;',
|
|
252
|
+
' font-weight: 500;',
|
|
253
|
+
' color: #000;',
|
|
254
|
+
' margin: 0;',
|
|
255
|
+
' line-height: 1;',
|
|
228
256
|
'}',
|
|
229
|
-
|
|
230
|
-
'
|
|
231
|
-
' display: inline-flex;',
|
|
257
|
+
'.cl-exec-star-badge {',
|
|
258
|
+
' display: flex;',
|
|
232
259
|
' align-items: center;',
|
|
233
|
-
'
|
|
234
|
-
'
|
|
235
|
-
'
|
|
236
|
-
'
|
|
237
|
-
'
|
|
238
|
-
'
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
'
|
|
243
|
-
'
|
|
260
|
+
' gap: 2px;',
|
|
261
|
+
' padding: 2px 10px 2px 8px;',
|
|
262
|
+
' border-radius: 30px;',
|
|
263
|
+
' background: #ebebeb;',
|
|
264
|
+
' flex-shrink: 0;',
|
|
265
|
+
'}',
|
|
266
|
+
,
|
|
267
|
+
,
|
|
268
|
+
,
|
|
269
|
+
'.cl-exec-star-count {',
|
|
270
|
+
' font-family: "PingFang SC", sans-serif;',
|
|
271
|
+
' font-size: 11px;',
|
|
272
|
+
' font-weight: 500;',
|
|
273
|
+
' color: #555;',
|
|
274
|
+
' white-space: nowrap;',
|
|
275
|
+
'}',
|
|
276
|
+
'.cl-exec-agent-bio {',
|
|
277
|
+
' font-family: "PingFang SC", sans-serif;',
|
|
278
|
+
' font-size: 14px;',
|
|
279
|
+
' font-weight: 400;',
|
|
280
|
+
' color: #555;',
|
|
244
281
|
' margin: 0;',
|
|
282
|
+
' line-height: 1;',
|
|
245
283
|
'}',
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
'
|
|
249
|
-
'
|
|
250
|
-
' object-fit: cover;',
|
|
251
|
-
' flex: 0 0 24px;',
|
|
252
|
-
' border: 0.6px solid rgba(47,47,51,0.20);',
|
|
253
|
-
' box-sizing: border-box;',
|
|
284
|
+
|
|
285
|
+
// ── Progress text (Figma 346:253) ──
|
|
286
|
+
'.cl-thought-chain-content.cl-content-collapsed {',
|
|
287
|
+
' display: none;',
|
|
254
288
|
'}',
|
|
255
|
-
|
|
256
|
-
|
|
289
|
+
,
|
|
290
|
+
'.cl-exec-progress-row {',
|
|
291
|
+
' display: flex;',
|
|
257
292
|
' align-items: center;',
|
|
293
|
+
' gap: 2px;',
|
|
294
|
+
'}',
|
|
295
|
+
'.cl-exec-progress-text {',
|
|
258
296
|
' font-family: "PingFang SC", sans-serif;',
|
|
259
|
-
' font-size:
|
|
260
|
-
'
|
|
297
|
+
' font-size: 14px;',
|
|
298
|
+
' font-weight: 400;',
|
|
261
299
|
' line-height: 1.2;',
|
|
262
|
-
'
|
|
300
|
+
' margin: 0;',
|
|
263
301
|
' white-space: nowrap;',
|
|
264
|
-
'
|
|
265
|
-
'
|
|
266
|
-
'
|
|
267
|
-
'
|
|
302
|
+
' background-image: linear-gradient(90deg, #555 0%, #555 36%, #eee 55%, #555 77%, #555 100%);',
|
|
303
|
+
' background-size: 200% 100%;',
|
|
304
|
+
' -webkit-background-clip: text;',
|
|
305
|
+
' background-clip: text;',
|
|
306
|
+
' -webkit-text-fill-color: transparent;',
|
|
307
|
+
' animation: cl-progress-shimmer 2.5s ease-in-out infinite;',
|
|
308
|
+
'}',
|
|
309
|
+
'.cl-exec-progress-arrow {',
|
|
268
310
|
' display: flex;',
|
|
269
311
|
' align-items: center;',
|
|
270
|
-
'
|
|
312
|
+
' flex-shrink: 0;',
|
|
271
313
|
'}',
|
|
272
|
-
|
|
273
|
-
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
// ── Progress shimmer keyframes ──
|
|
317
|
+
'@keyframes cl-progress-shimmer {',
|
|
318
|
+
' 0% { background-position: 200% 0; }',
|
|
319
|
+
' 100% { background-position: -200% 0; }',
|
|
274
320
|
'}',
|
|
275
|
-
|
|
276
|
-
|
|
321
|
+
|
|
322
|
+
// ── Output card(Figma 160:6681) ──
|
|
323
|
+
'.cl-output-card {',
|
|
324
|
+
' background: #fff !important;',
|
|
325
|
+
' border: 1.2px solid rgba(47,47,51,0.1) !important;',
|
|
326
|
+
' border-radius: 24px !important;',
|
|
327
|
+
' padding: 10px 15px !important;',
|
|
328
|
+
' gap: 10px !important;',
|
|
329
|
+
'}',
|
|
330
|
+
'.cl-output-card > .cl-thought-chain-content {',
|
|
331
|
+
' background: #fff;',
|
|
332
|
+
' border: 1px solid #f4f4f4;',
|
|
277
333
|
' border-radius: 12px;',
|
|
278
|
-
' padding:
|
|
279
|
-
'
|
|
280
|
-
'
|
|
281
|
-
'
|
|
282
|
-
' gap: 9px;',
|
|
283
|
-
' height: 42px;',
|
|
284
|
-
' min-height: 42px;',
|
|
285
|
-
' padding: 0 15px;',
|
|
286
|
-
' border: 0;',
|
|
287
|
-
' border-radius: 9px;',
|
|
288
|
-
' box-shadow: inset 0 0 0 1.2px rgba(47,47,51,0.06);',
|
|
289
|
-
'}',
|
|
290
|
-
'.cl-thought-chain-content--execution .cl-agent-pill-avatar {',
|
|
291
|
-
' width: 24px;',
|
|
292
|
-
' height: 24px;',
|
|
293
|
-
' flex-basis: 24px;',
|
|
334
|
+
' padding: 20px 30px;',
|
|
335
|
+
' overflow: hidden;',
|
|
336
|
+
' max-width: 100%;',
|
|
337
|
+
' box-sizing: border-box;',
|
|
294
338
|
'}',
|
|
295
|
-
'.cl-
|
|
296
|
-
'
|
|
297
|
-
'
|
|
339
|
+
'.cl-output-card > .cl-thought-chain-content * {',
|
|
340
|
+
' max-width: 100%;',
|
|
341
|
+
' box-sizing: border-box;',
|
|
298
342
|
'}',
|
|
299
|
-
'.cl-
|
|
300
|
-
'
|
|
301
|
-
'
|
|
302
|
-
'
|
|
303
|
-
'
|
|
304
|
-
' border: 0;',
|
|
305
|
-
' border-radius: 9px;',
|
|
306
|
-
' box-shadow: inset 0 0 0 1.2px rgba(47,47,51,0.06);',
|
|
343
|
+
'.cl-output-card > .cl-thought-chain-content pre,',
|
|
344
|
+
'.cl-output-card > .cl-thought-chain-content code {',
|
|
345
|
+
' overflow-x: auto;',
|
|
346
|
+
' white-space: pre-wrap;',
|
|
347
|
+
' word-break: break-all;',
|
|
307
348
|
'}',
|
|
308
|
-
|
|
309
|
-
'
|
|
310
|
-
'
|
|
311
|
-
'
|
|
349
|
+
// V2 output card:统一 border/padding 与 execution card 一致
|
|
350
|
+
'.cl-exec-v2.cl-output-card {',
|
|
351
|
+
' border: 1px solid rgba(0,0,0,0.05) !important;',
|
|
352
|
+
' border-radius: 14px !important;',
|
|
353
|
+
' padding: 0 !important;',
|
|
312
354
|
'}',
|
|
313
|
-
|
|
314
|
-
'
|
|
315
|
-
'
|
|
355
|
+
// V2 output card:去掉 content 区多余的内边距,detail card 自带动间距
|
|
356
|
+
'.cl-exec-v2.cl-output-card > .cl-thought-chain-content {',
|
|
357
|
+
' background: transparent;',
|
|
358
|
+
' border: none;',
|
|
359
|
+
' border-radius: 0;',
|
|
360
|
+
' padding: 0 14px !important;',
|
|
316
361
|
'}',
|
|
317
362
|
|
|
318
|
-
// ── Figma
|
|
319
|
-
'.cl-
|
|
320
|
-
'
|
|
321
|
-
' display: flex;',
|
|
322
|
-
' flex-direction: column;',
|
|
323
|
-
' align-items: flex-start;',
|
|
324
|
-
' gap: 4px;',
|
|
325
|
-
' padding: 4px 0;',
|
|
326
|
-
' box-sizing: border-box;',
|
|
363
|
+
// ── Collapsed state(Figma 145:3466) ──
|
|
364
|
+
'.cl-remote-agent-card:has(.cl-content-collapsed) {',
|
|
365
|
+
' padding: 0 !important;',
|
|
327
366
|
'}',
|
|
328
|
-
|
|
367
|
+
// ── Output card Footer(Figma 131:2091) ──
|
|
368
|
+
'.cl-output-footer {',
|
|
329
369
|
' display: flex;',
|
|
330
370
|
' align-items: center;',
|
|
331
|
-
' gap:
|
|
332
|
-
' padding: 0;',
|
|
333
|
-
' cursor: default;',
|
|
334
|
-
' user-select: none;',
|
|
335
|
-
'}',
|
|
336
|
-
'.cl-tools-collapse-header:hover { opacity: 1; }',
|
|
337
|
-
'.cl-tools-collapse-header-icon { display: none; }',
|
|
338
|
-
'.cl-tools-collapse-header-title {',
|
|
371
|
+
' gap: 4px;',
|
|
339
372
|
' font-family: "PingFang SC", sans-serif;',
|
|
340
|
-
' font-size:
|
|
341
|
-
'
|
|
342
|
-
' line-height: 1.2;',
|
|
343
|
-
' color: rgba(47,47,51,0.90);',
|
|
373
|
+
' font-size: 14px;',
|
|
374
|
+
' color: #999;',
|
|
344
375
|
'}',
|
|
345
|
-
'.cl-
|
|
346
|
-
'
|
|
376
|
+
'.cl-output-footer-text {',
|
|
377
|
+
' white-space: nowrap;',
|
|
378
|
+
'}',
|
|
379
|
+
'.cl-output-footer-star {',
|
|
347
380
|
' display: flex;',
|
|
348
|
-
'
|
|
349
|
-
'
|
|
350
|
-
' width: 100%;',
|
|
351
|
-
' overflow: hidden;',
|
|
352
|
-
' padding: 0;',
|
|
353
|
-
' transition: max-height 0.25s ease, opacity 0.2s ease;',
|
|
381
|
+
' align-items: center;',
|
|
382
|
+
' flex-shrink: 0;',
|
|
354
383
|
'}',
|
|
355
|
-
'.cl-
|
|
356
|
-
'
|
|
357
|
-
'
|
|
358
|
-
'
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
'
|
|
362
|
-
' background:
|
|
363
|
-
'
|
|
364
|
-
'
|
|
365
|
-
'
|
|
366
|
-
'
|
|
384
|
+
'.cl-output-footer-count {',
|
|
385
|
+
' font-weight: 500;',
|
|
386
|
+
' white-space: nowrap;',
|
|
387
|
+
'}',
|
|
388
|
+
|
|
389
|
+
/* ── Sidebar 面板(Figma 145:5712) ── */
|
|
390
|
+
'.chat-sidebar {',
|
|
391
|
+
' background: #fff !important;',
|
|
392
|
+
' border: 1px solid rgba(0,0,0,0.05) !important;',
|
|
393
|
+
' border-radius: 14px !important;',
|
|
394
|
+
' padding: 16px 20px !important;',
|
|
395
|
+
' box-sizing: border-box !important;',
|
|
396
|
+
' display: flex !important;',
|
|
397
|
+
' flex-direction: column !important;',
|
|
398
|
+
' gap: 16px !important;',
|
|
399
|
+
'}',
|
|
400
|
+
'.chat-sidebar > .sidebar-panel {',
|
|
401
|
+
' display: flex !important;',
|
|
402
|
+
' flex-direction: column !important;',
|
|
403
|
+
' gap: 16px !important;',
|
|
404
|
+
' width: 100% !important;',
|
|
405
|
+
' background: transparent !important;',
|
|
406
|
+
'}',
|
|
407
|
+
'.chat-sidebar .sidebar-header {',
|
|
408
|
+
' display: flex !important;',
|
|
409
|
+
' align-items: center !important;',
|
|
410
|
+
' justify-content: space-between !important;',
|
|
411
|
+
' padding: 6px 0 !important;',
|
|
412
|
+
' border-radius: 10px !important;',
|
|
413
|
+
' width: 100% !important;',
|
|
414
|
+
' border: none !important;',
|
|
415
|
+
' background: transparent !important;',
|
|
416
|
+
'}',
|
|
417
|
+
'.chat-sidebar .sidebar-title {',
|
|
418
|
+
' font-family: "PingFang SC", sans-serif !important;',
|
|
419
|
+
' font-weight: 500 !important;',
|
|
420
|
+
' font-size: 18px !important;',
|
|
421
|
+
' color: #333 !important;',
|
|
422
|
+
' line-height: 1.32 !important;',
|
|
423
|
+
'}',
|
|
424
|
+
'.chat-sidebar .sidebar-header button {',
|
|
425
|
+
' width: 16px !important;',
|
|
426
|
+
' height: 16px !important;',
|
|
427
|
+
' padding: 0 !important;',
|
|
428
|
+
' border: none !important;',
|
|
429
|
+
' background: transparent !important;',
|
|
430
|
+
' cursor: pointer !important;',
|
|
431
|
+
' flex-shrink: 0 !important;',
|
|
432
|
+
'}',
|
|
433
|
+
'.chat-sidebar .sidebar-content {',
|
|
434
|
+
' font-family: "PingFang SC", sans-serif !important;',
|
|
435
|
+
' font-size: 14px !important;',
|
|
436
|
+
' font-weight: 400 !important;',
|
|
437
|
+
' line-height: 1.8 !important;',
|
|
438
|
+
' color: #333 !important;',
|
|
439
|
+
' width: 100% !important;',
|
|
440
|
+
' padding: 0 !important;',
|
|
441
|
+
'}',
|
|
442
|
+
'.chat-sidebar .sidebar-markdown {',
|
|
443
|
+
' font-family: "PingFang SC", sans-serif !important;',
|
|
444
|
+
' font-size: 14px !important;',
|
|
445
|
+
' font-weight: 400 !important;',
|
|
446
|
+
' line-height: 1.8 !important;',
|
|
447
|
+
' color: #333 !important;',
|
|
448
|
+
' background: transparent !important;',
|
|
449
|
+
' border: none !important;',
|
|
450
|
+
' padding: 0 !important;',
|
|
451
|
+
'}',
|
|
452
|
+
// 隐藏宿主 sidebar 自带的 "Rendered Markdown / View Raw Text" 工具栏
|
|
453
|
+
'.chat-sidebar .sidebar-markdown-shell__toolbar {',
|
|
454
|
+
' display: none !important;',
|
|
455
|
+
'}',
|
|
456
|
+
// ═══════════════════════════════════════════════════════════════
|
|
457
|
+
// V2 执行卡片样式(2026.6.9+ 新版 UI)
|
|
458
|
+
// 所有 V2 样式在 .cl-exec-v2 下隔离,不影响旧版
|
|
459
|
+
// ═══════════════════════════════════════════════════════════════
|
|
460
|
+
|
|
461
|
+
// ── V2 容器 ──
|
|
462
|
+
'.cl-exec-v2 {',
|
|
367
463
|
' position: relative;',
|
|
368
|
-
' display: block;',
|
|
369
|
-
' width: 100%;',
|
|
370
|
-
' padding: 0;',
|
|
371
|
-
' z-index: 1;',
|
|
372
464
|
'}',
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
'
|
|
376
|
-
'
|
|
377
|
-
'
|
|
465
|
+
|
|
466
|
+
// ── V2 Header(Figma 371:6987 — 红晕渐变背景 + 独立边框)──
|
|
467
|
+
'.cl-exec-v2 .cl-openagent-header-v2 {',
|
|
468
|
+
' background: linear-gradient(90deg, rgba(220, 38, 38, 0.09) 0%, rgba(220, 38, 38, 0) 34%),',
|
|
469
|
+
' linear-gradient(90deg, rgb(253, 253, 254) 0%, rgb(253, 253, 254) 100%) !important;',
|
|
470
|
+
' border-bottom: 1px solid rgba(229, 229, 234, 0.75) !important;',
|
|
471
|
+
' padding: 8px 6px !important;',
|
|
472
|
+
' margin: 0 !important;',
|
|
473
|
+
' border-radius: 10px 10px 0 0;',
|
|
474
|
+
' height: auto !important;',
|
|
475
|
+
' min-height: auto !important;',
|
|
476
|
+
' box-sizing: border-box;',
|
|
378
477
|
'}',
|
|
379
|
-
'.cl-
|
|
380
|
-
'
|
|
381
|
-
'
|
|
382
|
-
' flex: 0 0 14px;',
|
|
383
|
-
' display: flex;',
|
|
384
|
-
' align-items: center;',
|
|
385
|
-
' justify-content: center;',
|
|
386
|
-
' background: #fff;',
|
|
478
|
+
'.cl-exec-v2 .cl-openagent-header-v2:hover {',
|
|
479
|
+
' background: linear-gradient(90deg, rgba(220, 38, 38, 0.12) 0%, rgba(220, 38, 38, 0) 34%),',
|
|
480
|
+
' linear-gradient(90deg, rgb(250, 250, 251) 0%, rgb(250, 250, 251) 100%) !important;',
|
|
387
481
|
'}',
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
'
|
|
482
|
+
|
|
483
|
+
// ── V2 圆形灰色头像(替代小徽章)──
|
|
484
|
+
'.cl-exec-v2 .cl-openagent-avatar-v2 {',
|
|
485
|
+
' display: inline-block;',
|
|
486
|
+
' width: 24px;',
|
|
487
|
+
' height: 24px;',
|
|
391
488
|
' border-radius: 50%;',
|
|
392
|
-
' background: #
|
|
393
|
-
'
|
|
489
|
+
' background: #d0d0d0;',
|
|
490
|
+
' flex-shrink: 0;',
|
|
491
|
+
' margin-right: 4px;',
|
|
394
492
|
'}',
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
'.cl-
|
|
398
|
-
'
|
|
399
|
-
' display: none;',
|
|
493
|
+
|
|
494
|
+
// ── V2 隐藏旧版 OASN 小徽章和 @agentName ──
|
|
495
|
+
'.cl-exec-v2 .cl-openagent-badge,',
|
|
496
|
+
'.cl-exec-v2 .cl-openagent-agent {',
|
|
497
|
+
' display: none !important;',
|
|
498
|
+
'}',
|
|
499
|
+
// ── V2 隐藏步骤标题栏(▼ + "思考中..."),保留进度文字行 ──
|
|
500
|
+
'.cl-exec-v2 .cl-tools-collapse-header-v2 {',
|
|
501
|
+
' display: none !important;',
|
|
400
502
|
'}',
|
|
401
|
-
|
|
503
|
+
|
|
504
|
+
// ── V2 Detail Card(大头像 + 右置星级 + 网格点背景)──
|
|
505
|
+
'.cl-exec-v2 .cl-exec-detail-card-v2 {',
|
|
506
|
+
' max-width: 488px !important;',
|
|
507
|
+
' width: 100% !important;',
|
|
508
|
+
' padding: 8px 16px 8px 12px !important;',
|
|
509
|
+
' padding-right: 90px !important;',
|
|
510
|
+
' border-radius: 12px !important;',
|
|
511
|
+
' background: #f7f7f8 !important;',
|
|
512
|
+
' margin: 12px 14px 14px 14px !important;',
|
|
513
|
+
' margin-left: 0 !important;',
|
|
402
514
|
' position: relative;',
|
|
403
|
-
'
|
|
404
|
-
'
|
|
405
|
-
' border-radius: 50%;',
|
|
406
|
-
' background: #D9D9D9;',
|
|
515
|
+
' overflow: hidden;',
|
|
516
|
+
' box-sizing: border-box;',
|
|
407
517
|
'}',
|
|
408
|
-
|
|
518
|
+
/* 四角网格点装饰 */
|
|
519
|
+
'.cl-exec-v2 .cl-exec-detail-card-v2::before,',
|
|
520
|
+
'.cl-exec-v2 .cl-exec-detail-card-v2::after {',
|
|
409
521
|
' content: "";',
|
|
410
522
|
' position: absolute;',
|
|
411
|
-
'
|
|
412
|
-
'
|
|
413
|
-
'
|
|
414
|
-
'
|
|
415
|
-
'
|
|
416
|
-
' border-width: 0 1.3px 1.3px 0;',
|
|
417
|
-
' transform: rotate(45deg);',
|
|
418
|
-
'}',
|
|
419
|
-
'.cl-tools-collapse-step-title {',
|
|
420
|
-
' font-family: "PingFang SC", sans-serif;',
|
|
421
|
-
' font-size: 9.5px;',
|
|
422
|
-
' font-weight: 400;',
|
|
423
|
-
' line-height: 1.32;',
|
|
424
|
-
' color: rgba(47,47,51,0.40);',
|
|
425
|
-
' white-space: nowrap;',
|
|
426
|
-
' overflow: hidden;',
|
|
427
|
-
' text-overflow: ellipsis;',
|
|
523
|
+
' width: 40px;',
|
|
524
|
+
' height: 40px;',
|
|
525
|
+
' background-image: radial-gradient(circle, #ddd 1px, transparent 1px);',
|
|
526
|
+
' background-size: 8px 8px;',
|
|
527
|
+
' opacity: 0.5;',
|
|
428
528
|
'}',
|
|
429
|
-
'.cl-
|
|
430
|
-
'
|
|
431
|
-
'
|
|
432
|
-
' font-size: 9px;',
|
|
433
|
-
' line-height: 1.32;',
|
|
434
|
-
' color: rgba(47,47,51,0.40);',
|
|
529
|
+
'.cl-exec-v2 .cl-exec-detail-card-v2::before {',
|
|
530
|
+
' top: 8px;',
|
|
531
|
+
' left: 8px;',
|
|
435
532
|
'}',
|
|
436
|
-
'.cl-
|
|
437
|
-
'
|
|
438
|
-
'
|
|
533
|
+
'.cl-exec-v2 .cl-exec-detail-card-v2::after {',
|
|
534
|
+
' bottom: 8px;',
|
|
535
|
+
' right: 8px;',
|
|
439
536
|
'}',
|
|
440
|
-
|
|
441
|
-
'
|
|
442
|
-
'
|
|
537
|
+
|
|
538
|
+
'.cl-exec-v2 .cl-exec-detail-row-v2 {',
|
|
539
|
+
' display: flex;',
|
|
540
|
+
' align-items: flex-start;',
|
|
541
|
+
' gap: 16px;',
|
|
443
542
|
'}',
|
|
444
|
-
|
|
543
|
+
|
|
544
|
+
'.cl-exec-v2 .cl-exec-detail-info-v2 {',
|
|
545
|
+
' display: flex;',
|
|
546
|
+
' flex-direction: column;',
|
|
445
547
|
' gap: 6px;',
|
|
548
|
+
' flex: 1;',
|
|
549
|
+
' min-width: 0;',
|
|
446
550
|
'}',
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
'
|
|
450
|
-
'
|
|
451
|
-
'
|
|
452
|
-
'
|
|
453
|
-
'
|
|
454
|
-
'
|
|
455
|
-
'}',
|
|
456
|
-
'.cl-thought-chain-content--execution .cl-tools-collapse-step-row {',
|
|
457
|
-
' gap: 12px;',
|
|
458
|
-
' min-height: 21px;',
|
|
459
|
-
'}',
|
|
460
|
-
'.cl-thought-chain-content--execution .cl-tools-collapse-step-icon {',
|
|
461
|
-
' width: 21px;',
|
|
462
|
-
' height: 21px;',
|
|
463
|
-
' flex-basis: 21px;',
|
|
464
|
-
'}',
|
|
465
|
-
'.cl-thought-chain-content--execution .cl-tools-collapse-step-dot {',
|
|
466
|
-
' width: 6px;',
|
|
467
|
-
' height: 6px;',
|
|
468
|
-
' background: #DCDCDC;',
|
|
469
|
-
'}',
|
|
470
|
-
'.cl-thought-chain-content--execution .cl-tools-collapse-step-check {',
|
|
471
|
-
' width: 15px;',
|
|
472
|
-
' height: 15px;',
|
|
473
|
-
' background: #DCDCDC;',
|
|
474
|
-
'}',
|
|
475
|
-
'.cl-thought-chain-content--execution .cl-tools-collapse-step-check::after {',
|
|
476
|
-
' left: 4px;',
|
|
477
|
-
' top: 2px;',
|
|
478
|
-
' width: 5px;',
|
|
479
|
-
' height: 8px;',
|
|
480
|
-
' border-width: 0 1.4px 1.4px 0;',
|
|
551
|
+
|
|
552
|
+
// ── V2 大头像 80×80 ──
|
|
553
|
+
'.cl-exec-v2 .cl-exec-agent-avatar-v2 {',
|
|
554
|
+
' width: 80px !important;',
|
|
555
|
+
' height: 80px !important;',
|
|
556
|
+
' border-radius: 16px !important;',
|
|
557
|
+
' object-fit: cover;',
|
|
558
|
+
' flex-shrink: 0;',
|
|
481
559
|
'}',
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
'
|
|
560
|
+
|
|
561
|
+
// ── V2 名称 ~20px/600/黑色 ──
|
|
562
|
+
'.cl-exec-v2 .cl-exec-agent-name-v2 {',
|
|
563
|
+
' font-family: "PingFang SC", sans-serif;',
|
|
564
|
+
' font-size: 20px !important;',
|
|
565
|
+
' font-weight: 600 !important;',
|
|
566
|
+
' color: #000 !important;',
|
|
567
|
+
' margin: 0;',
|
|
568
|
+
' line-height: 1.3;',
|
|
485
569
|
'}',
|
|
486
|
-
|
|
487
|
-
|
|
570
|
+
|
|
571
|
+
// ── V2 描述 ~14px/400/灰色 ──
|
|
572
|
+
'.cl-exec-v2 .cl-exec-agent-bio-v2 {',
|
|
573
|
+
' font-family: "PingFang SC", sans-serif;',
|
|
574
|
+
' font-size: 14px !important;',
|
|
575
|
+
' font-weight: 400;',
|
|
576
|
+
' color: #888 !important;',
|
|
577
|
+
' margin: 0;',
|
|
578
|
+
' line-height: 1.4;',
|
|
488
579
|
'}',
|
|
489
580
|
|
|
490
|
-
// ──
|
|
491
|
-
'
|
|
492
|
-
'
|
|
493
|
-
'
|
|
494
|
-
'
|
|
495
|
-
' display:
|
|
581
|
+
// ── V2 星级右置到卡片右上角 ──
|
|
582
|
+
'.cl-exec-v2 .cl-exec-star-badge-v2 {',
|
|
583
|
+
' position: absolute;',
|
|
584
|
+
' right: 24px;',
|
|
585
|
+
' top: 20px;',
|
|
586
|
+
' display: flex;',
|
|
587
|
+
' align-items: center;',
|
|
588
|
+
' gap: 4px;',
|
|
589
|
+
' padding: 4px 12px;',
|
|
590
|
+
' border-radius: 30px;',
|
|
591
|
+
' background: #ebebeb;',
|
|
592
|
+
' z-index: 1;',
|
|
496
593
|
'}',
|
|
497
|
-
'.cl-
|
|
498
|
-
'
|
|
594
|
+
'.cl-exec-v2 .cl-exec-star-count-v2 {',
|
|
595
|
+
' font-family: "PingFang SC", sans-serif;',
|
|
596
|
+
' font-size: 13px;',
|
|
597
|
+
' font-weight: 500;',
|
|
598
|
+
' color: #555;',
|
|
599
|
+
' white-space: nowrap;',
|
|
499
600
|
'}',
|
|
500
601
|
|
|
501
|
-
// ──
|
|
502
|
-
'.cl-
|
|
503
|
-
'
|
|
602
|
+
// ── V2 Progress Row(Figma 373:9765 — shimmer 渐变文字 + 箭头)──
|
|
603
|
+
'.cl-exec-v2 .cl-exec-progress-row-v2 {',
|
|
604
|
+
' display: flex;',
|
|
605
|
+
' align-items: center;',
|
|
606
|
+
' gap: 2px;',
|
|
607
|
+
' margin-top: 16px;',
|
|
608
|
+
' padding: 0 4px;',
|
|
609
|
+
'}',
|
|
610
|
+
'.cl-exec-v2 .cl-exec-progress-row-v2 .cl-exec-progress-text {',
|
|
504
611
|
' font-family: "PingFang SC", sans-serif;',
|
|
505
|
-
' font-size:
|
|
506
|
-
'
|
|
507
|
-
'
|
|
508
|
-
'
|
|
612
|
+
' font-size: 14px;',
|
|
613
|
+
' font-weight: 400;',
|
|
614
|
+
' line-height: 1.2;',
|
|
615
|
+
' margin: 0;',
|
|
616
|
+
' white-space: nowrap;',
|
|
617
|
+
' background-image: linear-gradient(90deg, #555 0%, #555 36%, #eee 55%, #555 77%, #555 100%);',
|
|
618
|
+
' background-size: 200% 100%;',
|
|
619
|
+
' -webkit-background-clip: text;',
|
|
620
|
+
' background-clip: text;',
|
|
621
|
+
' -webkit-text-fill-color: transparent;',
|
|
622
|
+
' animation: cl-progress-shimmer 2.5s ease-in-out infinite;',
|
|
623
|
+
'}',
|
|
624
|
+
'.cl-exec-v2 .cl-exec-progress-row-v2 .cl-exec-progress-arrow {',
|
|
625
|
+
' display: flex;',
|
|
626
|
+
' align-items: center;',
|
|
627
|
+
' flex-shrink: 0;',
|
|
628
|
+
' opacity: 1;',
|
|
509
629
|
'}',
|
|
510
|
-
|
|
630
|
+
|
|
631
|
+
// ── V2 隐藏旧版 name-row(星级原来在名称旁边)──
|
|
632
|
+
'.cl-exec-v2 .cl-exec-name-row,',
|
|
633
|
+
'.cl-exec-v2 .cl-exec-star-badge:not(.cl-exec-star-badge-v2) {',
|
|
511
634
|
' display: none !important;',
|
|
512
635
|
'}',
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
'
|
|
516
|
-
'
|
|
517
|
-
' overflow-x: hidden;',
|
|
518
|
-
' box-sizing: border-box;',
|
|
519
|
-
' margin-top: 0;',
|
|
520
|
-
' padding: 6px 30px 24px 18px;',
|
|
521
|
-
' border: 0;',
|
|
522
|
-
' border-radius: 0;',
|
|
523
|
-
' background: transparent;',
|
|
524
|
-
' font-size: 14.25px;',
|
|
525
|
-
' line-height: 1.42;',
|
|
526
|
-
' color: rgba(47,47,51,0.50);',
|
|
527
|
-
' scrollbar-width: thin;',
|
|
528
|
-
' scrollbar-color: #ECECEC transparent;',
|
|
529
|
-
'}',
|
|
530
|
-
'.cl-remote-agent-card:has(.cl-output-result) .cl-output-result::-webkit-scrollbar {',
|
|
531
|
-
' width: 4.5px;',
|
|
636
|
+
|
|
637
|
+
// ─ V2 步骤列表样式(覆盖 thought-chain-card.js 默认值)──
|
|
638
|
+
'.cl-exec-v2 .cl-tools-collapse-body-v2 {',
|
|
639
|
+
' padding: 4px 0 8px;',
|
|
532
640
|
'}',
|
|
533
|
-
'.cl-
|
|
534
|
-
'
|
|
641
|
+
'.cl-exec-v2 .cl-tools-collapse-step {',
|
|
642
|
+
' padding: 5px 0;',
|
|
643
|
+
' gap: 10px;',
|
|
535
644
|
'}',
|
|
536
|
-
'.cl-
|
|
537
|
-
'
|
|
538
|
-
'
|
|
645
|
+
'.cl-exec-v2 .cl-tools-collapse-step-title {',
|
|
646
|
+
' font-size: 13px;',
|
|
647
|
+
' color: #555;',
|
|
539
648
|
'}',
|
|
540
|
-
'.cl-
|
|
541
|
-
'
|
|
542
|
-
'
|
|
543
|
-
'
|
|
544
|
-
' font-weight: 600;',
|
|
545
|
-
' line-height: 1.2;',
|
|
546
|
-
' color: rgba(47,47,51,0.90);',
|
|
649
|
+
'.cl-exec-v2 .cl-tools-collapse-step-check {',
|
|
650
|
+
' width: 12px;',
|
|
651
|
+
' height: 12px;',
|
|
652
|
+
' background: #ccc;',
|
|
547
653
|
'}',
|
|
548
|
-
'.cl-
|
|
549
|
-
'
|
|
550
|
-
'
|
|
654
|
+
'.cl-exec-v2 .cl-tools-collapse-step-dot {',
|
|
655
|
+
' width: 14px;',
|
|
656
|
+
' height: 14px;',
|
|
551
657
|
'}',
|
|
552
|
-
'.cl-
|
|
553
|
-
'
|
|
554
|
-
'
|
|
555
|
-
'
|
|
556
|
-
'
|
|
557
|
-
'
|
|
558
|
-
'}',
|
|
559
|
-
'.cl-remote-agent-card:has(.cl-output-result) .cl-output-result p,',
|
|
560
|
-
'.cl-remote-agent-card:has(.cl-output-result) .cl-output-result li {',
|
|
561
|
-
' font-size: 14.25px;',
|
|
562
|
-
' line-height: 1.42;',
|
|
563
|
-
' color: rgba(47,47,51,0.50);',
|
|
564
|
-
'}',
|
|
565
|
-
'.cl-remote-agent-card:has(.cl-output-result) .cl-output-result strong,',
|
|
566
|
-
'.cl-remote-agent-card:has(.cl-output-result) .cl-output-result b,',
|
|
567
|
-
'.cl-remote-agent-card:has(.cl-output-result) .cl-output-result a {',
|
|
568
|
-
' color: rgba(47,47,51,0.90) !important;',
|
|
569
|
-
' font-weight: 600;',
|
|
570
|
-
'}',
|
|
571
|
-
'.cl-remote-agent-card:has(.cl-output-result) .cl-output-result ul,',
|
|
572
|
-
'.cl-remote-agent-card:has(.cl-output-result) .cl-output-result ol {',
|
|
573
|
-
' padding-left: 20px;',
|
|
574
|
-
' margin: 6px 0;',
|
|
575
|
-
'}',
|
|
576
|
-
'.cl-remote-agent-card:has(.cl-output-result) .cl-output-result hr {',
|
|
577
|
-
' border: 0;',
|
|
578
|
-
' border-top: 1px solid rgba(47,47,51,0.12);',
|
|
579
|
-
' margin: 15px 0;',
|
|
580
|
-
'}',
|
|
581
|
-
'.cl-output-result p { margin: 4px 0; }',
|
|
582
|
-
'.cl-output-result ul, .cl-output-result ol { padding-left: 20px; margin: 4px 0; }',
|
|
583
|
-
'.cl-output-result code {',
|
|
584
|
-
' background: rgba(0,0,0,0.05);',
|
|
585
|
-
' padding: 1px 4px;',
|
|
586
|
-
' border-radius: 3px;',
|
|
587
|
-
' font-size: 12px;',
|
|
658
|
+
'.cl-exec-v2 .cl-tools-collapse-step-dot::before,',
|
|
659
|
+
'.cl-exec-v2 .cl-tools-collapse-step-dot::after,',
|
|
660
|
+
'.cl-exec-v2 .cl-tools-collapse-step-dot span {',
|
|
661
|
+
' width: 3px;',
|
|
662
|
+
' height: 3px;',
|
|
663
|
+
' background: #bbb;',
|
|
588
664
|
'}',
|
|
589
665
|
|
|
590
|
-
// ──
|
|
591
|
-
'.cl-
|
|
666
|
+
// ── V2 Footer(-由xxx完成 + 星级)──
|
|
667
|
+
'.cl-exec-v2 .cl-output-footer-v2 {',
|
|
592
668
|
' display: flex;',
|
|
593
|
-
' flex-wrap: wrap;',
|
|
594
|
-
' gap: 8px;',
|
|
595
|
-
' width: 100%;',
|
|
596
|
-
' box-sizing: border-box;',
|
|
597
|
-
' padding: 6px 18px 12px;',
|
|
598
|
-
'}',
|
|
599
|
-
'.cl-openagent-media-link {',
|
|
600
|
-
' display: inline-grid;',
|
|
601
|
-
' grid-template-columns: auto auto;',
|
|
602
|
-
' grid-template-areas: "icon action" "icon file";',
|
|
603
669
|
' align-items: center;',
|
|
604
|
-
'
|
|
605
|
-
' row-gap: 1px;',
|
|
606
|
-
' max-width: min(100%, 360px);',
|
|
607
|
-
' box-sizing: border-box;',
|
|
608
|
-
' padding: 8px 10px;',
|
|
609
|
-
' border: 1px solid rgba(47,47,51,0.12);',
|
|
610
|
-
' border-radius: 8px;',
|
|
611
|
-
' background: rgba(47,47,51,0.03);',
|
|
612
|
-
' color: rgba(47,47,51,0.90) !important;',
|
|
613
|
-
' text-decoration: none !important;',
|
|
670
|
+
' gap: 4px;',
|
|
614
671
|
' font-family: "PingFang SC", sans-serif;',
|
|
615
|
-
'}',
|
|
616
|
-
'.cl-openagent-media-link:hover {',
|
|
617
|
-
' background: rgba(16,189,235,0.08);',
|
|
618
|
-
' border-color: rgba(16,189,235,0.35);',
|
|
619
|
-
'}',
|
|
620
|
-
'.cl-openagent-media-link-icon {',
|
|
621
|
-
' grid-area: icon;',
|
|
622
|
-
' width: 28px;',
|
|
623
|
-
' height: 28px;',
|
|
624
|
-
' border-radius: 6px;',
|
|
625
|
-
' background: rgba(16,189,235,0.12);',
|
|
626
|
-
' color: #088BAE;',
|
|
627
|
-
' display: inline-flex;',
|
|
628
|
-
' align-items: center;',
|
|
629
|
-
' justify-content: center;',
|
|
630
|
-
' font-size: 11px;',
|
|
631
|
-
' font-weight: 700;',
|
|
632
|
-
'}',
|
|
633
|
-
'.cl-openagent-media-link-text {',
|
|
634
|
-
' grid-area: action;',
|
|
635
|
-
' min-width: 0;',
|
|
636
672
|
' font-size: 13px;',
|
|
637
|
-
'
|
|
638
|
-
'
|
|
673
|
+
' color: #999;',
|
|
674
|
+
' padding: 12px;',
|
|
675
|
+
' margin-top: 8px;',
|
|
639
676
|
'}',
|
|
640
|
-
'.cl-
|
|
641
|
-
' grid-area: file;',
|
|
642
|
-
' min-width: 0;',
|
|
643
|
-
' overflow: hidden;',
|
|
644
|
-
' text-overflow: ellipsis;',
|
|
677
|
+
'.cl-exec-v2 .cl-output-footer-v2 .cl-output-footer-text {',
|
|
645
678
|
' white-space: nowrap;',
|
|
646
|
-
' font-size: 11px;',
|
|
647
|
-
' line-height: 1.2;',
|
|
648
|
-
' color: rgba(47,47,51,0.50);',
|
|
649
679
|
'}',
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
'
|
|
653
|
-
'
|
|
654
|
-
'
|
|
655
|
-
'}',
|
|
656
|
-
|
|
657
|
-
// ── Header 折叠/展开 ──
|
|
658
|
-
'.cl-openagent-header:hover {',
|
|
659
|
-
' background: color-mix(in srgb, var(--bg-hover, #ECEDF0) 75%, transparent);',
|
|
660
|
-
' transition: background 0.15s ease;',
|
|
680
|
+
'.cl-exec-v2 .cl-output-footer-v2 .cl-output-footer-star {',
|
|
681
|
+
' display: flex;',
|
|
682
|
+
' align-items: center;',
|
|
683
|
+
' flex-shrink: 0;',
|
|
684
|
+
' margin-left: 2px;',
|
|
661
685
|
'}',
|
|
662
|
-
'.cl-
|
|
663
|
-
'
|
|
686
|
+
'.cl-exec-v2 .cl-output-footer-v2 .cl-output-footer-count {',
|
|
687
|
+
' font-weight: 500;',
|
|
688
|
+
' white-space: nowrap;',
|
|
664
689
|
'}',
|
|
665
690
|
].join('\n');
|
|
666
691
|
document.head.appendChild(style);
|