cladogram 0.5.5-beta.4 → 0.5.5-beta.6
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/README.md +2 -2
- package/docs/release.md +12 -0
- package/package.json +1 -3
- package/plugins/agent/index.js +167 -33
- package/plugins/agent/style.css +384 -94
- package/plugins/brand/index.js +12 -1
- package/plugins/brand/style.css +48 -29
- package/plugins/directory/style.css +131 -24
- package/plugins/view-controls/style.css +6 -9
- package/src/agent/runtime.js +1 -1
- package/src/core/parse.js +56 -6
- package/src/core/tags.js +197 -0
- package/src/html/app-css.js +27 -10
- package/src/html/canvas-focus.js +1 -1
- package/src/html/canvas-ui.css +122 -36
- package/src/html/canvas-wires.js +5 -2
- package/src/html/media-anchors.js +233 -5
- package/src/html/mindmap-connectors.js +7 -3
- package/src/html/page.js +2 -1
- package/src/html/plugin-ui.css +115 -96
- package/src/html/runtime.js +74 -5
- package/src/server/assets/library.css +3 -3
- package/src/server/assets/library.html +1 -1
- package/src/workspace/references.js +32 -4
- package/docs/plugin-development.md +0 -135
- package/docs/plugin-ui.md +0 -43
package/plugins/agent/style.css
CHANGED
|
@@ -3,39 +3,93 @@
|
|
|
3
3
|
align-self: end;
|
|
4
4
|
}
|
|
5
5
|
.clado-agent-launch {
|
|
6
|
-
|
|
6
|
+
height: 42px;
|
|
7
7
|
display: inline-flex;
|
|
8
8
|
align-items: center;
|
|
9
|
-
gap:
|
|
10
|
-
padding-inline:
|
|
9
|
+
gap: 7px;
|
|
10
|
+
padding-inline: 14px;
|
|
11
|
+
border-radius: 15px;
|
|
11
12
|
color: var(--clado-ui-text);
|
|
13
|
+
font-weight: 560;
|
|
12
14
|
}
|
|
13
15
|
.clado-agent-launch svg {
|
|
14
16
|
width: 15px;
|
|
15
17
|
height: 15px;
|
|
16
18
|
fill: none;
|
|
17
19
|
stroke: currentColor;
|
|
18
|
-
stroke-width: 1.
|
|
20
|
+
stroke-width: 1.65;
|
|
19
21
|
stroke-linejoin: round;
|
|
20
22
|
}
|
|
21
23
|
.clado-agent-panel {
|
|
22
24
|
position: absolute;
|
|
23
25
|
right: 0;
|
|
24
|
-
bottom: calc(100% +
|
|
25
|
-
width: min(
|
|
26
|
-
height: min(
|
|
27
|
-
min-height:
|
|
26
|
+
bottom: calc(100% + 10px);
|
|
27
|
+
width: min(416px, calc(100vw - 32px));
|
|
28
|
+
height: min(600px, calc(100dvh - 156px));
|
|
29
|
+
min-height: 260px;
|
|
30
|
+
border-radius: 22px;
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
overflow: visible;
|
|
34
|
+
}
|
|
35
|
+
.clado-agent-panel-body {
|
|
28
36
|
display: flex;
|
|
29
37
|
flex-direction: column;
|
|
38
|
+
flex: 1;
|
|
39
|
+
min-height: 0;
|
|
30
40
|
overflow: hidden;
|
|
41
|
+
border-radius: inherit;
|
|
42
|
+
}
|
|
43
|
+
@keyframes clado-agent-aura-breathe {
|
|
44
|
+
0%, 100% { opacity: .68; transform: translateX(-50%) scaleX(.96) scaleY(.88); }
|
|
45
|
+
50% { opacity: 1; transform: translateX(-50%) scaleX(1.03) scaleY(1.16); }
|
|
46
|
+
}
|
|
47
|
+
@keyframes clado-agent-aura-drift {
|
|
48
|
+
0%, 100% { filter: blur(11px) hue-rotate(-8deg); }
|
|
49
|
+
50% { filter: blur(13px) hue-rotate(12deg); }
|
|
50
|
+
}
|
|
51
|
+
.clado-ai-aura {
|
|
52
|
+
display: none;
|
|
53
|
+
position: absolute;
|
|
54
|
+
inset: 0;
|
|
55
|
+
pointer-events: none;
|
|
56
|
+
z-index: -1;
|
|
57
|
+
}
|
|
58
|
+
.clado-agent-panel.clado-ai-working > .clado-ai-aura { display: block; }
|
|
59
|
+
.clado-agent-panel.clado-ai-working > .clado-ai-aura::before {
|
|
60
|
+
content: "";
|
|
61
|
+
position: absolute;
|
|
62
|
+
left: 50%;
|
|
63
|
+
bottom: -.5px;
|
|
64
|
+
width: 86%;
|
|
65
|
+
height: 2px;
|
|
66
|
+
border-radius: 99px;
|
|
67
|
+
transform: translateX(-50%);
|
|
68
|
+
background: linear-gradient(90deg, transparent 0%, rgba(56,189,248,.28) 12%, rgba(56,189,248,.68) 28%, rgba(129,140,248,.92) 50%, rgba(232,121,249,.62) 72%, rgba(244,114,182,.24) 88%, transparent 100%);
|
|
69
|
+
}
|
|
70
|
+
.clado-agent-panel.clado-ai-working > .clado-ai-aura::after {
|
|
71
|
+
content: "";
|
|
72
|
+
position: absolute;
|
|
73
|
+
left: 50%;
|
|
74
|
+
top: calc(100% - 3px);
|
|
75
|
+
width: 94%;
|
|
76
|
+
height: 36px;
|
|
77
|
+
transform-origin: 50% 0%;
|
|
78
|
+
transform: translateX(-50%);
|
|
79
|
+
background:
|
|
80
|
+
radial-gradient(ellipse 36% 48% at 30% 10%, rgba(56,189,248,.34) 0%, rgba(56,189,248,.10) 48%, transparent 76%),
|
|
81
|
+
radial-gradient(ellipse 34% 56% at 50% 8%, rgba(139,92,246,.36) 0%, rgba(139,92,246,.10) 46%, transparent 74%),
|
|
82
|
+
radial-gradient(ellipse 34% 46% at 70% 10%, rgba(244,114,182,.26) 0%, rgba(244,114,182,.08) 44%, transparent 72%);
|
|
83
|
+
mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.44) 12%, #000 32%, #000 68%, rgba(0,0,0,.44) 88%, transparent 100%);
|
|
84
|
+
-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.44) 12%, #000 32%, #000 68%, rgba(0,0,0,.44) 88%, transparent 100%);
|
|
85
|
+
animation: clado-agent-aura-breathe 2.9s ease-in-out infinite, clado-agent-aura-drift 5.5s ease-in-out infinite;
|
|
31
86
|
}
|
|
32
87
|
.clado-agent-panel header {
|
|
33
88
|
display: flex;
|
|
34
89
|
align-items: center;
|
|
35
90
|
justify-content: space-between;
|
|
36
91
|
gap: 8px;
|
|
37
|
-
|
|
38
|
-
padding: 9px 10px 9px 14px;
|
|
92
|
+
padding: 12px 12px 9px 15px;
|
|
39
93
|
}
|
|
40
94
|
.clado-agent-heading {
|
|
41
95
|
min-width: 0;
|
|
@@ -49,32 +103,49 @@
|
|
|
49
103
|
flex: none;
|
|
50
104
|
}
|
|
51
105
|
.clado-agent-header-actions .clado-ui-button {
|
|
52
|
-
min-height:
|
|
53
|
-
padding: 2px
|
|
54
|
-
font-size:
|
|
106
|
+
min-height: 28px;
|
|
107
|
+
padding: 2px 9px;
|
|
108
|
+
font-size: 12px;
|
|
109
|
+
border-radius: 9px;
|
|
110
|
+
}
|
|
111
|
+
.clado-agent-follow {
|
|
112
|
+
display: inline-flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
gap: 5px;
|
|
115
|
+
}
|
|
116
|
+
.clado-agent-follow[aria-pressed="true"]::before {
|
|
117
|
+
content: "";
|
|
118
|
+
width: 6px;
|
|
119
|
+
height: 6px;
|
|
120
|
+
border-radius: 50%;
|
|
121
|
+
background: var(--clado-ui-brand);
|
|
122
|
+
flex: none;
|
|
55
123
|
}
|
|
56
124
|
.clado-agent-follow[aria-pressed="true"] {
|
|
57
|
-
color: var(--clado-ui-
|
|
58
|
-
|
|
125
|
+
color: var(--clado-ui-text);
|
|
126
|
+
font-weight: 600;
|
|
59
127
|
}
|
|
60
128
|
.clado-agent-panel h2 { margin: 0; font-size: 14px; font-weight: 650; }
|
|
61
129
|
.clado-agent-provider {
|
|
62
|
-
color: var(--clado-ui-
|
|
130
|
+
color: var(--clado-ui-subtle);
|
|
63
131
|
font-size: 11px;
|
|
132
|
+
margin-top: 1px;
|
|
64
133
|
white-space: nowrap;
|
|
65
134
|
overflow: hidden;
|
|
66
135
|
text-overflow: ellipsis;
|
|
67
136
|
}
|
|
68
|
-
.clado-agent-close { font-size:
|
|
137
|
+
.clado-agent-close { font-size: 17px !important; width: 28px; padding-inline: 0 !important; }
|
|
69
138
|
.clado-agent-sessions {
|
|
70
139
|
max-height: 170px;
|
|
71
140
|
overflow: auto;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
141
|
+
margin: 0 12px 6px;
|
|
142
|
+
padding: 6px;
|
|
143
|
+
border: 1px solid var(--clado-ui-well-border);
|
|
144
|
+
border-radius: 13px;
|
|
145
|
+
background: var(--clado-ui-well);
|
|
75
146
|
display: flex;
|
|
76
147
|
flex-direction: column;
|
|
77
|
-
gap:
|
|
148
|
+
gap: 3px;
|
|
78
149
|
}
|
|
79
150
|
.clado-agent-sessions[hidden] { display: none; }
|
|
80
151
|
.clado-agent-sessions-empty {
|
|
@@ -87,11 +158,15 @@
|
|
|
87
158
|
display: flex;
|
|
88
159
|
align-items: center;
|
|
89
160
|
gap: 4px;
|
|
90
|
-
border-radius:
|
|
161
|
+
border-radius: 9px;
|
|
91
162
|
transition: background 140ms ease;
|
|
92
163
|
}
|
|
93
|
-
.clado-agent-session-row:hover
|
|
164
|
+
.clado-agent-session-row:hover {
|
|
165
|
+
background: var(--clado-ui-hover);
|
|
166
|
+
}
|
|
167
|
+
.clado-agent-session-row.active {
|
|
94
168
|
background: var(--clado-ui-active);
|
|
169
|
+
box-shadow: var(--clado-ui-active-shadow);
|
|
95
170
|
}
|
|
96
171
|
.clado-agent-session-open {
|
|
97
172
|
flex: 1;
|
|
@@ -100,7 +175,7 @@
|
|
|
100
175
|
background: transparent;
|
|
101
176
|
color: var(--clado-ui-text);
|
|
102
177
|
text-align: left;
|
|
103
|
-
padding:
|
|
178
|
+
padding: 6px 8px;
|
|
104
179
|
cursor: pointer;
|
|
105
180
|
display: flex;
|
|
106
181
|
flex-direction: column;
|
|
@@ -109,69 +184,214 @@
|
|
|
109
184
|
}
|
|
110
185
|
.clado-agent-session-title {
|
|
111
186
|
font-size: 12px;
|
|
112
|
-
font-weight:
|
|
187
|
+
font-weight: 560;
|
|
113
188
|
white-space: nowrap;
|
|
114
189
|
overflow: hidden;
|
|
115
190
|
text-overflow: ellipsis;
|
|
116
191
|
}
|
|
117
192
|
.clado-agent-session-open small {
|
|
118
193
|
font-size: 10.5px;
|
|
119
|
-
color: var(--clado-ui-
|
|
194
|
+
color: var(--clado-ui-subtle);
|
|
120
195
|
}
|
|
121
196
|
.clado-agent-session-open small.waiting {
|
|
122
|
-
color: #
|
|
197
|
+
color: #b45309;
|
|
123
198
|
font-weight: 600;
|
|
124
199
|
}
|
|
200
|
+
[data-theme="dark"] .clado-agent-session-open small.waiting {
|
|
201
|
+
color: #fbbf24;
|
|
202
|
+
}
|
|
125
203
|
.clado-agent-session-del {
|
|
126
204
|
border: 0;
|
|
127
205
|
background: transparent;
|
|
128
206
|
color: var(--clado-ui-muted);
|
|
129
207
|
width: 24px;
|
|
130
208
|
height: 24px;
|
|
131
|
-
border-radius:
|
|
209
|
+
border-radius: 7px;
|
|
132
210
|
cursor: pointer;
|
|
133
211
|
font-size: 14px;
|
|
134
212
|
flex: none;
|
|
135
213
|
}
|
|
136
214
|
.clado-agent-session-del:hover {
|
|
137
215
|
color: var(--clado-ui-text);
|
|
138
|
-
background:
|
|
216
|
+
background: var(--clado-ui-hover);
|
|
139
217
|
}
|
|
218
|
+
|
|
219
|
+
/* 灵动四格分段轨道:只有当前选中项浮起晶透胶囊,未选中彻底去灰块 */
|
|
140
220
|
.clado-agent-modes {
|
|
141
|
-
display:
|
|
142
|
-
|
|
143
|
-
gap:
|
|
144
|
-
|
|
145
|
-
|
|
221
|
+
display: grid;
|
|
222
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
223
|
+
gap: 3px;
|
|
224
|
+
margin: 0 12px 8px;
|
|
225
|
+
padding: 3px;
|
|
226
|
+
border-radius: 12px;
|
|
227
|
+
background: var(--clado-ui-track);
|
|
228
|
+
border: 1px solid var(--clado-ui-edge);
|
|
146
229
|
}
|
|
147
230
|
.clado-agent-chip {
|
|
148
|
-
min-height:
|
|
149
|
-
padding:
|
|
150
|
-
font-size:
|
|
151
|
-
|
|
231
|
+
min-height: 29px;
|
|
232
|
+
padding: 2px 6px;
|
|
233
|
+
font-size: 12px;
|
|
234
|
+
font-weight: 500;
|
|
235
|
+
border-radius: 9px;
|
|
236
|
+
text-align: center;
|
|
152
237
|
}
|
|
238
|
+
.clado-agent-chip[aria-pressed="true"] {
|
|
239
|
+
font-weight: 620;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/* 人设 / 执行器 自研毛玻璃选择器(彻底取代原生系统 select 弹窗) */
|
|
153
243
|
.clado-agent-persona-bar,
|
|
154
244
|
.clado-agent-executor-bar {
|
|
245
|
+
position: relative;
|
|
246
|
+
z-index: 20;
|
|
155
247
|
display: flex;
|
|
156
248
|
align-items: center;
|
|
157
249
|
gap: 8px;
|
|
158
|
-
padding:
|
|
159
|
-
border-bottom: 1px solid
|
|
250
|
+
padding: 0 12px 10px;
|
|
251
|
+
border-bottom: 1px solid var(--clado-ui-edge);
|
|
160
252
|
font-size: 11.5px;
|
|
161
|
-
color: var(--clado-ui-
|
|
253
|
+
color: var(--clado-ui-subtle);
|
|
162
254
|
}
|
|
163
255
|
.clado-agent-persona-bar[hidden],
|
|
164
256
|
.clado-agent-executor-bar[hidden] { display: none; }
|
|
165
|
-
.clado-agent-select {
|
|
257
|
+
.clado-agent-select-native {
|
|
258
|
+
position: absolute !important;
|
|
259
|
+
width: 1px !important;
|
|
260
|
+
height: 1px !important;
|
|
261
|
+
opacity: 0 !important;
|
|
262
|
+
pointer-events: none !important;
|
|
263
|
+
overflow: hidden !important;
|
|
264
|
+
}
|
|
265
|
+
.clado-glass-dropdown {
|
|
266
|
+
position: relative;
|
|
166
267
|
flex: 1;
|
|
167
268
|
min-width: 0;
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
269
|
+
}
|
|
270
|
+
.clado-glass-dropdown-trigger {
|
|
271
|
+
appearance: none;
|
|
272
|
+
width: 100%;
|
|
273
|
+
display: flex;
|
|
274
|
+
align-items: center;
|
|
275
|
+
justify-content: space-between;
|
|
276
|
+
gap: 8px;
|
|
277
|
+
min-height: 33px;
|
|
278
|
+
padding: 6px 10px;
|
|
279
|
+
border-radius: 11px;
|
|
280
|
+
border: 1px solid var(--clado-ui-well-border);
|
|
171
281
|
background: var(--clado-ui-well);
|
|
172
282
|
color: var(--clado-ui-text);
|
|
173
283
|
font: inherit;
|
|
284
|
+
font-size: 12.5px;
|
|
285
|
+
font-weight: 550;
|
|
286
|
+
text-align: left;
|
|
287
|
+
cursor: pointer;
|
|
288
|
+
box-shadow: inset 0 1px 0 rgb(255 255 255 / .42);
|
|
289
|
+
transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
|
|
290
|
+
}
|
|
291
|
+
[data-theme="dark"] .clado-glass-dropdown-trigger {
|
|
292
|
+
box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
|
|
293
|
+
}
|
|
294
|
+
.clado-glass-dropdown-trigger:hover:not(:disabled) {
|
|
295
|
+
background: var(--clado-ui-hover);
|
|
296
|
+
border-color: var(--clado-ui-glass-outline);
|
|
297
|
+
}
|
|
298
|
+
.clado-glass-dropdown-trigger:disabled {
|
|
299
|
+
opacity: .5;
|
|
300
|
+
cursor: default;
|
|
301
|
+
}
|
|
302
|
+
.clado-glass-dropdown-value {
|
|
303
|
+
display: flex;
|
|
304
|
+
align-items: center;
|
|
305
|
+
gap: 7px;
|
|
306
|
+
min-width: 0;
|
|
307
|
+
flex: 1;
|
|
308
|
+
}
|
|
309
|
+
.clado-glass-dropdown-label {
|
|
310
|
+
overflow: hidden;
|
|
311
|
+
text-overflow: ellipsis;
|
|
312
|
+
white-space: nowrap;
|
|
174
313
|
}
|
|
314
|
+
.clado-glass-dropdown-dot {
|
|
315
|
+
width: 7px;
|
|
316
|
+
height: 7px;
|
|
317
|
+
border-radius: 50%;
|
|
318
|
+
flex: none;
|
|
319
|
+
}
|
|
320
|
+
.clado-glass-dropdown-chevron {
|
|
321
|
+
width: 14px;
|
|
322
|
+
height: 14px;
|
|
323
|
+
fill: none;
|
|
324
|
+
stroke: var(--clado-ui-subtle);
|
|
325
|
+
stroke-width: 2;
|
|
326
|
+
stroke-linecap: round;
|
|
327
|
+
stroke-linejoin: round;
|
|
328
|
+
flex: none;
|
|
329
|
+
transition: transform 180ms ease;
|
|
330
|
+
}
|
|
331
|
+
.clado-glass-dropdown.open .clado-glass-dropdown-chevron {
|
|
332
|
+
transform: rotate(180deg);
|
|
333
|
+
}
|
|
334
|
+
/* 展开浮层使用清晰高可读磨砂底色(84%/88%),绝不与下方对话文字打架 */
|
|
335
|
+
.clado-glass-dropdown-menu {
|
|
336
|
+
position: absolute;
|
|
337
|
+
left: 0;
|
|
338
|
+
right: 0;
|
|
339
|
+
top: calc(100% + 6px);
|
|
340
|
+
padding: 6px;
|
|
341
|
+
border-radius: 16px;
|
|
342
|
+
background: var(--clado-ui-popover);
|
|
343
|
+
backdrop-filter: blur(24px) saturate(185%);
|
|
344
|
+
-webkit-backdrop-filter: blur(24px) saturate(185%);
|
|
345
|
+
border: 1px solid var(--clado-ui-glass-outline);
|
|
346
|
+
box-shadow: 0 16px 40px rgb(15 23 42 / .16), 0 0 0 .5px var(--clado-ui-glass-outer), inset 0 1px 0 var(--clado-ui-highlight);
|
|
347
|
+
display: flex;
|
|
348
|
+
flex-direction: column;
|
|
349
|
+
gap: 3px;
|
|
350
|
+
z-index: 60;
|
|
351
|
+
}
|
|
352
|
+
.clado-glass-dropdown-menu[hidden] { display: none; }
|
|
353
|
+
.clado-glass-dropdown-option {
|
|
354
|
+
width: 100%;
|
|
355
|
+
display: flex;
|
|
356
|
+
align-items: center;
|
|
357
|
+
gap: 9px;
|
|
358
|
+
padding: 8px 10px;
|
|
359
|
+
border-radius: 11px;
|
|
360
|
+
text-align: left;
|
|
361
|
+
white-space: normal;
|
|
362
|
+
color: var(--clado-ui-text);
|
|
363
|
+
}
|
|
364
|
+
.clado-glass-dropdown-copy {
|
|
365
|
+
flex: 1;
|
|
366
|
+
min-width: 0;
|
|
367
|
+
display: flex;
|
|
368
|
+
flex-direction: column;
|
|
369
|
+
gap: 2px;
|
|
370
|
+
}
|
|
371
|
+
.clado-glass-dropdown-copy strong {
|
|
372
|
+
font-size: 12.5px;
|
|
373
|
+
font-weight: 560;
|
|
374
|
+
color: var(--clado-ui-text);
|
|
375
|
+
}
|
|
376
|
+
.clado-glass-dropdown-option[aria-selected="true"] .clado-glass-dropdown-copy strong {
|
|
377
|
+
font-weight: 640;
|
|
378
|
+
}
|
|
379
|
+
.clado-glass-dropdown-copy small {
|
|
380
|
+
font-size: 10.5px;
|
|
381
|
+
color: var(--clado-ui-subtle);
|
|
382
|
+
line-height: 1.35;
|
|
383
|
+
}
|
|
384
|
+
.clado-glass-dropdown-check {
|
|
385
|
+
color: var(--clado-ui-brand);
|
|
386
|
+
font-size: 12px;
|
|
387
|
+
font-weight: 700;
|
|
388
|
+
visibility: hidden;
|
|
389
|
+
flex: none;
|
|
390
|
+
}
|
|
391
|
+
.clado-glass-dropdown-option[aria-selected="true"] .clado-glass-dropdown-check {
|
|
392
|
+
visibility: visible;
|
|
393
|
+
}
|
|
394
|
+
|
|
175
395
|
.clado-agent-log {
|
|
176
396
|
flex: 1;
|
|
177
397
|
min-height: 0;
|
|
@@ -180,18 +400,24 @@
|
|
|
180
400
|
padding: 13px;
|
|
181
401
|
display: flex;
|
|
182
402
|
flex-direction: column;
|
|
183
|
-
gap:
|
|
403
|
+
gap: 11px;
|
|
184
404
|
}
|
|
405
|
+
.clado-agent-log::-webkit-scrollbar { width: 4px; }
|
|
406
|
+
.clado-agent-log::-webkit-scrollbar-thumb { background: rgb(120 130 150 / .24); border-radius: 99px; }
|
|
185
407
|
.clado-agent-message {
|
|
186
408
|
width: fit-content;
|
|
187
409
|
max-width: 100%;
|
|
188
|
-
border-radius:
|
|
189
|
-
padding: 8px
|
|
410
|
+
border-radius: 15px;
|
|
411
|
+
padding: 8px 12px;
|
|
190
412
|
overflow-wrap: anywhere;
|
|
191
413
|
}
|
|
192
414
|
.clado-agent-message.human {
|
|
193
415
|
align-self: end;
|
|
416
|
+
max-width: 88%;
|
|
417
|
+
border-radius: 15px 15px 5px 15px;
|
|
194
418
|
background: var(--clado-ui-active);
|
|
419
|
+
border: 1px solid var(--clado-ui-glass-outline);
|
|
420
|
+
box-shadow: 0 2px 10px rgb(15 23 42 / .05);
|
|
195
421
|
}
|
|
196
422
|
.clado-agent-message.assistant {
|
|
197
423
|
width: 100%;
|
|
@@ -204,14 +430,14 @@
|
|
|
204
430
|
.clado-agent-message p {
|
|
205
431
|
margin: 3px 0 0;
|
|
206
432
|
white-space: pre-wrap;
|
|
207
|
-
line-height: 1.
|
|
433
|
+
line-height: 1.58;
|
|
208
434
|
}
|
|
209
435
|
.clado-agent-thinking {
|
|
210
436
|
margin: 5px 0 6px;
|
|
211
|
-
padding:
|
|
212
|
-
border-radius:
|
|
213
|
-
border: 1px solid
|
|
214
|
-
background:
|
|
437
|
+
padding: 6px 10px;
|
|
438
|
+
border-radius: 11px;
|
|
439
|
+
border: 1px solid var(--clado-ui-well-border);
|
|
440
|
+
background: var(--clado-ui-well);
|
|
215
441
|
font-size: 11.5px;
|
|
216
442
|
}
|
|
217
443
|
.clado-agent-thinking summary {
|
|
@@ -232,14 +458,14 @@
|
|
|
232
458
|
.clado-agent-changes {
|
|
233
459
|
margin-top: 8px;
|
|
234
460
|
padding: 8px 10px;
|
|
235
|
-
border-radius:
|
|
236
|
-
border: 1px solid
|
|
237
|
-
background:
|
|
461
|
+
border-radius: 12px;
|
|
462
|
+
border: 1px solid var(--clado-ui-well-border);
|
|
463
|
+
background: var(--clado-ui-well);
|
|
238
464
|
}
|
|
239
465
|
.clado-agent-changes-title {
|
|
240
466
|
font-size: 11px;
|
|
241
467
|
font-weight: 600;
|
|
242
|
-
color: var(--clado-ui-
|
|
468
|
+
color: var(--clado-ui-muted);
|
|
243
469
|
margin-bottom: 5px;
|
|
244
470
|
}
|
|
245
471
|
.clado-agent-changes-list {
|
|
@@ -248,55 +474,68 @@
|
|
|
248
474
|
gap: 3px;
|
|
249
475
|
}
|
|
250
476
|
.clado-agent-change-item {
|
|
251
|
-
border:
|
|
477
|
+
border: 1px solid transparent;
|
|
252
478
|
background: transparent;
|
|
253
479
|
color: var(--clado-ui-text);
|
|
254
480
|
font: inherit;
|
|
255
481
|
font-size: 11.5px;
|
|
256
482
|
text-align: left;
|
|
257
|
-
padding:
|
|
258
|
-
border-radius:
|
|
483
|
+
padding: 5px 7px;
|
|
484
|
+
border-radius: 8px;
|
|
259
485
|
cursor: pointer;
|
|
260
486
|
display: flex;
|
|
261
487
|
align-items: center;
|
|
262
488
|
gap: 7px;
|
|
263
|
-
transition: background 140ms ease;
|
|
489
|
+
transition: background 140ms ease, border-color 140ms ease;
|
|
264
490
|
}
|
|
265
491
|
.clado-agent-change-item:hover {
|
|
266
|
-
background: var(--clado-ui-
|
|
492
|
+
background: var(--clado-ui-hover);
|
|
493
|
+
border-color: var(--clado-ui-hover-border);
|
|
267
494
|
}
|
|
268
495
|
.clado-agent-change-item .dot {
|
|
269
496
|
width: 6px;
|
|
270
497
|
height: 6px;
|
|
271
498
|
border-radius: 50%;
|
|
272
|
-
background:
|
|
499
|
+
background: #10b981;
|
|
273
500
|
flex: none;
|
|
274
501
|
}
|
|
275
502
|
.clado-agent-question {
|
|
276
503
|
margin-top: 8px;
|
|
277
504
|
padding: 10px 11px;
|
|
278
|
-
border-radius:
|
|
279
|
-
border: 1px solid
|
|
280
|
-
background:
|
|
505
|
+
border-radius: 14px;
|
|
506
|
+
border: 1px solid var(--clado-ui-glass-outline);
|
|
507
|
+
background: var(--clado-ui-well);
|
|
508
|
+
box-shadow: inset 0 1px 0 var(--clado-ui-highlight);
|
|
281
509
|
display: flex;
|
|
282
510
|
flex-direction: column;
|
|
283
511
|
gap: 8px;
|
|
284
512
|
}
|
|
285
513
|
.clado-agent-question.answered {
|
|
286
514
|
border-color: var(--clado-ui-edge);
|
|
287
|
-
background:
|
|
515
|
+
background: var(--clado-ui-track);
|
|
288
516
|
}
|
|
289
517
|
.clado-agent-question-badge {
|
|
518
|
+
display: inline-flex;
|
|
519
|
+
align-items: center;
|
|
520
|
+
gap: 6px;
|
|
290
521
|
font-size: 11px;
|
|
291
|
-
font-weight:
|
|
292
|
-
color:
|
|
522
|
+
font-weight: 620;
|
|
523
|
+
color: var(--clado-ui-text);
|
|
293
524
|
}
|
|
294
|
-
|
|
295
|
-
|
|
525
|
+
.clado-agent-question-badge::before {
|
|
526
|
+
content: "";
|
|
527
|
+
width: 6px;
|
|
528
|
+
height: 6px;
|
|
529
|
+
border-radius: 50%;
|
|
530
|
+
background: #f59e0b;
|
|
531
|
+
flex: none;
|
|
296
532
|
}
|
|
297
533
|
.clado-agent-question.answered .clado-agent-question-badge {
|
|
298
534
|
color: var(--clado-ui-muted);
|
|
299
535
|
}
|
|
536
|
+
.clado-agent-question.answered .clado-agent-question-badge::before {
|
|
537
|
+
background: var(--clado-ui-muted);
|
|
538
|
+
}
|
|
300
539
|
.clado-agent-question-text {
|
|
301
540
|
font-size: 12.5px;
|
|
302
541
|
line-height: 1.5;
|
|
@@ -306,25 +545,26 @@
|
|
|
306
545
|
.clado-agent-question-options {
|
|
307
546
|
display: flex;
|
|
308
547
|
flex-direction: column;
|
|
309
|
-
gap:
|
|
548
|
+
gap: 4px;
|
|
310
549
|
}
|
|
311
550
|
.clado-agent-option-btn {
|
|
312
|
-
border: 1px solid
|
|
313
|
-
border-radius:
|
|
314
|
-
background:
|
|
551
|
+
border: 1px solid transparent;
|
|
552
|
+
border-radius: 11px;
|
|
553
|
+
background: transparent;
|
|
315
554
|
color: var(--clado-ui-text);
|
|
316
|
-
padding:
|
|
555
|
+
padding: 8px 10px;
|
|
317
556
|
text-align: left;
|
|
318
557
|
cursor: pointer;
|
|
319
558
|
font: inherit;
|
|
320
559
|
display: flex;
|
|
321
560
|
flex-direction: column;
|
|
322
561
|
gap: 2px;
|
|
323
|
-
transition: border-color 140ms ease,
|
|
562
|
+
transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
|
|
324
563
|
}
|
|
325
564
|
.clado-agent-option-btn:hover:not(:disabled) {
|
|
326
|
-
|
|
327
|
-
|
|
565
|
+
background: var(--clado-ui-active);
|
|
566
|
+
border-color: var(--clado-ui-glass-outline);
|
|
567
|
+
box-shadow: var(--clado-ui-active-shadow);
|
|
328
568
|
}
|
|
329
569
|
.clado-agent-option-btn:disabled {
|
|
330
570
|
opacity: .55;
|
|
@@ -345,23 +585,28 @@
|
|
|
345
585
|
.clado-agent-question-custom input {
|
|
346
586
|
flex: 1;
|
|
347
587
|
min-width: 0;
|
|
348
|
-
padding:
|
|
349
|
-
border: 1px solid var(--clado-ui-
|
|
350
|
-
border-radius:
|
|
588
|
+
padding: 6px 9px;
|
|
589
|
+
border: 1px solid var(--clado-ui-well-border);
|
|
590
|
+
border-radius: 9px;
|
|
351
591
|
background: var(--clado-ui-well);
|
|
352
592
|
color: var(--clado-ui-text);
|
|
353
593
|
font: inherit;
|
|
354
|
-
font-size:
|
|
594
|
+
font-size: 12px;
|
|
595
|
+
outline: none;
|
|
596
|
+
}
|
|
597
|
+
.clado-agent-question-custom input:focus {
|
|
598
|
+
background: var(--clado-ui-well-focus);
|
|
599
|
+
border-color: color-mix(in srgb, var(--clado-ui-brand) 48%, transparent);
|
|
355
600
|
}
|
|
356
601
|
.clado-agent-option-submit {
|
|
357
|
-
min-height:
|
|
358
|
-
padding: 2px
|
|
602
|
+
min-height: 30px;
|
|
603
|
+
padding: 2px 11px;
|
|
359
604
|
font-size: 11.5px;
|
|
360
605
|
}
|
|
361
606
|
.clado-agent-question-answered {
|
|
362
607
|
font-size: 11.5px;
|
|
363
|
-
color: var(--clado-ui-
|
|
364
|
-
font-weight:
|
|
608
|
+
color: var(--clado-ui-brand);
|
|
609
|
+
font-weight: 560;
|
|
365
610
|
}
|
|
366
611
|
.clado-agent-status {
|
|
367
612
|
margin: 0 14px;
|
|
@@ -376,21 +621,66 @@
|
|
|
376
621
|
display: flex;
|
|
377
622
|
align-items: end;
|
|
378
623
|
gap: 7px;
|
|
379
|
-
padding:
|
|
624
|
+
padding: 8px 12px 12px;
|
|
380
625
|
}
|
|
381
626
|
.clado-agent-panel textarea {
|
|
382
627
|
flex: 1;
|
|
383
628
|
min-width: 0;
|
|
384
629
|
max-height: 100px;
|
|
385
630
|
resize: vertical;
|
|
386
|
-
padding: 8px;
|
|
387
|
-
border: 1px solid var(--clado-ui-
|
|
388
|
-
border-radius:
|
|
631
|
+
padding: 8px 11px;
|
|
632
|
+
border: 1px solid var(--clado-ui-well-border);
|
|
633
|
+
border-radius: 13px;
|
|
389
634
|
background: var(--clado-ui-well);
|
|
390
635
|
color: var(--clado-ui-text);
|
|
391
636
|
font: inherit;
|
|
637
|
+
outline: none;
|
|
638
|
+
box-shadow: inset 0 1px 0 rgb(255 255 255 / .42);
|
|
639
|
+
transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
|
|
640
|
+
}
|
|
641
|
+
[data-theme="dark"] .clado-agent-panel textarea {
|
|
642
|
+
box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
|
|
643
|
+
}
|
|
644
|
+
.clado-agent-panel textarea:focus {
|
|
645
|
+
background: var(--clado-ui-well-focus);
|
|
646
|
+
border-color: color-mix(in srgb, var(--clado-ui-brand) 48%, transparent);
|
|
647
|
+
box-shadow: 0 0 0 3px var(--clado-ui-brand-soft);
|
|
648
|
+
}
|
|
649
|
+
.clado-agent-send {
|
|
650
|
+
min-height: 34px;
|
|
651
|
+
padding-inline: 14px;
|
|
652
|
+
border-radius: 11px;
|
|
392
653
|
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
.clado-agent-panel {
|
|
654
|
+
@media (max-width: 680px) {
|
|
655
|
+
.clado-agent-launch { height: 42px; padding-inline: 13px; border-radius: 15px; }
|
|
656
|
+
.clado-agent-panel {
|
|
657
|
+
position: fixed;
|
|
658
|
+
left: 10px;
|
|
659
|
+
right: 10px;
|
|
660
|
+
bottom: max(10px, env(safe-area-inset-bottom));
|
|
661
|
+
width: auto;
|
|
662
|
+
max-width: 440px;
|
|
663
|
+
margin: 0 auto;
|
|
664
|
+
height: min(72dvh, 590px);
|
|
665
|
+
max-height: 74dvh;
|
|
666
|
+
border-radius: 26px;
|
|
667
|
+
z-index: 30;
|
|
668
|
+
}
|
|
669
|
+
.clado-agent-panel-body::before {
|
|
670
|
+
content: "";
|
|
671
|
+
display: block;
|
|
672
|
+
width: 36px;
|
|
673
|
+
height: 4px;
|
|
674
|
+
border-radius: 99px;
|
|
675
|
+
background: var(--clado-ui-edge);
|
|
676
|
+
margin: 8px auto 2px;
|
|
677
|
+
flex: none;
|
|
678
|
+
}
|
|
679
|
+
.clado-agent-chip { min-height: 32px; padding: 3px 4px; }
|
|
680
|
+
.clado-glass-dropdown-trigger { min-height: 38px; font-size: 13px; }
|
|
681
|
+
.clado-glass-dropdown-option { min-height: 44px; }
|
|
682
|
+
.clado-agent-panel textarea { font-size: 16px; min-height: 42px; }
|
|
683
|
+
.clado-agent-question-custom input { font-size: 16px; min-height: 40px; }
|
|
684
|
+
.clado-agent-send, .clado-agent-stop { min-height: 42px; padding-inline: 16px; }
|
|
685
|
+
.clado-agent-option-btn { min-height: 44px; padding: 10px 12px; }
|
|
396
686
|
}
|