cladogram 0.5.5-beta.6 → 0.5.5-beta.7
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/docs/release.md +7 -0
- package/package.json +2 -2
- package/plugins/agent/index.js +1795 -407
- package/plugins/agent/style.css +1123 -420
- package/plugins/brand/index.js +199 -2
- package/src/agent/context.js +430 -0
- package/src/agent/probe.js +58 -0
- package/src/agent/runtime.js +418 -28
- package/src/agent/sessions.js +237 -32
- package/src/html/canvas-ui.css +75 -11
- package/src/html/plugin-ui.css +284 -0
- package/src/server/agent.js +818 -50
- package/src/server/assets/library-canvas.js +305 -1
- package/src/server/assets/library.js +329 -5
- package/src/server/plugin-registry.js +98 -0
- package/src/server/plugin-settings.js +1 -1
- package/src/server/workspace.js +113 -8
- package/src/workspace/objects.js +125 -0
package/src/html/plugin-ui.css
CHANGED
|
@@ -85,6 +85,17 @@
|
|
|
85
85
|
.clado-plugin-slot[data-slot="top-right"] { top: max(14px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); flex-direction: column; align-items: end; }
|
|
86
86
|
.clado-plugin-slot[data-slot="bottom-left"] { bottom: max(16px, env(safe-area-inset-bottom)); left: max(16px, env(safe-area-inset-left)); align-items: end; }
|
|
87
87
|
.clado-plugin-slot[data-slot="bottom-right"] { bottom: max(16px, env(safe-area-inset-bottom)); right: max(16px, env(safe-area-inset-right)); flex-direction: column-reverse; align-items: end; }
|
|
88
|
+
.clado-plugin-slot[data-slot="bottom-center"] { left: 10px; right: 10px; bottom: max(12px, env(safe-area-inset-bottom)); justify-content: center; align-items: end; z-index: 26; }
|
|
89
|
+
@media (max-width: 960px) {
|
|
90
|
+
body[data-agent-dock="open"] .clado-plugin-slot[data-slot="bottom-left"] {
|
|
91
|
+
opacity: 0;
|
|
92
|
+
transform: translateY(8px) scale(.96);
|
|
93
|
+
pointer-events: none;
|
|
94
|
+
}
|
|
95
|
+
body[data-agent-dock="open"] .clado-plugin-slot[data-slot="bottom-left"] > * {
|
|
96
|
+
pointer-events: none;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
88
99
|
:where(.clado-ui-glass) {
|
|
89
100
|
position: relative;
|
|
90
101
|
z-index: 0;
|
|
@@ -205,3 +216,276 @@
|
|
|
205
216
|
.clado-plugin-slot[data-slot="bottom-left"] { bottom: max(12px, env(safe-area-inset-bottom)); left: max(12px, env(safe-area-inset-left)); }
|
|
206
217
|
.clado-plugin-slot[data-slot="bottom-right"] { bottom: max(12px, env(safe-area-inset-bottom)); right: max(12px, env(safe-area-inset-right)); }
|
|
207
218
|
}
|
|
219
|
+
|
|
220
|
+
/* ============ 顶部悬浮多选汇总条(移动端严格视口居中收缩,零换行越界) ============ */
|
|
221
|
+
.clado-selection-bar {
|
|
222
|
+
position: fixed;
|
|
223
|
+
top: calc(max(12px, env(safe-area-inset-top)) + 52px);
|
|
224
|
+
left: 10px;
|
|
225
|
+
right: 10px;
|
|
226
|
+
width: fit-content;
|
|
227
|
+
max-width: min(480px, calc(100vw - 20px));
|
|
228
|
+
margin: 0 auto;
|
|
229
|
+
z-index: 32;
|
|
230
|
+
min-height: 36px;
|
|
231
|
+
border-radius: 999px;
|
|
232
|
+
padding: 4px 6px 4px 12px;
|
|
233
|
+
display: flex;
|
|
234
|
+
align-items: center;
|
|
235
|
+
gap: 8px;
|
|
236
|
+
font: 12px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
|
|
237
|
+
color: var(--clado-ui-text);
|
|
238
|
+
background: rgba(255, 255, 255, 0.36);
|
|
239
|
+
backdrop-filter: blur(20px) saturate(185%) brightness(1.06);
|
|
240
|
+
-webkit-backdrop-filter: blur(20px) saturate(185%) brightness(1.06);
|
|
241
|
+
border: 1px solid rgba(255, 255, 255, 0.84);
|
|
242
|
+
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05), 0 0 0 0.5px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.96);
|
|
243
|
+
opacity: 0;
|
|
244
|
+
pointer-events: none;
|
|
245
|
+
transform: translateY(-8px) scale(0.96);
|
|
246
|
+
transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
247
|
+
box-sizing: border-box;
|
|
248
|
+
}
|
|
249
|
+
:root[data-theme="dark"] .clado-selection-bar {
|
|
250
|
+
background: rgba(20, 25, 36, 0.38);
|
|
251
|
+
backdrop-filter: blur(20px) saturate(195%);
|
|
252
|
+
-webkit-backdrop-filter: blur(20px) saturate(195%);
|
|
253
|
+
border-color: rgba(255, 255, 255, 0.18);
|
|
254
|
+
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42), 0 0 0 0.5px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
|
|
255
|
+
}
|
|
256
|
+
.clado-selection-bar.show {
|
|
257
|
+
opacity: 1;
|
|
258
|
+
pointer-events: auto;
|
|
259
|
+
transform: translateY(0) scale(1);
|
|
260
|
+
}
|
|
261
|
+
.clado-selection-dot {
|
|
262
|
+
flex: 0 0 auto;
|
|
263
|
+
width: 7px;
|
|
264
|
+
height: 7px;
|
|
265
|
+
border-radius: 999px;
|
|
266
|
+
background: var(--clado-ui-brand);
|
|
267
|
+
}
|
|
268
|
+
.clado-selection-text {
|
|
269
|
+
flex: 1 1 auto;
|
|
270
|
+
min-width: 0;
|
|
271
|
+
font-weight: 600;
|
|
272
|
+
white-space: nowrap;
|
|
273
|
+
overflow: hidden;
|
|
274
|
+
text-overflow: ellipsis;
|
|
275
|
+
}
|
|
276
|
+
.clado-selection-send {
|
|
277
|
+
appearance: none;
|
|
278
|
+
flex: 0 0 auto;
|
|
279
|
+
height: 26px;
|
|
280
|
+
border: 0;
|
|
281
|
+
background: var(--clado-ui-brand);
|
|
282
|
+
color: #fff;
|
|
283
|
+
font: inherit;
|
|
284
|
+
font-size: 11.5px;
|
|
285
|
+
font-weight: 600;
|
|
286
|
+
padding: 0 10px;
|
|
287
|
+
border-radius: 999px;
|
|
288
|
+
white-space: nowrap;
|
|
289
|
+
cursor: pointer;
|
|
290
|
+
}
|
|
291
|
+
.clado-selection-clear {
|
|
292
|
+
appearance: none;
|
|
293
|
+
flex: 0 0 auto;
|
|
294
|
+
height: 26px;
|
|
295
|
+
border: 0;
|
|
296
|
+
background: transparent;
|
|
297
|
+
color: var(--clado-ui-muted);
|
|
298
|
+
font: inherit;
|
|
299
|
+
font-size: 12px;
|
|
300
|
+
font-weight: 550;
|
|
301
|
+
padding: 0 8px;
|
|
302
|
+
border-radius: 999px;
|
|
303
|
+
white-space: nowrap;
|
|
304
|
+
cursor: pointer;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/* ============ 双级长按画布上下文浮层 ============ */
|
|
308
|
+
.clado-canvas-ctx-menu {
|
|
309
|
+
position: fixed;
|
|
310
|
+
z-index: 94;
|
|
311
|
+
display: flex;
|
|
312
|
+
flex-direction: column;
|
|
313
|
+
gap: 3px;
|
|
314
|
+
padding: 6px;
|
|
315
|
+
border-radius: 16px;
|
|
316
|
+
min-width: 184px;
|
|
317
|
+
max-width: calc(100vw - 20px);
|
|
318
|
+
background: var(--clado-ui-popover);
|
|
319
|
+
backdrop-filter: blur(24px) saturate(190%);
|
|
320
|
+
-webkit-backdrop-filter: blur(24px) saturate(190%);
|
|
321
|
+
border: 1px solid var(--clado-ui-glass-outline);
|
|
322
|
+
box-shadow: var(--clado-ui-glass-shadow);
|
|
323
|
+
font: 13px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
|
|
324
|
+
color: var(--clado-ui-text);
|
|
325
|
+
opacity: 0;
|
|
326
|
+
pointer-events: none;
|
|
327
|
+
transform: scale(0.93) translateY(6px);
|
|
328
|
+
transform-origin: bottom center;
|
|
329
|
+
transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1), transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
330
|
+
box-sizing: border-box;
|
|
331
|
+
}
|
|
332
|
+
.clado-canvas-ctx-menu.open,
|
|
333
|
+
.clado-canvas-ctx-menu.show {
|
|
334
|
+
opacity: 1;
|
|
335
|
+
pointer-events: auto;
|
|
336
|
+
transform: scale(1) translateY(0);
|
|
337
|
+
}
|
|
338
|
+
.clado-canvas-ctx-head {
|
|
339
|
+
padding: 3px 9px 5px;
|
|
340
|
+
font-size: 10.5px;
|
|
341
|
+
font-weight: 600;
|
|
342
|
+
color: var(--clado-ui-subtle);
|
|
343
|
+
display: flex;
|
|
344
|
+
align-items: center;
|
|
345
|
+
justify-content: space-between;
|
|
346
|
+
gap: 8px;
|
|
347
|
+
border-bottom: 1px solid var(--clado-ui-edge);
|
|
348
|
+
margin-bottom: 2px;
|
|
349
|
+
}
|
|
350
|
+
.clado-canvas-ctx-sep {
|
|
351
|
+
height: 1px;
|
|
352
|
+
background: var(--clado-ui-edge);
|
|
353
|
+
margin: 2px 6px;
|
|
354
|
+
}
|
|
355
|
+
.clado-canvas-ctx-item {
|
|
356
|
+
appearance: none;
|
|
357
|
+
border: 1px solid transparent;
|
|
358
|
+
background: transparent;
|
|
359
|
+
color: var(--clado-ui-text);
|
|
360
|
+
font: inherit;
|
|
361
|
+
font-size: 12.5px;
|
|
362
|
+
font-weight: 520;
|
|
363
|
+
padding: 7.5px 10px;
|
|
364
|
+
border-radius: 10px;
|
|
365
|
+
text-align: left;
|
|
366
|
+
cursor: pointer;
|
|
367
|
+
display: flex;
|
|
368
|
+
align-items: center;
|
|
369
|
+
justify-content: space-between;
|
|
370
|
+
gap: 10px;
|
|
371
|
+
}
|
|
372
|
+
.clado-canvas-ctx-item:hover,
|
|
373
|
+
.clado-canvas-ctx-item:active {
|
|
374
|
+
background: var(--clado-ui-active);
|
|
375
|
+
border-color: var(--clado-ui-glass-outline);
|
|
376
|
+
}
|
|
377
|
+
.clado-canvas-ctx-item.danger { color: #e11d48; }
|
|
378
|
+
:root[data-theme="dark"] .clado-canvas-ctx-item.danger { color: #fb7185; }
|
|
379
|
+
|
|
380
|
+
/* ============ 36% 冰晶毛玻璃插件市场浮层 ============ */
|
|
381
|
+
.clado-market-overlay {
|
|
382
|
+
position: fixed;
|
|
383
|
+
inset: 0;
|
|
384
|
+
z-index: 86;
|
|
385
|
+
padding: calc(max(12px, env(safe-area-inset-top)) + 48px) 10px max(16px, env(safe-area-inset-bottom));
|
|
386
|
+
overflow: visible;
|
|
387
|
+
pointer-events: none;
|
|
388
|
+
visibility: hidden;
|
|
389
|
+
font: 13px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
|
|
390
|
+
color: var(--clado-ui-text);
|
|
391
|
+
transition: visibility 0s linear 280ms;
|
|
392
|
+
}
|
|
393
|
+
.clado-market-overlay * { box-sizing: border-box; }
|
|
394
|
+
.clado-market-overlay.show {
|
|
395
|
+
pointer-events: auto;
|
|
396
|
+
visibility: visible;
|
|
397
|
+
transition-delay: 0s;
|
|
398
|
+
}
|
|
399
|
+
.clado-market-sheet {
|
|
400
|
+
max-width: 480px;
|
|
401
|
+
max-height: calc(100dvh - 76px);
|
|
402
|
+
overflow-y: auto;
|
|
403
|
+
-webkit-overflow-scrolling: touch;
|
|
404
|
+
touch-action: pan-y;
|
|
405
|
+
margin: 0 auto;
|
|
406
|
+
padding: 14px;
|
|
407
|
+
border-radius: 22px;
|
|
408
|
+
display: flex;
|
|
409
|
+
flex-direction: column;
|
|
410
|
+
gap: 10px;
|
|
411
|
+
background: rgba(255, 255, 255, 0.36);
|
|
412
|
+
backdrop-filter: blur(20px) saturate(185%) brightness(1.06);
|
|
413
|
+
-webkit-backdrop-filter: blur(20px) saturate(185%) brightness(1.06);
|
|
414
|
+
border: 1px solid rgba(255, 255, 255, 0.84);
|
|
415
|
+
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045), 0 0 0 0.5px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.96), inset 0 0 22px rgba(255, 255, 255, 0.28);
|
|
416
|
+
opacity: 0;
|
|
417
|
+
transform: translateY(10px) scale(0.985);
|
|
418
|
+
transition: opacity 250ms cubic-bezier(0.22, 1, 0.36, 1), transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
419
|
+
}
|
|
420
|
+
:root[data-theme="dark"] .clado-market-sheet {
|
|
421
|
+
background: rgba(20, 25, 36, 0.38);
|
|
422
|
+
backdrop-filter: blur(20px) saturate(195%);
|
|
423
|
+
-webkit-backdrop-filter: blur(20px) saturate(195%);
|
|
424
|
+
border-color: rgba(255, 255, 255, 0.18);
|
|
425
|
+
box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 0 0.5px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
|
|
426
|
+
}
|
|
427
|
+
.clado-market-overlay.show .clado-market-sheet {
|
|
428
|
+
opacity: 1;
|
|
429
|
+
transform: translateY(0) scale(1);
|
|
430
|
+
}
|
|
431
|
+
.clado-market-well {
|
|
432
|
+
background: rgba(255, 255, 255, 0.34);
|
|
433
|
+
border: 1px solid rgba(255, 255, 255, 0.72);
|
|
434
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
|
|
435
|
+
border-radius: 15px;
|
|
436
|
+
}
|
|
437
|
+
:root[data-theme="dark"] .clado-market-well {
|
|
438
|
+
background: rgba(255, 255, 255, 0.065);
|
|
439
|
+
border-color: rgba(255, 255, 255, 0.14);
|
|
440
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
|
|
441
|
+
}
|
|
442
|
+
.clado-market-tabs {
|
|
443
|
+
display: inline-flex;
|
|
444
|
+
gap: 2px;
|
|
445
|
+
padding: 2.5px;
|
|
446
|
+
border-radius: 10px;
|
|
447
|
+
background: var(--clado-ui-track);
|
|
448
|
+
border: 0.5px solid var(--clado-ui-well-border);
|
|
449
|
+
}
|
|
450
|
+
.clado-market-tab {
|
|
451
|
+
appearance: none;
|
|
452
|
+
border: 1px solid transparent;
|
|
453
|
+
background: transparent;
|
|
454
|
+
color: var(--clado-ui-muted);
|
|
455
|
+
font: inherit;
|
|
456
|
+
font-size: 11.5px;
|
|
457
|
+
font-weight: 520;
|
|
458
|
+
padding: 4.5px 9px;
|
|
459
|
+
border-radius: 8px;
|
|
460
|
+
cursor: pointer;
|
|
461
|
+
white-space: nowrap;
|
|
462
|
+
}
|
|
463
|
+
.clado-market-tab.active {
|
|
464
|
+
color: var(--clado-ui-text);
|
|
465
|
+
font-weight: 620;
|
|
466
|
+
background: var(--clado-ui-active);
|
|
467
|
+
border-color: var(--clado-ui-glass-outline);
|
|
468
|
+
box-shadow: var(--clado-ui-active-shadow);
|
|
469
|
+
}
|
|
470
|
+
.clado-market-card {
|
|
471
|
+
padding: 12px;
|
|
472
|
+
cursor: pointer;
|
|
473
|
+
transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), background-color 150ms ease;
|
|
474
|
+
}
|
|
475
|
+
.clado-market-card:hover { background: var(--clado-ui-hover); }
|
|
476
|
+
.clado-market-card:active { transform: scale(0.985); }
|
|
477
|
+
.clado-risk-pill {
|
|
478
|
+
display: inline-flex;
|
|
479
|
+
align-items: center;
|
|
480
|
+
padding: 1px 6.5px;
|
|
481
|
+
border-radius: 6px;
|
|
482
|
+
font-size: 10px;
|
|
483
|
+
font-weight: 600;
|
|
484
|
+
}
|
|
485
|
+
.clado-risk-low { background: rgba(16, 185, 129, 0.13); color: #059669; }
|
|
486
|
+
.clado-risk-medium { background: rgba(245, 158, 11, 0.15); color: #d97706; }
|
|
487
|
+
.clado-risk-high { background: rgba(244, 63, 94, 0.13); color: #e11d48; }
|
|
488
|
+
:root[data-theme="dark"] .clado-risk-low { color: #34d399; }
|
|
489
|
+
:root[data-theme="dark"] .clado-risk-medium { color: #fbbf24; }
|
|
490
|
+
:root[data-theme="dark"] .clado-risk-high { color: #fda4af; }
|
|
491
|
+
|