dsh-hive-panel 0.1.8 → 0.2.3
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 +77 -1
- package/README.md +77 -42
- package/README.zh-CN.md +58 -37
- package/SPEC.md +42 -5
- package/cordis.patch.yml +6 -4
- package/docs/DESIGN.md +98 -13
- package/lib/client.js +1313 -353
- package/lib/index.js +328 -12
- package/package.json +1 -1
- package/scripts/build-client.mjs +3 -0
- package/scripts/verify-host-exec.mjs +11 -5
- package/scripts/verify.mjs +276 -5
- package/src/client.template.js +51 -0
- package/src/panel.css +434 -93
- package/src/panel.js +1258 -352
- 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,22 @@ 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;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.hive-agents-error {
|
|
481
|
+
min-width: 0;
|
|
482
|
+
overflow-wrap: anywhere;
|
|
483
|
+
color: var(--hive-danger);
|
|
484
|
+
font-family: var(--hive-mono);
|
|
485
|
+
font-size: 12px;
|
|
395
486
|
}
|
|
396
487
|
|
|
397
488
|
.hive-stage-chips {
|
|
@@ -405,29 +496,29 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
405
496
|
.hive-stage-chip {
|
|
406
497
|
appearance: none;
|
|
407
498
|
padding: 2px 8px;
|
|
408
|
-
border: 1px solid var(--hive-line
|
|
499
|
+
border: 1px solid var(--hive-line);
|
|
409
500
|
border-radius: 999px;
|
|
410
501
|
background: var(--hive-surface);
|
|
411
502
|
color: var(--hive-fg-soft);
|
|
412
503
|
font: inherit;
|
|
413
|
-
font-size:
|
|
414
|
-
line-height: 1.
|
|
504
|
+
font-size: 12px;
|
|
505
|
+
line-height: 1.5;
|
|
415
506
|
cursor: pointer;
|
|
416
507
|
white-space: nowrap;
|
|
417
508
|
}
|
|
418
509
|
|
|
419
510
|
.hive-stage-chip:hover {
|
|
420
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
511
|
+
border-color: color-mix(in srgb, var(--hive-accent) 50%, var(--hive-line));
|
|
421
512
|
}
|
|
422
513
|
|
|
423
514
|
.hive-stage-chip.is-active {
|
|
424
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
515
|
+
border-color: color-mix(in srgb, var(--hive-accent) 55%, transparent);
|
|
425
516
|
background: var(--hive-accent-soft);
|
|
426
|
-
color: var(--hive-accent
|
|
517
|
+
color: var(--hive-accent);
|
|
427
518
|
}
|
|
428
519
|
|
|
429
520
|
.hive-stage-chip:focus-visible {
|
|
430
|
-
outline: 2px solid var(--hive-accent
|
|
521
|
+
outline: 2px solid var(--hive-accent);
|
|
431
522
|
outline-offset: 1px;
|
|
432
523
|
}
|
|
433
524
|
|
|
@@ -472,7 +563,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
472
563
|
flex: 0 0 auto;
|
|
473
564
|
padding: 16px 10px;
|
|
474
565
|
color: var(--hive-fg-faint);
|
|
475
|
-
font-size:
|
|
566
|
+
font-size: 12px;
|
|
476
567
|
text-align: center;
|
|
477
568
|
}
|
|
478
569
|
|
|
@@ -481,8 +572,8 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
481
572
|
.hive-events-drawer {
|
|
482
573
|
flex: 0 0 auto;
|
|
483
574
|
min-width: 0;
|
|
484
|
-
border-top: 1px solid var(--hive-line
|
|
485
|
-
background: color-mix(in srgb, var(--hive-fg
|
|
575
|
+
border-top: 1px solid var(--hive-line);
|
|
576
|
+
background: color-mix(in srgb, var(--hive-fg) 1.5%, transparent);
|
|
486
577
|
}
|
|
487
578
|
|
|
488
579
|
.hive-events-toggle {
|
|
@@ -495,10 +586,10 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
495
586
|
background: transparent;
|
|
496
587
|
color: var(--hive-fg-soft);
|
|
497
588
|
font: inherit;
|
|
498
|
-
font-size:
|
|
589
|
+
font-size: 12px;
|
|
499
590
|
font-weight: 650;
|
|
500
591
|
letter-spacing: 0.12em;
|
|
501
|
-
line-height: 1.
|
|
592
|
+
line-height: 1.5;
|
|
502
593
|
text-align: left;
|
|
503
594
|
text-transform: uppercase;
|
|
504
595
|
cursor: pointer;
|
|
@@ -507,7 +598,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
507
598
|
.hive-events-toggle:hover { background: var(--hive-surface); }
|
|
508
599
|
|
|
509
600
|
.hive-events-toggle:focus-visible {
|
|
510
|
-
outline: 2px solid var(--hive-accent
|
|
601
|
+
outline: 2px solid var(--hive-accent);
|
|
511
602
|
outline-offset: -2px;
|
|
512
603
|
}
|
|
513
604
|
|
|
@@ -517,14 +608,14 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
517
608
|
margin-left: auto;
|
|
518
609
|
color: var(--hive-fg-faint);
|
|
519
610
|
font-family: var(--hive-mono);
|
|
520
|
-
font-size:
|
|
611
|
+
font-size: 12px;
|
|
521
612
|
font-weight: 400;
|
|
522
613
|
letter-spacing: 0;
|
|
523
614
|
}
|
|
524
615
|
|
|
525
616
|
.hive-events-caret {
|
|
526
617
|
color: var(--hive-fg-faint);
|
|
527
|
-
font-size:
|
|
618
|
+
font-size: 12px;
|
|
528
619
|
}
|
|
529
620
|
|
|
530
621
|
.hive-event-list {
|
|
@@ -545,23 +636,23 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
545
636
|
}
|
|
546
637
|
|
|
547
638
|
.hive-events-drawer.is-open .hive-events-toggle {
|
|
548
|
-
color: var(--hive-fg
|
|
639
|
+
color: var(--hive-fg);
|
|
549
640
|
}
|
|
550
641
|
|
|
551
|
-
@container hiveboard (max-width:
|
|
642
|
+
@container hiveboard (max-width: 819px) {
|
|
552
643
|
.hive-lane.is-empty,
|
|
553
644
|
.hive-lane.is-filtered-out { display: none; }
|
|
554
645
|
|
|
555
646
|
.hive-hint { display: none; }
|
|
556
647
|
}
|
|
557
648
|
|
|
558
|
-
@container hiveboard (min-width:
|
|
649
|
+
@container hiveboard (min-width: 820px) {
|
|
559
650
|
.hive-stage-chips { display: none; }
|
|
560
651
|
.hive-filter-empty,
|
|
561
652
|
.hive-filter-empty.is-visible { display: none; }
|
|
562
653
|
.hive-lanes {
|
|
563
654
|
display: grid;
|
|
564
|
-
grid-template-columns: repeat(
|
|
655
|
+
grid-template-columns: repeat(4, minmax(200px, 1fr));
|
|
565
656
|
align-items: stretch;
|
|
566
657
|
gap: 9px;
|
|
567
658
|
overflow: hidden;
|
|
@@ -608,11 +699,11 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
608
699
|
.hive-init-card {
|
|
609
700
|
width: min(520px, 100%);
|
|
610
701
|
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:
|
|
702
|
+
border: 1px solid var(--hive-line);
|
|
703
|
+
border-radius: var(--hive-radius-lg);
|
|
704
|
+
background: color-mix(in srgb, var(--hive-bg) 96%, var(--hive-fg) 4%);
|
|
705
|
+
color: var(--hive-fg);
|
|
706
|
+
box-shadow: none;
|
|
616
707
|
}
|
|
617
708
|
|
|
618
709
|
.hive-init-repo-row {
|
|
@@ -625,7 +716,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
625
716
|
|
|
626
717
|
.hive-init-repo-label {
|
|
627
718
|
flex: 0 0 auto;
|
|
628
|
-
font-size:
|
|
719
|
+
font-size: 12px;
|
|
629
720
|
font-weight: 650;
|
|
630
721
|
letter-spacing: 0.1em;
|
|
631
722
|
text-transform: uppercase;
|
|
@@ -634,23 +725,23 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
634
725
|
.hive-init-repo {
|
|
635
726
|
min-width: 0;
|
|
636
727
|
overflow-wrap: anywhere;
|
|
637
|
-
color: var(--hive-fg
|
|
728
|
+
color: var(--hive-fg);
|
|
638
729
|
font-family: var(--hive-mono);
|
|
639
|
-
font-size:
|
|
730
|
+
font-size: 12px;
|
|
640
731
|
}
|
|
641
732
|
|
|
642
733
|
.hive-init-title {
|
|
643
734
|
margin: 10px 0 0;
|
|
644
735
|
font-size: 16px;
|
|
645
736
|
font-weight: 650;
|
|
646
|
-
line-height: 1.
|
|
737
|
+
line-height: 1.5;
|
|
647
738
|
}
|
|
648
739
|
|
|
649
740
|
.hive-init-description {
|
|
650
741
|
margin: 6px 0 0;
|
|
651
742
|
color: var(--hive-fg-soft);
|
|
652
|
-
font-size:
|
|
653
|
-
line-height: 1.
|
|
743
|
+
font-size: 12px;
|
|
744
|
+
line-height: 1.5;
|
|
654
745
|
}
|
|
655
746
|
|
|
656
747
|
.hive-init-button { margin-top: 14px; }
|
|
@@ -663,7 +754,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
663
754
|
.hive-init-readonly {
|
|
664
755
|
margin-top: 8px;
|
|
665
756
|
color: var(--hive-warn);
|
|
666
|
-
font-size:
|
|
757
|
+
font-size: 12px;
|
|
667
758
|
line-height: 1.5;
|
|
668
759
|
}
|
|
669
760
|
|
|
@@ -672,8 +763,8 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
672
763
|
align-items: center;
|
|
673
764
|
gap: 7px;
|
|
674
765
|
margin-top: 10px;
|
|
675
|
-
color: var(--hive-accent
|
|
676
|
-
font-size:
|
|
766
|
+
color: var(--hive-accent);
|
|
767
|
+
font-size: 12px;
|
|
677
768
|
line-height: 1.5;
|
|
678
769
|
}
|
|
679
770
|
|
|
@@ -681,8 +772,8 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
681
772
|
width: 12px;
|
|
682
773
|
height: 12px;
|
|
683
774
|
flex: 0 0 auto;
|
|
684
|
-
border: 2px solid color-mix(in srgb, var(--hive-accent
|
|
685
|
-
border-top-color: var(--hive-accent
|
|
775
|
+
border: 2px solid color-mix(in srgb, var(--hive-accent) 25%, transparent);
|
|
776
|
+
border-top-color: var(--hive-accent);
|
|
686
777
|
border-radius: 50%;
|
|
687
778
|
animation: hive-spin 0.8s linear infinite;
|
|
688
779
|
}
|
|
@@ -694,12 +785,12 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
694
785
|
.hive-init-error {
|
|
695
786
|
margin-top: 10px;
|
|
696
787
|
padding: 8px 9px;
|
|
697
|
-
border-left:
|
|
698
|
-
border-radius: 0
|
|
788
|
+
border-left: 1px solid var(--hive-danger);
|
|
789
|
+
border-radius: 0 var(--hive-radius-sm) var(--hive-radius-sm) 0;
|
|
699
790
|
background: color-mix(in srgb, var(--hive-danger) 10%, transparent);
|
|
700
|
-
color: color-mix(in srgb, var(--hive-danger) 82%, var(--hive-fg
|
|
791
|
+
color: color-mix(in srgb, var(--hive-danger) 82%, var(--hive-fg));
|
|
701
792
|
font-family: var(--hive-mono);
|
|
702
|
-
font-size:
|
|
793
|
+
font-size: 12px;
|
|
703
794
|
line-height: 1.5;
|
|
704
795
|
overflow-wrap: anywhere;
|
|
705
796
|
white-space: pre-wrap;
|
|
@@ -707,15 +798,15 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
707
798
|
|
|
708
799
|
.hive-init-output {
|
|
709
800
|
margin-top: 10px;
|
|
710
|
-
border: 1px solid var(--hive-line
|
|
711
|
-
border-radius:
|
|
801
|
+
border: 1px solid var(--hive-line);
|
|
802
|
+
border-radius: var(--hive-radius-md);
|
|
712
803
|
background: var(--hive-surface);
|
|
713
804
|
}
|
|
714
805
|
|
|
715
806
|
.hive-output-summary {
|
|
716
807
|
padding: 6px 8px;
|
|
717
808
|
color: var(--hive-fg-soft);
|
|
718
|
-
font-size:
|
|
809
|
+
font-size: 12px;
|
|
719
810
|
line-height: 1.5;
|
|
720
811
|
cursor: pointer;
|
|
721
812
|
user-select: none;
|
|
@@ -728,7 +819,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
728
819
|
overflow: auto;
|
|
729
820
|
color: var(--hive-fg-soft);
|
|
730
821
|
font-family: var(--hive-mono);
|
|
731
|
-
font-size:
|
|
822
|
+
font-size: 12px;
|
|
732
823
|
line-height: 1.5;
|
|
733
824
|
overflow-wrap: anywhere;
|
|
734
825
|
white-space: pre-wrap;
|
|
@@ -746,19 +837,19 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
746
837
|
flex-direction: row;
|
|
747
838
|
gap: 8px;
|
|
748
839
|
padding: 10px 16px;
|
|
749
|
-
border-bottom: 1px solid color-mix(in srgb, var(--hive-accent
|
|
840
|
+
border-bottom: 1px solid color-mix(in srgb, var(--hive-accent) 32%, var(--hive-line));
|
|
750
841
|
background: var(--hive-accent-soft);
|
|
751
|
-
color: var(--hive-accent
|
|
752
|
-
font-size:
|
|
753
|
-
line-height: 1.
|
|
842
|
+
color: var(--hive-accent);
|
|
843
|
+
font-size: 12px;
|
|
844
|
+
line-height: 1.5;
|
|
754
845
|
}
|
|
755
846
|
|
|
756
847
|
.hive-queen-hint.is-visible { display: flex; }
|
|
757
848
|
.hive-queen-badge {
|
|
758
849
|
padding: 2px 8px;
|
|
759
|
-
border: 1px solid var(--hive-line
|
|
850
|
+
border: 1px solid var(--hive-line);
|
|
760
851
|
border-radius: 999px;
|
|
761
|
-
font-size:
|
|
852
|
+
font-size: 12px;
|
|
762
853
|
font-weight: 650;
|
|
763
854
|
letter-spacing: 0.09em;
|
|
764
855
|
line-height: 1.5;
|
|
@@ -769,19 +860,19 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
769
860
|
.hive-queen-badge.is-hidden { display: none; }
|
|
770
861
|
|
|
771
862
|
.hive-queen-badge.is-active {
|
|
772
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
863
|
+
border-color: color-mix(in srgb, var(--hive-accent) 45%, transparent);
|
|
773
864
|
background: var(--hive-accent-soft);
|
|
774
|
-
color: var(--hive-accent
|
|
865
|
+
color: var(--hive-accent);
|
|
775
866
|
}
|
|
776
867
|
|
|
777
868
|
.hive-queen-badge.is-inactive {
|
|
778
|
-
border-color: var(--hive-line
|
|
869
|
+
border-color: var(--hive-line);
|
|
779
870
|
background: var(--hive-surface);
|
|
780
871
|
color: var(--hive-fg-soft);
|
|
781
872
|
}
|
|
782
873
|
|
|
783
874
|
.hive-queen-hint.is-offer {
|
|
784
|
-
border-bottom-color: var(--hive-line
|
|
875
|
+
border-bottom-color: var(--hive-line);
|
|
785
876
|
background: var(--hive-surface);
|
|
786
877
|
color: var(--hive-fg-soft);
|
|
787
878
|
}
|
|
@@ -810,15 +901,15 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
810
901
|
padding: 0 6px;
|
|
811
902
|
color: var(--hive-fg-soft);
|
|
812
903
|
font-size: 16px;
|
|
813
|
-
line-height: 1.
|
|
904
|
+
line-height: 1.5;
|
|
814
905
|
}
|
|
815
906
|
|
|
816
907
|
.hive-queen-dismiss.is-hidden { display: none; }
|
|
817
908
|
|
|
818
909
|
.hive-queen-takeover {
|
|
819
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
910
|
+
border-color: color-mix(in srgb, var(--hive-accent) 45%, var(--hive-line));
|
|
820
911
|
background: var(--hive-accent-soft);
|
|
821
|
-
color: var(--hive-accent
|
|
912
|
+
color: var(--hive-accent);
|
|
822
913
|
}
|
|
823
914
|
|
|
824
915
|
.hive-queen-takeover:disabled {
|
|
@@ -835,11 +926,11 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
835
926
|
|
|
836
927
|
.hive-queen-output {
|
|
837
928
|
margin-top: 6px;
|
|
838
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
839
|
-
background: color-mix(in srgb, var(--hive-bg
|
|
929
|
+
border-color: color-mix(in srgb, var(--hive-accent) 32%, var(--hive-line));
|
|
930
|
+
background: color-mix(in srgb, var(--hive-bg) 80%, transparent);
|
|
840
931
|
}
|
|
841
932
|
|
|
842
|
-
.hive-queen-output .hive-output-summary { color: var(--hive-accent
|
|
933
|
+
.hive-queen-output .hive-output-summary { color: var(--hive-accent); }
|
|
843
934
|
.hive-queen-output .hive-output-pre { max-height: 120px; }
|
|
844
935
|
|
|
845
936
|
.hive-supervisor {
|
|
@@ -850,16 +941,16 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
850
941
|
gap: 5px 8px;
|
|
851
942
|
min-width: 0;
|
|
852
943
|
padding: 6px 12px;
|
|
853
|
-
border-bottom: 1px solid var(--hive-line
|
|
854
|
-
background: color-mix(in srgb, var(--hive-fg
|
|
855
|
-
font-size:
|
|
944
|
+
border-bottom: 1px solid var(--hive-line);
|
|
945
|
+
background: color-mix(in srgb, var(--hive-fg) 2%, transparent);
|
|
946
|
+
font-size: 12px;
|
|
856
947
|
}
|
|
857
948
|
|
|
858
949
|
.hive-supervisor.is-hidden { display: none; }
|
|
859
950
|
|
|
860
951
|
.hive-supervisor-label {
|
|
861
952
|
color: var(--hive-fg-soft);
|
|
862
|
-
font-size:
|
|
953
|
+
font-size: 12px;
|
|
863
954
|
font-weight: 650;
|
|
864
955
|
letter-spacing: 0.12em;
|
|
865
956
|
text-transform: uppercase;
|
|
@@ -879,7 +970,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
879
970
|
gap: 5px;
|
|
880
971
|
max-width: 100%;
|
|
881
972
|
padding: 1px 7px;
|
|
882
|
-
border: 1px solid var(--hive-line
|
|
973
|
+
border: 1px solid var(--hive-line);
|
|
883
974
|
border-radius: 999px;
|
|
884
975
|
background: var(--hive-surface);
|
|
885
976
|
}
|
|
@@ -889,13 +980,13 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
889
980
|
overflow: hidden;
|
|
890
981
|
color: var(--hive-fg-soft);
|
|
891
982
|
font-family: var(--hive-mono);
|
|
892
|
-
font-size:
|
|
983
|
+
font-size: 12px;
|
|
893
984
|
text-overflow: ellipsis;
|
|
894
985
|
white-space: nowrap;
|
|
895
986
|
}
|
|
896
987
|
|
|
897
988
|
.hive-supervisor-state {
|
|
898
|
-
font-size:
|
|
989
|
+
font-size: 12px;
|
|
899
990
|
font-weight: 600;
|
|
900
991
|
white-space: nowrap;
|
|
901
992
|
}
|
|
@@ -908,16 +999,16 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
908
999
|
.hive-supervisor-resume {
|
|
909
1000
|
margin-left: 2px;
|
|
910
1001
|
padding: 2px 6px;
|
|
911
|
-
font-size:
|
|
912
|
-
line-height: 1.
|
|
1002
|
+
font-size: 12px;
|
|
1003
|
+
line-height: 1.5;
|
|
913
1004
|
}
|
|
914
1005
|
|
|
915
1006
|
.hive-supervisor-limits {
|
|
916
1007
|
flex: 0 0 auto;
|
|
917
1008
|
margin-left: auto;
|
|
918
1009
|
padding: 2px 7px;
|
|
919
|
-
font-size:
|
|
920
|
-
line-height: 1.
|
|
1010
|
+
font-size: 12px;
|
|
1011
|
+
line-height: 1.5;
|
|
921
1012
|
}
|
|
922
1013
|
|
|
923
1014
|
.hive-supervisor-limits.is-hidden { display: none; }
|
|
@@ -932,7 +1023,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
932
1023
|
|
|
933
1024
|
.hive-limits-repo-label {
|
|
934
1025
|
color: var(--hive-fg-faint);
|
|
935
|
-
font-size:
|
|
1026
|
+
font-size: 12px;
|
|
936
1027
|
font-weight: 650;
|
|
937
1028
|
letter-spacing: 0.1em;
|
|
938
1029
|
text-transform: uppercase;
|
|
@@ -940,14 +1031,14 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
940
1031
|
|
|
941
1032
|
.hive-limits-repo-path {
|
|
942
1033
|
overflow-wrap: anywhere;
|
|
943
|
-
color: var(--hive-fg
|
|
1034
|
+
color: var(--hive-fg);
|
|
944
1035
|
font-family: var(--hive-mono);
|
|
945
|
-
font-size:
|
|
1036
|
+
font-size: 12px;
|
|
946
1037
|
}
|
|
947
1038
|
|
|
948
1039
|
.hive-limits-description {
|
|
949
1040
|
color: var(--hive-fg-soft);
|
|
950
|
-
font-size:
|
|
1041
|
+
font-size: 12px;
|
|
951
1042
|
line-height: 1.5;
|
|
952
1043
|
}
|
|
953
1044
|
|
|
@@ -960,31 +1051,50 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
960
1051
|
|
|
961
1052
|
.hive-limits-row {
|
|
962
1053
|
display: grid;
|
|
963
|
-
grid-template-columns: minmax(0, 1fr) 96px 48px 48px;
|
|
1054
|
+
grid-template-columns: minmax(0, 1fr) 96px 48px 48px 28px;
|
|
964
1055
|
align-items: center;
|
|
965
1056
|
gap: 6px;
|
|
966
1057
|
min-width: 0;
|
|
967
1058
|
padding: 3px 0;
|
|
968
|
-
border-top: 1px solid color-mix(in srgb, var(--hive-line
|
|
1059
|
+
border-top: 1px solid color-mix(in srgb, var(--hive-line) 70%, transparent);
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
.hive-limits-cell.is-action { min-width: 28px; }
|
|
1063
|
+
|
|
1064
|
+
.hive-role-remove {
|
|
1065
|
+
width: 28px;
|
|
1066
|
+
min-width: 28px;
|
|
1067
|
+
height: 24px;
|
|
1068
|
+
padding: 0;
|
|
1069
|
+
border-color: transparent;
|
|
1070
|
+
background: transparent;
|
|
1071
|
+
color: var(--hive-danger);
|
|
1072
|
+
font-size: 14px;
|
|
1073
|
+
line-height: 1;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
.hive-role-remove:hover:not(:disabled) {
|
|
1077
|
+
border-color: color-mix(in srgb, var(--hive-danger) 55%, var(--hive-line));
|
|
1078
|
+
background: color-mix(in srgb, var(--hive-danger) 12%, transparent);
|
|
969
1079
|
}
|
|
970
1080
|
|
|
971
1081
|
.hive-limits-row.is-head {
|
|
972
1082
|
padding: 0 0 2px;
|
|
973
1083
|
border-top: 0;
|
|
974
1084
|
color: var(--hive-fg-faint);
|
|
975
|
-
font-size:
|
|
1085
|
+
font-size: 12px;
|
|
976
1086
|
letter-spacing: 0.06em;
|
|
977
1087
|
text-transform: uppercase;
|
|
978
1088
|
}
|
|
979
1089
|
|
|
980
1090
|
.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:
|
|
1091
|
+
.hive-limits-cell.is-number { text-align: right; color: var(--hive-fg-soft); font-family: var(--hive-mono); font-size: 12px; }
|
|
982
1092
|
|
|
983
1093
|
.hive-limits-role {
|
|
984
1094
|
overflow: hidden;
|
|
985
|
-
color: var(--hive-fg
|
|
1095
|
+
color: var(--hive-fg);
|
|
986
1096
|
font-family: var(--hive-mono);
|
|
987
|
-
font-size:
|
|
1097
|
+
font-size: 12px;
|
|
988
1098
|
text-overflow: ellipsis;
|
|
989
1099
|
white-space: nowrap;
|
|
990
1100
|
}
|
|
@@ -993,30 +1103,30 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
993
1103
|
width: 100%;
|
|
994
1104
|
padding: 4px 5px;
|
|
995
1105
|
font-family: var(--hive-mono);
|
|
996
|
-
font-size:
|
|
1106
|
+
font-size: 12px;
|
|
997
1107
|
text-align: right;
|
|
998
1108
|
}
|
|
999
1109
|
|
|
1000
1110
|
.hive-limits-hint {
|
|
1001
1111
|
color: var(--hive-fg-faint);
|
|
1002
|
-
font-size:
|
|
1003
|
-
line-height: 1.
|
|
1112
|
+
font-size: 12px;
|
|
1113
|
+
line-height: 1.5;
|
|
1004
1114
|
}
|
|
1005
1115
|
|
|
1006
1116
|
.hive-limits-empty {
|
|
1007
1117
|
color: var(--hive-fg-faint);
|
|
1008
|
-
font-size:
|
|
1118
|
+
font-size: 12px;
|
|
1009
1119
|
line-height: 1.5;
|
|
1010
1120
|
}
|
|
1011
1121
|
|
|
1012
1122
|
.hive-limits-error {
|
|
1013
1123
|
padding: 8px 9px;
|
|
1014
|
-
border-left:
|
|
1015
|
-
border-radius: 0
|
|
1124
|
+
border-left: 1px solid var(--hive-danger);
|
|
1125
|
+
border-radius: 0 var(--hive-radius-sm) var(--hive-radius-sm) 0;
|
|
1016
1126
|
background: color-mix(in srgb, var(--hive-danger) 10%, transparent);
|
|
1017
|
-
color: color-mix(in srgb, var(--hive-danger) 82%, var(--hive-fg
|
|
1127
|
+
color: color-mix(in srgb, var(--hive-danger) 82%, var(--hive-fg));
|
|
1018
1128
|
font-family: var(--hive-mono);
|
|
1019
|
-
font-size:
|
|
1129
|
+
font-size: 12px;
|
|
1020
1130
|
line-height: 1.5;
|
|
1021
1131
|
overflow-wrap: anywhere;
|
|
1022
1132
|
white-space: pre-wrap;
|
|
@@ -1026,15 +1136,15 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1026
1136
|
|
|
1027
1137
|
.hive-status {
|
|
1028
1138
|
padding: 2px 8px;
|
|
1029
|
-
border: 1px solid color-mix(in srgb, var(--hive-danger) 40%, var(--hive-line
|
|
1139
|
+
border: 1px solid color-mix(in srgb, var(--hive-danger) 40%, var(--hive-line));
|
|
1030
1140
|
border-radius: 999px;
|
|
1031
1141
|
background: color-mix(in srgb, var(--hive-danger) 9%, transparent);
|
|
1032
1142
|
}
|
|
1033
1143
|
|
|
1034
1144
|
.hive-field-hint {
|
|
1035
1145
|
padding: 4px 7px;
|
|
1036
|
-
border: 1px solid color-mix(in srgb, var(--hive-line
|
|
1037
|
-
border-radius:
|
|
1146
|
+
border: 1px solid color-mix(in srgb, var(--hive-line) 70%, transparent);
|
|
1147
|
+
border-radius: var(--hive-radius-sm);
|
|
1038
1148
|
background: var(--hive-surface);
|
|
1039
1149
|
line-height: 1.5;
|
|
1040
1150
|
}
|
|
@@ -1051,7 +1161,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1051
1161
|
|
|
1052
1162
|
.hive-oldest-id {
|
|
1053
1163
|
font-family: var(--hive-mono);
|
|
1054
|
-
font-size:
|
|
1164
|
+
font-size: 12px;
|
|
1055
1165
|
font-weight: 400;
|
|
1056
1166
|
overflow-wrap: anywhere;
|
|
1057
1167
|
}
|
|
@@ -1063,19 +1173,19 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1063
1173
|
gap: 5px;
|
|
1064
1174
|
min-width: 0;
|
|
1065
1175
|
padding: 1px 8px;
|
|
1066
|
-
border: 1px solid var(--hive-line
|
|
1176
|
+
border: 1px solid var(--hive-line);
|
|
1067
1177
|
border-radius: 999px;
|
|
1068
1178
|
background: var(--hive-surface);
|
|
1069
1179
|
color: var(--hive-fg-soft);
|
|
1070
|
-
font-size:
|
|
1071
|
-
line-height: 1.
|
|
1180
|
+
font-size: 12px;
|
|
1181
|
+
line-height: 1.5;
|
|
1072
1182
|
}
|
|
1073
1183
|
|
|
1074
1184
|
.hive-supervisor-inline.is-hidden { display: none; }
|
|
1075
1185
|
|
|
1076
1186
|
.hive-supervisor-inline-label {
|
|
1077
1187
|
color: var(--hive-fg-faint);
|
|
1078
|
-
font-size:
|
|
1188
|
+
font-size: 12px;
|
|
1079
1189
|
font-weight: 650;
|
|
1080
1190
|
letter-spacing: 0.1em;
|
|
1081
1191
|
text-transform: uppercase;
|
|
@@ -1094,8 +1204,8 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1094
1204
|
|
|
1095
1205
|
.hive-supervisor-inline-resume {
|
|
1096
1206
|
padding: 1px 6px;
|
|
1097
|
-
font-size:
|
|
1098
|
-
line-height: 1.
|
|
1207
|
+
font-size: 12px;
|
|
1208
|
+
line-height: 1.5;
|
|
1099
1209
|
}
|
|
1100
1210
|
|
|
1101
1211
|
.hive-supervisor-inline-resume.is-hidden { display: none; }
|
|
@@ -1105,7 +1215,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1105
1215
|
min-width: 28px;
|
|
1106
1216
|
padding-inline: 8px;
|
|
1107
1217
|
font-size: 14px;
|
|
1108
|
-
line-height: 1.
|
|
1218
|
+
line-height: 1.5;
|
|
1109
1219
|
}
|
|
1110
1220
|
|
|
1111
1221
|
.hive-settings-section {
|
|
@@ -1114,14 +1224,14 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1114
1224
|
gap: 8px;
|
|
1115
1225
|
min-width: 0;
|
|
1116
1226
|
padding-top: 12px;
|
|
1117
|
-
border-top: 1px solid color-mix(in srgb, var(--hive-line
|
|
1227
|
+
border-top: 1px solid color-mix(in srgb, var(--hive-line) 70%, transparent);
|
|
1118
1228
|
}
|
|
1119
1229
|
|
|
1120
1230
|
.hive-settings-section:first-of-type { padding-top: 0; border-top: 0; }
|
|
1121
1231
|
|
|
1122
1232
|
.hive-settings-section-title {
|
|
1123
|
-
color: var(--hive-fg
|
|
1124
|
-
font-size:
|
|
1233
|
+
color: var(--hive-fg);
|
|
1234
|
+
font-size: 12px;
|
|
1125
1235
|
font-weight: 650;
|
|
1126
1236
|
letter-spacing: 0.08em;
|
|
1127
1237
|
text-transform: uppercase;
|
|
@@ -1137,12 +1247,12 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1137
1247
|
|
|
1138
1248
|
.hive-settings-note {
|
|
1139
1249
|
padding: 8px 10px;
|
|
1140
|
-
border: 1px solid color-mix(in srgb, var(--hive-warn) 38%, var(--hive-line
|
|
1141
|
-
border-radius:
|
|
1250
|
+
border: 1px solid color-mix(in srgb, var(--hive-warn) 38%, var(--hive-line));
|
|
1251
|
+
border-radius: var(--hive-radius-sm);
|
|
1142
1252
|
background: color-mix(in srgb, var(--hive-warn) 9%, transparent);
|
|
1143
1253
|
color: var(--hive-warn);
|
|
1144
|
-
font-size:
|
|
1145
|
-
line-height: 1.
|
|
1254
|
+
font-size: 12px;
|
|
1255
|
+
line-height: 1.5;
|
|
1146
1256
|
}
|
|
1147
1257
|
|
|
1148
1258
|
/* -------------------------------------------------------------------- spacing */
|
|
@@ -1181,18 +1291,18 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1181
1291
|
.hive-plan-hint,
|
|
1182
1292
|
.hive-limits-description,
|
|
1183
1293
|
.hive-limits-hint,
|
|
1184
|
-
.hive-queen-text { max-width: 76ch; line-height: 1.
|
|
1294
|
+
.hive-queen-text { max-width: 76ch; line-height: 1.5; }
|
|
1185
1295
|
|
|
1186
1296
|
.hive-empty,
|
|
1187
1297
|
.hive-filter-empty,
|
|
1188
1298
|
.hive-agents-empty {
|
|
1189
1299
|
padding: 12px 14px;
|
|
1190
|
-
border: 1px solid var(--hive-line
|
|
1191
|
-
border-radius:
|
|
1300
|
+
border: 1px solid var(--hive-line);
|
|
1301
|
+
border-radius: var(--hive-radius-md);
|
|
1192
1302
|
background: var(--hive-surface);
|
|
1193
1303
|
color: var(--hive-fg-soft);
|
|
1194
|
-
font-size:
|
|
1195
|
-
line-height: 1.
|
|
1304
|
+
font-size: 12px;
|
|
1305
|
+
line-height: 1.5;
|
|
1196
1306
|
text-align: left;
|
|
1197
1307
|
}
|
|
1198
1308
|
|
|
@@ -1202,20 +1312,20 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1202
1312
|
.hive-limits-hint,
|
|
1203
1313
|
.hive-note {
|
|
1204
1314
|
padding: 8px 10px;
|
|
1205
|
-
border: 1px solid color-mix(in srgb, var(--hive-line
|
|
1206
|
-
border-radius:
|
|
1315
|
+
border: 1px solid color-mix(in srgb, var(--hive-line) 80%, transparent);
|
|
1316
|
+
border-radius: var(--hive-radius-sm);
|
|
1207
1317
|
background: var(--hive-surface);
|
|
1208
1318
|
color: var(--hive-fg-soft);
|
|
1209
|
-
font-size:
|
|
1210
|
-
line-height: 1.
|
|
1319
|
+
font-size: 12px;
|
|
1320
|
+
line-height: 1.5;
|
|
1211
1321
|
}
|
|
1212
1322
|
|
|
1213
1323
|
.hive-init-readonly {
|
|
1214
1324
|
padding: 8px 10px;
|
|
1215
|
-
border: 1px solid color-mix(in srgb, var(--hive-warn) 38%, var(--hive-line
|
|
1216
|
-
border-radius:
|
|
1325
|
+
border: 1px solid color-mix(in srgb, var(--hive-warn) 38%, var(--hive-line));
|
|
1326
|
+
border-radius: var(--hive-radius-sm);
|
|
1217
1327
|
background: color-mix(in srgb, var(--hive-warn) 9%, transparent);
|
|
1218
|
-
line-height: 1.
|
|
1328
|
+
line-height: 1.5;
|
|
1219
1329
|
}
|
|
1220
1330
|
|
|
1221
1331
|
.hive-icon-button {
|
|
@@ -1230,7 +1340,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1230
1340
|
border: 0;
|
|
1231
1341
|
border-color: transparent;
|
|
1232
1342
|
background: transparent;
|
|
1233
|
-
color: color-mix(in srgb, var(--hive-fg
|
|
1343
|
+
color: color-mix(in srgb, var(--hive-fg) 80%, transparent);
|
|
1234
1344
|
font-size: 0;
|
|
1235
1345
|
line-height: 1;
|
|
1236
1346
|
box-shadow: none;
|
|
@@ -1241,13 +1351,13 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1241
1351
|
border: 0;
|
|
1242
1352
|
border-color: transparent;
|
|
1243
1353
|
background: transparent;
|
|
1244
|
-
color: var(--hive-fg
|
|
1354
|
+
color: var(--hive-fg);
|
|
1245
1355
|
}
|
|
1246
1356
|
|
|
1247
1357
|
.hive-icon-button:active { transform: none; }
|
|
1248
1358
|
|
|
1249
1359
|
.hive-icon-button:focus-visible {
|
|
1250
|
-
outline: 2px solid var(--hive-accent
|
|
1360
|
+
outline: 2px solid var(--hive-accent);
|
|
1251
1361
|
outline-offset: 1px;
|
|
1252
1362
|
}
|
|
1253
1363
|
|
|
@@ -1293,7 +1403,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1293
1403
|
display: flex;
|
|
1294
1404
|
align-items: center;
|
|
1295
1405
|
gap: 4px;
|
|
1296
|
-
border-bottom: 1px solid var(--hive-line
|
|
1406
|
+
border-bottom: 1px solid var(--hive-line);
|
|
1297
1407
|
}
|
|
1298
1408
|
|
|
1299
1409
|
.hive-settings-tab {
|
|
@@ -1303,20 +1413,20 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1303
1413
|
border-bottom: 2px solid transparent;
|
|
1304
1414
|
background: transparent;
|
|
1305
1415
|
color: var(--hive-fg-soft);
|
|
1306
|
-
font-size:
|
|
1307
|
-
line-height: 1.
|
|
1416
|
+
font-size: 12px;
|
|
1417
|
+
line-height: 1.5;
|
|
1308
1418
|
cursor: pointer;
|
|
1309
1419
|
}
|
|
1310
1420
|
|
|
1311
|
-
.hive-settings-tab:hover { color: var(--hive-fg
|
|
1421
|
+
.hive-settings-tab:hover { color: var(--hive-fg); }
|
|
1312
1422
|
|
|
1313
1423
|
.hive-settings-tab[aria-selected="true"] {
|
|
1314
|
-
border-bottom-color: var(--hive-accent
|
|
1315
|
-
color: var(--hive-fg
|
|
1424
|
+
border-bottom-color: var(--hive-accent);
|
|
1425
|
+
color: var(--hive-fg);
|
|
1316
1426
|
}
|
|
1317
1427
|
|
|
1318
1428
|
.hive-settings-tab:focus-visible {
|
|
1319
|
-
outline: 2px solid var(--hive-accent
|
|
1429
|
+
outline: 2px solid var(--hive-accent);
|
|
1320
1430
|
outline-offset: -2px;
|
|
1321
1431
|
}
|
|
1322
1432
|
|
|
@@ -1327,6 +1437,17 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1327
1437
|
border-top: 0;
|
|
1328
1438
|
}
|
|
1329
1439
|
|
|
1440
|
+
.hive-help-queen code,
|
|
1441
|
+
.hive-queen-command {
|
|
1442
|
+
padding: 1px 4px;
|
|
1443
|
+
border: 1px solid var(--hive-line);
|
|
1444
|
+
border-radius: var(--hive-radius-sm);
|
|
1445
|
+
background: var(--hive-surface);
|
|
1446
|
+
font-family: var(--hive-mono);
|
|
1447
|
+
font-size: 12px;
|
|
1448
|
+
white-space: nowrap;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1330
1451
|
.hive-settings-form-actions {
|
|
1331
1452
|
display: flex;
|
|
1332
1453
|
align-items: center;
|
|
@@ -1344,8 +1465,8 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1344
1465
|
height: 28px;
|
|
1345
1466
|
min-height: 28px;
|
|
1346
1467
|
padding: 0 14px;
|
|
1347
|
-
border-radius:
|
|
1348
|
-
font-size:
|
|
1468
|
+
border-radius: var(--hive-radius-md);
|
|
1469
|
+
font-size: 12px;
|
|
1349
1470
|
line-height: 1;
|
|
1350
1471
|
}
|
|
1351
1472
|
|
|
@@ -1355,27 +1476,27 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1355
1476
|
}
|
|
1356
1477
|
|
|
1357
1478
|
.hive-settings-primary {
|
|
1358
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
1359
|
-
background: var(--hive-accent
|
|
1360
|
-
color: var(--hive-bg
|
|
1479
|
+
border-color: color-mix(in srgb, var(--hive-accent) 70%, var(--hive-line));
|
|
1480
|
+
background: var(--hive-accent);
|
|
1481
|
+
color: var(--hive-bg);
|
|
1361
1482
|
}
|
|
1362
1483
|
|
|
1363
1484
|
.hive-settings-primary:hover {
|
|
1364
|
-
border-color: var(--hive-accent
|
|
1365
|
-
background: color-mix(in srgb, var(--hive-accent
|
|
1366
|
-
color: var(--hive-bg
|
|
1485
|
+
border-color: var(--hive-accent);
|
|
1486
|
+
background: color-mix(in srgb, var(--hive-accent) 86%, white);
|
|
1487
|
+
color: var(--hive-bg);
|
|
1367
1488
|
}
|
|
1368
1489
|
|
|
1369
1490
|
.hive-settings-secondary {
|
|
1370
|
-
border-color: var(--hive-line
|
|
1491
|
+
border-color: var(--hive-line);
|
|
1371
1492
|
background: var(--hive-surface-strong);
|
|
1372
|
-
color: var(--hive-fg
|
|
1493
|
+
color: var(--hive-fg);
|
|
1373
1494
|
}
|
|
1374
1495
|
|
|
1375
1496
|
.hive-settings-secondary:hover {
|
|
1376
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
1497
|
+
border-color: color-mix(in srgb, var(--hive-accent) 40%, var(--hive-line));
|
|
1377
1498
|
background: var(--hive-surface-hover);
|
|
1378
|
-
color: var(--hive-fg
|
|
1499
|
+
color: var(--hive-fg);
|
|
1379
1500
|
}
|
|
1380
1501
|
|
|
1381
1502
|
.hive-settings-form-actions .hive-btn:disabled {
|
|
@@ -1392,10 +1513,10 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1392
1513
|
max-width: 92vw;
|
|
1393
1514
|
height: auto;
|
|
1394
1515
|
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:
|
|
1516
|
+
border: 1px solid var(--hive-line);
|
|
1517
|
+
border-radius: var(--hive-radius-lg);
|
|
1518
|
+
background: color-mix(in srgb, var(--hive-bg) 97%, var(--hive-fg) 3%);
|
|
1519
|
+
box-shadow: none;
|
|
1399
1520
|
overflow: hidden;
|
|
1400
1521
|
}
|
|
1401
1522
|
|
|
@@ -1406,7 +1527,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1406
1527
|
overflow-wrap: anywhere;
|
|
1407
1528
|
color: var(--hive-fg-soft);
|
|
1408
1529
|
font-family: var(--hive-mono);
|
|
1409
|
-
font-size:
|
|
1530
|
+
font-size: 12px;
|
|
1410
1531
|
line-height: 1.5;
|
|
1411
1532
|
}
|
|
1412
1533
|
|
|
@@ -1427,35 +1548,57 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1427
1548
|
overflow: auto;
|
|
1428
1549
|
}
|
|
1429
1550
|
|
|
1430
|
-
.hive-card-
|
|
1431
|
-
border: 1px solid var(--hive-line
|
|
1432
|
-
border-radius:
|
|
1551
|
+
.hive-card-run {
|
|
1552
|
+
border: 1px solid var(--hive-line);
|
|
1553
|
+
border-radius: var(--hive-radius-md);
|
|
1433
1554
|
background: var(--hive-surface);
|
|
1434
1555
|
overflow: hidden;
|
|
1435
1556
|
}
|
|
1436
1557
|
|
|
1437
|
-
.hive-card-
|
|
1558
|
+
.hive-card-run-title {
|
|
1438
1559
|
padding: 8px 10px;
|
|
1439
1560
|
color: var(--hive-fg-soft);
|
|
1440
|
-
font-size:
|
|
1561
|
+
font-size: 12px;
|
|
1441
1562
|
font-weight: 650;
|
|
1442
1563
|
letter-spacing: 0.08em;
|
|
1443
1564
|
line-height: 1.5;
|
|
1444
1565
|
text-transform: uppercase;
|
|
1445
|
-
cursor: pointer;
|
|
1446
|
-
user-select: none;
|
|
1447
1566
|
}
|
|
1448
1567
|
|
|
1449
|
-
.hive-card-
|
|
1450
|
-
|
|
1568
|
+
.hive-card-run-meta {
|
|
1569
|
+
padding: 0 10px 8px;
|
|
1570
|
+
overflow-wrap: anywhere;
|
|
1571
|
+
color: var(--hive-fg-soft);
|
|
1572
|
+
font-family: var(--hive-mono);
|
|
1573
|
+
font-size: 12px;
|
|
1574
|
+
line-height: 1.5;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
.hive-card-run-empty {
|
|
1578
|
+
margin: 0 10px 10px;
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
.hive-card-run-output {
|
|
1582
|
+
max-height: 360px;
|
|
1583
|
+
max-height: 20lh; /* longer output scrolls inside the pre */
|
|
1451
1584
|
margin: 0;
|
|
1452
1585
|
padding: 10px;
|
|
1453
1586
|
overflow: auto;
|
|
1454
|
-
border-top: 1px solid var(--hive-line
|
|
1587
|
+
border-top: 1px solid var(--hive-line);
|
|
1588
|
+
background: var(--hive-surface);
|
|
1455
1589
|
font-family: var(--hive-mono);
|
|
1456
|
-
font-size:
|
|
1590
|
+
font-size: 12px;
|
|
1457
1591
|
line-height: 1.5;
|
|
1458
1592
|
white-space: pre-wrap;
|
|
1593
|
+
overflow-wrap: anywhere;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
.hive-card-run-foot {
|
|
1597
|
+
display: flex;
|
|
1598
|
+
justify-content: flex-end;
|
|
1599
|
+
gap: 8px;
|
|
1600
|
+
padding: 8px 10px;
|
|
1601
|
+
border-top: 1px solid var(--hive-line);
|
|
1459
1602
|
}
|
|
1460
1603
|
|
|
1461
1604
|
.hive-card-actions {
|
|
@@ -1486,24 +1629,440 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1486
1629
|
.hive-add-acceptance { min-height: 70px; }
|
|
1487
1630
|
|
|
1488
1631
|
.hive-add-submit {
|
|
1489
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
1490
|
-
background: var(--hive-accent
|
|
1491
|
-
color: var(--hive-bg
|
|
1632
|
+
border-color: color-mix(in srgb, var(--hive-accent) 70%, var(--hive-line));
|
|
1633
|
+
background: var(--hive-accent);
|
|
1634
|
+
color: var(--hive-bg);
|
|
1492
1635
|
}
|
|
1493
1636
|
|
|
1494
1637
|
.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
|
|
1638
|
+
border-color: var(--hive-accent);
|
|
1639
|
+
background: color-mix(in srgb, var(--hive-accent) 86%, white);
|
|
1640
|
+
color: var(--hive-bg);
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
/* Unified type scale: 12 / 14 / 16 / 18 only. */
|
|
1644
|
+
.hive { font-size: 14px; line-height: 1.5; }
|
|
1645
|
+
.hive * { font-size: 14px; line-height: 1.5; }
|
|
1646
|
+
.hive-dialog-title,
|
|
1647
|
+
.hive-help-title { font-size: 16px; line-height: 1.5; }
|
|
1648
|
+
.hive-settings-section-title,
|
|
1649
|
+
.hive-section-label,
|
|
1650
|
+
.hive-plan-preview-head,
|
|
1651
|
+
.hive-events-title,
|
|
1652
|
+
.hive-lane-head { font-size: 14px; font-weight: 700; line-height: 1.5; }
|
|
1653
|
+
.hive-card-title { font-size: 14px; font-weight: 600; line-height: 1.35; }
|
|
1654
|
+
.hive-btn,
|
|
1655
|
+
.hive-settings-form-actions .hive-btn,
|
|
1656
|
+
.hive-settings-tab,
|
|
1657
|
+
.hive-stage-chip,
|
|
1658
|
+
.hive-agent-pill,
|
|
1659
|
+
.hive-events-toggle,
|
|
1660
|
+
.hive-supervisor-resume,
|
|
1661
|
+
.hive-queen-takeover,
|
|
1662
|
+
.hive-queen-dismiss { font-size: 14px; line-height: 1.5; }
|
|
1663
|
+
.hive-input,
|
|
1664
|
+
.hive-textarea,
|
|
1665
|
+
.hive-limits-input { font-size: 14px; line-height: 1.5; }
|
|
1666
|
+
.hive-help-desc,
|
|
1667
|
+
.hive-help-note,
|
|
1668
|
+
.hive-help-hint,
|
|
1669
|
+
.hive-field-label,
|
|
1670
|
+
.hive-field-hint,
|
|
1671
|
+
.hive-limits-description,
|
|
1672
|
+
.hive-limits-hint,
|
|
1673
|
+
.hive-limits-empty,
|
|
1674
|
+
.hive-settings-note,
|
|
1675
|
+
.hive-empty,
|
|
1676
|
+
.hive-filter-empty,
|
|
1677
|
+
.hive-plan-empty,
|
|
1678
|
+
.hive-plan-hint,
|
|
1679
|
+
.hive-plan-meta,
|
|
1680
|
+
.hive-plan-error,
|
|
1681
|
+
.hive-init-description,
|
|
1682
|
+
.hive-queen-text,
|
|
1683
|
+
.hive-agent-empty,
|
|
1684
|
+
.hive-card-meta,
|
|
1685
|
+
.hive-card-reason,
|
|
1686
|
+
.hive-card-scope,
|
|
1687
|
+
.hive-toast-detail,
|
|
1688
|
+
.hive-limits-row.is-head,
|
|
1689
|
+
.hive-queen-badge { font-size: 12px; line-height: 1.5; }
|
|
1690
|
+
.hive-repo,
|
|
1691
|
+
.hive-card-subline,
|
|
1692
|
+
.hive-card-id,
|
|
1693
|
+
.hive-json,
|
|
1694
|
+
.hive-plan-raw,
|
|
1695
|
+
.hive-plan-key,
|
|
1696
|
+
.hive-plan-chip,
|
|
1697
|
+
.hive-help-params,
|
|
1698
|
+
.hive-toast-detail,
|
|
1699
|
+
.hive-oldest-id,
|
|
1700
|
+
.hive-scope,
|
|
1701
|
+
.hive-supervisor-path,
|
|
1702
|
+
.hive-queen-command,
|
|
1703
|
+
.hive-dialog-eyebrow,
|
|
1704
|
+
.hive-limits-cell.is-number { font-size: 12px; line-height: 1.5; }
|
|
1705
|
+
.hive-dialog-close { font-size: 16px; line-height: 1; }
|
|
1706
|
+
.hive-role-remove { font-size: 16px; line-height: 1; }
|
|
1707
|
+
.hive-icon-button { font-size: 0; line-height: 1; }
|
|
1708
|
+
/* DSH design-token bridge. Neutral grayscale fallbacks keep standalone pages readable. */
|
|
1709
|
+
.hive, .hive-portal, .hive-dialog {
|
|
1710
|
+
--hive-bg: var(--dsw-alias-bg-base, #fff);
|
|
1711
|
+
--hive-bg-layer-1: var(--dsw-alias-bg-layer-1, #fff);
|
|
1712
|
+
--hive-bg-layer-2: var(--dsw-alias-bg-layer-2, #fff);
|
|
1713
|
+
--hive-bg-layer-3: var(--dsw-alias-bg-layer-3, #f5f5f5);
|
|
1714
|
+
--hive-line: var(--dsw-alias-border-l1, #d9d9d9);
|
|
1715
|
+
--hive-line-2: var(--dsw-alias-border-l2, #e8e8e8);
|
|
1716
|
+
--hive-fg: var(--dsw-alias-label-primary, #000);
|
|
1717
|
+
--hive-fg-soft: var(--dsw-alias-label-secondary, #4d4d4d);
|
|
1718
|
+
--hive-fg-faint: var(--dsw-alias-label-tertiary, #808080);
|
|
1719
|
+
--hive-accent: var(--dsw-alias-brand-primary, #000);
|
|
1720
|
+
--hive-hover: var(--dsw-alias-interactive-bg-hover, #f2f2f2);
|
|
1721
|
+
--hive-selected: var(--dsw-alias-border-selected, #000);
|
|
1722
|
+
--hive-danger: var(--dsw-alias-state-error-primary, #000);
|
|
1723
|
+
--hive-ok: var(--dsw-alias-state-success-primary, #000);
|
|
1724
|
+
--hive-warn: var(--dsw-alias-state-warn-primary, #000);
|
|
1725
|
+
--hive-info: var(--dsw-alias-brand-primary, #000);
|
|
1726
|
+
--hive-radius-sm: var(--dsw-radius-sm, 4px);
|
|
1727
|
+
--hive-radius-md: var(--dsw-radius-md, 8px);
|
|
1728
|
+
--hive-radius-lg: var(--dsw-radius-lg, 12px);
|
|
1729
|
+
--hive-elevation: var(--dsw-elevation-panel, 0 12px 32px rgba(0, 0, 0, 0.18));
|
|
1730
|
+
--hive-surface: var(--hive-bg-layer-1);
|
|
1731
|
+
--hive-surface-strong: var(--hive-bg-layer-2);
|
|
1732
|
+
--hive-surface-hover: var(--hive-hover);
|
|
1733
|
+
--hive-accent-soft: color-mix(in srgb, var(--hive-accent) 14%, transparent);
|
|
1734
|
+
--hive-label-on-brand: var(--hive-bg);
|
|
1735
|
+
--hive-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
|
|
1736
|
+
}
|
|
1737
|
+
/* Tokenized component treatment. */
|
|
1738
|
+
.hive { background: var(--hive-bg); color: var(--hive-fg); border-color: var(--hive-line); border-radius: var(--hive-radius-lg); }
|
|
1739
|
+
.hive-bar { background: var(--hive-bg-layer-1); border-bottom-color: var(--hive-line); gap: 8px; }
|
|
1740
|
+
.hive-main,
|
|
1741
|
+
.hive-board { background: var(--hive-bg); }
|
|
1742
|
+
.hive-agents,
|
|
1743
|
+
.hive-events { background: var(--hive-bg-layer-1); border-color: var(--hive-line); }
|
|
1744
|
+
.hive-lane { background: var(--hive-bg-layer-1); border-color: var(--hive-line); border-radius: var(--hive-radius-md); }
|
|
1745
|
+
.hive-card { background: var(--hive-bg-layer-1); border: 1px solid var(--hive-line); border-radius: var(--hive-radius-md); box-shadow: none; }
|
|
1746
|
+
.hive-card:hover { background: var(--hive-hover); border-color: var(--hive-line); }
|
|
1747
|
+
.hive-btn { background: transparent; border: 1px solid var(--hive-line); color: var(--hive-fg); border-radius: var(--hive-radius-md); }
|
|
1748
|
+
.hive-btn:hover { background: var(--hive-hover); border-color: var(--hive-line); color: var(--hive-fg); }
|
|
1749
|
+
.hive-btn-ghost { background: transparent; border-color: transparent; color: var(--hive-fg-soft); }
|
|
1750
|
+
.hive-btn-ghost:hover { background: var(--hive-hover); border-color: transparent; color: var(--hive-fg); }
|
|
1751
|
+
.hive-btn-danger { background: transparent; border-color: var(--hive-danger); color: var(--hive-danger); }
|
|
1752
|
+
.hive-btn-danger:hover:not(:disabled) { background: var(--hive-hover); border-color: var(--hive-danger); color: var(--hive-danger); }
|
|
1753
|
+
.hive-settings-primary,
|
|
1754
|
+
.hive-add-submit { background: var(--hive-accent); border-color: var(--hive-accent); color: var(--hive-label-on-brand); }
|
|
1755
|
+
.hive-settings-primary:hover:not(:disabled),
|
|
1756
|
+
.hive-add-submit:hover:not(:disabled) { background: var(--hive-accent); border-color: var(--hive-accent); color: var(--hive-label-on-brand); }
|
|
1757
|
+
.hive-settings-secondary { background: transparent; border-color: var(--hive-line); color: var(--hive-fg); }
|
|
1758
|
+
.hive-settings-secondary:hover { background: var(--hive-hover); border-color: var(--hive-line); color: var(--hive-fg); }
|
|
1759
|
+
.hive-input,
|
|
1760
|
+
.hive-textarea,
|
|
1761
|
+
.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); }
|
|
1762
|
+
.hive-input:focus,
|
|
1763
|
+
.hive-textarea:focus,
|
|
1764
|
+
.hive-limits-input:focus { outline: 1px solid var(--hive-selected); outline-offset: 0; }
|
|
1765
|
+
.hive-dialog,
|
|
1766
|
+
.hive-add-dialog,
|
|
1767
|
+
.hive-settings-dialog,
|
|
1768
|
+
.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); }
|
|
1769
|
+
.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); }
|
|
1770
|
+
.hive-drawer { background: var(--hive-bg-layer-2); border-left: 1px solid var(--hive-line); box-shadow: none; }
|
|
1771
|
+
.hive-json,
|
|
1772
|
+
.hive-plan-raw,
|
|
1773
|
+
.hive-plan-item,
|
|
1774
|
+
.hive-scope,
|
|
1775
|
+
.hive-init-card,
|
|
1776
|
+
.hive-limits-error,
|
|
1777
|
+
.hive-settings-note { background: var(--hive-bg-layer-1); border-color: var(--hive-line); border-radius: var(--hive-radius-sm); }
|
|
1778
|
+
.hive-limits-row { border-top-color: var(--hive-line-2); }
|
|
1779
|
+
.hive-limits-row:not(.is-head):hover { background: var(--hive-hover); }
|
|
1780
|
+
.hive-settings-tab[aria-selected="true"] { border-bottom-color: var(--hive-selected); }
|
|
1781
|
+
.hive-lane-head,
|
|
1782
|
+
.hive-dialog-head,
|
|
1783
|
+
.hive-dialog-foot,
|
|
1784
|
+
.hive-drawer-head,
|
|
1785
|
+
.hive-settings-tabs { border-color: var(--hive-line-2); }
|
|
1786
|
+
.hive-freeze-banner { background: transparent; border-bottom-color: var(--hive-warn); color: var(--hive-warn); }
|
|
1787
|
+
.hive-freeze-banner .hive-btn { background: transparent; border-color: var(--hive-line); color: var(--hive-fg); }
|
|
1788
|
+
.hive-queen-hint { background: var(--hive-bg-layer-1); border-color: var(--hive-line); }
|
|
1789
|
+
.hive-supervisor-inline,
|
|
1790
|
+
.hive-stat,
|
|
1791
|
+
.hive-status,
|
|
1792
|
+
.hive-queen-badge {
|
|
1793
|
+
display: inline-flex;
|
|
1794
|
+
align-items: center;
|
|
1795
|
+
gap: 6px;
|
|
1796
|
+
height: 22px;
|
|
1797
|
+
padding: 0 8px;
|
|
1798
|
+
border: 1px solid var(--hive-line);
|
|
1799
|
+
border-radius: 999px;
|
|
1800
|
+
background: transparent;
|
|
1801
|
+
color: var(--hive-fg-soft);
|
|
1802
|
+
font-size: 12px;
|
|
1803
|
+
font-weight: 400;
|
|
1804
|
+
line-height: 1;
|
|
1805
|
+
white-space: nowrap;
|
|
1806
|
+
}
|
|
1807
|
+
.hive-supervisor-inline { gap: 6px; }
|
|
1808
|
+
.hive-supervisor-inline-label { color: var(--hive-fg-soft); font-weight: 400; }
|
|
1809
|
+
.hive-supervisor-inline-state { display: inline-flex; align-items: center; gap: 6px; color: var(--hive-fg-soft); font-size: 12px; font-weight: 400; }
|
|
1810
|
+
.hive-supervisor-inline-state::before { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--hive-fg-faint); content: ""; }
|
|
1811
|
+
.hive-supervisor-inline-state.is-running::before { background: var(--hive-accent); }
|
|
1812
|
+
.hive-supervisor-inline-state.is-backoff::before { background: var(--hive-warn); }
|
|
1813
|
+
.hive-supervisor-inline-state.is-paused::before { background: var(--hive-fg-faint); }
|
|
1814
|
+
.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; }
|
|
1815
|
+
.hive-supervisor-inline-resume:hover { background: transparent; color: var(--hive-fg); }
|
|
1816
|
+
.hive-stats { flex-wrap: wrap; gap: 8px; }
|
|
1817
|
+
.hive-stat.is-warn { color: var(--hive-fg-soft); background: transparent; }
|
|
1818
|
+
.hive-stat strong { color: var(--hive-fg-soft); font-weight: 400; }
|
|
1819
|
+
.hive-status { color: var(--hive-fg-soft); }
|
|
1820
|
+
.hive-status::before { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--hive-danger); content: ""; font-size: 0; }
|
|
1821
|
+
.hive-status.is-info::before { background: var(--hive-accent); }
|
|
1822
|
+
.hive-queen-badge { color: var(--hive-fg-soft); }
|
|
1823
|
+
|
|
1824
|
+
.hive-portal {
|
|
1825
|
+
position: fixed;
|
|
1826
|
+
inset: 0;
|
|
1827
|
+
z-index: 2147483600;
|
|
1828
|
+
pointer-events: none;
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
.hive-portal > .hive-overlay { pointer-events: auto; }
|
|
1832
|
+
|
|
1833
|
+
/* Buttons: two explicit tiers. */
|
|
1834
|
+
.hive-btn {
|
|
1835
|
+
display: inline-flex;
|
|
1836
|
+
align-items: center;
|
|
1837
|
+
justify-content: center;
|
|
1838
|
+
gap: 6px;
|
|
1839
|
+
height: 28px;
|
|
1840
|
+
padding: 0 12px;
|
|
1841
|
+
border: 1px solid var(--hive-line-2);
|
|
1842
|
+
border-radius: var(--hive-radius-md);
|
|
1843
|
+
background: transparent;
|
|
1844
|
+
color: var(--hive-fg);
|
|
1845
|
+
font-size: 14px;
|
|
1846
|
+
font-weight: 600;
|
|
1847
|
+
line-height: 1.5;
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
.hive-btn:hover {
|
|
1851
|
+
border-color: var(--hive-line-2);
|
|
1852
|
+
background: var(--hive-hover);
|
|
1853
|
+
color: var(--hive-fg);
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
.hive-btn-ghost {
|
|
1857
|
+
border-color: transparent;
|
|
1858
|
+
background: transparent;
|
|
1859
|
+
color: var(--hive-fg-soft);
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
.hive-btn-ghost:hover {
|
|
1863
|
+
border-color: transparent;
|
|
1864
|
+
background: var(--hive-hover);
|
|
1865
|
+
color: var(--hive-fg);
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
.hive-btn-danger {
|
|
1869
|
+
border-color: var(--hive-danger);
|
|
1870
|
+
background: transparent;
|
|
1871
|
+
color: var(--hive-danger);
|
|
1498
1872
|
}
|
|
1499
1873
|
|
|
1874
|
+
.hive-btn-danger:hover:not(:disabled) {
|
|
1875
|
+
border-color: var(--hive-danger);
|
|
1876
|
+
background: var(--hive-hover);
|
|
1877
|
+
color: var(--hive-danger);
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
.hive-settings-primary,
|
|
1881
|
+
.hive-add-submit {
|
|
1882
|
+
border-color: var(--hive-accent);
|
|
1883
|
+
background: var(--hive-accent);
|
|
1884
|
+
color: var(--hive-label-on-brand);
|
|
1885
|
+
font-weight: 600;
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
.hive-settings-primary:hover:not(:disabled),
|
|
1889
|
+
.hive-add-submit:hover:not(:disabled) {
|
|
1890
|
+
border-color: var(--hive-accent);
|
|
1891
|
+
background: color-mix(in srgb, var(--hive-accent) 92%, #000);
|
|
1892
|
+
color: var(--hive-label-on-brand);
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
.hive-settings-primary:active:not(:disabled),
|
|
1896
|
+
.hive-add-submit:active:not(:disabled) {
|
|
1897
|
+
border-color: var(--hive-accent);
|
|
1898
|
+
background: color-mix(in srgb, var(--hive-accent) 84%, #000);
|
|
1899
|
+
color: var(--hive-label-on-brand);
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
.hive-settings-primary:focus-visible,
|
|
1903
|
+
.hive-add-submit:focus-visible {
|
|
1904
|
+
outline: 2px solid var(--hive-accent);
|
|
1905
|
+
outline-offset: 2px;
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1908
|
+
.hive-settings-secondary {
|
|
1909
|
+
border-color: var(--hive-line-2);
|
|
1910
|
+
background: transparent;
|
|
1911
|
+
color: var(--hive-fg);
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
.hive-settings-secondary:hover {
|
|
1915
|
+
border-color: var(--hive-line-2);
|
|
1916
|
+
background: var(--hive-hover);
|
|
1917
|
+
color: var(--hive-fg);
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
.hive-icon-button,
|
|
1921
|
+
.hive-dialog-close {
|
|
1922
|
+
height: 28px;
|
|
1923
|
+
padding: 0;
|
|
1924
|
+
border: 0;
|
|
1925
|
+
background: transparent;
|
|
1926
|
+
color: var(--hive-fg-soft);
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
.hive-icon-button:hover,
|
|
1930
|
+
.hive-dialog-close:hover {
|
|
1931
|
+
border: 0;
|
|
1932
|
+
background: var(--hive-hover);
|
|
1933
|
+
color: var(--hive-fg);
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
.hive-role-remove {
|
|
1937
|
+
height: 28px;
|
|
1938
|
+
min-height: 28px;
|
|
1939
|
+
padding: 0;
|
|
1940
|
+
border-color: transparent;
|
|
1941
|
+
background: transparent;
|
|
1942
|
+
color: var(--hive-danger);
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
/* Dialogs are portaled to the document body; keep them above the panel. */
|
|
1946
|
+
.hive-dialog,
|
|
1947
|
+
.hive-add-dialog,
|
|
1948
|
+
.hive-settings-dialog,
|
|
1949
|
+
.hive-card-dialog {
|
|
1950
|
+
border: 1px solid var(--hive-line);
|
|
1951
|
+
background: var(--hive-bg-layer-2);
|
|
1952
|
+
box-shadow: var(--dsw-elevation-panel, 0 12px 32px rgba(0, 0, 0, 0.18));
|
|
1953
|
+
}
|
|
1954
|
+
/* toolbar action rhythm */
|
|
1955
|
+
.hive-actions { gap: 8px; }
|
|
1956
|
+
.hive-actions > .hive-btn { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
|
|
1957
|
+
/* Dialog form containment: portal content must not create horizontal scroll. */
|
|
1958
|
+
.hive-portal,
|
|
1959
|
+
.hive-portal *,
|
|
1960
|
+
.hive-portal *::before,
|
|
1961
|
+
.hive-portal *::after { box-sizing: border-box; }
|
|
1962
|
+
|
|
1963
|
+
.hive-portal .hive-dialog { max-width: 92vw; overflow-x: hidden; }
|
|
1964
|
+
.hive-portal .hive-dialog-head,
|
|
1965
|
+
.hive-portal .hive-dialog-body,
|
|
1966
|
+
.hive-portal .hive-dialog-foot { padding-left: 16px; padding-right: 16px; }
|
|
1967
|
+
.hive-portal .hive-dialog-body { width: auto; min-width: 0; max-width: 100%; }
|
|
1968
|
+
.hive-portal .hive-dialog-body > * { margin-left: 0; margin-right: 0; max-width: 100%; min-width: 0; }
|
|
1969
|
+
.hive-portal .hive-field,
|
|
1970
|
+
.hive-portal .hive-field-row,
|
|
1971
|
+
.hive-portal .hive-settings-section,
|
|
1972
|
+
.hive-portal .hive-settings-tabpanel,
|
|
1973
|
+
.hive-portal .hive-limits-table { width: 100%; max-width: 100%; min-width: 0; margin-left: 0; margin-right: 0; }
|
|
1974
|
+
.hive-portal .hive-field-row > .hive-field { width: auto; flex: 1 1 160px; }
|
|
1975
|
+
.hive-portal .hive-input,
|
|
1976
|
+
.hive-portal .hive-textarea,
|
|
1977
|
+
.hive-portal select { width: 100%; min-width: 0; max-width: 100%; }
|
|
1978
|
+
.hive-portal .hive-limits-row {
|
|
1979
|
+
width: 100%;
|
|
1980
|
+
max-width: 100%;
|
|
1981
|
+
min-width: 0;
|
|
1982
|
+
grid-template-columns: minmax(0, 1fr) 96px 48px 48px 28px;
|
|
1983
|
+
}
|
|
1984
|
+
.hive-portal .hive-limits-cell,
|
|
1985
|
+
.hive-portal .hive-limits-role,
|
|
1986
|
+
.hive-portal .hive-dialog-title,
|
|
1987
|
+
.hive-portal .hive-card-subline,
|
|
1988
|
+
.hive-portal .hive-settings-role-name { min-width: 0; overflow-wrap: anywhere; }
|
|
1989
|
+
.hive-portal .hive-dialog-foot { flex-wrap: wrap; }
|
|
1990
|
+
.hive-portal .hive-dialog-body { overflow-x: hidden; }
|
|
1991
|
+
.hive-portal .hive-settings-tabs { flex-wrap: wrap; }
|
|
1992
|
+
.hive-portal .hive-card-actions,
|
|
1993
|
+
.hive-portal .hive-settings-form-actions { max-width: 100%; }
|
|
1994
|
+
/* Native <dialog>: top layer, browser-managed backdrop and focus trap. */
|
|
1995
|
+
.hive-dialog,
|
|
1996
|
+
.hive-dialog *,
|
|
1997
|
+
.hive-dialog *::before,
|
|
1998
|
+
.hive-dialog *::after { box-sizing: border-box; }
|
|
1999
|
+
|
|
2000
|
+
dialog.hive-dialog {
|
|
2001
|
+
position: fixed;
|
|
2002
|
+
inset: 0;
|
|
2003
|
+
margin: auto;
|
|
2004
|
+
padding: 0;
|
|
2005
|
+
width: min(560px, 100%);
|
|
2006
|
+
max-width: 92vw;
|
|
2007
|
+
max-height: 80vh;
|
|
2008
|
+
overflow: hidden;
|
|
2009
|
+
border: 1px solid var(--hive-line);
|
|
2010
|
+
border-radius: var(--hive-radius-lg);
|
|
2011
|
+
background: var(--hive-bg-layer-2);
|
|
2012
|
+
color: var(--hive-fg);
|
|
2013
|
+
box-shadow: var(--dsw-elevation-panel, 0 12px 32px rgba(0, 0, 0, 0.18));
|
|
2014
|
+
color-scheme: light dark;
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
dialog.hive-card-dialog { width: min(720px, 92vw); }
|
|
2018
|
+
|
|
2019
|
+
dialog.hive-dialog::backdrop {
|
|
2020
|
+
background: var(--dsw-alias-bg-mask-1, rgba(0, 0, 0, 0.24));
|
|
2021
|
+
backdrop-filter: var(--dsw-mask-blur, none);
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
dialog.hive-dialog .hive-dialog-head,
|
|
2025
|
+
dialog.hive-dialog .hive-dialog-body,
|
|
2026
|
+
dialog.hive-dialog .hive-dialog-foot { padding-left: 16px; padding-right: 16px; }
|
|
2027
|
+
dialog.hive-dialog .hive-dialog-body { width: auto; min-width: 0; max-width: 100%; overflow-x: hidden; }
|
|
2028
|
+
dialog.hive-dialog .hive-dialog-body > * { margin-left: 0; margin-right: 0; max-width: 100%; min-width: 0; }
|
|
2029
|
+
dialog.hive-dialog .hive-field,
|
|
2030
|
+
dialog.hive-dialog .hive-field-row,
|
|
2031
|
+
dialog.hive-dialog .hive-settings-section,
|
|
2032
|
+
dialog.hive-dialog .hive-settings-tabpanel,
|
|
2033
|
+
dialog.hive-dialog .hive-limits-table { width: 100%; max-width: 100%; min-width: 0; margin-left: 0; margin-right: 0; }
|
|
2034
|
+
dialog.hive-dialog .hive-field-row > .hive-field { width: auto; flex: 1 1 160px; }
|
|
2035
|
+
dialog.hive-dialog .hive-input,
|
|
2036
|
+
dialog.hive-dialog .hive-textarea,
|
|
2037
|
+
dialog.hive-dialog select { width: 100%; min-width: 0; max-width: 100%; }
|
|
2038
|
+
dialog.hive-dialog .hive-limits-row {
|
|
2039
|
+
width: 100%;
|
|
2040
|
+
max-width: 100%;
|
|
2041
|
+
min-width: 0;
|
|
2042
|
+
grid-template-columns: minmax(0, 1fr) 96px 48px 48px 28px;
|
|
2043
|
+
}
|
|
2044
|
+
dialog.hive-dialog .hive-limits-cell,
|
|
2045
|
+
dialog.hive-dialog .hive-limits-role,
|
|
2046
|
+
dialog.hive-dialog .hive-dialog-title,
|
|
2047
|
+
dialog.hive-dialog .hive-card-subline,
|
|
2048
|
+
dialog.hive-dialog .hive-settings-role-name { min-width: 0; overflow-wrap: anywhere; }
|
|
2049
|
+
dialog.hive-dialog .hive-dialog-foot { flex-wrap: wrap; }
|
|
2050
|
+
dialog.hive-dialog {
|
|
2051
|
+
display: flex;
|
|
2052
|
+
flex-direction: column;
|
|
2053
|
+
max-height: 80vh;
|
|
2054
|
+
}
|
|
2055
|
+
dialog.hive-dialog .hive-dialog-head,
|
|
2056
|
+
dialog.hive-dialog .hive-dialog-foot { flex: 0 0 auto; }
|
|
2057
|
+
dialog.hive-dialog .hive-dialog-body { flex: 1 1 auto; min-height: 0; overflow: auto; }
|
|
2058
|
+
.hive-card-run-output { max-height: 20lh; overflow: auto; }
|
|
2059
|
+
.hive-card-actions { flex-wrap: wrap; justify-content: flex-end; }
|
|
1500
2060
|
`;
|
|
1501
2061
|
|
|
1502
2062
|
const LANE_LABEL_KEYS = Object.freeze({
|
|
1503
2063
|
pending: "lane.pending",
|
|
1504
2064
|
claimed: "lane.claimed",
|
|
1505
2065
|
done: "lane.done",
|
|
1506
|
-
blocked: "lane.blocked",
|
|
1507
2066
|
failed: "lane.failed",
|
|
1508
2067
|
});
|
|
1509
2068
|
|
|
@@ -1526,18 +2085,16 @@ const messages = Object.freeze({
|
|
|
1526
2085
|
"action.retry": "retry",
|
|
1527
2086
|
"action.unfreeze": "Resume",
|
|
1528
2087
|
"pane.agents": "agents",
|
|
1529
|
-
"pane.board": "board",
|
|
2088
|
+
"pane.board": "Task board",
|
|
1530
2089
|
"pane.events": "events",
|
|
1531
|
-
"board.hint": "5 lanes",
|
|
1532
2090
|
"board.filtersAria": "Filter by state",
|
|
1533
2091
|
"board.all": "all",
|
|
1534
2092
|
"board.showAll": "Show all tasks",
|
|
1535
2093
|
"board.filterChip": "Show {lane} tasks ({count})",
|
|
1536
2094
|
"board.emptyFilter": "No tasks in this state.",
|
|
1537
2095
|
"lane.pending": "pending",
|
|
1538
|
-
"lane.claimed": "
|
|
2096
|
+
"lane.claimed": "In progress",
|
|
1539
2097
|
"lane.done": "done",
|
|
1540
|
-
"lane.blocked": "blocked",
|
|
1541
2098
|
"lane.failed": "failed",
|
|
1542
2099
|
"mode.free": "free",
|
|
1543
2100
|
"mode.freeze": "freeze",
|
|
@@ -1576,6 +2133,13 @@ const messages = Object.freeze({
|
|
|
1576
2133
|
"drawer.readOnly": "Read-only: writable=false.",
|
|
1577
2134
|
"drawer.removeClaimed": "A claimed task must be released or reopened before it can be deleted.",
|
|
1578
2135
|
"drawer.rawJson": "raw json",
|
|
2136
|
+
"drawer.lastRun": "Last run",
|
|
2137
|
+
"drawer.runOverlaps": "Also writing",
|
|
2138
|
+
"drawer.runLessons": "Read {count} lessons",
|
|
2139
|
+
"drawer.runNoLessons": "No lessons to read",
|
|
2140
|
+
"drawer.noRuns": "No runs yet",
|
|
2141
|
+
"drawer.copyOutput": "Copy output",
|
|
2142
|
+
"drawer.openChat": "Open agent chat",
|
|
1579
2143
|
"events.empty": "No events yet.",
|
|
1580
2144
|
"events.showAll": "Show all events",
|
|
1581
2145
|
"events.collapse": "Collapse events",
|
|
@@ -1596,8 +2160,8 @@ const messages = Object.freeze({
|
|
|
1596
2160
|
"limits.description": "Max agents working at the same time, per role; 0 pauses the role",
|
|
1597
2161
|
"limits.role": "Role",
|
|
1598
2162
|
"limits.limit": "Concurrency limit",
|
|
1599
|
-
"limits.inFlight": "
|
|
1600
|
-
"limits.queued": "
|
|
2163
|
+
"limits.inFlight": "Running",
|
|
2164
|
+
"limits.queued": "Waiting",
|
|
1601
2165
|
"limits.defaultHint": "0-999, default 5",
|
|
1602
2166
|
"limits.limitAria": "Concurrency limit for {role}",
|
|
1603
2167
|
"limits.save": "Save",
|
|
@@ -1609,7 +2173,10 @@ const messages = Object.freeze({
|
|
|
1609
2173
|
"limits.none": "No role data for this repository.",
|
|
1610
2174
|
"limits.close": "Close",
|
|
1611
2175
|
"limits.closeAria": "Close agent concurrency settings",
|
|
2176
|
+
"limits.removeRoleAria": "Delete role {name}",
|
|
2177
|
+
"limits.removeRoleConfirm": "Delete role {name}? Tasks already created will not be deleted.",
|
|
1612
2178
|
"settings.openAria": "Open settings for this repository",
|
|
2179
|
+
"dialog.closeAria": "Close",
|
|
1613
2180
|
"settings.title": "Settings",
|
|
1614
2181
|
"settings.tabLimits": "Concurrency limit",
|
|
1615
2182
|
"settings.tabRole": "Add role",
|
|
@@ -1649,7 +2216,7 @@ const messages = Object.freeze({
|
|
|
1649
2216
|
"add.titleAria": "New task title",
|
|
1650
2217
|
"add.role": "Role",
|
|
1651
2218
|
"add.roleAria": "Role for the new task",
|
|
1652
|
-
"add.scope": "
|
|
2219
|
+
"add.scope": "File scope",
|
|
1653
2220
|
"add.scopeAria": "File scope for the new task",
|
|
1654
2221
|
"add.after": "After task ids (comma separated, optional)",
|
|
1655
2222
|
"add.afterAria": "Tasks that must finish first",
|
|
@@ -1690,7 +2257,7 @@ const messages = Object.freeze({
|
|
|
1690
2257
|
"queen.dismiss": "Dismiss",
|
|
1691
2258
|
"queen.dismissAria": "Close this notice; it does not change Queen mode",
|
|
1692
2259
|
"help.queen": "Queen mode",
|
|
1693
|
-
"help.queenDesc": "Type /queen off to
|
|
2260
|
+
"help.queenDesc": "Type /queen off in the chat box to leave Queen mode; this session then returns to normal coding mode.",
|
|
1694
2261
|
"queen.status.active": "Queen active",
|
|
1695
2262
|
"queen.status.inactive": "Queen not active",
|
|
1696
2263
|
"queen.source.auto": "auto",
|
|
@@ -1708,7 +2275,7 @@ const messages = Object.freeze({
|
|
|
1708
2275
|
"help.action.claim": "Claim: lease a pending task for an agent.",
|
|
1709
2276
|
"help.action.done": "Done: mark a claimed task complete, optionally with a commit sha.",
|
|
1710
2277
|
"help.action.fail": "Fail: mark a claimed task failed and record the reason.",
|
|
1711
|
-
"help.action.retry": "Retry: put a failed
|
|
2278
|
+
"help.action.retry": "Retry: put a failed task back in the queue.",
|
|
1712
2279
|
"help.action.remove": "Delete this task card permanently. A claimed task has to be released or reopened first.",
|
|
1713
2280
|
"plan.dialogTitle": "Set the Queen a goal",
|
|
1714
2281
|
"plan.dialogAria": "Plan tasks from a goal",
|
|
@@ -1760,18 +2327,16 @@ const messages = Object.freeze({
|
|
|
1760
2327
|
"action.retry": "重试",
|
|
1761
2328
|
"action.unfreeze": "恢复",
|
|
1762
2329
|
"pane.agents": "智能体",
|
|
1763
|
-
"pane.board": "
|
|
2330
|
+
"pane.board": "任务看板",
|
|
1764
2331
|
"pane.events": "事件",
|
|
1765
|
-
"board.hint": "5 条泳道",
|
|
1766
2332
|
"board.filtersAria": "按状态筛选",
|
|
1767
2333
|
"board.all": "全部",
|
|
1768
2334
|
"board.showAll": "显示全部任务",
|
|
1769
2335
|
"board.filterChip": "只看{lane}任务({count})",
|
|
1770
2336
|
"board.emptyFilter": "该状态没有任务。",
|
|
1771
2337
|
"lane.pending": "待办",
|
|
1772
|
-
"lane.claimed": "
|
|
2338
|
+
"lane.claimed": "进行中",
|
|
1773
2339
|
"lane.done": "已完成",
|
|
1774
|
-
"lane.blocked": "受阻",
|
|
1775
2340
|
"lane.failed": "失败",
|
|
1776
2341
|
"mode.free": "正常",
|
|
1777
2342
|
"mode.freeze": "冻结",
|
|
@@ -1810,6 +2375,13 @@ const messages = Object.freeze({
|
|
|
1810
2375
|
"drawer.readOnly": "只读:writable=false。",
|
|
1811
2376
|
"drawer.removeClaimed": "已认领的任务必须先释放或重开才能删除。",
|
|
1812
2377
|
"drawer.rawJson": "原始 JSON",
|
|
2378
|
+
"drawer.lastRun": "最近一次执行",
|
|
2379
|
+
"drawer.runOverlaps": "同时写入",
|
|
2380
|
+
"drawer.runLessons": "读取了 {count} 条经验",
|
|
2381
|
+
"drawer.runNoLessons": "没有可读取的经验",
|
|
2382
|
+
"drawer.noRuns": "还没有执行记录",
|
|
2383
|
+
"drawer.copyOutput": "复制输出",
|
|
2384
|
+
"drawer.openChat": "打开智能体对话",
|
|
1813
2385
|
"events.empty": "暂无事件。",
|
|
1814
2386
|
"events.showAll": "展开全部事件",
|
|
1815
2387
|
"events.collapse": "收起事件",
|
|
@@ -1830,8 +2402,8 @@ const messages = Object.freeze({
|
|
|
1830
2402
|
"limits.description": "同时干活的智能体数量上限,按角色分别设置;0 表示暂停该角色",
|
|
1831
2403
|
"limits.role": "角色",
|
|
1832
2404
|
"limits.limit": "并发上限",
|
|
1833
|
-
"limits.inFlight": "
|
|
1834
|
-
"limits.queued": "
|
|
2405
|
+
"limits.inFlight": "运行",
|
|
2406
|
+
"limits.queued": "等待",
|
|
1835
2407
|
"limits.defaultHint": "0–999,默认 5",
|
|
1836
2408
|
"limits.limitAria": "{role} 的并发上限",
|
|
1837
2409
|
"limits.save": "保存",
|
|
@@ -1843,7 +2415,10 @@ const messages = Object.freeze({
|
|
|
1843
2415
|
"limits.none": "这个仓库没有角色数据。",
|
|
1844
2416
|
"limits.close": "关闭",
|
|
1845
2417
|
"limits.closeAria": "关闭智能体的并发上限设置",
|
|
2418
|
+
"limits.removeRoleAria": "删除角色 {name}",
|
|
2419
|
+
"limits.removeRoleConfirm": "确定删除角色 {name}?已创建的任务不会删除。",
|
|
1846
2420
|
"settings.openAria": "打开这个仓库的设置",
|
|
2421
|
+
"dialog.closeAria": "关闭",
|
|
1847
2422
|
"settings.title": "设置",
|
|
1848
2423
|
"settings.tabLimits": "并发上限",
|
|
1849
2424
|
"settings.tabRole": "添加角色",
|
|
@@ -1883,7 +2458,7 @@ const messages = Object.freeze({
|
|
|
1883
2458
|
"add.titleAria": "新任务标题",
|
|
1884
2459
|
"add.role": "角色",
|
|
1885
2460
|
"add.roleAria": "新任务角色",
|
|
1886
|
-
"add.scope": "
|
|
2461
|
+
"add.scope": "文件范围",
|
|
1887
2462
|
"add.scopeAria": "新任务的文件范围",
|
|
1888
2463
|
"add.after": "依赖任务(任务 ID,逗号分隔,可选)",
|
|
1889
2464
|
"add.afterAria": "需要先完成的任务",
|
|
@@ -1924,7 +2499,7 @@ const messages = Object.freeze({
|
|
|
1924
2499
|
"queen.dismiss": "关闭提示",
|
|
1925
2500
|
"queen.dismissAria": "关闭提示,不影响女王状态",
|
|
1926
2501
|
"help.queen": "女王模式",
|
|
1927
|
-
"help.queenDesc": "
|
|
2502
|
+
"help.queenDesc": "在对话框输入 /queen off 退出女王模式,退出后本会话恢复普通编码模式。",
|
|
1928
2503
|
"queen.status.active": "女王已接管",
|
|
1929
2504
|
"queen.status.inactive": "女王未接管",
|
|
1930
2505
|
"queen.source.auto": "自动",
|
|
@@ -2016,6 +2591,79 @@ function normalizeScope(scope) {
|
|
|
2016
2591
|
return [];
|
|
2017
2592
|
}
|
|
2018
2593
|
|
|
2594
|
+
/**
|
|
2595
|
+
* Normalize the optional `overlaps` announcements of a run record: other agents
|
|
2596
|
+
* have declared they are writing the same paths too. An entry without a
|
|
2597
|
+
* non-empty agent is dropped; a missing or malformed list is empty, so the
|
|
2598
|
+
* drawer renders no overlap row.
|
|
2599
|
+
* @param {unknown} value
|
|
2600
|
+
* @returns {Array<{key:string,agent:string,task:string,expiresAt:string}>}
|
|
2601
|
+
*/
|
|
2602
|
+
function normalizeOverlaps(value) {
|
|
2603
|
+
const overlaps = [];
|
|
2604
|
+
for (const entry of asArray(value)) {
|
|
2605
|
+
if (!isRecord(entry)) continue;
|
|
2606
|
+
const agent = asString(entry.agent);
|
|
2607
|
+
if (agent.trim() === "") continue;
|
|
2608
|
+
overlaps.push({
|
|
2609
|
+
key: asString(entry.key),
|
|
2610
|
+
agent,
|
|
2611
|
+
task: asString(entry.task),
|
|
2612
|
+
expiresAt: asString(entry.expiresAt),
|
|
2613
|
+
});
|
|
2614
|
+
}
|
|
2615
|
+
return overlaps;
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2618
|
+
/**
|
|
2619
|
+
* Normalize the optional `lessons` recall summary of a run record. A missing
|
|
2620
|
+
* or malformed record is null; a count-only, scopes-only or error-only record
|
|
2621
|
+
* survives so the drawer can still render its "no lessons" line.
|
|
2622
|
+
* @param {unknown} value
|
|
2623
|
+
* @returns {null|{count:number,scopes:string[],error?:string}}
|
|
2624
|
+
*/
|
|
2625
|
+
function normalizeLessons(value) {
|
|
2626
|
+
if (!isRecord(value)) return null;
|
|
2627
|
+
const lessons = {
|
|
2628
|
+
count: asCount(value.count, 0),
|
|
2629
|
+
scopes: asArray(value.scopes)
|
|
2630
|
+
.map((scope) => asString(scope))
|
|
2631
|
+
.filter((scope) => scope.trim() !== ""),
|
|
2632
|
+
};
|
|
2633
|
+
const error = asString(value.error);
|
|
2634
|
+
if (error !== "") lessons.error = error;
|
|
2635
|
+
return lessons;
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2638
|
+
/**
|
|
2639
|
+
* Normalize `lastRun` (written by hive-runner to .hive/runs/<cardId>.json).
|
|
2640
|
+
* A missing record is null; a malformed one is dropped instead of leaking
|
|
2641
|
+
* half-parsed values into the drawer.
|
|
2642
|
+
* @param {unknown} value
|
|
2643
|
+
* @returns {null|{agent:string,startedAt:string,endedAt:string,status:string,commit:string,exitCode:number|null,sessionId:string,output:string,overlaps:Array<{key:string,agent:string,task:string,expiresAt:string}>,lessons:null|{count:number,scopes:string[],error?:string}}}
|
|
2644
|
+
*/
|
|
2645
|
+
function normalizeLastRun(value) {
|
|
2646
|
+
if (!isRecord(value)) return null;
|
|
2647
|
+
const status = asString(value.status);
|
|
2648
|
+
if (status !== "done" && status !== "failed" && status !== "running") return null;
|
|
2649
|
+
return {
|
|
2650
|
+
agent: asString(value.agent),
|
|
2651
|
+
startedAt: asString(value.startedAt),
|
|
2652
|
+
endedAt: asString(value.endedAt),
|
|
2653
|
+
status,
|
|
2654
|
+
commit: asString(value.commit),
|
|
2655
|
+
exitCode: typeof value.exitCode === "number" && Number.isFinite(value.exitCode) ? value.exitCode : null,
|
|
2656
|
+
// Hive-runner records the worker activation's Session id; a host that can
|
|
2657
|
+
// navigate can open that conversation, an older record simply has none.
|
|
2658
|
+
sessionId: asString(value.sessionId),
|
|
2659
|
+
output: asString(value.output),
|
|
2660
|
+
// Consensus announcements from the other writers of these paths.
|
|
2661
|
+
overlaps: normalizeOverlaps(value.overlaps),
|
|
2662
|
+
// Memory recall summary: how many lessons the worker read before its run.
|
|
2663
|
+
lessons: normalizeLessons(value.lessons),
|
|
2664
|
+
};
|
|
2665
|
+
}
|
|
2666
|
+
|
|
2019
2667
|
function normalizeCard(task) {
|
|
2020
2668
|
return {
|
|
2021
2669
|
id: asString(task.id),
|
|
@@ -2024,6 +2672,7 @@ function normalizeCard(task) {
|
|
|
2024
2672
|
owner: asString(task.owner),
|
|
2025
2673
|
scope: normalizeScope(task.scope),
|
|
2026
2674
|
reason: asString(task.reason),
|
|
2675
|
+
lastRun: normalizeLastRun(task.lastRun),
|
|
2027
2676
|
};
|
|
2028
2677
|
}
|
|
2029
2678
|
|
|
@@ -2168,6 +2817,7 @@ function toolbarActions(writable, mode) {
|
|
|
2168
2817
|
* laneOrder: string[],
|
|
2169
2818
|
* stats: {total:number, byState:Record<string,number>, byRole:Record<string,number>, oldestPending:{id:string,createdAt:string}|null},
|
|
2170
2819
|
* agents: Array<{agent:string,state:string,task:string,files:string[],updatedAt:string}>,
|
|
2820
|
+
* boardError: string|null,
|
|
2171
2821
|
* events: Array<{ts:string,kind:string,task:string,actor:string}>,
|
|
2172
2822
|
* actions: Array<{name:string,labelKey:string,body?:object}>
|
|
2173
2823
|
* }}
|
|
@@ -2246,6 +2896,9 @@ function renderModel(snapshot) {
|
|
|
2246
2896
|
laneOrder: [...LANE_ORDER],
|
|
2247
2897
|
stats: normalizeStats(source.stats, tasks),
|
|
2248
2898
|
agents: normalizeAgents(source.board),
|
|
2899
|
+
// A board read that failed is not the same as an idle swarm: keep the
|
|
2900
|
+
// diagnostic so the agents strip can show it instead of "no agents".
|
|
2901
|
+
boardError: asString(source.boardError) || null,
|
|
2249
2902
|
events: normalizeEvents(source.events),
|
|
2250
2903
|
actions: initialised ? toolbarActions(writable, mode) : [],
|
|
2251
2904
|
};
|
|
@@ -2475,6 +3128,17 @@ function makeHiveIcon(doc, kind) {
|
|
|
2475
3128
|
return svg;
|
|
2476
3129
|
}
|
|
2477
3130
|
|
|
3131
|
+
function appendCodeText(node, text, token) {
|
|
3132
|
+
const index = String(text).indexOf(token);
|
|
3133
|
+
if (index < 0) {
|
|
3134
|
+
node.appendChild(element(node.ownerDocument || node, "span", null, text));
|
|
3135
|
+
return;
|
|
3136
|
+
}
|
|
3137
|
+
node.appendChild(element(node.ownerDocument || node, "span", null, String(text).slice(0, index)));
|
|
3138
|
+
node.appendChild(element(node.ownerDocument || node, "code", "hive-queen-command", token));
|
|
3139
|
+
node.appendChild(element(node.ownerDocument || node, "span", null, String(text).slice(index + token.length)));
|
|
3140
|
+
}
|
|
3141
|
+
|
|
2478
3142
|
function setHidden(node, hidden) {
|
|
2479
3143
|
if (!node) return;
|
|
2480
3144
|
if (hidden) {
|
|
@@ -2563,6 +3227,80 @@ function formatTime(value) {
|
|
|
2563
3227
|
}
|
|
2564
3228
|
}
|
|
2565
3229
|
|
|
3230
|
+
/** Local `YYYY-MM-DD HH:MM:SS` for a run timestamp; the raw value on failure. */
|
|
3231
|
+
function formatRunStamp(value) {
|
|
3232
|
+
const date = parseDate(value);
|
|
3233
|
+
if (!date) return asString(value);
|
|
3234
|
+
const pad = (number) => String(number).padStart(2, "0");
|
|
3235
|
+
try {
|
|
3236
|
+
return (
|
|
3237
|
+
date.getFullYear() +
|
|
3238
|
+
"-" +
|
|
3239
|
+
pad(date.getMonth() + 1) +
|
|
3240
|
+
"-" +
|
|
3241
|
+
pad(date.getDate()) +
|
|
3242
|
+
" " +
|
|
3243
|
+
pad(date.getHours()) +
|
|
3244
|
+
":" +
|
|
3245
|
+
pad(date.getMinutes()) +
|
|
3246
|
+
":" +
|
|
3247
|
+
pad(date.getSeconds())
|
|
3248
|
+
);
|
|
3249
|
+
} catch {
|
|
3250
|
+
return asString(value);
|
|
3251
|
+
}
|
|
3252
|
+
}
|
|
3253
|
+
|
|
3254
|
+
/** Short display form of a commit sha; anything else is returned unchanged. */
|
|
3255
|
+
function shortCommit(value) {
|
|
3256
|
+
const sha = asString(value).trim();
|
|
3257
|
+
return /^[0-9a-f]{7,64}$/i.test(sha) ? sha.slice(0, 7) : sha;
|
|
3258
|
+
}
|
|
3259
|
+
|
|
3260
|
+
/**
|
|
3261
|
+
* Copy text to the clipboard. Modern async clipboard first, then the legacy
|
|
3262
|
+
* textarea + execCommand path; a refused permission is silent (no new copy).
|
|
3263
|
+
* @param {Document} doc
|
|
3264
|
+
* @param {string} text
|
|
3265
|
+
* @returns {boolean}
|
|
3266
|
+
*/
|
|
3267
|
+
function copyToClipboard(doc, text) {
|
|
3268
|
+
const value = asString(text);
|
|
3269
|
+
if (value === "") return false;
|
|
3270
|
+
const view = (doc && doc.defaultView) || globalThis;
|
|
3271
|
+
const clipboard = view && view.navigator ? view.navigator.clipboard : null;
|
|
3272
|
+
if (clipboard && typeof clipboard.writeText === "function") {
|
|
3273
|
+
try {
|
|
3274
|
+
const pending = clipboard.writeText(value);
|
|
3275
|
+
if (pending && typeof pending.catch === "function") pending.catch(() => {});
|
|
3276
|
+
return true;
|
|
3277
|
+
} catch {
|
|
3278
|
+
// Fall through to the legacy path.
|
|
3279
|
+
}
|
|
3280
|
+
}
|
|
3281
|
+
const body = doc && doc.body;
|
|
3282
|
+
if (body && typeof body.appendChild === "function" && typeof doc.execCommand === "function") {
|
|
3283
|
+
const area = doc.createElement("textarea");
|
|
3284
|
+
area.value = value;
|
|
3285
|
+
setAttr(area, "readonly", "");
|
|
3286
|
+
setStyle(area, "position", "absolute");
|
|
3287
|
+
setStyle(area, "left", "-9999px");
|
|
3288
|
+
try {
|
|
3289
|
+
body.appendChild(area);
|
|
3290
|
+
if (typeof area.select === "function") area.select();
|
|
3291
|
+
doc.execCommand("copy");
|
|
3292
|
+
return true;
|
|
3293
|
+
} catch {
|
|
3294
|
+
return false;
|
|
3295
|
+
} finally {
|
|
3296
|
+
if (area.parentNode && typeof area.parentNode.removeChild === "function") {
|
|
3297
|
+
area.parentNode.removeChild(area);
|
|
3298
|
+
}
|
|
3299
|
+
}
|
|
3300
|
+
}
|
|
3301
|
+
return false;
|
|
3302
|
+
}
|
|
3303
|
+
|
|
2566
3304
|
function safeClassToken(value) {
|
|
2567
3305
|
const token = asString(value).toLowerCase().replace(/[^a-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
2568
3306
|
return token || "unknown";
|
|
@@ -2677,7 +3415,8 @@ function extractPlan(payload) {
|
|
|
2677
3415
|
* fetch?: typeof fetch,
|
|
2678
3416
|
* confirm?: (message: string) => boolean,
|
|
2679
3417
|
* t?: (key: string) => string,
|
|
2680
|
-
* subscribeLocale?: (listener: () => void) => (() => void)
|
|
3418
|
+
* subscribeLocale?: (listener: () => void) => (() => void),
|
|
3419
|
+
* openSession?: (sessionId: string) => void
|
|
2681
3420
|
* }} [options]
|
|
2682
3421
|
* @returns {{
|
|
2683
3422
|
* setSnapshot: (snapshot: object) => object|null,
|
|
@@ -2741,6 +3480,11 @@ function mount(root, options = {}) {
|
|
|
2741
3480
|
? globalThis.confirm.bind(globalThis)
|
|
2742
3481
|
: null;
|
|
2743
3482
|
|
|
3483
|
+
// Hosts that can navigate open a worker's Session for the card drawer. The
|
|
3484
|
+
// callback stays absent on the standalone page and on hosts without the
|
|
3485
|
+
// client navigation API, so the "Open agent chat" button is never rendered.
|
|
3486
|
+
const openSession = typeof opts.openSession === "function" ? opts.openSession : null;
|
|
3487
|
+
|
|
2744
3488
|
const schedule =
|
|
2745
3489
|
typeof view.setInterval === "function" ? view.setInterval.bind(view) : globalThis.setInterval.bind(globalThis);
|
|
2746
3490
|
const unschedule =
|
|
@@ -2817,13 +3561,22 @@ function mount(root, options = {}) {
|
|
|
2817
3561
|
let limitsFocusables = [];
|
|
2818
3562
|
let settingsActiveTab = "limits";
|
|
2819
3563
|
|
|
3564
|
+
function dialogCloseButton(onClose) {
|
|
3565
|
+
const button = element(doc, "button", "hive-dialog-close", "×");
|
|
3566
|
+
setAttr(button, "type", "button");
|
|
3567
|
+
const label = translate("dialog.closeAria");
|
|
3568
|
+
setAttr(button, "title", label);
|
|
3569
|
+
setAttr(button, "aria-label", label);
|
|
3570
|
+
button.addEventListener("click", onClose);
|
|
3571
|
+
return button;
|
|
3572
|
+
}
|
|
3573
|
+
|
|
2820
3574
|
// --- shell ---------------------------------------------------------------
|
|
2821
3575
|
|
|
2822
3576
|
const frame = element(doc, "div", "hive");
|
|
2823
3577
|
const bar = element(doc, "header", "hive-bar");
|
|
2824
3578
|
|
|
2825
3579
|
const ident = element(doc, "div", "hive-ident");
|
|
2826
|
-
ident.appendChild(element(doc, "span", "hive-brand", "hive"));
|
|
2827
3580
|
const repoNode = element(doc, "span", "hive-repo", "—");
|
|
2828
3581
|
ident.appendChild(repoNode);
|
|
2829
3582
|
bar.appendChild(ident);
|
|
@@ -2967,8 +3720,6 @@ function mount(root, options = {}) {
|
|
|
2967
3720
|
const boardHead = element(doc, "div", "hive-pane-head");
|
|
2968
3721
|
const boardLabel = element(doc, "span", null, "");
|
|
2969
3722
|
boardHead.appendChild(boardLabel);
|
|
2970
|
-
const boardHint = element(doc, "span", "hive-hint", "");
|
|
2971
|
-
boardHead.appendChild(boardHint);
|
|
2972
3723
|
const boardCount = element(doc, "span", "hive-count", "0");
|
|
2973
3724
|
boardHead.appendChild(boardCount);
|
|
2974
3725
|
const stage = element(doc, "div", "hive-stage");
|
|
@@ -3013,6 +3764,61 @@ function mount(root, options = {}) {
|
|
|
3013
3764
|
root.textContent = "";
|
|
3014
3765
|
root.appendChild(frame);
|
|
3015
3766
|
|
|
3767
|
+
let portalHost = null;
|
|
3768
|
+
|
|
3769
|
+
function showModalDialog(dialog) {
|
|
3770
|
+
const parent = doc.body && typeof doc.body.appendChild === "function" ? doc.body : frame;
|
|
3771
|
+
parent.appendChild(dialog);
|
|
3772
|
+
if (typeof dialog.showModal === "function") {
|
|
3773
|
+
try {
|
|
3774
|
+
dialog.showModal();
|
|
3775
|
+
} catch {
|
|
3776
|
+
setAttr(dialog, "open", "");
|
|
3777
|
+
}
|
|
3778
|
+
} else {
|
|
3779
|
+
setAttr(dialog, "open", "");
|
|
3780
|
+
}
|
|
3781
|
+
}
|
|
3782
|
+
|
|
3783
|
+
function closeModalDialog(dialog) {
|
|
3784
|
+
if (!dialog) return;
|
|
3785
|
+
if (typeof dialog.close === "function") {
|
|
3786
|
+
try {
|
|
3787
|
+
dialog.close();
|
|
3788
|
+
} catch {
|
|
3789
|
+
// Native close can throw for a detached dialog; removal below still wins.
|
|
3790
|
+
}
|
|
3791
|
+
}
|
|
3792
|
+
if (dialog.parentNode) dialog.parentNode.removeChild(dialog);
|
|
3793
|
+
}
|
|
3794
|
+
|
|
3795
|
+
function bindDialogDismiss(dialog, close) {
|
|
3796
|
+
dialog.addEventListener("click", (event) => {
|
|
3797
|
+
if (!event || !event.target || event.target === dialog) close();
|
|
3798
|
+
});
|
|
3799
|
+
dialog.addEventListener("cancel", (event) => {
|
|
3800
|
+
if (event && typeof event.preventDefault === "function") event.preventDefault();
|
|
3801
|
+
close();
|
|
3802
|
+
});
|
|
3803
|
+
}
|
|
3804
|
+
|
|
3805
|
+
function ensurePortalHost() {
|
|
3806
|
+
const parent =
|
|
3807
|
+
doc.body && typeof doc.body.appendChild === "function"
|
|
3808
|
+
? doc.body
|
|
3809
|
+
: frame;
|
|
3810
|
+
if (!portalHost || portalHost.parentNode !== parent) {
|
|
3811
|
+
portalHost = element(doc, "div", "hive-portal");
|
|
3812
|
+
parent.appendChild(portalHost);
|
|
3813
|
+
}
|
|
3814
|
+
return portalHost;
|
|
3815
|
+
}
|
|
3816
|
+
|
|
3817
|
+
function appendPortalOverlay(overlay) {
|
|
3818
|
+
ensurePortalHost().appendChild(overlay);
|
|
3819
|
+
}
|
|
3820
|
+
|
|
3821
|
+
|
|
3016
3822
|
// --- helpers -------------------------------------------------------------
|
|
3017
3823
|
|
|
3018
3824
|
function reportError(error) {
|
|
@@ -3046,7 +3852,6 @@ function mount(root, options = {}) {
|
|
|
3046
3852
|
setAttr(stageChips, "aria-label", translate("board.filtersAria"));
|
|
3047
3853
|
agentsLabel.textContent = translate("pane.agents");
|
|
3048
3854
|
boardLabel.textContent = translate("pane.board");
|
|
3049
|
-
boardHint.textContent = translate("board.hint");
|
|
3050
3855
|
eventsLabel.textContent = translate("pane.events");
|
|
3051
3856
|
const eventsToggleLabel = eventsExpanded ? translate("events.collapse") : translate("events.showAll");
|
|
3052
3857
|
setAttr(eventsToggle, "title", eventsToggleLabel);
|
|
@@ -3073,14 +3878,6 @@ function mount(root, options = {}) {
|
|
|
3073
3878
|
return element(doc, "div", "hive-empty", text);
|
|
3074
3879
|
}
|
|
3075
3880
|
|
|
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
3881
|
function findRawAgent(agent) {
|
|
3085
3882
|
const board = lastSnapshot && Array.isArray(lastSnapshot.board) ? lastSnapshot.board : [];
|
|
3086
3883
|
for (const rawEntry of board) {
|
|
@@ -3384,7 +4181,7 @@ function mount(root, options = {}) {
|
|
|
3384
4181
|
}
|
|
3385
4182
|
|
|
3386
4183
|
function closePlanDialog(restoreFocus = true) {
|
|
3387
|
-
|
|
4184
|
+
closeModalDialog(planOverlay);
|
|
3388
4185
|
planOverlay = null;
|
|
3389
4186
|
planDialogNode = null;
|
|
3390
4187
|
planState = null;
|
|
@@ -3402,12 +4199,8 @@ function mount(root, options = {}) {
|
|
|
3402
4199
|
closeDrawer();
|
|
3403
4200
|
planTriggerButton = trigger || planTriggerButton || null;
|
|
3404
4201
|
|
|
3405
|
-
const
|
|
3406
|
-
|
|
3407
|
-
if (!event || !event.target || event.target === overlay) closePlanDialog();
|
|
3408
|
-
});
|
|
3409
|
-
|
|
3410
|
-
const dialog = element(doc, "div", "hive-dialog");
|
|
4202
|
+
const dialog = element(doc, "dialog", "hive-dialog");
|
|
4203
|
+
bindDialogDismiss(dialog, () => closePlanDialog());
|
|
3411
4204
|
setAttr(dialog, "role", "dialog");
|
|
3412
4205
|
setAttr(dialog, "aria-modal", "true");
|
|
3413
4206
|
setAttr(dialog, "aria-label", translate("plan.dialogAria"));
|
|
@@ -3417,11 +4210,7 @@ function mount(root, options = {}) {
|
|
|
3417
4210
|
titleBox.appendChild(element(doc, "h2", "hive-dialog-title", translate("plan.dialogTitle")));
|
|
3418
4211
|
head.appendChild(titleBox);
|
|
3419
4212
|
|
|
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", () => {
|
|
4213
|
+
const closeButton = dialogCloseButton(() => {
|
|
3425
4214
|
closePlanDialog();
|
|
3426
4215
|
});
|
|
3427
4216
|
head.appendChild(closeButton);
|
|
@@ -3478,7 +4267,7 @@ function mount(root, options = {}) {
|
|
|
3478
4267
|
dialog.appendChild(body);
|
|
3479
4268
|
|
|
3480
4269
|
const foot = element(doc, "div", "hive-dialog-foot");
|
|
3481
|
-
const cancelButton = element(doc, "button", "hive-btn
|
|
4270
|
+
const cancelButton = element(doc, "button", "hive-btn", translate("plan.cancel"));
|
|
3482
4271
|
setAttr(cancelButton, "type", "button");
|
|
3483
4272
|
setAttr(cancelButton, "title", translate("plan.cancelAria"));
|
|
3484
4273
|
setAttr(cancelButton, "aria-label", translate("plan.cancelAria"));
|
|
@@ -3487,7 +4276,7 @@ function mount(root, options = {}) {
|
|
|
3487
4276
|
});
|
|
3488
4277
|
foot.appendChild(cancelButton);
|
|
3489
4278
|
|
|
3490
|
-
const applyButton = element(doc, "button", "hive-btn", translate("plan.write"));
|
|
4279
|
+
const applyButton = element(doc, "button", "hive-btn hive-settings-primary", translate("plan.write"));
|
|
3491
4280
|
setAttr(applyButton, "type", "button");
|
|
3492
4281
|
setButtonCopy(applyButton, translate("plan.write"), translate("plan.writeAria"));
|
|
3493
4282
|
applyButton.disabled = true;
|
|
@@ -3497,9 +4286,8 @@ function mount(root, options = {}) {
|
|
|
3497
4286
|
foot.appendChild(applyButton);
|
|
3498
4287
|
dialog.appendChild(foot);
|
|
3499
4288
|
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
planOverlay = overlay;
|
|
4289
|
+
showModalDialog(dialog);
|
|
4290
|
+
planOverlay = dialog;
|
|
3503
4291
|
planDialogNode = dialog;
|
|
3504
4292
|
planFocusables = [closeButton, goalInput, maxInput, previewButton, cancelButton, applyButton];
|
|
3505
4293
|
planState = {
|
|
@@ -3623,7 +4411,7 @@ function mount(root, options = {}) {
|
|
|
3623
4411
|
}
|
|
3624
4412
|
|
|
3625
4413
|
function closeLimitsDialog(restoreFocus = true) {
|
|
3626
|
-
|
|
4414
|
+
closeModalDialog(limitsOverlay);
|
|
3627
4415
|
limitsOverlay = null;
|
|
3628
4416
|
limitsDialogNode = null;
|
|
3629
4417
|
limitsState = null;
|
|
@@ -3648,12 +4436,8 @@ function mount(root, options = {}) {
|
|
|
3648
4436
|
const writable = Boolean(lastModel.writable);
|
|
3649
4437
|
const supervisorAvailable = supervisorData.length > 0;
|
|
3650
4438
|
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");
|
|
4439
|
+
const dialog = element(doc, "dialog", "hive-dialog hive-settings-dialog");
|
|
4440
|
+
bindDialogDismiss(dialog, () => closeLimitsDialog());
|
|
3657
4441
|
setAttr(dialog, "role", "dialog");
|
|
3658
4442
|
setAttr(dialog, "aria-modal", "true");
|
|
3659
4443
|
setAttr(dialog, "aria-label", translate("settings.aria"));
|
|
@@ -3662,11 +4446,7 @@ function mount(root, options = {}) {
|
|
|
3662
4446
|
const titleBox = element(doc, "div", "hive-dialog-head-title");
|
|
3663
4447
|
titleBox.appendChild(element(doc, "h2", "hive-dialog-title", translate("settings.title")));
|
|
3664
4448
|
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", () => {
|
|
4449
|
+
const closeButton = dialogCloseButton(() => {
|
|
3670
4450
|
closeLimitsDialog();
|
|
3671
4451
|
});
|
|
3672
4452
|
head.appendChild(closeButton);
|
|
@@ -3771,6 +4551,7 @@ function mount(root, options = {}) {
|
|
|
3771
4551
|
header.appendChild(element(doc, "span", "hive-limits-cell is-number", translate("limits.limit")));
|
|
3772
4552
|
header.appendChild(element(doc, "span", "hive-limits-cell is-number", translate("limits.inFlight")));
|
|
3773
4553
|
header.appendChild(element(doc, "span", "hive-limits-cell is-number", translate("limits.queued")));
|
|
4554
|
+
header.appendChild(element(doc, "span", "hive-limits-cell is-action", ""));
|
|
3774
4555
|
table.appendChild(header);
|
|
3775
4556
|
|
|
3776
4557
|
for (const role of rows) {
|
|
@@ -3788,6 +4569,19 @@ function mount(root, options = {}) {
|
|
|
3788
4569
|
roleRow.appendChild(input);
|
|
3789
4570
|
roleRow.appendChild(element(doc, "span", "hive-limits-cell is-number", limitsNumberText(role.inFlight)));
|
|
3790
4571
|
roleRow.appendChild(element(doc, "span", "hive-limits-cell is-number", limitsNumberText(role.queued)));
|
|
4572
|
+
if (writable) {
|
|
4573
|
+
const removeButton = element(doc, "button", "hive-btn hive-btn-ghost hive-btn-danger hive-role-remove", "×");
|
|
4574
|
+
setAttr(removeButton, "type", "button");
|
|
4575
|
+
const removeTitle = translate("limits.removeRoleAria").replace("{name}", role.role);
|
|
4576
|
+
setAttr(removeButton, "title", removeTitle);
|
|
4577
|
+
setAttr(removeButton, "aria-label", removeTitle);
|
|
4578
|
+
removeButton.addEventListener("click", () => {
|
|
4579
|
+
void removeRole(role.role, role.inFlight, removeButton);
|
|
4580
|
+
});
|
|
4581
|
+
roleRow.appendChild(removeButton);
|
|
4582
|
+
} else {
|
|
4583
|
+
roleRow.appendChild(element(doc, "span", "hive-limits-cell is-action", ""));
|
|
4584
|
+
}
|
|
3791
4585
|
table.appendChild(roleRow);
|
|
3792
4586
|
rowNodes.push({ role: role.role, input });
|
|
3793
4587
|
}
|
|
@@ -3816,7 +4610,9 @@ function mount(root, options = {}) {
|
|
|
3816
4610
|
|
|
3817
4611
|
const queenSection = element(doc, "section", "hive-settings-section");
|
|
3818
4612
|
queenSection.appendChild(element(doc, "div", "hive-settings-section-title", translate("help.queen")));
|
|
3819
|
-
|
|
4613
|
+
const queenDescription = element(doc, "div", "hive-help-desc hive-help-queen");
|
|
4614
|
+
appendCodeText(queenDescription, translate("help.queenDesc"), "/queen off");
|
|
4615
|
+
queenSection.appendChild(queenDescription);
|
|
3820
4616
|
const tabs = element(doc, "div", "hive-settings-tabs");
|
|
3821
4617
|
setAttr(tabs, "role", "tablist");
|
|
3822
4618
|
setAttr(tabs, "aria-label", translate("settings.tabsAria"));
|
|
@@ -3887,9 +4683,8 @@ function mount(root, options = {}) {
|
|
|
3887
4683
|
body.appendChild(queenSection);
|
|
3888
4684
|
dialog.appendChild(body);
|
|
3889
4685
|
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
limitsOverlay = overlay;
|
|
4686
|
+
showModalDialog(dialog);
|
|
4687
|
+
limitsOverlay = dialog;
|
|
3893
4688
|
limitsDialogNode = dialog;
|
|
3894
4689
|
limitsState = {
|
|
3895
4690
|
repo,
|
|
@@ -3993,6 +4788,33 @@ function mount(root, options = {}) {
|
|
|
3993
4788
|
}
|
|
3994
4789
|
}
|
|
3995
4790
|
|
|
4791
|
+
async function removeRole(name, inFlight, button) {
|
|
4792
|
+
const state = limitsState;
|
|
4793
|
+
if (!state || !state.writable || state.busy || destroyed) return;
|
|
4794
|
+
const count = supervisorNumber(inFlight) || 0;
|
|
4795
|
+
let message = translate("limits.removeRoleConfirm").replace("{name}", name);
|
|
4796
|
+
if (count > 0) {
|
|
4797
|
+
const zh = String(translate("limits.removeRoleAria")).startsWith("删除角色");
|
|
4798
|
+
message += zh
|
|
4799
|
+
? " 该角色已有 " + String(count) + " 个任务在跑。"
|
|
4800
|
+
: " This role has " + String(count) + " tasks running.";
|
|
4801
|
+
}
|
|
4802
|
+
if (!askConfirm(message)) return;
|
|
4803
|
+
button.disabled = true;
|
|
4804
|
+
try {
|
|
4805
|
+
const ok = await postAction("roles-remove", { name });
|
|
4806
|
+
if (!ok || destroyed) return;
|
|
4807
|
+
await refreshSupervisor(true);
|
|
4808
|
+
if (destroyed) return;
|
|
4809
|
+
const trigger = limitsTriggerButton;
|
|
4810
|
+
closeLimitsDialog(false);
|
|
4811
|
+
openLimitsDialog(trigger);
|
|
4812
|
+
showToast("success", name, "");
|
|
4813
|
+
} finally {
|
|
4814
|
+
if (!destroyed && button.parentNode) button.disabled = false;
|
|
4815
|
+
}
|
|
4816
|
+
}
|
|
4817
|
+
|
|
3996
4818
|
async function saveBeeCounts() {
|
|
3997
4819
|
const state = limitsState;
|
|
3998
4820
|
if (!state || state.busy || !state.writable || !state.supervisorAvailable) return;
|
|
@@ -4150,7 +4972,7 @@ function mount(root, options = {}) {
|
|
|
4150
4972
|
}
|
|
4151
4973
|
|
|
4152
4974
|
function closeAddDialog(restoreFocus = true) {
|
|
4153
|
-
|
|
4975
|
+
closeModalDialog(addOverlay);
|
|
4154
4976
|
addOverlay = null;
|
|
4155
4977
|
addDialogNode = null;
|
|
4156
4978
|
addState = null;
|
|
@@ -4185,12 +5007,8 @@ function mount(root, options = {}) {
|
|
|
4185
5007
|
closeAddDialog(false);
|
|
4186
5008
|
addTriggerButton = trigger || null;
|
|
4187
5009
|
|
|
4188
|
-
const
|
|
4189
|
-
|
|
4190
|
-
if (!event || !event.target || event.target === overlay) closeAddDialog();
|
|
4191
|
-
});
|
|
4192
|
-
|
|
4193
|
-
const dialog = element(doc, "div", "hive-dialog hive-add-dialog");
|
|
5010
|
+
const dialog = element(doc, "dialog", "hive-dialog hive-add-dialog");
|
|
5011
|
+
bindDialogDismiss(dialog, () => closeAddDialog());
|
|
4194
5012
|
setAttr(dialog, "role", "dialog");
|
|
4195
5013
|
setAttr(dialog, "aria-modal", "true");
|
|
4196
5014
|
setAttr(dialog, "aria-label", translate("add.dialogTitle"));
|
|
@@ -4199,11 +5017,7 @@ function mount(root, options = {}) {
|
|
|
4199
5017
|
const titleBox = element(doc, "div", "hive-dialog-head-title");
|
|
4200
5018
|
titleBox.appendChild(element(doc, "h2", "hive-dialog-title", translate("add.dialogTitle")));
|
|
4201
5019
|
head.appendChild(titleBox);
|
|
4202
|
-
const closeButton =
|
|
4203
|
-
setAttr(closeButton, "type", "button");
|
|
4204
|
-
setAttr(closeButton, "title", translate("settings.closeAria"));
|
|
4205
|
-
setAttr(closeButton, "aria-label", translate("settings.closeAria"));
|
|
4206
|
-
closeButton.addEventListener("click", () => {
|
|
5020
|
+
const closeButton = dialogCloseButton(() => {
|
|
4207
5021
|
closeAddDialog();
|
|
4208
5022
|
});
|
|
4209
5023
|
head.appendChild(closeButton);
|
|
@@ -4227,8 +5041,12 @@ function mount(root, options = {}) {
|
|
|
4227
5041
|
const scopeInput = element(doc, "input", "hive-input hive-add-scope");
|
|
4228
5042
|
setAttr(scopeInput, "type", "text");
|
|
4229
5043
|
setAttr(scopeInput, "autocomplete", "off");
|
|
5044
|
+
setAttr(scopeInput, "placeholder", "src/auth.ts, docs/");
|
|
4230
5045
|
setAttr(scopeInput, "aria-label", translate("add.scopeAria"));
|
|
4231
|
-
|
|
5046
|
+
const scopeField = element(doc, "label", "hive-field");
|
|
5047
|
+
scopeField.appendChild(element(doc, "span", "hive-field-label", translate("add.scope")));
|
|
5048
|
+
scopeField.appendChild(scopeInput);
|
|
5049
|
+
body.appendChild(scopeField);
|
|
4232
5050
|
|
|
4233
5051
|
const afterInput = element(doc, "input", "hive-input hive-add-after");
|
|
4234
5052
|
setAttr(afterInput, "type", "text");
|
|
@@ -4247,7 +5065,7 @@ function mount(root, options = {}) {
|
|
|
4247
5065
|
dialog.appendChild(body);
|
|
4248
5066
|
|
|
4249
5067
|
const foot = element(doc, "div", "hive-dialog-foot");
|
|
4250
|
-
const cancelButton = element(doc, "button", "hive-btn
|
|
5068
|
+
const cancelButton = element(doc, "button", "hive-btn", translate("add.cancel"));
|
|
4251
5069
|
setAttr(cancelButton, "type", "button");
|
|
4252
5070
|
cancelButton.addEventListener("click", () => {
|
|
4253
5071
|
closeAddDialog();
|
|
@@ -4261,12 +5079,11 @@ function mount(root, options = {}) {
|
|
|
4261
5079
|
foot.appendChild(submitButton);
|
|
4262
5080
|
dialog.appendChild(foot);
|
|
4263
5081
|
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
addOverlay = overlay;
|
|
5082
|
+
showModalDialog(dialog);
|
|
5083
|
+
addOverlay = dialog;
|
|
4267
5084
|
addDialogNode = dialog;
|
|
4268
5085
|
addState = {
|
|
4269
|
-
overlay,
|
|
5086
|
+
overlay: dialog,
|
|
4270
5087
|
dialog,
|
|
4271
5088
|
title: titleInput,
|
|
4272
5089
|
role: roleInput,
|
|
@@ -4333,7 +5150,10 @@ function mount(root, options = {}) {
|
|
|
4333
5150
|
}
|
|
4334
5151
|
|
|
4335
5152
|
function closeDrawer(restoreFocus = true) {
|
|
4336
|
-
if (drawerNode
|
|
5153
|
+
if (drawerNode) {
|
|
5154
|
+
if (String(drawerNode.tagName).toLowerCase() === "dialog") closeModalDialog(drawerNode);
|
|
5155
|
+
else if (drawerNode.parentNode) drawerNode.parentNode.removeChild(drawerNode);
|
|
5156
|
+
}
|
|
4337
5157
|
drawerNode = null;
|
|
4338
5158
|
drawerState = null;
|
|
4339
5159
|
if (typeof doc.removeEventListener === "function") {
|
|
@@ -4392,6 +5212,97 @@ function mount(root, options = {}) {
|
|
|
4392
5212
|
body.appendChild(element(doc, "pre", "hive-json", JSON.stringify(raw, null, 2)));
|
|
4393
5213
|
}
|
|
4394
5214
|
|
|
5215
|
+
/**
|
|
5216
|
+
* The card drawer's "Last run" block. With no record it is one muted line;
|
|
5217
|
+
* with a record it shows status, agent, timestamps and the short commit above
|
|
5218
|
+
* the worker output (monospace, internally scrollable) and a copy button.
|
|
5219
|
+
* A record with overlapping writers adds one "Also writing" row, a record with
|
|
5220
|
+
* a lessons summary adds one recall row, and a record whose worker Session is
|
|
5221
|
+
* known, on a host that provides `openSession`, also gets the "Open agent
|
|
5222
|
+
* chat" button.
|
|
5223
|
+
* @param {object|null} run - normalized `lastRun` (see normalizeLastRun)
|
|
5224
|
+
* @returns {HTMLElement}
|
|
5225
|
+
*/
|
|
5226
|
+
function buildRunSection(run, actionHost) {
|
|
5227
|
+
const section = element(doc, "div", "hive-card-run");
|
|
5228
|
+
const addAction = (node) => {
|
|
5229
|
+
if (Array.isArray(actionHost)) actionHost.push(node);
|
|
5230
|
+
else if (actionHost && typeof actionHost.appendChild === "function") actionHost.appendChild(node);
|
|
5231
|
+
else section.appendChild(node);
|
|
5232
|
+
};
|
|
5233
|
+
section.appendChild(element(doc, "div", "hive-card-run-title", translate("drawer.lastRun")));
|
|
5234
|
+
if (!run) {
|
|
5235
|
+
section.appendChild(element(doc, "div", "hive-note hive-card-run-empty", translate("drawer.noRuns")));
|
|
5236
|
+
return section;
|
|
5237
|
+
}
|
|
5238
|
+
const started = formatRunStamp(run.startedAt);
|
|
5239
|
+
const ended = formatRunStamp(run.endedAt);
|
|
5240
|
+
const metaParts = [run.status, run.agent];
|
|
5241
|
+
if (started || ended) metaParts.push(started + (ended ? " → " + ended : ""));
|
|
5242
|
+
if (run.commit) metaParts.push(shortCommit(run.commit));
|
|
5243
|
+
const metaPartsText = metaParts.filter(Boolean).join(" · ");
|
|
5244
|
+
const meta = element(doc, "div", "hive-card-run-meta", metaPartsText);
|
|
5245
|
+
setAttr(meta, "title", metaPartsText);
|
|
5246
|
+
section.appendChild(meta);
|
|
5247
|
+
// Consensus announcements: the other agents that announced the same paths. Invalid
|
|
5248
|
+
// entries are dropped by normalizeLastRun, duplicates collapse to one name,
|
|
5249
|
+
// and no overlapping writer means no row at all.
|
|
5250
|
+
const writers = [];
|
|
5251
|
+
for (const overlap of run.overlaps) {
|
|
5252
|
+
const agent = asString(overlap.agent);
|
|
5253
|
+
if (agent !== "" && !writers.includes(agent)) writers.push(agent);
|
|
5254
|
+
}
|
|
5255
|
+
if (writers.length > 0) {
|
|
5256
|
+
const overlapsLabel = translate("drawer.runOverlaps");
|
|
5257
|
+
// The zh dictionary copy uses the full-width colon elsewhere in the panel.
|
|
5258
|
+
const separator = /[\u4e00-\u9fff]/.test(overlapsLabel) ? ":" : ": ";
|
|
5259
|
+
section.appendChild(
|
|
5260
|
+
element(doc, "div", "hive-card-run-meta", overlapsLabel + separator + writers.join(", ")),
|
|
5261
|
+
);
|
|
5262
|
+
}
|
|
5263
|
+
// Memory recall: the worker always reports whether it read lessons, so the
|
|
5264
|
+
// block keeps one line even when the record predates that field.
|
|
5265
|
+
const lessonCount = run.lessons ? asCount(run.lessons.count, 0) : 0;
|
|
5266
|
+
const lessonsText =
|
|
5267
|
+
lessonCount > 0
|
|
5268
|
+
? translate("drawer.runLessons").replace("{count}", String(lessonCount))
|
|
5269
|
+
: translate("drawer.runNoLessons");
|
|
5270
|
+
section.appendChild(element(doc, "div", "hive-card-run-meta", lessonsText));
|
|
5271
|
+
section.appendChild(element(doc, "pre", "hive-card-run-output", run.output));
|
|
5272
|
+
const foot = element(doc, "div", "hive-card-run-foot");
|
|
5273
|
+
const copy = element(doc, "button", "hive-btn hive-btn-ghost hive-card-run-copy", translate("drawer.copyOutput"));
|
|
5274
|
+
setAttr(copy, "type", "button");
|
|
5275
|
+
setAttr(copy, "title", translate("drawer.copyOutput"));
|
|
5276
|
+
setAttr(copy, "aria-label", translate("drawer.copyOutput"));
|
|
5277
|
+
copy.addEventListener("click", () => {
|
|
5278
|
+
copyToClipboard(doc, run.output);
|
|
5279
|
+
});
|
|
5280
|
+
if (Array.isArray(actionHost) || actionHost) addAction(copy);
|
|
5281
|
+
else foot.appendChild(copy);
|
|
5282
|
+
// Only render the jump-to-chat control when both halves exist: a recorded
|
|
5283
|
+
// worker Session and a host navigation callback. The status does not matter:
|
|
5284
|
+
// a running card exposes its Session as soon as the worker starts, and the
|
|
5285
|
+
// button must be there while the card is still in progress. No disabled stub.
|
|
5286
|
+
const canOpenChat = asString(run.sessionId) !== "" && typeof openSession === "function";
|
|
5287
|
+
if (canOpenChat) {
|
|
5288
|
+
const chat = element(doc, "button", "hive-btn hive-btn-ghost hive-card-run-open", translate("drawer.openChat"));
|
|
5289
|
+
setAttr(chat, "type", "button");
|
|
5290
|
+
setAttr(chat, "title", translate("drawer.openChat"));
|
|
5291
|
+
setAttr(chat, "aria-label", translate("drawer.openChat"));
|
|
5292
|
+
chat.addEventListener("click", () => {
|
|
5293
|
+
try {
|
|
5294
|
+
openSession(run.sessionId);
|
|
5295
|
+
} catch (error) {
|
|
5296
|
+
reportError(error);
|
|
5297
|
+
}
|
|
5298
|
+
});
|
|
5299
|
+
if (Array.isArray(actionHost) || actionHost) addAction(chat);
|
|
5300
|
+
else foot.appendChild(chat);
|
|
5301
|
+
}
|
|
5302
|
+
if (!actionHost) section.appendChild(foot);
|
|
5303
|
+
return section;
|
|
5304
|
+
}
|
|
5305
|
+
|
|
4395
5306
|
function openDrawer(card, lane, trigger) {
|
|
4396
5307
|
closeHelp(false);
|
|
4397
5308
|
closePlanDialog(false);
|
|
@@ -4399,7 +5310,6 @@ function mount(root, options = {}) {
|
|
|
4399
5310
|
closeDrawer(false);
|
|
4400
5311
|
drawerTrigger = trigger || null;
|
|
4401
5312
|
|
|
4402
|
-
const raw = findRawTask(card) || { ...card, state: lane };
|
|
4403
5313
|
const title = card.title || translate("card.untitled");
|
|
4404
5314
|
const id = card.id || translate("card.noId");
|
|
4405
5315
|
const role = asString(card.role) || "—";
|
|
@@ -4407,12 +5317,8 @@ function mount(root, options = {}) {
|
|
|
4407
5317
|
const repo = lastModel ? lastModel.repo : "";
|
|
4408
5318
|
const ariaLabel = translate("drawer.cardAria") + " " + (card.title || card.id || translate("card.untitled"));
|
|
4409
5319
|
|
|
4410
|
-
const
|
|
4411
|
-
|
|
4412
|
-
if (!event || !event.target || event.target === overlay) closeDrawer();
|
|
4413
|
-
});
|
|
4414
|
-
|
|
4415
|
-
const dialog = element(doc, "div", "hive-dialog hive-card-dialog hive-drawer");
|
|
5320
|
+
const dialog = element(doc, "dialog", "hive-dialog hive-card-dialog hive-drawer");
|
|
5321
|
+
bindDialogDismiss(dialog, () => closeDrawer());
|
|
4416
5322
|
setAttr(dialog, "role", "dialog");
|
|
4417
5323
|
setAttr(dialog, "aria-modal", "true");
|
|
4418
5324
|
setAttr(dialog, "aria-label", ariaLabel);
|
|
@@ -4426,23 +5332,15 @@ function mount(root, options = {}) {
|
|
|
4426
5332
|
setAttr(subline, "title", sublineText);
|
|
4427
5333
|
titleBox.appendChild(subline);
|
|
4428
5334
|
head.appendChild(titleBox);
|
|
4429
|
-
const closeButton =
|
|
4430
|
-
setAttr(closeButton, "type", "button");
|
|
4431
|
-
setAttr(closeButton, "title", translate("drawer.closeAria"));
|
|
4432
|
-
setAttr(closeButton, "aria-label", translate("drawer.closeAria"));
|
|
4433
|
-
closeButton.addEventListener("click", () => {
|
|
5335
|
+
const closeButton = dialogCloseButton(() => {
|
|
4434
5336
|
closeDrawer();
|
|
4435
5337
|
});
|
|
4436
5338
|
head.appendChild(closeButton);
|
|
4437
5339
|
dialog.appendChild(head);
|
|
4438
5340
|
|
|
4439
5341
|
const body = element(doc, "div", "hive-dialog-body hive-card-body");
|
|
4440
|
-
const
|
|
4441
|
-
|
|
4442
|
-
const pre = element(doc, "pre", "hive-json", JSON.stringify(raw, null, 2));
|
|
4443
|
-
details.appendChild(summary);
|
|
4444
|
-
details.appendChild(pre);
|
|
4445
|
-
body.appendChild(details);
|
|
5342
|
+
const runActions = [];
|
|
5343
|
+
body.appendChild(buildRunSection(card.lastRun, runActions));
|
|
4446
5344
|
dialog.appendChild(body);
|
|
4447
5345
|
|
|
4448
5346
|
const actions = actionsForState(lane, lastModel ? lastModel.writable : false);
|
|
@@ -4456,9 +5354,10 @@ function mount(root, options = {}) {
|
|
|
4456
5354
|
),
|
|
4457
5355
|
);
|
|
4458
5356
|
}
|
|
4459
|
-
if (actions.length > 0) {
|
|
5357
|
+
if (runActions.length > 0 || actions.length > 0) {
|
|
4460
5358
|
const foot = element(doc, "div", "hive-dialog-foot hive-card-actions");
|
|
4461
5359
|
setAttr(foot, "aria-label", translate("drawer.cardActions"));
|
|
5360
|
+
for (const runAction of runActions) foot.appendChild(runAction);
|
|
4462
5361
|
const claimed = asString(card.state || lane) === "claimed";
|
|
4463
5362
|
for (const action of actions) {
|
|
4464
5363
|
const destructive = action.name === "remove";
|
|
@@ -4486,9 +5385,8 @@ function mount(root, options = {}) {
|
|
|
4486
5385
|
dialog.appendChild(foot);
|
|
4487
5386
|
}
|
|
4488
5387
|
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
drawerNode = overlay;
|
|
5388
|
+
showModalDialog(dialog);
|
|
5389
|
+
drawerNode = dialog;
|
|
4492
5390
|
drawerState = { kind: "card", card, lane };
|
|
4493
5391
|
if (typeof doc.addEventListener === "function") {
|
|
4494
5392
|
doc.addEventListener("keydown", onDrawerKeydown);
|
|
@@ -4739,7 +5637,7 @@ function mount(root, options = {}) {
|
|
|
4739
5637
|
return storage;
|
|
4740
5638
|
}
|
|
4741
5639
|
} catch {
|
|
4742
|
-
// A
|
|
5640
|
+
// A failing localStorage must not break the panel.
|
|
4743
5641
|
}
|
|
4744
5642
|
return null;
|
|
4745
5643
|
}
|
|
@@ -4980,14 +5878,11 @@ function mount(root, options = {}) {
|
|
|
4980
5878
|
const total = element(doc, "span", "hive-stat is-total");
|
|
4981
5879
|
total.appendChild(element(doc, "strong", null, String(model.stats.total)));
|
|
4982
5880
|
total.appendChild(element(doc, "span", "hive-stat-unit", " " + translate("stats.cards")));
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
const count = model.stats.byState[state];
|
|
4987
|
-
if (count === undefined || count === null) continue;
|
|
4988
|
-
const pill = element(doc, "span", "hive-stat", laneLabel(state) + " " + count);
|
|
4989
|
-
statsNode.appendChild(pill);
|
|
5881
|
+
const failedCount = model.stats.byState.failed;
|
|
5882
|
+
if (failedCount !== undefined && failedCount !== null && Number(failedCount) > 0) {
|
|
5883
|
+
total.appendChild(element(doc, "span", "hive-stat-unit", " · " + laneLabel("failed") + " " + failedCount));
|
|
4990
5884
|
}
|
|
5885
|
+
statsNode.appendChild(total);
|
|
4991
5886
|
|
|
4992
5887
|
if (model.stats.oldestPending) {
|
|
4993
5888
|
const pending = model.stats.oldestPending;
|
|
@@ -5031,7 +5926,8 @@ function mount(root, options = {}) {
|
|
|
5031
5926
|
function renderActions(model) {
|
|
5032
5927
|
clearNode(actionsNode);
|
|
5033
5928
|
for (const action of model.actions) {
|
|
5034
|
-
const
|
|
5929
|
+
const variant = action.name === "add" ? " hive-settings-primary" : "";
|
|
5930
|
+
const button = element(doc, "button", "hive-btn" + variant, translate(action.labelKey));
|
|
5035
5931
|
setAttr(button, "type", "button");
|
|
5036
5932
|
setAttr(button, "title", translate(action.helpKey));
|
|
5037
5933
|
setAttr(button, "aria-label", translate(action.helpKey));
|
|
@@ -5050,8 +5946,23 @@ function mount(root, options = {}) {
|
|
|
5050
5946
|
return;
|
|
5051
5947
|
}
|
|
5052
5948
|
agentsCount.textContent = String(model.agents.length);
|
|
5949
|
+
// A failed board read must never look like an idle swarm: show the CLI
|
|
5950
|
+
// diagnostic in the strip instead of the "no agents" empty state.
|
|
5951
|
+
if (model.boardError) {
|
|
5952
|
+
const error = element(
|
|
5953
|
+
doc,
|
|
5954
|
+
"span",
|
|
5955
|
+
"hive-agents-error",
|
|
5956
|
+
summarizeActionOutput(model.boardError, 400) || model.boardError,
|
|
5957
|
+
);
|
|
5958
|
+
setAttr(error, "title", model.boardError);
|
|
5959
|
+
setAttr(error, "role", "status");
|
|
5960
|
+
agentPills.appendChild(error);
|
|
5961
|
+
}
|
|
5053
5962
|
if (model.agents.length === 0) {
|
|
5054
|
-
|
|
5963
|
+
if (!model.boardError) {
|
|
5964
|
+
agentPills.appendChild(element(doc, "span", "hive-agents-empty", translate("agents.empty")));
|
|
5965
|
+
}
|
|
5055
5966
|
return;
|
|
5056
5967
|
}
|
|
5057
5968
|
for (const agent of model.agents) {
|
|
@@ -5399,12 +6310,53 @@ function mount(root, options = {}) {
|
|
|
5399
6310
|
closeAddDialog(false);
|
|
5400
6311
|
closeToast();
|
|
5401
6312
|
closeDrawer();
|
|
6313
|
+
if (portalHost && portalHost.parentNode) portalHost.parentNode.removeChild(portalHost);
|
|
6314
|
+
portalHost = null;
|
|
5402
6315
|
if (frame.parentNode) frame.parentNode.removeChild(frame);
|
|
5403
6316
|
lastSnapshot = null;
|
|
5404
6317
|
lastModel = null;
|
|
5405
6318
|
}
|
|
5406
6319
|
|
|
6320
|
+
const THEME_TOKEN_NAMES = [
|
|
6321
|
+
"--dsw-alias-bg-base",
|
|
6322
|
+
"--dsw-alias-bg-layer-1",
|
|
6323
|
+
"--dsw-alias-bg-layer-2",
|
|
6324
|
+
"--dsw-alias-bg-layer-3",
|
|
6325
|
+
"--dsw-alias-border-l1",
|
|
6326
|
+
"--dsw-alias-border-l2",
|
|
6327
|
+
"--dsw-alias-label-primary",
|
|
6328
|
+
"--dsw-alias-label-secondary",
|
|
6329
|
+
"--dsw-alias-label-tertiary",
|
|
6330
|
+
"--dsw-alias-brand-primary",
|
|
6331
|
+
"--dsw-alias-interactive-bg-hover",
|
|
6332
|
+
"--dsw-alias-border-selected",
|
|
6333
|
+
"--dsw-alias-state-error-primary",
|
|
6334
|
+
"--dsw-alias-state-success-primary",
|
|
6335
|
+
"--dsw-alias-state-warn-primary",
|
|
6336
|
+
"--dsw-radius-sm",
|
|
6337
|
+
"--dsw-radius-md",
|
|
6338
|
+
"--dsw-radius-lg",
|
|
6339
|
+
"--dsw-elevation-panel",
|
|
6340
|
+
];
|
|
6341
|
+
|
|
6342
|
+
function assertThemeTokens() {
|
|
6343
|
+
if (!view || typeof view.getComputedStyle !== "function") return;
|
|
6344
|
+
let computed = null;
|
|
6345
|
+
try {
|
|
6346
|
+
computed = view.getComputedStyle(frame);
|
|
6347
|
+
} catch {
|
|
6348
|
+
return;
|
|
6349
|
+
}
|
|
6350
|
+
if (!computed) return;
|
|
6351
|
+
for (const token of THEME_TOKEN_NAMES) {
|
|
6352
|
+
if (computed.getPropertyValue(token).trim() === "" && view.console && typeof view.console.warn === "function") {
|
|
6353
|
+
view.console.warn("hive: " + token + " is empty; the neutral fallback keeps the panel visible");
|
|
6354
|
+
}
|
|
6355
|
+
}
|
|
6356
|
+
}
|
|
6357
|
+
|
|
5407
6358
|
applyChrome();
|
|
6359
|
+
assertThemeTokens();
|
|
5408
6360
|
|
|
5409
6361
|
if (typeof opts.subscribeLocale === "function") {
|
|
5410
6362
|
try {
|
|
@@ -5425,7 +6377,7 @@ function mount(root, options = {}) {
|
|
|
5425
6377
|
|
|
5426
6378
|
return { mount: mount, renderModel: renderModel, messages: messages }
|
|
5427
6379
|
})()
|
|
5428
|
-
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"
|
|
6380
|
+
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\ndialog.hive-dialog {\n display: flex;\n flex-direction: column;\n max-height: 80vh;\n}\ndialog.hive-dialog .hive-dialog-head,\ndialog.hive-dialog .hive-dialog-foot { flex: 0 0 auto; }\ndialog.hive-dialog .hive-dialog-body { flex: 1 1 auto; min-height: 0; overflow: auto; }\n.hive-card-run-output { max-height: 20lh; overflow: auto; }\n.hive-card-actions { flex-wrap: wrap; justify-content: flex-end; }\n\n\n/* The DSH design-token bridge is bundled in panel.css; this file is kept for package layout compatibility. */\n"
|
|
5429
6381
|
function ensureHivePanelCss() {
|
|
5430
6382
|
if (typeof document === 'undefined') return
|
|
5431
6383
|
if (document.querySelector('style[data-hive-panel-css]') !== null) return
|
|
@@ -5451,6 +6403,9 @@ function mount(root, options = {}) {
|
|
|
5451
6403
|
onError: function (error) { console.warn('[hive-panel]', error) },
|
|
5452
6404
|
t: params.hiveTranslate,
|
|
5453
6405
|
subscribeLocale: params.hiveLocaleSubscribe,
|
|
6406
|
+
// Optional: the client half only supplies this when the host
|
|
6407
|
+
// exposes workspace navigation (ctx.uiWorkspace.openSession).
|
|
6408
|
+
openSession: typeof params.hiveOpenSession === 'function' ? params.hiveOpenSession : undefined,
|
|
5454
6409
|
})
|
|
5455
6410
|
return function () { instance.destroy() }
|
|
5456
6411
|
}, [sessionId])
|
|
@@ -5475,6 +6430,11 @@ function mount(root, options = {}) {
|
|
|
5475
6430
|
hiveSessionId: typeof sessionId === 'string' ? sessionId : '',
|
|
5476
6431
|
hiveTranslate: t,
|
|
5477
6432
|
hiveLocaleSubscribe: (listener) => ctx.locale.subscribe(listener),
|
|
6433
|
+
// Only a host with client navigation receives the callback, so the
|
|
6434
|
+
// renderer renders no chat button anywhere else (no disabled stub).
|
|
6435
|
+
...(canOpenSession(ctx)
|
|
6436
|
+
? { hiveOpenSession: (childSessionId) => { openSession(ctx, childSessionId) } }
|
|
6437
|
+
: {}),
|
|
5478
6438
|
}),
|
|
5479
6439
|
}, HivePanelMount))
|
|
5480
6440
|
}
|