cladogram 0.5.5-beta.9 → 0.6.0-beta.1
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 +102 -79
- package/bin/clado.js +1 -1
- package/docs/release.md +7 -0
- package/package.json +3 -3
- package/plugins/agent/index.js +928 -3131
- package/plugins/agent/style.css +404 -1511
- package/plugins/brand/index.js +84 -466
- package/plugins/brand/style.css +39 -172
- package/plugins/directory/index.js +10 -10
- package/plugins/view-controls/index.js +17 -1
- package/plugins/view-controls/style.css +47 -29
- package/src/agent/clado-tools.js +299 -0
- package/src/agent/pi-bridge.js +487 -0
- package/src/agent/pi-config.js +630 -0
- package/src/html/plugin-ui.css +159 -134
- package/src/html/plugin-ui.js +3 -2
- package/src/server/agent.js +329 -1590
- package/src/server/assets/library.css +396 -11
- package/src/server/assets/library.html +37 -4
- package/src/server/assets/library.js +428 -203
- package/src/server/plugin-registry.js +7 -7
- package/src/server/plugins.js +1 -1
- package/src/server/workspace-hub.js +50 -0
- package/src/server/workspace.js +4 -15
- package/src/agent/commands.js +0 -204
- package/src/agent/context.js +0 -445
- package/src/agent/executors.js +0 -213
- package/src/agent/mcp-client.js +0 -308
- package/src/agent/probe.js +0 -234
- package/src/agent/providers/anthropic.js +0 -220
- package/src/agent/providers/index.js +0 -235
- package/src/agent/providers/openai.js +0 -146
- package/src/agent/runtime.js +0 -995
- package/src/agent/sessions.js +0 -336
- package/src/agent/skills.js +0 -190
package/src/html/plugin-ui.css
CHANGED
|
@@ -1,75 +1,98 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--clado-ui-
|
|
3
|
-
--clado-ui-
|
|
4
|
-
--clado-ui-
|
|
5
|
-
--clado-ui-
|
|
6
|
-
--clado-ui-
|
|
7
|
-
--clado-ui-
|
|
8
|
-
--clado-ui-
|
|
9
|
-
--clado-ui-
|
|
10
|
-
--clado-ui-
|
|
11
|
-
--clado-ui-
|
|
12
|
-
--clado-ui-
|
|
13
|
-
--clado-ui-
|
|
14
|
-
--clado-ui-
|
|
15
|
-
--clado-ui-
|
|
16
|
-
--clado-ui-
|
|
17
|
-
--clado-ui-
|
|
18
|
-
--clado-ui-
|
|
19
|
-
--clado-ui-
|
|
20
|
-
--clado-ui-
|
|
21
|
-
--clado-ui-
|
|
22
|
-
--clado-ui-
|
|
23
|
-
--clado-ui-
|
|
24
|
-
--clado-ui-
|
|
25
|
-
--clado-ui-
|
|
26
|
-
--clado-ui-
|
|
27
|
-
--clado-ui-
|
|
28
|
-
--clado-ui-
|
|
29
|
-
--clado-ui-
|
|
2
|
+
--clado-ui-canvas-bg: #f6f8fc;
|
|
3
|
+
--clado-ui-dot-color: rgba(148, 163, 184, 0.30);
|
|
4
|
+
--clado-ui-text: #161b26;
|
|
5
|
+
--clado-ui-text-soft: #334155;
|
|
6
|
+
--clado-ui-muted: #64748b;
|
|
7
|
+
--clado-ui-subtle: #94a3b8;
|
|
8
|
+
--clado-ui-accent: #1e3a5f;
|
|
9
|
+
--clado-ui-brand: #0284c7;
|
|
10
|
+
--clado-ui-brand-soft: rgba(56, 189, 248, 0.14);
|
|
11
|
+
--clado-ui-surface: linear-gradient(155deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.36) 52%, rgba(244, 248, 255, 0.48) 100%);
|
|
12
|
+
--clado-ui-panel-surface: linear-gradient(155deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.42) 55%, rgba(244, 248, 255, 0.54) 100%);
|
|
13
|
+
--clado-ui-well: rgba(255, 255, 255, 0.34);
|
|
14
|
+
--clado-ui-well-border: rgba(255, 255, 255, 0.82);
|
|
15
|
+
--clado-ui-well-focus: rgba(255, 255, 255, 0.58);
|
|
16
|
+
--clado-ui-track: rgba(255, 255, 255, 0.24);
|
|
17
|
+
--clado-ui-hover: linear-gradient(135deg, rgba(224, 242, 254, 0.72), rgba(209, 250, 229, 0.52));
|
|
18
|
+
--clado-ui-hover-border: rgba(125, 211, 252, 0.82);
|
|
19
|
+
--clado-ui-active: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.78));
|
|
20
|
+
--clado-ui-active-shadow: 0 3px 12px rgba(30, 41, 59, 0.09), 0 0 0 0.5px rgba(15, 23, 42, 0.05), inset 0 1px 0 #ffffff;
|
|
21
|
+
--clado-ui-prism-bg: linear-gradient(135deg, rgba(224, 242, 254, 0.86) 0%, rgba(232, 236, 255, 0.84) 55%, rgba(243, 232, 255, 0.78) 100%);
|
|
22
|
+
--clado-ui-prism-border: rgba(147, 197, 253, 0.90);
|
|
23
|
+
--clado-ui-prism-text: #1e3a5f;
|
|
24
|
+
--clado-ui-prism-shadow: 0 8px 22px -6px rgba(99, 102, 241, 0.24), 0 2px 6px -1px rgba(56, 189, 248, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.96);
|
|
25
|
+
--clado-ui-decision-bg: linear-gradient(155deg, rgba(255, 251, 235, 0.84), rgba(254, 243, 199, 0.46));
|
|
26
|
+
--clado-ui-decision-border: rgba(245, 158, 11, 0.44);
|
|
27
|
+
--clado-ui-decision-shadow: 0 12px 32px -10px rgba(245, 158, 11, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.88);
|
|
28
|
+
--clado-ui-popover: linear-gradient(160deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 255, 0.76) 100%);
|
|
29
|
+
--clado-ui-solid: #f6f8fc;
|
|
30
|
+
--clado-ui-edge: rgba(15, 23, 42, 0.075);
|
|
31
|
+
--clado-ui-highlight: rgba(255, 255, 255, 0.96);
|
|
32
|
+
--clado-ui-rim: rgba(255, 255, 255, 0.52);
|
|
33
|
+
--clado-ui-shadow: 0 10px 28px -8px rgba(30, 41, 59, 0.10), 0 2px 6px -1px rgba(30, 41, 59, 0.04);
|
|
34
|
+
--clado-ui-glass-outline: rgba(255, 255, 255, 0.88);
|
|
35
|
+
--clado-ui-glass-outer: rgba(15, 23, 42, 0.065);
|
|
36
|
+
--clado-ui-glass-shadow: 0 20px 48px -14px rgba(30, 41, 59, 0.11), 0 4px 12px -2px rgba(30, 41, 59, 0.045), 0 0 0 0.5px var(--clado-ui-glass-outer), inset 0 1px 0.5px var(--clado-ui-highlight), inset 0 0 22px rgba(255, 255, 255, 0.32);
|
|
37
|
+
--clado-ui-control-blur: 22px;
|
|
38
|
+
--clado-ui-panel-blur: 24px;
|
|
39
|
+
--clado-ui-radius: 18px;
|
|
30
40
|
--clado-ui-gap: 8px;
|
|
31
41
|
}
|
|
32
42
|
:root[data-theme="dark"] {
|
|
33
43
|
color-scheme: dark;
|
|
34
|
-
--clado-ui-
|
|
35
|
-
--clado-ui-
|
|
36
|
-
--clado-ui-
|
|
37
|
-
--clado-ui-
|
|
38
|
-
--clado-ui-
|
|
39
|
-
--clado-ui-
|
|
40
|
-
--clado-ui-
|
|
41
|
-
--clado-ui-
|
|
42
|
-
--clado-ui-
|
|
43
|
-
--clado-ui-
|
|
44
|
-
--clado-ui-
|
|
45
|
-
--clado-ui-
|
|
46
|
-
--clado-ui-
|
|
47
|
-
--clado-ui-
|
|
48
|
-
--clado-ui-
|
|
49
|
-
--clado-ui-
|
|
50
|
-
--clado-ui-
|
|
51
|
-
--clado-ui-
|
|
52
|
-
--clado-ui-
|
|
53
|
-
--clado-ui-
|
|
54
|
-
--clado-ui-
|
|
55
|
-
--clado-ui-
|
|
56
|
-
--clado-ui-
|
|
57
|
-
--clado-ui-
|
|
58
|
-
--clado-ui-
|
|
59
|
-
--clado-ui-
|
|
60
|
-
--clado-ui-
|
|
44
|
+
--clado-ui-canvas-bg: #0b0f18;
|
|
45
|
+
--clado-ui-dot-color: rgba(148, 163, 184, 0.14);
|
|
46
|
+
--clado-ui-text: #f1f5f9;
|
|
47
|
+
--clado-ui-text-soft: #cbd5e1;
|
|
48
|
+
--clado-ui-muted: #94a3b8;
|
|
49
|
+
--clado-ui-subtle: #64748b;
|
|
50
|
+
--clado-ui-accent: #eef6ff;
|
|
51
|
+
--clado-ui-brand: #38bdf8;
|
|
52
|
+
--clado-ui-brand-soft: rgba(56, 189, 248, 0.18);
|
|
53
|
+
--clado-ui-surface: linear-gradient(155deg, rgba(30, 38, 56, 0.56) 0%, rgba(17, 22, 34, 0.40) 55%, rgba(22, 28, 44, 0.48) 100%);
|
|
54
|
+
--clado-ui-panel-surface: linear-gradient(155deg, rgba(32, 41, 60, 0.66) 0%, rgba(17, 22, 34, 0.50) 100%);
|
|
55
|
+
--clado-ui-well: rgba(255, 255, 255, 0.045);
|
|
56
|
+
--clado-ui-well-border: rgba(255, 255, 255, 0.13);
|
|
57
|
+
--clado-ui-well-focus: rgba(255, 255, 255, 0.10);
|
|
58
|
+
--clado-ui-track: rgba(255, 255, 255, 0.05);
|
|
59
|
+
--clado-ui-hover: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(52, 211, 153, 0.14));
|
|
60
|
+
--clado-ui-hover-border: rgba(125, 211, 252, 0.45);
|
|
61
|
+
--clado-ui-active: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
|
|
62
|
+
--clado-ui-active-shadow: 0 3px 12px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.26);
|
|
63
|
+
--clado-ui-prism-bg: linear-gradient(135deg, rgba(56, 189, 248, 0.26) 0%, rgba(129, 140, 248, 0.28) 55%, rgba(192, 132, 252, 0.24) 100%);
|
|
64
|
+
--clado-ui-prism-border: rgba(165, 180, 252, 0.48);
|
|
65
|
+
--clado-ui-prism-text: #eef6ff;
|
|
66
|
+
--clado-ui-prism-shadow: 0 8px 24px -6px rgba(99, 102, 241, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.32);
|
|
67
|
+
--clado-ui-decision-bg: linear-gradient(155deg, rgba(245, 158, 11, 0.16), rgba(217, 119, 6, 0.08));
|
|
68
|
+
--clado-ui-decision-border: rgba(251, 191, 36, 0.38);
|
|
69
|
+
--clado-ui-decision-shadow: 0 14px 36px -10px rgba(245, 158, 11, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.18);
|
|
70
|
+
--clado-ui-popover: linear-gradient(160deg, rgba(24, 30, 46, 0.88) 0%, rgba(16, 21, 33, 0.80) 100%);
|
|
71
|
+
--clado-ui-solid: #0b0f18;
|
|
72
|
+
--clado-ui-edge: rgba(255, 255, 255, 0.09);
|
|
73
|
+
--clado-ui-highlight: rgba(255, 255, 255, 0.24);
|
|
74
|
+
--clado-ui-rim: rgba(255, 255, 255, 0.12);
|
|
75
|
+
--clado-ui-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.50), 0 2px 8px rgba(0, 0, 0, 0.26);
|
|
76
|
+
--clado-ui-glass-outline: rgba(255, 255, 255, 0.17);
|
|
77
|
+
--clado-ui-glass-outer: rgba(0, 0, 0, 0.50);
|
|
78
|
+
--clado-ui-glass-shadow: 0 24px 56px -14px rgba(0, 0, 0, 0.62), 0 4px 14px -2px rgba(0, 0, 0, 0.32), 0 0 0 0.5px var(--clado-ui-glass-outer), inset 0 1px 0.5px var(--clado-ui-highlight), inset 0 0 22px rgba(255, 255, 255, 0.035);
|
|
79
|
+
--clado-ui-control-blur: 22px;
|
|
80
|
+
--clado-ui-panel-blur: 24px;
|
|
61
81
|
}
|
|
62
82
|
.clado-plugin-slot {
|
|
63
83
|
position: fixed;
|
|
64
84
|
display: flex;
|
|
65
85
|
gap: var(--clado-ui-gap);
|
|
66
|
-
z-index:
|
|
67
|
-
font: 13px/1.35
|
|
86
|
+
z-index: 28;
|
|
87
|
+
font: 13px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
|
|
68
88
|
pointer-events: none;
|
|
69
89
|
opacity: 1;
|
|
70
90
|
transform: none;
|
|
71
91
|
transition: opacity 160ms ease, transform 160ms ease;
|
|
72
92
|
}
|
|
93
|
+
#clado-stage > .clado-plugin-slot {
|
|
94
|
+
position: absolute;
|
|
95
|
+
}
|
|
73
96
|
.clado-plugin-slot.clado-slot-hidden {
|
|
74
97
|
opacity: 0;
|
|
75
98
|
transform: translateY(-4px) scale(.985);
|
|
@@ -81,27 +104,11 @@
|
|
|
81
104
|
}
|
|
82
105
|
.clado-plugin-slot[hidden], .clado-plugin-slot [hidden] { display: none !important; }
|
|
83
106
|
.clado-plugin-slot > * { pointer-events: auto; }
|
|
84
|
-
.clado-plugin-slot[data-slot="top-left"] { top:
|
|
85
|
-
.clado-plugin-slot[data-slot="top-right"] { top:
|
|
86
|
-
.clado-plugin-slot[data-slot="bottom-left"] { bottom:
|
|
87
|
-
.clado-plugin-slot[data-slot="bottom-right"] { bottom:
|
|
88
|
-
.clado-plugin-slot[data-slot="bottom-center"] { left:
|
|
89
|
-
@media (max-width: 760px) {
|
|
90
|
-
.clado-plugin-slot[data-slot="bottom-right"] {
|
|
91
|
-
left: 10px;
|
|
92
|
-
right: 10px;
|
|
93
|
-
bottom: max(12px, env(safe-area-inset-bottom));
|
|
94
|
-
max-width: calc(100vw - 20px);
|
|
95
|
-
}
|
|
96
|
-
body[data-agent-dock="open"] .clado-plugin-slot[data-slot="bottom-left"] {
|
|
97
|
-
opacity: 0;
|
|
98
|
-
transform: translateY(8px) scale(.96);
|
|
99
|
-
pointer-events: none;
|
|
100
|
-
}
|
|
101
|
-
body[data-agent-dock="open"] .clado-plugin-slot[data-slot="bottom-left"] > * {
|
|
102
|
-
pointer-events: none;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
107
|
+
.clado-plugin-slot[data-slot="top-left"] { top: 14px; left: 16px; flex-direction: column; align-items: start; }
|
|
108
|
+
.clado-plugin-slot[data-slot="top-right"] { top: 14px; right: 16px; flex-direction: column; align-items: end; }
|
|
109
|
+
.clado-plugin-slot[data-slot="bottom-left"] { bottom: 16px; left: 16px; align-items: end; }
|
|
110
|
+
.clado-plugin-slot[data-slot="bottom-right"] { bottom: 16px; right: 16px; flex-direction: column-reverse; align-items: end; z-index: 34; }
|
|
111
|
+
.clado-plugin-slot[data-slot="bottom-center"] { left: 16px; right: 16px; bottom: 16px; justify-content: center; align-items: end; z-index: 32; }
|
|
105
112
|
:where(.clado-ui-glass) {
|
|
106
113
|
position: relative;
|
|
107
114
|
z-index: 0;
|
|
@@ -110,28 +117,34 @@
|
|
|
110
117
|
--clado-ui-glass-fill: var(--clado-ui-surface);
|
|
111
118
|
--clado-ui-glass-blur: var(--clado-ui-control-blur);
|
|
112
119
|
color: var(--clado-ui-text);
|
|
113
|
-
background: var(--clado-ui-
|
|
114
|
-
|
|
120
|
+
background: var(--clado-ui-surface);
|
|
121
|
+
backdrop-filter: blur(var(--clado-ui-glass-blur)) saturate(190%) brightness(1.03);
|
|
122
|
+
-webkit-backdrop-filter: blur(var(--clado-ui-glass-blur)) saturate(190%) brightness(1.03);
|
|
123
|
+
border: 1px solid var(--clado-ui-glass-outline);
|
|
115
124
|
border-radius: var(--clado-ui-radius);
|
|
116
|
-
box-shadow: var(--clado-ui-shadow);
|
|
125
|
+
box-shadow: var(--clado-ui-glass-shadow);
|
|
117
126
|
}
|
|
118
127
|
.clado-ui-glass.clado-ui-glass-panel {
|
|
119
128
|
--clado-ui-glass-fill: var(--clado-ui-panel-surface);
|
|
120
129
|
--clado-ui-glass-blur: var(--clado-ui-panel-blur);
|
|
121
|
-
border-radius:
|
|
130
|
+
border-radius: 22px;
|
|
122
131
|
}
|
|
123
132
|
.clado-ui-button {
|
|
124
133
|
appearance: none;
|
|
125
134
|
border: 1px solid transparent;
|
|
126
135
|
background: transparent;
|
|
127
136
|
color: var(--clado-ui-muted);
|
|
128
|
-
border-radius:
|
|
137
|
+
border-radius: 999px;
|
|
129
138
|
font: inherit;
|
|
130
139
|
line-height: 1.15;
|
|
131
140
|
min-height: 32px;
|
|
132
|
-
padding: 5px
|
|
141
|
+
padding: 5px 11px;
|
|
133
142
|
cursor: pointer;
|
|
134
143
|
white-space: nowrap;
|
|
144
|
+
display: inline-flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
gap: 6px;
|
|
135
148
|
transition: background 150ms cubic-bezier(.22,.75,.24,1), border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 120ms ease;
|
|
136
149
|
}
|
|
137
150
|
.clado-ui-button:hover:where(:not(:disabled)) {
|
|
@@ -146,17 +159,18 @@
|
|
|
146
159
|
box-shadow: var(--clado-ui-active-shadow);
|
|
147
160
|
}
|
|
148
161
|
.clado-ui-button.clado-ui-button-primary {
|
|
149
|
-
background: var(--clado-ui-
|
|
150
|
-
border
|
|
151
|
-
color: var(--clado-ui-
|
|
152
|
-
font-weight:
|
|
153
|
-
box-shadow:
|
|
162
|
+
background: var(--clado-ui-prism-bg);
|
|
163
|
+
border: 1px solid var(--clado-ui-prism-border);
|
|
164
|
+
color: var(--clado-ui-prism-text);
|
|
165
|
+
font-weight: 590;
|
|
166
|
+
box-shadow: var(--clado-ui-prism-shadow);
|
|
154
167
|
}
|
|
155
168
|
.clado-ui-button.clado-ui-button-primary:hover:where(:not(:disabled)) {
|
|
156
|
-
|
|
157
|
-
background: var(--clado-ui-
|
|
158
|
-
color: var(--clado-ui-
|
|
159
|
-
|
|
169
|
+
filter: brightness(1.03);
|
|
170
|
+
background: var(--clado-ui-prism-bg);
|
|
171
|
+
border-color: var(--clado-ui-prism-border);
|
|
172
|
+
color: var(--clado-ui-prism-text);
|
|
173
|
+
box-shadow: 0 10px 26px -6px rgba(99, 102, 241, 0.30), inset 0 1px 0 var(--clado-ui-highlight);
|
|
160
174
|
}
|
|
161
175
|
.clado-ui-button:focus-visible { outline: 2px solid var(--clado-ui-brand); outline-offset: 2px; }
|
|
162
176
|
.clado-ui-button:disabled { opacity: .48; cursor: default; }
|
|
@@ -216,65 +230,52 @@
|
|
|
216
230
|
}
|
|
217
231
|
}
|
|
218
232
|
}
|
|
219
|
-
|
|
220
|
-
.clado-plugin-slot[data-slot="top-left"] { top: max(10px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); max-width: calc(100vw - 210px); }
|
|
221
|
-
.clado-plugin-slot[data-slot="top-right"] { top: max(10px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
|
|
222
|
-
.clado-plugin-slot[data-slot="bottom-left"] { bottom: max(12px, env(safe-area-inset-bottom)); left: max(12px, env(safe-area-inset-left)); }
|
|
223
|
-
.clado-plugin-slot[data-slot="bottom-right"] { bottom: max(12px, env(safe-area-inset-bottom)); right: max(12px, env(safe-area-inset-right)); }
|
|
224
|
-
}
|
|
233
|
+
body:not(:has(#clado-stage)) .clado-plugin-slot[data-slot="top-left"] { max-width: calc(100vw - 220px); }
|
|
225
234
|
|
|
226
|
-
/* ============
|
|
235
|
+
/* ============ 顶部悬浮多选汇总条(通透液态玻璃 + 棱镜主按钮) ============ */
|
|
227
236
|
.clado-selection-bar {
|
|
228
|
-
position:
|
|
229
|
-
top:
|
|
230
|
-
left:
|
|
231
|
-
|
|
237
|
+
position: absolute;
|
|
238
|
+
top: 64px;
|
|
239
|
+
left: 50%;
|
|
240
|
+
transform: translateX(-50%) translateY(-8px) scale(0.96);
|
|
232
241
|
width: fit-content;
|
|
233
|
-
max-width: min(
|
|
234
|
-
margin: 0 auto;
|
|
242
|
+
max-width: min(640px, calc(100% - 32px));
|
|
235
243
|
z-index: 32;
|
|
236
244
|
min-height: 36px;
|
|
237
245
|
border-radius: 999px;
|
|
238
|
-
padding:
|
|
246
|
+
padding: 5px 7px 5px 14px;
|
|
239
247
|
display: flex;
|
|
240
248
|
align-items: center;
|
|
241
|
-
gap:
|
|
242
|
-
font: 12px/1.3
|
|
249
|
+
gap: 7px;
|
|
250
|
+
font: 12px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
|
|
243
251
|
color: var(--clado-ui-text);
|
|
244
|
-
background:
|
|
245
|
-
backdrop-filter: blur(
|
|
246
|
-
-webkit-backdrop-filter: blur(
|
|
247
|
-
border: 1px solid
|
|
248
|
-
box-shadow:
|
|
252
|
+
background: var(--clado-ui-surface);
|
|
253
|
+
backdrop-filter: blur(22px) saturate(190%) brightness(1.04);
|
|
254
|
+
-webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.04);
|
|
255
|
+
border: 1px solid var(--clado-ui-glass-outline);
|
|
256
|
+
box-shadow: var(--clado-ui-glass-shadow);
|
|
249
257
|
opacity: 0;
|
|
250
258
|
pointer-events: none;
|
|
251
|
-
|
|
252
|
-
transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
259
|
+
transition: opacity 200ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
253
260
|
box-sizing: border-box;
|
|
254
261
|
}
|
|
255
|
-
:root[data-theme="dark"] .clado-selection-bar {
|
|
256
|
-
background: rgba(20, 25, 36, 0.38);
|
|
257
|
-
backdrop-filter: blur(20px) saturate(195%);
|
|
258
|
-
-webkit-backdrop-filter: blur(20px) saturate(195%);
|
|
259
|
-
border-color: rgba(255, 255, 255, 0.18);
|
|
260
|
-
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);
|
|
261
|
-
}
|
|
262
262
|
.clado-selection-bar.show {
|
|
263
263
|
opacity: 1;
|
|
264
264
|
pointer-events: auto;
|
|
265
|
-
transform: translateY(0) scale(1);
|
|
265
|
+
transform: translateX(-50%) translateY(0) scale(1);
|
|
266
266
|
}
|
|
267
267
|
.clado-selection-dot {
|
|
268
268
|
flex: 0 0 auto;
|
|
269
|
-
width:
|
|
270
|
-
height:
|
|
269
|
+
width: 6.5px;
|
|
270
|
+
height: 6.5px;
|
|
271
271
|
border-radius: 999px;
|
|
272
|
-
background:
|
|
272
|
+
background: #38bdf8;
|
|
273
|
+
box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
|
|
273
274
|
}
|
|
274
275
|
.clado-selection-text {
|
|
275
276
|
flex: 1 1 auto;
|
|
276
277
|
min-width: 0;
|
|
277
|
-
font-weight:
|
|
278
|
+
font-weight: 560;
|
|
278
279
|
white-space: nowrap;
|
|
279
280
|
overflow: hidden;
|
|
280
281
|
text-overflow: ellipsis;
|
|
@@ -282,17 +283,41 @@
|
|
|
282
283
|
.clado-selection-send {
|
|
283
284
|
appearance: none;
|
|
284
285
|
flex: 0 0 auto;
|
|
285
|
-
height:
|
|
286
|
-
border:
|
|
287
|
-
background: var(--clado-ui-
|
|
288
|
-
color:
|
|
286
|
+
height: 27px;
|
|
287
|
+
border: 1px solid var(--clado-ui-prism-border);
|
|
288
|
+
background: var(--clado-ui-prism-bg);
|
|
289
|
+
color: var(--clado-ui-prism-text);
|
|
290
|
+
box-shadow: var(--clado-ui-prism-shadow);
|
|
289
291
|
font: inherit;
|
|
290
292
|
font-size: 11.5px;
|
|
291
|
-
font-weight:
|
|
292
|
-
padding: 0
|
|
293
|
+
font-weight: 590;
|
|
294
|
+
padding: 0 12px;
|
|
293
295
|
border-radius: 999px;
|
|
294
296
|
white-space: nowrap;
|
|
295
297
|
cursor: pointer;
|
|
298
|
+
transition: filter 140ms ease, transform 120ms ease;
|
|
299
|
+
}
|
|
300
|
+
.clado-selection-send:hover { filter: brightness(1.03); }
|
|
301
|
+
.clado-selection-send:active { transform: scale(0.97); }
|
|
302
|
+
.clado-selection-secondary {
|
|
303
|
+
appearance: none;
|
|
304
|
+
flex: 0 0 auto;
|
|
305
|
+
height: 27px;
|
|
306
|
+
border: 1px solid var(--clado-ui-well-border);
|
|
307
|
+
background: var(--clado-ui-well);
|
|
308
|
+
color: var(--clado-ui-text-soft);
|
|
309
|
+
font: inherit;
|
|
310
|
+
font-size: 11.5px;
|
|
311
|
+
font-weight: 540;
|
|
312
|
+
padding: 0 11px;
|
|
313
|
+
border-radius: 999px;
|
|
314
|
+
white-space: nowrap;
|
|
315
|
+
cursor: pointer;
|
|
316
|
+
}
|
|
317
|
+
.clado-selection-secondary:hover {
|
|
318
|
+
background: var(--clado-ui-hover);
|
|
319
|
+
border-color: var(--clado-ui-hover-border);
|
|
320
|
+
color: var(--clado-ui-text);
|
|
296
321
|
}
|
|
297
322
|
.clado-selection-clear {
|
|
298
323
|
appearance: none;
|
package/src/html/plugin-ui.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
(() => {
|
|
2
|
-
function createHost(bridge, isEnabled = () => true) {
|
|
2
|
+
function createHost(bridge, isEnabled = () => true, mountRoot = null) {
|
|
3
3
|
const slots = new Map();
|
|
4
4
|
let hidden = false;
|
|
5
|
+
const hostRoot = () => mountRoot || document.getElementById?.('clado-stage') || document.body;
|
|
5
6
|
return {
|
|
6
7
|
capabilities(pluginId, mountId) {
|
|
7
8
|
if (!bridge || !isEnabled(pluginId)) return undefined;
|
|
@@ -22,7 +23,7 @@
|
|
|
22
23
|
region.setAttribute('aria-hidden', String(hidden));
|
|
23
24
|
region.inert = hidden;
|
|
24
25
|
slots.set(slot, region);
|
|
25
|
-
|
|
26
|
+
hostRoot().append(region);
|
|
26
27
|
}
|
|
27
28
|
const region = slots.get(slot);
|
|
28
29
|
element.dataset.pluginId = pluginId;
|