dsh-hive-panel 0.1.6 → 0.2.0
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/CHANGELOG.md +38 -0
- package/README.md +70 -42
- package/README.zh-CN.md +56 -37
- package/SPEC.md +34 -3
- package/cordis.patch.yml +6 -4
- package/docs/DESIGN.md +94 -12
- package/lib/client.js +1183 -359
- package/lib/index.js +243 -11
- package/package.json +1 -1
- package/scripts/build-client.mjs +3 -0
- package/scripts/verify-host-exec.mjs +11 -5
- package/scripts/verify.mjs +230 -2
- package/src/client.template.js +51 -0
- package/src/panel.css +423 -93
- package/src/panel.js +1128 -358
- package/src/theme.css +1 -18
package/lib/client.js
CHANGED
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
* Transport: same-origin, cookie-authenticated Connection Fetch route
|
|
14
14
|
* `/api/hive` (GET snapshot/actions, POST action). No separate service, no
|
|
15
15
|
* proxy port, no client-side cwd.
|
|
16
|
+
*
|
|
17
|
+
* Opening a worker's chat is a client navigation, not an HTTP route: the mount
|
|
18
|
+
* option `openSession(sessionId)` is implemented below with the same
|
|
19
|
+
* `ctx.uiWorkspace.openSession()` call the header's subagent catalog makes. A
|
|
20
|
+
* host without that service receives no callback, so the renderer renders no
|
|
21
|
+
* "Open agent chat" button.
|
|
16
22
|
*/
|
|
17
23
|
window.__ModuleLoader__.load({
|
|
18
24
|
id: 'dsh-hive-panel',
|
|
@@ -23,6 +29,46 @@ window.__ModuleLoader__.load({
|
|
|
23
29
|
const HIVE_API_PREFIX = '/api/hive'
|
|
24
30
|
const HIVE_NS = 'hive-panel'
|
|
25
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Resolve one optional client service without hard-depending on it, so the
|
|
34
|
+
* panel still loads in profiles that do not mount workspace navigation.
|
|
35
|
+
*/
|
|
36
|
+
function clientService(ctx, name) {
|
|
37
|
+
return typeof ctx.get === 'function' ? ctx.get(name) : undefined;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** Whether this host exposes the Workspace navigation API. */
|
|
41
|
+
function canOpenSession(ctx) {
|
|
42
|
+
const navigation = clientService(ctx, 'uiWorkspace');
|
|
43
|
+
return navigation !== undefined && typeof navigation.openSession === 'function';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Open the Session a Hive worker ran in. This mirrors one click on a row of
|
|
48
|
+
* the conversation header's subagent catalog: the client selection changes
|
|
49
|
+
* through ctx.uiWorkspace.openSession(target); there is no /session/<id>
|
|
50
|
+
* route to push. A SubagentAddress carries the breadcrumb facts when the
|
|
51
|
+
* catalog or Session list already knows the child; a bare id is enough
|
|
52
|
+
* otherwise because the client resolves it against the host Session list.
|
|
53
|
+
*/
|
|
54
|
+
function openSession(ctx, sessionId) {
|
|
55
|
+
if (typeof sessionId !== 'string' || sessionId === '') return;
|
|
56
|
+
const navigation = clientService(ctx, 'uiWorkspace');
|
|
57
|
+
if (navigation === undefined || typeof navigation.openSession !== 'function') {
|
|
58
|
+
console.warn('[hive-panel] uiWorkspace.openSession is unavailable; cannot open the worker chat');
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const sessions = clientService(ctx, 'sessions');
|
|
62
|
+
const address = typeof sessions?.subagentAddress === 'function'
|
|
63
|
+
? sessions.subagentAddress(sessionId)
|
|
64
|
+
: undefined;
|
|
65
|
+
try {
|
|
66
|
+
navigation.openSession(address === undefined ? sessionId : address);
|
|
67
|
+
} catch (error) {
|
|
68
|
+
console.warn('[hive-panel] opening the worker Session failed:', error);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
26
72
|
/* ---- inlined from src/panel.js ---- */
|
|
27
73
|
var HIVE_PANEL = (function () {
|
|
28
74
|
// Hive panel — zero-dependency ESM renderer for hive-panel 0.3.2 snapshots.
|
|
@@ -32,7 +78,7 @@ window.__ModuleLoader__.load({
|
|
|
32
78
|
// (en / zh) and, when a host provides one, a \`t(key)\` translate function.
|
|
33
79
|
// Hosts can hot-swap languages by calling \`subscribeLocale\` and re-rendering.
|
|
34
80
|
|
|
35
|
-
const LANE_ORDER = Object.freeze(["pending", "claimed", "done", "
|
|
81
|
+
const LANE_ORDER = Object.freeze(["pending", "claimed", "done", "failed"]);
|
|
36
82
|
const MAX_EVENTS = 80;
|
|
37
83
|
const DEFAULT_SNAPSHOT_URL = "/api/snapshot";
|
|
38
84
|
const DEFAULT_ACTIONS_URL = "/api/actions";
|
|
@@ -47,7 +93,6 @@ const CARD_ACTIONS = Object.freeze({
|
|
|
47
93
|
pending: Object.freeze(["claim", "remove"]),
|
|
48
94
|
claimed: Object.freeze(["done", "fail", "remove"]),
|
|
49
95
|
done: Object.freeze(["remove"]),
|
|
50
|
-
blocked: Object.freeze(["retry", "remove"]),
|
|
51
96
|
failed: Object.freeze(["retry", "remove"]),
|
|
52
97
|
});
|
|
53
98
|
|
|
@@ -91,7 +136,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
91
136
|
overflow-x: auto;
|
|
92
137
|
overflow-y: hidden;
|
|
93
138
|
overscroll-behavior-x: contain;
|
|
94
|
-
scrollbar-color: var(--hive-line
|
|
139
|
+
scrollbar-color: var(--hive-line) transparent;
|
|
95
140
|
scrollbar-width: thin;
|
|
96
141
|
}
|
|
97
142
|
|
|
@@ -108,10 +153,10 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
108
153
|
align-items: center;
|
|
109
154
|
gap: 6px 10px;
|
|
110
155
|
padding: 6px 12px;
|
|
111
|
-
border-bottom: 1px solid color-mix(in srgb, var(--hive-warn) 45%, var(--hive-line
|
|
156
|
+
border-bottom: 1px solid color-mix(in srgb, var(--hive-warn) 45%, var(--hive-line));
|
|
112
157
|
background: color-mix(in srgb, var(--hive-warn) 10%, transparent);
|
|
113
158
|
color: var(--hive-warn);
|
|
114
|
-
font-size:
|
|
159
|
+
font-size: 12px;
|
|
115
160
|
line-height: 1.5;
|
|
116
161
|
}
|
|
117
162
|
|
|
@@ -120,10 +165,10 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
120
165
|
.hive-freeze-banner .hive-btn {
|
|
121
166
|
flex: 0 0 auto;
|
|
122
167
|
padding: 3px 8px;
|
|
123
|
-
border-color: color-mix(in srgb, var(--hive-warn) 45%, var(--hive-line
|
|
168
|
+
border-color: color-mix(in srgb, var(--hive-warn) 45%, var(--hive-line));
|
|
124
169
|
background: color-mix(in srgb, var(--hive-warn) 12%, transparent);
|
|
125
170
|
color: var(--hive-warn);
|
|
126
|
-
font-size:
|
|
171
|
+
font-size: 12px;
|
|
127
172
|
}
|
|
128
173
|
|
|
129
174
|
.hive-help-trigger {
|
|
@@ -135,13 +180,13 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
135
180
|
|
|
136
181
|
/* Destructive card action: the drawer's delete control. */
|
|
137
182
|
.hive-btn-danger {
|
|
138
|
-
border-color: color-mix(in srgb, var(--hive-danger) 55%, var(--hive-line
|
|
183
|
+
border-color: color-mix(in srgb, var(--hive-danger) 55%, var(--hive-line));
|
|
139
184
|
background: color-mix(in srgb, var(--hive-danger) 12%, transparent);
|
|
140
|
-
color: color-mix(in srgb, var(--hive-danger) 88%, var(--hive-fg
|
|
185
|
+
color: color-mix(in srgb, var(--hive-danger) 88%, var(--hive-fg));
|
|
141
186
|
}
|
|
142
187
|
|
|
143
188
|
.hive-btn-danger:hover:not(:disabled) {
|
|
144
|
-
border-color: color-mix(in srgb, var(--hive-danger) 75%, var(--hive-line
|
|
189
|
+
border-color: color-mix(in srgb, var(--hive-danger) 75%, var(--hive-line));
|
|
145
190
|
background: color-mix(in srgb, var(--hive-danger) 22%, transparent);
|
|
146
191
|
}
|
|
147
192
|
|
|
@@ -171,39 +216,77 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
171
216
|
max-height: min(70vh, 560px);
|
|
172
217
|
overflow: auto;
|
|
173
218
|
padding: 12px;
|
|
174
|
-
border: 1px solid var(--hive-line
|
|
175
|
-
border-radius:
|
|
176
|
-
background: color-mix(in srgb, var(--hive-bg
|
|
177
|
-
color: var(--hive-fg
|
|
178
|
-
box-shadow:
|
|
179
|
-
scrollbar-color: var(--hive-line
|
|
219
|
+
border: 1px solid var(--hive-line);
|
|
220
|
+
border-radius: var(--hive-radius-lg);
|
|
221
|
+
background: color-mix(in srgb, var(--hive-bg) 97%, var(--hive-fg) 3%);
|
|
222
|
+
color: var(--hive-fg);
|
|
223
|
+
box-shadow: none;
|
|
224
|
+
scrollbar-color: var(--hive-line) transparent;
|
|
180
225
|
scrollbar-width: thin;
|
|
181
|
-
color-scheme: dark;
|
|
226
|
+
color-scheme: light dark;
|
|
182
227
|
}
|
|
183
228
|
|
|
184
229
|
.hive-help-head, .hive-dialog-head, .hive-toast-head { display: flex; align-items: flex-start; gap: 8px; }
|
|
185
|
-
.hive-help-title, .hive-dialog-title { margin: 0; overflow-wrap: anywhere; font-size:
|
|
230
|
+
.hive-help-title, .hive-dialog-title { margin: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 650; line-height: 1.5; }
|
|
186
231
|
.hive-help-title { padding-top: 3px; }
|
|
187
232
|
.hive-help-head .hive-btn-ghost, .hive-dialog-head .hive-btn-ghost, .hive-toast-head .hive-btn-ghost { flex: 0 0 auto; margin-left: auto; }
|
|
188
233
|
|
|
189
|
-
.hive-help-section { margin-top: 12px; color: var(--hive-fg-faint); font-size:
|
|
190
|
-
.hive-help-action { padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--hive-line
|
|
234
|
+
.hive-help-section { margin-top: 12px; color: var(--hive-fg-faint); font-size: 12px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
|
|
235
|
+
.hive-help-action { padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--hive-line) 70%, transparent); }
|
|
191
236
|
.hive-help-action:last-of-type { border-bottom: 0; }
|
|
192
|
-
.hive-help-name { color: var(--hive-fg
|
|
193
|
-
.hive-help-desc { margin-top: 2px; color: var(--hive-fg-soft); font-size:
|
|
194
|
-
.hive-help-params { margin-top: 3px; overflow-wrap: anywhere; color: var(--hive-fg-faint); font-family: var(--hive-mono); font-size:
|
|
237
|
+
.hive-help-name { color: var(--hive-fg); font-size: 12px; font-weight: 600; }
|
|
238
|
+
.hive-help-desc { margin-top: 2px; color: var(--hive-fg-soft); font-size: 12px; line-height: 1.5; }
|
|
239
|
+
.hive-help-params { margin-top: 3px; overflow-wrap: anywhere; color: var(--hive-fg-faint); font-family: var(--hive-mono); font-size: 12px; line-height: 1.5; }
|
|
195
240
|
.hive-help-actionrow { margin-top: 7px; }
|
|
196
241
|
.hive-help-note {
|
|
197
242
|
margin-top: 10px;
|
|
198
243
|
padding: 7px 8px;
|
|
199
244
|
border: 1px solid color-mix(in srgb, var(--hive-warn) 40%, transparent);
|
|
200
|
-
border-radius:
|
|
245
|
+
border-radius: var(--hive-radius-sm);
|
|
201
246
|
background: color-mix(in srgb, var(--hive-warn) 10%, transparent);
|
|
202
247
|
color: var(--hive-warn);
|
|
203
|
-
font-size:
|
|
248
|
+
font-size: 12px;
|
|
204
249
|
line-height: 1.5;
|
|
205
250
|
}
|
|
206
|
-
.hive-help-hint { margin-top: 10px; color: var(--hive-fg-faint); font-size:
|
|
251
|
+
.hive-help-hint { margin-top: 10px; color: var(--hive-fg-faint); font-size: 12px; line-height: 1.5; }
|
|
252
|
+
|
|
253
|
+
.hive-dialog {
|
|
254
|
+
position: relative;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.hive-dialog-head-title { padding-right: 36px; }
|
|
258
|
+
|
|
259
|
+
.hive-dialog-close {
|
|
260
|
+
position: absolute;
|
|
261
|
+
top: 12px;
|
|
262
|
+
right: 12px;
|
|
263
|
+
display: inline-flex;
|
|
264
|
+
align-items: center;
|
|
265
|
+
justify-content: center;
|
|
266
|
+
width: 28px;
|
|
267
|
+
min-width: 28px;
|
|
268
|
+
height: 28px;
|
|
269
|
+
padding: 0;
|
|
270
|
+
border: 0;
|
|
271
|
+
border-radius: var(--hive-radius-md);
|
|
272
|
+
background: transparent;
|
|
273
|
+
color: var(--hive-fg-soft);
|
|
274
|
+
font-size: 16px;
|
|
275
|
+
line-height: 1;
|
|
276
|
+
cursor: pointer;
|
|
277
|
+
z-index: 1;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.hive-dialog-close:hover {
|
|
281
|
+
border: 0;
|
|
282
|
+
background: var(--hive-surface-hover);
|
|
283
|
+
color: var(--hive-fg);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.hive-dialog-close:focus-visible {
|
|
287
|
+
outline: 2px solid var(--hive-accent);
|
|
288
|
+
outline-offset: 1px;
|
|
289
|
+
}
|
|
207
290
|
|
|
208
291
|
.hive-dialog {
|
|
209
292
|
display: flex;
|
|
@@ -211,52 +294,52 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
211
294
|
width: min(560px, 100%);
|
|
212
295
|
max-height: 100%;
|
|
213
296
|
overflow: hidden;
|
|
214
|
-
border: 1px solid var(--hive-line
|
|
215
|
-
border-radius:
|
|
216
|
-
background: color-mix(in srgb, var(--hive-bg
|
|
217
|
-
color: var(--hive-fg
|
|
218
|
-
box-shadow:
|
|
219
|
-
color-scheme: dark;
|
|
220
|
-
}
|
|
221
|
-
.hive-dialog-head { flex: 0 0 auto; padding: 12px 14px; border-bottom: 1px solid var(--hive-line
|
|
297
|
+
border: 1px solid var(--hive-line);
|
|
298
|
+
border-radius: var(--hive-radius-lg);
|
|
299
|
+
background: color-mix(in srgb, var(--hive-bg) 97%, var(--hive-fg) 3%);
|
|
300
|
+
color: var(--hive-fg);
|
|
301
|
+
box-shadow: none;
|
|
302
|
+
color-scheme: light dark;
|
|
303
|
+
}
|
|
304
|
+
.hive-dialog-head { flex: 0 0 auto; padding: 12px 14px; border-bottom: 1px solid var(--hive-line); }
|
|
222
305
|
.hive-dialog-head-title { min-width: 0; }
|
|
223
|
-
.hive-dialog-eyebrow { margin-bottom: 2px; color: var(--hive-fg-faint); font-family: var(--hive-mono); font-size:
|
|
224
|
-
.hive-dialog-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 10px; min-height: 0; padding: 14px; overflow: auto; scrollbar-color: var(--hive-line
|
|
225
|
-
.hive-dialog-foot { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--hive-line
|
|
306
|
+
.hive-dialog-eyebrow { margin-bottom: 2px; color: var(--hive-fg-faint); font-family: var(--hive-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
|
|
307
|
+
.hive-dialog-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 10px; min-height: 0; padding: 14px; overflow: auto; scrollbar-color: var(--hive-line) transparent; scrollbar-width: thin; }
|
|
308
|
+
.hive-dialog-foot { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--hive-line); }
|
|
226
309
|
|
|
227
310
|
.hive-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
|
|
228
311
|
.hive-field-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
|
|
229
312
|
.hive-field-row .hive-field { flex: 1 1 220px; }
|
|
230
313
|
.hive-field-row .hive-field.is-narrow { flex: 0 0 110px; }
|
|
231
|
-
.hive-field-label { color: var(--hive-fg-soft); font-size:
|
|
232
|
-
.hive-field-hint { color: var(--hive-fg-faint); font-size:
|
|
314
|
+
.hive-field-label { color: var(--hive-fg-soft); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
|
|
315
|
+
.hive-field-hint { color: var(--hive-fg-faint); font-size: 12px; line-height: 1.5; }
|
|
233
316
|
.hive-input, .hive-textarea {
|
|
234
317
|
width: 100%;
|
|
235
318
|
padding: 6px 8px;
|
|
236
|
-
border: 1px solid var(--hive-line
|
|
237
|
-
border-radius:
|
|
238
|
-
background: var(--hive-bg
|
|
239
|
-
color: var(--hive-fg
|
|
319
|
+
border: 1px solid var(--hive-line);
|
|
320
|
+
border-radius: var(--hive-radius-md);
|
|
321
|
+
background: var(--hive-bg);
|
|
322
|
+
color: var(--hive-fg);
|
|
240
323
|
font: inherit;
|
|
241
324
|
font-size: 12px;
|
|
242
|
-
line-height: 1.
|
|
325
|
+
line-height: 1.5;
|
|
243
326
|
}
|
|
244
327
|
.hive-textarea { min-height: 76px; resize: vertical; }
|
|
245
|
-
.hive-input:focus-visible, .hive-textarea:focus-visible { outline: 2px solid var(--hive-accent
|
|
328
|
+
.hive-input:focus-visible, .hive-textarea:focus-visible { outline: 2px solid var(--hive-accent); outline-offset: 1px; }
|
|
246
329
|
|
|
247
|
-
.hive-plan-preview-head { display: flex; align-items: baseline; gap: 6px; color: var(--hive-fg-soft); font-size:
|
|
330
|
+
.hive-plan-preview-head { display: flex; align-items: baseline; gap: 6px; color: var(--hive-fg-soft); font-size: 12px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
|
|
248
331
|
.hive-plan-count { color: var(--hive-fg-faint); font-family: var(--hive-mono); font-weight: 400; letter-spacing: 0; }
|
|
249
332
|
.hive-plan-list { display: flex; flex-direction: column; gap: 6px; }
|
|
250
|
-
.hive-plan-item { padding: 8px 9px; border: 1px solid var(--hive-line
|
|
251
|
-
.hive-plan-item-title { overflow-wrap: anywhere; font-size: 12px; font-weight: 600; line-height: 1.
|
|
252
|
-
.hive-plan-key { margin-left: 6px; color: var(--hive-fg-faint); font-family: var(--hive-mono); font-size:
|
|
253
|
-
.hive-plan-meta { margin-top: 3px; overflow-wrap: anywhere; color: var(--hive-fg-soft); font-size:
|
|
333
|
+
.hive-plan-item { padding: 8px 9px; border: 1px solid var(--hive-line); border-radius: var(--hive-radius-md); background: var(--hive-surface); }
|
|
334
|
+
.hive-plan-item-title { overflow-wrap: anywhere; font-size: 12px; font-weight: 600; line-height: 1.5; }
|
|
335
|
+
.hive-plan-key { margin-left: 6px; color: var(--hive-fg-faint); font-family: var(--hive-mono); font-size: 12px; font-weight: 400; }
|
|
336
|
+
.hive-plan-meta { margin-top: 3px; overflow-wrap: anywhere; color: var(--hive-fg-soft); font-size: 12px; line-height: 1.5; }
|
|
254
337
|
.hive-plan-chips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
|
|
255
|
-
.hive-plan-chip { max-width: 100%; overflow: hidden; padding: 1px 5px; border: 1px solid var(--hive-line
|
|
256
|
-
.hive-plan-empty, .hive-plan-hint { color: var(--hive-fg-faint); font-size:
|
|
257
|
-
.hive-plan-error { padding: 8px 9px; border-left:
|
|
338
|
+
.hive-plan-chip { max-width: 100%; overflow: hidden; padding: 1px 5px; border: 1px solid var(--hive-line); border-radius: var(--hive-radius-sm); background: var(--hive-surface-strong); color: var(--hive-fg-soft); font-family: var(--hive-mono); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
|
|
339
|
+
.hive-plan-empty, .hive-plan-hint { color: var(--hive-fg-faint); font-size: 12px; line-height: 1.5; }
|
|
340
|
+
.hive-plan-error { padding: 8px 9px; border-left: 1px solid var(--hive-danger); border-radius: 0 var(--hive-radius-sm) var(--hive-radius-sm) 0; background: color-mix(in srgb, var(--hive-danger) 10%, transparent); color: color-mix(in srgb, var(--hive-danger) 82%, var(--hive-fg)); font-family: var(--hive-mono); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
|
|
258
341
|
.hive-plan-error:empty { display: none; }
|
|
259
|
-
.hive-plan-raw { max-height: 180px; margin: 0; padding: 8px; overflow: auto; border: 1px solid var(--hive-line
|
|
342
|
+
.hive-plan-raw { max-height: 180px; margin: 0; padding: 8px; overflow: auto; border: 1px solid var(--hive-line); border-radius: var(--hive-radius-sm); background: var(--hive-surface); color: var(--hive-fg-soft); font-family: var(--hive-mono); font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
|
|
260
343
|
|
|
261
344
|
.hive-toast {
|
|
262
345
|
position: absolute;
|
|
@@ -267,21 +350,21 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
267
350
|
max-height: min(42vh, 340px);
|
|
268
351
|
overflow: auto;
|
|
269
352
|
padding: 9px 11px;
|
|
270
|
-
border: 1px solid color-mix(in srgb, var(--hive-danger) 45%, var(--hive-line
|
|
353
|
+
border: 1px solid color-mix(in srgb, var(--hive-danger) 45%, var(--hive-line));
|
|
271
354
|
border-left: 3px solid var(--hive-danger);
|
|
272
|
-
border-radius:
|
|
273
|
-
background: color-mix(in srgb, var(--hive-bg
|
|
274
|
-
color: var(--hive-fg
|
|
275
|
-
box-shadow:
|
|
276
|
-
scrollbar-color: var(--hive-line
|
|
355
|
+
border-radius: var(--hive-radius-md);
|
|
356
|
+
background: color-mix(in srgb, var(--hive-bg) 96%, var(--hive-fg) 4%);
|
|
357
|
+
color: var(--hive-fg);
|
|
358
|
+
box-shadow: none;
|
|
359
|
+
scrollbar-color: var(--hive-line) transparent;
|
|
277
360
|
scrollbar-width: thin;
|
|
278
|
-
color-scheme: dark;
|
|
361
|
+
color-scheme: light dark;
|
|
279
362
|
}
|
|
280
|
-
.hive-toast.is-success { border-color: color-mix(in srgb, var(--hive-ok) 45%, var(--hive-line
|
|
281
|
-
.hive-toast-title { padding-top: 1px; font-size:
|
|
363
|
+
.hive-toast.is-success { border-color: color-mix(in srgb, var(--hive-ok) 45%, var(--hive-line)); border-left-color: var(--hive-ok); }
|
|
364
|
+
.hive-toast-title { padding-top: 1px; font-size: 12px; font-weight: 650; }
|
|
282
365
|
.hive-toast-title.is-error { color: var(--hive-danger); }
|
|
283
366
|
.hive-toast-title.is-success { color: var(--hive-ok); }
|
|
284
|
-
.hive-toast-detail { margin-top: 3px; overflow-wrap: anywhere; color: var(--hive-fg-soft); font-family: var(--hive-mono); font-size:
|
|
367
|
+
.hive-toast-detail { margin-top: 3px; overflow-wrap: anywhere; color: var(--hive-fg-soft); font-family: var(--hive-mono); font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
|
|
285
368
|
|
|
286
369
|
.hive-main {
|
|
287
370
|
display: flex;
|
|
@@ -318,13 +401,13 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
318
401
|
gap: 6px;
|
|
319
402
|
min-width: 0;
|
|
320
403
|
padding: 7px 12px;
|
|
321
|
-
border-bottom: 1px solid var(--hive-line
|
|
322
|
-
background: color-mix(in srgb, var(--hive-fg
|
|
404
|
+
border-bottom: 1px solid var(--hive-line);
|
|
405
|
+
background: color-mix(in srgb, var(--hive-fg) 1.5%, transparent);
|
|
323
406
|
}
|
|
324
407
|
|
|
325
408
|
.hive-strip-label {
|
|
326
409
|
color: var(--hive-fg-soft);
|
|
327
|
-
font-size:
|
|
410
|
+
font-size: 12px;
|
|
328
411
|
font-weight: 650;
|
|
329
412
|
letter-spacing: 0.12em;
|
|
330
413
|
text-transform: uppercase;
|
|
@@ -346,23 +429,23 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
346
429
|
gap: 6px;
|
|
347
430
|
max-width: 100%;
|
|
348
431
|
padding: 2px 8px;
|
|
349
|
-
border: 1px solid var(--hive-line
|
|
432
|
+
border: 1px solid var(--hive-line);
|
|
350
433
|
border-radius: 999px;
|
|
351
434
|
background: var(--hive-surface);
|
|
352
|
-
color: var(--hive-fg
|
|
435
|
+
color: var(--hive-fg);
|
|
353
436
|
font: inherit;
|
|
354
|
-
font-size:
|
|
355
|
-
line-height: 1.
|
|
437
|
+
font-size: 12px;
|
|
438
|
+
line-height: 1.5;
|
|
356
439
|
cursor: pointer;
|
|
357
440
|
}
|
|
358
441
|
|
|
359
442
|
.hive-agent-pill:hover {
|
|
360
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
443
|
+
border-color: color-mix(in srgb, var(--hive-accent) 50%, var(--hive-line));
|
|
361
444
|
background: var(--hive-surface-hover);
|
|
362
445
|
}
|
|
363
446
|
|
|
364
447
|
.hive-agent-pill:focus-visible {
|
|
365
|
-
outline: 2px solid var(--hive-accent
|
|
448
|
+
outline: 2px solid var(--hive-accent);
|
|
366
449
|
outline-offset: 1px;
|
|
367
450
|
}
|
|
368
451
|
|
|
@@ -384,14 +467,14 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
384
467
|
overflow: hidden;
|
|
385
468
|
color: var(--hive-fg-soft);
|
|
386
469
|
font-family: var(--hive-mono);
|
|
387
|
-
font-size:
|
|
470
|
+
font-size: 12px;
|
|
388
471
|
text-overflow: ellipsis;
|
|
389
472
|
white-space: nowrap;
|
|
390
473
|
}
|
|
391
474
|
|
|
392
475
|
.hive-agents-empty {
|
|
393
476
|
color: var(--hive-fg-faint);
|
|
394
|
-
font-size:
|
|
477
|
+
font-size: 12px;
|
|
395
478
|
}
|
|
396
479
|
|
|
397
480
|
.hive-stage-chips {
|
|
@@ -405,29 +488,29 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
405
488
|
.hive-stage-chip {
|
|
406
489
|
appearance: none;
|
|
407
490
|
padding: 2px 8px;
|
|
408
|
-
border: 1px solid var(--hive-line
|
|
491
|
+
border: 1px solid var(--hive-line);
|
|
409
492
|
border-radius: 999px;
|
|
410
493
|
background: var(--hive-surface);
|
|
411
494
|
color: var(--hive-fg-soft);
|
|
412
495
|
font: inherit;
|
|
413
|
-
font-size:
|
|
414
|
-
line-height: 1.
|
|
496
|
+
font-size: 12px;
|
|
497
|
+
line-height: 1.5;
|
|
415
498
|
cursor: pointer;
|
|
416
499
|
white-space: nowrap;
|
|
417
500
|
}
|
|
418
501
|
|
|
419
502
|
.hive-stage-chip:hover {
|
|
420
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
503
|
+
border-color: color-mix(in srgb, var(--hive-accent) 50%, var(--hive-line));
|
|
421
504
|
}
|
|
422
505
|
|
|
423
506
|
.hive-stage-chip.is-active {
|
|
424
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
507
|
+
border-color: color-mix(in srgb, var(--hive-accent) 55%, transparent);
|
|
425
508
|
background: var(--hive-accent-soft);
|
|
426
|
-
color: var(--hive-accent
|
|
509
|
+
color: var(--hive-accent);
|
|
427
510
|
}
|
|
428
511
|
|
|
429
512
|
.hive-stage-chip:focus-visible {
|
|
430
|
-
outline: 2px solid var(--hive-accent
|
|
513
|
+
outline: 2px solid var(--hive-accent);
|
|
431
514
|
outline-offset: 1px;
|
|
432
515
|
}
|
|
433
516
|
|
|
@@ -472,7 +555,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
472
555
|
flex: 0 0 auto;
|
|
473
556
|
padding: 16px 10px;
|
|
474
557
|
color: var(--hive-fg-faint);
|
|
475
|
-
font-size:
|
|
558
|
+
font-size: 12px;
|
|
476
559
|
text-align: center;
|
|
477
560
|
}
|
|
478
561
|
|
|
@@ -481,8 +564,8 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
481
564
|
.hive-events-drawer {
|
|
482
565
|
flex: 0 0 auto;
|
|
483
566
|
min-width: 0;
|
|
484
|
-
border-top: 1px solid var(--hive-line
|
|
485
|
-
background: color-mix(in srgb, var(--hive-fg
|
|
567
|
+
border-top: 1px solid var(--hive-line);
|
|
568
|
+
background: color-mix(in srgb, var(--hive-fg) 1.5%, transparent);
|
|
486
569
|
}
|
|
487
570
|
|
|
488
571
|
.hive-events-toggle {
|
|
@@ -495,10 +578,10 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
495
578
|
background: transparent;
|
|
496
579
|
color: var(--hive-fg-soft);
|
|
497
580
|
font: inherit;
|
|
498
|
-
font-size:
|
|
581
|
+
font-size: 12px;
|
|
499
582
|
font-weight: 650;
|
|
500
583
|
letter-spacing: 0.12em;
|
|
501
|
-
line-height: 1.
|
|
584
|
+
line-height: 1.5;
|
|
502
585
|
text-align: left;
|
|
503
586
|
text-transform: uppercase;
|
|
504
587
|
cursor: pointer;
|
|
@@ -507,7 +590,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
507
590
|
.hive-events-toggle:hover { background: var(--hive-surface); }
|
|
508
591
|
|
|
509
592
|
.hive-events-toggle:focus-visible {
|
|
510
|
-
outline: 2px solid var(--hive-accent
|
|
593
|
+
outline: 2px solid var(--hive-accent);
|
|
511
594
|
outline-offset: -2px;
|
|
512
595
|
}
|
|
513
596
|
|
|
@@ -517,14 +600,14 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
517
600
|
margin-left: auto;
|
|
518
601
|
color: var(--hive-fg-faint);
|
|
519
602
|
font-family: var(--hive-mono);
|
|
520
|
-
font-size:
|
|
603
|
+
font-size: 12px;
|
|
521
604
|
font-weight: 400;
|
|
522
605
|
letter-spacing: 0;
|
|
523
606
|
}
|
|
524
607
|
|
|
525
608
|
.hive-events-caret {
|
|
526
609
|
color: var(--hive-fg-faint);
|
|
527
|
-
font-size:
|
|
610
|
+
font-size: 12px;
|
|
528
611
|
}
|
|
529
612
|
|
|
530
613
|
.hive-event-list {
|
|
@@ -545,23 +628,23 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
545
628
|
}
|
|
546
629
|
|
|
547
630
|
.hive-events-drawer.is-open .hive-events-toggle {
|
|
548
|
-
color: var(--hive-fg
|
|
631
|
+
color: var(--hive-fg);
|
|
549
632
|
}
|
|
550
633
|
|
|
551
|
-
@container hiveboard (max-width:
|
|
634
|
+
@container hiveboard (max-width: 819px) {
|
|
552
635
|
.hive-lane.is-empty,
|
|
553
636
|
.hive-lane.is-filtered-out { display: none; }
|
|
554
637
|
|
|
555
638
|
.hive-hint { display: none; }
|
|
556
639
|
}
|
|
557
640
|
|
|
558
|
-
@container hiveboard (min-width:
|
|
641
|
+
@container hiveboard (min-width: 820px) {
|
|
559
642
|
.hive-stage-chips { display: none; }
|
|
560
643
|
.hive-filter-empty,
|
|
561
644
|
.hive-filter-empty.is-visible { display: none; }
|
|
562
645
|
.hive-lanes {
|
|
563
646
|
display: grid;
|
|
564
|
-
grid-template-columns: repeat(
|
|
647
|
+
grid-template-columns: repeat(4, minmax(200px, 1fr));
|
|
565
648
|
align-items: stretch;
|
|
566
649
|
gap: 9px;
|
|
567
650
|
overflow: hidden;
|
|
@@ -608,11 +691,11 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
608
691
|
.hive-init-card {
|
|
609
692
|
width: min(520px, 100%);
|
|
610
693
|
padding: 20px;
|
|
611
|
-
border: 1px solid var(--hive-line
|
|
612
|
-
border-radius:
|
|
613
|
-
background: color-mix(in srgb, var(--hive-bg
|
|
614
|
-
color: var(--hive-fg
|
|
615
|
-
box-shadow:
|
|
694
|
+
border: 1px solid var(--hive-line);
|
|
695
|
+
border-radius: var(--hive-radius-lg);
|
|
696
|
+
background: color-mix(in srgb, var(--hive-bg) 96%, var(--hive-fg) 4%);
|
|
697
|
+
color: var(--hive-fg);
|
|
698
|
+
box-shadow: none;
|
|
616
699
|
}
|
|
617
700
|
|
|
618
701
|
.hive-init-repo-row {
|
|
@@ -625,7 +708,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
625
708
|
|
|
626
709
|
.hive-init-repo-label {
|
|
627
710
|
flex: 0 0 auto;
|
|
628
|
-
font-size:
|
|
711
|
+
font-size: 12px;
|
|
629
712
|
font-weight: 650;
|
|
630
713
|
letter-spacing: 0.1em;
|
|
631
714
|
text-transform: uppercase;
|
|
@@ -634,23 +717,23 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
634
717
|
.hive-init-repo {
|
|
635
718
|
min-width: 0;
|
|
636
719
|
overflow-wrap: anywhere;
|
|
637
|
-
color: var(--hive-fg
|
|
720
|
+
color: var(--hive-fg);
|
|
638
721
|
font-family: var(--hive-mono);
|
|
639
|
-
font-size:
|
|
722
|
+
font-size: 12px;
|
|
640
723
|
}
|
|
641
724
|
|
|
642
725
|
.hive-init-title {
|
|
643
726
|
margin: 10px 0 0;
|
|
644
727
|
font-size: 16px;
|
|
645
728
|
font-weight: 650;
|
|
646
|
-
line-height: 1.
|
|
729
|
+
line-height: 1.5;
|
|
647
730
|
}
|
|
648
731
|
|
|
649
732
|
.hive-init-description {
|
|
650
733
|
margin: 6px 0 0;
|
|
651
734
|
color: var(--hive-fg-soft);
|
|
652
|
-
font-size:
|
|
653
|
-
line-height: 1.
|
|
735
|
+
font-size: 12px;
|
|
736
|
+
line-height: 1.5;
|
|
654
737
|
}
|
|
655
738
|
|
|
656
739
|
.hive-init-button { margin-top: 14px; }
|
|
@@ -663,7 +746,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
663
746
|
.hive-init-readonly {
|
|
664
747
|
margin-top: 8px;
|
|
665
748
|
color: var(--hive-warn);
|
|
666
|
-
font-size:
|
|
749
|
+
font-size: 12px;
|
|
667
750
|
line-height: 1.5;
|
|
668
751
|
}
|
|
669
752
|
|
|
@@ -672,8 +755,8 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
672
755
|
align-items: center;
|
|
673
756
|
gap: 7px;
|
|
674
757
|
margin-top: 10px;
|
|
675
|
-
color: var(--hive-accent
|
|
676
|
-
font-size:
|
|
758
|
+
color: var(--hive-accent);
|
|
759
|
+
font-size: 12px;
|
|
677
760
|
line-height: 1.5;
|
|
678
761
|
}
|
|
679
762
|
|
|
@@ -681,8 +764,8 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
681
764
|
width: 12px;
|
|
682
765
|
height: 12px;
|
|
683
766
|
flex: 0 0 auto;
|
|
684
|
-
border: 2px solid color-mix(in srgb, var(--hive-accent
|
|
685
|
-
border-top-color: var(--hive-accent
|
|
767
|
+
border: 2px solid color-mix(in srgb, var(--hive-accent) 25%, transparent);
|
|
768
|
+
border-top-color: var(--hive-accent);
|
|
686
769
|
border-radius: 50%;
|
|
687
770
|
animation: hive-spin 0.8s linear infinite;
|
|
688
771
|
}
|
|
@@ -694,12 +777,12 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
694
777
|
.hive-init-error {
|
|
695
778
|
margin-top: 10px;
|
|
696
779
|
padding: 8px 9px;
|
|
697
|
-
border-left:
|
|
698
|
-
border-radius: 0
|
|
780
|
+
border-left: 1px solid var(--hive-danger);
|
|
781
|
+
border-radius: 0 var(--hive-radius-sm) var(--hive-radius-sm) 0;
|
|
699
782
|
background: color-mix(in srgb, var(--hive-danger) 10%, transparent);
|
|
700
|
-
color: color-mix(in srgb, var(--hive-danger) 82%, var(--hive-fg
|
|
783
|
+
color: color-mix(in srgb, var(--hive-danger) 82%, var(--hive-fg));
|
|
701
784
|
font-family: var(--hive-mono);
|
|
702
|
-
font-size:
|
|
785
|
+
font-size: 12px;
|
|
703
786
|
line-height: 1.5;
|
|
704
787
|
overflow-wrap: anywhere;
|
|
705
788
|
white-space: pre-wrap;
|
|
@@ -707,15 +790,15 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
707
790
|
|
|
708
791
|
.hive-init-output {
|
|
709
792
|
margin-top: 10px;
|
|
710
|
-
border: 1px solid var(--hive-line
|
|
711
|
-
border-radius:
|
|
793
|
+
border: 1px solid var(--hive-line);
|
|
794
|
+
border-radius: var(--hive-radius-md);
|
|
712
795
|
background: var(--hive-surface);
|
|
713
796
|
}
|
|
714
797
|
|
|
715
798
|
.hive-output-summary {
|
|
716
799
|
padding: 6px 8px;
|
|
717
800
|
color: var(--hive-fg-soft);
|
|
718
|
-
font-size:
|
|
801
|
+
font-size: 12px;
|
|
719
802
|
line-height: 1.5;
|
|
720
803
|
cursor: pointer;
|
|
721
804
|
user-select: none;
|
|
@@ -728,7 +811,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
728
811
|
overflow: auto;
|
|
729
812
|
color: var(--hive-fg-soft);
|
|
730
813
|
font-family: var(--hive-mono);
|
|
731
|
-
font-size:
|
|
814
|
+
font-size: 12px;
|
|
732
815
|
line-height: 1.5;
|
|
733
816
|
overflow-wrap: anywhere;
|
|
734
817
|
white-space: pre-wrap;
|
|
@@ -746,19 +829,19 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
746
829
|
flex-direction: row;
|
|
747
830
|
gap: 8px;
|
|
748
831
|
padding: 10px 16px;
|
|
749
|
-
border-bottom: 1px solid color-mix(in srgb, var(--hive-accent
|
|
832
|
+
border-bottom: 1px solid color-mix(in srgb, var(--hive-accent) 32%, var(--hive-line));
|
|
750
833
|
background: var(--hive-accent-soft);
|
|
751
|
-
color: var(--hive-accent
|
|
752
|
-
font-size:
|
|
753
|
-
line-height: 1.
|
|
834
|
+
color: var(--hive-accent);
|
|
835
|
+
font-size: 12px;
|
|
836
|
+
line-height: 1.5;
|
|
754
837
|
}
|
|
755
838
|
|
|
756
839
|
.hive-queen-hint.is-visible { display: flex; }
|
|
757
840
|
.hive-queen-badge {
|
|
758
841
|
padding: 2px 8px;
|
|
759
|
-
border: 1px solid var(--hive-line
|
|
842
|
+
border: 1px solid var(--hive-line);
|
|
760
843
|
border-radius: 999px;
|
|
761
|
-
font-size:
|
|
844
|
+
font-size: 12px;
|
|
762
845
|
font-weight: 650;
|
|
763
846
|
letter-spacing: 0.09em;
|
|
764
847
|
line-height: 1.5;
|
|
@@ -769,19 +852,19 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
769
852
|
.hive-queen-badge.is-hidden { display: none; }
|
|
770
853
|
|
|
771
854
|
.hive-queen-badge.is-active {
|
|
772
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
855
|
+
border-color: color-mix(in srgb, var(--hive-accent) 45%, transparent);
|
|
773
856
|
background: var(--hive-accent-soft);
|
|
774
|
-
color: var(--hive-accent
|
|
857
|
+
color: var(--hive-accent);
|
|
775
858
|
}
|
|
776
859
|
|
|
777
860
|
.hive-queen-badge.is-inactive {
|
|
778
|
-
border-color: var(--hive-line
|
|
861
|
+
border-color: var(--hive-line);
|
|
779
862
|
background: var(--hive-surface);
|
|
780
863
|
color: var(--hive-fg-soft);
|
|
781
864
|
}
|
|
782
865
|
|
|
783
866
|
.hive-queen-hint.is-offer {
|
|
784
|
-
border-bottom-color: var(--hive-line
|
|
867
|
+
border-bottom-color: var(--hive-line);
|
|
785
868
|
background: var(--hive-surface);
|
|
786
869
|
color: var(--hive-fg-soft);
|
|
787
870
|
}
|
|
@@ -810,15 +893,15 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
810
893
|
padding: 0 6px;
|
|
811
894
|
color: var(--hive-fg-soft);
|
|
812
895
|
font-size: 16px;
|
|
813
|
-
line-height: 1.
|
|
896
|
+
line-height: 1.5;
|
|
814
897
|
}
|
|
815
898
|
|
|
816
899
|
.hive-queen-dismiss.is-hidden { display: none; }
|
|
817
900
|
|
|
818
901
|
.hive-queen-takeover {
|
|
819
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
902
|
+
border-color: color-mix(in srgb, var(--hive-accent) 45%, var(--hive-line));
|
|
820
903
|
background: var(--hive-accent-soft);
|
|
821
|
-
color: var(--hive-accent
|
|
904
|
+
color: var(--hive-accent);
|
|
822
905
|
}
|
|
823
906
|
|
|
824
907
|
.hive-queen-takeover:disabled {
|
|
@@ -835,11 +918,11 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
835
918
|
|
|
836
919
|
.hive-queen-output {
|
|
837
920
|
margin-top: 6px;
|
|
838
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
839
|
-
background: color-mix(in srgb, var(--hive-bg
|
|
921
|
+
border-color: color-mix(in srgb, var(--hive-accent) 32%, var(--hive-line));
|
|
922
|
+
background: color-mix(in srgb, var(--hive-bg) 80%, transparent);
|
|
840
923
|
}
|
|
841
924
|
|
|
842
|
-
.hive-queen-output .hive-output-summary { color: var(--hive-accent
|
|
925
|
+
.hive-queen-output .hive-output-summary { color: var(--hive-accent); }
|
|
843
926
|
.hive-queen-output .hive-output-pre { max-height: 120px; }
|
|
844
927
|
|
|
845
928
|
.hive-supervisor {
|
|
@@ -850,16 +933,16 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
850
933
|
gap: 5px 8px;
|
|
851
934
|
min-width: 0;
|
|
852
935
|
padding: 6px 12px;
|
|
853
|
-
border-bottom: 1px solid var(--hive-line
|
|
854
|
-
background: color-mix(in srgb, var(--hive-fg
|
|
855
|
-
font-size:
|
|
936
|
+
border-bottom: 1px solid var(--hive-line);
|
|
937
|
+
background: color-mix(in srgb, var(--hive-fg) 2%, transparent);
|
|
938
|
+
font-size: 12px;
|
|
856
939
|
}
|
|
857
940
|
|
|
858
941
|
.hive-supervisor.is-hidden { display: none; }
|
|
859
942
|
|
|
860
943
|
.hive-supervisor-label {
|
|
861
944
|
color: var(--hive-fg-soft);
|
|
862
|
-
font-size:
|
|
945
|
+
font-size: 12px;
|
|
863
946
|
font-weight: 650;
|
|
864
947
|
letter-spacing: 0.12em;
|
|
865
948
|
text-transform: uppercase;
|
|
@@ -879,7 +962,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
879
962
|
gap: 5px;
|
|
880
963
|
max-width: 100%;
|
|
881
964
|
padding: 1px 7px;
|
|
882
|
-
border: 1px solid var(--hive-line
|
|
965
|
+
border: 1px solid var(--hive-line);
|
|
883
966
|
border-radius: 999px;
|
|
884
967
|
background: var(--hive-surface);
|
|
885
968
|
}
|
|
@@ -889,13 +972,13 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
889
972
|
overflow: hidden;
|
|
890
973
|
color: var(--hive-fg-soft);
|
|
891
974
|
font-family: var(--hive-mono);
|
|
892
|
-
font-size:
|
|
975
|
+
font-size: 12px;
|
|
893
976
|
text-overflow: ellipsis;
|
|
894
977
|
white-space: nowrap;
|
|
895
978
|
}
|
|
896
979
|
|
|
897
980
|
.hive-supervisor-state {
|
|
898
|
-
font-size:
|
|
981
|
+
font-size: 12px;
|
|
899
982
|
font-weight: 600;
|
|
900
983
|
white-space: nowrap;
|
|
901
984
|
}
|
|
@@ -908,16 +991,16 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
908
991
|
.hive-supervisor-resume {
|
|
909
992
|
margin-left: 2px;
|
|
910
993
|
padding: 2px 6px;
|
|
911
|
-
font-size:
|
|
912
|
-
line-height: 1.
|
|
994
|
+
font-size: 12px;
|
|
995
|
+
line-height: 1.5;
|
|
913
996
|
}
|
|
914
997
|
|
|
915
998
|
.hive-supervisor-limits {
|
|
916
999
|
flex: 0 0 auto;
|
|
917
1000
|
margin-left: auto;
|
|
918
1001
|
padding: 2px 7px;
|
|
919
|
-
font-size:
|
|
920
|
-
line-height: 1.
|
|
1002
|
+
font-size: 12px;
|
|
1003
|
+
line-height: 1.5;
|
|
921
1004
|
}
|
|
922
1005
|
|
|
923
1006
|
.hive-supervisor-limits.is-hidden { display: none; }
|
|
@@ -932,7 +1015,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
932
1015
|
|
|
933
1016
|
.hive-limits-repo-label {
|
|
934
1017
|
color: var(--hive-fg-faint);
|
|
935
|
-
font-size:
|
|
1018
|
+
font-size: 12px;
|
|
936
1019
|
font-weight: 650;
|
|
937
1020
|
letter-spacing: 0.1em;
|
|
938
1021
|
text-transform: uppercase;
|
|
@@ -940,14 +1023,14 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
940
1023
|
|
|
941
1024
|
.hive-limits-repo-path {
|
|
942
1025
|
overflow-wrap: anywhere;
|
|
943
|
-
color: var(--hive-fg
|
|
1026
|
+
color: var(--hive-fg);
|
|
944
1027
|
font-family: var(--hive-mono);
|
|
945
|
-
font-size:
|
|
1028
|
+
font-size: 12px;
|
|
946
1029
|
}
|
|
947
1030
|
|
|
948
1031
|
.hive-limits-description {
|
|
949
1032
|
color: var(--hive-fg-soft);
|
|
950
|
-
font-size:
|
|
1033
|
+
font-size: 12px;
|
|
951
1034
|
line-height: 1.5;
|
|
952
1035
|
}
|
|
953
1036
|
|
|
@@ -960,31 +1043,50 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
960
1043
|
|
|
961
1044
|
.hive-limits-row {
|
|
962
1045
|
display: grid;
|
|
963
|
-
grid-template-columns: minmax(0, 1fr) 96px 48px 48px;
|
|
1046
|
+
grid-template-columns: minmax(0, 1fr) 96px 48px 48px 28px;
|
|
964
1047
|
align-items: center;
|
|
965
1048
|
gap: 6px;
|
|
966
1049
|
min-width: 0;
|
|
967
1050
|
padding: 3px 0;
|
|
968
|
-
border-top: 1px solid color-mix(in srgb, var(--hive-line
|
|
1051
|
+
border-top: 1px solid color-mix(in srgb, var(--hive-line) 70%, transparent);
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
.hive-limits-cell.is-action { min-width: 28px; }
|
|
1055
|
+
|
|
1056
|
+
.hive-role-remove {
|
|
1057
|
+
width: 28px;
|
|
1058
|
+
min-width: 28px;
|
|
1059
|
+
height: 24px;
|
|
1060
|
+
padding: 0;
|
|
1061
|
+
border-color: transparent;
|
|
1062
|
+
background: transparent;
|
|
1063
|
+
color: var(--hive-danger);
|
|
1064
|
+
font-size: 14px;
|
|
1065
|
+
line-height: 1;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
.hive-role-remove:hover:not(:disabled) {
|
|
1069
|
+
border-color: color-mix(in srgb, var(--hive-danger) 55%, var(--hive-line));
|
|
1070
|
+
background: color-mix(in srgb, var(--hive-danger) 12%, transparent);
|
|
969
1071
|
}
|
|
970
1072
|
|
|
971
1073
|
.hive-limits-row.is-head {
|
|
972
1074
|
padding: 0 0 2px;
|
|
973
1075
|
border-top: 0;
|
|
974
1076
|
color: var(--hive-fg-faint);
|
|
975
|
-
font-size:
|
|
1077
|
+
font-size: 12px;
|
|
976
1078
|
letter-spacing: 0.06em;
|
|
977
1079
|
text-transform: uppercase;
|
|
978
1080
|
}
|
|
979
1081
|
|
|
980
1082
|
.hive-limits-cell { min-width: 0; }
|
|
981
|
-
.hive-limits-cell.is-number { text-align: right; color: var(--hive-fg-soft); font-family: var(--hive-mono); font-size:
|
|
1083
|
+
.hive-limits-cell.is-number { text-align: right; color: var(--hive-fg-soft); font-family: var(--hive-mono); font-size: 12px; }
|
|
982
1084
|
|
|
983
1085
|
.hive-limits-role {
|
|
984
1086
|
overflow: hidden;
|
|
985
|
-
color: var(--hive-fg
|
|
1087
|
+
color: var(--hive-fg);
|
|
986
1088
|
font-family: var(--hive-mono);
|
|
987
|
-
font-size:
|
|
1089
|
+
font-size: 12px;
|
|
988
1090
|
text-overflow: ellipsis;
|
|
989
1091
|
white-space: nowrap;
|
|
990
1092
|
}
|
|
@@ -993,30 +1095,30 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
993
1095
|
width: 100%;
|
|
994
1096
|
padding: 4px 5px;
|
|
995
1097
|
font-family: var(--hive-mono);
|
|
996
|
-
font-size:
|
|
1098
|
+
font-size: 12px;
|
|
997
1099
|
text-align: right;
|
|
998
1100
|
}
|
|
999
1101
|
|
|
1000
1102
|
.hive-limits-hint {
|
|
1001
1103
|
color: var(--hive-fg-faint);
|
|
1002
|
-
font-size:
|
|
1003
|
-
line-height: 1.
|
|
1104
|
+
font-size: 12px;
|
|
1105
|
+
line-height: 1.5;
|
|
1004
1106
|
}
|
|
1005
1107
|
|
|
1006
1108
|
.hive-limits-empty {
|
|
1007
1109
|
color: var(--hive-fg-faint);
|
|
1008
|
-
font-size:
|
|
1110
|
+
font-size: 12px;
|
|
1009
1111
|
line-height: 1.5;
|
|
1010
1112
|
}
|
|
1011
1113
|
|
|
1012
1114
|
.hive-limits-error {
|
|
1013
1115
|
padding: 8px 9px;
|
|
1014
|
-
border-left:
|
|
1015
|
-
border-radius: 0
|
|
1116
|
+
border-left: 1px solid var(--hive-danger);
|
|
1117
|
+
border-radius: 0 var(--hive-radius-sm) var(--hive-radius-sm) 0;
|
|
1016
1118
|
background: color-mix(in srgb, var(--hive-danger) 10%, transparent);
|
|
1017
|
-
color: color-mix(in srgb, var(--hive-danger) 82%, var(--hive-fg
|
|
1119
|
+
color: color-mix(in srgb, var(--hive-danger) 82%, var(--hive-fg));
|
|
1018
1120
|
font-family: var(--hive-mono);
|
|
1019
|
-
font-size:
|
|
1121
|
+
font-size: 12px;
|
|
1020
1122
|
line-height: 1.5;
|
|
1021
1123
|
overflow-wrap: anywhere;
|
|
1022
1124
|
white-space: pre-wrap;
|
|
@@ -1026,15 +1128,15 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1026
1128
|
|
|
1027
1129
|
.hive-status {
|
|
1028
1130
|
padding: 2px 8px;
|
|
1029
|
-
border: 1px solid color-mix(in srgb, var(--hive-danger) 40%, var(--hive-line
|
|
1131
|
+
border: 1px solid color-mix(in srgb, var(--hive-danger) 40%, var(--hive-line));
|
|
1030
1132
|
border-radius: 999px;
|
|
1031
1133
|
background: color-mix(in srgb, var(--hive-danger) 9%, transparent);
|
|
1032
1134
|
}
|
|
1033
1135
|
|
|
1034
1136
|
.hive-field-hint {
|
|
1035
1137
|
padding: 4px 7px;
|
|
1036
|
-
border: 1px solid color-mix(in srgb, var(--hive-line
|
|
1037
|
-
border-radius:
|
|
1138
|
+
border: 1px solid color-mix(in srgb, var(--hive-line) 70%, transparent);
|
|
1139
|
+
border-radius: var(--hive-radius-sm);
|
|
1038
1140
|
background: var(--hive-surface);
|
|
1039
1141
|
line-height: 1.5;
|
|
1040
1142
|
}
|
|
@@ -1051,7 +1153,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1051
1153
|
|
|
1052
1154
|
.hive-oldest-id {
|
|
1053
1155
|
font-family: var(--hive-mono);
|
|
1054
|
-
font-size:
|
|
1156
|
+
font-size: 12px;
|
|
1055
1157
|
font-weight: 400;
|
|
1056
1158
|
overflow-wrap: anywhere;
|
|
1057
1159
|
}
|
|
@@ -1063,19 +1165,19 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1063
1165
|
gap: 5px;
|
|
1064
1166
|
min-width: 0;
|
|
1065
1167
|
padding: 1px 8px;
|
|
1066
|
-
border: 1px solid var(--hive-line
|
|
1168
|
+
border: 1px solid var(--hive-line);
|
|
1067
1169
|
border-radius: 999px;
|
|
1068
1170
|
background: var(--hive-surface);
|
|
1069
1171
|
color: var(--hive-fg-soft);
|
|
1070
|
-
font-size:
|
|
1071
|
-
line-height: 1.
|
|
1172
|
+
font-size: 12px;
|
|
1173
|
+
line-height: 1.5;
|
|
1072
1174
|
}
|
|
1073
1175
|
|
|
1074
1176
|
.hive-supervisor-inline.is-hidden { display: none; }
|
|
1075
1177
|
|
|
1076
1178
|
.hive-supervisor-inline-label {
|
|
1077
1179
|
color: var(--hive-fg-faint);
|
|
1078
|
-
font-size:
|
|
1180
|
+
font-size: 12px;
|
|
1079
1181
|
font-weight: 650;
|
|
1080
1182
|
letter-spacing: 0.1em;
|
|
1081
1183
|
text-transform: uppercase;
|
|
@@ -1094,8 +1196,8 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1094
1196
|
|
|
1095
1197
|
.hive-supervisor-inline-resume {
|
|
1096
1198
|
padding: 1px 6px;
|
|
1097
|
-
font-size:
|
|
1098
|
-
line-height: 1.
|
|
1199
|
+
font-size: 12px;
|
|
1200
|
+
line-height: 1.5;
|
|
1099
1201
|
}
|
|
1100
1202
|
|
|
1101
1203
|
.hive-supervisor-inline-resume.is-hidden { display: none; }
|
|
@@ -1105,7 +1207,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1105
1207
|
min-width: 28px;
|
|
1106
1208
|
padding-inline: 8px;
|
|
1107
1209
|
font-size: 14px;
|
|
1108
|
-
line-height: 1.
|
|
1210
|
+
line-height: 1.5;
|
|
1109
1211
|
}
|
|
1110
1212
|
|
|
1111
1213
|
.hive-settings-section {
|
|
@@ -1114,14 +1216,14 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1114
1216
|
gap: 8px;
|
|
1115
1217
|
min-width: 0;
|
|
1116
1218
|
padding-top: 12px;
|
|
1117
|
-
border-top: 1px solid color-mix(in srgb, var(--hive-line
|
|
1219
|
+
border-top: 1px solid color-mix(in srgb, var(--hive-line) 70%, transparent);
|
|
1118
1220
|
}
|
|
1119
1221
|
|
|
1120
1222
|
.hive-settings-section:first-of-type { padding-top: 0; border-top: 0; }
|
|
1121
1223
|
|
|
1122
1224
|
.hive-settings-section-title {
|
|
1123
|
-
color: var(--hive-fg
|
|
1124
|
-
font-size:
|
|
1225
|
+
color: var(--hive-fg);
|
|
1226
|
+
font-size: 12px;
|
|
1125
1227
|
font-weight: 650;
|
|
1126
1228
|
letter-spacing: 0.08em;
|
|
1127
1229
|
text-transform: uppercase;
|
|
@@ -1137,12 +1239,12 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1137
1239
|
|
|
1138
1240
|
.hive-settings-note {
|
|
1139
1241
|
padding: 8px 10px;
|
|
1140
|
-
border: 1px solid color-mix(in srgb, var(--hive-warn) 38%, var(--hive-line
|
|
1141
|
-
border-radius:
|
|
1242
|
+
border: 1px solid color-mix(in srgb, var(--hive-warn) 38%, var(--hive-line));
|
|
1243
|
+
border-radius: var(--hive-radius-sm);
|
|
1142
1244
|
background: color-mix(in srgb, var(--hive-warn) 9%, transparent);
|
|
1143
1245
|
color: var(--hive-warn);
|
|
1144
|
-
font-size:
|
|
1145
|
-
line-height: 1.
|
|
1246
|
+
font-size: 12px;
|
|
1247
|
+
line-height: 1.5;
|
|
1146
1248
|
}
|
|
1147
1249
|
|
|
1148
1250
|
/* -------------------------------------------------------------------- spacing */
|
|
@@ -1181,18 +1283,18 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1181
1283
|
.hive-plan-hint,
|
|
1182
1284
|
.hive-limits-description,
|
|
1183
1285
|
.hive-limits-hint,
|
|
1184
|
-
.hive-queen-text { max-width: 76ch; line-height: 1.
|
|
1286
|
+
.hive-queen-text { max-width: 76ch; line-height: 1.5; }
|
|
1185
1287
|
|
|
1186
1288
|
.hive-empty,
|
|
1187
1289
|
.hive-filter-empty,
|
|
1188
1290
|
.hive-agents-empty {
|
|
1189
1291
|
padding: 12px 14px;
|
|
1190
|
-
border: 1px solid var(--hive-line
|
|
1191
|
-
border-radius:
|
|
1292
|
+
border: 1px solid var(--hive-line);
|
|
1293
|
+
border-radius: var(--hive-radius-md);
|
|
1192
1294
|
background: var(--hive-surface);
|
|
1193
1295
|
color: var(--hive-fg-soft);
|
|
1194
|
-
font-size:
|
|
1195
|
-
line-height: 1.
|
|
1296
|
+
font-size: 12px;
|
|
1297
|
+
line-height: 1.5;
|
|
1196
1298
|
text-align: left;
|
|
1197
1299
|
}
|
|
1198
1300
|
|
|
@@ -1202,20 +1304,20 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1202
1304
|
.hive-limits-hint,
|
|
1203
1305
|
.hive-note {
|
|
1204
1306
|
padding: 8px 10px;
|
|
1205
|
-
border: 1px solid color-mix(in srgb, var(--hive-line
|
|
1206
|
-
border-radius:
|
|
1307
|
+
border: 1px solid color-mix(in srgb, var(--hive-line) 80%, transparent);
|
|
1308
|
+
border-radius: var(--hive-radius-sm);
|
|
1207
1309
|
background: var(--hive-surface);
|
|
1208
1310
|
color: var(--hive-fg-soft);
|
|
1209
|
-
font-size:
|
|
1210
|
-
line-height: 1.
|
|
1311
|
+
font-size: 12px;
|
|
1312
|
+
line-height: 1.5;
|
|
1211
1313
|
}
|
|
1212
1314
|
|
|
1213
1315
|
.hive-init-readonly {
|
|
1214
1316
|
padding: 8px 10px;
|
|
1215
|
-
border: 1px solid color-mix(in srgb, var(--hive-warn) 38%, var(--hive-line
|
|
1216
|
-
border-radius:
|
|
1317
|
+
border: 1px solid color-mix(in srgb, var(--hive-warn) 38%, var(--hive-line));
|
|
1318
|
+
border-radius: var(--hive-radius-sm);
|
|
1217
1319
|
background: color-mix(in srgb, var(--hive-warn) 9%, transparent);
|
|
1218
|
-
line-height: 1.
|
|
1320
|
+
line-height: 1.5;
|
|
1219
1321
|
}
|
|
1220
1322
|
|
|
1221
1323
|
.hive-icon-button {
|
|
@@ -1230,7 +1332,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1230
1332
|
border: 0;
|
|
1231
1333
|
border-color: transparent;
|
|
1232
1334
|
background: transparent;
|
|
1233
|
-
color: color-mix(in srgb, var(--hive-fg
|
|
1335
|
+
color: color-mix(in srgb, var(--hive-fg) 80%, transparent);
|
|
1234
1336
|
font-size: 0;
|
|
1235
1337
|
line-height: 1;
|
|
1236
1338
|
box-shadow: none;
|
|
@@ -1241,13 +1343,13 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1241
1343
|
border: 0;
|
|
1242
1344
|
border-color: transparent;
|
|
1243
1345
|
background: transparent;
|
|
1244
|
-
color: var(--hive-fg
|
|
1346
|
+
color: var(--hive-fg);
|
|
1245
1347
|
}
|
|
1246
1348
|
|
|
1247
1349
|
.hive-icon-button:active { transform: none; }
|
|
1248
1350
|
|
|
1249
1351
|
.hive-icon-button:focus-visible {
|
|
1250
|
-
outline: 2px solid var(--hive-accent
|
|
1352
|
+
outline: 2px solid var(--hive-accent);
|
|
1251
1353
|
outline-offset: 1px;
|
|
1252
1354
|
}
|
|
1253
1355
|
|
|
@@ -1293,7 +1395,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1293
1395
|
display: flex;
|
|
1294
1396
|
align-items: center;
|
|
1295
1397
|
gap: 4px;
|
|
1296
|
-
border-bottom: 1px solid var(--hive-line
|
|
1398
|
+
border-bottom: 1px solid var(--hive-line);
|
|
1297
1399
|
}
|
|
1298
1400
|
|
|
1299
1401
|
.hive-settings-tab {
|
|
@@ -1303,20 +1405,20 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1303
1405
|
border-bottom: 2px solid transparent;
|
|
1304
1406
|
background: transparent;
|
|
1305
1407
|
color: var(--hive-fg-soft);
|
|
1306
|
-
font-size:
|
|
1307
|
-
line-height: 1.
|
|
1408
|
+
font-size: 12px;
|
|
1409
|
+
line-height: 1.5;
|
|
1308
1410
|
cursor: pointer;
|
|
1309
1411
|
}
|
|
1310
1412
|
|
|
1311
|
-
.hive-settings-tab:hover { color: var(--hive-fg
|
|
1413
|
+
.hive-settings-tab:hover { color: var(--hive-fg); }
|
|
1312
1414
|
|
|
1313
1415
|
.hive-settings-tab[aria-selected="true"] {
|
|
1314
|
-
border-bottom-color: var(--hive-accent
|
|
1315
|
-
color: var(--hive-fg
|
|
1416
|
+
border-bottom-color: var(--hive-accent);
|
|
1417
|
+
color: var(--hive-fg);
|
|
1316
1418
|
}
|
|
1317
1419
|
|
|
1318
1420
|
.hive-settings-tab:focus-visible {
|
|
1319
|
-
outline: 2px solid var(--hive-accent
|
|
1421
|
+
outline: 2px solid var(--hive-accent);
|
|
1320
1422
|
outline-offset: -2px;
|
|
1321
1423
|
}
|
|
1322
1424
|
|
|
@@ -1327,6 +1429,17 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1327
1429
|
border-top: 0;
|
|
1328
1430
|
}
|
|
1329
1431
|
|
|
1432
|
+
.hive-help-queen code,
|
|
1433
|
+
.hive-queen-command {
|
|
1434
|
+
padding: 1px 4px;
|
|
1435
|
+
border: 1px solid var(--hive-line);
|
|
1436
|
+
border-radius: var(--hive-radius-sm);
|
|
1437
|
+
background: var(--hive-surface);
|
|
1438
|
+
font-family: var(--hive-mono);
|
|
1439
|
+
font-size: 12px;
|
|
1440
|
+
white-space: nowrap;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1330
1443
|
.hive-settings-form-actions {
|
|
1331
1444
|
display: flex;
|
|
1332
1445
|
align-items: center;
|
|
@@ -1344,8 +1457,8 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1344
1457
|
height: 28px;
|
|
1345
1458
|
min-height: 28px;
|
|
1346
1459
|
padding: 0 14px;
|
|
1347
|
-
border-radius:
|
|
1348
|
-
font-size:
|
|
1460
|
+
border-radius: var(--hive-radius-md);
|
|
1461
|
+
font-size: 12px;
|
|
1349
1462
|
line-height: 1;
|
|
1350
1463
|
}
|
|
1351
1464
|
|
|
@@ -1355,27 +1468,27 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1355
1468
|
}
|
|
1356
1469
|
|
|
1357
1470
|
.hive-settings-primary {
|
|
1358
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
1359
|
-
background: var(--hive-accent
|
|
1360
|
-
color: var(--hive-bg
|
|
1471
|
+
border-color: color-mix(in srgb, var(--hive-accent) 70%, var(--hive-line));
|
|
1472
|
+
background: var(--hive-accent);
|
|
1473
|
+
color: var(--hive-bg);
|
|
1361
1474
|
}
|
|
1362
1475
|
|
|
1363
1476
|
.hive-settings-primary:hover {
|
|
1364
|
-
border-color: var(--hive-accent
|
|
1365
|
-
background: color-mix(in srgb, var(--hive-accent
|
|
1366
|
-
color: var(--hive-bg
|
|
1477
|
+
border-color: var(--hive-accent);
|
|
1478
|
+
background: color-mix(in srgb, var(--hive-accent) 86%, white);
|
|
1479
|
+
color: var(--hive-bg);
|
|
1367
1480
|
}
|
|
1368
1481
|
|
|
1369
1482
|
.hive-settings-secondary {
|
|
1370
|
-
border-color: var(--hive-line
|
|
1483
|
+
border-color: var(--hive-line);
|
|
1371
1484
|
background: var(--hive-surface-strong);
|
|
1372
|
-
color: var(--hive-fg
|
|
1485
|
+
color: var(--hive-fg);
|
|
1373
1486
|
}
|
|
1374
1487
|
|
|
1375
1488
|
.hive-settings-secondary:hover {
|
|
1376
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
1489
|
+
border-color: color-mix(in srgb, var(--hive-accent) 40%, var(--hive-line));
|
|
1377
1490
|
background: var(--hive-surface-hover);
|
|
1378
|
-
color: var(--hive-fg
|
|
1491
|
+
color: var(--hive-fg);
|
|
1379
1492
|
}
|
|
1380
1493
|
|
|
1381
1494
|
.hive-settings-form-actions .hive-btn:disabled {
|
|
@@ -1392,10 +1505,10 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1392
1505
|
max-width: 92vw;
|
|
1393
1506
|
height: auto;
|
|
1394
1507
|
max-height: 80vh;
|
|
1395
|
-
border: 1px solid var(--hive-line
|
|
1396
|
-
border-radius:
|
|
1397
|
-
background: color-mix(in srgb, var(--hive-bg
|
|
1398
|
-
box-shadow:
|
|
1508
|
+
border: 1px solid var(--hive-line);
|
|
1509
|
+
border-radius: var(--hive-radius-lg);
|
|
1510
|
+
background: color-mix(in srgb, var(--hive-bg) 97%, var(--hive-fg) 3%);
|
|
1511
|
+
box-shadow: none;
|
|
1399
1512
|
overflow: hidden;
|
|
1400
1513
|
}
|
|
1401
1514
|
|
|
@@ -1406,7 +1519,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1406
1519
|
overflow-wrap: anywhere;
|
|
1407
1520
|
color: var(--hive-fg-soft);
|
|
1408
1521
|
font-family: var(--hive-mono);
|
|
1409
|
-
font-size:
|
|
1522
|
+
font-size: 12px;
|
|
1410
1523
|
line-height: 1.5;
|
|
1411
1524
|
}
|
|
1412
1525
|
|
|
@@ -1427,35 +1540,56 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1427
1540
|
overflow: auto;
|
|
1428
1541
|
}
|
|
1429
1542
|
|
|
1430
|
-
.hive-card-
|
|
1431
|
-
border: 1px solid var(--hive-line
|
|
1432
|
-
border-radius:
|
|
1543
|
+
.hive-card-run {
|
|
1544
|
+
border: 1px solid var(--hive-line);
|
|
1545
|
+
border-radius: var(--hive-radius-md);
|
|
1433
1546
|
background: var(--hive-surface);
|
|
1434
1547
|
overflow: hidden;
|
|
1435
1548
|
}
|
|
1436
1549
|
|
|
1437
|
-
.hive-card-
|
|
1550
|
+
.hive-card-run-title {
|
|
1438
1551
|
padding: 8px 10px;
|
|
1439
1552
|
color: var(--hive-fg-soft);
|
|
1440
|
-
font-size:
|
|
1553
|
+
font-size: 12px;
|
|
1441
1554
|
font-weight: 650;
|
|
1442
1555
|
letter-spacing: 0.08em;
|
|
1443
1556
|
line-height: 1.5;
|
|
1444
1557
|
text-transform: uppercase;
|
|
1445
|
-
cursor: pointer;
|
|
1446
|
-
user-select: none;
|
|
1447
1558
|
}
|
|
1448
1559
|
|
|
1449
|
-
.hive-card-
|
|
1450
|
-
|
|
1560
|
+
.hive-card-run-meta {
|
|
1561
|
+
padding: 0 10px 8px;
|
|
1562
|
+
overflow-wrap: anywhere;
|
|
1563
|
+
color: var(--hive-fg-soft);
|
|
1564
|
+
font-family: var(--hive-mono);
|
|
1565
|
+
font-size: 12px;
|
|
1566
|
+
line-height: 1.5;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
.hive-card-run-empty {
|
|
1570
|
+
margin: 0 10px 10px;
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
.hive-card-run-output {
|
|
1574
|
+
max-height: 360px; /* 20 lines at 12px/1.5; longer output scrolls inside the pre */
|
|
1451
1575
|
margin: 0;
|
|
1452
1576
|
padding: 10px;
|
|
1453
1577
|
overflow: auto;
|
|
1454
|
-
border-top: 1px solid var(--hive-line
|
|
1578
|
+
border-top: 1px solid var(--hive-line);
|
|
1579
|
+
background: var(--hive-surface);
|
|
1455
1580
|
font-family: var(--hive-mono);
|
|
1456
|
-
font-size:
|
|
1581
|
+
font-size: 12px;
|
|
1457
1582
|
line-height: 1.5;
|
|
1458
1583
|
white-space: pre-wrap;
|
|
1584
|
+
overflow-wrap: anywhere;
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
.hive-card-run-foot {
|
|
1588
|
+
display: flex;
|
|
1589
|
+
justify-content: flex-end;
|
|
1590
|
+
gap: 8px;
|
|
1591
|
+
padding: 8px 10px;
|
|
1592
|
+
border-top: 1px solid var(--hive-line);
|
|
1459
1593
|
}
|
|
1460
1594
|
|
|
1461
1595
|
.hive-card-actions {
|
|
@@ -1486,24 +1620,430 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1486
1620
|
.hive-add-acceptance { min-height: 70px; }
|
|
1487
1621
|
|
|
1488
1622
|
.hive-add-submit {
|
|
1489
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
1490
|
-
background: var(--hive-accent
|
|
1491
|
-
color: var(--hive-bg
|
|
1623
|
+
border-color: color-mix(in srgb, var(--hive-accent) 70%, var(--hive-line));
|
|
1624
|
+
background: var(--hive-accent);
|
|
1625
|
+
color: var(--hive-bg);
|
|
1492
1626
|
}
|
|
1493
1627
|
|
|
1494
1628
|
.hive-add-submit:hover:not(:disabled) {
|
|
1495
|
-
border-color: var(--hive-accent
|
|
1496
|
-
background: color-mix(in srgb, var(--hive-accent
|
|
1497
|
-
color: var(--hive-bg
|
|
1629
|
+
border-color: var(--hive-accent);
|
|
1630
|
+
background: color-mix(in srgb, var(--hive-accent) 86%, white);
|
|
1631
|
+
color: var(--hive-bg);
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
/* Unified type scale: 12 / 14 / 16 / 18 only. */
|
|
1635
|
+
.hive { font-size: 14px; line-height: 1.5; }
|
|
1636
|
+
.hive * { font-size: 14px; line-height: 1.5; }
|
|
1637
|
+
.hive-dialog-title,
|
|
1638
|
+
.hive-help-title { font-size: 16px; line-height: 1.5; }
|
|
1639
|
+
.hive-settings-section-title,
|
|
1640
|
+
.hive-section-label,
|
|
1641
|
+
.hive-plan-preview-head,
|
|
1642
|
+
.hive-events-title,
|
|
1643
|
+
.hive-lane-head { font-size: 14px; font-weight: 700; line-height: 1.5; }
|
|
1644
|
+
.hive-card-title { font-size: 14px; font-weight: 600; line-height: 1.35; }
|
|
1645
|
+
.hive-btn,
|
|
1646
|
+
.hive-settings-form-actions .hive-btn,
|
|
1647
|
+
.hive-settings-tab,
|
|
1648
|
+
.hive-stage-chip,
|
|
1649
|
+
.hive-agent-pill,
|
|
1650
|
+
.hive-events-toggle,
|
|
1651
|
+
.hive-supervisor-resume,
|
|
1652
|
+
.hive-queen-takeover,
|
|
1653
|
+
.hive-queen-dismiss { font-size: 14px; line-height: 1.5; }
|
|
1654
|
+
.hive-input,
|
|
1655
|
+
.hive-textarea,
|
|
1656
|
+
.hive-limits-input { font-size: 14px; line-height: 1.5; }
|
|
1657
|
+
.hive-help-desc,
|
|
1658
|
+
.hive-help-note,
|
|
1659
|
+
.hive-help-hint,
|
|
1660
|
+
.hive-field-label,
|
|
1661
|
+
.hive-field-hint,
|
|
1662
|
+
.hive-limits-description,
|
|
1663
|
+
.hive-limits-hint,
|
|
1664
|
+
.hive-limits-empty,
|
|
1665
|
+
.hive-settings-note,
|
|
1666
|
+
.hive-empty,
|
|
1667
|
+
.hive-filter-empty,
|
|
1668
|
+
.hive-plan-empty,
|
|
1669
|
+
.hive-plan-hint,
|
|
1670
|
+
.hive-plan-meta,
|
|
1671
|
+
.hive-plan-error,
|
|
1672
|
+
.hive-init-description,
|
|
1673
|
+
.hive-queen-text,
|
|
1674
|
+
.hive-agent-empty,
|
|
1675
|
+
.hive-card-meta,
|
|
1676
|
+
.hive-card-reason,
|
|
1677
|
+
.hive-card-scope,
|
|
1678
|
+
.hive-toast-detail,
|
|
1679
|
+
.hive-limits-row.is-head,
|
|
1680
|
+
.hive-queen-badge { font-size: 12px; line-height: 1.5; }
|
|
1681
|
+
.hive-repo,
|
|
1682
|
+
.hive-card-subline,
|
|
1683
|
+
.hive-card-id,
|
|
1684
|
+
.hive-json,
|
|
1685
|
+
.hive-plan-raw,
|
|
1686
|
+
.hive-plan-key,
|
|
1687
|
+
.hive-plan-chip,
|
|
1688
|
+
.hive-help-params,
|
|
1689
|
+
.hive-toast-detail,
|
|
1690
|
+
.hive-oldest-id,
|
|
1691
|
+
.hive-scope,
|
|
1692
|
+
.hive-supervisor-path,
|
|
1693
|
+
.hive-queen-command,
|
|
1694
|
+
.hive-dialog-eyebrow,
|
|
1695
|
+
.hive-limits-cell.is-number { font-size: 12px; line-height: 1.5; }
|
|
1696
|
+
.hive-dialog-close { font-size: 16px; line-height: 1; }
|
|
1697
|
+
.hive-role-remove { font-size: 16px; line-height: 1; }
|
|
1698
|
+
.hive-icon-button { font-size: 0; line-height: 1; }
|
|
1699
|
+
/* DSH design-token bridge. Neutral grayscale fallbacks keep standalone pages readable. */
|
|
1700
|
+
.hive, .hive-portal, .hive-dialog {
|
|
1701
|
+
--hive-bg: var(--dsw-alias-bg-base, #fff);
|
|
1702
|
+
--hive-bg-layer-1: var(--dsw-alias-bg-layer-1, #fff);
|
|
1703
|
+
--hive-bg-layer-2: var(--dsw-alias-bg-layer-2, #fff);
|
|
1704
|
+
--hive-bg-layer-3: var(--dsw-alias-bg-layer-3, #f5f5f5);
|
|
1705
|
+
--hive-line: var(--dsw-alias-border-l1, #d9d9d9);
|
|
1706
|
+
--hive-line-2: var(--dsw-alias-border-l2, #e8e8e8);
|
|
1707
|
+
--hive-fg: var(--dsw-alias-label-primary, #000);
|
|
1708
|
+
--hive-fg-soft: var(--dsw-alias-label-secondary, #4d4d4d);
|
|
1709
|
+
--hive-fg-faint: var(--dsw-alias-label-tertiary, #808080);
|
|
1710
|
+
--hive-accent: var(--dsw-alias-brand-primary, #000);
|
|
1711
|
+
--hive-hover: var(--dsw-alias-interactive-bg-hover, #f2f2f2);
|
|
1712
|
+
--hive-selected: var(--dsw-alias-border-selected, #000);
|
|
1713
|
+
--hive-danger: var(--dsw-alias-state-error-primary, #000);
|
|
1714
|
+
--hive-ok: var(--dsw-alias-state-success-primary, #000);
|
|
1715
|
+
--hive-warn: var(--dsw-alias-state-warn-primary, #000);
|
|
1716
|
+
--hive-info: var(--dsw-alias-brand-primary, #000);
|
|
1717
|
+
--hive-radius-sm: var(--dsw-radius-sm, 4px);
|
|
1718
|
+
--hive-radius-md: var(--dsw-radius-md, 8px);
|
|
1719
|
+
--hive-radius-lg: var(--dsw-radius-lg, 12px);
|
|
1720
|
+
--hive-elevation: var(--dsw-elevation-panel, 0 12px 32px rgba(0, 0, 0, 0.18));
|
|
1721
|
+
--hive-surface: var(--hive-bg-layer-1);
|
|
1722
|
+
--hive-surface-strong: var(--hive-bg-layer-2);
|
|
1723
|
+
--hive-surface-hover: var(--hive-hover);
|
|
1724
|
+
--hive-accent-soft: color-mix(in srgb, var(--hive-accent) 14%, transparent);
|
|
1725
|
+
--hive-label-on-brand: var(--hive-bg);
|
|
1726
|
+
--hive-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
|
|
1727
|
+
}
|
|
1728
|
+
/* Tokenized component treatment. */
|
|
1729
|
+
.hive { background: var(--hive-bg); color: var(--hive-fg); border-color: var(--hive-line); border-radius: var(--hive-radius-lg); }
|
|
1730
|
+
.hive-bar { background: var(--hive-bg-layer-1); border-bottom-color: var(--hive-line); gap: 8px; }
|
|
1731
|
+
.hive-main,
|
|
1732
|
+
.hive-board { background: var(--hive-bg); }
|
|
1733
|
+
.hive-agents,
|
|
1734
|
+
.hive-events { background: var(--hive-bg-layer-1); border-color: var(--hive-line); }
|
|
1735
|
+
.hive-lane { background: var(--hive-bg-layer-1); border-color: var(--hive-line); border-radius: var(--hive-radius-md); }
|
|
1736
|
+
.hive-card { background: var(--hive-bg-layer-1); border: 1px solid var(--hive-line); border-radius: var(--hive-radius-md); box-shadow: none; }
|
|
1737
|
+
.hive-card:hover { background: var(--hive-hover); border-color: var(--hive-line); }
|
|
1738
|
+
.hive-btn { background: transparent; border: 1px solid var(--hive-line); color: var(--hive-fg); border-radius: var(--hive-radius-md); }
|
|
1739
|
+
.hive-btn:hover { background: var(--hive-hover); border-color: var(--hive-line); color: var(--hive-fg); }
|
|
1740
|
+
.hive-btn-ghost { background: transparent; border-color: transparent; color: var(--hive-fg-soft); }
|
|
1741
|
+
.hive-btn-ghost:hover { background: var(--hive-hover); border-color: transparent; color: var(--hive-fg); }
|
|
1742
|
+
.hive-btn-danger { background: transparent; border-color: var(--hive-danger); color: var(--hive-danger); }
|
|
1743
|
+
.hive-btn-danger:hover:not(:disabled) { background: var(--hive-hover); border-color: var(--hive-danger); color: var(--hive-danger); }
|
|
1744
|
+
.hive-settings-primary,
|
|
1745
|
+
.hive-add-submit { background: var(--hive-accent); border-color: var(--hive-accent); color: var(--hive-label-on-brand); }
|
|
1746
|
+
.hive-settings-primary:hover:not(:disabled),
|
|
1747
|
+
.hive-add-submit:hover:not(:disabled) { background: var(--hive-accent); border-color: var(--hive-accent); color: var(--hive-label-on-brand); }
|
|
1748
|
+
.hive-settings-secondary { background: transparent; border-color: var(--hive-line); color: var(--hive-fg); }
|
|
1749
|
+
.hive-settings-secondary:hover { background: var(--hive-hover); border-color: var(--hive-line); color: var(--hive-fg); }
|
|
1750
|
+
.hive-input,
|
|
1751
|
+
.hive-textarea,
|
|
1752
|
+
.hive-limits-input { background: var(--hive-bg-layer-1); border: 1px solid var(--hive-line); color: var(--hive-fg); border-radius: var(--hive-radius-sm); }
|
|
1753
|
+
.hive-input:focus,
|
|
1754
|
+
.hive-textarea:focus,
|
|
1755
|
+
.hive-limits-input:focus { outline: 1px solid var(--hive-selected); outline-offset: 0; }
|
|
1756
|
+
.hive-dialog,
|
|
1757
|
+
.hive-add-dialog,
|
|
1758
|
+
.hive-settings-dialog,
|
|
1759
|
+
.hive-card-dialog { background: var(--hive-bg-layer-2); border: 1px solid var(--hive-line); border-radius: var(--hive-radius-lg); box-shadow: var(--hive-elevation); color: var(--hive-fg); }
|
|
1760
|
+
.hive-toast { background: var(--hive-bg-layer-2); border: 1px solid var(--hive-line); border-radius: var(--hive-radius-lg); box-shadow: none; color: var(--hive-fg); }
|
|
1761
|
+
.hive-drawer { background: var(--hive-bg-layer-2); border-left: 1px solid var(--hive-line); box-shadow: none; }
|
|
1762
|
+
.hive-json,
|
|
1763
|
+
.hive-plan-raw,
|
|
1764
|
+
.hive-plan-item,
|
|
1765
|
+
.hive-scope,
|
|
1766
|
+
.hive-init-card,
|
|
1767
|
+
.hive-limits-error,
|
|
1768
|
+
.hive-settings-note { background: var(--hive-bg-layer-1); border-color: var(--hive-line); border-radius: var(--hive-radius-sm); }
|
|
1769
|
+
.hive-limits-row { border-top-color: var(--hive-line-2); }
|
|
1770
|
+
.hive-limits-row:not(.is-head):hover { background: var(--hive-hover); }
|
|
1771
|
+
.hive-settings-tab[aria-selected="true"] { border-bottom-color: var(--hive-selected); }
|
|
1772
|
+
.hive-lane-head,
|
|
1773
|
+
.hive-dialog-head,
|
|
1774
|
+
.hive-dialog-foot,
|
|
1775
|
+
.hive-drawer-head,
|
|
1776
|
+
.hive-settings-tabs { border-color: var(--hive-line-2); }
|
|
1777
|
+
.hive-freeze-banner { background: transparent; border-bottom-color: var(--hive-warn); color: var(--hive-warn); }
|
|
1778
|
+
.hive-freeze-banner .hive-btn { background: transparent; border-color: var(--hive-line); color: var(--hive-fg); }
|
|
1779
|
+
.hive-queen-hint { background: var(--hive-bg-layer-1); border-color: var(--hive-line); }
|
|
1780
|
+
.hive-supervisor-inline,
|
|
1781
|
+
.hive-stat,
|
|
1782
|
+
.hive-status,
|
|
1783
|
+
.hive-queen-badge {
|
|
1784
|
+
display: inline-flex;
|
|
1785
|
+
align-items: center;
|
|
1786
|
+
gap: 6px;
|
|
1787
|
+
height: 22px;
|
|
1788
|
+
padding: 0 8px;
|
|
1789
|
+
border: 1px solid var(--hive-line);
|
|
1790
|
+
border-radius: 999px;
|
|
1791
|
+
background: transparent;
|
|
1792
|
+
color: var(--hive-fg-soft);
|
|
1793
|
+
font-size: 12px;
|
|
1794
|
+
font-weight: 400;
|
|
1795
|
+
line-height: 1;
|
|
1796
|
+
white-space: nowrap;
|
|
1498
1797
|
}
|
|
1798
|
+
.hive-supervisor-inline { gap: 6px; }
|
|
1799
|
+
.hive-supervisor-inline-label { color: var(--hive-fg-soft); font-weight: 400; }
|
|
1800
|
+
.hive-supervisor-inline-state { display: inline-flex; align-items: center; gap: 6px; color: var(--hive-fg-soft); font-size: 12px; font-weight: 400; }
|
|
1801
|
+
.hive-supervisor-inline-state::before { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--hive-fg-faint); content: ""; }
|
|
1802
|
+
.hive-supervisor-inline-state.is-running::before { background: var(--hive-accent); }
|
|
1803
|
+
.hive-supervisor-inline-state.is-backoff::before { background: var(--hive-warn); }
|
|
1804
|
+
.hive-supervisor-inline-state.is-paused::before { background: var(--hive-fg-faint); }
|
|
1805
|
+
.hive-supervisor-inline-resume { height: auto; min-height: 0; padding: 0; border: 0; background: transparent; color: var(--hive-fg-soft); font-size: 12px; line-height: 1; }
|
|
1806
|
+
.hive-supervisor-inline-resume:hover { background: transparent; color: var(--hive-fg); }
|
|
1807
|
+
.hive-stats { flex-wrap: wrap; gap: 8px; }
|
|
1808
|
+
.hive-stat.is-warn { color: var(--hive-fg-soft); background: transparent; }
|
|
1809
|
+
.hive-stat strong { color: var(--hive-fg-soft); font-weight: 400; }
|
|
1810
|
+
.hive-status { color: var(--hive-fg-soft); }
|
|
1811
|
+
.hive-status::before { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--hive-danger); content: ""; font-size: 0; }
|
|
1812
|
+
.hive-status.is-info::before { background: var(--hive-accent); }
|
|
1813
|
+
.hive-queen-badge { color: var(--hive-fg-soft); }
|
|
1814
|
+
|
|
1815
|
+
.hive-portal {
|
|
1816
|
+
position: fixed;
|
|
1817
|
+
inset: 0;
|
|
1818
|
+
z-index: 2147483600;
|
|
1819
|
+
pointer-events: none;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
.hive-portal > .hive-overlay { pointer-events: auto; }
|
|
1499
1823
|
|
|
1824
|
+
/* Buttons: two explicit tiers. */
|
|
1825
|
+
.hive-btn {
|
|
1826
|
+
display: inline-flex;
|
|
1827
|
+
align-items: center;
|
|
1828
|
+
justify-content: center;
|
|
1829
|
+
gap: 6px;
|
|
1830
|
+
height: 28px;
|
|
1831
|
+
padding: 0 12px;
|
|
1832
|
+
border: 1px solid var(--hive-line-2);
|
|
1833
|
+
border-radius: var(--hive-radius-md);
|
|
1834
|
+
background: transparent;
|
|
1835
|
+
color: var(--hive-fg);
|
|
1836
|
+
font-size: 14px;
|
|
1837
|
+
font-weight: 600;
|
|
1838
|
+
line-height: 1.5;
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
.hive-btn:hover {
|
|
1842
|
+
border-color: var(--hive-line-2);
|
|
1843
|
+
background: var(--hive-hover);
|
|
1844
|
+
color: var(--hive-fg);
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
.hive-btn-ghost {
|
|
1848
|
+
border-color: transparent;
|
|
1849
|
+
background: transparent;
|
|
1850
|
+
color: var(--hive-fg-soft);
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
.hive-btn-ghost:hover {
|
|
1854
|
+
border-color: transparent;
|
|
1855
|
+
background: var(--hive-hover);
|
|
1856
|
+
color: var(--hive-fg);
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
.hive-btn-danger {
|
|
1860
|
+
border-color: var(--hive-danger);
|
|
1861
|
+
background: transparent;
|
|
1862
|
+
color: var(--hive-danger);
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
.hive-btn-danger:hover:not(:disabled) {
|
|
1866
|
+
border-color: var(--hive-danger);
|
|
1867
|
+
background: var(--hive-hover);
|
|
1868
|
+
color: var(--hive-danger);
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
.hive-settings-primary,
|
|
1872
|
+
.hive-add-submit {
|
|
1873
|
+
border-color: var(--hive-accent);
|
|
1874
|
+
background: var(--hive-accent);
|
|
1875
|
+
color: var(--hive-label-on-brand);
|
|
1876
|
+
font-weight: 600;
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
.hive-settings-primary:hover:not(:disabled),
|
|
1880
|
+
.hive-add-submit:hover:not(:disabled) {
|
|
1881
|
+
border-color: var(--hive-accent);
|
|
1882
|
+
background: color-mix(in srgb, var(--hive-accent) 92%, #000);
|
|
1883
|
+
color: var(--hive-label-on-brand);
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
.hive-settings-primary:active:not(:disabled),
|
|
1887
|
+
.hive-add-submit:active:not(:disabled) {
|
|
1888
|
+
border-color: var(--hive-accent);
|
|
1889
|
+
background: color-mix(in srgb, var(--hive-accent) 84%, #000);
|
|
1890
|
+
color: var(--hive-label-on-brand);
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
.hive-settings-primary:focus-visible,
|
|
1894
|
+
.hive-add-submit:focus-visible {
|
|
1895
|
+
outline: 2px solid var(--hive-accent);
|
|
1896
|
+
outline-offset: 2px;
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
.hive-settings-secondary {
|
|
1900
|
+
border-color: var(--hive-line-2);
|
|
1901
|
+
background: transparent;
|
|
1902
|
+
color: var(--hive-fg);
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
.hive-settings-secondary:hover {
|
|
1906
|
+
border-color: var(--hive-line-2);
|
|
1907
|
+
background: var(--hive-hover);
|
|
1908
|
+
color: var(--hive-fg);
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
.hive-icon-button,
|
|
1912
|
+
.hive-dialog-close {
|
|
1913
|
+
height: 28px;
|
|
1914
|
+
padding: 0;
|
|
1915
|
+
border: 0;
|
|
1916
|
+
background: transparent;
|
|
1917
|
+
color: var(--hive-fg-soft);
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
.hive-icon-button:hover,
|
|
1921
|
+
.hive-dialog-close:hover {
|
|
1922
|
+
border: 0;
|
|
1923
|
+
background: var(--hive-hover);
|
|
1924
|
+
color: var(--hive-fg);
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
.hive-role-remove {
|
|
1928
|
+
height: 28px;
|
|
1929
|
+
min-height: 28px;
|
|
1930
|
+
padding: 0;
|
|
1931
|
+
border-color: transparent;
|
|
1932
|
+
background: transparent;
|
|
1933
|
+
color: var(--hive-danger);
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
/* Dialogs are portaled to the document body; keep them above the panel. */
|
|
1937
|
+
.hive-dialog,
|
|
1938
|
+
.hive-add-dialog,
|
|
1939
|
+
.hive-settings-dialog,
|
|
1940
|
+
.hive-card-dialog {
|
|
1941
|
+
border: 1px solid var(--hive-line);
|
|
1942
|
+
background: var(--hive-bg-layer-2);
|
|
1943
|
+
box-shadow: var(--dsw-elevation-panel, 0 12px 32px rgba(0, 0, 0, 0.18));
|
|
1944
|
+
}
|
|
1945
|
+
/* toolbar action rhythm */
|
|
1946
|
+
.hive-actions { gap: 8px; }
|
|
1947
|
+
.hive-actions > .hive-btn { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
|
|
1948
|
+
/* Dialog form containment: portal content must not create horizontal scroll. */
|
|
1949
|
+
.hive-portal,
|
|
1950
|
+
.hive-portal *,
|
|
1951
|
+
.hive-portal *::before,
|
|
1952
|
+
.hive-portal *::after { box-sizing: border-box; }
|
|
1953
|
+
|
|
1954
|
+
.hive-portal .hive-dialog { max-width: 92vw; overflow-x: hidden; }
|
|
1955
|
+
.hive-portal .hive-dialog-head,
|
|
1956
|
+
.hive-portal .hive-dialog-body,
|
|
1957
|
+
.hive-portal .hive-dialog-foot { padding-left: 16px; padding-right: 16px; }
|
|
1958
|
+
.hive-portal .hive-dialog-body { width: auto; min-width: 0; max-width: 100%; }
|
|
1959
|
+
.hive-portal .hive-dialog-body > * { margin-left: 0; margin-right: 0; max-width: 100%; min-width: 0; }
|
|
1960
|
+
.hive-portal .hive-field,
|
|
1961
|
+
.hive-portal .hive-field-row,
|
|
1962
|
+
.hive-portal .hive-settings-section,
|
|
1963
|
+
.hive-portal .hive-settings-tabpanel,
|
|
1964
|
+
.hive-portal .hive-limits-table { width: 100%; max-width: 100%; min-width: 0; margin-left: 0; margin-right: 0; }
|
|
1965
|
+
.hive-portal .hive-field-row > .hive-field { width: auto; flex: 1 1 160px; }
|
|
1966
|
+
.hive-portal .hive-input,
|
|
1967
|
+
.hive-portal .hive-textarea,
|
|
1968
|
+
.hive-portal select { width: 100%; min-width: 0; max-width: 100%; }
|
|
1969
|
+
.hive-portal .hive-limits-row {
|
|
1970
|
+
width: 100%;
|
|
1971
|
+
max-width: 100%;
|
|
1972
|
+
min-width: 0;
|
|
1973
|
+
grid-template-columns: minmax(0, 1fr) 96px 48px 48px 28px;
|
|
1974
|
+
}
|
|
1975
|
+
.hive-portal .hive-limits-cell,
|
|
1976
|
+
.hive-portal .hive-limits-role,
|
|
1977
|
+
.hive-portal .hive-dialog-title,
|
|
1978
|
+
.hive-portal .hive-card-subline,
|
|
1979
|
+
.hive-portal .hive-settings-role-name { min-width: 0; overflow-wrap: anywhere; }
|
|
1980
|
+
.hive-portal .hive-dialog-foot { flex-wrap: wrap; }
|
|
1981
|
+
.hive-portal .hive-dialog-body { overflow-x: hidden; }
|
|
1982
|
+
.hive-portal .hive-settings-tabs { flex-wrap: wrap; }
|
|
1983
|
+
.hive-portal .hive-card-actions,
|
|
1984
|
+
.hive-portal .hive-settings-form-actions { max-width: 100%; }
|
|
1985
|
+
/* Native <dialog>: top layer, browser-managed backdrop and focus trap. */
|
|
1986
|
+
.hive-dialog,
|
|
1987
|
+
.hive-dialog *,
|
|
1988
|
+
.hive-dialog *::before,
|
|
1989
|
+
.hive-dialog *::after { box-sizing: border-box; }
|
|
1990
|
+
|
|
1991
|
+
dialog.hive-dialog {
|
|
1992
|
+
position: fixed;
|
|
1993
|
+
inset: 0;
|
|
1994
|
+
margin: auto;
|
|
1995
|
+
padding: 0;
|
|
1996
|
+
width: min(560px, 100%);
|
|
1997
|
+
max-width: 92vw;
|
|
1998
|
+
max-height: 80vh;
|
|
1999
|
+
overflow: hidden;
|
|
2000
|
+
border: 1px solid var(--hive-line);
|
|
2001
|
+
border-radius: var(--hive-radius-lg);
|
|
2002
|
+
background: var(--hive-bg-layer-2);
|
|
2003
|
+
color: var(--hive-fg);
|
|
2004
|
+
box-shadow: var(--dsw-elevation-panel, 0 12px 32px rgba(0, 0, 0, 0.18));
|
|
2005
|
+
color-scheme: light dark;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
dialog.hive-card-dialog { width: min(720px, 92vw); }
|
|
2009
|
+
|
|
2010
|
+
dialog.hive-dialog::backdrop {
|
|
2011
|
+
background: var(--dsw-alias-bg-mask-1, rgba(0, 0, 0, 0.24));
|
|
2012
|
+
backdrop-filter: var(--dsw-mask-blur, none);
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
dialog.hive-dialog .hive-dialog-head,
|
|
2016
|
+
dialog.hive-dialog .hive-dialog-body,
|
|
2017
|
+
dialog.hive-dialog .hive-dialog-foot { padding-left: 16px; padding-right: 16px; }
|
|
2018
|
+
dialog.hive-dialog .hive-dialog-body { width: auto; min-width: 0; max-width: 100%; overflow-x: hidden; }
|
|
2019
|
+
dialog.hive-dialog .hive-dialog-body > * { margin-left: 0; margin-right: 0; max-width: 100%; min-width: 0; }
|
|
2020
|
+
dialog.hive-dialog .hive-field,
|
|
2021
|
+
dialog.hive-dialog .hive-field-row,
|
|
2022
|
+
dialog.hive-dialog .hive-settings-section,
|
|
2023
|
+
dialog.hive-dialog .hive-settings-tabpanel,
|
|
2024
|
+
dialog.hive-dialog .hive-limits-table { width: 100%; max-width: 100%; min-width: 0; margin-left: 0; margin-right: 0; }
|
|
2025
|
+
dialog.hive-dialog .hive-field-row > .hive-field { width: auto; flex: 1 1 160px; }
|
|
2026
|
+
dialog.hive-dialog .hive-input,
|
|
2027
|
+
dialog.hive-dialog .hive-textarea,
|
|
2028
|
+
dialog.hive-dialog select { width: 100%; min-width: 0; max-width: 100%; }
|
|
2029
|
+
dialog.hive-dialog .hive-limits-row {
|
|
2030
|
+
width: 100%;
|
|
2031
|
+
max-width: 100%;
|
|
2032
|
+
min-width: 0;
|
|
2033
|
+
grid-template-columns: minmax(0, 1fr) 96px 48px 48px 28px;
|
|
2034
|
+
}
|
|
2035
|
+
dialog.hive-dialog .hive-limits-cell,
|
|
2036
|
+
dialog.hive-dialog .hive-limits-role,
|
|
2037
|
+
dialog.hive-dialog .hive-dialog-title,
|
|
2038
|
+
dialog.hive-dialog .hive-card-subline,
|
|
2039
|
+
dialog.hive-dialog .hive-settings-role-name { min-width: 0; overflow-wrap: anywhere; }
|
|
2040
|
+
dialog.hive-dialog .hive-dialog-foot { flex-wrap: wrap; }
|
|
1500
2041
|
`;
|
|
1501
2042
|
|
|
1502
2043
|
const LANE_LABEL_KEYS = Object.freeze({
|
|
1503
2044
|
pending: "lane.pending",
|
|
1504
2045
|
claimed: "lane.claimed",
|
|
1505
2046
|
done: "lane.done",
|
|
1506
|
-
blocked: "lane.blocked",
|
|
1507
2047
|
failed: "lane.failed",
|
|
1508
2048
|
});
|
|
1509
2049
|
|
|
@@ -1526,18 +2066,16 @@ const messages = Object.freeze({
|
|
|
1526
2066
|
"action.retry": "retry",
|
|
1527
2067
|
"action.unfreeze": "Resume",
|
|
1528
2068
|
"pane.agents": "agents",
|
|
1529
|
-
"pane.board": "board",
|
|
2069
|
+
"pane.board": "Task board",
|
|
1530
2070
|
"pane.events": "events",
|
|
1531
|
-
"board.hint": "5 lanes",
|
|
1532
2071
|
"board.filtersAria": "Filter by state",
|
|
1533
2072
|
"board.all": "all",
|
|
1534
2073
|
"board.showAll": "Show all tasks",
|
|
1535
2074
|
"board.filterChip": "Show {lane} tasks ({count})",
|
|
1536
2075
|
"board.emptyFilter": "No tasks in this state.",
|
|
1537
2076
|
"lane.pending": "pending",
|
|
1538
|
-
"lane.claimed": "
|
|
2077
|
+
"lane.claimed": "In progress",
|
|
1539
2078
|
"lane.done": "done",
|
|
1540
|
-
"lane.blocked": "blocked",
|
|
1541
2079
|
"lane.failed": "failed",
|
|
1542
2080
|
"mode.free": "free",
|
|
1543
2081
|
"mode.freeze": "freeze",
|
|
@@ -1576,6 +2114,10 @@ const messages = Object.freeze({
|
|
|
1576
2114
|
"drawer.readOnly": "Read-only: writable=false.",
|
|
1577
2115
|
"drawer.removeClaimed": "A claimed task must be released or reopened before it can be deleted.",
|
|
1578
2116
|
"drawer.rawJson": "raw json",
|
|
2117
|
+
"drawer.lastRun": "Last run",
|
|
2118
|
+
"drawer.noRuns": "No runs yet",
|
|
2119
|
+
"drawer.copyOutput": "Copy output",
|
|
2120
|
+
"drawer.openChat": "Open agent chat",
|
|
1579
2121
|
"events.empty": "No events yet.",
|
|
1580
2122
|
"events.showAll": "Show all events",
|
|
1581
2123
|
"events.collapse": "Collapse events",
|
|
@@ -1596,8 +2138,8 @@ const messages = Object.freeze({
|
|
|
1596
2138
|
"limits.description": "Max agents working at the same time, per role; 0 pauses the role",
|
|
1597
2139
|
"limits.role": "Role",
|
|
1598
2140
|
"limits.limit": "Concurrency limit",
|
|
1599
|
-
"limits.inFlight": "
|
|
1600
|
-
"limits.queued": "
|
|
2141
|
+
"limits.inFlight": "Running",
|
|
2142
|
+
"limits.queued": "Waiting",
|
|
1601
2143
|
"limits.defaultHint": "0-999, default 5",
|
|
1602
2144
|
"limits.limitAria": "Concurrency limit for {role}",
|
|
1603
2145
|
"limits.save": "Save",
|
|
@@ -1609,7 +2151,10 @@ const messages = Object.freeze({
|
|
|
1609
2151
|
"limits.none": "No role data for this repository.",
|
|
1610
2152
|
"limits.close": "Close",
|
|
1611
2153
|
"limits.closeAria": "Close agent concurrency settings",
|
|
2154
|
+
"limits.removeRoleAria": "Delete role {name}",
|
|
2155
|
+
"limits.removeRoleConfirm": "Delete role {name}? Tasks already created will not be deleted.",
|
|
1612
2156
|
"settings.openAria": "Open settings for this repository",
|
|
2157
|
+
"dialog.closeAria": "Close",
|
|
1613
2158
|
"settings.title": "Settings",
|
|
1614
2159
|
"settings.tabLimits": "Concurrency limit",
|
|
1615
2160
|
"settings.tabRole": "Add role",
|
|
@@ -1649,7 +2194,7 @@ const messages = Object.freeze({
|
|
|
1649
2194
|
"add.titleAria": "New task title",
|
|
1650
2195
|
"add.role": "Role",
|
|
1651
2196
|
"add.roleAria": "Role for the new task",
|
|
1652
|
-
"add.scope": "
|
|
2197
|
+
"add.scope": "File scope",
|
|
1653
2198
|
"add.scopeAria": "File scope for the new task",
|
|
1654
2199
|
"add.after": "After task ids (comma separated, optional)",
|
|
1655
2200
|
"add.afterAria": "Tasks that must finish first",
|
|
@@ -1688,9 +2233,9 @@ const messages = Object.freeze({
|
|
|
1688
2233
|
"init.queen": "This session's input now routes to the Queen (it splits tasks, it does not do the work).",
|
|
1689
2234
|
"init.queenOutput": "Initialisation output",
|
|
1690
2235
|
"queen.dismiss": "Dismiss",
|
|
1691
|
-
"queen.dismissAria": "
|
|
2236
|
+
"queen.dismissAria": "Close this notice; it does not change Queen mode",
|
|
1692
2237
|
"help.queen": "Queen mode",
|
|
1693
|
-
"help.queenDesc": "Type /queen off to
|
|
2238
|
+
"help.queenDesc": "Type /queen off in the chat box to leave Queen mode; this session then returns to normal coding mode.",
|
|
1694
2239
|
"queen.status.active": "Queen active",
|
|
1695
2240
|
"queen.status.inactive": "Queen not active",
|
|
1696
2241
|
"queen.source.auto": "auto",
|
|
@@ -1708,7 +2253,7 @@ const messages = Object.freeze({
|
|
|
1708
2253
|
"help.action.claim": "Claim: lease a pending task for an agent.",
|
|
1709
2254
|
"help.action.done": "Done: mark a claimed task complete, optionally with a commit sha.",
|
|
1710
2255
|
"help.action.fail": "Fail: mark a claimed task failed and record the reason.",
|
|
1711
|
-
"help.action.retry": "Retry: put a failed
|
|
2256
|
+
"help.action.retry": "Retry: put a failed task back in the queue.",
|
|
1712
2257
|
"help.action.remove": "Delete this task card permanently. A claimed task has to be released or reopened first.",
|
|
1713
2258
|
"plan.dialogTitle": "Set the Queen a goal",
|
|
1714
2259
|
"plan.dialogAria": "Plan tasks from a goal",
|
|
@@ -1760,18 +2305,16 @@ const messages = Object.freeze({
|
|
|
1760
2305
|
"action.retry": "重试",
|
|
1761
2306
|
"action.unfreeze": "恢复",
|
|
1762
2307
|
"pane.agents": "智能体",
|
|
1763
|
-
"pane.board": "
|
|
2308
|
+
"pane.board": "任务看板",
|
|
1764
2309
|
"pane.events": "事件",
|
|
1765
|
-
"board.hint": "5 条泳道",
|
|
1766
2310
|
"board.filtersAria": "按状态筛选",
|
|
1767
2311
|
"board.all": "全部",
|
|
1768
2312
|
"board.showAll": "显示全部任务",
|
|
1769
2313
|
"board.filterChip": "只看{lane}任务({count})",
|
|
1770
2314
|
"board.emptyFilter": "该状态没有任务。",
|
|
1771
2315
|
"lane.pending": "待办",
|
|
1772
|
-
"lane.claimed": "
|
|
2316
|
+
"lane.claimed": "进行中",
|
|
1773
2317
|
"lane.done": "已完成",
|
|
1774
|
-
"lane.blocked": "受阻",
|
|
1775
2318
|
"lane.failed": "失败",
|
|
1776
2319
|
"mode.free": "正常",
|
|
1777
2320
|
"mode.freeze": "冻结",
|
|
@@ -1810,6 +2353,10 @@ const messages = Object.freeze({
|
|
|
1810
2353
|
"drawer.readOnly": "只读:writable=false。",
|
|
1811
2354
|
"drawer.removeClaimed": "已认领的任务必须先释放或重开才能删除。",
|
|
1812
2355
|
"drawer.rawJson": "原始 JSON",
|
|
2356
|
+
"drawer.lastRun": "最近一次执行",
|
|
2357
|
+
"drawer.noRuns": "还没有执行记录",
|
|
2358
|
+
"drawer.copyOutput": "复制输出",
|
|
2359
|
+
"drawer.openChat": "打开智能体对话",
|
|
1813
2360
|
"events.empty": "暂无事件。",
|
|
1814
2361
|
"events.showAll": "展开全部事件",
|
|
1815
2362
|
"events.collapse": "收起事件",
|
|
@@ -1830,8 +2377,8 @@ const messages = Object.freeze({
|
|
|
1830
2377
|
"limits.description": "同时干活的智能体数量上限,按角色分别设置;0 表示暂停该角色",
|
|
1831
2378
|
"limits.role": "角色",
|
|
1832
2379
|
"limits.limit": "并发上限",
|
|
1833
|
-
"limits.inFlight": "
|
|
1834
|
-
"limits.queued": "
|
|
2380
|
+
"limits.inFlight": "运行",
|
|
2381
|
+
"limits.queued": "等待",
|
|
1835
2382
|
"limits.defaultHint": "0–999,默认 5",
|
|
1836
2383
|
"limits.limitAria": "{role} 的并发上限",
|
|
1837
2384
|
"limits.save": "保存",
|
|
@@ -1843,7 +2390,10 @@ const messages = Object.freeze({
|
|
|
1843
2390
|
"limits.none": "这个仓库没有角色数据。",
|
|
1844
2391
|
"limits.close": "关闭",
|
|
1845
2392
|
"limits.closeAria": "关闭智能体的并发上限设置",
|
|
2393
|
+
"limits.removeRoleAria": "删除角色 {name}",
|
|
2394
|
+
"limits.removeRoleConfirm": "确定删除角色 {name}?已创建的任务不会删除。",
|
|
1846
2395
|
"settings.openAria": "打开这个仓库的设置",
|
|
2396
|
+
"dialog.closeAria": "关闭",
|
|
1847
2397
|
"settings.title": "设置",
|
|
1848
2398
|
"settings.tabLimits": "并发上限",
|
|
1849
2399
|
"settings.tabRole": "添加角色",
|
|
@@ -1883,7 +2433,7 @@ const messages = Object.freeze({
|
|
|
1883
2433
|
"add.titleAria": "新任务标题",
|
|
1884
2434
|
"add.role": "角色",
|
|
1885
2435
|
"add.roleAria": "新任务角色",
|
|
1886
|
-
"add.scope": "
|
|
2436
|
+
"add.scope": "文件范围",
|
|
1887
2437
|
"add.scopeAria": "新任务的文件范围",
|
|
1888
2438
|
"add.after": "依赖任务(任务 ID,逗号分隔,可选)",
|
|
1889
2439
|
"add.afterAria": "需要先完成的任务",
|
|
@@ -1922,9 +2472,9 @@ const messages = Object.freeze({
|
|
|
1922
2472
|
"init.queen": "本会话输入框已接入女王模式(女王只拆解任务,不亲自干活)。",
|
|
1923
2473
|
"init.queenOutput": "初始化输出",
|
|
1924
2474
|
"queen.dismiss": "关闭提示",
|
|
1925
|
-
"queen.dismissAria": "
|
|
2475
|
+
"queen.dismissAria": "关闭提示,不影响女王状态",
|
|
1926
2476
|
"help.queen": "女王模式",
|
|
1927
|
-
"help.queenDesc": "
|
|
2477
|
+
"help.queenDesc": "在对话框输入 /queen off 退出女王模式,退出后本会话恢复普通编码模式。",
|
|
1928
2478
|
"queen.status.active": "女王已接管",
|
|
1929
2479
|
"queen.status.inactive": "女王未接管",
|
|
1930
2480
|
"queen.source.auto": "自动",
|
|
@@ -2016,6 +2566,31 @@ function normalizeScope(scope) {
|
|
|
2016
2566
|
return [];
|
|
2017
2567
|
}
|
|
2018
2568
|
|
|
2569
|
+
/**
|
|
2570
|
+
* Normalize `lastRun` (written by hive-runner to .hive/runs/<cardId>.json).
|
|
2571
|
+
* A missing record is null; a malformed one is dropped instead of leaking
|
|
2572
|
+
* half-parsed values into the drawer.
|
|
2573
|
+
* @param {unknown} value
|
|
2574
|
+
* @returns {null|{agent:string,startedAt:string,endedAt:string,status:string,commit:string,exitCode:number|null,sessionId:string,output:string}}
|
|
2575
|
+
*/
|
|
2576
|
+
function normalizeLastRun(value) {
|
|
2577
|
+
if (!isRecord(value)) return null;
|
|
2578
|
+
const status = asString(value.status);
|
|
2579
|
+
if (status !== "done" && status !== "failed" && status !== "running") return null;
|
|
2580
|
+
return {
|
|
2581
|
+
agent: asString(value.agent),
|
|
2582
|
+
startedAt: asString(value.startedAt),
|
|
2583
|
+
endedAt: asString(value.endedAt),
|
|
2584
|
+
status,
|
|
2585
|
+
commit: asString(value.commit),
|
|
2586
|
+
exitCode: typeof value.exitCode === "number" && Number.isFinite(value.exitCode) ? value.exitCode : null,
|
|
2587
|
+
// Hive-runner records the worker activation's Session id; a host that can
|
|
2588
|
+
// navigate can open that conversation, an older record simply has none.
|
|
2589
|
+
sessionId: asString(value.sessionId),
|
|
2590
|
+
output: asString(value.output),
|
|
2591
|
+
};
|
|
2592
|
+
}
|
|
2593
|
+
|
|
2019
2594
|
function normalizeCard(task) {
|
|
2020
2595
|
return {
|
|
2021
2596
|
id: asString(task.id),
|
|
@@ -2024,6 +2599,7 @@ function normalizeCard(task) {
|
|
|
2024
2599
|
owner: asString(task.owner),
|
|
2025
2600
|
scope: normalizeScope(task.scope),
|
|
2026
2601
|
reason: asString(task.reason),
|
|
2602
|
+
lastRun: normalizeLastRun(task.lastRun),
|
|
2027
2603
|
};
|
|
2028
2604
|
}
|
|
2029
2605
|
|
|
@@ -2475,6 +3051,17 @@ function makeHiveIcon(doc, kind) {
|
|
|
2475
3051
|
return svg;
|
|
2476
3052
|
}
|
|
2477
3053
|
|
|
3054
|
+
function appendCodeText(node, text, token) {
|
|
3055
|
+
const index = String(text).indexOf(token);
|
|
3056
|
+
if (index < 0) {
|
|
3057
|
+
node.appendChild(element(node.ownerDocument || node, "span", null, text));
|
|
3058
|
+
return;
|
|
3059
|
+
}
|
|
3060
|
+
node.appendChild(element(node.ownerDocument || node, "span", null, String(text).slice(0, index)));
|
|
3061
|
+
node.appendChild(element(node.ownerDocument || node, "code", "hive-queen-command", token));
|
|
3062
|
+
node.appendChild(element(node.ownerDocument || node, "span", null, String(text).slice(index + token.length)));
|
|
3063
|
+
}
|
|
3064
|
+
|
|
2478
3065
|
function setHidden(node, hidden) {
|
|
2479
3066
|
if (!node) return;
|
|
2480
3067
|
if (hidden) {
|
|
@@ -2563,6 +3150,80 @@ function formatTime(value) {
|
|
|
2563
3150
|
}
|
|
2564
3151
|
}
|
|
2565
3152
|
|
|
3153
|
+
/** Local `YYYY-MM-DD HH:MM:SS` for a run timestamp; the raw value on failure. */
|
|
3154
|
+
function formatRunStamp(value) {
|
|
3155
|
+
const date = parseDate(value);
|
|
3156
|
+
if (!date) return asString(value);
|
|
3157
|
+
const pad = (number) => String(number).padStart(2, "0");
|
|
3158
|
+
try {
|
|
3159
|
+
return (
|
|
3160
|
+
date.getFullYear() +
|
|
3161
|
+
"-" +
|
|
3162
|
+
pad(date.getMonth() + 1) +
|
|
3163
|
+
"-" +
|
|
3164
|
+
pad(date.getDate()) +
|
|
3165
|
+
" " +
|
|
3166
|
+
pad(date.getHours()) +
|
|
3167
|
+
":" +
|
|
3168
|
+
pad(date.getMinutes()) +
|
|
3169
|
+
":" +
|
|
3170
|
+
pad(date.getSeconds())
|
|
3171
|
+
);
|
|
3172
|
+
} catch {
|
|
3173
|
+
return asString(value);
|
|
3174
|
+
}
|
|
3175
|
+
}
|
|
3176
|
+
|
|
3177
|
+
/** Short display form of a commit sha; anything else is returned unchanged. */
|
|
3178
|
+
function shortCommit(value) {
|
|
3179
|
+
const sha = asString(value).trim();
|
|
3180
|
+
return /^[0-9a-f]{7,64}$/i.test(sha) ? sha.slice(0, 7) : sha;
|
|
3181
|
+
}
|
|
3182
|
+
|
|
3183
|
+
/**
|
|
3184
|
+
* Copy text to the clipboard. Modern async clipboard first, then the legacy
|
|
3185
|
+
* textarea + execCommand path; a refused permission is silent (no new copy).
|
|
3186
|
+
* @param {Document} doc
|
|
3187
|
+
* @param {string} text
|
|
3188
|
+
* @returns {boolean}
|
|
3189
|
+
*/
|
|
3190
|
+
function copyToClipboard(doc, text) {
|
|
3191
|
+
const value = asString(text);
|
|
3192
|
+
if (value === "") return false;
|
|
3193
|
+
const view = (doc && doc.defaultView) || globalThis;
|
|
3194
|
+
const clipboard = view && view.navigator ? view.navigator.clipboard : null;
|
|
3195
|
+
if (clipboard && typeof clipboard.writeText === "function") {
|
|
3196
|
+
try {
|
|
3197
|
+
const pending = clipboard.writeText(value);
|
|
3198
|
+
if (pending && typeof pending.catch === "function") pending.catch(() => {});
|
|
3199
|
+
return true;
|
|
3200
|
+
} catch {
|
|
3201
|
+
// Fall through to the legacy path.
|
|
3202
|
+
}
|
|
3203
|
+
}
|
|
3204
|
+
const body = doc && doc.body;
|
|
3205
|
+
if (body && typeof body.appendChild === "function" && typeof doc.execCommand === "function") {
|
|
3206
|
+
const area = doc.createElement("textarea");
|
|
3207
|
+
area.value = value;
|
|
3208
|
+
setAttr(area, "readonly", "");
|
|
3209
|
+
setStyle(area, "position", "absolute");
|
|
3210
|
+
setStyle(area, "left", "-9999px");
|
|
3211
|
+
try {
|
|
3212
|
+
body.appendChild(area);
|
|
3213
|
+
if (typeof area.select === "function") area.select();
|
|
3214
|
+
doc.execCommand("copy");
|
|
3215
|
+
return true;
|
|
3216
|
+
} catch {
|
|
3217
|
+
return false;
|
|
3218
|
+
} finally {
|
|
3219
|
+
if (area.parentNode && typeof area.parentNode.removeChild === "function") {
|
|
3220
|
+
area.parentNode.removeChild(area);
|
|
3221
|
+
}
|
|
3222
|
+
}
|
|
3223
|
+
}
|
|
3224
|
+
return false;
|
|
3225
|
+
}
|
|
3226
|
+
|
|
2566
3227
|
function safeClassToken(value) {
|
|
2567
3228
|
const token = asString(value).toLowerCase().replace(/[^a-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
2568
3229
|
return token || "unknown";
|
|
@@ -2677,7 +3338,8 @@ function extractPlan(payload) {
|
|
|
2677
3338
|
* fetch?: typeof fetch,
|
|
2678
3339
|
* confirm?: (message: string) => boolean,
|
|
2679
3340
|
* t?: (key: string) => string,
|
|
2680
|
-
* subscribeLocale?: (listener: () => void) => (() => void)
|
|
3341
|
+
* subscribeLocale?: (listener: () => void) => (() => void),
|
|
3342
|
+
* openSession?: (sessionId: string) => void
|
|
2681
3343
|
* }} [options]
|
|
2682
3344
|
* @returns {{
|
|
2683
3345
|
* setSnapshot: (snapshot: object) => object|null,
|
|
@@ -2741,6 +3403,11 @@ function mount(root, options = {}) {
|
|
|
2741
3403
|
? globalThis.confirm.bind(globalThis)
|
|
2742
3404
|
: null;
|
|
2743
3405
|
|
|
3406
|
+
// Hosts that can navigate open a worker's Session for the card drawer. The
|
|
3407
|
+
// callback stays absent on the standalone page and on hosts without the
|
|
3408
|
+
// client navigation API, so the "Open agent chat" button is never rendered.
|
|
3409
|
+
const openSession = typeof opts.openSession === "function" ? opts.openSession : null;
|
|
3410
|
+
|
|
2744
3411
|
const schedule =
|
|
2745
3412
|
typeof view.setInterval === "function" ? view.setInterval.bind(view) : globalThis.setInterval.bind(globalThis);
|
|
2746
3413
|
const unschedule =
|
|
@@ -2817,13 +3484,22 @@ function mount(root, options = {}) {
|
|
|
2817
3484
|
let limitsFocusables = [];
|
|
2818
3485
|
let settingsActiveTab = "limits";
|
|
2819
3486
|
|
|
3487
|
+
function dialogCloseButton(onClose) {
|
|
3488
|
+
const button = element(doc, "button", "hive-dialog-close", "×");
|
|
3489
|
+
setAttr(button, "type", "button");
|
|
3490
|
+
const label = translate("dialog.closeAria");
|
|
3491
|
+
setAttr(button, "title", label);
|
|
3492
|
+
setAttr(button, "aria-label", label);
|
|
3493
|
+
button.addEventListener("click", onClose);
|
|
3494
|
+
return button;
|
|
3495
|
+
}
|
|
3496
|
+
|
|
2820
3497
|
// --- shell ---------------------------------------------------------------
|
|
2821
3498
|
|
|
2822
3499
|
const frame = element(doc, "div", "hive");
|
|
2823
3500
|
const bar = element(doc, "header", "hive-bar");
|
|
2824
3501
|
|
|
2825
3502
|
const ident = element(doc, "div", "hive-ident");
|
|
2826
|
-
ident.appendChild(element(doc, "span", "hive-brand", "hive"));
|
|
2827
3503
|
const repoNode = element(doc, "span", "hive-repo", "—");
|
|
2828
3504
|
ident.appendChild(repoNode);
|
|
2829
3505
|
bar.appendChild(ident);
|
|
@@ -2967,8 +3643,6 @@ function mount(root, options = {}) {
|
|
|
2967
3643
|
const boardHead = element(doc, "div", "hive-pane-head");
|
|
2968
3644
|
const boardLabel = element(doc, "span", null, "");
|
|
2969
3645
|
boardHead.appendChild(boardLabel);
|
|
2970
|
-
const boardHint = element(doc, "span", "hive-hint", "");
|
|
2971
|
-
boardHead.appendChild(boardHint);
|
|
2972
3646
|
const boardCount = element(doc, "span", "hive-count", "0");
|
|
2973
3647
|
boardHead.appendChild(boardCount);
|
|
2974
3648
|
const stage = element(doc, "div", "hive-stage");
|
|
@@ -3013,6 +3687,61 @@ function mount(root, options = {}) {
|
|
|
3013
3687
|
root.textContent = "";
|
|
3014
3688
|
root.appendChild(frame);
|
|
3015
3689
|
|
|
3690
|
+
let portalHost = null;
|
|
3691
|
+
|
|
3692
|
+
function showModalDialog(dialog) {
|
|
3693
|
+
const parent = doc.body && typeof doc.body.appendChild === "function" ? doc.body : frame;
|
|
3694
|
+
parent.appendChild(dialog);
|
|
3695
|
+
if (typeof dialog.showModal === "function") {
|
|
3696
|
+
try {
|
|
3697
|
+
dialog.showModal();
|
|
3698
|
+
} catch {
|
|
3699
|
+
setAttr(dialog, "open", "");
|
|
3700
|
+
}
|
|
3701
|
+
} else {
|
|
3702
|
+
setAttr(dialog, "open", "");
|
|
3703
|
+
}
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3706
|
+
function closeModalDialog(dialog) {
|
|
3707
|
+
if (!dialog) return;
|
|
3708
|
+
if (typeof dialog.close === "function") {
|
|
3709
|
+
try {
|
|
3710
|
+
dialog.close();
|
|
3711
|
+
} catch {
|
|
3712
|
+
// Native close can throw for a detached dialog; removal below still wins.
|
|
3713
|
+
}
|
|
3714
|
+
}
|
|
3715
|
+
if (dialog.parentNode) dialog.parentNode.removeChild(dialog);
|
|
3716
|
+
}
|
|
3717
|
+
|
|
3718
|
+
function bindDialogDismiss(dialog, close) {
|
|
3719
|
+
dialog.addEventListener("click", (event) => {
|
|
3720
|
+
if (!event || !event.target || event.target === dialog) close();
|
|
3721
|
+
});
|
|
3722
|
+
dialog.addEventListener("cancel", (event) => {
|
|
3723
|
+
if (event && typeof event.preventDefault === "function") event.preventDefault();
|
|
3724
|
+
close();
|
|
3725
|
+
});
|
|
3726
|
+
}
|
|
3727
|
+
|
|
3728
|
+
function ensurePortalHost() {
|
|
3729
|
+
const parent =
|
|
3730
|
+
doc.body && typeof doc.body.appendChild === "function"
|
|
3731
|
+
? doc.body
|
|
3732
|
+
: frame;
|
|
3733
|
+
if (!portalHost || portalHost.parentNode !== parent) {
|
|
3734
|
+
portalHost = element(doc, "div", "hive-portal");
|
|
3735
|
+
parent.appendChild(portalHost);
|
|
3736
|
+
}
|
|
3737
|
+
return portalHost;
|
|
3738
|
+
}
|
|
3739
|
+
|
|
3740
|
+
function appendPortalOverlay(overlay) {
|
|
3741
|
+
ensurePortalHost().appendChild(overlay);
|
|
3742
|
+
}
|
|
3743
|
+
|
|
3744
|
+
|
|
3016
3745
|
// --- helpers -------------------------------------------------------------
|
|
3017
3746
|
|
|
3018
3747
|
function reportError(error) {
|
|
@@ -3046,7 +3775,6 @@ function mount(root, options = {}) {
|
|
|
3046
3775
|
setAttr(stageChips, "aria-label", translate("board.filtersAria"));
|
|
3047
3776
|
agentsLabel.textContent = translate("pane.agents");
|
|
3048
3777
|
boardLabel.textContent = translate("pane.board");
|
|
3049
|
-
boardHint.textContent = translate("board.hint");
|
|
3050
3778
|
eventsLabel.textContent = translate("pane.events");
|
|
3051
3779
|
const eventsToggleLabel = eventsExpanded ? translate("events.collapse") : translate("events.showAll");
|
|
3052
3780
|
setAttr(eventsToggle, "title", eventsToggleLabel);
|
|
@@ -3073,14 +3801,6 @@ function mount(root, options = {}) {
|
|
|
3073
3801
|
return element(doc, "div", "hive-empty", text);
|
|
3074
3802
|
}
|
|
3075
3803
|
|
|
3076
|
-
function findRawTask(card) {
|
|
3077
|
-
const tasks = lastSnapshot && Array.isArray(lastSnapshot.tasks) ? lastSnapshot.tasks : [];
|
|
3078
|
-
for (const task of tasks) {
|
|
3079
|
-
if (isRecord(task) && asString(task.id) === card.id) return task;
|
|
3080
|
-
}
|
|
3081
|
-
return null;
|
|
3082
|
-
}
|
|
3083
|
-
|
|
3084
3804
|
function findRawAgent(agent) {
|
|
3085
3805
|
const board = lastSnapshot && Array.isArray(lastSnapshot.board) ? lastSnapshot.board : [];
|
|
3086
3806
|
for (const rawEntry of board) {
|
|
@@ -3384,7 +4104,7 @@ function mount(root, options = {}) {
|
|
|
3384
4104
|
}
|
|
3385
4105
|
|
|
3386
4106
|
function closePlanDialog(restoreFocus = true) {
|
|
3387
|
-
|
|
4107
|
+
closeModalDialog(planOverlay);
|
|
3388
4108
|
planOverlay = null;
|
|
3389
4109
|
planDialogNode = null;
|
|
3390
4110
|
planState = null;
|
|
@@ -3402,12 +4122,8 @@ function mount(root, options = {}) {
|
|
|
3402
4122
|
closeDrawer();
|
|
3403
4123
|
planTriggerButton = trigger || planTriggerButton || null;
|
|
3404
4124
|
|
|
3405
|
-
const
|
|
3406
|
-
|
|
3407
|
-
if (!event || !event.target || event.target === overlay) closePlanDialog();
|
|
3408
|
-
});
|
|
3409
|
-
|
|
3410
|
-
const dialog = element(doc, "div", "hive-dialog");
|
|
4125
|
+
const dialog = element(doc, "dialog", "hive-dialog");
|
|
4126
|
+
bindDialogDismiss(dialog, () => closePlanDialog());
|
|
3411
4127
|
setAttr(dialog, "role", "dialog");
|
|
3412
4128
|
setAttr(dialog, "aria-modal", "true");
|
|
3413
4129
|
setAttr(dialog, "aria-label", translate("plan.dialogAria"));
|
|
@@ -3417,11 +4133,7 @@ function mount(root, options = {}) {
|
|
|
3417
4133
|
titleBox.appendChild(element(doc, "h2", "hive-dialog-title", translate("plan.dialogTitle")));
|
|
3418
4134
|
head.appendChild(titleBox);
|
|
3419
4135
|
|
|
3420
|
-
const closeButton =
|
|
3421
|
-
setAttr(closeButton, "type", "button");
|
|
3422
|
-
setAttr(closeButton, "title", translate("plan.closeAria"));
|
|
3423
|
-
setAttr(closeButton, "aria-label", translate("plan.closeAria"));
|
|
3424
|
-
closeButton.addEventListener("click", () => {
|
|
4136
|
+
const closeButton = dialogCloseButton(() => {
|
|
3425
4137
|
closePlanDialog();
|
|
3426
4138
|
});
|
|
3427
4139
|
head.appendChild(closeButton);
|
|
@@ -3478,7 +4190,7 @@ function mount(root, options = {}) {
|
|
|
3478
4190
|
dialog.appendChild(body);
|
|
3479
4191
|
|
|
3480
4192
|
const foot = element(doc, "div", "hive-dialog-foot");
|
|
3481
|
-
const cancelButton = element(doc, "button", "hive-btn
|
|
4193
|
+
const cancelButton = element(doc, "button", "hive-btn", translate("plan.cancel"));
|
|
3482
4194
|
setAttr(cancelButton, "type", "button");
|
|
3483
4195
|
setAttr(cancelButton, "title", translate("plan.cancelAria"));
|
|
3484
4196
|
setAttr(cancelButton, "aria-label", translate("plan.cancelAria"));
|
|
@@ -3487,7 +4199,7 @@ function mount(root, options = {}) {
|
|
|
3487
4199
|
});
|
|
3488
4200
|
foot.appendChild(cancelButton);
|
|
3489
4201
|
|
|
3490
|
-
const applyButton = element(doc, "button", "hive-btn", translate("plan.write"));
|
|
4202
|
+
const applyButton = element(doc, "button", "hive-btn hive-settings-primary", translate("plan.write"));
|
|
3491
4203
|
setAttr(applyButton, "type", "button");
|
|
3492
4204
|
setButtonCopy(applyButton, translate("plan.write"), translate("plan.writeAria"));
|
|
3493
4205
|
applyButton.disabled = true;
|
|
@@ -3497,9 +4209,8 @@ function mount(root, options = {}) {
|
|
|
3497
4209
|
foot.appendChild(applyButton);
|
|
3498
4210
|
dialog.appendChild(foot);
|
|
3499
4211
|
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
planOverlay = overlay;
|
|
4212
|
+
showModalDialog(dialog);
|
|
4213
|
+
planOverlay = dialog;
|
|
3503
4214
|
planDialogNode = dialog;
|
|
3504
4215
|
planFocusables = [closeButton, goalInput, maxInput, previewButton, cancelButton, applyButton];
|
|
3505
4216
|
planState = {
|
|
@@ -3623,7 +4334,7 @@ function mount(root, options = {}) {
|
|
|
3623
4334
|
}
|
|
3624
4335
|
|
|
3625
4336
|
function closeLimitsDialog(restoreFocus = true) {
|
|
3626
|
-
|
|
4337
|
+
closeModalDialog(limitsOverlay);
|
|
3627
4338
|
limitsOverlay = null;
|
|
3628
4339
|
limitsDialogNode = null;
|
|
3629
4340
|
limitsState = null;
|
|
@@ -3648,12 +4359,8 @@ function mount(root, options = {}) {
|
|
|
3648
4359
|
const writable = Boolean(lastModel.writable);
|
|
3649
4360
|
const supervisorAvailable = supervisorData.length > 0;
|
|
3650
4361
|
const rows = roleRowsForCurrentRepo(currentSupervisorRow());
|
|
3651
|
-
const
|
|
3652
|
-
|
|
3653
|
-
if (!event || !event.target || event.target === overlay) closeLimitsDialog();
|
|
3654
|
-
});
|
|
3655
|
-
|
|
3656
|
-
const dialog = element(doc, "div", "hive-dialog hive-settings-dialog");
|
|
4362
|
+
const dialog = element(doc, "dialog", "hive-dialog hive-settings-dialog");
|
|
4363
|
+
bindDialogDismiss(dialog, () => closeLimitsDialog());
|
|
3657
4364
|
setAttr(dialog, "role", "dialog");
|
|
3658
4365
|
setAttr(dialog, "aria-modal", "true");
|
|
3659
4366
|
setAttr(dialog, "aria-label", translate("settings.aria"));
|
|
@@ -3662,23 +4369,13 @@ function mount(root, options = {}) {
|
|
|
3662
4369
|
const titleBox = element(doc, "div", "hive-dialog-head-title");
|
|
3663
4370
|
titleBox.appendChild(element(doc, "h2", "hive-dialog-title", translate("settings.title")));
|
|
3664
4371
|
head.appendChild(titleBox);
|
|
3665
|
-
const closeButton =
|
|
3666
|
-
setAttr(closeButton, "type", "button");
|
|
3667
|
-
setAttr(closeButton, "title", translate("settings.closeAria"));
|
|
3668
|
-
setAttr(closeButton, "aria-label", translate("settings.closeAria"));
|
|
3669
|
-
closeButton.addEventListener("click", () => {
|
|
4372
|
+
const closeButton = dialogCloseButton(() => {
|
|
3670
4373
|
closeLimitsDialog();
|
|
3671
4374
|
});
|
|
3672
4375
|
head.appendChild(closeButton);
|
|
3673
4376
|
dialog.appendChild(head);
|
|
3674
4377
|
|
|
3675
4378
|
const body = element(doc, "div", "hive-dialog-body");
|
|
3676
|
-
const repoLine = element(doc, "div", "hive-limits-repo");
|
|
3677
|
-
repoLine.appendChild(element(doc, "span", "hive-limits-repo-label", translate("init.repo")));
|
|
3678
|
-
const repoPath = element(doc, "code", "hive-limits-repo-path", repo);
|
|
3679
|
-
setAttr(repoPath, "title", repo);
|
|
3680
|
-
repoLine.appendChild(repoPath);
|
|
3681
|
-
body.appendChild(repoLine);
|
|
3682
4379
|
if (!writable) {
|
|
3683
4380
|
body.appendChild(element(doc, "div", "hive-settings-note", translate("settings.readOnly")));
|
|
3684
4381
|
}
|
|
@@ -3777,6 +4474,7 @@ function mount(root, options = {}) {
|
|
|
3777
4474
|
header.appendChild(element(doc, "span", "hive-limits-cell is-number", translate("limits.limit")));
|
|
3778
4475
|
header.appendChild(element(doc, "span", "hive-limits-cell is-number", translate("limits.inFlight")));
|
|
3779
4476
|
header.appendChild(element(doc, "span", "hive-limits-cell is-number", translate("limits.queued")));
|
|
4477
|
+
header.appendChild(element(doc, "span", "hive-limits-cell is-action", ""));
|
|
3780
4478
|
table.appendChild(header);
|
|
3781
4479
|
|
|
3782
4480
|
for (const role of rows) {
|
|
@@ -3794,6 +4492,19 @@ function mount(root, options = {}) {
|
|
|
3794
4492
|
roleRow.appendChild(input);
|
|
3795
4493
|
roleRow.appendChild(element(doc, "span", "hive-limits-cell is-number", limitsNumberText(role.inFlight)));
|
|
3796
4494
|
roleRow.appendChild(element(doc, "span", "hive-limits-cell is-number", limitsNumberText(role.queued)));
|
|
4495
|
+
if (writable) {
|
|
4496
|
+
const removeButton = element(doc, "button", "hive-btn hive-btn-ghost hive-btn-danger hive-role-remove", "×");
|
|
4497
|
+
setAttr(removeButton, "type", "button");
|
|
4498
|
+
const removeTitle = translate("limits.removeRoleAria").replace("{name}", role.role);
|
|
4499
|
+
setAttr(removeButton, "title", removeTitle);
|
|
4500
|
+
setAttr(removeButton, "aria-label", removeTitle);
|
|
4501
|
+
removeButton.addEventListener("click", () => {
|
|
4502
|
+
void removeRole(role.role, role.inFlight, removeButton);
|
|
4503
|
+
});
|
|
4504
|
+
roleRow.appendChild(removeButton);
|
|
4505
|
+
} else {
|
|
4506
|
+
roleRow.appendChild(element(doc, "span", "hive-limits-cell is-action", ""));
|
|
4507
|
+
}
|
|
3797
4508
|
table.appendChild(roleRow);
|
|
3798
4509
|
rowNodes.push({ role: role.role, input });
|
|
3799
4510
|
}
|
|
@@ -3822,7 +4533,9 @@ function mount(root, options = {}) {
|
|
|
3822
4533
|
|
|
3823
4534
|
const queenSection = element(doc, "section", "hive-settings-section");
|
|
3824
4535
|
queenSection.appendChild(element(doc, "div", "hive-settings-section-title", translate("help.queen")));
|
|
3825
|
-
|
|
4536
|
+
const queenDescription = element(doc, "div", "hive-help-desc hive-help-queen");
|
|
4537
|
+
appendCodeText(queenDescription, translate("help.queenDesc"), "/queen off");
|
|
4538
|
+
queenSection.appendChild(queenDescription);
|
|
3826
4539
|
const tabs = element(doc, "div", "hive-settings-tabs");
|
|
3827
4540
|
setAttr(tabs, "role", "tablist");
|
|
3828
4541
|
setAttr(tabs, "aria-label", translate("settings.tabsAria"));
|
|
@@ -3893,9 +4606,8 @@ function mount(root, options = {}) {
|
|
|
3893
4606
|
body.appendChild(queenSection);
|
|
3894
4607
|
dialog.appendChild(body);
|
|
3895
4608
|
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
limitsOverlay = overlay;
|
|
4609
|
+
showModalDialog(dialog);
|
|
4610
|
+
limitsOverlay = dialog;
|
|
3899
4611
|
limitsDialogNode = dialog;
|
|
3900
4612
|
limitsState = {
|
|
3901
4613
|
repo,
|
|
@@ -3999,6 +4711,33 @@ function mount(root, options = {}) {
|
|
|
3999
4711
|
}
|
|
4000
4712
|
}
|
|
4001
4713
|
|
|
4714
|
+
async function removeRole(name, inFlight, button) {
|
|
4715
|
+
const state = limitsState;
|
|
4716
|
+
if (!state || !state.writable || state.busy || destroyed) return;
|
|
4717
|
+
const count = supervisorNumber(inFlight) || 0;
|
|
4718
|
+
let message = translate("limits.removeRoleConfirm").replace("{name}", name);
|
|
4719
|
+
if (count > 0) {
|
|
4720
|
+
const zh = String(translate("limits.removeRoleAria")).startsWith("删除角色");
|
|
4721
|
+
message += zh
|
|
4722
|
+
? " 该角色已有 " + String(count) + " 个任务在跑。"
|
|
4723
|
+
: " This role has " + String(count) + " tasks running.";
|
|
4724
|
+
}
|
|
4725
|
+
if (!askConfirm(message)) return;
|
|
4726
|
+
button.disabled = true;
|
|
4727
|
+
try {
|
|
4728
|
+
const ok = await postAction("roles-remove", { name });
|
|
4729
|
+
if (!ok || destroyed) return;
|
|
4730
|
+
await refreshSupervisor(true);
|
|
4731
|
+
if (destroyed) return;
|
|
4732
|
+
const trigger = limitsTriggerButton;
|
|
4733
|
+
closeLimitsDialog(false);
|
|
4734
|
+
openLimitsDialog(trigger);
|
|
4735
|
+
showToast("success", name, "");
|
|
4736
|
+
} finally {
|
|
4737
|
+
if (!destroyed && button.parentNode) button.disabled = false;
|
|
4738
|
+
}
|
|
4739
|
+
}
|
|
4740
|
+
|
|
4002
4741
|
async function saveBeeCounts() {
|
|
4003
4742
|
const state = limitsState;
|
|
4004
4743
|
if (!state || state.busy || !state.writable || !state.supervisorAvailable) return;
|
|
@@ -4156,7 +4895,7 @@ function mount(root, options = {}) {
|
|
|
4156
4895
|
}
|
|
4157
4896
|
|
|
4158
4897
|
function closeAddDialog(restoreFocus = true) {
|
|
4159
|
-
|
|
4898
|
+
closeModalDialog(addOverlay);
|
|
4160
4899
|
addOverlay = null;
|
|
4161
4900
|
addDialogNode = null;
|
|
4162
4901
|
addState = null;
|
|
@@ -4191,12 +4930,8 @@ function mount(root, options = {}) {
|
|
|
4191
4930
|
closeAddDialog(false);
|
|
4192
4931
|
addTriggerButton = trigger || null;
|
|
4193
4932
|
|
|
4194
|
-
const
|
|
4195
|
-
|
|
4196
|
-
if (!event || !event.target || event.target === overlay) closeAddDialog();
|
|
4197
|
-
});
|
|
4198
|
-
|
|
4199
|
-
const dialog = element(doc, "div", "hive-dialog hive-add-dialog");
|
|
4933
|
+
const dialog = element(doc, "dialog", "hive-dialog hive-add-dialog");
|
|
4934
|
+
bindDialogDismiss(dialog, () => closeAddDialog());
|
|
4200
4935
|
setAttr(dialog, "role", "dialog");
|
|
4201
4936
|
setAttr(dialog, "aria-modal", "true");
|
|
4202
4937
|
setAttr(dialog, "aria-label", translate("add.dialogTitle"));
|
|
@@ -4205,11 +4940,7 @@ function mount(root, options = {}) {
|
|
|
4205
4940
|
const titleBox = element(doc, "div", "hive-dialog-head-title");
|
|
4206
4941
|
titleBox.appendChild(element(doc, "h2", "hive-dialog-title", translate("add.dialogTitle")));
|
|
4207
4942
|
head.appendChild(titleBox);
|
|
4208
|
-
const closeButton =
|
|
4209
|
-
setAttr(closeButton, "type", "button");
|
|
4210
|
-
setAttr(closeButton, "title", translate("settings.closeAria"));
|
|
4211
|
-
setAttr(closeButton, "aria-label", translate("settings.closeAria"));
|
|
4212
|
-
closeButton.addEventListener("click", () => {
|
|
4943
|
+
const closeButton = dialogCloseButton(() => {
|
|
4213
4944
|
closeAddDialog();
|
|
4214
4945
|
});
|
|
4215
4946
|
head.appendChild(closeButton);
|
|
@@ -4233,8 +4964,12 @@ function mount(root, options = {}) {
|
|
|
4233
4964
|
const scopeInput = element(doc, "input", "hive-input hive-add-scope");
|
|
4234
4965
|
setAttr(scopeInput, "type", "text");
|
|
4235
4966
|
setAttr(scopeInput, "autocomplete", "off");
|
|
4967
|
+
setAttr(scopeInput, "placeholder", "src/auth.ts, docs/");
|
|
4236
4968
|
setAttr(scopeInput, "aria-label", translate("add.scopeAria"));
|
|
4237
|
-
|
|
4969
|
+
const scopeField = element(doc, "label", "hive-field");
|
|
4970
|
+
scopeField.appendChild(element(doc, "span", "hive-field-label", translate("add.scope")));
|
|
4971
|
+
scopeField.appendChild(scopeInput);
|
|
4972
|
+
body.appendChild(scopeField);
|
|
4238
4973
|
|
|
4239
4974
|
const afterInput = element(doc, "input", "hive-input hive-add-after");
|
|
4240
4975
|
setAttr(afterInput, "type", "text");
|
|
@@ -4253,7 +4988,7 @@ function mount(root, options = {}) {
|
|
|
4253
4988
|
dialog.appendChild(body);
|
|
4254
4989
|
|
|
4255
4990
|
const foot = element(doc, "div", "hive-dialog-foot");
|
|
4256
|
-
const cancelButton = element(doc, "button", "hive-btn
|
|
4991
|
+
const cancelButton = element(doc, "button", "hive-btn", translate("add.cancel"));
|
|
4257
4992
|
setAttr(cancelButton, "type", "button");
|
|
4258
4993
|
cancelButton.addEventListener("click", () => {
|
|
4259
4994
|
closeAddDialog();
|
|
@@ -4267,12 +5002,11 @@ function mount(root, options = {}) {
|
|
|
4267
5002
|
foot.appendChild(submitButton);
|
|
4268
5003
|
dialog.appendChild(foot);
|
|
4269
5004
|
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
addOverlay = overlay;
|
|
5005
|
+
showModalDialog(dialog);
|
|
5006
|
+
addOverlay = dialog;
|
|
4273
5007
|
addDialogNode = dialog;
|
|
4274
5008
|
addState = {
|
|
4275
|
-
overlay,
|
|
5009
|
+
overlay: dialog,
|
|
4276
5010
|
dialog,
|
|
4277
5011
|
title: titleInput,
|
|
4278
5012
|
role: roleInput,
|
|
@@ -4339,7 +5073,10 @@ function mount(root, options = {}) {
|
|
|
4339
5073
|
}
|
|
4340
5074
|
|
|
4341
5075
|
function closeDrawer(restoreFocus = true) {
|
|
4342
|
-
if (drawerNode
|
|
5076
|
+
if (drawerNode) {
|
|
5077
|
+
if (String(drawerNode.tagName).toLowerCase() === "dialog") closeModalDialog(drawerNode);
|
|
5078
|
+
else if (drawerNode.parentNode) drawerNode.parentNode.removeChild(drawerNode);
|
|
5079
|
+
}
|
|
4343
5080
|
drawerNode = null;
|
|
4344
5081
|
drawerState = null;
|
|
4345
5082
|
if (typeof doc.removeEventListener === "function") {
|
|
@@ -4398,6 +5135,61 @@ function mount(root, options = {}) {
|
|
|
4398
5135
|
body.appendChild(element(doc, "pre", "hive-json", JSON.stringify(raw, null, 2)));
|
|
4399
5136
|
}
|
|
4400
5137
|
|
|
5138
|
+
/**
|
|
5139
|
+
* The card drawer's "Last run" block. With no record it is one muted line;
|
|
5140
|
+
* with a record it shows status, agent, timestamps and the short commit above
|
|
5141
|
+
* the worker output (monospace, internally scrollable) and a copy button.
|
|
5142
|
+
* A record whose worker Session is known, on a host that provides
|
|
5143
|
+
* `openSession`, also gets the "Open agent chat" button.
|
|
5144
|
+
* @param {object|null} run - normalized `lastRun` (see normalizeLastRun)
|
|
5145
|
+
* @returns {HTMLElement}
|
|
5146
|
+
*/
|
|
5147
|
+
function buildRunSection(run) {
|
|
5148
|
+
const section = element(doc, "div", "hive-card-run");
|
|
5149
|
+
section.appendChild(element(doc, "div", "hive-card-run-title", translate("drawer.lastRun")));
|
|
5150
|
+
if (!run) {
|
|
5151
|
+
section.appendChild(element(doc, "div", "hive-note hive-card-run-empty", translate("drawer.noRuns")));
|
|
5152
|
+
return section;
|
|
5153
|
+
}
|
|
5154
|
+
const started = formatRunStamp(run.startedAt);
|
|
5155
|
+
const ended = formatRunStamp(run.endedAt);
|
|
5156
|
+
const metaParts = [run.status, run.agent];
|
|
5157
|
+
if (started || ended) metaParts.push(started + (ended ? " → " + ended : ""));
|
|
5158
|
+
if (run.commit) metaParts.push(shortCommit(run.commit));
|
|
5159
|
+
const metaPartsText = metaParts.filter(Boolean).join(" · ");
|
|
5160
|
+
const meta = element(doc, "div", "hive-card-run-meta", metaPartsText);
|
|
5161
|
+
setAttr(meta, "title", metaPartsText);
|
|
5162
|
+
section.appendChild(meta);
|
|
5163
|
+
section.appendChild(element(doc, "pre", "hive-card-run-output", run.output));
|
|
5164
|
+
const foot = element(doc, "div", "hive-card-run-foot");
|
|
5165
|
+
const copy = element(doc, "button", "hive-btn hive-btn-ghost hive-card-run-copy", translate("drawer.copyOutput"));
|
|
5166
|
+
setAttr(copy, "type", "button");
|
|
5167
|
+
setAttr(copy, "title", translate("drawer.copyOutput"));
|
|
5168
|
+
setAttr(copy, "aria-label", translate("drawer.copyOutput"));
|
|
5169
|
+
copy.addEventListener("click", () => {
|
|
5170
|
+
copyToClipboard(doc, run.output);
|
|
5171
|
+
});
|
|
5172
|
+
foot.appendChild(copy);
|
|
5173
|
+
// Only render the jump-to-chat control when both halves exist: a recorded
|
|
5174
|
+
// worker Session and a host navigation callback. No disabled placeholder.
|
|
5175
|
+
if (run.sessionId && openSession) {
|
|
5176
|
+
const chat = element(doc, "button", "hive-btn hive-btn-ghost hive-card-run-open", translate("drawer.openChat"));
|
|
5177
|
+
setAttr(chat, "type", "button");
|
|
5178
|
+
setAttr(chat, "title", translate("drawer.openChat"));
|
|
5179
|
+
setAttr(chat, "aria-label", translate("drawer.openChat"));
|
|
5180
|
+
chat.addEventListener("click", () => {
|
|
5181
|
+
try {
|
|
5182
|
+
openSession(run.sessionId);
|
|
5183
|
+
} catch (error) {
|
|
5184
|
+
reportError(error);
|
|
5185
|
+
}
|
|
5186
|
+
});
|
|
5187
|
+
foot.appendChild(chat);
|
|
5188
|
+
}
|
|
5189
|
+
section.appendChild(foot);
|
|
5190
|
+
return section;
|
|
5191
|
+
}
|
|
5192
|
+
|
|
4401
5193
|
function openDrawer(card, lane, trigger) {
|
|
4402
5194
|
closeHelp(false);
|
|
4403
5195
|
closePlanDialog(false);
|
|
@@ -4405,7 +5197,6 @@ function mount(root, options = {}) {
|
|
|
4405
5197
|
closeDrawer(false);
|
|
4406
5198
|
drawerTrigger = trigger || null;
|
|
4407
5199
|
|
|
4408
|
-
const raw = findRawTask(card) || { ...card, state: lane };
|
|
4409
5200
|
const title = card.title || translate("card.untitled");
|
|
4410
5201
|
const id = card.id || translate("card.noId");
|
|
4411
5202
|
const role = asString(card.role) || "—";
|
|
@@ -4413,12 +5204,8 @@ function mount(root, options = {}) {
|
|
|
4413
5204
|
const repo = lastModel ? lastModel.repo : "";
|
|
4414
5205
|
const ariaLabel = translate("drawer.cardAria") + " " + (card.title || card.id || translate("card.untitled"));
|
|
4415
5206
|
|
|
4416
|
-
const
|
|
4417
|
-
|
|
4418
|
-
if (!event || !event.target || event.target === overlay) closeDrawer();
|
|
4419
|
-
});
|
|
4420
|
-
|
|
4421
|
-
const dialog = element(doc, "div", "hive-dialog hive-card-dialog hive-drawer");
|
|
5207
|
+
const dialog = element(doc, "dialog", "hive-dialog hive-card-dialog hive-drawer");
|
|
5208
|
+
bindDialogDismiss(dialog, () => closeDrawer());
|
|
4422
5209
|
setAttr(dialog, "role", "dialog");
|
|
4423
5210
|
setAttr(dialog, "aria-modal", "true");
|
|
4424
5211
|
setAttr(dialog, "aria-label", ariaLabel);
|
|
@@ -4432,23 +5219,14 @@ function mount(root, options = {}) {
|
|
|
4432
5219
|
setAttr(subline, "title", sublineText);
|
|
4433
5220
|
titleBox.appendChild(subline);
|
|
4434
5221
|
head.appendChild(titleBox);
|
|
4435
|
-
const closeButton =
|
|
4436
|
-
setAttr(closeButton, "type", "button");
|
|
4437
|
-
setAttr(closeButton, "title", translate("drawer.closeAria"));
|
|
4438
|
-
setAttr(closeButton, "aria-label", translate("drawer.closeAria"));
|
|
4439
|
-
closeButton.addEventListener("click", () => {
|
|
5222
|
+
const closeButton = dialogCloseButton(() => {
|
|
4440
5223
|
closeDrawer();
|
|
4441
5224
|
});
|
|
4442
5225
|
head.appendChild(closeButton);
|
|
4443
5226
|
dialog.appendChild(head);
|
|
4444
5227
|
|
|
4445
5228
|
const body = element(doc, "div", "hive-dialog-body hive-card-body");
|
|
4446
|
-
|
|
4447
|
-
const summary = element(doc, "summary", "hive-card-json-summary", translate("drawer.rawJson"));
|
|
4448
|
-
const pre = element(doc, "pre", "hive-json", JSON.stringify(raw, null, 2));
|
|
4449
|
-
details.appendChild(summary);
|
|
4450
|
-
details.appendChild(pre);
|
|
4451
|
-
body.appendChild(details);
|
|
5229
|
+
body.appendChild(buildRunSection(card.lastRun));
|
|
4452
5230
|
dialog.appendChild(body);
|
|
4453
5231
|
|
|
4454
5232
|
const actions = actionsForState(lane, lastModel ? lastModel.writable : false);
|
|
@@ -4492,9 +5270,8 @@ function mount(root, options = {}) {
|
|
|
4492
5270
|
dialog.appendChild(foot);
|
|
4493
5271
|
}
|
|
4494
5272
|
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
drawerNode = overlay;
|
|
5273
|
+
showModalDialog(dialog);
|
|
5274
|
+
drawerNode = dialog;
|
|
4498
5275
|
drawerState = { kind: "card", card, lane };
|
|
4499
5276
|
if (typeof doc.addEventListener === "function") {
|
|
4500
5277
|
doc.addEventListener("keydown", onDrawerKeydown);
|
|
@@ -4745,7 +5522,7 @@ function mount(root, options = {}) {
|
|
|
4745
5522
|
return storage;
|
|
4746
5523
|
}
|
|
4747
5524
|
} catch {
|
|
4748
|
-
// A
|
|
5525
|
+
// A failing localStorage must not break the panel.
|
|
4749
5526
|
}
|
|
4750
5527
|
return null;
|
|
4751
5528
|
}
|
|
@@ -4986,14 +5763,11 @@ function mount(root, options = {}) {
|
|
|
4986
5763
|
const total = element(doc, "span", "hive-stat is-total");
|
|
4987
5764
|
total.appendChild(element(doc, "strong", null, String(model.stats.total)));
|
|
4988
5765
|
total.appendChild(element(doc, "span", "hive-stat-unit", " " + translate("stats.cards")));
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
const count = model.stats.byState[state];
|
|
4993
|
-
if (count === undefined || count === null) continue;
|
|
4994
|
-
const pill = element(doc, "span", "hive-stat", laneLabel(state) + " " + count);
|
|
4995
|
-
statsNode.appendChild(pill);
|
|
5766
|
+
const failedCount = model.stats.byState.failed;
|
|
5767
|
+
if (failedCount !== undefined && failedCount !== null && Number(failedCount) > 0) {
|
|
5768
|
+
total.appendChild(element(doc, "span", "hive-stat-unit", " · " + laneLabel("failed") + " " + failedCount));
|
|
4996
5769
|
}
|
|
5770
|
+
statsNode.appendChild(total);
|
|
4997
5771
|
|
|
4998
5772
|
if (model.stats.oldestPending) {
|
|
4999
5773
|
const pending = model.stats.oldestPending;
|
|
@@ -5037,7 +5811,8 @@ function mount(root, options = {}) {
|
|
|
5037
5811
|
function renderActions(model) {
|
|
5038
5812
|
clearNode(actionsNode);
|
|
5039
5813
|
for (const action of model.actions) {
|
|
5040
|
-
const
|
|
5814
|
+
const variant = action.name === "add" ? " hive-settings-primary" : "";
|
|
5815
|
+
const button = element(doc, "button", "hive-btn" + variant, translate(action.labelKey));
|
|
5041
5816
|
setAttr(button, "type", "button");
|
|
5042
5817
|
setAttr(button, "title", translate(action.helpKey));
|
|
5043
5818
|
setAttr(button, "aria-label", translate(action.helpKey));
|
|
@@ -5405,12 +6180,53 @@ function mount(root, options = {}) {
|
|
|
5405
6180
|
closeAddDialog(false);
|
|
5406
6181
|
closeToast();
|
|
5407
6182
|
closeDrawer();
|
|
6183
|
+
if (portalHost && portalHost.parentNode) portalHost.parentNode.removeChild(portalHost);
|
|
6184
|
+
portalHost = null;
|
|
5408
6185
|
if (frame.parentNode) frame.parentNode.removeChild(frame);
|
|
5409
6186
|
lastSnapshot = null;
|
|
5410
6187
|
lastModel = null;
|
|
5411
6188
|
}
|
|
5412
6189
|
|
|
6190
|
+
const THEME_TOKEN_NAMES = [
|
|
6191
|
+
"--dsw-alias-bg-base",
|
|
6192
|
+
"--dsw-alias-bg-layer-1",
|
|
6193
|
+
"--dsw-alias-bg-layer-2",
|
|
6194
|
+
"--dsw-alias-bg-layer-3",
|
|
6195
|
+
"--dsw-alias-border-l1",
|
|
6196
|
+
"--dsw-alias-border-l2",
|
|
6197
|
+
"--dsw-alias-label-primary",
|
|
6198
|
+
"--dsw-alias-label-secondary",
|
|
6199
|
+
"--dsw-alias-label-tertiary",
|
|
6200
|
+
"--dsw-alias-brand-primary",
|
|
6201
|
+
"--dsw-alias-interactive-bg-hover",
|
|
6202
|
+
"--dsw-alias-border-selected",
|
|
6203
|
+
"--dsw-alias-state-error-primary",
|
|
6204
|
+
"--dsw-alias-state-success-primary",
|
|
6205
|
+
"--dsw-alias-state-warn-primary",
|
|
6206
|
+
"--dsw-radius-sm",
|
|
6207
|
+
"--dsw-radius-md",
|
|
6208
|
+
"--dsw-radius-lg",
|
|
6209
|
+
"--dsw-elevation-panel",
|
|
6210
|
+
];
|
|
6211
|
+
|
|
6212
|
+
function assertThemeTokens() {
|
|
6213
|
+
if (!view || typeof view.getComputedStyle !== "function") return;
|
|
6214
|
+
let computed = null;
|
|
6215
|
+
try {
|
|
6216
|
+
computed = view.getComputedStyle(frame);
|
|
6217
|
+
} catch {
|
|
6218
|
+
return;
|
|
6219
|
+
}
|
|
6220
|
+
if (!computed) return;
|
|
6221
|
+
for (const token of THEME_TOKEN_NAMES) {
|
|
6222
|
+
if (computed.getPropertyValue(token).trim() === "" && view.console && typeof view.console.warn === "function") {
|
|
6223
|
+
view.console.warn("hive: " + token + " is empty; the neutral fallback keeps the panel visible");
|
|
6224
|
+
}
|
|
6225
|
+
}
|
|
6226
|
+
}
|
|
6227
|
+
|
|
5413
6228
|
applyChrome();
|
|
6229
|
+
assertThemeTokens();
|
|
5414
6230
|
|
|
5415
6231
|
if (typeof opts.subscribeLocale === "function") {
|
|
5416
6232
|
try {
|
|
@@ -5431,7 +6247,7 @@ function mount(root, options = {}) {
|
|
|
5431
6247
|
|
|
5432
6248
|
return { mount: mount, renderModel: renderModel, messages: messages }
|
|
5433
6249
|
})()
|
|
5434
|
-
var HIVE_PANEL_CSS = "/*\n * hive-panel-ui\n * Dark-first, host-themed through four variables:\n * --hive-bg, --hive-fg, --hive-line, --hive-accent\n * Defaults live on a zero-specificity :root rule and every rule keeps a fallback,\n * so a host can override the variables on :root, body, a wrapper, or .hive.\n */\n\n:where(:root) {\n --hive-bg: #0b0f17;\n --hive-fg: #e6edf3;\n --hive-line: #232b38;\n --hive-accent: #58c4dc;\n --hive-ok: #7ee787;\n --hive-warn: #f0b429;\n --hive-danger: #ff7b72;\n --hive-info: #79c0ff;\n}\n\n.hive,\n.hive *,\n.hive *::before,\n.hive *::after {\n box-sizing: border-box;\n}\n\n.hive {\n /* Derived helpers; the four required variables use inline fallbacks. */\n --hive-fg-soft: color-mix(in srgb, var(--hive-fg, #e6edf3) 62%, transparent);\n --hive-fg-faint: color-mix(in srgb, var(--hive-fg, #e6edf3) 40%, transparent);\n --hive-surface: color-mix(in srgb, var(--hive-fg, #e6edf3) 4%, transparent);\n --hive-surface-strong: color-mix(in srgb, var(--hive-fg, #e6edf3) 8%, transparent);\n --hive-surface-hover: color-mix(in srgb, var(--hive-fg, #e6edf3) 11%, transparent);\n --hive-accent-soft: color-mix(in srgb, var(--hive-accent, #58c4dc) 17%, transparent);\n --hive-mono: ui-monospace, \"SFMono-Regular\", \"JetBrains Mono\", Menlo, Consolas, monospace;\n\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 480px;\n overflow: hidden;\n border: 1px solid var(--hive-line, #232b38);\n border-radius: 12px;\n background: var(--hive-bg, #0b0f17);\n color: var(--hive-fg, #e6edf3);\n font: 13px/1.45 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n color-scheme: dark;\n}\n\n.hive ::selection {\n background: color-mix(in srgb, var(--hive-accent, #58c4dc) 35%, transparent);\n}\n\n/* ------------------------------------------------------------------ top bar */\n\n.hive-bar {\n display: flex;\n flex: 0 0 auto;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px 12px;\n padding: 9px 14px;\n border-bottom: 1px solid var(--hive-line, #232b38);\n background: color-mix(in srgb, var(--hive-fg, #e6edf3) 2%, transparent);\n}\n\n.hive-ident {\n display: flex;\n align-items: baseline;\n gap: 8px;\n min-width: 0;\n}\n\n.hive-brand {\n color: var(--hive-accent, #58c4dc);\n font-size: 10px;\n font-weight: 750;\n letter-spacing: 0.18em;\n text-transform: uppercase;\n}\n\n.hive-repo {\n max-width: min(34vw, 360px);\n overflow: hidden;\n color: var(--hive-fg-soft);\n font-family: var(--hive-mono);\n font-size: 11.5px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.hive-time {\n color: var(--hive-fg-soft);\n font-family: var(--hive-mono);\n font-size: 11px;\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n}\n\n.hive-badge {\n padding: 2px 8px;\n border: 1px solid var(--hive-line, #232b38);\n border-radius: 999px;\n font-size: 10px;\n font-weight: 650;\n letter-spacing: 0.09em;\n line-height: 1.5;\n text-transform: uppercase;\n white-space: nowrap;\n}\n\n.hive-badge.is-free {\n border-color: color-mix(in srgb, var(--hive-accent, #58c4dc) 45%, transparent);\n background: var(--hive-accent-soft);\n color: var(--hive-accent, #58c4dc);\n}\n\n.hive-badge.is-freeze {\n border-color: color-mix(in srgb, var(--hive-warn) 45%, transparent);\n background: color-mix(in srgb, var(--hive-warn) 14%, transparent);\n color: var(--hive-warn);\n}\n\n.hive-badge.is-custom {\n color: var(--hive-fg-soft);\n}\n\n.hive-stats {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 5px;\n min-width: 0;\n}\n\n.hive-stat {\n padding: 1px 7px;\n border: 1px solid transparent;\n border-radius: 6px;\n background: var(--hive-surface);\n color: var(--hive-fg-soft);\n font-size: 10.5px;\n font-variant-numeric: tabular-nums;\n line-height: 1.7;\n white-space: nowrap;\n}\n\n.hive-stat strong {\n color: var(--hive-fg, #e6edf3);\n font-weight: 650;\n}\n\n.hive-stat.is-total {\n color: var(--hive-fg, #e6edf3);\n}\n\n.hive-stat.is-warn {\n color: var(--hive-warn);\n background: color-mix(in srgb, var(--hive-warn) 10%, transparent);\n}\n\n.hive-status {\n color: var(--hive-danger);\n font-size: 10px;\n font-weight: 700;\n letter-spacing: 0.09em;\n text-transform: uppercase;\n white-space: nowrap;\n}\n\n.hive-status:empty {\n display: none;\n}\n\n.hive-status::before {\n content: \"● \";\n font-size: 9px;\n}\n\n.hive-status.is-error {\n color: var(--hive-danger);\n}\n\n.hive-status.is-info {\n color: var(--hive-info);\n}\n\n.hive-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n margin-left: auto;\n}\n\n/* ------------------------------------------------------------------ buttons */\n\n.hive-btn {\n appearance: none;\n padding: 4px 10px;\n border: 1px solid var(--hive-line, #232b38);\n border-radius: 7px;\n background: var(--hive-surface-strong);\n color: var(--hive-fg, #e6edf3);\n font: inherit;\n font-size: 11.5px;\n font-weight: 550;\n line-height: 1.5;\n cursor: pointer;\n transition: border-color 120ms ease, background 120ms ease, color 120ms ease;\n}\n\n.hive-btn:hover {\n border-color: color-mix(in srgb, var(--hive-accent, #58c4dc) 55%, var(--hive-line, #232b38));\n background: var(--hive-accent-soft);\n}\n\n.hive-btn:active {\n transform: translateY(1px);\n}\n\n.hive-btn:focus-visible {\n outline: 2px solid var(--hive-accent, #58c4dc);\n outline-offset: 1px;\n}\n\n.hive-btn-ghost {\n padding: 3px 8px;\n border-color: transparent;\n background: transparent;\n color: var(--hive-fg-soft);\n font-size: 11px;\n}\n\n/* ------------------------------------------------------------------- layout */\n\n.hive-main {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: minmax(185px, 230px) minmax(0, 1fr) minmax(215px, 300px);\n min-height: 0;\n}\n\n.hive-pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n}\n\n.hive-agents {\n border-right: 1px solid var(--hive-line, #232b38);\n background: color-mix(in srgb, var(--hive-fg, #e6edf3) 1.5%, transparent);\n}\n\n.hive-events {\n border-left: 1px solid var(--hive-line, #232b38);\n background: color-mix(in srgb, var(--hive-fg, #e6edf3) 1.5%, transparent);\n}\n\n.hive-pane-head {\n display: flex;\n flex: 0 0 auto;\n align-items: center;\n gap: 7px;\n padding: 8px 12px;\n border-bottom: 1px solid var(--hive-line, #232b38);\n color: var(--hive-fg-soft);\n font-size: 10px;\n font-weight: 650;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n}\n\n.hive-hint {\n color: var(--hive-fg-faint);\n font-size: 9.5px;\n font-weight: 500;\n letter-spacing: 0.04em;\n text-transform: none;\n}\n\n.hive-count {\n min-width: 18px;\n margin-left: auto;\n padding: 0 6px;\n border-radius: 999px;\n background: var(--hive-surface);\n color: var(--hive-fg-soft);\n font-family: var(--hive-mono);\n font-size: 10px;\n font-variant-numeric: tabular-nums;\n line-height: 17px;\n text-align: center;\n}\n\n.hive-scroll {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n gap: 7px;\n min-height: 0;\n padding: 10px;\n overflow-x: hidden;\n overflow-y: auto;\n scrollbar-color: var(--hive-line, #232b38) transparent;\n scrollbar-width: thin;\n}\n\n.hive-empty {\n padding: 14px 10px;\n color: var(--hive-fg-faint);\n font-size: 11px;\n text-align: center;\n}\n\n/* ------------------------------------------------------------------- agents */\n\n.hive-agent {\n padding: 8px 10px;\n border: 1px solid var(--hive-line, #232b38);\n border-radius: 8px;\n background: var(--hive-surface);\n}\n\n.hive-agent-head {\n display: flex;\n align-items: center;\n gap: 7px;\n font-weight: 600;\n}\n\n.hive-agent-name {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.hive-dot {\n width: 7px;\n height: 7px;\n flex: 0 0 auto;\n border-radius: 50%;\n background: var(--hive-fg-faint);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--hive-fg, #e6edf3) 5%, transparent);\n}\n\n.hive-dot.is-working {\n background: var(--hive-accent, #58c4dc);\n box-shadow: 0 0 0 3px var(--hive-accent-soft);\n}\n\n.hive-dot.is-idle {\n background: var(--hive-fg-faint);\n}\n\n.hive-dot.is-blocked,\n.hive-dot.is-failed {\n background: var(--hive-danger);\n}\n\n.hive-dot.is-done {\n background: var(--hive-ok);\n}\n\n.hive-meta {\n margin-top: 3px;\n overflow: hidden;\n color: var(--hive-fg-soft);\n font-size: 10.5px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.hive-agent-files {\n color: var(--hive-fg-faint);\n font-family: var(--hive-mono);\n}\n\n/* -------------------------------------------------------------------- lanes */\n\n.hive-board {\n background:\n linear-gradient(180deg, color-mix(in srgb, var(--hive-accent, #58c4dc) 3%, transparent), transparent 160px);\n}\n\n.hive-lanes {\n display: flex;\n flex: 1 1 auto;\n align-items: stretch;\n gap: 9px;\n min-height: 0;\n padding: 10px;\n overflow-x: auto;\n overflow-y: hidden;\n scrollbar-color: var(--hive-line, #232b38) transparent;\n scrollbar-width: thin;\n}\n\n.hive-lane {\n display: flex;\n flex: 0 0 232px;\n flex-direction: column;\n min-height: 0;\n overflow: hidden;\n border: 1px solid var(--hive-line, #232b38);\n border-radius: 10px;\n background: color-mix(in srgb, var(--hive-fg, #e6edf3) 2%, transparent);\n}\n\n.hive-lane-head {\n display: flex;\n flex: 0 0 auto;\n align-items: center;\n gap: 7px;\n padding: 8px 10px;\n border-bottom: 1px solid var(--hive-line, #232b38);\n color: var(--hive-fg-soft);\n font-size: 10px;\n font-weight: 700;\n letter-spacing: 0.1em;\n text-transform: uppercase;\n}\n\n.hive-lane-head::before {\n width: 3px;\n height: 10px;\n border-radius: 2px;\n background: var(--hive-fg-faint);\n content: \"\";\n}\n\n.hive-lane-name {\n color: var(--hive-fg, #e6edf3);\n}\n\n.hive-lane-pending .hive-lane-head::before {\n background: var(--hive-accent, #58c4dc);\n}\n\n.hive-lane-claimed .hive-lane-head::before {\n background: var(--hive-info);\n}\n\n.hive-lane-done .hive-lane-head::before {\n background: var(--hive-ok);\n}\n\n.hive-lane-blocked .hive-lane-head::before {\n background: var(--hive-warn);\n}\n\n.hive-lane-failed .hive-lane-head::before {\n background: var(--hive-danger);\n}\n\n.hive-lane-cards {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n gap: 7px;\n min-height: 0;\n padding: 7px;\n overflow-x: hidden;\n overflow-y: auto;\n scrollbar-color: var(--hive-line, #232b38) transparent;\n scrollbar-width: thin;\n}\n\n.hive-card {\n padding: 8px 9px;\n border: 1px solid var(--hive-line, #232b38);\n border-radius: 8px;\n background: var(--hive-surface);\n cursor: pointer;\n transition: border-color 120ms ease, background 120ms ease;\n}\n\n.hive-card:hover {\n border-color: color-mix(in srgb, var(--hive-accent, #58c4dc) 55%, var(--hive-line, #232b38));\n background: var(--hive-surface-hover);\n}\n\n.hive-card:focus-visible {\n outline: 2px solid var(--hive-accent, #58c4dc);\n outline-offset: 1px;\n}\n\n.hive-card-title {\n overflow-wrap: anywhere;\n font-size: 12.5px;\n font-weight: 600;\n line-height: 1.35;\n}\n\n.hive-card-meta {\n margin-top: 4px;\n color: var(--hive-fg-soft);\n font-size: 10.5px;\n}\n\n.hive-scopes {\n display: flex;\n flex-wrap: wrap;\n gap: 3px;\n margin-top: 6px;\n}\n\n.hive-scope {\n max-width: 100%;\n overflow: hidden;\n padding: 1px 5px;\n border: 1px solid var(--hive-line, #232b38);\n border-radius: 4px;\n background: var(--hive-surface-strong);\n color: var(--hive-fg-soft);\n font-family: var(--hive-mono);\n font-size: 9.5px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.hive-reason {\n margin-top: 6px;\n padding: 3px 6px;\n overflow-wrap: anywhere;\n border-left: 2px solid var(--hive-danger);\n border-radius: 0 4px 4px 0;\n background: color-mix(in srgb, var(--hive-danger) 10%, transparent);\n color: color-mix(in srgb, var(--hive-danger) 82%, var(--hive-fg, #e6edf3));\n font-size: 10.5px;\n}\n\n.hive-card-foot {\n display: flex;\n justify-content: space-between;\n gap: 6px;\n margin-top: 7px;\n color: var(--hive-fg-faint);\n font-family: var(--hive-mono);\n font-size: 9.5px;\n}\n\n.hive-card-id,\n.hive-card-state {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.hive-card-state {\n text-transform: uppercase;\n}\n\n/* ------------------------------------------------------------------- events */\n\n.hive-event {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr);\n gap: 2px 7px;\n padding: 6px 7px;\n border: 1px solid transparent;\n border-radius: 6px;\n background: var(--hive-surface);\n font-size: 10.5px;\n}\n\n.hive-event-time {\n color: var(--hive-fg-faint);\n font-family: var(--hive-mono);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n}\n\n.hive-event-kind {\n justify-self: start;\n overflow: hidden;\n color: var(--hive-accent, #58c4dc);\n font-weight: 600;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.hive-event-text {\n grid-column: 1 / -1;\n overflow-wrap: anywhere;\n color: var(--hive-fg-soft);\n font-family: var(--hive-mono);\n font-size: 10px;\n}\n\n/* ------------------------------------------------------------------- drawer */\n\n.hive-drawer {\n position: fixed;\n z-index: 2147483000;\n top: 0;\n right: 0;\n bottom: 0;\n display: flex;\n flex-direction: column;\n width: min(440px, 92vw);\n border-left: 1px solid var(--hive-line, #232b38);\n background: color-mix(in srgb, var(--hive-bg, #0b0f17) 97%, var(--hive-fg, #e6edf3) 3%);\n color: var(--hive-fg, #e6edf3);\n box-shadow: -24px 0 64px rgb(0 0 0 / 45%);\n font: 13px/1.45 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n color-scheme: dark;\n animation: hive-drawer-in 150ms ease-out;\n}\n\n.hive-drawer-head {\n display: flex;\n align-items: flex-start;\n gap: 10px;\n padding: 14px;\n border-bottom: 1px solid var(--hive-line, #232b38);\n}\n\n.hive-drawer-titlebox {\n min-width: 0;\n}\n\n.hive-drawer-eyebrow {\n overflow: hidden;\n color: var(--hive-fg-faint);\n font-family: var(--hive-mono);\n font-size: 9.5px;\n letter-spacing: 0.05em;\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n}\n\n.hive-drawer-title {\n margin: 3px 0 0;\n overflow-wrap: anywhere;\n color: var(--hive-fg, #e6edf3);\n font-size: 15px;\n font-weight: 650;\n line-height: 1.35;\n}\n\n.hive-drawer-head .hive-btn-ghost {\n flex: 0 0 auto;\n margin-left: auto;\n}\n\n.hive-drawer-body {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n gap: 10px;\n min-height: 0;\n padding: 14px;\n overflow-y: auto;\n scrollbar-color: var(--hive-line, #232b38) transparent;\n scrollbar-width: thin;\n}\n\n.hive-actions-row {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n\n.hive-note {\n color: var(--hive-fg-faint);\n font-size: 11px;\n}\n\n.hive-section-label {\n margin-top: 2px;\n color: var(--hive-fg-faint);\n font-size: 9.5px;\n font-weight: 650;\n letter-spacing: 0.1em;\n text-transform: uppercase;\n}\n\n.hive-json {\n max-height: 55vh;\n margin: 0;\n padding: 10px;\n overflow: auto;\n border: 1px solid var(--hive-line, #232b38);\n border-radius: 8px;\n background: color-mix(in srgb, var(--hive-fg, #e6edf3) 3%, transparent);\n color: var(--hive-fg-soft);\n font-family: var(--hive-mono);\n font-size: 10.5px;\n line-height: 1.55;\n overflow-wrap: anywhere;\n scrollbar-color: var(--hive-line, #232b38) transparent;\n scrollbar-width: thin;\n white-space: pre-wrap;\n}\n\n@keyframes hive-drawer-in {\n from {\n opacity: 0;\n transform: translateX(18px);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .hive-card,\n .hive-btn {\n transition: none;\n }\n\n .hive-drawer {\n animation: none;\n }\n}\n\n/* ------------------------------------------------------------------ compact */\n\n@media (max-width: 920px) {\n .hive {\n min-height: 100dvh;\n height: 100dvh;\n border-radius: 0;\n }\n\n .hive-main {\n grid-template-columns: minmax(0, 1fr);\n grid-template-rows: minmax(110px, 17vh) minmax(280px, 1fr) minmax(120px, 20vh);\n }\n\n .hive-agents {\n border-right: 0;\n border-bottom: 1px solid var(--hive-line, #232b38);\n }\n\n .hive-events {\n border-top: 1px solid var(--hive-line, #232b38);\n border-left: 0;\n }\n\n .hive-agent-list {\n flex-direction: row;\n overflow-x: auto;\n overflow-y: hidden;\n }\n\n .hive-agent {\n flex: 0 0 190px;\n }\n\n .hive-drawer {\n width: 100vw;\n }\n}\n\n/*\n * DSH theme bridge.\n *\n * The harness declares --dsw-alias-* on <body>, not on :root, so the mapping\n * must live on the panel element: a var() read at :root would find nothing and\n * keep the dark fallback forever. On a standalone page none of the tokens\n * exist and every line falls back to the panel's own palette.\n */\n.hive {\n --hive-bg: var(--dsw-alias-bg-base, #0b0f17);\n --hive-fg: var(--dsw-alias-label-primary, #e6edf3);\n --hive-line: var(--dsw-alias-border-l1, #232b38);\n --hive-accent: var(--dsw-alias-brand-primary, #58c4dc);\n --hive-ok: var(--dsw-alias-state-success-primary, #7ee787);\n --hive-warn: var(--dsw-alias-state-warning-primary, #f0b429);\n --hive-danger: var(--dsw-alias-state-error-primary, #ff7b72);\n --hive-info: var(--dsw-alias-brand-primary, #79c0ff);\n}\n"
|
|
6250
|
+
var HIVE_PANEL_CSS = "/*\n * hive-panel-ui\n * Dark-first, host-themed through four variables:\n * --hive-bg, --hive-fg, --hive-line, --hive-accent\n * Defaults live on a zero-specificity :root rule and every rule keeps a fallback,\n * so a host can override the variables on :root, body, a wrapper, or .hive.\n */\n\n.hive,\n.hive *,\n.hive *::before,\n.hive *::after {\n box-sizing: border-box;\n}\n\n.hive {\n /* Derived helpers; the four required variables use inline fallbacks. */\n --hive-fg-soft: color-mix(in srgb, var(--hive-fg) 62%, transparent);\n --hive-fg-faint: color-mix(in srgb, var(--hive-fg) 40%, transparent);\n --hive-surface: color-mix(in srgb, var(--hive-fg) 4%, transparent);\n --hive-surface-strong: color-mix(in srgb, var(--hive-fg) 8%, transparent);\n --hive-surface-hover: color-mix(in srgb, var(--hive-fg) 11%, transparent);\n --hive-accent-soft: color-mix(in srgb, var(--hive-accent) 17%, transparent);\n --hive-mono: ui-monospace, \"SFMono-Regular\", \"JetBrains Mono\", Menlo, Consolas, monospace;\n\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 480px;\n overflow: hidden;\n border: 1px solid var(--hive-line);\n border-radius: var(--hive-radius-lg);\n background: var(--hive-bg);\n color: var(--hive-fg);\n font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n color-scheme: light dark;\n}\n\n.hive ::selection {\n background: color-mix(in srgb, var(--hive-accent) 35%, transparent);\n}\n\n/* ------------------------------------------------------------------ top bar */\n\n.hive-bar {\n display: flex;\n flex: 0 0 auto;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px 12px;\n padding: 9px 14px;\n border-bottom: 1px solid var(--hive-line);\n background: color-mix(in srgb, var(--hive-fg) 2%, transparent);\n}\n\n.hive-ident {\n display: flex;\n align-items: baseline;\n gap: 8px;\n min-width: 0;\n}\n\n.hive-brand {\n color: var(--hive-accent);\n font-size: 10px;\n font-weight: 750;\n letter-spacing: 0.18em;\n text-transform: uppercase;\n}\n\n.hive-repo {\n max-width: min(34vw, 360px);\n overflow: hidden;\n color: var(--hive-fg-soft);\n font-family: var(--hive-mono);\n font-size: 11.5px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.hive-time {\n color: var(--hive-fg-soft);\n font-family: var(--hive-mono);\n font-size: 11px;\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n}\n\n.hive-badge {\n padding: 2px 8px;\n border: 1px solid var(--hive-line);\n border-radius: 999px;\n font-size: 10px;\n font-weight: 650;\n letter-spacing: 0.09em;\n line-height: 1.5;\n text-transform: uppercase;\n white-space: nowrap;\n}\n\n.hive-badge.is-free {\n border-color: color-mix(in srgb, var(--hive-accent) 45%, transparent);\n background: var(--hive-accent-soft);\n color: var(--hive-accent);\n}\n\n.hive-badge.is-freeze {\n border-color: color-mix(in srgb, var(--hive-warn) 45%, transparent);\n background: color-mix(in srgb, var(--hive-warn) 14%, transparent);\n color: var(--hive-warn);\n}\n\n.hive-badge.is-custom {\n color: var(--hive-fg-soft);\n}\n\n.hive-stats {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 5px;\n min-width: 0;\n}\n\n.hive-stat {\n padding: 1px 7px;\n border: 1px solid transparent;\n border-radius: var(--hive-radius-sm);\n background: var(--hive-surface);\n color: var(--hive-fg-soft);\n font-size: 10.5px;\n font-variant-numeric: tabular-nums;\n line-height: 1.7;\n white-space: nowrap;\n}\n\n.hive-stat strong {\n color: var(--hive-fg);\n font-weight: 650;\n}\n\n.hive-stat.is-total {\n color: var(--hive-fg);\n}\n\n.hive-stat.is-warn {\n color: var(--hive-warn);\n background: color-mix(in srgb, var(--hive-warn) 10%, transparent);\n}\n\n.hive-status {\n color: var(--hive-danger);\n font-size: 10px;\n font-weight: 700;\n letter-spacing: 0.09em;\n text-transform: uppercase;\n white-space: nowrap;\n}\n\n.hive-status:empty {\n display: none;\n}\n\n.hive-status::before {\n content: \"● \";\n font-size: 9px;\n}\n\n.hive-status.is-error {\n color: var(--hive-danger);\n}\n\n.hive-status.is-info {\n color: var(--hive-info);\n}\n\n.hive-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n margin-left: auto;\n}\n\n/* ------------------------------------------------------------------ buttons */\n\n.hive-btn {\n appearance: none;\n padding: 4px 10px;\n border: 1px solid var(--hive-line);\n border-radius: var(--hive-radius-md);\n background: var(--hive-surface-strong);\n color: var(--hive-fg);\n font: inherit;\n font-size: 11.5px;\n font-weight: 550;\n line-height: 1.5;\n cursor: pointer;\n transition: border-color 120ms ease, background 120ms ease, color 120ms ease;\n}\n\n.hive-btn:hover {\n border-color: color-mix(in srgb, var(--hive-accent) 55%, var(--hive-line));\n background: var(--hive-accent-soft);\n}\n\n.hive-btn:active {\n transform: translateY(1px);\n}\n\n.hive-btn:focus-visible {\n outline: 2px solid var(--hive-accent);\n outline-offset: 1px;\n}\n\n.hive-btn-ghost {\n padding: 3px 8px;\n border-color: transparent;\n background: transparent;\n color: var(--hive-fg-soft);\n font-size: 11px;\n}\n\n/* ------------------------------------------------------------------- layout */\n\n.hive-main {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: minmax(185px, 230px) minmax(0, 1fr) minmax(215px, 300px);\n min-height: 0;\n}\n\n.hive-pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n}\n\n.hive-agents {\n border-right: 1px solid var(--hive-line);\n background: color-mix(in srgb, var(--hive-fg) 1.5%, transparent);\n}\n\n.hive-events {\n border-left: 1px solid var(--hive-line);\n background: color-mix(in srgb, var(--hive-fg) 1.5%, transparent);\n}\n\n.hive-pane-head {\n display: flex;\n flex: 0 0 auto;\n align-items: center;\n gap: 7px;\n padding: 8px 12px;\n border-bottom: 1px solid var(--hive-line);\n color: var(--hive-fg-soft);\n font-size: 10px;\n font-weight: 650;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n}\n\n.hive-hint {\n color: var(--hive-fg-faint);\n font-size: 9.5px;\n font-weight: 500;\n letter-spacing: 0.04em;\n text-transform: none;\n}\n\n.hive-count {\n min-width: 18px;\n margin-left: auto;\n padding: 0 6px;\n border-radius: 999px;\n background: var(--hive-surface);\n color: var(--hive-fg-soft);\n font-family: var(--hive-mono);\n font-size: 10px;\n font-variant-numeric: tabular-nums;\n line-height: 17px;\n text-align: center;\n}\n\n.hive-scroll {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n gap: 7px;\n min-height: 0;\n padding: 10px;\n overflow-x: hidden;\n overflow-y: auto;\n scrollbar-color: var(--hive-line) transparent;\n scrollbar-width: thin;\n}\n\n.hive-empty {\n padding: 14px 10px;\n color: var(--hive-fg-faint);\n font-size: 11px;\n text-align: center;\n}\n\n/* ------------------------------------------------------------------- agents */\n\n.hive-agent {\n padding: 8px 10px;\n border: 1px solid var(--hive-line);\n border-radius: var(--hive-radius-md);\n background: var(--hive-surface);\n}\n\n.hive-agent-head {\n display: flex;\n align-items: center;\n gap: 7px;\n font-weight: 600;\n}\n\n.hive-agent-name {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.hive-dot {\n width: 7px;\n height: 7px;\n flex: 0 0 auto;\n border-radius: 50%;\n background: var(--hive-fg-faint);\n box-shadow: none;\n}\n\n.hive-dot.is-working {\n background: var(--hive-accent);\n box-shadow: none;\n}\n\n.hive-dot.is-idle {\n background: var(--hive-fg-faint);\n}\n\n.hive-dot.is-failed {\n background: var(--hive-danger);\n}\n\n.hive-dot.is-done {\n background: var(--hive-ok);\n}\n\n.hive-meta {\n margin-top: 3px;\n overflow: hidden;\n color: var(--hive-fg-soft);\n font-size: 10.5px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.hive-agent-files {\n color: var(--hive-fg-faint);\n font-family: var(--hive-mono);\n}\n\n/* -------------------------------------------------------------------- lanes */\n\n.hive-board { background: var(--hive-bg); }\n\n.hive-lanes {\n display: flex;\n flex: 1 1 auto;\n align-items: stretch;\n gap: 9px;\n min-height: 0;\n padding: 10px;\n overflow-x: auto;\n overflow-y: hidden;\n scrollbar-color: var(--hive-line) transparent;\n scrollbar-width: thin;\n}\n\n.hive-lane {\n display: flex;\n flex: 0 0 232px;\n flex-direction: column;\n min-height: 0;\n overflow: hidden;\n border: 1px solid var(--hive-line);\n border-radius: var(--hive-radius-md);\n background: color-mix(in srgb, var(--hive-fg) 2%, transparent);\n}\n\n.hive-lane-head {\n display: flex;\n flex: 0 0 auto;\n align-items: center;\n gap: 7px;\n padding: 8px 10px;\n border-bottom: 1px solid var(--hive-line);\n color: var(--hive-fg-soft);\n font-size: 10px;\n font-weight: 700;\n letter-spacing: 0.1em;\n text-transform: uppercase;\n}\n\n.hive-lane-head::before {\n width: 3px;\n height: 10px;\n border-radius: var(--hive-radius-sm);\n background: var(--hive-fg-faint);\n content: \"\";\n}\n\n.hive-lane-name {\n color: var(--hive-fg);\n}\n\n.hive-lane-pending .hive-lane-head::before {\n background: var(--hive-accent);\n}\n\n.hive-lane-claimed .hive-lane-head::before {\n background: var(--hive-info);\n}\n\n.hive-lane-done .hive-lane-head::before {\n background: var(--hive-ok);\n}\n\n.hive-lane-failed .hive-lane-head::before {\n background: var(--hive-danger);\n}\n\n.hive-lane-cards {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n gap: 7px;\n min-height: 0;\n padding: 7px;\n overflow-x: hidden;\n overflow-y: auto;\n scrollbar-color: var(--hive-line) transparent;\n scrollbar-width: thin;\n}\n\n.hive-card {\n padding: 8px 9px;\n border: 1px solid var(--hive-line);\n border-radius: var(--hive-radius-md);\n background: var(--hive-surface);\n cursor: pointer;\n transition: border-color 120ms ease, background 120ms ease;\n}\n\n.hive-card:hover {\n border-color: color-mix(in srgb, var(--hive-accent) 55%, var(--hive-line));\n background: var(--hive-surface-hover);\n}\n\n.hive-card:focus-visible {\n outline: 2px solid var(--hive-accent);\n outline-offset: 1px;\n}\n\n.hive-card-title {\n overflow-wrap: anywhere;\n font-size: 12.5px;\n font-weight: 600;\n line-height: 1.35;\n}\n\n.hive-card-meta {\n margin-top: 4px;\n color: var(--hive-fg-soft);\n font-size: 10.5px;\n}\n\n.hive-scopes {\n display: flex;\n flex-wrap: wrap;\n gap: 3px;\n margin-top: 6px;\n}\n\n.hive-scope {\n max-width: 100%;\n overflow: hidden;\n padding: 1px 5px;\n border: 1px solid var(--hive-line);\n border-radius: var(--hive-radius-sm);\n background: var(--hive-surface-strong);\n color: var(--hive-fg-soft);\n font-family: var(--hive-mono);\n font-size: 9.5px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.hive-reason {\n margin-top: 6px;\n padding: 3px 6px;\n overflow-wrap: anywhere;\n border-left: 1px solid var(--hive-danger);\n border-radius: 0 var(--hive-radius-sm) var(--hive-radius-sm) 0;\n background: color-mix(in srgb, var(--hive-danger) 10%, transparent);\n color: color-mix(in srgb, var(--hive-danger) 82%, var(--hive-fg));\n font-size: 10.5px;\n}\n\n.hive-card-foot {\n display: flex;\n justify-content: space-between;\n gap: 6px;\n margin-top: 7px;\n color: var(--hive-fg-faint);\n font-family: var(--hive-mono);\n font-size: 9.5px;\n}\n\n.hive-card-id,\n.hive-card-state {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.hive-card-state {\n text-transform: uppercase;\n}\n\n/* ------------------------------------------------------------------- events */\n\n.hive-event {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr);\n gap: 2px 7px;\n padding: 6px 7px;\n border: 1px solid transparent;\n border-radius: var(--hive-radius-sm);\n background: var(--hive-surface);\n font-size: 10.5px;\n}\n\n.hive-event-time {\n color: var(--hive-fg-faint);\n font-family: var(--hive-mono);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n}\n\n.hive-event-kind {\n justify-self: start;\n overflow: hidden;\n color: var(--hive-accent);\n font-weight: 600;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.hive-event-text {\n grid-column: 1 / -1;\n overflow-wrap: anywhere;\n color: var(--hive-fg-soft);\n font-family: var(--hive-mono);\n font-size: 10px;\n}\n\n/* ------------------------------------------------------------------- drawer */\n\n.hive-drawer {\n position: fixed;\n z-index: 2147483000;\n top: 0;\n right: 0;\n bottom: 0;\n display: flex;\n flex-direction: column;\n width: min(440px, 92vw);\n border-left: 1px solid var(--hive-line);\n background: color-mix(in srgb, var(--hive-bg) 97%, var(--hive-fg) 3%);\n color: var(--hive-fg);\n box-shadow: none;\n font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n color-scheme: light dark;\n animation: hive-drawer-in 150ms ease-out;\n}\n\n.hive-drawer-head {\n display: flex;\n align-items: flex-start;\n gap: 10px;\n padding: 14px;\n border-bottom: 1px solid var(--hive-line);\n}\n\n.hive-drawer-titlebox {\n min-width: 0;\n}\n\n.hive-drawer-eyebrow {\n overflow: hidden;\n color: var(--hive-fg-faint);\n font-family: var(--hive-mono);\n font-size: 9.5px;\n letter-spacing: 0.05em;\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n}\n\n.hive-drawer-title {\n margin: 3px 0 0;\n overflow-wrap: anywhere;\n color: var(--hive-fg);\n font-size: 15px;\n font-weight: 650;\n line-height: 1.35;\n}\n\n.hive-drawer-head .hive-btn-ghost {\n flex: 0 0 auto;\n margin-left: auto;\n}\n\n.hive-drawer-body {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n gap: 10px;\n min-height: 0;\n padding: 14px;\n overflow-y: auto;\n scrollbar-color: var(--hive-line) transparent;\n scrollbar-width: thin;\n}\n\n.hive-actions-row {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n\n.hive-note {\n color: var(--hive-fg-faint);\n font-size: 11px;\n}\n\n.hive-section-label {\n margin-top: 2px;\n color: var(--hive-fg-faint);\n font-size: 9.5px;\n font-weight: 650;\n letter-spacing: 0.1em;\n text-transform: uppercase;\n}\n\n.hive-json {\n max-height: 55vh;\n margin: 0;\n padding: 10px;\n overflow: auto;\n border: 1px solid var(--hive-line);\n border-radius: var(--hive-radius-md);\n background: color-mix(in srgb, var(--hive-fg) 3%, transparent);\n color: var(--hive-fg-soft);\n font-family: var(--hive-mono);\n font-size: 10.5px;\n line-height: 1.55;\n overflow-wrap: anywhere;\n scrollbar-color: var(--hive-line) transparent;\n scrollbar-width: thin;\n white-space: pre-wrap;\n}\n\n@keyframes hive-drawer-in {\n from {\n opacity: 0;\n transform: translateX(18px);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .hive-card,\n .hive-btn {\n transition: none;\n }\n\n .hive-drawer {\n animation: none;\n }\n}\n\n/* ------------------------------------------------------------------ compact */\n\n@media (max-width: 920px) {\n .hive {\n min-height: 100dvh;\n height: 100dvh;\n border-radius: 0;\n }\n\n .hive-main {\n grid-template-columns: minmax(0, 1fr);\n grid-template-rows: minmax(110px, 17vh) minmax(280px, 1fr) minmax(120px, 20vh);\n }\n\n .hive-agents {\n border-right: 0;\n border-bottom: 1px solid var(--hive-line);\n }\n\n .hive-events {\n border-top: 1px solid var(--hive-line);\n border-left: 0;\n }\n\n .hive-agent-list {\n flex-direction: row;\n overflow-x: auto;\n overflow-y: hidden;\n }\n\n .hive-agent {\n flex: 0 0 190px;\n }\n\n .hive-drawer {\n width: 100vw;\n }\n}\n/* DSH design-token bridge. Neutral grayscale fallbacks keep standalone pages readable. */\n.hive, .hive-portal, .hive-dialog {\n --hive-bg: var(--dsw-alias-bg-base, #fff);\n --hive-bg-layer-1: var(--dsw-alias-bg-layer-1, #fff);\n --hive-bg-layer-2: var(--dsw-alias-bg-layer-2, #fff);\n --hive-bg-layer-3: var(--dsw-alias-bg-layer-3, #f5f5f5);\n --hive-line: var(--dsw-alias-border-l1, #d9d9d9);\n --hive-line-2: var(--dsw-alias-border-l2, #e8e8e8);\n --hive-fg: var(--dsw-alias-label-primary, #000);\n --hive-fg-soft: var(--dsw-alias-label-secondary, #4d4d4d);\n --hive-fg-faint: var(--dsw-alias-label-tertiary, #808080);\n --hive-accent: var(--dsw-alias-brand-primary, #000);\n --hive-hover: var(--dsw-alias-interactive-bg-hover, #f2f2f2);\n --hive-selected: var(--dsw-alias-border-selected, #000);\n --hive-danger: var(--dsw-alias-state-error-primary, #000);\n --hive-ok: var(--dsw-alias-state-success-primary, #000);\n --hive-warn: var(--dsw-alias-state-warn-primary, #000);\n --hive-info: var(--dsw-alias-brand-primary, #000);\n --hive-radius-sm: var(--dsw-radius-sm, 4px);\n --hive-radius-md: var(--dsw-radius-md, 8px);\n --hive-radius-lg: var(--dsw-radius-lg, 12px);\n --hive-elevation: var(--dsw-elevation-panel, 0 12px 32px rgba(0, 0, 0, 0.18));\n --hive-surface: var(--hive-bg-layer-1);\n --hive-surface-strong: var(--hive-bg-layer-2);\n --hive-surface-hover: var(--hive-hover);\n --hive-accent-soft: color-mix(in srgb, var(--hive-accent) 14%, transparent);\n --hive-label-on-brand: var(--hive-bg);\n --hive-mono: ui-monospace, \"SFMono-Regular\", \"JetBrains Mono\", Menlo, Consolas, monospace;\n}\n\n/* Tokenized component treatment. */\n.hive { background: var(--hive-bg); color: var(--hive-fg); border-color: var(--hive-line); border-radius: var(--hive-radius-lg); }\n.hive-bar { background: var(--hive-bg-layer-1); border-bottom-color: var(--hive-line); gap: 8px; }\n.hive-main,\n.hive-board { background: var(--hive-bg); }\n.hive-agents,\n.hive-events { background: var(--hive-bg-layer-1); border-color: var(--hive-line); }\n.hive-lane { background: var(--hive-bg-layer-1); border-color: var(--hive-line); border-radius: var(--hive-radius-md); }\n.hive-card { background: var(--hive-bg-layer-1); border: 1px solid var(--hive-line); border-radius: var(--hive-radius-md); box-shadow: none; }\n.hive-card:hover { background: var(--hive-hover); border-color: var(--hive-line); }\n.hive-btn { background: transparent; border: 1px solid var(--hive-line); color: var(--hive-fg); border-radius: var(--hive-radius-md); }\n.hive-btn:hover { background: var(--hive-hover); border-color: var(--hive-line); color: var(--hive-fg); }\n.hive-btn-ghost { background: transparent; border-color: transparent; color: var(--hive-fg-soft); }\n.hive-btn-ghost:hover { background: var(--hive-hover); border-color: transparent; color: var(--hive-fg); }\n.hive-btn-danger { background: transparent; border-color: var(--hive-danger); color: var(--hive-danger); }\n.hive-btn-danger:hover:not(:disabled) { background: var(--hive-hover); border-color: var(--hive-danger); color: var(--hive-danger); }\n.hive-settings-primary,\n.hive-add-submit { background: var(--hive-accent); border-color: var(--hive-accent); color: var(--hive-label-on-brand); }\n.hive-settings-primary:hover:not(:disabled),\n.hive-add-submit:hover:not(:disabled) { background: var(--hive-accent); border-color: var(--hive-accent); color: var(--hive-label-on-brand); }\n.hive-settings-secondary { background: transparent; border-color: var(--hive-line); color: var(--hive-fg); }\n.hive-settings-secondary:hover { background: var(--hive-hover); border-color: var(--hive-line); color: var(--hive-fg); }\n.hive-input,\n.hive-textarea,\n.hive-limits-input { background: var(--hive-bg-layer-1); border: 1px solid var(--hive-line); color: var(--hive-fg); border-radius: var(--hive-radius-sm); }\n.hive-input:focus,\n.hive-textarea:focus,\n.hive-limits-input:focus { outline: 1px solid var(--hive-selected); outline-offset: 0; }\n.hive-dialog,\n.hive-add-dialog,\n.hive-settings-dialog,\n.hive-card-dialog { background: var(--hive-bg-layer-2); border: 1px solid var(--hive-line); border-radius: var(--hive-radius-lg); box-shadow: var(--hive-elevation); color: var(--hive-fg); }\n.hive-toast { background: var(--hive-bg-layer-2); border: 1px solid var(--hive-line); border-radius: var(--hive-radius-lg); box-shadow: none; color: var(--hive-fg); }\n.hive-drawer { background: var(--hive-bg-layer-2); border-left: 1px solid var(--hive-line); box-shadow: none; }\n.hive-json,\n.hive-plan-raw,\n.hive-plan-item,\n.hive-scope,\n.hive-init-card,\n.hive-limits-error,\n.hive-settings-note { background: var(--hive-bg-layer-1); border-color: var(--hive-line); border-radius: var(--hive-radius-sm); }\n.hive-limits-row { border-top-color: var(--hive-line-2); }\n.hive-limits-row:not(.is-head):hover { background: var(--hive-hover); }\n.hive-settings-tab[aria-selected=\"true\"] { border-bottom-color: var(--hive-selected); }\n.hive-lane-head,\n.hive-dialog-head,\n.hive-dialog-foot,\n.hive-drawer-head,\n.hive-settings-tabs { border-color: var(--hive-line-2); }\n.hive-freeze-banner { background: transparent; border-bottom-color: var(--hive-warn); color: var(--hive-warn); }\n.hive-freeze-banner .hive-btn { background: transparent; border-color: var(--hive-line); color: var(--hive-fg); }\n.hive-queen-hint { background: var(--hive-bg-layer-1); border-color: var(--hive-line); }\n.hive-supervisor-inline,\n.hive-stat,\n.hive-status,\n.hive-queen-badge {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n height: 22px;\n padding: 0 8px;\n border: 1px solid var(--hive-line);\n border-radius: 999px;\n background: transparent;\n color: var(--hive-fg-soft);\n font-size: 12px;\n font-weight: 400;\n line-height: 1;\n white-space: nowrap;\n}\n.hive-supervisor-inline { gap: 6px; }\n.hive-supervisor-inline-label { color: var(--hive-fg-soft); font-weight: 400; }\n.hive-supervisor-inline-state { display: inline-flex; align-items: center; gap: 6px; color: var(--hive-fg-soft); font-size: 12px; font-weight: 400; }\n.hive-supervisor-inline-state::before { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--hive-fg-faint); content: \"\"; }\n.hive-supervisor-inline-state.is-running::before { background: var(--hive-accent); }\n.hive-supervisor-inline-state.is-backoff::before { background: var(--hive-warn); }\n.hive-supervisor-inline-state.is-paused::before { background: var(--hive-fg-faint); }\n.hive-supervisor-inline-resume { height: auto; min-height: 0; padding: 0; border: 0; background: transparent; color: var(--hive-fg-soft); font-size: 12px; line-height: 1; }\n.hive-supervisor-inline-resume:hover { background: transparent; color: var(--hive-fg); }\n.hive-stats { flex-wrap: wrap; gap: 8px; }\n.hive-stat.is-warn { color: var(--hive-fg-soft); background: transparent; }\n.hive-stat strong { color: var(--hive-fg-soft); font-weight: 400; }\n.hive-status { color: var(--hive-fg-soft); }\n.hive-status::before { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--hive-danger); content: \"\"; font-size: 0; }\n.hive-status.is-info::before { background: var(--hive-accent); }\n.hive-queen-badge { color: var(--hive-fg-soft); }\n\n\n.hive-portal {\n position: fixed;\n inset: 0;\n z-index: 2147483600;\n pointer-events: none;\n}\n\n.hive-portal > .hive-overlay { pointer-events: auto; }\n\n/* Buttons: two explicit tiers. */\n.hive-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n height: 28px;\n padding: 0 12px;\n border: 1px solid var(--hive-line-2);\n border-radius: var(--hive-radius-md);\n background: transparent;\n color: var(--hive-fg);\n font-size: 14px;\n font-weight: 600;\n line-height: 1.5;\n}\n\n.hive-btn:hover {\n border-color: var(--hive-line-2);\n background: var(--hive-hover);\n color: var(--hive-fg);\n}\n\n.hive-btn-ghost {\n border-color: transparent;\n background: transparent;\n color: var(--hive-fg-soft);\n}\n\n.hive-btn-ghost:hover {\n border-color: transparent;\n background: var(--hive-hover);\n color: var(--hive-fg);\n}\n\n.hive-btn-danger {\n border-color: var(--hive-danger);\n background: transparent;\n color: var(--hive-danger);\n}\n\n.hive-btn-danger:hover:not(:disabled) {\n border-color: var(--hive-danger);\n background: var(--hive-hover);\n color: var(--hive-danger);\n}\n\n.hive-settings-primary,\n.hive-add-submit {\n border-color: var(--hive-accent);\n background: var(--hive-accent);\n color: var(--hive-label-on-brand);\n font-weight: 600;\n}\n\n.hive-settings-primary:hover:not(:disabled),\n.hive-add-submit:hover:not(:disabled) {\n border-color: var(--hive-accent);\n background: color-mix(in srgb, var(--hive-accent) 92%, #000);\n color: var(--hive-label-on-brand);\n}\n\n.hive-settings-primary:active:not(:disabled),\n.hive-add-submit:active:not(:disabled) {\n border-color: var(--hive-accent);\n background: color-mix(in srgb, var(--hive-accent) 84%, #000);\n color: var(--hive-label-on-brand);\n}\n\n.hive-settings-primary:focus-visible,\n.hive-add-submit:focus-visible {\n outline: 2px solid var(--hive-accent);\n outline-offset: 2px;\n}\n\n.hive-settings-secondary {\n border-color: var(--hive-line-2);\n background: transparent;\n color: var(--hive-fg);\n}\n\n.hive-settings-secondary:hover {\n border-color: var(--hive-line-2);\n background: var(--hive-hover);\n color: var(--hive-fg);\n}\n\n.hive-icon-button,\n.hive-dialog-close {\n height: 28px;\n padding: 0;\n border: 0;\n background: transparent;\n color: var(--hive-fg-soft);\n}\n\n.hive-icon-button:hover,\n.hive-dialog-close:hover {\n border: 0;\n background: var(--hive-hover);\n color: var(--hive-fg);\n}\n\n.hive-role-remove {\n height: 28px;\n min-height: 28px;\n padding: 0;\n border-color: transparent;\n background: transparent;\n color: var(--hive-danger);\n}\n\n/* Dialogs are portaled to the document body; keep them above the panel. */\n.hive-dialog,\n.hive-add-dialog,\n.hive-settings-dialog,\n.hive-card-dialog {\n border: 1px solid var(--hive-line);\n background: var(--hive-bg-layer-2);\n box-shadow: var(--dsw-elevation-panel, 0 12px 32px rgba(0, 0, 0, 0.18));\n}\n\n/* toolbar action rhythm */\n.hive-actions { gap: 8px; }\n.hive-actions > .hive-btn { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }\n\n/* Dialog form containment: portal content must not create horizontal scroll. */\n.hive-portal,\n.hive-portal *,\n.hive-portal *::before,\n.hive-portal *::after { box-sizing: border-box; }\n\n.hive-portal .hive-dialog { max-width: 92vw; overflow-x: hidden; }\n.hive-portal .hive-dialog-head,\n.hive-portal .hive-dialog-body,\n.hive-portal .hive-dialog-foot { padding-left: 16px; padding-right: 16px; }\n.hive-portal .hive-dialog-body { width: auto; min-width: 0; max-width: 100%; }\n.hive-portal .hive-dialog-body > * { margin-left: 0; margin-right: 0; max-width: 100%; min-width: 0; }\n.hive-portal .hive-field,\n.hive-portal .hive-field-row,\n.hive-portal .hive-settings-section,\n.hive-portal .hive-settings-tabpanel,\n.hive-portal .hive-limits-table { width: 100%; max-width: 100%; min-width: 0; margin-left: 0; margin-right: 0; }\n.hive-portal .hive-field-row > .hive-field { width: auto; flex: 1 1 160px; }\n.hive-portal .hive-input,\n.hive-portal .hive-textarea,\n.hive-portal select { width: 100%; min-width: 0; max-width: 100%; }\n.hive-portal .hive-limits-row {\n width: 100%;\n max-width: 100%;\n min-width: 0;\n grid-template-columns: minmax(0, 1fr) 96px 48px 48px 28px;\n}\n.hive-portal .hive-limits-cell,\n.hive-portal .hive-limits-role,\n.hive-portal .hive-dialog-title,\n.hive-portal .hive-card-subline,\n.hive-portal .hive-settings-role-name { min-width: 0; overflow-wrap: anywhere; }\n.hive-portal .hive-dialog-foot { flex-wrap: wrap; }\n\n.hive-portal .hive-dialog-body { overflow-x: hidden; }\n.hive-portal .hive-settings-tabs { flex-wrap: wrap; }\n.hive-portal .hive-card-actions,\n.hive-portal .hive-settings-form-actions { max-width: 100%; }\n\n/* Native <dialog>: top layer, browser-managed backdrop and focus trap. */\n.hive-dialog,\n.hive-dialog *,\n.hive-dialog *::before,\n.hive-dialog *::after { box-sizing: border-box; }\n\ndialog.hive-dialog {\n position: fixed;\n inset: 0;\n margin: auto;\n padding: 0;\n width: min(560px, 100%);\n max-width: 92vw;\n max-height: 80vh;\n overflow: hidden;\n border: 1px solid var(--hive-line);\n border-radius: var(--hive-radius-lg);\n background: var(--hive-bg-layer-2);\n color: var(--hive-fg);\n box-shadow: var(--dsw-elevation-panel, 0 12px 32px rgba(0, 0, 0, 0.18));\n color-scheme: light dark;\n}\n\ndialog.hive-card-dialog { width: min(720px, 92vw); }\n\ndialog.hive-dialog::backdrop {\n background: var(--dsw-alias-bg-mask-1, rgba(0, 0, 0, 0.24));\n backdrop-filter: var(--dsw-mask-blur, none);\n}\n\ndialog.hive-dialog .hive-dialog-head,\ndialog.hive-dialog .hive-dialog-body,\ndialog.hive-dialog .hive-dialog-foot { padding-left: 16px; padding-right: 16px; }\ndialog.hive-dialog .hive-dialog-body { width: auto; min-width: 0; max-width: 100%; overflow-x: hidden; }\ndialog.hive-dialog .hive-dialog-body > * { margin-left: 0; margin-right: 0; max-width: 100%; min-width: 0; }\ndialog.hive-dialog .hive-field,\ndialog.hive-dialog .hive-field-row,\ndialog.hive-dialog .hive-settings-section,\ndialog.hive-dialog .hive-settings-tabpanel,\ndialog.hive-dialog .hive-limits-table { width: 100%; max-width: 100%; min-width: 0; margin-left: 0; margin-right: 0; }\ndialog.hive-dialog .hive-field-row > .hive-field { width: auto; flex: 1 1 160px; }\ndialog.hive-dialog .hive-input,\ndialog.hive-dialog .hive-textarea,\ndialog.hive-dialog select { width: 100%; min-width: 0; max-width: 100%; }\ndialog.hive-dialog .hive-limits-row {\n width: 100%;\n max-width: 100%;\n min-width: 0;\n grid-template-columns: minmax(0, 1fr) 96px 48px 48px 28px;\n}\ndialog.hive-dialog .hive-limits-cell,\ndialog.hive-dialog .hive-limits-role,\ndialog.hive-dialog .hive-dialog-title,\ndialog.hive-dialog .hive-card-subline,\ndialog.hive-dialog .hive-settings-role-name { min-width: 0; overflow-wrap: anywhere; }\ndialog.hive-dialog .hive-dialog-foot { flex-wrap: wrap; }\n\n\n/* The DSH design-token bridge is bundled in panel.css; this file is kept for package layout compatibility. */\n"
|
|
5435
6251
|
function ensureHivePanelCss() {
|
|
5436
6252
|
if (typeof document === 'undefined') return
|
|
5437
6253
|
if (document.querySelector('style[data-hive-panel-css]') !== null) return
|
|
@@ -5457,6 +6273,9 @@ function mount(root, options = {}) {
|
|
|
5457
6273
|
onError: function (error) { console.warn('[hive-panel]', error) },
|
|
5458
6274
|
t: params.hiveTranslate,
|
|
5459
6275
|
subscribeLocale: params.hiveLocaleSubscribe,
|
|
6276
|
+
// Optional: the client half only supplies this when the host
|
|
6277
|
+
// exposes workspace navigation (ctx.uiWorkspace.openSession).
|
|
6278
|
+
openSession: typeof params.hiveOpenSession === 'function' ? params.hiveOpenSession : undefined,
|
|
5460
6279
|
})
|
|
5461
6280
|
return function () { instance.destroy() }
|
|
5462
6281
|
}, [sessionId])
|
|
@@ -5481,6 +6300,11 @@ function mount(root, options = {}) {
|
|
|
5481
6300
|
hiveSessionId: typeof sessionId === 'string' ? sessionId : '',
|
|
5482
6301
|
hiveTranslate: t,
|
|
5483
6302
|
hiveLocaleSubscribe: (listener) => ctx.locale.subscribe(listener),
|
|
6303
|
+
// Only a host with client navigation receives the callback, so the
|
|
6304
|
+
// renderer renders no chat button anywhere else (no disabled stub).
|
|
6305
|
+
...(canOpenSession(ctx)
|
|
6306
|
+
? { hiveOpenSession: (childSessionId) => { openSession(ctx, childSessionId) } }
|
|
6307
|
+
: {}),
|
|
5484
6308
|
}),
|
|
5485
6309
|
}, HivePanelMount))
|
|
5486
6310
|
}
|