cladogram 0.6.0-beta.2 → 0.6.0-beta.4
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/bin/clado.js +34 -2
- package/docs/agent-context.md +62 -0
- package/docs/agent-reference.md +126 -0
- package/docs/release.md +15 -0
- package/package.json +3 -1
- package/plugins/agent/index.js +974 -124
- package/plugins/agent/style.css +502 -52
- package/src/agent/clado-tools.js +437 -103
- package/src/agent/pi-bridge.js +588 -43
- package/src/agent/pi-config.js +411 -35
- package/src/html/app-css.js +65 -1
- package/src/html/canvas-chain.js +26 -2
- package/src/html/canvas-focus.js +19 -13
- package/src/html/canvas-live-diff.js +1256 -0
- package/src/html/canvas-ui.css +508 -0
- package/src/html/canvas-wires.js +5 -1
- package/src/html/page.js +4 -2
- package/src/html/runtime-api.js +146 -10
- package/src/html/runtime.js +432 -29
- package/src/server/agent.js +55 -8
- package/src/server/assets/library-canvas.js +252 -9
- package/src/server/assets/library.css +416 -0
- package/src/server/assets/library.html +2 -0
- package/src/server/assets/library.js +744 -14
- package/src/server/code-inspect.js +183 -0
- package/src/server/mcp.js +4 -4
- package/src/server/workspace.js +266 -19
- package/src/workspace/graph-snapshot.js +695 -0
- package/src/workspace/service.js +11 -1
package/plugins/agent/style.css
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.clado-vnext-dock {
|
|
4
4
|
width: var(--clado-dock-w, 412px);
|
|
5
|
-
max-width:
|
|
5
|
+
max-width: 880px;
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
gap: 8px;
|
|
@@ -51,53 +51,79 @@
|
|
|
51
51
|
}
|
|
52
52
|
.clado-dock-drawer.collapsed { display: none; }
|
|
53
53
|
.clado-dock-drawer.resizing { user-select: none; }
|
|
54
|
+
body.clado-dock-resizing {
|
|
55
|
+
user-select: none;
|
|
56
|
+
-webkit-user-select: none;
|
|
57
|
+
}
|
|
58
|
+
body.clado-dock-resizing iframe {
|
|
59
|
+
pointer-events: none !important;
|
|
60
|
+
}
|
|
54
61
|
|
|
55
|
-
/*
|
|
62
|
+
/* Flush Liquid Crystal Glass Resize Handles (centered top pill + edge hover + invisible rounded corner) */
|
|
56
63
|
.clado-resize-nw {
|
|
57
64
|
position: absolute;
|
|
58
|
-
top:
|
|
59
|
-
left:
|
|
60
|
-
width:
|
|
61
|
-
height:
|
|
65
|
+
top: 0;
|
|
66
|
+
left: 0;
|
|
67
|
+
width: 20px;
|
|
68
|
+
height: 20px;
|
|
62
69
|
cursor: nwse-resize;
|
|
63
|
-
z-index:
|
|
64
|
-
border-radius:
|
|
70
|
+
z-index: 22;
|
|
71
|
+
border-radius: 22px 0 0 0;
|
|
72
|
+
touch-action: none;
|
|
73
|
+
}
|
|
74
|
+
.clado-resize-n {
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: 0;
|
|
77
|
+
left: 22px;
|
|
78
|
+
right: 22px;
|
|
79
|
+
height: 15px;
|
|
80
|
+
cursor: ns-resize;
|
|
81
|
+
z-index: 21;
|
|
65
82
|
display: flex;
|
|
66
83
|
align-items: center;
|
|
67
84
|
justify-content: center;
|
|
85
|
+
touch-action: none;
|
|
68
86
|
}
|
|
69
|
-
.clado-resize-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
opacity: 0.35;
|
|
77
|
-
transition: opacity 140ms ease, border-color 140ms ease;
|
|
78
|
-
}
|
|
79
|
-
.clado-resize-nw:hover::after,
|
|
80
|
-
.clado-dock-drawer.resizing .clado-resize-nw::after {
|
|
81
|
-
opacity: 0.9;
|
|
82
|
-
border-color: var(--clado-ui-brand);
|
|
87
|
+
.clado-resize-grip {
|
|
88
|
+
width: 36px;
|
|
89
|
+
height: 3.5px;
|
|
90
|
+
border-radius: 999px;
|
|
91
|
+
background: var(--clado-ui-subtle);
|
|
92
|
+
opacity: 0.34;
|
|
93
|
+
transition: width 160ms ease, opacity 160ms ease, background 160ms ease;
|
|
83
94
|
}
|
|
84
|
-
.clado-resize-n
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
height: 8px;
|
|
90
|
-
cursor: ns-resize;
|
|
91
|
-
z-index: 18;
|
|
95
|
+
.clado-resize-n:hover .clado-resize-grip,
|
|
96
|
+
.clado-dock-drawer.resizing .clado-resize-grip {
|
|
97
|
+
width: 48px;
|
|
98
|
+
opacity: 0.85;
|
|
99
|
+
background: var(--clado-ui-brand);
|
|
92
100
|
}
|
|
93
101
|
.clado-resize-w {
|
|
94
102
|
position: absolute;
|
|
95
|
-
top:
|
|
96
|
-
bottom:
|
|
97
|
-
left:
|
|
98
|
-
width:
|
|
103
|
+
top: 22px;
|
|
104
|
+
bottom: 22px;
|
|
105
|
+
left: 0;
|
|
106
|
+
width: 10px;
|
|
99
107
|
cursor: ew-resize;
|
|
100
|
-
z-index:
|
|
108
|
+
z-index: 21;
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
justify-content: flex-start;
|
|
112
|
+
padding-left: 2px;
|
|
113
|
+
touch-action: none;
|
|
114
|
+
}
|
|
115
|
+
.clado-resize-grip-v {
|
|
116
|
+
width: 3px;
|
|
117
|
+
height: 28px;
|
|
118
|
+
border-radius: 999px;
|
|
119
|
+
background: var(--clado-ui-brand);
|
|
120
|
+
opacity: 0;
|
|
121
|
+
transition: height 160ms ease, opacity 160ms ease;
|
|
122
|
+
}
|
|
123
|
+
.clado-resize-w:hover .clado-resize-grip-v,
|
|
124
|
+
.clado-dock-drawer.resizing .clado-resize-grip-v {
|
|
125
|
+
opacity: 0.72;
|
|
126
|
+
height: 38px;
|
|
101
127
|
}
|
|
102
128
|
|
|
103
129
|
/* Gently softened bottom aura */
|
|
@@ -126,7 +152,7 @@
|
|
|
126
152
|
display: flex;
|
|
127
153
|
align-items: center;
|
|
128
154
|
justify-content: space-between;
|
|
129
|
-
padding:
|
|
155
|
+
padding: 15px 14px 10px 16px;
|
|
130
156
|
border-bottom: 1px solid var(--clado-ui-edge);
|
|
131
157
|
gap: 8px;
|
|
132
158
|
position: relative;
|
|
@@ -257,7 +283,7 @@
|
|
|
257
283
|
gap: 10px;
|
|
258
284
|
height: var(--clado-dock-stream-h, 300px);
|
|
259
285
|
min-height: 160px;
|
|
260
|
-
max-height:
|
|
286
|
+
max-height: min(820px, calc(100dvh - 200px));
|
|
261
287
|
overflow-y: auto;
|
|
262
288
|
}
|
|
263
289
|
.clado-dock-stream > * {
|
|
@@ -397,6 +423,9 @@
|
|
|
397
423
|
overflow: hidden;
|
|
398
424
|
font-size: 11.5px;
|
|
399
425
|
}
|
|
426
|
+
.clado-tool-trace-err {
|
|
427
|
+
border-color: rgba(244, 63, 94, 0.34);
|
|
428
|
+
}
|
|
400
429
|
.clado-tool-trace > summary {
|
|
401
430
|
list-style: none;
|
|
402
431
|
cursor: pointer;
|
|
@@ -427,6 +456,10 @@
|
|
|
427
456
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
428
457
|
font-size: 11px;
|
|
429
458
|
}
|
|
459
|
+
.clado-tool-step-err {
|
|
460
|
+
background: rgba(244, 63, 94, 0.065);
|
|
461
|
+
border-color: rgba(244, 63, 94, 0.28);
|
|
462
|
+
}
|
|
430
463
|
.clado-tool-step-head {
|
|
431
464
|
display: flex;
|
|
432
465
|
align-items: center;
|
|
@@ -446,6 +479,20 @@
|
|
|
446
479
|
flex: 1;
|
|
447
480
|
min-width: 0;
|
|
448
481
|
}
|
|
482
|
+
.clado-tool-status-muted {
|
|
483
|
+
font-size: 10px;
|
|
484
|
+
color: var(--clado-ui-subtle);
|
|
485
|
+
flex: none;
|
|
486
|
+
}
|
|
487
|
+
.clado-tool-status-err {
|
|
488
|
+
font-size: 10px;
|
|
489
|
+
font-weight: 620;
|
|
490
|
+
color: #e11d48;
|
|
491
|
+
flex: none;
|
|
492
|
+
}
|
|
493
|
+
:root[data-theme="dark"] .clado-tool-status-err {
|
|
494
|
+
color: #fb7185;
|
|
495
|
+
}
|
|
449
496
|
.clado-tool-preview {
|
|
450
497
|
margin-top: 4px;
|
|
451
498
|
padding-top: 4px;
|
|
@@ -453,10 +500,16 @@
|
|
|
453
500
|
color: var(--clado-ui-subtle);
|
|
454
501
|
white-space: pre-wrap;
|
|
455
502
|
word-break: break-all;
|
|
456
|
-
max-height:
|
|
503
|
+
max-height: 92px;
|
|
457
504
|
overflow-y: auto;
|
|
458
505
|
line-height: 1.45;
|
|
459
506
|
}
|
|
507
|
+
.clado-tool-step-err .clado-tool-preview {
|
|
508
|
+
color: #be123c;
|
|
509
|
+
}
|
|
510
|
+
:root[data-theme="dark"] .clado-tool-step-err .clado-tool-preview {
|
|
511
|
+
color: #fda4af;
|
|
512
|
+
}
|
|
460
513
|
.clado-live-activity {
|
|
461
514
|
align-self: flex-start;
|
|
462
515
|
display: inline-flex;
|
|
@@ -508,6 +561,40 @@
|
|
|
508
561
|
flex-wrap: wrap;
|
|
509
562
|
gap: 7px;
|
|
510
563
|
}
|
|
564
|
+
.clado-decision-custom {
|
|
565
|
+
display: flex;
|
|
566
|
+
align-items: center;
|
|
567
|
+
gap: 6px;
|
|
568
|
+
padding-top: 4px;
|
|
569
|
+
border-top: 1px dashed var(--clado-ui-edge);
|
|
570
|
+
}
|
|
571
|
+
.clado-decision-input {
|
|
572
|
+
flex: 1;
|
|
573
|
+
min-width: 0;
|
|
574
|
+
height: 30px;
|
|
575
|
+
padding: 0 10px;
|
|
576
|
+
border-radius: 10px;
|
|
577
|
+
border: 1px solid var(--clado-ui-well-border);
|
|
578
|
+
background: var(--clado-ui-well);
|
|
579
|
+
color: var(--clado-ui-text);
|
|
580
|
+
font-size: 12px;
|
|
581
|
+
font-family: inherit;
|
|
582
|
+
outline: none;
|
|
583
|
+
transition: border-color 140ms ease, box-shadow 140ms ease;
|
|
584
|
+
}
|
|
585
|
+
.clado-decision-input:focus {
|
|
586
|
+
border-color: var(--clado-ui-brand);
|
|
587
|
+
box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18);
|
|
588
|
+
}
|
|
589
|
+
.clado-decision-input::placeholder {
|
|
590
|
+
color: var(--clado-ui-subtle);
|
|
591
|
+
}
|
|
592
|
+
.clado-decision-submit {
|
|
593
|
+
flex: none;
|
|
594
|
+
min-height: 30px;
|
|
595
|
+
padding: 4px 12px;
|
|
596
|
+
font-size: 11.5px;
|
|
597
|
+
}
|
|
511
598
|
.clado-decision-done {
|
|
512
599
|
align-self: flex-start;
|
|
513
600
|
font-size: 11.5px;
|
|
@@ -535,12 +622,15 @@
|
|
|
535
622
|
gap: 6px;
|
|
536
623
|
overflow-x: auto;
|
|
537
624
|
scrollbar-width: none;
|
|
538
|
-
padding: 2px
|
|
625
|
+
padding: 4px 2px 10px;
|
|
539
626
|
}
|
|
540
627
|
.clado-role-strip::-webkit-scrollbar { display: none; }
|
|
541
628
|
.clado-role-pill {
|
|
629
|
+
--pill-c1: rgba(56, 189, 248, 0.85);
|
|
630
|
+
--pill-c2: rgba(129, 140, 248, 0.85);
|
|
631
|
+
--pill-glow: rgba(56, 189, 248, 0.34);
|
|
542
632
|
position: relative;
|
|
543
|
-
overflow:
|
|
633
|
+
overflow: visible;
|
|
544
634
|
flex: none;
|
|
545
635
|
appearance: none;
|
|
546
636
|
border-radius: 999px;
|
|
@@ -560,28 +650,64 @@
|
|
|
560
650
|
gap: 6px;
|
|
561
651
|
transition: all 150ms ease;
|
|
562
652
|
}
|
|
653
|
+
.clado-role-pill[data-tone="sky"] {
|
|
654
|
+
--pill-c1: rgba(56, 189, 248, 0.85);
|
|
655
|
+
--pill-c2: rgba(129, 140, 248, 0.85);
|
|
656
|
+
--pill-glow: rgba(56, 189, 248, 0.36);
|
|
657
|
+
}
|
|
658
|
+
.clado-role-pill[data-tone="emerald"] {
|
|
659
|
+
--pill-c1: rgba(16, 185, 129, 0.85);
|
|
660
|
+
--pill-c2: rgba(45, 212, 191, 0.85);
|
|
661
|
+
--pill-glow: rgba(16, 185, 129, 0.36);
|
|
662
|
+
}
|
|
663
|
+
.clado-role-pill[data-tone="violet"] {
|
|
664
|
+
--pill-c1: rgba(139, 92, 246, 0.85);
|
|
665
|
+
--pill-c2: rgba(244, 114, 182, 0.85);
|
|
666
|
+
--pill-glow: rgba(139, 92, 246, 0.36);
|
|
667
|
+
}
|
|
668
|
+
.clado-role-pill[data-tone="amber"] {
|
|
669
|
+
--pill-c1: rgba(245, 158, 11, 0.85);
|
|
670
|
+
--pill-c2: rgba(251, 146, 60, 0.85);
|
|
671
|
+
--pill-glow: rgba(245, 158, 11, 0.36);
|
|
672
|
+
}
|
|
673
|
+
.clado-role-pill::before {
|
|
674
|
+
content: "";
|
|
675
|
+
position: absolute;
|
|
676
|
+
left: 14px;
|
|
677
|
+
right: 14px;
|
|
678
|
+
top: calc(100% - 1px);
|
|
679
|
+
height: 9px;
|
|
680
|
+
border-radius: 50%;
|
|
681
|
+
background: radial-gradient(ellipse 62% 100% at 50% 0%, var(--pill-glow), transparent 78%);
|
|
682
|
+
filter: blur(4px);
|
|
683
|
+
opacity: 0;
|
|
684
|
+
pointer-events: none;
|
|
685
|
+
transition: opacity 180ms ease;
|
|
686
|
+
}
|
|
563
687
|
.clado-role-pill::after {
|
|
564
688
|
content: "";
|
|
565
689
|
position: absolute;
|
|
566
690
|
left: 16px;
|
|
567
691
|
right: 16px;
|
|
568
|
-
bottom: 0;
|
|
569
|
-
height:
|
|
570
|
-
border-radius:
|
|
571
|
-
|
|
692
|
+
bottom: -0.5px;
|
|
693
|
+
height: 1px;
|
|
694
|
+
border-radius: 1px;
|
|
695
|
+
background: linear-gradient(90deg, transparent 0%, var(--pill-c1) 28%, var(--pill-c2) 72%, transparent 100%);
|
|
696
|
+
opacity: 0.42;
|
|
697
|
+
pointer-events: none;
|
|
572
698
|
transition: all 150ms ease;
|
|
573
699
|
}
|
|
574
|
-
.clado-role-pill
|
|
575
|
-
.clado-role-pill
|
|
576
|
-
.clado-role-pill[data-tone="violet"]::after { background: linear-gradient(90deg, #a78bfa, #f472b6); }
|
|
577
|
-
.clado-role-pill[data-tone="amber"]::after { background: linear-gradient(90deg, #fbbf24, #fb923c); }
|
|
578
|
-
.clado-role-pill.active {
|
|
700
|
+
.clado-role-pill.active,
|
|
701
|
+
.clado-role-pill.running {
|
|
579
702
|
color: var(--clado-ui-text);
|
|
580
703
|
background: var(--clado-ui-active);
|
|
581
|
-
border-color: rgba(147, 197, 253, 0.
|
|
582
|
-
box-shadow: 0
|
|
704
|
+
border-color: rgba(147, 197, 253, 0.52);
|
|
705
|
+
box-shadow: 0 3px 12px -6px var(--pill-glow), inset 0 1px 0 var(--clado-ui-highlight);
|
|
583
706
|
}
|
|
584
|
-
.clado-role-pill.active::
|
|
707
|
+
.clado-role-pill.active::before,
|
|
708
|
+
.clado-role-pill.running::before { opacity: 0.92; }
|
|
709
|
+
.clado-role-pill.active::after,
|
|
710
|
+
.clado-role-pill.running::after { left: 11px; right: 11px; opacity: 0.88; }
|
|
585
711
|
|
|
586
712
|
.clado-role-add {
|
|
587
713
|
width: 30px;
|
|
@@ -589,6 +715,7 @@
|
|
|
589
715
|
padding: 0;
|
|
590
716
|
justify-content: center;
|
|
591
717
|
}
|
|
718
|
+
.clado-role-add::before,
|
|
592
719
|
.clado-role-add::after { display: none; }
|
|
593
720
|
|
|
594
721
|
/* Multiline Auto-Grow Composer */
|
|
@@ -915,3 +1042,326 @@
|
|
|
915
1042
|
background: var(--clado-ui-hover);
|
|
916
1043
|
border-color: var(--clado-ui-hover-border);
|
|
917
1044
|
}
|
|
1045
|
+
|
|
1046
|
+
/* Composer Context Chips Bar */
|
|
1047
|
+
.clado-ctx-bar {
|
|
1048
|
+
display: flex;
|
|
1049
|
+
flex-wrap: wrap;
|
|
1050
|
+
align-items: center;
|
|
1051
|
+
gap: 5px;
|
|
1052
|
+
padding: 0 2px 6px;
|
|
1053
|
+
}
|
|
1054
|
+
.clado-ctx-chip {
|
|
1055
|
+
display: inline-flex;
|
|
1056
|
+
align-items: center;
|
|
1057
|
+
gap: 5px;
|
|
1058
|
+
max-width: 100%;
|
|
1059
|
+
padding: 2px 8px;
|
|
1060
|
+
border-radius: 999px;
|
|
1061
|
+
font-size: 10.5px;
|
|
1062
|
+
font-weight: 560;
|
|
1063
|
+
color: var(--clado-ui-text-soft);
|
|
1064
|
+
background: var(--clado-ui-well);
|
|
1065
|
+
border: 1px solid var(--clado-ui-well-border);
|
|
1066
|
+
}
|
|
1067
|
+
.clado-ctx-chip.is-snippet {
|
|
1068
|
+
background: var(--clado-ui-prism-bg);
|
|
1069
|
+
border-color: var(--clado-ui-prism-border);
|
|
1070
|
+
color: var(--clado-ui-prism-text);
|
|
1071
|
+
}
|
|
1072
|
+
.clado-ctx-chip-txt {
|
|
1073
|
+
overflow: hidden;
|
|
1074
|
+
text-overflow: ellipsis;
|
|
1075
|
+
white-space: nowrap;
|
|
1076
|
+
max-width: 220px;
|
|
1077
|
+
}
|
|
1078
|
+
.clado-ctx-chip-x {
|
|
1079
|
+
appearance: none;
|
|
1080
|
+
border: 0;
|
|
1081
|
+
background: transparent;
|
|
1082
|
+
color: inherit;
|
|
1083
|
+
opacity: 0.68;
|
|
1084
|
+
cursor: pointer;
|
|
1085
|
+
padding: 0 1px;
|
|
1086
|
+
font-size: 12px;
|
|
1087
|
+
line-height: 1;
|
|
1088
|
+
}
|
|
1089
|
+
.clado-ctx-chip-x:hover { opacity: 1; }
|
|
1090
|
+
|
|
1091
|
+
/* Mid-turn Stop Button */
|
|
1092
|
+
.clado-stop-btn {
|
|
1093
|
+
appearance: none;
|
|
1094
|
+
border: 1px solid rgba(244, 63, 94, 0.38);
|
|
1095
|
+
background: rgba(244, 63, 94, 0.10);
|
|
1096
|
+
color: #be123c;
|
|
1097
|
+
border-radius: 999px;
|
|
1098
|
+
min-height: 26px;
|
|
1099
|
+
padding: 3px 10px;
|
|
1100
|
+
font: inherit;
|
|
1101
|
+
font-size: 11.5px;
|
|
1102
|
+
font-weight: 600;
|
|
1103
|
+
cursor: pointer;
|
|
1104
|
+
transition: background 140ms ease, border-color 140ms ease;
|
|
1105
|
+
}
|
|
1106
|
+
.clado-stop-btn:hover {
|
|
1107
|
+
background: rgba(244, 63, 94, 0.18);
|
|
1108
|
+
border-color: rgba(244, 63, 94, 0.56);
|
|
1109
|
+
}
|
|
1110
|
+
:root[data-theme="dark"] .clado-stop-btn {
|
|
1111
|
+
color: #fda4af;
|
|
1112
|
+
background: rgba(244, 63, 94, 0.16);
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
/* Collapsible Thinking Trace */
|
|
1116
|
+
.clado-thinking-trace {
|
|
1117
|
+
align-self: stretch;
|
|
1118
|
+
border-radius: 11px;
|
|
1119
|
+
border: 1px dashed var(--clado-ui-edge);
|
|
1120
|
+
background: color-mix(in srgb, var(--clado-ui-well) 65%, transparent);
|
|
1121
|
+
font-size: 11px;
|
|
1122
|
+
color: var(--clado-ui-muted);
|
|
1123
|
+
overflow: hidden;
|
|
1124
|
+
}
|
|
1125
|
+
.clado-thinking-trace summary {
|
|
1126
|
+
cursor: pointer;
|
|
1127
|
+
padding: 5px 10px;
|
|
1128
|
+
list-style: none;
|
|
1129
|
+
display: flex;
|
|
1130
|
+
align-items: center;
|
|
1131
|
+
justify-content: space-between;
|
|
1132
|
+
gap: 8px;
|
|
1133
|
+
user-select: none;
|
|
1134
|
+
font-weight: 540;
|
|
1135
|
+
}
|
|
1136
|
+
.clado-thinking-trace summary::-webkit-details-marker { display: none; }
|
|
1137
|
+
.clado-thinking-body {
|
|
1138
|
+
padding: 6px 10px 8px;
|
|
1139
|
+
border-top: 1px dashed var(--clado-ui-edge);
|
|
1140
|
+
white-space: pre-wrap;
|
|
1141
|
+
overflow-wrap: anywhere;
|
|
1142
|
+
max-height: 180px;
|
|
1143
|
+
overflow-y: auto;
|
|
1144
|
+
font-size: 11px;
|
|
1145
|
+
line-height: 1.5;
|
|
1146
|
+
opacity: 0.85;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/* Clickable Card / Tag / Tool Chips in Chat */
|
|
1150
|
+
.clado-tool-step.is-clickable {
|
|
1151
|
+
cursor: pointer;
|
|
1152
|
+
transition: background-color 130ms ease, border-color 130ms ease;
|
|
1153
|
+
}
|
|
1154
|
+
.clado-tool-step.is-clickable:hover {
|
|
1155
|
+
background: var(--clado-ui-hover);
|
|
1156
|
+
border-color: var(--clado-ui-hover-border);
|
|
1157
|
+
}
|
|
1158
|
+
.clado-chat-ref {
|
|
1159
|
+
appearance: none;
|
|
1160
|
+
display: inline-flex;
|
|
1161
|
+
align-items: center;
|
|
1162
|
+
gap: 3px;
|
|
1163
|
+
padding: 0.5px 6px;
|
|
1164
|
+
margin: 0 1px;
|
|
1165
|
+
border-radius: 6px;
|
|
1166
|
+
border: 1px solid var(--clado-ui-prism-border);
|
|
1167
|
+
background: var(--clado-ui-prism-bg);
|
|
1168
|
+
color: var(--clado-ui-prism-text);
|
|
1169
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1170
|
+
font-size: 0.9em;
|
|
1171
|
+
cursor: pointer;
|
|
1172
|
+
vertical-align: baseline;
|
|
1173
|
+
transition: transform 120ms ease, filter 120ms ease;
|
|
1174
|
+
}
|
|
1175
|
+
.clado-chat-ref:hover {
|
|
1176
|
+
filter: brightness(0.96);
|
|
1177
|
+
transform: translateY(-0.5px);
|
|
1178
|
+
}
|
|
1179
|
+
.clado-msg-user.is-steer {
|
|
1180
|
+
background: rgba(254, 243, 199, 0.55);
|
|
1181
|
+
border-color: rgba(245, 158, 11, 0.45);
|
|
1182
|
+
color: #92400e;
|
|
1183
|
+
}
|
|
1184
|
+
:root[data-theme="dark"] .clado-msg-user.is-steer {
|
|
1185
|
+
background: rgba(245, 158, 11, 0.18);
|
|
1186
|
+
border-color: rgba(245, 158, 11, 0.36);
|
|
1187
|
+
color: #fde68a;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
/* Live Context Window Meter Pill & Quick Runtime Popover */
|
|
1191
|
+
.clado-ctx-meter {
|
|
1192
|
+
appearance: none;
|
|
1193
|
+
border: 1px solid var(--clado-ui-well-border);
|
|
1194
|
+
background: var(--clado-ui-well);
|
|
1195
|
+
color: var(--clado-ui-muted);
|
|
1196
|
+
border-radius: 999px;
|
|
1197
|
+
padding: 2px 8px;
|
|
1198
|
+
height: 24px;
|
|
1199
|
+
font: inherit;
|
|
1200
|
+
font-size: 10.5px;
|
|
1201
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
1202
|
+
display: inline-flex;
|
|
1203
|
+
align-items: center;
|
|
1204
|
+
gap: 5px;
|
|
1205
|
+
cursor: pointer;
|
|
1206
|
+
white-space: nowrap;
|
|
1207
|
+
flex-shrink: 0;
|
|
1208
|
+
transition: all 140ms ease;
|
|
1209
|
+
}
|
|
1210
|
+
.clado-ctx-meter:hover {
|
|
1211
|
+
border-color: var(--clado-ui-brand);
|
|
1212
|
+
color: var(--clado-ui-text);
|
|
1213
|
+
}
|
|
1214
|
+
.clado-ctx-meter-track {
|
|
1215
|
+
width: 24px;
|
|
1216
|
+
height: 4px;
|
|
1217
|
+
border-radius: 999px;
|
|
1218
|
+
background: rgba(148, 163, 184, 0.28);
|
|
1219
|
+
overflow: hidden;
|
|
1220
|
+
flex: none;
|
|
1221
|
+
}
|
|
1222
|
+
.clado-ctx-meter-fill {
|
|
1223
|
+
display: block;
|
|
1224
|
+
height: 100%;
|
|
1225
|
+
border-radius: 999px;
|
|
1226
|
+
background: #10b981;
|
|
1227
|
+
transition: width 220ms ease, background 220ms ease;
|
|
1228
|
+
}
|
|
1229
|
+
.clado-ctx-meter.is-warn .clado-ctx-meter-fill { background: #f59e0b; }
|
|
1230
|
+
.clado-ctx-meter.is-danger .clado-ctx-meter-fill { background: #ef4444; }
|
|
1231
|
+
.clado-ctx-meter.is-danger { color: #e11d48; border-color: rgba(244, 63, 94, 0.35); }
|
|
1232
|
+
:root[data-theme="dark"] .clado-ctx-meter.is-danger { color: #fb7185; }
|
|
1233
|
+
|
|
1234
|
+
.clado-ctx-pop-card {
|
|
1235
|
+
padding: 8px 10px;
|
|
1236
|
+
display: flex;
|
|
1237
|
+
flex-direction: column;
|
|
1238
|
+
gap: 9px;
|
|
1239
|
+
font-size: 11.5px;
|
|
1240
|
+
color: var(--clado-ui-text);
|
|
1241
|
+
}
|
|
1242
|
+
.clado-ctx-pop-head {
|
|
1243
|
+
display: flex;
|
|
1244
|
+
align-items: center;
|
|
1245
|
+
justify-content: space-between;
|
|
1246
|
+
gap: 8px;
|
|
1247
|
+
}
|
|
1248
|
+
.clado-ctx-pop-bar {
|
|
1249
|
+
width: 100%;
|
|
1250
|
+
height: 6px;
|
|
1251
|
+
border-radius: 999px;
|
|
1252
|
+
background: rgba(148, 163, 184, 0.22);
|
|
1253
|
+
overflow: hidden;
|
|
1254
|
+
}
|
|
1255
|
+
.clado-ctx-pop-bar > i {
|
|
1256
|
+
display: block;
|
|
1257
|
+
height: 100%;
|
|
1258
|
+
border-radius: 999px;
|
|
1259
|
+
background: #10b981;
|
|
1260
|
+
transition: width 200ms ease;
|
|
1261
|
+
}
|
|
1262
|
+
.clado-ctx-pop-stats {
|
|
1263
|
+
display: grid;
|
|
1264
|
+
grid-template-columns: repeat(3, 1fr);
|
|
1265
|
+
gap: 6px;
|
|
1266
|
+
}
|
|
1267
|
+
.clado-ctx-stat {
|
|
1268
|
+
padding: 6px 8px;
|
|
1269
|
+
border-radius: 9px;
|
|
1270
|
+
background: var(--clado-ui-well);
|
|
1271
|
+
border: 1px solid var(--clado-ui-well-border);
|
|
1272
|
+
}
|
|
1273
|
+
.clado-ctx-stat-k {
|
|
1274
|
+
font-size: 10px;
|
|
1275
|
+
color: var(--clado-ui-subtle);
|
|
1276
|
+
}
|
|
1277
|
+
.clado-ctx-stat-v {
|
|
1278
|
+
margin-top: 2px;
|
|
1279
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
1280
|
+
font-size: 11.5px;
|
|
1281
|
+
font-weight: 600;
|
|
1282
|
+
}
|
|
1283
|
+
.clado-ctx-pills {
|
|
1284
|
+
display: flex;
|
|
1285
|
+
flex-wrap: wrap;
|
|
1286
|
+
gap: 5px;
|
|
1287
|
+
}
|
|
1288
|
+
.clado-ctx-pill-btn {
|
|
1289
|
+
appearance: none;
|
|
1290
|
+
border: 1px solid var(--clado-ui-well-border);
|
|
1291
|
+
background: var(--clado-ui-well);
|
|
1292
|
+
color: var(--clado-ui-muted);
|
|
1293
|
+
border-radius: 999px;
|
|
1294
|
+
padding: 3px 9px;
|
|
1295
|
+
font: inherit;
|
|
1296
|
+
font-size: 11px;
|
|
1297
|
+
cursor: pointer;
|
|
1298
|
+
transition: all 140ms ease;
|
|
1299
|
+
}
|
|
1300
|
+
.clado-ctx-pill-btn:hover {
|
|
1301
|
+
border-color: var(--clado-ui-brand);
|
|
1302
|
+
color: var(--clado-ui-text);
|
|
1303
|
+
}
|
|
1304
|
+
.clado-ctx-pill-btn.active {
|
|
1305
|
+
background: var(--clado-ui-prism-bg);
|
|
1306
|
+
border-color: var(--clado-ui-prism-border);
|
|
1307
|
+
color: var(--clado-ui-prism-text);
|
|
1308
|
+
font-weight: 600;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
/* Runtime Settings & Official Model Quick-Pick Chips inside Settings Modal */
|
|
1312
|
+
.clado-rt-grid {
|
|
1313
|
+
display: grid;
|
|
1314
|
+
grid-template-columns: 1fr 1fr;
|
|
1315
|
+
gap: 10px;
|
|
1316
|
+
}
|
|
1317
|
+
.clado-rt-field {
|
|
1318
|
+
display: flex;
|
|
1319
|
+
flex-direction: column;
|
|
1320
|
+
gap: 4px;
|
|
1321
|
+
}
|
|
1322
|
+
.clado-rt-label {
|
|
1323
|
+
font-size: 11.5px;
|
|
1324
|
+
font-weight: 560;
|
|
1325
|
+
color: var(--clado-ui-muted);
|
|
1326
|
+
display: flex;
|
|
1327
|
+
align-items: center;
|
|
1328
|
+
justify-content: space-between;
|
|
1329
|
+
}
|
|
1330
|
+
.clado-rt-checks {
|
|
1331
|
+
display: flex;
|
|
1332
|
+
flex-wrap: wrap;
|
|
1333
|
+
gap: 14px;
|
|
1334
|
+
font-size: 12px;
|
|
1335
|
+
color: var(--clado-ui-text);
|
|
1336
|
+
}
|
|
1337
|
+
.clado-rt-checks label {
|
|
1338
|
+
display: inline-flex;
|
|
1339
|
+
align-items: center;
|
|
1340
|
+
gap: 6px;
|
|
1341
|
+
cursor: pointer;
|
|
1342
|
+
}
|
|
1343
|
+
.clado-model-presets {
|
|
1344
|
+
display: flex;
|
|
1345
|
+
flex-wrap: wrap;
|
|
1346
|
+
gap: 6px;
|
|
1347
|
+
}
|
|
1348
|
+
.clado-model-preset-chip {
|
|
1349
|
+
appearance: none;
|
|
1350
|
+
border: 1px solid var(--clado-ui-well-border);
|
|
1351
|
+
background: var(--clado-ui-well);
|
|
1352
|
+
color: var(--clado-ui-text);
|
|
1353
|
+
border-radius: 9px;
|
|
1354
|
+
padding: 4px 9px;
|
|
1355
|
+
font-size: 11px;
|
|
1356
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
1357
|
+
cursor: pointer;
|
|
1358
|
+
transition: all 140ms ease;
|
|
1359
|
+
}
|
|
1360
|
+
.clado-model-preset-chip:hover {
|
|
1361
|
+
border-color: var(--clado-ui-brand);
|
|
1362
|
+
}
|
|
1363
|
+
.clado-model-preset-chip.active {
|
|
1364
|
+
background: var(--clado-ui-prism-bg);
|
|
1365
|
+
border-color: var(--clado-ui-prism-border);
|
|
1366
|
+
color: var(--clado-ui-prism-text);
|
|
1367
|
+
}
|