@volter-ai-dev/supercode-ui 0.1.36 → 0.1.37

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/settings.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/settings.jsx
2
- import { useEffect, useId, useMemo, useRef, useState } from "preact/hooks";
2
+ import { useEffect as useEffect2, useId, useMemo, useRef, useState } from "preact/hooks";
3
3
 
4
4
  // core.mjs
5
5
  var HARNESS_NAMES = Object.freeze({
@@ -32,6 +32,7 @@ var EMPTY_UI_STATE = Object.freeze({
32
32
  mode: "none",
33
33
  strategy: null,
34
34
  canSend: false,
35
+ canSteer: false,
35
36
  canResume: false,
36
37
  continuationModes: Object.freeze([]),
37
38
  canBranch: false,
@@ -67,68 +68,142 @@ var EMPTY_UI_STATE = Object.freeze({
67
68
  function harnessDisplayName(id) {
68
69
  return HARNESS_NAMES[id] ?? id;
69
70
  }
71
+ var ACTIVITY_PRIORITY = Object.freeze({
72
+ "needs-input": 70,
73
+ failed: 60,
74
+ working: 50,
75
+ unseen: 40,
76
+ finished: 30,
77
+ running: 20,
78
+ recent: 10,
79
+ idle: 0
80
+ });
81
+
82
+ // src/logo.jsx
83
+ import { useEffect } from "preact/hooks";
84
+ import { jsx, jsxs } from "preact/jsx-runtime";
85
+ var LOGOS = {
86
+ "claude-code": {
87
+ viewBox: "-1 3.5 26 18",
88
+ paths: [
89
+ ["path", { fillRule: "evenodd", clipRule: "evenodd", d: "M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z" }]
90
+ ]
91
+ },
92
+ codex: {
93
+ viewBox: "-1 -1 26 26",
94
+ paths: [
95
+ ["path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z" }]
96
+ ]
97
+ },
98
+ gemini: {
99
+ viewBox: "0 0 24 24",
100
+ paths: [["path", { d: "M12 24C12 17.373 6.627 12 0 12 6.627 12 12 6.627 12 0c0 6.627 5.373 12 12 12-6.627 0-12 5.373-12 12z" }]]
101
+ },
102
+ grok: {
103
+ viewBox: "-1 -1 26 26",
104
+ paths: [["path", { d: "M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815" }]]
105
+ },
106
+ // Canonical mark from block/goose's documentation/static/img/goose.svg.
107
+ goose: {
108
+ viewBox: "0 0 45 45",
109
+ paths: [["path", { d: "M43.2098 39.2492L39.8118 36.4522C37.9646 34.9318 36.3923 33.1051 35.1631 31.0529C33.4647 28.2172 31.1178 25.8243 28.3164 24.071L26.9482 23.2744C26.4794 22.9485 26.1525 22.4405 26.106 21.8675C26.0762 21.4981 26.1647 21.1678 26.3712 20.8771C27.0837 19.873 30.9617 15.6995 31.6365 15.1411C32.5056 14.4228 33.4739 13.8253 34.3724 13.1412C34.5001 13.0438 34.6283 12.9469 34.7545 12.8481C35.0574 12.6088 35.3295 12.3671 35.5458 12.0803C36.5993 10.8604 36.5783 9.82938 36.5783 9.82938C36.4677 9.5534 36.0645 8.69902 35.2449 8.29825C35.9696 8.28406 36.7872 8.55564 37.1582 8.91873C37.6039 8.21947 37.8922 7.76585 38.3404 7.00347C38.4471 6.82241 38.5038 6.48771 38.2998 6.30029C38.1114 6.11287 37.6416 6.01697 37.4606 6.12364C36.4692 6.70693 35.5047 7.33475 34.6351 7.88525C34.6351 7.88525 33.6046 7.86372 32.3842 8.91775C32.097 9.13452 31.8552 9.4066 31.6282 9.69433C31.5171 9.83476 31.4202 9.96297 31.3233 10.0912C30.6387 10.9901 30.0417 11.958 29.3234 12.8271C28.7656 13.5023 24.5915 17.3798 23.5874 18.0923C23.2967 18.2988 22.9669 18.3879 22.597 18.3575C22.0245 18.3115 21.5161 17.9842 21.1902 17.5154L20.3935 16.1472C18.6402 13.3448 16.2474 10.9989 13.4117 9.30041C11.3594 8.0712 9.5332 6.49847 8.01234 4.65172L5.2153 1.25377C5.0773 1.08642 4.81306 1.11382 4.71422 1.30662C4.39615 1.92612 3.78888 3.23411 3.32353 4.99327C3.92786 5.81095 5.26717 7.35089 6.8624 8.65351C6.97348 8.74403 6.88246 8.92313 6.74447 8.88496C5.36846 8.51013 4.03062 7.90825 3.02944 7.39542C2.94772 7.35383 2.84887 7.4057 2.83713 7.49672C2.68152 8.74354 2.64139 10.1127 2.80581 11.5562C4.02572 12.1596 5.85143 12.8804 7.76816 13.3389C7.90713 13.3722 7.90273 13.5723 7.76229 13.5992C6.26982 13.8801 4.70688 13.9427 3.43656 13.9261C3.3475 13.9251 3.28193 14.0093 3.30591 14.0949C3.56085 14.9958 3.90632 15.9118 4.3619 16.8342C4.55029 17.2487 4.75532 17.6553 4.97504 18.0532C6.21207 18.107 7.47946 17.9964 8.75369 17.7713C8.97095 17.7331 9.08741 18.0189 8.90391 18.1417C8.03877 18.7201 7.11588 19.2183 6.25758 19.6283C6.14259 19.6836 6.1054 19.8304 6.18125 19.9327C6.69114 20.6236 7.25191 21.2774 7.86114 21.8866C7.86114 21.8866 10.8608 24.9763 10.9425 25.2185C12.6928 23.4261 15.5701 21.4394 18.7474 19.7047C14.4921 23.1672 12.1198 25.7235 10.9258 27.1758L10.0935 28.3439C9.66091 28.9507 9.2856 29.5951 8.97193 30.2709C7.92231 32.5292 6.19201 37.0966 6.19201 37.0966C6.0594 37.4543 6.16755 37.8072 6.39753 38.0371C6.66031 38.2999 7.01263 38.4076 7.37033 38.275C7.37033 38.275 11.9368 36.5447 14.1961 35.495C14.8719 35.1814 15.5168 34.8056 16.1231 34.3735L17.4095 33.457C18.0907 32.9715 19.0234 33.0489 19.615 33.6405L22.5804 36.6058C23.1896 37.2151 23.8433 37.7758 24.5343 38.2857C24.637 38.3611 24.7833 38.3244 24.8386 38.2094C25.2492 37.3516 25.7473 36.4277 26.3252 35.5631C26.4481 35.3796 26.7343 35.4965 26.6957 35.7133C26.4701 36.988 26.3605 38.2554 26.3086 39.3035C27.2178 39.9172 28.5551 40.5606 30.3721 41.1611C30.4577 41.185 30.5419 41.1195 30.5409 41.0304C30.5237 39.7596 30.5864 38.1967 30.8677 36.7047C30.8942 36.5638 31.0943 36.5593 31.1281 36.6988C31.5861 38.616 32.3069 40.4417 32.8041 41.5829C34.3543 41.8256 35.7234 41.7855 36.9703 41.6298C37.0618 41.6186 37.1136 41.5197 37.0715 41.4375C36.5587 40.4364 35.9568 39.0975 35.582 37.7225C35.5443 37.584 35.7229 37.4935 35.8135 37.6046C37.1161 39.1998 38.656 40.5391 39.3548 41.1175C41.2333 40.6786 42.5413 40.0713 43.1604 39.7528C43.3532 39.6539 43.3806 39.3897 43.2132 39.2517Z" }]]
110
+ },
111
+ opencode: { viewBox: "2.5 0 19 24", paths: [["path", { d: "M16 6H8v12h8V6zm4 16H4V2h16v20z" }]] },
112
+ pi: {
113
+ viewBox: "0 0 24 24",
114
+ paths: [
115
+ ["path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 1h16.5v11H12v5.5H6.5V23H1V1zm5.5 5.5V12H12V6.5H6.5z" }],
116
+ ["path", { d: "M17.5 12H23v11h-5.5V12z" }]
117
+ ]
118
+ },
119
+ // Product mark shared with the first-party browser frontend favicon.
120
+ supercode: {
121
+ viewBox: "0 0 64 64",
122
+ paths: [
123
+ ["rect", { width: "64", height: "64", rx: "14", fill: "#111923" }],
124
+ ["path", { d: "M18 21h28v6H18zm0 13h18v6H18z", fill: "#5f8fff" }],
125
+ ["circle", { cx: "46", cy: "37", r: "7", fill: "none", stroke: "#8ce0aa", strokeWidth: "4" }]
126
+ ]
127
+ }
128
+ };
129
+ var SVG_ATTRIBUTE_NAMES = Object.freeze({
130
+ clipRule: "clip-rule",
131
+ fillRule: "fill-rule",
132
+ strokeWidth: "stroke-width"
133
+ });
134
+ function HarnessLogo({ id, activity, size = 28, onMissingLogo }) {
135
+ const logo = LOGOS[id];
136
+ useEffect(() => {
137
+ if (!logo) onMissingLogo?.(id);
138
+ }, [id, logo, onMissingLogo]);
139
+ if (!logo) return null;
140
+ return /* @__PURE__ */ jsxs("span", { className: "scui-logo", "data-harness": id, "data-activity": activity, style: { "--scui-logo-size": `${size}px` }, "aria-hidden": "true", children: [
141
+ /* @__PURE__ */ jsx("svg", { viewBox: logo.viewBox, preserveAspectRatio: "xMidYMid meet", focusable: "false", children: logo.paths.map(([Tag, props], index) => /* @__PURE__ */ jsx(Tag, { ...props }, index)) }),
142
+ activity && activity !== "idle" ? /* @__PURE__ */ jsx("i", {}) : null
143
+ ] });
144
+ }
70
145
 
71
146
  // src/icon.jsx
72
- import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
147
+ import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "preact/jsx-runtime";
73
148
  var ICONS = {
74
- attach: () => /* @__PURE__ */ jsx("path", { d: "M6.25 9.75 10.6 5.4a2.1 2.1 0 0 1 2.97 2.97l-5.4 5.4a3.3 3.3 0 0 1-4.67-4.66l5.52-5.52" }),
75
- back: () => /* @__PURE__ */ jsx("path", { d: "m11.5 4.5-4.5 4.5 4.5 4.5" }),
76
- check: () => /* @__PURE__ */ jsx("path", { d: "m4 9 3.25 3.25L14 5.5" }),
77
- chevron: () => /* @__PURE__ */ jsx("path", { d: "m7 4.5 4.5 4.5L7 13.5" }),
78
- close: () => /* @__PURE__ */ jsxs(Fragment, { children: [
79
- /* @__PURE__ */ jsx("path", { d: "m4.75 4.75 8.5 8.5" }),
80
- /* @__PURE__ */ jsx("path", { d: "m13.25 4.75-8.5 8.5" })
149
+ attach: () => /* @__PURE__ */ jsx2("path", { d: "M6.25 9.75 10.6 5.4a2.1 2.1 0 0 1 2.97 2.97l-5.4 5.4a3.3 3.3 0 0 1-4.67-4.66l5.52-5.52" }),
150
+ back: () => /* @__PURE__ */ jsx2("path", { d: "m11.5 4.5-4.5 4.5 4.5 4.5" }),
151
+ check: () => /* @__PURE__ */ jsx2("path", { d: "m4 9 3.25 3.25L14 5.5" }),
152
+ chevron: () => /* @__PURE__ */ jsx2("path", { d: "m7 4.5 4.5 4.5L7 13.5" }),
153
+ close: () => /* @__PURE__ */ jsxs2(Fragment, { children: [
154
+ /* @__PURE__ */ jsx2("path", { d: "m4.75 4.75 8.5 8.5" }),
155
+ /* @__PURE__ */ jsx2("path", { d: "m13.25 4.75-8.5 8.5" })
81
156
  ] }),
82
- copy: () => /* @__PURE__ */ jsxs(Fragment, { children: [
83
- /* @__PURE__ */ jsx("rect", { x: "5", y: "5", width: "8", height: "8", rx: "1.5" }),
84
- /* @__PURE__ */ jsx("path", { d: "M3 10.5V4.25C3 3.56 3.56 3 4.25 3h6.25" })
157
+ copy: () => /* @__PURE__ */ jsxs2(Fragment, { children: [
158
+ /* @__PURE__ */ jsx2("rect", { x: "5", y: "5", width: "8", height: "8", rx: "1.5" }),
159
+ /* @__PURE__ */ jsx2("path", { d: "M3 10.5V4.25C3 3.56 3.56 3 4.25 3h6.25" })
85
160
  ] }),
86
- down: () => /* @__PURE__ */ jsxs(Fragment, { children: [
87
- /* @__PURE__ */ jsx("path", { d: "M9 3.5v10" }),
88
- /* @__PURE__ */ jsx("path", { d: "m4.75 9.5 4.25 4 4.25-4" })
161
+ down: () => /* @__PURE__ */ jsxs2(Fragment, { children: [
162
+ /* @__PURE__ */ jsx2("path", { d: "M9 3.5v10" }),
163
+ /* @__PURE__ */ jsx2("path", { d: "m4.75 9.5 4.25 4 4.25-4" })
89
164
  ] }),
90
- image: () => /* @__PURE__ */ jsxs(Fragment, { children: [
91
- /* @__PURE__ */ jsx("rect", { x: "3", y: "3.5", width: "12", height: "11", rx: "1.75" }),
92
- /* @__PURE__ */ jsx("circle", { cx: "6.5", cy: "7", r: "1.25" }),
93
- /* @__PURE__ */ jsx("path", { d: "m4.5 13 3.25-3 2.1 1.85 1.65-1.5L14 13" })
165
+ image: () => /* @__PURE__ */ jsxs2(Fragment, { children: [
166
+ /* @__PURE__ */ jsx2("rect", { x: "3", y: "3.5", width: "12", height: "11", rx: "1.75" }),
167
+ /* @__PURE__ */ jsx2("circle", { cx: "6.5", cy: "7", r: "1.25" }),
168
+ /* @__PURE__ */ jsx2("path", { d: "m4.5 13 3.25-3 2.1 1.85 1.65-1.5L14 13" })
94
169
  ] }),
95
- menu: () => /* @__PURE__ */ jsxs(Fragment, { children: [
96
- /* @__PURE__ */ jsx("circle", { cx: "4", cy: "9", r: "1.25", fill: "currentColor", stroke: "none" }),
97
- /* @__PURE__ */ jsx("circle", { cx: "9", cy: "9", r: "1.25", fill: "currentColor", stroke: "none" }),
98
- /* @__PURE__ */ jsx("circle", { cx: "14", cy: "9", r: "1.25", fill: "currentColor", stroke: "none" })
170
+ menu: () => /* @__PURE__ */ jsxs2(Fragment, { children: [
171
+ /* @__PURE__ */ jsx2("circle", { cx: "4", cy: "9", r: "1.25", fill: "currentColor", stroke: "none" }),
172
+ /* @__PURE__ */ jsx2("circle", { cx: "9", cy: "9", r: "1.25", fill: "currentColor", stroke: "none" }),
173
+ /* @__PURE__ */ jsx2("circle", { cx: "14", cy: "9", r: "1.25", fill: "currentColor", stroke: "none" })
99
174
  ] }),
100
- plus: () => /* @__PURE__ */ jsxs(Fragment, { children: [
101
- /* @__PURE__ */ jsx("path", { d: "M9 3.5v11" }),
102
- /* @__PURE__ */ jsx("path", { d: "M3.5 9h11" })
175
+ plus: () => /* @__PURE__ */ jsxs2(Fragment, { children: [
176
+ /* @__PURE__ */ jsx2("path", { d: "M9 3.5v11" }),
177
+ /* @__PURE__ */ jsx2("path", { d: "M3.5 9h11" })
103
178
  ] }),
104
- search: () => /* @__PURE__ */ jsxs(Fragment, { children: [
105
- /* @__PURE__ */ jsx("circle", { cx: "7.75", cy: "7.75", r: "4.25" }),
106
- /* @__PURE__ */ jsx("path", { d: "m11 11 3.5 3.5" })
179
+ search: () => /* @__PURE__ */ jsxs2(Fragment, { children: [
180
+ /* @__PURE__ */ jsx2("circle", { cx: "7.75", cy: "7.75", r: "4.25" }),
181
+ /* @__PURE__ */ jsx2("path", { d: "m11 11 3.5 3.5" })
107
182
  ] }),
108
- send: () => /* @__PURE__ */ jsxs(Fragment, { children: [
109
- /* @__PURE__ */ jsx("path", { d: "M9 14.5v-11" }),
110
- /* @__PURE__ */ jsx("path", { d: "m4.75 7.75 4.25-4.25 4.25 4.25" })
183
+ send: () => /* @__PURE__ */ jsxs2(Fragment, { children: [
184
+ /* @__PURE__ */ jsx2("path", { d: "M9 14.5v-11" }),
185
+ /* @__PURE__ */ jsx2("path", { d: "m4.75 7.75 4.25-4.25 4.25 4.25" })
111
186
  ] }),
112
- stop: () => /* @__PURE__ */ jsx("rect", { x: "4.5", y: "4.5", width: "9", height: "9", rx: "1.5", fill: "currentColor", stroke: "none" })
187
+ stop: () => /* @__PURE__ */ jsx2("rect", { x: "4.5", y: "4.5", width: "9", height: "9", rx: "1.5", fill: "currentColor", stroke: "none" })
113
188
  };
114
189
  function UiIcon({ name, size = 16, class: className = "" }) {
115
190
  const Glyph = ICONS[name];
116
191
  if (!Glyph) return null;
117
- return /* @__PURE__ */ jsx("svg", { class: `scui-icon ${className}`, style: { "--scui-icon-size": `${size}px` }, viewBox: "0 0 18 18", fill: "none", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true", children: /* @__PURE__ */ jsx(Glyph, {}) });
192
+ return /* @__PURE__ */ jsx2("svg", { className: `scui-icon ${className}`, style: { "--scui-icon-size": `${size}px` }, viewBox: "0 0 18 18", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsx2(Glyph, {}) });
118
193
  }
119
194
 
120
195
  // src/settings.jsx
121
- import { jsx as jsx2, jsxs as jsxs2 } from "preact/jsx-runtime";
196
+ import { jsx as jsx3, jsxs as jsxs3 } from "preact/jsx-runtime";
122
197
  function HarnessAdvisory({ state, onReview }) {
123
198
  const advisory = state.interopSettings?.advisories[0];
124
199
  if (!advisory && !state.interopSettingsError) return null;
125
- return /* @__PURE__ */ jsxs2("div", { class: "scui-advisory", "data-severity": advisory?.severity ?? "error", role: advisory?.severity === "error" || !advisory ? "alert" : "status", children: [
126
- /* @__PURE__ */ jsx2("span", { "aria-hidden": "true", children: "!" }),
127
- /* @__PURE__ */ jsxs2("span", { children: [
128
- /* @__PURE__ */ jsx2("strong", { children: advisory?.title ?? "Could not inspect harness settings" }),
129
- /* @__PURE__ */ jsx2("small", { children: advisory?.message ?? state.interopSettingsError })
200
+ return /* @__PURE__ */ jsxs3("div", { className: "scui-advisory", "data-severity": advisory?.severity ?? "error", role: advisory?.severity === "error" || !advisory ? "alert" : "status", children: [
201
+ /* @__PURE__ */ jsx3("span", { "aria-hidden": "true", children: "!" }),
202
+ /* @__PURE__ */ jsxs3("span", { children: [
203
+ /* @__PURE__ */ jsx3("strong", { children: advisory?.title ?? "Could not inspect harness settings" }),
204
+ /* @__PURE__ */ jsx3("small", { children: advisory?.message ?? state.interopSettingsError })
130
205
  ] }),
131
- advisory && state.canConfigureSettings ? /* @__PURE__ */ jsx2("button", { type: "button", onClick: () => onReview(advisory.recommendation.change), children: "Review" }) : null
206
+ advisory && state.canConfigureSettings ? /* @__PURE__ */ jsx3("button", { type: "button", onClick: () => onReview(advisory.recommendation.change), children: "Review" }) : null
132
207
  ] });
133
208
  }
134
209
  function initialValues(report, recommendedChange) {
@@ -144,8 +219,8 @@ function HarnessSettingsPanel({ state, adapter, onClose, recommendedChange = nul
144
219
  const valuesKey = `${report?.revision ?? ""}:${recommendedChange?.key ?? ""}:${recommendedChange?.value ?? ""}`;
145
220
  const defaults = useMemo(() => report ? initialValues(report, recommendedChange) : {}, [valuesKey]);
146
221
  const [values, setValues] = useState(defaults);
147
- useEffect(() => setValues(defaults), [defaults]);
148
- useEffect(() => {
222
+ useEffect2(() => setValues(defaults), [defaults]);
223
+ useEffect2(() => {
149
224
  panel.current?.querySelector("select, button")?.focus({ preventScroll: true });
150
225
  const dismiss = (event) => {
151
226
  if (event.key === "Escape") {
@@ -156,11 +231,11 @@ function HarnessSettingsPanel({ state, adapter, onClose, recommendedChange = nul
156
231
  document.addEventListener("keydown", dismiss);
157
232
  return () => document.removeEventListener("keydown", dismiss);
158
233
  }, [onClose]);
159
- if (!report) return /* @__PURE__ */ jsx2("section", { ref: panel, class: "scui-settings", role: "dialog", "aria-modal": "true", "aria-labelledby": titleId, children: /* @__PURE__ */ jsxs2("header", { children: [
160
- /* @__PURE__ */ jsx2("button", { type: "button", "aria-label": "Close settings", onClick: onClose, children: /* @__PURE__ */ jsx2(UiIcon, { name: "close", size: 18 }) }),
161
- /* @__PURE__ */ jsxs2("span", { children: [
162
- /* @__PURE__ */ jsx2("strong", { id: titleId, children: "Harness settings" }),
163
- /* @__PURE__ */ jsx2("small", { children: state.interopSettingsError ?? "No interoperability controls are available." })
234
+ if (!report) return /* @__PURE__ */ jsx3("section", { ref: panel, className: "scui-settings", role: "dialog", "aria-modal": "true", "aria-labelledby": titleId, children: /* @__PURE__ */ jsxs3("header", { children: [
235
+ /* @__PURE__ */ jsx3("button", { type: "button", "aria-label": "Close settings", onClick: onClose, children: /* @__PURE__ */ jsx3(UiIcon, { name: "close", size: 18 }) }),
236
+ /* @__PURE__ */ jsxs3("span", { children: [
237
+ /* @__PURE__ */ jsx3("strong", { id: titleId, children: "Harness settings" }),
238
+ /* @__PURE__ */ jsx3("small", { children: state.interopSettingsError ?? "No interoperability controls are available." })
164
239
  ] })
165
240
  ] }) });
166
241
  const changed = report.controls.flatMap((control) => values[control.key] !== (control.configuredValue ?? control.effectiveValue ?? control.choices[0]?.value ?? null) ? [{ key: control.key, value: values[control.key] ?? null }] : []);
@@ -169,50 +244,76 @@ function HarnessSettingsPanel({ state, adapter, onClose, recommendedChange = nul
169
244
  if (!changed.length || !state.canConfigureSettings) return;
170
245
  adapter.onIntent({ action: "configureHarness", harness: report.harness, changes: changed, expectedRevision: report.revision });
171
246
  };
172
- return /* @__PURE__ */ jsxs2("section", { ref: panel, class: "scui-settings", role: "dialog", "aria-modal": "true", "aria-labelledby": titleId, children: [
173
- /* @__PURE__ */ jsxs2("header", { children: [
174
- /* @__PURE__ */ jsx2("button", { type: "button", "aria-label": "Close settings", onClick: onClose, children: /* @__PURE__ */ jsx2(UiIcon, { name: "close", size: 18 }) }),
175
- /* @__PURE__ */ jsxs2("span", { children: [
176
- /* @__PURE__ */ jsxs2("strong", { id: titleId, children: [
247
+ return /* @__PURE__ */ jsxs3("section", { ref: panel, className: "scui-settings", role: "dialog", "aria-modal": "true", "aria-labelledby": titleId, children: [
248
+ /* @__PURE__ */ jsxs3("header", { children: [
249
+ /* @__PURE__ */ jsx3("button", { type: "button", "aria-label": "Close settings", onClick: onClose, children: /* @__PURE__ */ jsx3(UiIcon, { name: "close", size: 18 }) }),
250
+ /* @__PURE__ */ jsxs3("span", { children: [
251
+ /* @__PURE__ */ jsxs3("strong", { id: titleId, children: [
177
252
  harnessDisplayName(report.harness),
178
253
  " interoperability"
179
254
  ] }),
180
- /* @__PURE__ */ jsx2("small", { children: "Native harness settings used by Supercode" })
255
+ /* @__PURE__ */ jsx3("small", { children: "Native harness settings used by Supercode" })
181
256
  ] })
182
257
  ] }),
183
- /* @__PURE__ */ jsxs2("form", { onSubmit: submit, children: [
258
+ /* @__PURE__ */ jsxs3("form", { onSubmit: submit, children: [
184
259
  report.controls.map((control) => {
185
260
  const choice = control.choices.find((item) => item.value === values[control.key]);
186
261
  const recommendation = report.advisories.map((advisory) => advisory.recommendation).find((item) => item.change.key === control.key && item.change.value === values[control.key]);
187
262
  const consequence = choice?.risk ?? recommendation?.consequence;
188
- return /* @__PURE__ */ jsxs2("fieldset", { disabled: !control.writable || Boolean(state.operation), children: [
189
- /* @__PURE__ */ jsxs2("label", { for: `scui-setting-${control.key}`, children: [
190
- /* @__PURE__ */ jsx2("strong", { children: control.label }),
191
- /* @__PURE__ */ jsx2("small", { children: control.description })
263
+ return /* @__PURE__ */ jsxs3("fieldset", { disabled: !control.writable || Boolean(state.operation), children: [
264
+ /* @__PURE__ */ jsxs3("label", { htmlFor: `scui-setting-${control.key}`, children: [
265
+ /* @__PURE__ */ jsx3("strong", { children: control.label }),
266
+ /* @__PURE__ */ jsx3("small", { children: control.description })
192
267
  ] }),
193
- /* @__PURE__ */ jsxs2("select", { id: `scui-setting-${control.key}`, value: values[control.key] ?? "@default", onChange: (event) => setValues((current) => ({ ...current, [control.key]: event.currentTarget.value === "@default" ? null : event.currentTarget.value })), children: [
194
- control.resettable ? /* @__PURE__ */ jsx2("option", { value: "@default", children: "Use harness default" }) : null,
195
- control.choices.map((item) => /* @__PURE__ */ jsx2("option", { value: item.value, children: item.label }, item.value))
268
+ /* @__PURE__ */ jsxs3("select", { id: `scui-setting-${control.key}`, value: values[control.key] ?? "@default", onChange: (event) => setValues((current) => ({ ...current, [control.key]: event.currentTarget.value === "@default" ? null : event.currentTarget.value })), children: [
269
+ control.resettable ? /* @__PURE__ */ jsx3("option", { value: "@default", children: "Use harness default" }) : null,
270
+ control.choices.map((item) => /* @__PURE__ */ jsx3("option", { value: item.value, children: item.label }, item.value))
196
271
  ] }),
197
- choice ? /* @__PURE__ */ jsx2("p", { children: choice.description }) : null,
198
- consequence ? /* @__PURE__ */ jsxs2("p", { class: "scui-setting-risk", children: [
199
- /* @__PURE__ */ jsx2("strong", { children: "Security consequence" }),
272
+ choice ? /* @__PURE__ */ jsx3("p", { children: choice.description }) : null,
273
+ consequence ? /* @__PURE__ */ jsxs3("p", { className: "scui-setting-risk", children: [
274
+ /* @__PURE__ */ jsx3("strong", { children: "Security consequence" }),
200
275
  consequence
201
276
  ] }) : null,
202
- /* @__PURE__ */ jsxs2("small", { class: "scui-setting-source", children: [
277
+ /* @__PURE__ */ jsxs3("small", { className: "scui-setting-source", children: [
203
278
  control.effectiveNote,
204
279
  control.sourcePath ? ` Source: ${control.sourcePath}` : ""
205
280
  ] })
206
281
  ] }, control.key);
207
282
  }),
208
- /* @__PURE__ */ jsxs2("footer", { children: [
209
- /* @__PURE__ */ jsx2("button", { type: "button", onClick: onClose, children: "Cancel" }),
210
- /* @__PURE__ */ jsx2("button", { type: "submit", disabled: !changed.length || !state.canConfigureSettings || Boolean(state.operation), children: state.operation === "configureHarness" ? "Applying\u2026" : "Apply changes" })
283
+ /* @__PURE__ */ jsxs3("footer", { children: [
284
+ /* @__PURE__ */ jsx3("button", { type: "button", onClick: onClose, children: "Cancel" }),
285
+ /* @__PURE__ */ jsx3("button", { type: "submit", disabled: !changed.length || !state.canConfigureSettings || Boolean(state.operation), children: state.operation === "configureHarness" ? "Applying\u2026" : "Apply changes" })
211
286
  ] })
212
287
  ] })
213
288
  ] });
214
289
  }
290
+ function HarnessReadiness({ harnesses, adapter }) {
291
+ const blocked = harnesses.filter((item) => !item.startable);
292
+ if (!blocked.length) return null;
293
+ return /* @__PURE__ */ jsxs3("details", { className: "scui-readiness", open: !harnesses.some((item) => item.startable), children: [
294
+ /* @__PURE__ */ jsxs3("summary", { children: [
295
+ blocked.length,
296
+ " ",
297
+ blocked.length === 1 ? "harness needs" : "harnesses need",
298
+ " setup"
299
+ ] }),
300
+ /* @__PURE__ */ jsx3("div", { children: blocked.map((item) => /* @__PURE__ */ jsxs3("section", { children: [
301
+ /* @__PURE__ */ jsx3(HarnessLogo, { id: item.id, size: 25 }),
302
+ /* @__PURE__ */ jsxs3("span", { children: [
303
+ /* @__PURE__ */ jsx3("strong", { children: item.label }),
304
+ /* @__PURE__ */ jsx3("small", { children: item.reason || (item.auth === "required" ? "Authentication required" : "Unavailable") }),
305
+ item.protocol ? /* @__PURE__ */ jsxs3("em", { children: [
306
+ item.protocol,
307
+ " \xB7 ",
308
+ item.runtime
309
+ ] }) : null
310
+ ] }),
311
+ item.repair ? /* @__PURE__ */ jsx3("button", { type: "button", onClick: () => adapter.copyText?.(item.repair), children: "Copy fix" }) : null
312
+ ] }, item.id)) })
313
+ ] });
314
+ }
215
315
  export {
216
316
  HarnessAdvisory,
317
+ HarnessReadiness,
217
318
  HarnessSettingsPanel
218
319
  };
package/styles.css CHANGED
@@ -78,6 +78,12 @@
78
78
  .scui-logo[data-activity="failed"] > i { background:var(--scui-danger) }
79
79
  .scui-logo[data-activity="finished"] > i,.scui-logo[data-activity="unseen"] > i { background:var(--scui-positive) }
80
80
 
81
+ .scui-launcher { --scui-bg:#fff; --scui-fg:#191918; --scui-muted:#5f5f5a; --scui-border:#deded9; --scui-positive:#22863a; --scui-warning:#b26a00; --scui-danger:#b4232e; display:inline-flex; min-width:44px; min-height:44px; align-items:center; gap:8px; padding:4px; overflow:visible; border:1px solid var(--scui-border); border-radius:999px; background:color-mix(in srgb,var(--scui-bg) 88%,transparent); color:var(--scui-fg); box-shadow:0 5px 18px rgba(0,0,0,.14); cursor:pointer; font:12px/1.25 var(--scui-font,Inter,ui-sans-serif,system-ui,sans-serif); backdrop-filter:blur(10px) }
82
+ .scui-launcher-logo { position:relative; display:grid; flex:none; place-items:center }.scui-launcher-logo > b { position:absolute; z-index:1; top:-6px; right:-8px; display:grid; min-width:18px; height:18px; padding:0 4px; place-items:center; border:2px solid var(--scui-bg); border-radius:999px; background:var(--scui-danger); color:#fff; font-size:9px; line-height:1 }
83
+ .scui-launcher-copy { display:grid; min-width:0; max-width:220px; padding-right:8px; text-align:left }.scui-launcher-copy strong,.scui-launcher-copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }.scui-launcher-copy small { color:var(--scui-muted); font-size:10px }
84
+ .scui-launcher:hover { border-color:color-mix(in srgb,var(--scui-fg) 28%,var(--scui-border)); box-shadow:0 7px 22px rgba(0,0,0,.18) }.scui-launcher:focus-visible { outline:2px solid currentColor; outline-offset:2px }
85
+ @media (prefers-color-scheme:dark) { .scui-launcher { --scui-bg:#151515; --scui-fg:#f3f3ef; --scui-muted:#a3a39d; --scui-border:#353532; --scui-positive:#57c26e; --scui-warning:#e8a23a; --scui-danger:#ff747d } }
86
+
81
87
  .scui-loading { display:grid; grid-template-columns:30px minmax(0,1fr); gap:4px 10px; align-items:center; margin:auto; padding:18px; color:var(--scui-muted) }
82
88
  .scui-loading-compact { width:calc(100% - 16px); margin:8px; padding:8px; border:1px solid var(--scui-border); border-radius:9px; background:var(--scui-bg-raised) }
83
89
  .scui-orbit { grid-row:1 / span 2; position:relative; width:27px; height:27px; border:1px solid var(--scui-border-strong); border-radius:50% }
@@ -181,6 +187,7 @@
181
187
 
182
188
  .scui-continuation { display:flex; align-items:center; gap:8px; padding:7px 9px; border-top:1px solid var(--scui-border); background:var(--scui-bg-raised) }.scui-continuation > span:not(.scui-continuation-actions) { display:grid; flex:1 }.scui-continuation small { color:var(--scui-muted); font-size:10px }.scui-continuation-actions { display:flex; align-items:center; gap:5px; flex-wrap:wrap; justify-content:flex-end }.scui-continuation button { padding:5px 8px; border:1px solid var(--scui-accent); border-radius:7px; background:transparent; color:var(--scui-accent); cursor:pointer; white-space:nowrap }.scui-continuation button.scui-secondary { border-color:var(--scui-border-strong); color:var(--scui-fg) }
183
189
  .scui-compose { flex:none; padding:8px; border-top:1px solid var(--scui-border); background:var(--scui-bg-raised) }
190
+ .scui-context-candidates { display:flex; gap:5px; margin-bottom:6px; overflow-x:auto; padding:1px; scrollbar-width:thin }.scui-context-candidates > button { display:grid; grid-template-columns:auto minmax(0,1fr) auto; flex:0 0 auto; width:min(180px,55vw); min-height:34px; align-items:center; gap:6px; padding:4px 6px; border:1px solid var(--scui-border); border-radius:7px; background:var(--scui-bg); color:var(--scui-fg); text-align:left; cursor:pointer }.scui-context-candidates > button:hover:not(:disabled) { border-color:var(--scui-border-strong); background:var(--scui-fill) }.scui-context-candidates > button:disabled { cursor:default; opacity:.58 }.scui-context-candidates img { width:24px; height:24px; border-radius:4px; object-fit:cover }.scui-context-candidates span { display:grid; min-width:0 }.scui-context-candidates strong,.scui-context-candidates small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }.scui-context-candidates strong { font-size:10px }.scui-context-candidates small { color:var(--scui-muted); font-size:8.5px }
184
191
  .scui-envelope { display:flex; align-items:flex-end; gap:7px; padding:7px; border:1px solid var(--scui-border-strong); border-radius:16px; background:var(--scui-bg) }.scui-envelope textarea { flex:1; min-width:0; min-height:34px; max-height:150px; resize:none; overflow-y:hidden; border:0; outline:0; background:transparent; color:var(--scui-fg) }.scui-envelope > span { display:flex; gap:4px }
185
192
  .scui-envelope.scui-drop-target { border-color:var(--scui-accent); background:color-mix(in srgb,var(--scui-accent) 7%,var(--scui-bg)); box-shadow:0 0 0 2px color-mix(in srgb,var(--scui-accent) 16%,transparent) }
186
193
  .scui-attach { display:grid; flex:0 0 34px; width:34px; height:34px; place-items:center; border:0; border-radius:50%; background:transparent; color:var(--scui-muted) }.scui-attach:hover:not(:disabled) { background:var(--scui-fill); color:var(--scui-fg) }
@@ -189,8 +196,10 @@
189
196
  .scui-message-images { display:flex; max-width:280px; gap:5px; margin-bottom:6px; flex-wrap:wrap }.scui-message-images > button { display:block; max-width:100%; padding:0; overflow:hidden; border:1px solid var(--scui-border); border-radius:8px; background:var(--scui-fill); cursor:zoom-in }.scui-message-images > button:hover,.scui-message-images > button:focus-visible { border-color:var(--scui-border-strong); box-shadow:0 0 0 2px color-mix(in srgb,var(--scui-accent) 16%,transparent) }.scui-message-images img { display:block; width:auto; min-width:72px; max-width:100%; height:auto; max-height:210px; object-fit:contain }.scui-message-images > span,.scui-message-images > button[data-lazy="true"] { display:flex; align-items:center; gap:6px; padding:5px 7px; border:1px solid var(--scui-border); border-radius:7px; color:var(--scui-muted); font-size:10px }.scui-message-images > button[data-lazy="true"] { text-align:left; cursor:pointer }.scui-message-images > span > span,.scui-message-images > button[data-lazy="true"] > span { display:grid; min-width:0 }.scui-message-images > span strong,.scui-message-images > button[data-lazy="true"] strong { max-width:180px; overflow:hidden; color:var(--scui-fg); font-size:10px; font-weight:550; text-overflow:ellipsis; white-space:nowrap }.scui-message-images > span small,.scui-message-images > button[data-lazy="true"] small { color:var(--scui-muted); font-size:8.5px }
190
197
  .scui-image-viewer { box-sizing:border-box; width:min(620px,calc(100vw - 16px)); max-width:none; height:min(620px,calc(100dvh - 16px)); max-height:none; margin:auto; padding:0; overflow:hidden; border:1px solid var(--scui-border-strong); border-radius:12px; background:var(--scui-bg); color:var(--scui-fg); box-shadow:0 18px 50px rgba(0,0,0,.28) }.scui-image-viewer::backdrop { background:rgba(10,12,15,.68); backdrop-filter:blur(2px) }.scui-image-viewer > header { display:flex; min-height:43px; align-items:center; gap:8px; padding:0 6px 0 11px; border-bottom:1px solid var(--scui-border); background:var(--scui-bg-raised) }.scui-image-viewer > header > span { display:grid; min-width:0; flex:1 }.scui-image-viewer > header strong { overflow:hidden; font-size:11px; font-weight:600; text-overflow:ellipsis; white-space:nowrap }.scui-image-viewer > header small { color:var(--scui-muted); font-size:9px }.scui-image-viewer nav { display:flex; flex:none; gap:2px }.scui-image-viewer nav button,.scui-image-viewer nav a { display:grid; box-sizing:border-box; width:31px; height:31px; padding:0; place-items:center; border:0; border-radius:7px; background:transparent; color:var(--scui-muted); cursor:pointer }.scui-image-viewer nav button:hover,.scui-image-viewer nav button:focus-visible,.scui-image-viewer nav a:hover,.scui-image-viewer nav a:focus-visible { background:var(--scui-fill); color:var(--scui-fg) }.scui-image-viewer nav button[data-status="copied"] { color:var(--scui-positive) }.scui-image-viewer nav button[data-status="failed"] { color:var(--scui-danger) }.scui-image-viewer figure { position:relative; display:grid; box-sizing:border-box; height:calc(100% - 43px); margin:0; padding:12px; overflow:hidden; place-items:center; background:color-mix(in srgb,var(--scui-fg) 4%,var(--scui-bg)) }.scui-image-viewer figure > img { display:block; max-width:100%; max-height:100%; object-fit:contain }.scui-image-viewer figure > button { position:absolute; top:50%; display:grid; width:34px; height:34px; padding:0; place-items:center; border:1px solid color-mix(in srgb,var(--scui-fg) 18%,transparent); border-radius:50%; background:color-mix(in srgb,var(--scui-bg) 82%,transparent); color:var(--scui-fg); box-shadow:0 2px 8px rgba(0,0,0,.16); cursor:pointer; transform:translateY(-50%); backdrop-filter:blur(5px) }.scui-image-viewer figure > button:hover,.scui-image-viewer figure > button:focus-visible { background:var(--scui-bg) }.scui-image-previous { left:10px }.scui-image-previous svg { transform:rotate(180deg) }.scui-image-next { right:10px }.scui-image-resolution { display:grid; max-width:280px; justify-items:center; gap:7px; color:var(--scui-muted); text-align:center }.scui-image-resolution strong { color:var(--scui-fg); font-size:12px }.scui-image-resolution small { font-size:10px }.scui-image-resolution > button { position:static; width:auto; height:auto; padding:6px 10px; border:1px solid var(--scui-border-strong); border-radius:7px; background:var(--scui-bg); color:var(--scui-fg); transform:none; backdrop-filter:none }
191
198
  .scui-send,.scui-stop { display:grid; width:29px; height:29px; padding:0; place-items:center; border:0; border-radius:8px; background:var(--scui-accent); color:#fff; cursor:pointer }.scui-stop { background:var(--scui-danger) }.scui-send:disabled,.scui-stop:disabled { opacity:.4; cursor:default }.scui-control-spinner { box-sizing:border-box; width:13px; height:13px; border:1.5px solid currentColor; border-right-color:transparent; border-radius:50%; animation:scui-spin .75s linear infinite }
199
+ .scui-queue-send { display:grid; width:29px; height:29px; padding:0; place-items:center; border:0; border-radius:8px; background:transparent; color:var(--scui-muted); cursor:pointer }.scui-queue-send:hover { background:var(--scui-fill); color:var(--scui-fg) }
192
200
  .scui-queue { display:grid; gap:4px; max-height:85px; margin-bottom:6px; overflow:auto; font-size:10.5px }.scui-queue > span { display:flex; gap:6px; padding:4px 6px; border-radius:5px; background:var(--scui-fill) }.scui-queue > span > span { display:grid; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }.scui-queue small { color:var(--scui-muted) }.scui-queue > span button { margin-left:auto; border:0; background:transparent }
193
201
  .scui-harness-picker { display:flex; align-items:center; gap:7px; margin-bottom:7px }.scui-harness-picker select { margin-left:auto; max-width:55%; padding:4px; border:1px solid var(--scui-border); border-radius:6px; background:var(--scui-bg); color:var(--scui-fg) }
202
+ .scui-readiness { margin:0 0 7px; border:1px solid var(--scui-border); border-radius:7px; background:var(--scui-bg) }.scui-readiness > summary { padding:6px 8px; color:var(--scui-muted); cursor:pointer; font-size:10px }.scui-readiness > div { display:grid; border-top:1px solid var(--scui-border) }.scui-readiness section { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:7px; padding:7px 8px }.scui-readiness section + section { border-top:1px solid var(--scui-border) }.scui-readiness section > span { display:grid; min-width:0 }.scui-readiness section strong,.scui-readiness section small,.scui-readiness section em { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }.scui-readiness section small { color:var(--scui-muted); font-size:9px }.scui-readiness section em { color:var(--scui-muted); font-size:8px; font-style:normal }.scui-readiness section button { padding:4px 6px; border:1px solid var(--scui-border); border-radius:6px; background:transparent; cursor:pointer; font-size:9px }
194
203
  .scui-launch-modes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; margin:0 0 7px; padding:0; border:0 }.scui-launch-modes legend { position:absolute; overflow:hidden; width:1px; height:1px; clip:rect(0 0 0 0); white-space:nowrap }.scui-launch-modes label { position:relative; min-width:0; cursor:pointer }.scui-launch-modes input { position:absolute; opacity:0; pointer-events:none }.scui-launch-modes label > span { display:flex; min-height:42px; flex-direction:column; justify-content:center; padding:6px 9px; border:1px solid var(--scui-border); border-radius:7px; background:var(--scui-bg); transition:border-color .14s ease,background .14s ease }.scui-launch-modes strong { font-size:11px; font-weight:650 }.scui-launch-modes small { overflow:hidden; color:var(--scui-muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap }.scui-launch-modes input:checked + span { border-color:color-mix(in srgb,var(--scui-accent) 58%,var(--scui-border)); background:color-mix(in srgb,var(--scui-accent) 8%,var(--scui-bg)) }.scui-launch-modes input:focus-visible + span { outline:2px solid var(--scui-accent); outline-offset:1px }.scui-launch-modes:disabled label { cursor:default; opacity:.62 }
195
204
  .scui-new { display:grid; justify-items:center; gap:5px; margin:auto; padding:20px; color:var(--scui-muted); text-align:center }.scui-new > span { color:var(--scui-accent); font-size:28px }.scui-new strong { color:var(--scui-fg) }
196
205
  .scui-opening { position:absolute; z-index:30; inset:49px 0 0; display:flex; align-items:center; justify-content:center; gap:10px; padding:20px; background:var(--scui-bg) }.scui-opening > span { display:grid }.scui-opening small { color:var(--scui-muted) }.scui-opening > i { width:16px; height:16px; border:2px solid var(--scui-border); border-top-color:var(--scui-accent); border-radius:50%; animation:scui-spin .8s linear infinite }