cladogram 0.6.0-beta.1 → 0.6.0-beta.10
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 +50 -47
- package/bin/clado.js +34 -2
- package/docs/agent-context.md +63 -0
- package/docs/agent-reference.md +219 -0
- package/docs/release.md +116 -0
- package/package.json +3 -1
- package/plugins/agent/index.js +2429 -723
- package/plugins/agent/settings.js +3592 -0
- package/plugins/agent/style.css +1327 -94
- package/plugins/view-controls/index.js +0 -11
- package/plugins/view-controls/style.css +7 -14
- package/skills/clado/SKILL.md +4 -2
- package/src/agent/automations.js +454 -0
- package/src/agent/clado-tools.js +597 -104
- package/src/agent/pi-bridge.js +2184 -112
- package/src/agent/pi-config.js +1889 -108
- package/src/agent/pi-hooks-perms.js +621 -0
- package/src/html/app-css.js +69 -1
- package/src/html/canvas-chain.js +32 -6
- package/src/html/canvas-focus.js +19 -13
- package/src/html/canvas-live-diff.js +1373 -0
- package/src/html/canvas-ui.css +503 -2
- package/src/html/canvas-wires.js +5 -1
- package/src/html/page.js +4 -2
- package/src/html/plugin-assets.js +5 -1
- package/src/html/plugin-ui.css +1 -1
- package/src/html/runtime-api.js +152 -10
- package/src/html/runtime.js +546 -37
- package/src/server/agent.js +594 -37
- package/src/server/assets/library-canvas.js +256 -9
- package/src/server/assets/library.css +567 -12
- package/src/server/assets/library.html +2 -0
- package/src/server/assets/library.js +1028 -32
- package/src/server/code-inspect.js +183 -0
- package/src/server/mcp.js +90 -22
- package/src/server/plugin-registry.js +664 -2
- package/src/server/workspace.js +551 -25
- package/src/workspace/graph-snapshot.js +695 -0
- package/src/workspace/service.js +201 -9
|
@@ -71,10 +71,10 @@ html, body {
|
|
|
71
71
|
.clado-ambient-blob {
|
|
72
72
|
position: absolute;
|
|
73
73
|
border-radius: 50%;
|
|
74
|
-
filter: blur(
|
|
75
|
-
opacity: 0.
|
|
74
|
+
filter: blur(84px);
|
|
75
|
+
opacity: 0.22;
|
|
76
76
|
}
|
|
77
|
-
[data-theme="dark"] .clado-ambient-blob { opacity: 0.
|
|
77
|
+
[data-theme="dark"] .clado-ambient-blob { opacity: 0.12; }
|
|
78
78
|
.clado-ambient-blob.b1 {
|
|
79
79
|
width: 520px; height: 420px; top: -120px; right: 6%;
|
|
80
80
|
background: radial-gradient(circle, rgba(125, 211, 252, 0.42), rgba(196, 181, 253, 0.22) 55%, transparent 75%);
|
|
@@ -244,9 +244,9 @@ iframe { height: 100%; width: 100%; display: block; border: 0; background: trans
|
|
|
244
244
|
.clado-ws-card:hover {
|
|
245
245
|
transform: translateY(-3px);
|
|
246
246
|
border-color: var(--clado-ui-hover-border);
|
|
247
|
-
box-shadow: 0
|
|
247
|
+
box-shadow: 0 22px 46px -16px rgba(56, 189, 248, 0.11), var(--clado-ui-glass-shadow);
|
|
248
248
|
}
|
|
249
|
-
.clado-ws-card:hover::after { opacity: 0.
|
|
249
|
+
.clado-ws-card:hover::after { opacity: 0.42; }
|
|
250
250
|
.clado-ws-mono {
|
|
251
251
|
width: 34px;
|
|
252
252
|
height: 34px;
|
|
@@ -268,12 +268,21 @@ iframe { height: 100%; width: 100%; display: block; border: 0; background: trans
|
|
|
268
268
|
position: absolute;
|
|
269
269
|
inset: 0;
|
|
270
270
|
display: flex;
|
|
271
|
+
flex-direction: column;
|
|
271
272
|
align-items: center;
|
|
272
273
|
justify-content: center;
|
|
274
|
+
gap: 16px;
|
|
273
275
|
padding: 64px 28px 28px;
|
|
274
276
|
background: transparent;
|
|
277
|
+
overflow-y: auto;
|
|
275
278
|
z-index: 12;
|
|
276
279
|
}
|
|
280
|
+
.empty-state > p {
|
|
281
|
+
margin: 0;
|
|
282
|
+
font-size: 13.5px;
|
|
283
|
+
color: var(--clado-ui-muted, var(--muted));
|
|
284
|
+
text-align: center;
|
|
285
|
+
}
|
|
277
286
|
.clado-empty-card {
|
|
278
287
|
width: min(720px, calc(100% - 32px));
|
|
279
288
|
border-radius: 26px;
|
|
@@ -285,17 +294,18 @@ iframe { height: 100%; width: 100%; display: block; border: 0; background: trans
|
|
|
285
294
|
border: 1px solid var(--clado-ui-glass-outline);
|
|
286
295
|
box-shadow: var(--clado-ui-glass-shadow);
|
|
287
296
|
text-align: left;
|
|
297
|
+
flex: none;
|
|
288
298
|
}
|
|
289
299
|
.clado-prism-aura-under {
|
|
290
300
|
position: absolute;
|
|
291
|
-
left:
|
|
292
|
-
right:
|
|
293
|
-
bottom: -
|
|
294
|
-
height:
|
|
301
|
+
left: 14%;
|
|
302
|
+
right: 14%;
|
|
303
|
+
bottom: -22px;
|
|
304
|
+
height: 40px;
|
|
295
305
|
border-radius: 999px;
|
|
296
|
-
background: linear-gradient(90deg, rgba(56, 189, 248, 0.
|
|
297
|
-
filter: blur(
|
|
298
|
-
opacity: 0.
|
|
306
|
+
background: linear-gradient(90deg, rgba(56, 189, 248, 0.46), rgba(167, 139, 250, 0.44), rgba(244, 114, 182, 0.34), rgba(251, 191, 36, 0.28));
|
|
307
|
+
filter: blur(30px);
|
|
308
|
+
opacity: 0.24;
|
|
299
309
|
pointer-events: none;
|
|
300
310
|
z-index: -1;
|
|
301
311
|
}
|
|
@@ -331,6 +341,135 @@ iframe { height: 100%; width: 100%; display: block; border: 0; background: trans
|
|
|
331
341
|
box-shadow: var(--clado-ui-prism-shadow);
|
|
332
342
|
}
|
|
333
343
|
|
|
344
|
+
/* Discovered Sub-Workspaces Grid inside Empty State */
|
|
345
|
+
.empty-workspaces {
|
|
346
|
+
margin-top: 20px;
|
|
347
|
+
padding-top: 18px;
|
|
348
|
+
border-top: 1px solid var(--clado-ui-edge, var(--line));
|
|
349
|
+
display: flex;
|
|
350
|
+
flex-direction: column;
|
|
351
|
+
gap: 12px;
|
|
352
|
+
text-align: left;
|
|
353
|
+
}
|
|
354
|
+
.empty-state > .empty-workspaces {
|
|
355
|
+
margin-top: 0;
|
|
356
|
+
width: min(720px, calc(100% - 32px));
|
|
357
|
+
padding: 24px 26px;
|
|
358
|
+
border-radius: 24px;
|
|
359
|
+
background: var(--clado-ui-surface);
|
|
360
|
+
backdrop-filter: blur(24px) saturate(190%) brightness(1.03);
|
|
361
|
+
-webkit-backdrop-filter: blur(24px) saturate(190%) brightness(1.03);
|
|
362
|
+
border: 1px solid var(--clado-ui-glass-outline, var(--line));
|
|
363
|
+
box-shadow: var(--clado-ui-glass-shadow);
|
|
364
|
+
}
|
|
365
|
+
.empty-workspaces-head {
|
|
366
|
+
display: flex;
|
|
367
|
+
align-items: center;
|
|
368
|
+
justify-content: space-between;
|
|
369
|
+
gap: 10px;
|
|
370
|
+
}
|
|
371
|
+
.empty-workspaces-title {
|
|
372
|
+
font-size: 12.5px;
|
|
373
|
+
font-weight: 620;
|
|
374
|
+
color: var(--clado-ui-text-soft, var(--ink));
|
|
375
|
+
letter-spacing: -0.01em;
|
|
376
|
+
}
|
|
377
|
+
.empty-workspaces-count {
|
|
378
|
+
font-size: 11px;
|
|
379
|
+
font-weight: 560;
|
|
380
|
+
color: var(--clado-ui-muted, var(--muted));
|
|
381
|
+
padding: 2px 8px;
|
|
382
|
+
border-radius: 999px;
|
|
383
|
+
background: var(--clado-ui-well);
|
|
384
|
+
border: 1px solid var(--clado-ui-well-border, var(--line));
|
|
385
|
+
}
|
|
386
|
+
.empty-workspaces-grid {
|
|
387
|
+
display: grid;
|
|
388
|
+
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
389
|
+
gap: 10px;
|
|
390
|
+
max-height: 230px;
|
|
391
|
+
overflow-y: auto;
|
|
392
|
+
padding: 2px 2px 4px;
|
|
393
|
+
}
|
|
394
|
+
.empty-workspace-card {
|
|
395
|
+
display: flex;
|
|
396
|
+
align-items: center;
|
|
397
|
+
gap: 10px;
|
|
398
|
+
padding: 11px 13px;
|
|
399
|
+
border-radius: 14px;
|
|
400
|
+
background: var(--clado-ui-well);
|
|
401
|
+
border: 1px solid var(--clado-ui-well-border, var(--line));
|
|
402
|
+
box-shadow: inset 0 1px 0 var(--clado-ui-highlight, rgba(255, 255, 255, 0.5));
|
|
403
|
+
color: var(--clado-ui-text, var(--ink));
|
|
404
|
+
text-decoration: none;
|
|
405
|
+
min-width: 0;
|
|
406
|
+
transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), background-color 150ms ease, border-color 150ms ease, box-shadow 160ms ease;
|
|
407
|
+
}
|
|
408
|
+
.empty-workspace-card:hover {
|
|
409
|
+
transform: translateY(-1.5px);
|
|
410
|
+
background: var(--clado-ui-hover);
|
|
411
|
+
border-color: var(--clado-ui-prism-border, var(--clado-ui-hover-border));
|
|
412
|
+
box-shadow: 0 10px 24px -12px rgba(56, 189, 248, 0.22), inset 0 1px 0 var(--clado-ui-highlight, rgba(255, 255, 255, 0.6));
|
|
413
|
+
}
|
|
414
|
+
.empty-workspace-card:focus-visible {
|
|
415
|
+
outline: 2px solid var(--accent);
|
|
416
|
+
outline-offset: 2px;
|
|
417
|
+
}
|
|
418
|
+
.empty-workspace-ico {
|
|
419
|
+
width: 30px;
|
|
420
|
+
height: 30px;
|
|
421
|
+
border-radius: 9px;
|
|
422
|
+
flex: none;
|
|
423
|
+
display: inline-flex;
|
|
424
|
+
align-items: center;
|
|
425
|
+
justify-content: center;
|
|
426
|
+
background: var(--clado-ui-prism-bg, rgba(56, 189, 248, 0.12));
|
|
427
|
+
border: 1px solid var(--clado-ui-prism-border, rgba(56, 189, 248, 0.24));
|
|
428
|
+
color: var(--accent);
|
|
429
|
+
}
|
|
430
|
+
.empty-workspace-ico svg {
|
|
431
|
+
width: 15px;
|
|
432
|
+
height: 15px;
|
|
433
|
+
stroke: currentColor;
|
|
434
|
+
fill: none;
|
|
435
|
+
stroke-width: 1.85;
|
|
436
|
+
stroke-linecap: round;
|
|
437
|
+
stroke-linejoin: round;
|
|
438
|
+
}
|
|
439
|
+
.empty-workspace-meta {
|
|
440
|
+
min-width: 0;
|
|
441
|
+
flex: 1;
|
|
442
|
+
display: flex;
|
|
443
|
+
flex-direction: column;
|
|
444
|
+
gap: 2px;
|
|
445
|
+
}
|
|
446
|
+
.empty-workspace-name {
|
|
447
|
+
font-size: 12.5px;
|
|
448
|
+
font-weight: 600;
|
|
449
|
+
color: var(--clado-ui-text, var(--ink));
|
|
450
|
+
overflow: hidden;
|
|
451
|
+
text-overflow: ellipsis;
|
|
452
|
+
white-space: nowrap;
|
|
453
|
+
}
|
|
454
|
+
.empty-workspace-card small {
|
|
455
|
+
font-size: 11px;
|
|
456
|
+
color: var(--clado-ui-muted, var(--muted));
|
|
457
|
+
line-height: 1.3;
|
|
458
|
+
}
|
|
459
|
+
.empty-workspace-arrow {
|
|
460
|
+
flex: none;
|
|
461
|
+
width: 14px;
|
|
462
|
+
height: 14px;
|
|
463
|
+
color: var(--clado-ui-subtle, var(--muted));
|
|
464
|
+
opacity: 0.65;
|
|
465
|
+
transition: transform 160ms ease, opacity 160ms ease, color 160ms ease;
|
|
466
|
+
}
|
|
467
|
+
.empty-workspace-card:hover .empty-workspace-arrow {
|
|
468
|
+
opacity: 1;
|
|
469
|
+
color: var(--accent);
|
|
470
|
+
transform: translateX(2px);
|
|
471
|
+
}
|
|
472
|
+
|
|
334
473
|
/* Toast */
|
|
335
474
|
.clado-toast {
|
|
336
475
|
position: absolute;
|
|
@@ -394,3 +533,419 @@ iframe { height: 100%; width: 100%; display: block; border: 0; background: trans
|
|
|
394
533
|
}
|
|
395
534
|
|
|
396
535
|
[hidden] { display: none !important; }
|
|
536
|
+
|
|
537
|
+
/* ============ Multi-Role Stage Banner ============ */
|
|
538
|
+
.clado-stage-banner {
|
|
539
|
+
position: absolute;
|
|
540
|
+
top: 62px;
|
|
541
|
+
left: 50%;
|
|
542
|
+
transform: translateX(-50%) translateY(-8px);
|
|
543
|
+
z-index: 44;
|
|
544
|
+
display: inline-flex;
|
|
545
|
+
align-items: center;
|
|
546
|
+
gap: 8px;
|
|
547
|
+
padding: 6px 14px;
|
|
548
|
+
border-radius: 999px;
|
|
549
|
+
font-size: 12px;
|
|
550
|
+
font-weight: 580;
|
|
551
|
+
color: var(--clado-ui-text);
|
|
552
|
+
background: var(--clado-ui-popover);
|
|
553
|
+
backdrop-filter: blur(22px) saturate(190%);
|
|
554
|
+
-webkit-backdrop-filter: blur(22px) saturate(190%);
|
|
555
|
+
border: 1px solid var(--clado-ui-glass-outline);
|
|
556
|
+
box-shadow: var(--clado-ui-shadow);
|
|
557
|
+
opacity: 0;
|
|
558
|
+
pointer-events: none;
|
|
559
|
+
transition: opacity 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
560
|
+
}
|
|
561
|
+
.clado-stage-banner.show {
|
|
562
|
+
opacity: 1;
|
|
563
|
+
transform: translateX(-50%) translateY(0);
|
|
564
|
+
}
|
|
565
|
+
.clado-stage-banner .stage-dot {
|
|
566
|
+
width: 7px;
|
|
567
|
+
height: 7px;
|
|
568
|
+
border-radius: 50%;
|
|
569
|
+
background: #0284c7;
|
|
570
|
+
flex: none;
|
|
571
|
+
}
|
|
572
|
+
.clado-stage-banner[data-tone="emerald"] .stage-dot { background: #10b981; }
|
|
573
|
+
.clado-stage-banner[data-tone="violet"] .stage-dot { background: #8b5cf6; }
|
|
574
|
+
.clado-stage-banner[data-tone="amber"] .stage-dot { background: #f59e0b; }
|
|
575
|
+
.clado-stage-banner[data-tone="emerald"] { border-color: rgba(16, 185, 129, 0.34); }
|
|
576
|
+
.clado-stage-banner[data-tone="violet"] { border-color: rgba(139, 92, 246, 0.34); }
|
|
577
|
+
.clado-stage-banner[data-tone="amber"] { border-color: rgba(245, 158, 11, 0.34); }
|
|
578
|
+
.clado-stage-banner .stage-phase {
|
|
579
|
+
font-size: 10.5px;
|
|
580
|
+
padding: 1px 7px;
|
|
581
|
+
border-radius: 999px;
|
|
582
|
+
background: var(--clado-ui-well);
|
|
583
|
+
color: var(--clado-ui-muted);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/* ============ Right-Side Live Code & Git Diff Drawer ============ */
|
|
587
|
+
.clado-code-drawer {
|
|
588
|
+
position: absolute;
|
|
589
|
+
top: 66px;
|
|
590
|
+
right: 16px;
|
|
591
|
+
bottom: 16px;
|
|
592
|
+
width: min(500px, calc(100% - 32px));
|
|
593
|
+
z-index: 33;
|
|
594
|
+
display: flex;
|
|
595
|
+
flex-direction: column;
|
|
596
|
+
border-radius: 20px;
|
|
597
|
+
background: var(--clado-ui-popover);
|
|
598
|
+
backdrop-filter: blur(26px) saturate(195%);
|
|
599
|
+
-webkit-backdrop-filter: blur(26px) saturate(195%);
|
|
600
|
+
border: 1px solid var(--clado-ui-glass-outline);
|
|
601
|
+
box-shadow: var(--clado-ui-glass-shadow);
|
|
602
|
+
color: var(--ink);
|
|
603
|
+
overflow: hidden;
|
|
604
|
+
transition: right 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease, transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
605
|
+
}
|
|
606
|
+
body[data-agent-dock="open"] .clado-code-drawer {
|
|
607
|
+
right: calc(var(--clado-dock-w, 412px) + 28px);
|
|
608
|
+
width: min(480px, calc(100% - var(--clado-dock-w, 412px) - 52px));
|
|
609
|
+
}
|
|
610
|
+
@media (max-width: 1060px) {
|
|
611
|
+
body[data-agent-dock="open"] .clado-code-drawer {
|
|
612
|
+
right: 16px;
|
|
613
|
+
width: min(460px, calc(100% - 32px));
|
|
614
|
+
z-index: 35;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
.clado-cd-head {
|
|
618
|
+
display: flex;
|
|
619
|
+
align-items: center;
|
|
620
|
+
justify-content: space-between;
|
|
621
|
+
gap: 8px;
|
|
622
|
+
padding: 10px 12px;
|
|
623
|
+
border-bottom: 1px solid var(--clado-ui-edge);
|
|
624
|
+
flex: none;
|
|
625
|
+
}
|
|
626
|
+
.clado-cd-title-wrap {
|
|
627
|
+
display: flex;
|
|
628
|
+
align-items: center;
|
|
629
|
+
gap: 8px;
|
|
630
|
+
min-width: 0;
|
|
631
|
+
}
|
|
632
|
+
.clado-cd-dot {
|
|
633
|
+
width: 7px;
|
|
634
|
+
height: 7px;
|
|
635
|
+
border-radius: 50%;
|
|
636
|
+
background: #10b981;
|
|
637
|
+
flex: none;
|
|
638
|
+
}
|
|
639
|
+
.clado-cd-dot.live {
|
|
640
|
+
background: #0ea5e9;
|
|
641
|
+
box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18);
|
|
642
|
+
}
|
|
643
|
+
.clado-cd-title {
|
|
644
|
+
font-size: 12.5px;
|
|
645
|
+
font-weight: 620;
|
|
646
|
+
overflow: hidden;
|
|
647
|
+
text-overflow: ellipsis;
|
|
648
|
+
white-space: nowrap;
|
|
649
|
+
}
|
|
650
|
+
.clado-cd-sub {
|
|
651
|
+
font-size: 10.5px;
|
|
652
|
+
color: var(--clado-ui-muted);
|
|
653
|
+
white-space: nowrap;
|
|
654
|
+
}
|
|
655
|
+
.clado-cd-actions {
|
|
656
|
+
display: flex;
|
|
657
|
+
align-items: center;
|
|
658
|
+
gap: 5px;
|
|
659
|
+
flex: none;
|
|
660
|
+
}
|
|
661
|
+
.clado-cd-btn {
|
|
662
|
+
appearance: none;
|
|
663
|
+
border: 1px solid var(--clado-ui-well-border);
|
|
664
|
+
background: var(--clado-ui-well);
|
|
665
|
+
color: var(--clado-ui-text-soft);
|
|
666
|
+
border-radius: 8px;
|
|
667
|
+
padding: 3px 8px;
|
|
668
|
+
font: inherit;
|
|
669
|
+
font-size: 11px;
|
|
670
|
+
font-weight: 560;
|
|
671
|
+
cursor: pointer;
|
|
672
|
+
transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
|
|
673
|
+
}
|
|
674
|
+
.clado-cd-btn:hover {
|
|
675
|
+
background: var(--clado-ui-hover);
|
|
676
|
+
border-color: var(--clado-ui-hover-border);
|
|
677
|
+
color: var(--clado-ui-text);
|
|
678
|
+
}
|
|
679
|
+
.clado-cd-btn.active {
|
|
680
|
+
background: var(--clado-ui-prism-bg);
|
|
681
|
+
border-color: var(--clado-ui-prism-border);
|
|
682
|
+
color: var(--clado-ui-text);
|
|
683
|
+
}
|
|
684
|
+
.clado-cd-tabs {
|
|
685
|
+
display: flex;
|
|
686
|
+
align-items: center;
|
|
687
|
+
gap: 4px;
|
|
688
|
+
padding: 6px 10px;
|
|
689
|
+
border-bottom: 1px solid var(--clado-ui-edge);
|
|
690
|
+
overflow-x: auto;
|
|
691
|
+
flex: none;
|
|
692
|
+
scrollbar-width: none;
|
|
693
|
+
}
|
|
694
|
+
.clado-cd-tabs::-webkit-scrollbar { display: none; }
|
|
695
|
+
.clado-cd-tab {
|
|
696
|
+
appearance: none;
|
|
697
|
+
border: 1px solid transparent;
|
|
698
|
+
background: transparent;
|
|
699
|
+
color: var(--clado-ui-muted);
|
|
700
|
+
border-radius: 8px;
|
|
701
|
+
padding: 4px 8px;
|
|
702
|
+
font: inherit;
|
|
703
|
+
font-size: 11px;
|
|
704
|
+
font-weight: 550;
|
|
705
|
+
cursor: pointer;
|
|
706
|
+
display: inline-flex;
|
|
707
|
+
align-items: center;
|
|
708
|
+
gap: 5px;
|
|
709
|
+
white-space: nowrap;
|
|
710
|
+
flex: none;
|
|
711
|
+
}
|
|
712
|
+
.clado-cd-tab:hover {
|
|
713
|
+
background: var(--clado-ui-well);
|
|
714
|
+
color: var(--clado-ui-text);
|
|
715
|
+
}
|
|
716
|
+
.clado-cd-tab.active {
|
|
717
|
+
background: var(--clado-ui-well);
|
|
718
|
+
border-color: var(--clado-ui-well-border);
|
|
719
|
+
color: var(--clado-ui-text);
|
|
720
|
+
}
|
|
721
|
+
.clado-cd-stat-add {
|
|
722
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
723
|
+
font-size: 10px;
|
|
724
|
+
font-weight: 650;
|
|
725
|
+
color: #059669;
|
|
726
|
+
}
|
|
727
|
+
.clado-cd-stat-del {
|
|
728
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
729
|
+
font-size: 10px;
|
|
730
|
+
font-weight: 650;
|
|
731
|
+
color: #e11d48;
|
|
732
|
+
}
|
|
733
|
+
[data-theme="dark"] .clado-cd-stat-add { color: #34d399; }
|
|
734
|
+
[data-theme="dark"] .clado-cd-stat-del { color: #fb7185; }
|
|
735
|
+
.clado-cd-pathbar {
|
|
736
|
+
display: flex;
|
|
737
|
+
align-items: center;
|
|
738
|
+
justify-content: space-between;
|
|
739
|
+
gap: 8px;
|
|
740
|
+
padding: 6px 12px;
|
|
741
|
+
border-bottom: 1px solid var(--clado-ui-edge);
|
|
742
|
+
font-size: 11px;
|
|
743
|
+
color: var(--clado-ui-muted);
|
|
744
|
+
flex: none;
|
|
745
|
+
}
|
|
746
|
+
.clado-cd-path {
|
|
747
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
748
|
+
overflow: hidden;
|
|
749
|
+
text-overflow: ellipsis;
|
|
750
|
+
white-space: nowrap;
|
|
751
|
+
}
|
|
752
|
+
.clado-cd-body {
|
|
753
|
+
flex: 1;
|
|
754
|
+
min-height: 0;
|
|
755
|
+
overflow: auto;
|
|
756
|
+
padding: 6px 0 12px;
|
|
757
|
+
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
758
|
+
font-size: 11.5px;
|
|
759
|
+
line-height: 1.54;
|
|
760
|
+
}
|
|
761
|
+
.clado-cd-line {
|
|
762
|
+
display: flex;
|
|
763
|
+
align-items: flex-start;
|
|
764
|
+
padding: 1px 10px 1px 0;
|
|
765
|
+
border-left: 2.5px solid transparent;
|
|
766
|
+
}
|
|
767
|
+
.clado-cd-line.is-add {
|
|
768
|
+
background: rgba(16, 185, 129, 0.12);
|
|
769
|
+
border-left-color: #10b981;
|
|
770
|
+
color: #065f46;
|
|
771
|
+
}
|
|
772
|
+
.clado-cd-line.is-del {
|
|
773
|
+
background: rgba(244, 63, 94, 0.11);
|
|
774
|
+
border-left-color: #f43f5e;
|
|
775
|
+
color: #9f1239;
|
|
776
|
+
}
|
|
777
|
+
.clado-cd-line.is-match {
|
|
778
|
+
background: rgba(56, 189, 248, 0.16);
|
|
779
|
+
border-left-color: #0ea5e9;
|
|
780
|
+
}
|
|
781
|
+
[data-theme="dark"] .clado-cd-line.is-add {
|
|
782
|
+
background: rgba(16, 185, 129, 0.18);
|
|
783
|
+
color: #a7f3d0;
|
|
784
|
+
}
|
|
785
|
+
[data-theme="dark"] .clado-cd-line.is-del {
|
|
786
|
+
background: rgba(244, 63, 94, 0.18);
|
|
787
|
+
color: #fda4af;
|
|
788
|
+
}
|
|
789
|
+
.clado-cd-ln {
|
|
790
|
+
width: 38px;
|
|
791
|
+
flex: none;
|
|
792
|
+
text-align: right;
|
|
793
|
+
padding-right: 8px;
|
|
794
|
+
color: var(--clado-ui-subtle);
|
|
795
|
+
user-select: none;
|
|
796
|
+
font-size: 10.5px;
|
|
797
|
+
}
|
|
798
|
+
.clado-cd-sign {
|
|
799
|
+
width: 14px;
|
|
800
|
+
flex: none;
|
|
801
|
+
text-align: center;
|
|
802
|
+
user-select: none;
|
|
803
|
+
font-weight: 700;
|
|
804
|
+
opacity: 0.8;
|
|
805
|
+
}
|
|
806
|
+
.clado-cd-code {
|
|
807
|
+
flex: 1;
|
|
808
|
+
min-width: 0;
|
|
809
|
+
white-space: pre-wrap;
|
|
810
|
+
overflow-wrap: anywhere;
|
|
811
|
+
}
|
|
812
|
+
.clado-cd-sep {
|
|
813
|
+
text-align: center;
|
|
814
|
+
padding: 3px 10px;
|
|
815
|
+
color: var(--clado-ui-subtle);
|
|
816
|
+
font-size: 10px;
|
|
817
|
+
}
|
|
818
|
+
.clado-cd-mark-del {
|
|
819
|
+
background: rgba(244, 63, 94, 0.25);
|
|
820
|
+
color: inherit;
|
|
821
|
+
border-radius: 3px;
|
|
822
|
+
}
|
|
823
|
+
.clado-cd-mark-add {
|
|
824
|
+
background: rgba(16, 185, 129, 0.28);
|
|
825
|
+
color: inherit;
|
|
826
|
+
border-radius: 3px;
|
|
827
|
+
}
|
|
828
|
+
.clado-cd-foot {
|
|
829
|
+
display: flex;
|
|
830
|
+
align-items: center;
|
|
831
|
+
justify-content: space-between;
|
|
832
|
+
gap: 8px;
|
|
833
|
+
padding: 8px 12px;
|
|
834
|
+
border-top: 1px solid var(--clado-ui-edge);
|
|
835
|
+
flex: none;
|
|
836
|
+
font-size: 11px;
|
|
837
|
+
color: var(--clado-ui-muted);
|
|
838
|
+
}
|
|
839
|
+
.clado-cd-cards {
|
|
840
|
+
display: flex;
|
|
841
|
+
align-items: center;
|
|
842
|
+
gap: 4px;
|
|
843
|
+
flex-wrap: wrap;
|
|
844
|
+
min-width: 0;
|
|
845
|
+
}
|
|
846
|
+
.clado-cd-card-chip {
|
|
847
|
+
appearance: none;
|
|
848
|
+
border: 1px solid var(--clado-ui-well-border);
|
|
849
|
+
background: var(--clado-ui-well);
|
|
850
|
+
color: var(--clado-ui-text-soft);
|
|
851
|
+
border-radius: 999px;
|
|
852
|
+
padding: 2px 8px;
|
|
853
|
+
font: inherit;
|
|
854
|
+
font-size: 10.5px;
|
|
855
|
+
cursor: pointer;
|
|
856
|
+
}
|
|
857
|
+
.clado-cd-card-chip:hover {
|
|
858
|
+
border-color: var(--clado-ui-hover-border);
|
|
859
|
+
color: var(--clado-ui-text);
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
/* ============ Mobile Debug Floating Console (?debug=1) ============ */
|
|
863
|
+
.clado-debug-toggle {
|
|
864
|
+
position: fixed;
|
|
865
|
+
left: 14px;
|
|
866
|
+
bottom: 14px;
|
|
867
|
+
z-index: 95;
|
|
868
|
+
appearance: none;
|
|
869
|
+
display: inline-flex;
|
|
870
|
+
align-items: center;
|
|
871
|
+
gap: 6px;
|
|
872
|
+
padding: 5px 11px;
|
|
873
|
+
border-radius: 999px;
|
|
874
|
+
font: inherit;
|
|
875
|
+
font-size: 11.5px;
|
|
876
|
+
font-weight: 600;
|
|
877
|
+
color: var(--clado-ui-text);
|
|
878
|
+
background: var(--clado-ui-popover);
|
|
879
|
+
backdrop-filter: blur(20px) saturate(180%);
|
|
880
|
+
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
881
|
+
border: 1px solid var(--clado-ui-glass-outline);
|
|
882
|
+
box-shadow: var(--clado-ui-shadow);
|
|
883
|
+
cursor: pointer;
|
|
884
|
+
}
|
|
885
|
+
.clado-dbg-count {
|
|
886
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
887
|
+
font-size: 10.5px;
|
|
888
|
+
padding: 1px 6px;
|
|
889
|
+
border-radius: 999px;
|
|
890
|
+
background: var(--clado-ui-well);
|
|
891
|
+
color: var(--clado-ui-muted);
|
|
892
|
+
}
|
|
893
|
+
.clado-debug-panel {
|
|
894
|
+
position: fixed;
|
|
895
|
+
left: 14px;
|
|
896
|
+
bottom: 52px;
|
|
897
|
+
z-index: 96;
|
|
898
|
+
width: min(440px, calc(100vw - 28px));
|
|
899
|
+
max-height: min(52dvh, 380px);
|
|
900
|
+
display: flex;
|
|
901
|
+
flex-direction: column;
|
|
902
|
+
border-radius: 16px;
|
|
903
|
+
background: var(--clado-ui-popover);
|
|
904
|
+
backdrop-filter: blur(24px) saturate(190%);
|
|
905
|
+
-webkit-backdrop-filter: blur(24px) saturate(190%);
|
|
906
|
+
border: 1px solid var(--clado-ui-glass-outline);
|
|
907
|
+
box-shadow: var(--clado-ui-glass-shadow);
|
|
908
|
+
color: var(--ink);
|
|
909
|
+
overflow: hidden;
|
|
910
|
+
}
|
|
911
|
+
.clado-dbg-head {
|
|
912
|
+
display: flex;
|
|
913
|
+
align-items: center;
|
|
914
|
+
justify-content: space-between;
|
|
915
|
+
gap: 8px;
|
|
916
|
+
padding: 8px 11px;
|
|
917
|
+
border-bottom: 1px solid var(--clado-ui-edge);
|
|
918
|
+
font-size: 12px;
|
|
919
|
+
}
|
|
920
|
+
.clado-dbg-list {
|
|
921
|
+
flex: 1;
|
|
922
|
+
min-height: 80px;
|
|
923
|
+
overflow: auto;
|
|
924
|
+
padding: 6px 8px;
|
|
925
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
926
|
+
font-size: 11px;
|
|
927
|
+
line-height: 1.48;
|
|
928
|
+
display: flex;
|
|
929
|
+
flex-direction: column;
|
|
930
|
+
gap: 4px;
|
|
931
|
+
}
|
|
932
|
+
.clado-dbg-row {
|
|
933
|
+
display: flex;
|
|
934
|
+
gap: 6px;
|
|
935
|
+
padding: 3px 6px;
|
|
936
|
+
border-radius: 6px;
|
|
937
|
+
background: var(--clado-ui-well);
|
|
938
|
+
}
|
|
939
|
+
.clado-dbg-row.is-error,
|
|
940
|
+
.clado-dbg-row.is-http {
|
|
941
|
+
background: rgba(244, 63, 94, 0.13);
|
|
942
|
+
color: #be123c;
|
|
943
|
+
}
|
|
944
|
+
[data-theme="dark"] .clado-dbg-row.is-error,
|
|
945
|
+
[data-theme="dark"] .clado-dbg-row.is-http {
|
|
946
|
+
color: #fda4af;
|
|
947
|
+
}
|
|
948
|
+
.clado-dbg-ts { opacity: 0.65; flex: none; }
|
|
949
|
+
.clado-dbg-lv { font-weight: 700; text-transform: uppercase; flex: none; }
|
|
950
|
+
.clado-dbg-msg { flex: 1; min-width: 0; word-break: break-all; }
|
|
951
|
+
.clado-dbg-empty { padding: 14px; text-align: center; color: var(--clado-ui-muted); }
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
</div>
|
|
28
28
|
|
|
29
29
|
<section id="clado-lobby" class="clado-lobby" hidden aria-label="工作区大厅"></section>
|
|
30
|
+
<div id="clado-stage-banner" class="clado-stage-banner" hidden role="status" aria-live="polite"></div>
|
|
31
|
+
<aside id="clado-code-drawer" class="clado-code-drawer" hidden aria-label="实时代码与 Git Diff 查看器"></aside>
|
|
30
32
|
<div id="clado-toast" class="clado-toast" role="status" aria-live="polite"></div>
|
|
31
33
|
</div>
|
|
32
34
|
|