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
|
@@ -16,80 +16,39 @@ function injectStyles() {
|
|
|
16
16
|
border-color: #3b82f6;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
/* ── @ Agent Book 按钮(Figma
|
|
19
|
+
/* ── @ Agent Book 按钮(Figma 129:955 Frame 72552 — 紫色渐变) ── */
|
|
20
20
|
.openagent-at-btn {
|
|
21
21
|
position: relative;
|
|
22
|
-
overflow: hidden;
|
|
22
|
+
overflow: hidden;
|
|
23
23
|
display: inline-flex;
|
|
24
24
|
align-items: center;
|
|
25
25
|
justify-content: center;
|
|
26
26
|
gap: 4px;
|
|
27
|
-
height:
|
|
28
|
-
padding: 0
|
|
29
|
-
border-radius:
|
|
27
|
+
height: 27px;
|
|
28
|
+
padding: 0 12px;
|
|
29
|
+
border-radius: 150px;
|
|
30
30
|
border: none;
|
|
31
|
-
background: #
|
|
32
|
-
box-shadow: inset 0 0 8.5px 0 #96ECFF; /* Figma INNER_SHADOW */
|
|
31
|
+
background: linear-gradient(90deg, #5c4aff 0%, #8274ff 100%);
|
|
33
32
|
color: #fff;
|
|
34
|
-
font-size:
|
|
35
|
-
font-weight:
|
|
33
|
+
font-size: 12px;
|
|
34
|
+
font-weight: 500;
|
|
36
35
|
cursor: pointer;
|
|
37
36
|
transition: all 0.2s ease;
|
|
38
|
-
line-height:
|
|
37
|
+
line-height: 27px;
|
|
39
38
|
margin-left: 6px;
|
|
40
39
|
white-space: nowrap;
|
|
41
40
|
flex-shrink: 0;
|
|
42
41
|
letter-spacing: 0.2px;
|
|
43
|
-
|
|
44
|
-
z-index: 1;
|
|
45
|
-
isolation: isolate;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/* Figma 外层 Ellipse 12873:蓝色椭圆,偏左 */
|
|
49
|
-
.openagent-at-btn::before {
|
|
50
|
-
content: '';
|
|
51
|
-
position: absolute;
|
|
52
|
-
left: -13%;
|
|
53
|
-
top: -98%;
|
|
54
|
-
width: 50%;
|
|
55
|
-
height: 304%;
|
|
56
|
-
background: #7A94FF;
|
|
57
|
-
filter: blur(23px); /* Figma LAYER_BLUR: 23.2px */
|
|
58
|
-
transform: rotate(174deg);
|
|
59
|
-
z-index: -1;
|
|
60
|
-
pointer-events: none;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/* Figma 外层 Ellipse 12872:黄绿色椭圆,偏右 */
|
|
64
|
-
.openagent-at-btn::after {
|
|
65
|
-
content: '';
|
|
66
|
-
position: absolute;
|
|
67
|
-
left: 70%;
|
|
68
|
-
top: -49%;
|
|
69
|
-
width: 54%;
|
|
70
|
-
height: 145%;
|
|
71
|
-
background: #A1FF2E;
|
|
72
|
-
filter: blur(30.5px); /* Figma LAYER_BLUR: 30.5px */
|
|
73
|
-
transform: rotate(27deg);
|
|
74
|
-
z-index: -1;
|
|
75
|
-
pointer-events: none;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/* 确保文字始终在最高层 */
|
|
79
|
-
.openagent-at-btn .at-sym,
|
|
80
|
-
.openagent-at-btn span {
|
|
81
|
-
position: relative;
|
|
82
|
-
z-index: 2;
|
|
42
|
+
font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
83
43
|
}
|
|
84
44
|
|
|
85
45
|
.openagent-at-btn:hover {
|
|
86
|
-
filter: brightness(1.08);
|
|
87
46
|
transform: translateY(-1px);
|
|
88
|
-
box-shadow: inset 0 0
|
|
47
|
+
box-shadow: inset 0 0 6px 1px rgba(255, 255, 255, 0.65);
|
|
89
48
|
}
|
|
90
49
|
.openagent-at-btn .at-sym {
|
|
91
|
-
font-size:
|
|
92
|
-
font-weight:
|
|
50
|
+
font-size: 11.6px;
|
|
51
|
+
font-weight: 500;
|
|
93
52
|
color: #fff;
|
|
94
53
|
}
|
|
95
54
|
|
|
@@ -112,8 +71,8 @@ function injectStyles() {
|
|
|
112
71
|
position: fixed;
|
|
113
72
|
max-height: none;
|
|
114
73
|
background: var(--oa-panel-bg, #fff);
|
|
115
|
-
border:
|
|
116
|
-
border-radius:
|
|
74
|
+
border: 0.5px solid #dbdbdb;
|
|
75
|
+
border-radius: 16px;
|
|
117
76
|
box-shadow: 0 -4px 24px var(--oa-shadow-color, rgba(0,0,0,0.08)), 0 2px 8px var(--oa-shadow-color, rgba(0,0,0,0.04));
|
|
118
77
|
z-index: 99999;
|
|
119
78
|
overflow: hidden;
|
|
@@ -158,9 +117,8 @@ function injectStyles() {
|
|
|
158
117
|
flex-shrink: 0;
|
|
159
118
|
}
|
|
160
119
|
.openagent-panel-close {
|
|
161
|
-
background:
|
|
120
|
+
background: transparent;
|
|
162
121
|
border: none;
|
|
163
|
-
color: rgba(47, 47, 51, 0.6);
|
|
164
122
|
cursor: pointer;
|
|
165
123
|
width: 21px;
|
|
166
124
|
height: 21px;
|
|
@@ -176,7 +134,6 @@ function injectStyles() {
|
|
|
176
134
|
}
|
|
177
135
|
.openagent-panel-close:hover {
|
|
178
136
|
background: #eee;
|
|
179
|
-
color: rgba(47, 47, 51, 1);
|
|
180
137
|
}
|
|
181
138
|
|
|
182
139
|
/* ── 分隔线(Figma: 0.2px, opacity 0.16) ── */
|
|
@@ -187,6 +144,174 @@ function injectStyles() {
|
|
|
187
144
|
margin: 0;
|
|
188
145
|
}
|
|
189
146
|
|
|
147
|
+
/* ── 提示栏(Figma 141:3293,页面加载即显示) ── */
|
|
148
|
+
.openagent-hint-bar {
|
|
149
|
+
display: flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
justify-content: space-between;
|
|
152
|
+
padding: 12px 12px;
|
|
153
|
+
margin-bottom: 12px;
|
|
154
|
+
background: #fff;
|
|
155
|
+
border: 1.2px solid rgba(47, 47, 51, 0.1);
|
|
156
|
+
border-radius: var(--radius-lg, 18px);
|
|
157
|
+
gap: 12px;
|
|
158
|
+
width: 100%;
|
|
159
|
+
box-sizing: border-box;
|
|
160
|
+
margin:0 auto;
|
|
161
|
+
margin-bottom: 12px;
|
|
162
|
+
}
|
|
163
|
+
.openagent-hint-bar__content {
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
gap: 9px;
|
|
167
|
+
flex: 1;
|
|
168
|
+
min-width: 0;
|
|
169
|
+
}
|
|
170
|
+
.openagent-hint-bar__icon {
|
|
171
|
+
display: flex;
|
|
172
|
+
align-items: center;
|
|
173
|
+
justify-content: center;
|
|
174
|
+
width: 27px;
|
|
175
|
+
height: 27px;
|
|
176
|
+
border-radius: 6px;
|
|
177
|
+
background: linear-gradient(135deg, rgba(130,116,255,0.1) 0%, rgba(56,144,255,0.1) 100%);
|
|
178
|
+
flex-shrink: 0;
|
|
179
|
+
}
|
|
180
|
+
.openagent-hint-bar__text {
|
|
181
|
+
font-family: "PingFang SC", sans-serif;
|
|
182
|
+
font-size: 15px;
|
|
183
|
+
font-weight: 400;
|
|
184
|
+
color: rgba(51, 51, 51, 0.8);
|
|
185
|
+
white-space: nowrap;
|
|
186
|
+
overflow: hidden;
|
|
187
|
+
text-overflow: ellipsis;
|
|
188
|
+
}
|
|
189
|
+
.openagent-hint-bar__close {
|
|
190
|
+
display: flex;
|
|
191
|
+
align-items: center;
|
|
192
|
+
justify-content: center;
|
|
193
|
+
width: 21px;
|
|
194
|
+
height: 21px;
|
|
195
|
+
padding: 0;
|
|
196
|
+
border: none;
|
|
197
|
+
background: transparent;
|
|
198
|
+
cursor: pointer;
|
|
199
|
+
flex-shrink: 0;
|
|
200
|
+
border-radius: 4px;
|
|
201
|
+
transition: all 0.1s;
|
|
202
|
+
}
|
|
203
|
+
.openagent-hint-bar__close:hover {
|
|
204
|
+
background: #eee;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* 暗色主题 */
|
|
208
|
+
[data-theme-mode="dark"] .openagent-hint-bar,
|
|
209
|
+
[data-theme="dark"] .openagent-hint-bar {
|
|
210
|
+
background: #1c1c1c;
|
|
211
|
+
border-color: rgba(255,255,255,0.1);
|
|
212
|
+
}
|
|
213
|
+
[data-theme-mode="dark"] .openagent-hint-bar__text,
|
|
214
|
+
[data-theme="dark"] .openagent-hint-bar__text {
|
|
215
|
+
color: rgba(224, 224, 224, 0.8);
|
|
216
|
+
}
|
|
217
|
+
[data-theme-mode="dark"] .openagent-hint-bar__close,
|
|
218
|
+
[data-theme="dark"] .openagent-hint-bar__close {
|
|
219
|
+
}
|
|
220
|
+
[data-theme-mode="dark"] .openagent-hint-bar__close:hover,
|
|
221
|
+
[data-theme="dark"] .openagent-hint-bar__close:hover {
|
|
222
|
+
background: #333;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* ── 空状态独立浮层(Figma 144:3444) ── */
|
|
226
|
+
.openagent-empty-toast {
|
|
227
|
+
display: flex;
|
|
228
|
+
align-items: center;
|
|
229
|
+
gap: 9px;
|
|
230
|
+
padding: 18px;
|
|
231
|
+
background: #fff;
|
|
232
|
+
border: 1.2px solid rgba(47, 47, 51, 0.1);
|
|
233
|
+
border-radius: 18px;
|
|
234
|
+
box-sizing: border-box;
|
|
235
|
+
animation: openagent-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
236
|
+
box-shadow: 0 -4px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
|
|
237
|
+
}
|
|
238
|
+
[data-theme-mode="dark"] .openagent-empty-toast,
|
|
239
|
+
[data-theme="dark"] .openagent-empty-toast {
|
|
240
|
+
background: #1c1c1c; border-color: rgba(255,255,255,0.1);
|
|
241
|
+
box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
|
|
242
|
+
}
|
|
243
|
+
[data-theme-mode="dark"] .openagent-empty-toast .openagent-empty-state__text,
|
|
244
|
+
[data-theme="dark"] .openagent-empty-toast .openagent-empty-state__text {
|
|
245
|
+
color: rgba(224, 224, 224, 0.8);
|
|
246
|
+
}
|
|
247
|
+
[data-theme-mode="dark"] .openagent-empty-toast .openagent-empty-state__close,
|
|
248
|
+
[data-theme="dark"] .openagent-empty-toast .openagent-empty-state__close {
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* ── 空状态(Figma 144:3444)— 无匹配结果 ── */
|
|
252
|
+
.openagent-empty-state {
|
|
253
|
+
padding: 18px;
|
|
254
|
+
background: #fff;
|
|
255
|
+
border: 1.2px solid rgba(47, 47, 51, 0.1);
|
|
256
|
+
border-radius: 18px;
|
|
257
|
+
}
|
|
258
|
+
.openagent-empty-state__row {
|
|
259
|
+
display: flex;
|
|
260
|
+
align-items: flex-start;
|
|
261
|
+
justify-content: space-between;
|
|
262
|
+
gap: 9px;
|
|
263
|
+
}
|
|
264
|
+
.openagent-empty-state__icon {
|
|
265
|
+
display: flex;
|
|
266
|
+
align-items: center;
|
|
267
|
+
justify-content: center;
|
|
268
|
+
width: 27px;
|
|
269
|
+
height: 27px;
|
|
270
|
+
border-radius: 6px;
|
|
271
|
+
background: linear-gradient(135deg, rgba(92,74,255,0.1) 0%, rgba(130,116,255,0.1) 100%);
|
|
272
|
+
flex-shrink: 0;
|
|
273
|
+
}
|
|
274
|
+
.openagent-empty-state__text {
|
|
275
|
+
flex: 1;
|
|
276
|
+
font-family: "PingFang SC", sans-serif;
|
|
277
|
+
font-size: 15px;
|
|
278
|
+
font-weight: 400;
|
|
279
|
+
color: rgba(51, 51, 51, 0.8);
|
|
280
|
+
line-height: 1.5;
|
|
281
|
+
}
|
|
282
|
+
.openagent-empty-state__close {
|
|
283
|
+
display: flex;
|
|
284
|
+
align-items: center;
|
|
285
|
+
justify-content: center;
|
|
286
|
+
width: 21px;
|
|
287
|
+
height: 21px;
|
|
288
|
+
padding: 0;
|
|
289
|
+
border: none;
|
|
290
|
+
background: transparent;
|
|
291
|
+
cursor: pointer;
|
|
292
|
+
flex-shrink: 0;
|
|
293
|
+
border-radius: 4px;
|
|
294
|
+
}
|
|
295
|
+
.openagent-empty-state__close:hover {
|
|
296
|
+
background: #eee;
|
|
297
|
+
}
|
|
298
|
+
[data-theme-mode="dark"] .openagent-empty-state,
|
|
299
|
+
[data-theme="dark"] .openagent-empty-state {
|
|
300
|
+
background: #1c1c1c;
|
|
301
|
+
border-color: rgba(255,255,255,0.1);
|
|
302
|
+
}
|
|
303
|
+
[data-theme-mode="dark"] .openagent-empty-state__text,
|
|
304
|
+
[data-theme="dark"] .openagent-empty-state__text {
|
|
305
|
+
color: rgba(224, 224, 224, 0.8);
|
|
306
|
+
}
|
|
307
|
+
[data-theme-mode="dark"] .openagent-empty-state__close,
|
|
308
|
+
[data-theme="dark"] .openagent-empty-state__close {
|
|
309
|
+
}
|
|
310
|
+
[data-theme-mode="dark"] .openagent-empty-state__close:hover,
|
|
311
|
+
[data-theme="dark"] .openagent-empty-state__close:hover {
|
|
312
|
+
background: #333;
|
|
313
|
+
}
|
|
314
|
+
|
|
190
315
|
/* ── Agent 列表(section stack) ── */
|
|
191
316
|
.openagent-agent-list {
|
|
192
317
|
overflow-y: auto;
|
|
@@ -242,9 +367,9 @@ function injectStyles() {
|
|
|
242
367
|
|
|
243
368
|
/* ── 分组标题 ── */
|
|
244
369
|
.openagent-section-heading {
|
|
245
|
-
font-size:
|
|
370
|
+
font-size: 16px;
|
|
246
371
|
font-weight: 400;
|
|
247
|
-
line-height:
|
|
372
|
+
line-height: 16px;
|
|
248
373
|
color: rgba(47, 47, 51, 0.80);
|
|
249
374
|
padding: 0 12px 0 12px;
|
|
250
375
|
letter-spacing: 0;
|
|
@@ -315,6 +440,23 @@ function injectStyles() {
|
|
|
315
440
|
gap: 0;
|
|
316
441
|
flex-wrap: wrap;
|
|
317
442
|
}
|
|
443
|
+
/* 星标+数字 紧密组合(Figma gap 1.5px) */
|
|
444
|
+
.agent-card__stat-group {
|
|
445
|
+
display: flex;
|
|
446
|
+
align-items: center;
|
|
447
|
+
gap: 1.5px;
|
|
448
|
+
}
|
|
449
|
+
.agent-card__stat-icon {
|
|
450
|
+
display: inline-flex;
|
|
451
|
+
align-items: center;
|
|
452
|
+
justify-content: center;
|
|
453
|
+
width: 12px;
|
|
454
|
+
height: 12px;
|
|
455
|
+
font-size: 14px;
|
|
456
|
+
line-height: 1;
|
|
457
|
+
color: #666;
|
|
458
|
+
flex-shrink: 0;
|
|
459
|
+
}
|
|
318
460
|
.agent-card__stat {
|
|
319
461
|
font-family: "PingFang SC", sans-serif;
|
|
320
462
|
font-size: 13.5px;
|
|
@@ -340,96 +482,80 @@ function injectStyles() {
|
|
|
340
482
|
white-space: nowrap;
|
|
341
483
|
}
|
|
342
484
|
|
|
343
|
-
/* ── mode: mention(Figma Agent
|
|
485
|
+
/* ── mode: mention(Figma Agent 卡片 142:3392) ── */
|
|
344
486
|
.agent-card--mention {
|
|
345
487
|
flex-direction: row;
|
|
346
|
-
align-items:
|
|
347
|
-
gap:
|
|
348
|
-
padding:
|
|
349
|
-
border-radius:
|
|
350
|
-
border:
|
|
351
|
-
background:
|
|
352
|
-
min-height:
|
|
488
|
+
align-items: center;
|
|
489
|
+
gap: 10px;
|
|
490
|
+
padding: 15px;
|
|
491
|
+
border-radius: 20px;
|
|
492
|
+
border: 0.5px solid #dbdbdb;
|
|
493
|
+
background: #fff;
|
|
494
|
+
min-height: 0;
|
|
353
495
|
min-width: 0;
|
|
496
|
+
box-sizing: border-box;
|
|
354
497
|
}
|
|
355
498
|
.agent-card--mention:hover {
|
|
356
499
|
background: rgba(0, 0, 0, 0.02);
|
|
357
500
|
}
|
|
358
|
-
/*
|
|
359
|
-
.agent-card--mention.openagent-card-selected {
|
|
360
|
-
background: rgba(99, 102, 241, 0.06);
|
|
361
|
-
outline: 2px solid rgba(99, 102, 241, 0.3);
|
|
362
|
-
outline-offset: -2px;
|
|
363
|
-
}
|
|
364
|
-
[data-theme-mode="dark"] .agent-card--mention.openagent-card-selected {
|
|
365
|
-
background: rgba(99, 102, 241, 0.12);
|
|
366
|
-
outline-color: rgba(99, 102, 241, 0.4);
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
/* avart 外壳: Figma px 12, centered */
|
|
501
|
+
/* avart 外壳简化 — 不再需要 */
|
|
370
502
|
.agent-card--mention .agent-card__avart {
|
|
371
|
-
display:
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
gap: 0;
|
|
375
|
-
padding: 0 10px;
|
|
376
|
-
flex: 1;
|
|
503
|
+
display: contents;
|
|
504
|
+
padding: 0;
|
|
505
|
+
flex: none;
|
|
377
506
|
min-width: 0;
|
|
378
|
-
box-sizing: border-box;
|
|
379
507
|
}
|
|
380
508
|
|
|
381
|
-
/* 第一行:
|
|
509
|
+
/* 第一行: 内容区 + 按钮 */
|
|
382
510
|
.agent-card--mention .agent-card__row1 {
|
|
383
|
-
display:
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
gap: 16px;
|
|
387
|
-
width: 100%;
|
|
511
|
+
display: contents;
|
|
512
|
+
gap: 0;
|
|
513
|
+
width: auto;
|
|
388
514
|
min-width: 0;
|
|
389
515
|
}
|
|
390
516
|
|
|
391
|
-
/* 内容组:
|
|
517
|
+
/* 内容组: 头像 + 信息列 */
|
|
392
518
|
.agent-card--mention .agent-card__content-group {
|
|
393
519
|
display: flex;
|
|
394
520
|
flex-direction: row;
|
|
395
|
-
align-items:
|
|
396
|
-
gap:
|
|
521
|
+
align-items: center;
|
|
522
|
+
gap: 10px;
|
|
397
523
|
flex: 1;
|
|
398
524
|
min-width: 0;
|
|
399
525
|
}
|
|
400
526
|
|
|
401
|
-
/*
|
|
527
|
+
/* 头像: 50×50 */
|
|
402
528
|
.agent-card--mention .agent-card__avatar {
|
|
403
|
-
width:
|
|
404
|
-
height:
|
|
529
|
+
width: 50px;
|
|
530
|
+
height: 50px;
|
|
405
531
|
border-radius: 50%;
|
|
406
532
|
border: none;
|
|
407
533
|
flex-shrink: 0;
|
|
408
534
|
margin-top: 0;
|
|
409
535
|
}
|
|
410
536
|
|
|
411
|
-
/*
|
|
537
|
+
/* 信息列 */
|
|
412
538
|
.agent-card--mention .agent-card__info {
|
|
413
539
|
display: flex;
|
|
414
540
|
flex-direction: column;
|
|
415
|
-
gap:
|
|
416
|
-
padding:
|
|
541
|
+
gap: 6px;
|
|
542
|
+
padding: 0;
|
|
417
543
|
flex: 1;
|
|
418
544
|
min-width: 0;
|
|
419
545
|
}
|
|
420
546
|
|
|
421
547
|
.agent-card--mention .agent-card__name {
|
|
422
|
-
font-size:
|
|
548
|
+
font-size: 15px;
|
|
423
549
|
font-weight: 600;
|
|
424
|
-
line-height:
|
|
425
|
-
color:
|
|
550
|
+
line-height: 1;
|
|
551
|
+
color: #333;
|
|
552
|
+
width:200px;
|
|
426
553
|
}
|
|
427
554
|
.agent-card--mention .agent-card__bio {
|
|
428
|
-
font-size:
|
|
555
|
+
font-size: 14px;
|
|
429
556
|
font-weight: 400;
|
|
430
|
-
line-height:
|
|
431
|
-
color: rgba(47, 47, 51, 0.
|
|
432
|
-
text-align: justify;
|
|
557
|
+
line-height: 1.5;
|
|
558
|
+
color: rgba(47, 47, 51, 0.80);
|
|
433
559
|
overflow: hidden;
|
|
434
560
|
text-overflow: ellipsis;
|
|
435
561
|
display: -webkit-box;
|
|
@@ -438,37 +564,31 @@ function injectStyles() {
|
|
|
438
564
|
margin-top: 0;
|
|
439
565
|
}
|
|
440
566
|
|
|
441
|
-
/*
|
|
567
|
+
/* @召唤 按钮 */
|
|
442
568
|
.agent-card--mention .agent-card__action {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
color: rgba(47, 47, 51, 1);
|
|
569
|
+
height: 36px;
|
|
570
|
+
padding: 0 18px;
|
|
571
|
+
border-radius: 23px;
|
|
572
|
+
background: transparent;
|
|
573
|
+
border: 0.5px solid #dbdbdb;
|
|
574
|
+
color: #333;
|
|
450
575
|
font-family: "PingFang SC", sans-serif;
|
|
451
|
-
font-size:
|
|
576
|
+
font-size: 16px;
|
|
452
577
|
font-weight: 500;
|
|
453
|
-
line-height:
|
|
578
|
+
line-height: 15.43px;
|
|
454
579
|
text-transform: capitalize;
|
|
455
580
|
flex-shrink: 0;
|
|
456
581
|
display: inline-flex;
|
|
457
582
|
align-items: center;
|
|
458
583
|
justify-content: center;
|
|
584
|
+
width: auto;
|
|
459
585
|
}
|
|
460
|
-
.agent-card--mention .agent-card__action::before { content:
|
|
586
|
+
.agent-card--mention .agent-card__action::before { content: none; }
|
|
461
587
|
.agent-card--mention .agent-card__action:hover {
|
|
462
|
-
background:
|
|
588
|
+
background: rgba(0, 0, 0, 0.04);
|
|
463
589
|
}
|
|
464
590
|
|
|
465
|
-
/*
|
|
466
|
-
.agent-card--mention .agent-card__row2 {
|
|
467
|
-
display: none;
|
|
468
|
-
flex-direction: row;
|
|
469
|
-
align-items: center;
|
|
470
|
-
padding-left: 60px;
|
|
471
|
-
}
|
|
591
|
+
/* 统计行 */
|
|
472
592
|
.agent-card--mention .agent-card__stats {
|
|
473
593
|
display: flex;
|
|
474
594
|
align-items: center;
|
|
@@ -476,16 +596,21 @@ function injectStyles() {
|
|
|
476
596
|
margin-top: 0;
|
|
477
597
|
}
|
|
478
598
|
.agent-card--mention .agent-card__stat--claws {
|
|
479
|
-
color:
|
|
480
|
-
font-size:
|
|
481
|
-
line-height:
|
|
482
|
-
letter-spacing:
|
|
599
|
+
color: #666;
|
|
600
|
+
font-size: 14px;
|
|
601
|
+
line-height: 1;
|
|
602
|
+
letter-spacing: 1.5px;
|
|
483
603
|
}
|
|
484
604
|
.agent-card--mention .agent-card__stat--owner {
|
|
485
|
-
color:
|
|
486
|
-
font-size:
|
|
487
|
-
line-height:
|
|
488
|
-
letter-spacing:
|
|
605
|
+
color: #666;
|
|
606
|
+
font-size: 14px;
|
|
607
|
+
line-height: 1;
|
|
608
|
+
letter-spacing: 1.5px;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
/* row2 (legacy compat) */
|
|
612
|
+
.agent-card--mention .agent-card__row2 {
|
|
613
|
+
display: none;
|
|
489
614
|
}
|
|
490
615
|
|
|
491
616
|
/* ── mode: search(有输入搜索结果,沿用旧式单列行) ── */
|
|
@@ -495,18 +620,14 @@ function injectStyles() {
|
|
|
495
620
|
width: 100%;
|
|
496
621
|
min-height: 64px;
|
|
497
622
|
padding: 10px 12px;
|
|
498
|
-
border-radius:
|
|
623
|
+
border-radius: 20px;
|
|
499
624
|
background: transparent;
|
|
625
|
+
border: 0.5px solid transparent;
|
|
500
626
|
box-sizing: border-box;
|
|
501
627
|
}
|
|
502
628
|
.agent-card--search:hover {
|
|
503
629
|
background: rgba(0, 0, 0, 0.02);
|
|
504
630
|
}
|
|
505
|
-
.agent-card--search.openagent-card-selected {
|
|
506
|
-
background: rgba(99, 102, 241, 0.06);
|
|
507
|
-
outline: 2px solid rgba(99, 102, 241, 0.3);
|
|
508
|
-
outline-offset: -2px;
|
|
509
|
-
}
|
|
510
631
|
.agent-card--search .agent-card__avatar {
|
|
511
632
|
width: 40px;
|
|
512
633
|
height: 40px;
|
|
@@ -520,48 +641,50 @@ function injectStyles() {
|
|
|
520
641
|
min-width: 0;
|
|
521
642
|
}
|
|
522
643
|
.agent-card--search .agent-card__name {
|
|
523
|
-
font-size:
|
|
644
|
+
font-size: 15px;
|
|
524
645
|
line-height: 16px;
|
|
525
646
|
font-weight: 600;
|
|
526
|
-
color:
|
|
647
|
+
color: #333;
|
|
527
648
|
}
|
|
528
649
|
.agent-card--search .agent-card__bio {
|
|
529
|
-
font-size:
|
|
530
|
-
line-height:
|
|
531
|
-
color: rgba(47, 47, 51, 0.
|
|
650
|
+
font-size: 14px;
|
|
651
|
+
line-height: 1.5;
|
|
652
|
+
color: rgba(47, 47, 51, 0.80);
|
|
532
653
|
-webkit-line-clamp: 1;
|
|
533
654
|
}
|
|
534
655
|
.agent-card--search .agent-card__stats {
|
|
535
656
|
margin-top: 0;
|
|
536
657
|
}
|
|
537
658
|
.agent-card--search .agent-card__stat--claws {
|
|
538
|
-
font-size:
|
|
539
|
-
line-height:
|
|
540
|
-
color:
|
|
659
|
+
font-size: 14px;
|
|
660
|
+
line-height: 1;
|
|
661
|
+
color: #666;
|
|
662
|
+
letter-spacing: 1.5px;
|
|
541
663
|
}
|
|
542
664
|
.agent-card--search .agent-card__stat--owner {
|
|
543
|
-
font-size:
|
|
544
|
-
line-height:
|
|
545
|
-
color:
|
|
665
|
+
font-size: 14px;
|
|
666
|
+
line-height: 1;
|
|
667
|
+
color: #666;
|
|
668
|
+
letter-spacing: 1.5px;
|
|
546
669
|
}
|
|
547
670
|
.agent-card--search .agent-card__action {
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
color: rgba(47, 47, 51, 1);
|
|
671
|
+
height: 36px;
|
|
672
|
+
padding: 0 18px;
|
|
673
|
+
border-radius: 23px;
|
|
674
|
+
background: transparent;
|
|
675
|
+
border: 0.5px solid #dbdbdb;
|
|
676
|
+
color: #333;
|
|
555
677
|
font-family: "PingFang SC", sans-serif;
|
|
556
|
-
font-size:
|
|
557
|
-
|
|
678
|
+
font-size: 16px;
|
|
679
|
+
font-weight: 500;
|
|
680
|
+
line-height: 15.43px;
|
|
558
681
|
display: inline-flex;
|
|
559
682
|
align-items: center;
|
|
560
683
|
justify-content: center;
|
|
561
684
|
}
|
|
562
|
-
.agent-card--search .agent-card__action::before { content:
|
|
685
|
+
.agent-card--search .agent-card__action::before { content: none; }
|
|
563
686
|
.agent-card--search .agent-card__action:hover {
|
|
564
|
-
background:
|
|
687
|
+
background: rgba(0, 0, 0, 0.04);
|
|
565
688
|
}
|
|
566
689
|
|
|
567
690
|
@media (max-width: 980px) {
|
|
@@ -629,9 +752,9 @@ function injectStyles() {
|
|
|
629
752
|
[data-theme-mode="dark"] .openagent-panel-title,
|
|
630
753
|
[data-theme="dark"] .openagent-panel-title { color: rgba(224, 224, 224, 0.8); }
|
|
631
754
|
[data-theme-mode="dark"] .openagent-panel-close,
|
|
632
|
-
[data-theme="dark"] .openagent-panel-close { background: #2a2a2a;
|
|
755
|
+
[data-theme="dark"] .openagent-panel-close { background: #2a2a2a; }
|
|
633
756
|
[data-theme-mode="dark"] .openagent-panel-close:hover,
|
|
634
|
-
[data-theme="dark"] .openagent-panel-close:hover { background: #333;
|
|
757
|
+
[data-theme="dark"] .openagent-panel-close:hover { background: #333; }
|
|
635
758
|
[data-theme-mode="dark"] .openagent-section-heading,
|
|
636
759
|
[data-theme="dark"] .openagent-section-heading { color: rgba(224, 224, 224, 0.45); }
|
|
637
760
|
[data-theme-mode="dark"] .openagent-parent-heading,
|
|
@@ -647,28 +770,39 @@ function injectStyles() {
|
|
|
647
770
|
[data-theme="dark"] .agent-card__stat { color: #64748b; }
|
|
648
771
|
|
|
649
772
|
[data-theme-mode="dark"] .agent-card--mention,
|
|
650
|
-
[data-theme="dark"] .agent-card--mention { background:
|
|
773
|
+
[data-theme="dark"] .agent-card--mention { background: #1c1c1c; border-color: rgba(255,255,255,0.12); }
|
|
651
774
|
[data-theme-mode="dark"] .agent-card--mention:hover,
|
|
652
775
|
[data-theme="dark"] .agent-card--mention:hover { background: #252525; }
|
|
776
|
+
[data-theme-mode="dark"] .agent-card--mention .agent-card__name,
|
|
777
|
+
[data-theme="dark"] .agent-card--mention .agent-card__name { color: #e0e0e0; }
|
|
778
|
+
[data-theme-mode="dark"] .agent-card--mention .agent-card__bio,
|
|
779
|
+
[data-theme="dark"] .agent-card--mention .agent-card__bio { color: rgba(224,224,224,0.7); }
|
|
780
|
+
[data-theme-mode="dark"] .agent-card--mention .agent-card__stat--claws,
|
|
781
|
+
[data-theme="dark"] .agent-card--mention .agent-card__stat--claws { color: #aaa; }
|
|
782
|
+
[data-theme-mode="dark"] .agent-card--mention .agent-card__stat--owner,
|
|
783
|
+
[data-theme="dark"] .agent-card--mention .agent-card__stat--owner { color: #aaa; }
|
|
653
784
|
[data-theme-mode="dark"] .agent-card--mention .agent-card__action,
|
|
654
785
|
[data-theme="dark"] .agent-card--mention .agent-card__action {
|
|
655
|
-
background:
|
|
786
|
+
background: transparent; border-color: rgba(255,255,255,0.2); color: #ddd;
|
|
656
787
|
}
|
|
657
788
|
[data-theme-mode="dark"] .agent-card--mention .agent-card__action:hover,
|
|
658
|
-
[data-theme="dark"] .agent-card--mention .agent-card__action:hover { background:
|
|
789
|
+
[data-theme="dark"] .agent-card--mention .agent-card__action:hover { background: rgba(255,255,255,0.06); }
|
|
659
790
|
[data-theme-mode="dark"] .agent-card--search:hover,
|
|
660
791
|
[data-theme="dark"] .agent-card--search:hover { background: #252525; }
|
|
661
|
-
[data-theme-mode="dark"] .agent-card--search.
|
|
662
|
-
[data-theme="dark"] .agent-card--search.
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
792
|
+
[data-theme-mode="dark"] .agent-card--search .agent-card__name,
|
|
793
|
+
[data-theme="dark"] .agent-card--search .agent-card__name { color: #e0e0e0; }
|
|
794
|
+
[data-theme-mode="dark"] .agent-card--search .agent-card__bio,
|
|
795
|
+
[data-theme="dark"] .agent-card--search .agent-card__bio { color: rgba(224, 224, 224, 0.65); }
|
|
796
|
+
[data-theme-mode="dark"] .agent-card--search .agent-card__stat--claws,
|
|
797
|
+
[data-theme="dark"] .agent-card--search .agent-card__stat--claws { color: #aaa; }
|
|
798
|
+
[data-theme-mode="dark"] .agent-card--search .agent-card__stat--owner,
|
|
799
|
+
[data-theme="dark"] .agent-card--search .agent-card__stat--owner { color: #aaa; }
|
|
666
800
|
[data-theme-mode="dark"] .agent-card--search .agent-card__action,
|
|
667
801
|
[data-theme="dark"] .agent-card--search .agent-card__action {
|
|
668
|
-
background:
|
|
802
|
+
background: transparent; border-color: rgba(255,255,255,0.2); color: #ddd;
|
|
669
803
|
}
|
|
670
804
|
[data-theme-mode="dark"] .agent-card--search .agent-card__action:hover,
|
|
671
|
-
[data-theme="dark"] .agent-card--search .agent-card__action:hover { background:
|
|
805
|
+
[data-theme="dark"] .agent-card--search .agent-card__action:hover { background: rgba(255,255,255,0.06); }
|
|
672
806
|
|
|
673
807
|
|
|
674
808
|
[data-theme-mode="dark"] .agent-card--inline,
|
|
@@ -686,6 +820,7 @@ function injectStyles() {
|
|
|
686
820
|
[data-theme="dark"] .agent-card__loading {
|
|
687
821
|
background: #1e1b3a; border-color: #2d2b55; color: #64748b;
|
|
688
822
|
}
|
|
689
|
-
|
|
823
|
+
|
|
824
|
+
`;
|
|
690
825
|
document.head.appendChild(style);
|
|
691
826
|
}
|