@d86e/hive-panel 0.3.11 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -6
- package/README.zh-CN.md +8 -6
- package/SPEC.md +1 -2
- package/bin/hive-panel.js +22 -3
- package/package.json +2 -2
- package/public/panel.css +423 -93
- package/public/panel.js +1126 -350
- package/src/actions.js +1 -2
package/public/panel.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// (en / zh) and, when a host provides one, a \`t(key)\` translate function.
|
|
6
6
|
// Hosts can hot-swap languages by calling \`subscribeLocale\` and re-rendering.
|
|
7
7
|
|
|
8
|
-
const LANE_ORDER = Object.freeze(["pending", "claimed", "done", "
|
|
8
|
+
const LANE_ORDER = Object.freeze(["pending", "claimed", "done", "failed"]);
|
|
9
9
|
const MAX_EVENTS = 80;
|
|
10
10
|
const DEFAULT_SNAPSHOT_URL = "/api/snapshot";
|
|
11
11
|
const DEFAULT_ACTIONS_URL = "/api/actions";
|
|
@@ -20,7 +20,6 @@ const CARD_ACTIONS = Object.freeze({
|
|
|
20
20
|
pending: Object.freeze(["claim", "remove"]),
|
|
21
21
|
claimed: Object.freeze(["done", "fail", "remove"]),
|
|
22
22
|
done: Object.freeze(["remove"]),
|
|
23
|
-
blocked: Object.freeze(["retry", "remove"]),
|
|
24
23
|
failed: Object.freeze(["retry", "remove"]),
|
|
25
24
|
});
|
|
26
25
|
|
|
@@ -64,7 +63,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
64
63
|
overflow-x: auto;
|
|
65
64
|
overflow-y: hidden;
|
|
66
65
|
overscroll-behavior-x: contain;
|
|
67
|
-
scrollbar-color: var(--hive-line
|
|
66
|
+
scrollbar-color: var(--hive-line) transparent;
|
|
68
67
|
scrollbar-width: thin;
|
|
69
68
|
}
|
|
70
69
|
|
|
@@ -81,10 +80,10 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
81
80
|
align-items: center;
|
|
82
81
|
gap: 6px 10px;
|
|
83
82
|
padding: 6px 12px;
|
|
84
|
-
border-bottom: 1px solid color-mix(in srgb, var(--hive-warn) 45%, var(--hive-line
|
|
83
|
+
border-bottom: 1px solid color-mix(in srgb, var(--hive-warn) 45%, var(--hive-line));
|
|
85
84
|
background: color-mix(in srgb, var(--hive-warn) 10%, transparent);
|
|
86
85
|
color: var(--hive-warn);
|
|
87
|
-
font-size:
|
|
86
|
+
font-size: 12px;
|
|
88
87
|
line-height: 1.5;
|
|
89
88
|
}
|
|
90
89
|
|
|
@@ -93,10 +92,10 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
93
92
|
.hive-freeze-banner .hive-btn {
|
|
94
93
|
flex: 0 0 auto;
|
|
95
94
|
padding: 3px 8px;
|
|
96
|
-
border-color: color-mix(in srgb, var(--hive-warn) 45%, var(--hive-line
|
|
95
|
+
border-color: color-mix(in srgb, var(--hive-warn) 45%, var(--hive-line));
|
|
97
96
|
background: color-mix(in srgb, var(--hive-warn) 12%, transparent);
|
|
98
97
|
color: var(--hive-warn);
|
|
99
|
-
font-size:
|
|
98
|
+
font-size: 12px;
|
|
100
99
|
}
|
|
101
100
|
|
|
102
101
|
.hive-help-trigger {
|
|
@@ -108,13 +107,13 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
108
107
|
|
|
109
108
|
/* Destructive card action: the drawer's delete control. */
|
|
110
109
|
.hive-btn-danger {
|
|
111
|
-
border-color: color-mix(in srgb, var(--hive-danger) 55%, var(--hive-line
|
|
110
|
+
border-color: color-mix(in srgb, var(--hive-danger) 55%, var(--hive-line));
|
|
112
111
|
background: color-mix(in srgb, var(--hive-danger) 12%, transparent);
|
|
113
|
-
color: color-mix(in srgb, var(--hive-danger) 88%, var(--hive-fg
|
|
112
|
+
color: color-mix(in srgb, var(--hive-danger) 88%, var(--hive-fg));
|
|
114
113
|
}
|
|
115
114
|
|
|
116
115
|
.hive-btn-danger:hover:not(:disabled) {
|
|
117
|
-
border-color: color-mix(in srgb, var(--hive-danger) 75%, var(--hive-line
|
|
116
|
+
border-color: color-mix(in srgb, var(--hive-danger) 75%, var(--hive-line));
|
|
118
117
|
background: color-mix(in srgb, var(--hive-danger) 22%, transparent);
|
|
119
118
|
}
|
|
120
119
|
|
|
@@ -144,39 +143,77 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
144
143
|
max-height: min(70vh, 560px);
|
|
145
144
|
overflow: auto;
|
|
146
145
|
padding: 12px;
|
|
147
|
-
border: 1px solid var(--hive-line
|
|
148
|
-
border-radius:
|
|
149
|
-
background: color-mix(in srgb, var(--hive-bg
|
|
150
|
-
color: var(--hive-fg
|
|
151
|
-
box-shadow:
|
|
152
|
-
scrollbar-color: var(--hive-line
|
|
146
|
+
border: 1px solid var(--hive-line);
|
|
147
|
+
border-radius: var(--hive-radius-lg);
|
|
148
|
+
background: color-mix(in srgb, var(--hive-bg) 97%, var(--hive-fg) 3%);
|
|
149
|
+
color: var(--hive-fg);
|
|
150
|
+
box-shadow: none;
|
|
151
|
+
scrollbar-color: var(--hive-line) transparent;
|
|
153
152
|
scrollbar-width: thin;
|
|
154
|
-
color-scheme: dark;
|
|
153
|
+
color-scheme: light dark;
|
|
155
154
|
}
|
|
156
155
|
|
|
157
156
|
.hive-help-head, .hive-dialog-head, .hive-toast-head { display: flex; align-items: flex-start; gap: 8px; }
|
|
158
|
-
.hive-help-title, .hive-dialog-title { margin: 0; overflow-wrap: anywhere; font-size:
|
|
157
|
+
.hive-help-title, .hive-dialog-title { margin: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 650; line-height: 1.5; }
|
|
159
158
|
.hive-help-title { padding-top: 3px; }
|
|
160
159
|
.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; }
|
|
161
160
|
|
|
162
|
-
.hive-help-section { margin-top: 12px; color: var(--hive-fg-faint); font-size:
|
|
163
|
-
.hive-help-action { padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--hive-line
|
|
161
|
+
.hive-help-section { margin-top: 12px; color: var(--hive-fg-faint); font-size: 12px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
|
|
162
|
+
.hive-help-action { padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--hive-line) 70%, transparent); }
|
|
164
163
|
.hive-help-action:last-of-type { border-bottom: 0; }
|
|
165
|
-
.hive-help-name { color: var(--hive-fg
|
|
166
|
-
.hive-help-desc { margin-top: 2px; color: var(--hive-fg-soft); font-size:
|
|
167
|
-
.hive-help-params { margin-top: 3px; overflow-wrap: anywhere; color: var(--hive-fg-faint); font-family: var(--hive-mono); font-size:
|
|
164
|
+
.hive-help-name { color: var(--hive-fg); font-size: 12px; font-weight: 600; }
|
|
165
|
+
.hive-help-desc { margin-top: 2px; color: var(--hive-fg-soft); font-size: 12px; line-height: 1.5; }
|
|
166
|
+
.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; }
|
|
168
167
|
.hive-help-actionrow { margin-top: 7px; }
|
|
169
168
|
.hive-help-note {
|
|
170
169
|
margin-top: 10px;
|
|
171
170
|
padding: 7px 8px;
|
|
172
171
|
border: 1px solid color-mix(in srgb, var(--hive-warn) 40%, transparent);
|
|
173
|
-
border-radius:
|
|
172
|
+
border-radius: var(--hive-radius-sm);
|
|
174
173
|
background: color-mix(in srgb, var(--hive-warn) 10%, transparent);
|
|
175
174
|
color: var(--hive-warn);
|
|
176
|
-
font-size:
|
|
175
|
+
font-size: 12px;
|
|
177
176
|
line-height: 1.5;
|
|
178
177
|
}
|
|
179
|
-
.hive-help-hint { margin-top: 10px; color: var(--hive-fg-faint); font-size:
|
|
178
|
+
.hive-help-hint { margin-top: 10px; color: var(--hive-fg-faint); font-size: 12px; line-height: 1.5; }
|
|
179
|
+
|
|
180
|
+
.hive-dialog {
|
|
181
|
+
position: relative;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.hive-dialog-head-title { padding-right: 36px; }
|
|
185
|
+
|
|
186
|
+
.hive-dialog-close {
|
|
187
|
+
position: absolute;
|
|
188
|
+
top: 12px;
|
|
189
|
+
right: 12px;
|
|
190
|
+
display: inline-flex;
|
|
191
|
+
align-items: center;
|
|
192
|
+
justify-content: center;
|
|
193
|
+
width: 28px;
|
|
194
|
+
min-width: 28px;
|
|
195
|
+
height: 28px;
|
|
196
|
+
padding: 0;
|
|
197
|
+
border: 0;
|
|
198
|
+
border-radius: var(--hive-radius-md);
|
|
199
|
+
background: transparent;
|
|
200
|
+
color: var(--hive-fg-soft);
|
|
201
|
+
font-size: 16px;
|
|
202
|
+
line-height: 1;
|
|
203
|
+
cursor: pointer;
|
|
204
|
+
z-index: 1;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.hive-dialog-close:hover {
|
|
208
|
+
border: 0;
|
|
209
|
+
background: var(--hive-surface-hover);
|
|
210
|
+
color: var(--hive-fg);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.hive-dialog-close:focus-visible {
|
|
214
|
+
outline: 2px solid var(--hive-accent);
|
|
215
|
+
outline-offset: 1px;
|
|
216
|
+
}
|
|
180
217
|
|
|
181
218
|
.hive-dialog {
|
|
182
219
|
display: flex;
|
|
@@ -184,52 +221,52 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
184
221
|
width: min(560px, 100%);
|
|
185
222
|
max-height: 100%;
|
|
186
223
|
overflow: hidden;
|
|
187
|
-
border: 1px solid var(--hive-line
|
|
188
|
-
border-radius:
|
|
189
|
-
background: color-mix(in srgb, var(--hive-bg
|
|
190
|
-
color: var(--hive-fg
|
|
191
|
-
box-shadow:
|
|
192
|
-
color-scheme: dark;
|
|
193
|
-
}
|
|
194
|
-
.hive-dialog-head { flex: 0 0 auto; padding: 12px 14px; border-bottom: 1px solid var(--hive-line
|
|
224
|
+
border: 1px solid var(--hive-line);
|
|
225
|
+
border-radius: var(--hive-radius-lg);
|
|
226
|
+
background: color-mix(in srgb, var(--hive-bg) 97%, var(--hive-fg) 3%);
|
|
227
|
+
color: var(--hive-fg);
|
|
228
|
+
box-shadow: none;
|
|
229
|
+
color-scheme: light dark;
|
|
230
|
+
}
|
|
231
|
+
.hive-dialog-head { flex: 0 0 auto; padding: 12px 14px; border-bottom: 1px solid var(--hive-line); }
|
|
195
232
|
.hive-dialog-head-title { min-width: 0; }
|
|
196
|
-
.hive-dialog-eyebrow { margin-bottom: 2px; color: var(--hive-fg-faint); font-family: var(--hive-mono); font-size:
|
|
197
|
-
.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
|
|
198
|
-
.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
|
|
233
|
+
.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; }
|
|
234
|
+
.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; }
|
|
235
|
+
.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); }
|
|
199
236
|
|
|
200
237
|
.hive-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
|
|
201
238
|
.hive-field-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
|
|
202
239
|
.hive-field-row .hive-field { flex: 1 1 220px; }
|
|
203
240
|
.hive-field-row .hive-field.is-narrow { flex: 0 0 110px; }
|
|
204
|
-
.hive-field-label { color: var(--hive-fg-soft); font-size:
|
|
205
|
-
.hive-field-hint { color: var(--hive-fg-faint); font-size:
|
|
241
|
+
.hive-field-label { color: var(--hive-fg-soft); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
|
|
242
|
+
.hive-field-hint { color: var(--hive-fg-faint); font-size: 12px; line-height: 1.5; }
|
|
206
243
|
.hive-input, .hive-textarea {
|
|
207
244
|
width: 100%;
|
|
208
245
|
padding: 6px 8px;
|
|
209
|
-
border: 1px solid var(--hive-line
|
|
210
|
-
border-radius:
|
|
211
|
-
background: var(--hive-bg
|
|
212
|
-
color: var(--hive-fg
|
|
246
|
+
border: 1px solid var(--hive-line);
|
|
247
|
+
border-radius: var(--hive-radius-md);
|
|
248
|
+
background: var(--hive-bg);
|
|
249
|
+
color: var(--hive-fg);
|
|
213
250
|
font: inherit;
|
|
214
251
|
font-size: 12px;
|
|
215
|
-
line-height: 1.
|
|
252
|
+
line-height: 1.5;
|
|
216
253
|
}
|
|
217
254
|
.hive-textarea { min-height: 76px; resize: vertical; }
|
|
218
|
-
.hive-input:focus-visible, .hive-textarea:focus-visible { outline: 2px solid var(--hive-accent
|
|
255
|
+
.hive-input:focus-visible, .hive-textarea:focus-visible { outline: 2px solid var(--hive-accent); outline-offset: 1px; }
|
|
219
256
|
|
|
220
|
-
.hive-plan-preview-head { display: flex; align-items: baseline; gap: 6px; color: var(--hive-fg-soft); font-size:
|
|
257
|
+
.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; }
|
|
221
258
|
.hive-plan-count { color: var(--hive-fg-faint); font-family: var(--hive-mono); font-weight: 400; letter-spacing: 0; }
|
|
222
259
|
.hive-plan-list { display: flex; flex-direction: column; gap: 6px; }
|
|
223
|
-
.hive-plan-item { padding: 8px 9px; border: 1px solid var(--hive-line
|
|
224
|
-
.hive-plan-item-title { overflow-wrap: anywhere; font-size: 12px; font-weight: 600; line-height: 1.
|
|
225
|
-
.hive-plan-key { margin-left: 6px; color: var(--hive-fg-faint); font-family: var(--hive-mono); font-size:
|
|
226
|
-
.hive-plan-meta { margin-top: 3px; overflow-wrap: anywhere; color: var(--hive-fg-soft); font-size:
|
|
260
|
+
.hive-plan-item { padding: 8px 9px; border: 1px solid var(--hive-line); border-radius: var(--hive-radius-md); background: var(--hive-surface); }
|
|
261
|
+
.hive-plan-item-title { overflow-wrap: anywhere; font-size: 12px; font-weight: 600; line-height: 1.5; }
|
|
262
|
+
.hive-plan-key { margin-left: 6px; color: var(--hive-fg-faint); font-family: var(--hive-mono); font-size: 12px; font-weight: 400; }
|
|
263
|
+
.hive-plan-meta { margin-top: 3px; overflow-wrap: anywhere; color: var(--hive-fg-soft); font-size: 12px; line-height: 1.5; }
|
|
227
264
|
.hive-plan-chips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
|
|
228
|
-
.hive-plan-chip { max-width: 100%; overflow: hidden; padding: 1px 5px; border: 1px solid var(--hive-line
|
|
229
|
-
.hive-plan-empty, .hive-plan-hint { color: var(--hive-fg-faint); font-size:
|
|
230
|
-
.hive-plan-error { padding: 8px 9px; border-left:
|
|
265
|
+
.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; }
|
|
266
|
+
.hive-plan-empty, .hive-plan-hint { color: var(--hive-fg-faint); font-size: 12px; line-height: 1.5; }
|
|
267
|
+
.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; }
|
|
231
268
|
.hive-plan-error:empty { display: none; }
|
|
232
|
-
.hive-plan-raw { max-height: 180px; margin: 0; padding: 8px; overflow: auto; border: 1px solid var(--hive-line
|
|
269
|
+
.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; }
|
|
233
270
|
|
|
234
271
|
.hive-toast {
|
|
235
272
|
position: absolute;
|
|
@@ -240,21 +277,21 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
240
277
|
max-height: min(42vh, 340px);
|
|
241
278
|
overflow: auto;
|
|
242
279
|
padding: 9px 11px;
|
|
243
|
-
border: 1px solid color-mix(in srgb, var(--hive-danger) 45%, var(--hive-line
|
|
280
|
+
border: 1px solid color-mix(in srgb, var(--hive-danger) 45%, var(--hive-line));
|
|
244
281
|
border-left: 3px solid var(--hive-danger);
|
|
245
|
-
border-radius:
|
|
246
|
-
background: color-mix(in srgb, var(--hive-bg
|
|
247
|
-
color: var(--hive-fg
|
|
248
|
-
box-shadow:
|
|
249
|
-
scrollbar-color: var(--hive-line
|
|
282
|
+
border-radius: var(--hive-radius-md);
|
|
283
|
+
background: color-mix(in srgb, var(--hive-bg) 96%, var(--hive-fg) 4%);
|
|
284
|
+
color: var(--hive-fg);
|
|
285
|
+
box-shadow: none;
|
|
286
|
+
scrollbar-color: var(--hive-line) transparent;
|
|
250
287
|
scrollbar-width: thin;
|
|
251
|
-
color-scheme: dark;
|
|
288
|
+
color-scheme: light dark;
|
|
252
289
|
}
|
|
253
|
-
.hive-toast.is-success { border-color: color-mix(in srgb, var(--hive-ok) 45%, var(--hive-line
|
|
254
|
-
.hive-toast-title { padding-top: 1px; font-size:
|
|
290
|
+
.hive-toast.is-success { border-color: color-mix(in srgb, var(--hive-ok) 45%, var(--hive-line)); border-left-color: var(--hive-ok); }
|
|
291
|
+
.hive-toast-title { padding-top: 1px; font-size: 12px; font-weight: 650; }
|
|
255
292
|
.hive-toast-title.is-error { color: var(--hive-danger); }
|
|
256
293
|
.hive-toast-title.is-success { color: var(--hive-ok); }
|
|
257
|
-
.hive-toast-detail { margin-top: 3px; overflow-wrap: anywhere; color: var(--hive-fg-soft); font-family: var(--hive-mono); font-size:
|
|
294
|
+
.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; }
|
|
258
295
|
|
|
259
296
|
.hive-main {
|
|
260
297
|
display: flex;
|
|
@@ -291,13 +328,13 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
291
328
|
gap: 6px;
|
|
292
329
|
min-width: 0;
|
|
293
330
|
padding: 7px 12px;
|
|
294
|
-
border-bottom: 1px solid var(--hive-line
|
|
295
|
-
background: color-mix(in srgb, var(--hive-fg
|
|
331
|
+
border-bottom: 1px solid var(--hive-line);
|
|
332
|
+
background: color-mix(in srgb, var(--hive-fg) 1.5%, transparent);
|
|
296
333
|
}
|
|
297
334
|
|
|
298
335
|
.hive-strip-label {
|
|
299
336
|
color: var(--hive-fg-soft);
|
|
300
|
-
font-size:
|
|
337
|
+
font-size: 12px;
|
|
301
338
|
font-weight: 650;
|
|
302
339
|
letter-spacing: 0.12em;
|
|
303
340
|
text-transform: uppercase;
|
|
@@ -319,23 +356,23 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
319
356
|
gap: 6px;
|
|
320
357
|
max-width: 100%;
|
|
321
358
|
padding: 2px 8px;
|
|
322
|
-
border: 1px solid var(--hive-line
|
|
359
|
+
border: 1px solid var(--hive-line);
|
|
323
360
|
border-radius: 999px;
|
|
324
361
|
background: var(--hive-surface);
|
|
325
|
-
color: var(--hive-fg
|
|
362
|
+
color: var(--hive-fg);
|
|
326
363
|
font: inherit;
|
|
327
|
-
font-size:
|
|
328
|
-
line-height: 1.
|
|
364
|
+
font-size: 12px;
|
|
365
|
+
line-height: 1.5;
|
|
329
366
|
cursor: pointer;
|
|
330
367
|
}
|
|
331
368
|
|
|
332
369
|
.hive-agent-pill:hover {
|
|
333
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
370
|
+
border-color: color-mix(in srgb, var(--hive-accent) 50%, var(--hive-line));
|
|
334
371
|
background: var(--hive-surface-hover);
|
|
335
372
|
}
|
|
336
373
|
|
|
337
374
|
.hive-agent-pill:focus-visible {
|
|
338
|
-
outline: 2px solid var(--hive-accent
|
|
375
|
+
outline: 2px solid var(--hive-accent);
|
|
339
376
|
outline-offset: 1px;
|
|
340
377
|
}
|
|
341
378
|
|
|
@@ -357,14 +394,14 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
357
394
|
overflow: hidden;
|
|
358
395
|
color: var(--hive-fg-soft);
|
|
359
396
|
font-family: var(--hive-mono);
|
|
360
|
-
font-size:
|
|
397
|
+
font-size: 12px;
|
|
361
398
|
text-overflow: ellipsis;
|
|
362
399
|
white-space: nowrap;
|
|
363
400
|
}
|
|
364
401
|
|
|
365
402
|
.hive-agents-empty {
|
|
366
403
|
color: var(--hive-fg-faint);
|
|
367
|
-
font-size:
|
|
404
|
+
font-size: 12px;
|
|
368
405
|
}
|
|
369
406
|
|
|
370
407
|
.hive-stage-chips {
|
|
@@ -378,29 +415,29 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
378
415
|
.hive-stage-chip {
|
|
379
416
|
appearance: none;
|
|
380
417
|
padding: 2px 8px;
|
|
381
|
-
border: 1px solid var(--hive-line
|
|
418
|
+
border: 1px solid var(--hive-line);
|
|
382
419
|
border-radius: 999px;
|
|
383
420
|
background: var(--hive-surface);
|
|
384
421
|
color: var(--hive-fg-soft);
|
|
385
422
|
font: inherit;
|
|
386
|
-
font-size:
|
|
387
|
-
line-height: 1.
|
|
423
|
+
font-size: 12px;
|
|
424
|
+
line-height: 1.5;
|
|
388
425
|
cursor: pointer;
|
|
389
426
|
white-space: nowrap;
|
|
390
427
|
}
|
|
391
428
|
|
|
392
429
|
.hive-stage-chip:hover {
|
|
393
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
430
|
+
border-color: color-mix(in srgb, var(--hive-accent) 50%, var(--hive-line));
|
|
394
431
|
}
|
|
395
432
|
|
|
396
433
|
.hive-stage-chip.is-active {
|
|
397
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
434
|
+
border-color: color-mix(in srgb, var(--hive-accent) 55%, transparent);
|
|
398
435
|
background: var(--hive-accent-soft);
|
|
399
|
-
color: var(--hive-accent
|
|
436
|
+
color: var(--hive-accent);
|
|
400
437
|
}
|
|
401
438
|
|
|
402
439
|
.hive-stage-chip:focus-visible {
|
|
403
|
-
outline: 2px solid var(--hive-accent
|
|
440
|
+
outline: 2px solid var(--hive-accent);
|
|
404
441
|
outline-offset: 1px;
|
|
405
442
|
}
|
|
406
443
|
|
|
@@ -445,7 +482,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
445
482
|
flex: 0 0 auto;
|
|
446
483
|
padding: 16px 10px;
|
|
447
484
|
color: var(--hive-fg-faint);
|
|
448
|
-
font-size:
|
|
485
|
+
font-size: 12px;
|
|
449
486
|
text-align: center;
|
|
450
487
|
}
|
|
451
488
|
|
|
@@ -454,8 +491,8 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
454
491
|
.hive-events-drawer {
|
|
455
492
|
flex: 0 0 auto;
|
|
456
493
|
min-width: 0;
|
|
457
|
-
border-top: 1px solid var(--hive-line
|
|
458
|
-
background: color-mix(in srgb, var(--hive-fg
|
|
494
|
+
border-top: 1px solid var(--hive-line);
|
|
495
|
+
background: color-mix(in srgb, var(--hive-fg) 1.5%, transparent);
|
|
459
496
|
}
|
|
460
497
|
|
|
461
498
|
.hive-events-toggle {
|
|
@@ -468,10 +505,10 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
468
505
|
background: transparent;
|
|
469
506
|
color: var(--hive-fg-soft);
|
|
470
507
|
font: inherit;
|
|
471
|
-
font-size:
|
|
508
|
+
font-size: 12px;
|
|
472
509
|
font-weight: 650;
|
|
473
510
|
letter-spacing: 0.12em;
|
|
474
|
-
line-height: 1.
|
|
511
|
+
line-height: 1.5;
|
|
475
512
|
text-align: left;
|
|
476
513
|
text-transform: uppercase;
|
|
477
514
|
cursor: pointer;
|
|
@@ -480,7 +517,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
480
517
|
.hive-events-toggle:hover { background: var(--hive-surface); }
|
|
481
518
|
|
|
482
519
|
.hive-events-toggle:focus-visible {
|
|
483
|
-
outline: 2px solid var(--hive-accent
|
|
520
|
+
outline: 2px solid var(--hive-accent);
|
|
484
521
|
outline-offset: -2px;
|
|
485
522
|
}
|
|
486
523
|
|
|
@@ -490,14 +527,14 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
490
527
|
margin-left: auto;
|
|
491
528
|
color: var(--hive-fg-faint);
|
|
492
529
|
font-family: var(--hive-mono);
|
|
493
|
-
font-size:
|
|
530
|
+
font-size: 12px;
|
|
494
531
|
font-weight: 400;
|
|
495
532
|
letter-spacing: 0;
|
|
496
533
|
}
|
|
497
534
|
|
|
498
535
|
.hive-events-caret {
|
|
499
536
|
color: var(--hive-fg-faint);
|
|
500
|
-
font-size:
|
|
537
|
+
font-size: 12px;
|
|
501
538
|
}
|
|
502
539
|
|
|
503
540
|
.hive-event-list {
|
|
@@ -518,23 +555,23 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
518
555
|
}
|
|
519
556
|
|
|
520
557
|
.hive-events-drawer.is-open .hive-events-toggle {
|
|
521
|
-
color: var(--hive-fg
|
|
558
|
+
color: var(--hive-fg);
|
|
522
559
|
}
|
|
523
560
|
|
|
524
|
-
@container hiveboard (max-width:
|
|
561
|
+
@container hiveboard (max-width: 819px) {
|
|
525
562
|
.hive-lane.is-empty,
|
|
526
563
|
.hive-lane.is-filtered-out { display: none; }
|
|
527
564
|
|
|
528
565
|
.hive-hint { display: none; }
|
|
529
566
|
}
|
|
530
567
|
|
|
531
|
-
@container hiveboard (min-width:
|
|
568
|
+
@container hiveboard (min-width: 820px) {
|
|
532
569
|
.hive-stage-chips { display: none; }
|
|
533
570
|
.hive-filter-empty,
|
|
534
571
|
.hive-filter-empty.is-visible { display: none; }
|
|
535
572
|
.hive-lanes {
|
|
536
573
|
display: grid;
|
|
537
|
-
grid-template-columns: repeat(
|
|
574
|
+
grid-template-columns: repeat(4, minmax(200px, 1fr));
|
|
538
575
|
align-items: stretch;
|
|
539
576
|
gap: 9px;
|
|
540
577
|
overflow: hidden;
|
|
@@ -581,11 +618,11 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
581
618
|
.hive-init-card {
|
|
582
619
|
width: min(520px, 100%);
|
|
583
620
|
padding: 20px;
|
|
584
|
-
border: 1px solid var(--hive-line
|
|
585
|
-
border-radius:
|
|
586
|
-
background: color-mix(in srgb, var(--hive-bg
|
|
587
|
-
color: var(--hive-fg
|
|
588
|
-
box-shadow:
|
|
621
|
+
border: 1px solid var(--hive-line);
|
|
622
|
+
border-radius: var(--hive-radius-lg);
|
|
623
|
+
background: color-mix(in srgb, var(--hive-bg) 96%, var(--hive-fg) 4%);
|
|
624
|
+
color: var(--hive-fg);
|
|
625
|
+
box-shadow: none;
|
|
589
626
|
}
|
|
590
627
|
|
|
591
628
|
.hive-init-repo-row {
|
|
@@ -598,7 +635,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
598
635
|
|
|
599
636
|
.hive-init-repo-label {
|
|
600
637
|
flex: 0 0 auto;
|
|
601
|
-
font-size:
|
|
638
|
+
font-size: 12px;
|
|
602
639
|
font-weight: 650;
|
|
603
640
|
letter-spacing: 0.1em;
|
|
604
641
|
text-transform: uppercase;
|
|
@@ -607,23 +644,23 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
607
644
|
.hive-init-repo {
|
|
608
645
|
min-width: 0;
|
|
609
646
|
overflow-wrap: anywhere;
|
|
610
|
-
color: var(--hive-fg
|
|
647
|
+
color: var(--hive-fg);
|
|
611
648
|
font-family: var(--hive-mono);
|
|
612
|
-
font-size:
|
|
649
|
+
font-size: 12px;
|
|
613
650
|
}
|
|
614
651
|
|
|
615
652
|
.hive-init-title {
|
|
616
653
|
margin: 10px 0 0;
|
|
617
654
|
font-size: 16px;
|
|
618
655
|
font-weight: 650;
|
|
619
|
-
line-height: 1.
|
|
656
|
+
line-height: 1.5;
|
|
620
657
|
}
|
|
621
658
|
|
|
622
659
|
.hive-init-description {
|
|
623
660
|
margin: 6px 0 0;
|
|
624
661
|
color: var(--hive-fg-soft);
|
|
625
|
-
font-size:
|
|
626
|
-
line-height: 1.
|
|
662
|
+
font-size: 12px;
|
|
663
|
+
line-height: 1.5;
|
|
627
664
|
}
|
|
628
665
|
|
|
629
666
|
.hive-init-button { margin-top: 14px; }
|
|
@@ -636,7 +673,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
636
673
|
.hive-init-readonly {
|
|
637
674
|
margin-top: 8px;
|
|
638
675
|
color: var(--hive-warn);
|
|
639
|
-
font-size:
|
|
676
|
+
font-size: 12px;
|
|
640
677
|
line-height: 1.5;
|
|
641
678
|
}
|
|
642
679
|
|
|
@@ -645,8 +682,8 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
645
682
|
align-items: center;
|
|
646
683
|
gap: 7px;
|
|
647
684
|
margin-top: 10px;
|
|
648
|
-
color: var(--hive-accent
|
|
649
|
-
font-size:
|
|
685
|
+
color: var(--hive-accent);
|
|
686
|
+
font-size: 12px;
|
|
650
687
|
line-height: 1.5;
|
|
651
688
|
}
|
|
652
689
|
|
|
@@ -654,8 +691,8 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
654
691
|
width: 12px;
|
|
655
692
|
height: 12px;
|
|
656
693
|
flex: 0 0 auto;
|
|
657
|
-
border: 2px solid color-mix(in srgb, var(--hive-accent
|
|
658
|
-
border-top-color: var(--hive-accent
|
|
694
|
+
border: 2px solid color-mix(in srgb, var(--hive-accent) 25%, transparent);
|
|
695
|
+
border-top-color: var(--hive-accent);
|
|
659
696
|
border-radius: 50%;
|
|
660
697
|
animation: hive-spin 0.8s linear infinite;
|
|
661
698
|
}
|
|
@@ -667,12 +704,12 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
667
704
|
.hive-init-error {
|
|
668
705
|
margin-top: 10px;
|
|
669
706
|
padding: 8px 9px;
|
|
670
|
-
border-left:
|
|
671
|
-
border-radius: 0
|
|
707
|
+
border-left: 1px solid var(--hive-danger);
|
|
708
|
+
border-radius: 0 var(--hive-radius-sm) var(--hive-radius-sm) 0;
|
|
672
709
|
background: color-mix(in srgb, var(--hive-danger) 10%, transparent);
|
|
673
|
-
color: color-mix(in srgb, var(--hive-danger) 82%, var(--hive-fg
|
|
710
|
+
color: color-mix(in srgb, var(--hive-danger) 82%, var(--hive-fg));
|
|
674
711
|
font-family: var(--hive-mono);
|
|
675
|
-
font-size:
|
|
712
|
+
font-size: 12px;
|
|
676
713
|
line-height: 1.5;
|
|
677
714
|
overflow-wrap: anywhere;
|
|
678
715
|
white-space: pre-wrap;
|
|
@@ -680,15 +717,15 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
680
717
|
|
|
681
718
|
.hive-init-output {
|
|
682
719
|
margin-top: 10px;
|
|
683
|
-
border: 1px solid var(--hive-line
|
|
684
|
-
border-radius:
|
|
720
|
+
border: 1px solid var(--hive-line);
|
|
721
|
+
border-radius: var(--hive-radius-md);
|
|
685
722
|
background: var(--hive-surface);
|
|
686
723
|
}
|
|
687
724
|
|
|
688
725
|
.hive-output-summary {
|
|
689
726
|
padding: 6px 8px;
|
|
690
727
|
color: var(--hive-fg-soft);
|
|
691
|
-
font-size:
|
|
728
|
+
font-size: 12px;
|
|
692
729
|
line-height: 1.5;
|
|
693
730
|
cursor: pointer;
|
|
694
731
|
user-select: none;
|
|
@@ -701,7 +738,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
701
738
|
overflow: auto;
|
|
702
739
|
color: var(--hive-fg-soft);
|
|
703
740
|
font-family: var(--hive-mono);
|
|
704
|
-
font-size:
|
|
741
|
+
font-size: 12px;
|
|
705
742
|
line-height: 1.5;
|
|
706
743
|
overflow-wrap: anywhere;
|
|
707
744
|
white-space: pre-wrap;
|
|
@@ -719,19 +756,19 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
719
756
|
flex-direction: row;
|
|
720
757
|
gap: 8px;
|
|
721
758
|
padding: 10px 16px;
|
|
722
|
-
border-bottom: 1px solid color-mix(in srgb, var(--hive-accent
|
|
759
|
+
border-bottom: 1px solid color-mix(in srgb, var(--hive-accent) 32%, var(--hive-line));
|
|
723
760
|
background: var(--hive-accent-soft);
|
|
724
|
-
color: var(--hive-accent
|
|
725
|
-
font-size:
|
|
726
|
-
line-height: 1.
|
|
761
|
+
color: var(--hive-accent);
|
|
762
|
+
font-size: 12px;
|
|
763
|
+
line-height: 1.5;
|
|
727
764
|
}
|
|
728
765
|
|
|
729
766
|
.hive-queen-hint.is-visible { display: flex; }
|
|
730
767
|
.hive-queen-badge {
|
|
731
768
|
padding: 2px 8px;
|
|
732
|
-
border: 1px solid var(--hive-line
|
|
769
|
+
border: 1px solid var(--hive-line);
|
|
733
770
|
border-radius: 999px;
|
|
734
|
-
font-size:
|
|
771
|
+
font-size: 12px;
|
|
735
772
|
font-weight: 650;
|
|
736
773
|
letter-spacing: 0.09em;
|
|
737
774
|
line-height: 1.5;
|
|
@@ -742,19 +779,19 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
742
779
|
.hive-queen-badge.is-hidden { display: none; }
|
|
743
780
|
|
|
744
781
|
.hive-queen-badge.is-active {
|
|
745
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
782
|
+
border-color: color-mix(in srgb, var(--hive-accent) 45%, transparent);
|
|
746
783
|
background: var(--hive-accent-soft);
|
|
747
|
-
color: var(--hive-accent
|
|
784
|
+
color: var(--hive-accent);
|
|
748
785
|
}
|
|
749
786
|
|
|
750
787
|
.hive-queen-badge.is-inactive {
|
|
751
|
-
border-color: var(--hive-line
|
|
788
|
+
border-color: var(--hive-line);
|
|
752
789
|
background: var(--hive-surface);
|
|
753
790
|
color: var(--hive-fg-soft);
|
|
754
791
|
}
|
|
755
792
|
|
|
756
793
|
.hive-queen-hint.is-offer {
|
|
757
|
-
border-bottom-color: var(--hive-line
|
|
794
|
+
border-bottom-color: var(--hive-line);
|
|
758
795
|
background: var(--hive-surface);
|
|
759
796
|
color: var(--hive-fg-soft);
|
|
760
797
|
}
|
|
@@ -783,15 +820,15 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
783
820
|
padding: 0 6px;
|
|
784
821
|
color: var(--hive-fg-soft);
|
|
785
822
|
font-size: 16px;
|
|
786
|
-
line-height: 1.
|
|
823
|
+
line-height: 1.5;
|
|
787
824
|
}
|
|
788
825
|
|
|
789
826
|
.hive-queen-dismiss.is-hidden { display: none; }
|
|
790
827
|
|
|
791
828
|
.hive-queen-takeover {
|
|
792
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
829
|
+
border-color: color-mix(in srgb, var(--hive-accent) 45%, var(--hive-line));
|
|
793
830
|
background: var(--hive-accent-soft);
|
|
794
|
-
color: var(--hive-accent
|
|
831
|
+
color: var(--hive-accent);
|
|
795
832
|
}
|
|
796
833
|
|
|
797
834
|
.hive-queen-takeover:disabled {
|
|
@@ -808,11 +845,11 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
808
845
|
|
|
809
846
|
.hive-queen-output {
|
|
810
847
|
margin-top: 6px;
|
|
811
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
812
|
-
background: color-mix(in srgb, var(--hive-bg
|
|
848
|
+
border-color: color-mix(in srgb, var(--hive-accent) 32%, var(--hive-line));
|
|
849
|
+
background: color-mix(in srgb, var(--hive-bg) 80%, transparent);
|
|
813
850
|
}
|
|
814
851
|
|
|
815
|
-
.hive-queen-output .hive-output-summary { color: var(--hive-accent
|
|
852
|
+
.hive-queen-output .hive-output-summary { color: var(--hive-accent); }
|
|
816
853
|
.hive-queen-output .hive-output-pre { max-height: 120px; }
|
|
817
854
|
|
|
818
855
|
.hive-supervisor {
|
|
@@ -823,16 +860,16 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
823
860
|
gap: 5px 8px;
|
|
824
861
|
min-width: 0;
|
|
825
862
|
padding: 6px 12px;
|
|
826
|
-
border-bottom: 1px solid var(--hive-line
|
|
827
|
-
background: color-mix(in srgb, var(--hive-fg
|
|
828
|
-
font-size:
|
|
863
|
+
border-bottom: 1px solid var(--hive-line);
|
|
864
|
+
background: color-mix(in srgb, var(--hive-fg) 2%, transparent);
|
|
865
|
+
font-size: 12px;
|
|
829
866
|
}
|
|
830
867
|
|
|
831
868
|
.hive-supervisor.is-hidden { display: none; }
|
|
832
869
|
|
|
833
870
|
.hive-supervisor-label {
|
|
834
871
|
color: var(--hive-fg-soft);
|
|
835
|
-
font-size:
|
|
872
|
+
font-size: 12px;
|
|
836
873
|
font-weight: 650;
|
|
837
874
|
letter-spacing: 0.12em;
|
|
838
875
|
text-transform: uppercase;
|
|
@@ -852,7 +889,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
852
889
|
gap: 5px;
|
|
853
890
|
max-width: 100%;
|
|
854
891
|
padding: 1px 7px;
|
|
855
|
-
border: 1px solid var(--hive-line
|
|
892
|
+
border: 1px solid var(--hive-line);
|
|
856
893
|
border-radius: 999px;
|
|
857
894
|
background: var(--hive-surface);
|
|
858
895
|
}
|
|
@@ -862,13 +899,13 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
862
899
|
overflow: hidden;
|
|
863
900
|
color: var(--hive-fg-soft);
|
|
864
901
|
font-family: var(--hive-mono);
|
|
865
|
-
font-size:
|
|
902
|
+
font-size: 12px;
|
|
866
903
|
text-overflow: ellipsis;
|
|
867
904
|
white-space: nowrap;
|
|
868
905
|
}
|
|
869
906
|
|
|
870
907
|
.hive-supervisor-state {
|
|
871
|
-
font-size:
|
|
908
|
+
font-size: 12px;
|
|
872
909
|
font-weight: 600;
|
|
873
910
|
white-space: nowrap;
|
|
874
911
|
}
|
|
@@ -881,16 +918,16 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
881
918
|
.hive-supervisor-resume {
|
|
882
919
|
margin-left: 2px;
|
|
883
920
|
padding: 2px 6px;
|
|
884
|
-
font-size:
|
|
885
|
-
line-height: 1.
|
|
921
|
+
font-size: 12px;
|
|
922
|
+
line-height: 1.5;
|
|
886
923
|
}
|
|
887
924
|
|
|
888
925
|
.hive-supervisor-limits {
|
|
889
926
|
flex: 0 0 auto;
|
|
890
927
|
margin-left: auto;
|
|
891
928
|
padding: 2px 7px;
|
|
892
|
-
font-size:
|
|
893
|
-
line-height: 1.
|
|
929
|
+
font-size: 12px;
|
|
930
|
+
line-height: 1.5;
|
|
894
931
|
}
|
|
895
932
|
|
|
896
933
|
.hive-supervisor-limits.is-hidden { display: none; }
|
|
@@ -905,7 +942,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
905
942
|
|
|
906
943
|
.hive-limits-repo-label {
|
|
907
944
|
color: var(--hive-fg-faint);
|
|
908
|
-
font-size:
|
|
945
|
+
font-size: 12px;
|
|
909
946
|
font-weight: 650;
|
|
910
947
|
letter-spacing: 0.1em;
|
|
911
948
|
text-transform: uppercase;
|
|
@@ -913,14 +950,14 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
913
950
|
|
|
914
951
|
.hive-limits-repo-path {
|
|
915
952
|
overflow-wrap: anywhere;
|
|
916
|
-
color: var(--hive-fg
|
|
953
|
+
color: var(--hive-fg);
|
|
917
954
|
font-family: var(--hive-mono);
|
|
918
|
-
font-size:
|
|
955
|
+
font-size: 12px;
|
|
919
956
|
}
|
|
920
957
|
|
|
921
958
|
.hive-limits-description {
|
|
922
959
|
color: var(--hive-fg-soft);
|
|
923
|
-
font-size:
|
|
960
|
+
font-size: 12px;
|
|
924
961
|
line-height: 1.5;
|
|
925
962
|
}
|
|
926
963
|
|
|
@@ -933,31 +970,50 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
933
970
|
|
|
934
971
|
.hive-limits-row {
|
|
935
972
|
display: grid;
|
|
936
|
-
grid-template-columns: minmax(0, 1fr) 96px 48px 48px;
|
|
973
|
+
grid-template-columns: minmax(0, 1fr) 96px 48px 48px 28px;
|
|
937
974
|
align-items: center;
|
|
938
975
|
gap: 6px;
|
|
939
976
|
min-width: 0;
|
|
940
977
|
padding: 3px 0;
|
|
941
|
-
border-top: 1px solid color-mix(in srgb, var(--hive-line
|
|
978
|
+
border-top: 1px solid color-mix(in srgb, var(--hive-line) 70%, transparent);
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
.hive-limits-cell.is-action { min-width: 28px; }
|
|
982
|
+
|
|
983
|
+
.hive-role-remove {
|
|
984
|
+
width: 28px;
|
|
985
|
+
min-width: 28px;
|
|
986
|
+
height: 24px;
|
|
987
|
+
padding: 0;
|
|
988
|
+
border-color: transparent;
|
|
989
|
+
background: transparent;
|
|
990
|
+
color: var(--hive-danger);
|
|
991
|
+
font-size: 14px;
|
|
992
|
+
line-height: 1;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
.hive-role-remove:hover:not(:disabled) {
|
|
996
|
+
border-color: color-mix(in srgb, var(--hive-danger) 55%, var(--hive-line));
|
|
997
|
+
background: color-mix(in srgb, var(--hive-danger) 12%, transparent);
|
|
942
998
|
}
|
|
943
999
|
|
|
944
1000
|
.hive-limits-row.is-head {
|
|
945
1001
|
padding: 0 0 2px;
|
|
946
1002
|
border-top: 0;
|
|
947
1003
|
color: var(--hive-fg-faint);
|
|
948
|
-
font-size:
|
|
1004
|
+
font-size: 12px;
|
|
949
1005
|
letter-spacing: 0.06em;
|
|
950
1006
|
text-transform: uppercase;
|
|
951
1007
|
}
|
|
952
1008
|
|
|
953
1009
|
.hive-limits-cell { min-width: 0; }
|
|
954
|
-
.hive-limits-cell.is-number { text-align: right; color: var(--hive-fg-soft); font-family: var(--hive-mono); font-size:
|
|
1010
|
+
.hive-limits-cell.is-number { text-align: right; color: var(--hive-fg-soft); font-family: var(--hive-mono); font-size: 12px; }
|
|
955
1011
|
|
|
956
1012
|
.hive-limits-role {
|
|
957
1013
|
overflow: hidden;
|
|
958
|
-
color: var(--hive-fg
|
|
1014
|
+
color: var(--hive-fg);
|
|
959
1015
|
font-family: var(--hive-mono);
|
|
960
|
-
font-size:
|
|
1016
|
+
font-size: 12px;
|
|
961
1017
|
text-overflow: ellipsis;
|
|
962
1018
|
white-space: nowrap;
|
|
963
1019
|
}
|
|
@@ -966,30 +1022,30 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
966
1022
|
width: 100%;
|
|
967
1023
|
padding: 4px 5px;
|
|
968
1024
|
font-family: var(--hive-mono);
|
|
969
|
-
font-size:
|
|
1025
|
+
font-size: 12px;
|
|
970
1026
|
text-align: right;
|
|
971
1027
|
}
|
|
972
1028
|
|
|
973
1029
|
.hive-limits-hint {
|
|
974
1030
|
color: var(--hive-fg-faint);
|
|
975
|
-
font-size:
|
|
976
|
-
line-height: 1.
|
|
1031
|
+
font-size: 12px;
|
|
1032
|
+
line-height: 1.5;
|
|
977
1033
|
}
|
|
978
1034
|
|
|
979
1035
|
.hive-limits-empty {
|
|
980
1036
|
color: var(--hive-fg-faint);
|
|
981
|
-
font-size:
|
|
1037
|
+
font-size: 12px;
|
|
982
1038
|
line-height: 1.5;
|
|
983
1039
|
}
|
|
984
1040
|
|
|
985
1041
|
.hive-limits-error {
|
|
986
1042
|
padding: 8px 9px;
|
|
987
|
-
border-left:
|
|
988
|
-
border-radius: 0
|
|
1043
|
+
border-left: 1px solid var(--hive-danger);
|
|
1044
|
+
border-radius: 0 var(--hive-radius-sm) var(--hive-radius-sm) 0;
|
|
989
1045
|
background: color-mix(in srgb, var(--hive-danger) 10%, transparent);
|
|
990
|
-
color: color-mix(in srgb, var(--hive-danger) 82%, var(--hive-fg
|
|
1046
|
+
color: color-mix(in srgb, var(--hive-danger) 82%, var(--hive-fg));
|
|
991
1047
|
font-family: var(--hive-mono);
|
|
992
|
-
font-size:
|
|
1048
|
+
font-size: 12px;
|
|
993
1049
|
line-height: 1.5;
|
|
994
1050
|
overflow-wrap: anywhere;
|
|
995
1051
|
white-space: pre-wrap;
|
|
@@ -999,15 +1055,15 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
999
1055
|
|
|
1000
1056
|
.hive-status {
|
|
1001
1057
|
padding: 2px 8px;
|
|
1002
|
-
border: 1px solid color-mix(in srgb, var(--hive-danger) 40%, var(--hive-line
|
|
1058
|
+
border: 1px solid color-mix(in srgb, var(--hive-danger) 40%, var(--hive-line));
|
|
1003
1059
|
border-radius: 999px;
|
|
1004
1060
|
background: color-mix(in srgb, var(--hive-danger) 9%, transparent);
|
|
1005
1061
|
}
|
|
1006
1062
|
|
|
1007
1063
|
.hive-field-hint {
|
|
1008
1064
|
padding: 4px 7px;
|
|
1009
|
-
border: 1px solid color-mix(in srgb, var(--hive-line
|
|
1010
|
-
border-radius:
|
|
1065
|
+
border: 1px solid color-mix(in srgb, var(--hive-line) 70%, transparent);
|
|
1066
|
+
border-radius: var(--hive-radius-sm);
|
|
1011
1067
|
background: var(--hive-surface);
|
|
1012
1068
|
line-height: 1.5;
|
|
1013
1069
|
}
|
|
@@ -1024,7 +1080,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1024
1080
|
|
|
1025
1081
|
.hive-oldest-id {
|
|
1026
1082
|
font-family: var(--hive-mono);
|
|
1027
|
-
font-size:
|
|
1083
|
+
font-size: 12px;
|
|
1028
1084
|
font-weight: 400;
|
|
1029
1085
|
overflow-wrap: anywhere;
|
|
1030
1086
|
}
|
|
@@ -1036,19 +1092,19 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1036
1092
|
gap: 5px;
|
|
1037
1093
|
min-width: 0;
|
|
1038
1094
|
padding: 1px 8px;
|
|
1039
|
-
border: 1px solid var(--hive-line
|
|
1095
|
+
border: 1px solid var(--hive-line);
|
|
1040
1096
|
border-radius: 999px;
|
|
1041
1097
|
background: var(--hive-surface);
|
|
1042
1098
|
color: var(--hive-fg-soft);
|
|
1043
|
-
font-size:
|
|
1044
|
-
line-height: 1.
|
|
1099
|
+
font-size: 12px;
|
|
1100
|
+
line-height: 1.5;
|
|
1045
1101
|
}
|
|
1046
1102
|
|
|
1047
1103
|
.hive-supervisor-inline.is-hidden { display: none; }
|
|
1048
1104
|
|
|
1049
1105
|
.hive-supervisor-inline-label {
|
|
1050
1106
|
color: var(--hive-fg-faint);
|
|
1051
|
-
font-size:
|
|
1107
|
+
font-size: 12px;
|
|
1052
1108
|
font-weight: 650;
|
|
1053
1109
|
letter-spacing: 0.1em;
|
|
1054
1110
|
text-transform: uppercase;
|
|
@@ -1067,8 +1123,8 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1067
1123
|
|
|
1068
1124
|
.hive-supervisor-inline-resume {
|
|
1069
1125
|
padding: 1px 6px;
|
|
1070
|
-
font-size:
|
|
1071
|
-
line-height: 1.
|
|
1126
|
+
font-size: 12px;
|
|
1127
|
+
line-height: 1.5;
|
|
1072
1128
|
}
|
|
1073
1129
|
|
|
1074
1130
|
.hive-supervisor-inline-resume.is-hidden { display: none; }
|
|
@@ -1078,7 +1134,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1078
1134
|
min-width: 28px;
|
|
1079
1135
|
padding-inline: 8px;
|
|
1080
1136
|
font-size: 14px;
|
|
1081
|
-
line-height: 1.
|
|
1137
|
+
line-height: 1.5;
|
|
1082
1138
|
}
|
|
1083
1139
|
|
|
1084
1140
|
.hive-settings-section {
|
|
@@ -1087,14 +1143,14 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1087
1143
|
gap: 8px;
|
|
1088
1144
|
min-width: 0;
|
|
1089
1145
|
padding-top: 12px;
|
|
1090
|
-
border-top: 1px solid color-mix(in srgb, var(--hive-line
|
|
1146
|
+
border-top: 1px solid color-mix(in srgb, var(--hive-line) 70%, transparent);
|
|
1091
1147
|
}
|
|
1092
1148
|
|
|
1093
1149
|
.hive-settings-section:first-of-type { padding-top: 0; border-top: 0; }
|
|
1094
1150
|
|
|
1095
1151
|
.hive-settings-section-title {
|
|
1096
|
-
color: var(--hive-fg
|
|
1097
|
-
font-size:
|
|
1152
|
+
color: var(--hive-fg);
|
|
1153
|
+
font-size: 12px;
|
|
1098
1154
|
font-weight: 650;
|
|
1099
1155
|
letter-spacing: 0.08em;
|
|
1100
1156
|
text-transform: uppercase;
|
|
@@ -1110,12 +1166,12 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1110
1166
|
|
|
1111
1167
|
.hive-settings-note {
|
|
1112
1168
|
padding: 8px 10px;
|
|
1113
|
-
border: 1px solid color-mix(in srgb, var(--hive-warn) 38%, var(--hive-line
|
|
1114
|
-
border-radius:
|
|
1169
|
+
border: 1px solid color-mix(in srgb, var(--hive-warn) 38%, var(--hive-line));
|
|
1170
|
+
border-radius: var(--hive-radius-sm);
|
|
1115
1171
|
background: color-mix(in srgb, var(--hive-warn) 9%, transparent);
|
|
1116
1172
|
color: var(--hive-warn);
|
|
1117
|
-
font-size:
|
|
1118
|
-
line-height: 1.
|
|
1173
|
+
font-size: 12px;
|
|
1174
|
+
line-height: 1.5;
|
|
1119
1175
|
}
|
|
1120
1176
|
|
|
1121
1177
|
/* -------------------------------------------------------------------- spacing */
|
|
@@ -1154,18 +1210,18 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1154
1210
|
.hive-plan-hint,
|
|
1155
1211
|
.hive-limits-description,
|
|
1156
1212
|
.hive-limits-hint,
|
|
1157
|
-
.hive-queen-text { max-width: 76ch; line-height: 1.
|
|
1213
|
+
.hive-queen-text { max-width: 76ch; line-height: 1.5; }
|
|
1158
1214
|
|
|
1159
1215
|
.hive-empty,
|
|
1160
1216
|
.hive-filter-empty,
|
|
1161
1217
|
.hive-agents-empty {
|
|
1162
1218
|
padding: 12px 14px;
|
|
1163
|
-
border: 1px solid var(--hive-line
|
|
1164
|
-
border-radius:
|
|
1219
|
+
border: 1px solid var(--hive-line);
|
|
1220
|
+
border-radius: var(--hive-radius-md);
|
|
1165
1221
|
background: var(--hive-surface);
|
|
1166
1222
|
color: var(--hive-fg-soft);
|
|
1167
|
-
font-size:
|
|
1168
|
-
line-height: 1.
|
|
1223
|
+
font-size: 12px;
|
|
1224
|
+
line-height: 1.5;
|
|
1169
1225
|
text-align: left;
|
|
1170
1226
|
}
|
|
1171
1227
|
|
|
@@ -1175,20 +1231,20 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1175
1231
|
.hive-limits-hint,
|
|
1176
1232
|
.hive-note {
|
|
1177
1233
|
padding: 8px 10px;
|
|
1178
|
-
border: 1px solid color-mix(in srgb, var(--hive-line
|
|
1179
|
-
border-radius:
|
|
1234
|
+
border: 1px solid color-mix(in srgb, var(--hive-line) 80%, transparent);
|
|
1235
|
+
border-radius: var(--hive-radius-sm);
|
|
1180
1236
|
background: var(--hive-surface);
|
|
1181
1237
|
color: var(--hive-fg-soft);
|
|
1182
|
-
font-size:
|
|
1183
|
-
line-height: 1.
|
|
1238
|
+
font-size: 12px;
|
|
1239
|
+
line-height: 1.5;
|
|
1184
1240
|
}
|
|
1185
1241
|
|
|
1186
1242
|
.hive-init-readonly {
|
|
1187
1243
|
padding: 8px 10px;
|
|
1188
|
-
border: 1px solid color-mix(in srgb, var(--hive-warn) 38%, var(--hive-line
|
|
1189
|
-
border-radius:
|
|
1244
|
+
border: 1px solid color-mix(in srgb, var(--hive-warn) 38%, var(--hive-line));
|
|
1245
|
+
border-radius: var(--hive-radius-sm);
|
|
1190
1246
|
background: color-mix(in srgb, var(--hive-warn) 9%, transparent);
|
|
1191
|
-
line-height: 1.
|
|
1247
|
+
line-height: 1.5;
|
|
1192
1248
|
}
|
|
1193
1249
|
|
|
1194
1250
|
.hive-icon-button {
|
|
@@ -1203,7 +1259,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1203
1259
|
border: 0;
|
|
1204
1260
|
border-color: transparent;
|
|
1205
1261
|
background: transparent;
|
|
1206
|
-
color: color-mix(in srgb, var(--hive-fg
|
|
1262
|
+
color: color-mix(in srgb, var(--hive-fg) 80%, transparent);
|
|
1207
1263
|
font-size: 0;
|
|
1208
1264
|
line-height: 1;
|
|
1209
1265
|
box-shadow: none;
|
|
@@ -1214,13 +1270,13 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1214
1270
|
border: 0;
|
|
1215
1271
|
border-color: transparent;
|
|
1216
1272
|
background: transparent;
|
|
1217
|
-
color: var(--hive-fg
|
|
1273
|
+
color: var(--hive-fg);
|
|
1218
1274
|
}
|
|
1219
1275
|
|
|
1220
1276
|
.hive-icon-button:active { transform: none; }
|
|
1221
1277
|
|
|
1222
1278
|
.hive-icon-button:focus-visible {
|
|
1223
|
-
outline: 2px solid var(--hive-accent
|
|
1279
|
+
outline: 2px solid var(--hive-accent);
|
|
1224
1280
|
outline-offset: 1px;
|
|
1225
1281
|
}
|
|
1226
1282
|
|
|
@@ -1266,7 +1322,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1266
1322
|
display: flex;
|
|
1267
1323
|
align-items: center;
|
|
1268
1324
|
gap: 4px;
|
|
1269
|
-
border-bottom: 1px solid var(--hive-line
|
|
1325
|
+
border-bottom: 1px solid var(--hive-line);
|
|
1270
1326
|
}
|
|
1271
1327
|
|
|
1272
1328
|
.hive-settings-tab {
|
|
@@ -1276,20 +1332,20 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1276
1332
|
border-bottom: 2px solid transparent;
|
|
1277
1333
|
background: transparent;
|
|
1278
1334
|
color: var(--hive-fg-soft);
|
|
1279
|
-
font-size:
|
|
1280
|
-
line-height: 1.
|
|
1335
|
+
font-size: 12px;
|
|
1336
|
+
line-height: 1.5;
|
|
1281
1337
|
cursor: pointer;
|
|
1282
1338
|
}
|
|
1283
1339
|
|
|
1284
|
-
.hive-settings-tab:hover { color: var(--hive-fg
|
|
1340
|
+
.hive-settings-tab:hover { color: var(--hive-fg); }
|
|
1285
1341
|
|
|
1286
1342
|
.hive-settings-tab[aria-selected="true"] {
|
|
1287
|
-
border-bottom-color: var(--hive-accent
|
|
1288
|
-
color: var(--hive-fg
|
|
1343
|
+
border-bottom-color: var(--hive-accent);
|
|
1344
|
+
color: var(--hive-fg);
|
|
1289
1345
|
}
|
|
1290
1346
|
|
|
1291
1347
|
.hive-settings-tab:focus-visible {
|
|
1292
|
-
outline: 2px solid var(--hive-accent
|
|
1348
|
+
outline: 2px solid var(--hive-accent);
|
|
1293
1349
|
outline-offset: -2px;
|
|
1294
1350
|
}
|
|
1295
1351
|
|
|
@@ -1300,6 +1356,17 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1300
1356
|
border-top: 0;
|
|
1301
1357
|
}
|
|
1302
1358
|
|
|
1359
|
+
.hive-help-queen code,
|
|
1360
|
+
.hive-queen-command {
|
|
1361
|
+
padding: 1px 4px;
|
|
1362
|
+
border: 1px solid var(--hive-line);
|
|
1363
|
+
border-radius: var(--hive-radius-sm);
|
|
1364
|
+
background: var(--hive-surface);
|
|
1365
|
+
font-family: var(--hive-mono);
|
|
1366
|
+
font-size: 12px;
|
|
1367
|
+
white-space: nowrap;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1303
1370
|
.hive-settings-form-actions {
|
|
1304
1371
|
display: flex;
|
|
1305
1372
|
align-items: center;
|
|
@@ -1317,8 +1384,8 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1317
1384
|
height: 28px;
|
|
1318
1385
|
min-height: 28px;
|
|
1319
1386
|
padding: 0 14px;
|
|
1320
|
-
border-radius:
|
|
1321
|
-
font-size:
|
|
1387
|
+
border-radius: var(--hive-radius-md);
|
|
1388
|
+
font-size: 12px;
|
|
1322
1389
|
line-height: 1;
|
|
1323
1390
|
}
|
|
1324
1391
|
|
|
@@ -1328,27 +1395,27 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1328
1395
|
}
|
|
1329
1396
|
|
|
1330
1397
|
.hive-settings-primary {
|
|
1331
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
1332
|
-
background: var(--hive-accent
|
|
1333
|
-
color: var(--hive-bg
|
|
1398
|
+
border-color: color-mix(in srgb, var(--hive-accent) 70%, var(--hive-line));
|
|
1399
|
+
background: var(--hive-accent);
|
|
1400
|
+
color: var(--hive-bg);
|
|
1334
1401
|
}
|
|
1335
1402
|
|
|
1336
1403
|
.hive-settings-primary:hover {
|
|
1337
|
-
border-color: var(--hive-accent
|
|
1338
|
-
background: color-mix(in srgb, var(--hive-accent
|
|
1339
|
-
color: var(--hive-bg
|
|
1404
|
+
border-color: var(--hive-accent);
|
|
1405
|
+
background: color-mix(in srgb, var(--hive-accent) 86%, white);
|
|
1406
|
+
color: var(--hive-bg);
|
|
1340
1407
|
}
|
|
1341
1408
|
|
|
1342
1409
|
.hive-settings-secondary {
|
|
1343
|
-
border-color: var(--hive-line
|
|
1410
|
+
border-color: var(--hive-line);
|
|
1344
1411
|
background: var(--hive-surface-strong);
|
|
1345
|
-
color: var(--hive-fg
|
|
1412
|
+
color: var(--hive-fg);
|
|
1346
1413
|
}
|
|
1347
1414
|
|
|
1348
1415
|
.hive-settings-secondary:hover {
|
|
1349
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
1416
|
+
border-color: color-mix(in srgb, var(--hive-accent) 40%, var(--hive-line));
|
|
1350
1417
|
background: var(--hive-surface-hover);
|
|
1351
|
-
color: var(--hive-fg
|
|
1418
|
+
color: var(--hive-fg);
|
|
1352
1419
|
}
|
|
1353
1420
|
|
|
1354
1421
|
.hive-settings-form-actions .hive-btn:disabled {
|
|
@@ -1365,10 +1432,10 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1365
1432
|
max-width: 92vw;
|
|
1366
1433
|
height: auto;
|
|
1367
1434
|
max-height: 80vh;
|
|
1368
|
-
border: 1px solid var(--hive-line
|
|
1369
|
-
border-radius:
|
|
1370
|
-
background: color-mix(in srgb, var(--hive-bg
|
|
1371
|
-
box-shadow:
|
|
1435
|
+
border: 1px solid var(--hive-line);
|
|
1436
|
+
border-radius: var(--hive-radius-lg);
|
|
1437
|
+
background: color-mix(in srgb, var(--hive-bg) 97%, var(--hive-fg) 3%);
|
|
1438
|
+
box-shadow: none;
|
|
1372
1439
|
overflow: hidden;
|
|
1373
1440
|
}
|
|
1374
1441
|
|
|
@@ -1379,7 +1446,7 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1379
1446
|
overflow-wrap: anywhere;
|
|
1380
1447
|
color: var(--hive-fg-soft);
|
|
1381
1448
|
font-family: var(--hive-mono);
|
|
1382
|
-
font-size:
|
|
1449
|
+
font-size: 12px;
|
|
1383
1450
|
line-height: 1.5;
|
|
1384
1451
|
}
|
|
1385
1452
|
|
|
@@ -1400,35 +1467,56 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1400
1467
|
overflow: auto;
|
|
1401
1468
|
}
|
|
1402
1469
|
|
|
1403
|
-
.hive-card-
|
|
1404
|
-
border: 1px solid var(--hive-line
|
|
1405
|
-
border-radius:
|
|
1470
|
+
.hive-card-run {
|
|
1471
|
+
border: 1px solid var(--hive-line);
|
|
1472
|
+
border-radius: var(--hive-radius-md);
|
|
1406
1473
|
background: var(--hive-surface);
|
|
1407
1474
|
overflow: hidden;
|
|
1408
1475
|
}
|
|
1409
1476
|
|
|
1410
|
-
.hive-card-
|
|
1477
|
+
.hive-card-run-title {
|
|
1411
1478
|
padding: 8px 10px;
|
|
1412
1479
|
color: var(--hive-fg-soft);
|
|
1413
|
-
font-size:
|
|
1480
|
+
font-size: 12px;
|
|
1414
1481
|
font-weight: 650;
|
|
1415
1482
|
letter-spacing: 0.08em;
|
|
1416
1483
|
line-height: 1.5;
|
|
1417
1484
|
text-transform: uppercase;
|
|
1418
|
-
cursor: pointer;
|
|
1419
|
-
user-select: none;
|
|
1420
1485
|
}
|
|
1421
1486
|
|
|
1422
|
-
.hive-card-
|
|
1423
|
-
|
|
1487
|
+
.hive-card-run-meta {
|
|
1488
|
+
padding: 0 10px 8px;
|
|
1489
|
+
overflow-wrap: anywhere;
|
|
1490
|
+
color: var(--hive-fg-soft);
|
|
1491
|
+
font-family: var(--hive-mono);
|
|
1492
|
+
font-size: 12px;
|
|
1493
|
+
line-height: 1.5;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
.hive-card-run-empty {
|
|
1497
|
+
margin: 0 10px 10px;
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
.hive-card-run-output {
|
|
1501
|
+
max-height: 360px; /* 20 lines at 12px/1.5; longer output scrolls inside the pre */
|
|
1424
1502
|
margin: 0;
|
|
1425
1503
|
padding: 10px;
|
|
1426
1504
|
overflow: auto;
|
|
1427
|
-
border-top: 1px solid var(--hive-line
|
|
1505
|
+
border-top: 1px solid var(--hive-line);
|
|
1506
|
+
background: var(--hive-surface);
|
|
1428
1507
|
font-family: var(--hive-mono);
|
|
1429
|
-
font-size:
|
|
1508
|
+
font-size: 12px;
|
|
1430
1509
|
line-height: 1.5;
|
|
1431
1510
|
white-space: pre-wrap;
|
|
1511
|
+
overflow-wrap: anywhere;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
.hive-card-run-foot {
|
|
1515
|
+
display: flex;
|
|
1516
|
+
justify-content: flex-end;
|
|
1517
|
+
gap: 8px;
|
|
1518
|
+
padding: 8px 10px;
|
|
1519
|
+
border-top: 1px solid var(--hive-line);
|
|
1432
1520
|
}
|
|
1433
1521
|
|
|
1434
1522
|
.hive-card-actions {
|
|
@@ -1459,24 +1547,430 @@ const PANEL_STYLES = `.hive { position: relative; }
|
|
|
1459
1547
|
.hive-add-acceptance { min-height: 70px; }
|
|
1460
1548
|
|
|
1461
1549
|
.hive-add-submit {
|
|
1462
|
-
border-color: color-mix(in srgb, var(--hive-accent
|
|
1463
|
-
background: var(--hive-accent
|
|
1464
|
-
color: var(--hive-bg
|
|
1550
|
+
border-color: color-mix(in srgb, var(--hive-accent) 70%, var(--hive-line));
|
|
1551
|
+
background: var(--hive-accent);
|
|
1552
|
+
color: var(--hive-bg);
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
.hive-add-submit:hover:not(:disabled) {
|
|
1556
|
+
border-color: var(--hive-accent);
|
|
1557
|
+
background: color-mix(in srgb, var(--hive-accent) 86%, white);
|
|
1558
|
+
color: var(--hive-bg);
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
/* Unified type scale: 12 / 14 / 16 / 18 only. */
|
|
1562
|
+
.hive { font-size: 14px; line-height: 1.5; }
|
|
1563
|
+
.hive * { font-size: 14px; line-height: 1.5; }
|
|
1564
|
+
.hive-dialog-title,
|
|
1565
|
+
.hive-help-title { font-size: 16px; line-height: 1.5; }
|
|
1566
|
+
.hive-settings-section-title,
|
|
1567
|
+
.hive-section-label,
|
|
1568
|
+
.hive-plan-preview-head,
|
|
1569
|
+
.hive-events-title,
|
|
1570
|
+
.hive-lane-head { font-size: 14px; font-weight: 700; line-height: 1.5; }
|
|
1571
|
+
.hive-card-title { font-size: 14px; font-weight: 600; line-height: 1.35; }
|
|
1572
|
+
.hive-btn,
|
|
1573
|
+
.hive-settings-form-actions .hive-btn,
|
|
1574
|
+
.hive-settings-tab,
|
|
1575
|
+
.hive-stage-chip,
|
|
1576
|
+
.hive-agent-pill,
|
|
1577
|
+
.hive-events-toggle,
|
|
1578
|
+
.hive-supervisor-resume,
|
|
1579
|
+
.hive-queen-takeover,
|
|
1580
|
+
.hive-queen-dismiss { font-size: 14px; line-height: 1.5; }
|
|
1581
|
+
.hive-input,
|
|
1582
|
+
.hive-textarea,
|
|
1583
|
+
.hive-limits-input { font-size: 14px; line-height: 1.5; }
|
|
1584
|
+
.hive-help-desc,
|
|
1585
|
+
.hive-help-note,
|
|
1586
|
+
.hive-help-hint,
|
|
1587
|
+
.hive-field-label,
|
|
1588
|
+
.hive-field-hint,
|
|
1589
|
+
.hive-limits-description,
|
|
1590
|
+
.hive-limits-hint,
|
|
1591
|
+
.hive-limits-empty,
|
|
1592
|
+
.hive-settings-note,
|
|
1593
|
+
.hive-empty,
|
|
1594
|
+
.hive-filter-empty,
|
|
1595
|
+
.hive-plan-empty,
|
|
1596
|
+
.hive-plan-hint,
|
|
1597
|
+
.hive-plan-meta,
|
|
1598
|
+
.hive-plan-error,
|
|
1599
|
+
.hive-init-description,
|
|
1600
|
+
.hive-queen-text,
|
|
1601
|
+
.hive-agent-empty,
|
|
1602
|
+
.hive-card-meta,
|
|
1603
|
+
.hive-card-reason,
|
|
1604
|
+
.hive-card-scope,
|
|
1605
|
+
.hive-toast-detail,
|
|
1606
|
+
.hive-limits-row.is-head,
|
|
1607
|
+
.hive-queen-badge { font-size: 12px; line-height: 1.5; }
|
|
1608
|
+
.hive-repo,
|
|
1609
|
+
.hive-card-subline,
|
|
1610
|
+
.hive-card-id,
|
|
1611
|
+
.hive-json,
|
|
1612
|
+
.hive-plan-raw,
|
|
1613
|
+
.hive-plan-key,
|
|
1614
|
+
.hive-plan-chip,
|
|
1615
|
+
.hive-help-params,
|
|
1616
|
+
.hive-toast-detail,
|
|
1617
|
+
.hive-oldest-id,
|
|
1618
|
+
.hive-scope,
|
|
1619
|
+
.hive-supervisor-path,
|
|
1620
|
+
.hive-queen-command,
|
|
1621
|
+
.hive-dialog-eyebrow,
|
|
1622
|
+
.hive-limits-cell.is-number { font-size: 12px; line-height: 1.5; }
|
|
1623
|
+
.hive-dialog-close { font-size: 16px; line-height: 1; }
|
|
1624
|
+
.hive-role-remove { font-size: 16px; line-height: 1; }
|
|
1625
|
+
.hive-icon-button { font-size: 0; line-height: 1; }
|
|
1626
|
+
/* DSH design-token bridge. Neutral grayscale fallbacks keep standalone pages readable. */
|
|
1627
|
+
.hive, .hive-portal, .hive-dialog {
|
|
1628
|
+
--hive-bg: var(--dsw-alias-bg-base, #fff);
|
|
1629
|
+
--hive-bg-layer-1: var(--dsw-alias-bg-layer-1, #fff);
|
|
1630
|
+
--hive-bg-layer-2: var(--dsw-alias-bg-layer-2, #fff);
|
|
1631
|
+
--hive-bg-layer-3: var(--dsw-alias-bg-layer-3, #f5f5f5);
|
|
1632
|
+
--hive-line: var(--dsw-alias-border-l1, #d9d9d9);
|
|
1633
|
+
--hive-line-2: var(--dsw-alias-border-l2, #e8e8e8);
|
|
1634
|
+
--hive-fg: var(--dsw-alias-label-primary, #000);
|
|
1635
|
+
--hive-fg-soft: var(--dsw-alias-label-secondary, #4d4d4d);
|
|
1636
|
+
--hive-fg-faint: var(--dsw-alias-label-tertiary, #808080);
|
|
1637
|
+
--hive-accent: var(--dsw-alias-brand-primary, #000);
|
|
1638
|
+
--hive-hover: var(--dsw-alias-interactive-bg-hover, #f2f2f2);
|
|
1639
|
+
--hive-selected: var(--dsw-alias-border-selected, #000);
|
|
1640
|
+
--hive-danger: var(--dsw-alias-state-error-primary, #000);
|
|
1641
|
+
--hive-ok: var(--dsw-alias-state-success-primary, #000);
|
|
1642
|
+
--hive-warn: var(--dsw-alias-state-warn-primary, #000);
|
|
1643
|
+
--hive-info: var(--dsw-alias-brand-primary, #000);
|
|
1644
|
+
--hive-radius-sm: var(--dsw-radius-sm, 4px);
|
|
1645
|
+
--hive-radius-md: var(--dsw-radius-md, 8px);
|
|
1646
|
+
--hive-radius-lg: var(--dsw-radius-lg, 12px);
|
|
1647
|
+
--hive-elevation: var(--dsw-elevation-panel, 0 12px 32px rgba(0, 0, 0, 0.18));
|
|
1648
|
+
--hive-surface: var(--hive-bg-layer-1);
|
|
1649
|
+
--hive-surface-strong: var(--hive-bg-layer-2);
|
|
1650
|
+
--hive-surface-hover: var(--hive-hover);
|
|
1651
|
+
--hive-accent-soft: color-mix(in srgb, var(--hive-accent) 14%, transparent);
|
|
1652
|
+
--hive-label-on-brand: var(--hive-bg);
|
|
1653
|
+
--hive-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
|
|
1654
|
+
}
|
|
1655
|
+
/* Tokenized component treatment. */
|
|
1656
|
+
.hive { background: var(--hive-bg); color: var(--hive-fg); border-color: var(--hive-line); border-radius: var(--hive-radius-lg); }
|
|
1657
|
+
.hive-bar { background: var(--hive-bg-layer-1); border-bottom-color: var(--hive-line); gap: 8px; }
|
|
1658
|
+
.hive-main,
|
|
1659
|
+
.hive-board { background: var(--hive-bg); }
|
|
1660
|
+
.hive-agents,
|
|
1661
|
+
.hive-events { background: var(--hive-bg-layer-1); border-color: var(--hive-line); }
|
|
1662
|
+
.hive-lane { background: var(--hive-bg-layer-1); border-color: var(--hive-line); border-radius: var(--hive-radius-md); }
|
|
1663
|
+
.hive-card { background: var(--hive-bg-layer-1); border: 1px solid var(--hive-line); border-radius: var(--hive-radius-md); box-shadow: none; }
|
|
1664
|
+
.hive-card:hover { background: var(--hive-hover); border-color: var(--hive-line); }
|
|
1665
|
+
.hive-btn { background: transparent; border: 1px solid var(--hive-line); color: var(--hive-fg); border-radius: var(--hive-radius-md); }
|
|
1666
|
+
.hive-btn:hover { background: var(--hive-hover); border-color: var(--hive-line); color: var(--hive-fg); }
|
|
1667
|
+
.hive-btn-ghost { background: transparent; border-color: transparent; color: var(--hive-fg-soft); }
|
|
1668
|
+
.hive-btn-ghost:hover { background: var(--hive-hover); border-color: transparent; color: var(--hive-fg); }
|
|
1669
|
+
.hive-btn-danger { background: transparent; border-color: var(--hive-danger); color: var(--hive-danger); }
|
|
1670
|
+
.hive-btn-danger:hover:not(:disabled) { background: var(--hive-hover); border-color: var(--hive-danger); color: var(--hive-danger); }
|
|
1671
|
+
.hive-settings-primary,
|
|
1672
|
+
.hive-add-submit { background: var(--hive-accent); border-color: var(--hive-accent); color: var(--hive-label-on-brand); }
|
|
1673
|
+
.hive-settings-primary:hover:not(:disabled),
|
|
1674
|
+
.hive-add-submit:hover:not(:disabled) { background: var(--hive-accent); border-color: var(--hive-accent); color: var(--hive-label-on-brand); }
|
|
1675
|
+
.hive-settings-secondary { background: transparent; border-color: var(--hive-line); color: var(--hive-fg); }
|
|
1676
|
+
.hive-settings-secondary:hover { background: var(--hive-hover); border-color: var(--hive-line); color: var(--hive-fg); }
|
|
1677
|
+
.hive-input,
|
|
1678
|
+
.hive-textarea,
|
|
1679
|
+
.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); }
|
|
1680
|
+
.hive-input:focus,
|
|
1681
|
+
.hive-textarea:focus,
|
|
1682
|
+
.hive-limits-input:focus { outline: 1px solid var(--hive-selected); outline-offset: 0; }
|
|
1683
|
+
.hive-dialog,
|
|
1684
|
+
.hive-add-dialog,
|
|
1685
|
+
.hive-settings-dialog,
|
|
1686
|
+
.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); }
|
|
1687
|
+
.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); }
|
|
1688
|
+
.hive-drawer { background: var(--hive-bg-layer-2); border-left: 1px solid var(--hive-line); box-shadow: none; }
|
|
1689
|
+
.hive-json,
|
|
1690
|
+
.hive-plan-raw,
|
|
1691
|
+
.hive-plan-item,
|
|
1692
|
+
.hive-scope,
|
|
1693
|
+
.hive-init-card,
|
|
1694
|
+
.hive-limits-error,
|
|
1695
|
+
.hive-settings-note { background: var(--hive-bg-layer-1); border-color: var(--hive-line); border-radius: var(--hive-radius-sm); }
|
|
1696
|
+
.hive-limits-row { border-top-color: var(--hive-line-2); }
|
|
1697
|
+
.hive-limits-row:not(.is-head):hover { background: var(--hive-hover); }
|
|
1698
|
+
.hive-settings-tab[aria-selected="true"] { border-bottom-color: var(--hive-selected); }
|
|
1699
|
+
.hive-lane-head,
|
|
1700
|
+
.hive-dialog-head,
|
|
1701
|
+
.hive-dialog-foot,
|
|
1702
|
+
.hive-drawer-head,
|
|
1703
|
+
.hive-settings-tabs { border-color: var(--hive-line-2); }
|
|
1704
|
+
.hive-freeze-banner { background: transparent; border-bottom-color: var(--hive-warn); color: var(--hive-warn); }
|
|
1705
|
+
.hive-freeze-banner .hive-btn { background: transparent; border-color: var(--hive-line); color: var(--hive-fg); }
|
|
1706
|
+
.hive-queen-hint { background: var(--hive-bg-layer-1); border-color: var(--hive-line); }
|
|
1707
|
+
.hive-supervisor-inline,
|
|
1708
|
+
.hive-stat,
|
|
1709
|
+
.hive-status,
|
|
1710
|
+
.hive-queen-badge {
|
|
1711
|
+
display: inline-flex;
|
|
1712
|
+
align-items: center;
|
|
1713
|
+
gap: 6px;
|
|
1714
|
+
height: 22px;
|
|
1715
|
+
padding: 0 8px;
|
|
1716
|
+
border: 1px solid var(--hive-line);
|
|
1717
|
+
border-radius: 999px;
|
|
1718
|
+
background: transparent;
|
|
1719
|
+
color: var(--hive-fg-soft);
|
|
1720
|
+
font-size: 12px;
|
|
1721
|
+
font-weight: 400;
|
|
1722
|
+
line-height: 1;
|
|
1723
|
+
white-space: nowrap;
|
|
1724
|
+
}
|
|
1725
|
+
.hive-supervisor-inline { gap: 6px; }
|
|
1726
|
+
.hive-supervisor-inline-label { color: var(--hive-fg-soft); font-weight: 400; }
|
|
1727
|
+
.hive-supervisor-inline-state { display: inline-flex; align-items: center; gap: 6px; color: var(--hive-fg-soft); font-size: 12px; font-weight: 400; }
|
|
1728
|
+
.hive-supervisor-inline-state::before { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--hive-fg-faint); content: ""; }
|
|
1729
|
+
.hive-supervisor-inline-state.is-running::before { background: var(--hive-accent); }
|
|
1730
|
+
.hive-supervisor-inline-state.is-backoff::before { background: var(--hive-warn); }
|
|
1731
|
+
.hive-supervisor-inline-state.is-paused::before { background: var(--hive-fg-faint); }
|
|
1732
|
+
.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; }
|
|
1733
|
+
.hive-supervisor-inline-resume:hover { background: transparent; color: var(--hive-fg); }
|
|
1734
|
+
.hive-stats { flex-wrap: wrap; gap: 8px; }
|
|
1735
|
+
.hive-stat.is-warn { color: var(--hive-fg-soft); background: transparent; }
|
|
1736
|
+
.hive-stat strong { color: var(--hive-fg-soft); font-weight: 400; }
|
|
1737
|
+
.hive-status { color: var(--hive-fg-soft); }
|
|
1738
|
+
.hive-status::before { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--hive-danger); content: ""; font-size: 0; }
|
|
1739
|
+
.hive-status.is-info::before { background: var(--hive-accent); }
|
|
1740
|
+
.hive-queen-badge { color: var(--hive-fg-soft); }
|
|
1741
|
+
|
|
1742
|
+
.hive-portal {
|
|
1743
|
+
position: fixed;
|
|
1744
|
+
inset: 0;
|
|
1745
|
+
z-index: 2147483600;
|
|
1746
|
+
pointer-events: none;
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
.hive-portal > .hive-overlay { pointer-events: auto; }
|
|
1750
|
+
|
|
1751
|
+
/* Buttons: two explicit tiers. */
|
|
1752
|
+
.hive-btn {
|
|
1753
|
+
display: inline-flex;
|
|
1754
|
+
align-items: center;
|
|
1755
|
+
justify-content: center;
|
|
1756
|
+
gap: 6px;
|
|
1757
|
+
height: 28px;
|
|
1758
|
+
padding: 0 12px;
|
|
1759
|
+
border: 1px solid var(--hive-line-2);
|
|
1760
|
+
border-radius: var(--hive-radius-md);
|
|
1761
|
+
background: transparent;
|
|
1762
|
+
color: var(--hive-fg);
|
|
1763
|
+
font-size: 14px;
|
|
1764
|
+
font-weight: 600;
|
|
1765
|
+
line-height: 1.5;
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
.hive-btn:hover {
|
|
1769
|
+
border-color: var(--hive-line-2);
|
|
1770
|
+
background: var(--hive-hover);
|
|
1771
|
+
color: var(--hive-fg);
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
.hive-btn-ghost {
|
|
1775
|
+
border-color: transparent;
|
|
1776
|
+
background: transparent;
|
|
1777
|
+
color: var(--hive-fg-soft);
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
.hive-btn-ghost:hover {
|
|
1781
|
+
border-color: transparent;
|
|
1782
|
+
background: var(--hive-hover);
|
|
1783
|
+
color: var(--hive-fg);
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
.hive-btn-danger {
|
|
1787
|
+
border-color: var(--hive-danger);
|
|
1788
|
+
background: transparent;
|
|
1789
|
+
color: var(--hive-danger);
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
.hive-btn-danger:hover:not(:disabled) {
|
|
1793
|
+
border-color: var(--hive-danger);
|
|
1794
|
+
background: var(--hive-hover);
|
|
1795
|
+
color: var(--hive-danger);
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
.hive-settings-primary,
|
|
1799
|
+
.hive-add-submit {
|
|
1800
|
+
border-color: var(--hive-accent);
|
|
1801
|
+
background: var(--hive-accent);
|
|
1802
|
+
color: var(--hive-label-on-brand);
|
|
1803
|
+
font-weight: 600;
|
|
1465
1804
|
}
|
|
1466
1805
|
|
|
1806
|
+
.hive-settings-primary:hover:not(:disabled),
|
|
1467
1807
|
.hive-add-submit:hover:not(:disabled) {
|
|
1468
|
-
border-color: var(--hive-accent
|
|
1469
|
-
background: color-mix(in srgb, var(--hive-accent
|
|
1470
|
-
color: var(--hive-
|
|
1808
|
+
border-color: var(--hive-accent);
|
|
1809
|
+
background: color-mix(in srgb, var(--hive-accent) 92%, #000);
|
|
1810
|
+
color: var(--hive-label-on-brand);
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
.hive-settings-primary:active:not(:disabled),
|
|
1814
|
+
.hive-add-submit:active:not(:disabled) {
|
|
1815
|
+
border-color: var(--hive-accent);
|
|
1816
|
+
background: color-mix(in srgb, var(--hive-accent) 84%, #000);
|
|
1817
|
+
color: var(--hive-label-on-brand);
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
.hive-settings-primary:focus-visible,
|
|
1821
|
+
.hive-add-submit:focus-visible {
|
|
1822
|
+
outline: 2px solid var(--hive-accent);
|
|
1823
|
+
outline-offset: 2px;
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
.hive-settings-secondary {
|
|
1827
|
+
border-color: var(--hive-line-2);
|
|
1828
|
+
background: transparent;
|
|
1829
|
+
color: var(--hive-fg);
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
.hive-settings-secondary:hover {
|
|
1833
|
+
border-color: var(--hive-line-2);
|
|
1834
|
+
background: var(--hive-hover);
|
|
1835
|
+
color: var(--hive-fg);
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
.hive-icon-button,
|
|
1839
|
+
.hive-dialog-close {
|
|
1840
|
+
height: 28px;
|
|
1841
|
+
padding: 0;
|
|
1842
|
+
border: 0;
|
|
1843
|
+
background: transparent;
|
|
1844
|
+
color: var(--hive-fg-soft);
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
.hive-icon-button:hover,
|
|
1848
|
+
.hive-dialog-close:hover {
|
|
1849
|
+
border: 0;
|
|
1850
|
+
background: var(--hive-hover);
|
|
1851
|
+
color: var(--hive-fg);
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1854
|
+
.hive-role-remove {
|
|
1855
|
+
height: 28px;
|
|
1856
|
+
min-height: 28px;
|
|
1857
|
+
padding: 0;
|
|
1858
|
+
border-color: transparent;
|
|
1859
|
+
background: transparent;
|
|
1860
|
+
color: var(--hive-danger);
|
|
1471
1861
|
}
|
|
1472
1862
|
|
|
1863
|
+
/* Dialogs are portaled to the document body; keep them above the panel. */
|
|
1864
|
+
.hive-dialog,
|
|
1865
|
+
.hive-add-dialog,
|
|
1866
|
+
.hive-settings-dialog,
|
|
1867
|
+
.hive-card-dialog {
|
|
1868
|
+
border: 1px solid var(--hive-line);
|
|
1869
|
+
background: var(--hive-bg-layer-2);
|
|
1870
|
+
box-shadow: var(--dsw-elevation-panel, 0 12px 32px rgba(0, 0, 0, 0.18));
|
|
1871
|
+
}
|
|
1872
|
+
/* toolbar action rhythm */
|
|
1873
|
+
.hive-actions { gap: 8px; }
|
|
1874
|
+
.hive-actions > .hive-btn { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
|
|
1875
|
+
/* Dialog form containment: portal content must not create horizontal scroll. */
|
|
1876
|
+
.hive-portal,
|
|
1877
|
+
.hive-portal *,
|
|
1878
|
+
.hive-portal *::before,
|
|
1879
|
+
.hive-portal *::after { box-sizing: border-box; }
|
|
1880
|
+
|
|
1881
|
+
.hive-portal .hive-dialog { max-width: 92vw; overflow-x: hidden; }
|
|
1882
|
+
.hive-portal .hive-dialog-head,
|
|
1883
|
+
.hive-portal .hive-dialog-body,
|
|
1884
|
+
.hive-portal .hive-dialog-foot { padding-left: 16px; padding-right: 16px; }
|
|
1885
|
+
.hive-portal .hive-dialog-body { width: auto; min-width: 0; max-width: 100%; }
|
|
1886
|
+
.hive-portal .hive-dialog-body > * { margin-left: 0; margin-right: 0; max-width: 100%; min-width: 0; }
|
|
1887
|
+
.hive-portal .hive-field,
|
|
1888
|
+
.hive-portal .hive-field-row,
|
|
1889
|
+
.hive-portal .hive-settings-section,
|
|
1890
|
+
.hive-portal .hive-settings-tabpanel,
|
|
1891
|
+
.hive-portal .hive-limits-table { width: 100%; max-width: 100%; min-width: 0; margin-left: 0; margin-right: 0; }
|
|
1892
|
+
.hive-portal .hive-field-row > .hive-field { width: auto; flex: 1 1 160px; }
|
|
1893
|
+
.hive-portal .hive-input,
|
|
1894
|
+
.hive-portal .hive-textarea,
|
|
1895
|
+
.hive-portal select { width: 100%; min-width: 0; max-width: 100%; }
|
|
1896
|
+
.hive-portal .hive-limits-row {
|
|
1897
|
+
width: 100%;
|
|
1898
|
+
max-width: 100%;
|
|
1899
|
+
min-width: 0;
|
|
1900
|
+
grid-template-columns: minmax(0, 1fr) 96px 48px 48px 28px;
|
|
1901
|
+
}
|
|
1902
|
+
.hive-portal .hive-limits-cell,
|
|
1903
|
+
.hive-portal .hive-limits-role,
|
|
1904
|
+
.hive-portal .hive-dialog-title,
|
|
1905
|
+
.hive-portal .hive-card-subline,
|
|
1906
|
+
.hive-portal .hive-settings-role-name { min-width: 0; overflow-wrap: anywhere; }
|
|
1907
|
+
.hive-portal .hive-dialog-foot { flex-wrap: wrap; }
|
|
1908
|
+
.hive-portal .hive-dialog-body { overflow-x: hidden; }
|
|
1909
|
+
.hive-portal .hive-settings-tabs { flex-wrap: wrap; }
|
|
1910
|
+
.hive-portal .hive-card-actions,
|
|
1911
|
+
.hive-portal .hive-settings-form-actions { max-width: 100%; }
|
|
1912
|
+
/* Native <dialog>: top layer, browser-managed backdrop and focus trap. */
|
|
1913
|
+
.hive-dialog,
|
|
1914
|
+
.hive-dialog *,
|
|
1915
|
+
.hive-dialog *::before,
|
|
1916
|
+
.hive-dialog *::after { box-sizing: border-box; }
|
|
1917
|
+
|
|
1918
|
+
dialog.hive-dialog {
|
|
1919
|
+
position: fixed;
|
|
1920
|
+
inset: 0;
|
|
1921
|
+
margin: auto;
|
|
1922
|
+
padding: 0;
|
|
1923
|
+
width: min(560px, 100%);
|
|
1924
|
+
max-width: 92vw;
|
|
1925
|
+
max-height: 80vh;
|
|
1926
|
+
overflow: hidden;
|
|
1927
|
+
border: 1px solid var(--hive-line);
|
|
1928
|
+
border-radius: var(--hive-radius-lg);
|
|
1929
|
+
background: var(--hive-bg-layer-2);
|
|
1930
|
+
color: var(--hive-fg);
|
|
1931
|
+
box-shadow: var(--dsw-elevation-panel, 0 12px 32px rgba(0, 0, 0, 0.18));
|
|
1932
|
+
color-scheme: light dark;
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
dialog.hive-card-dialog { width: min(720px, 92vw); }
|
|
1936
|
+
|
|
1937
|
+
dialog.hive-dialog::backdrop {
|
|
1938
|
+
background: var(--dsw-alias-bg-mask-1, rgba(0, 0, 0, 0.24));
|
|
1939
|
+
backdrop-filter: var(--dsw-mask-blur, none);
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
dialog.hive-dialog .hive-dialog-head,
|
|
1943
|
+
dialog.hive-dialog .hive-dialog-body,
|
|
1944
|
+
dialog.hive-dialog .hive-dialog-foot { padding-left: 16px; padding-right: 16px; }
|
|
1945
|
+
dialog.hive-dialog .hive-dialog-body { width: auto; min-width: 0; max-width: 100%; overflow-x: hidden; }
|
|
1946
|
+
dialog.hive-dialog .hive-dialog-body > * { margin-left: 0; margin-right: 0; max-width: 100%; min-width: 0; }
|
|
1947
|
+
dialog.hive-dialog .hive-field,
|
|
1948
|
+
dialog.hive-dialog .hive-field-row,
|
|
1949
|
+
dialog.hive-dialog .hive-settings-section,
|
|
1950
|
+
dialog.hive-dialog .hive-settings-tabpanel,
|
|
1951
|
+
dialog.hive-dialog .hive-limits-table { width: 100%; max-width: 100%; min-width: 0; margin-left: 0; margin-right: 0; }
|
|
1952
|
+
dialog.hive-dialog .hive-field-row > .hive-field { width: auto; flex: 1 1 160px; }
|
|
1953
|
+
dialog.hive-dialog .hive-input,
|
|
1954
|
+
dialog.hive-dialog .hive-textarea,
|
|
1955
|
+
dialog.hive-dialog select { width: 100%; min-width: 0; max-width: 100%; }
|
|
1956
|
+
dialog.hive-dialog .hive-limits-row {
|
|
1957
|
+
width: 100%;
|
|
1958
|
+
max-width: 100%;
|
|
1959
|
+
min-width: 0;
|
|
1960
|
+
grid-template-columns: minmax(0, 1fr) 96px 48px 48px 28px;
|
|
1961
|
+
}
|
|
1962
|
+
dialog.hive-dialog .hive-limits-cell,
|
|
1963
|
+
dialog.hive-dialog .hive-limits-role,
|
|
1964
|
+
dialog.hive-dialog .hive-dialog-title,
|
|
1965
|
+
dialog.hive-dialog .hive-card-subline,
|
|
1966
|
+
dialog.hive-dialog .hive-settings-role-name { min-width: 0; overflow-wrap: anywhere; }
|
|
1967
|
+
dialog.hive-dialog .hive-dialog-foot { flex-wrap: wrap; }
|
|
1473
1968
|
`;
|
|
1474
1969
|
|
|
1475
1970
|
const LANE_LABEL_KEYS = Object.freeze({
|
|
1476
1971
|
pending: "lane.pending",
|
|
1477
1972
|
claimed: "lane.claimed",
|
|
1478
1973
|
done: "lane.done",
|
|
1479
|
-
blocked: "lane.blocked",
|
|
1480
1974
|
failed: "lane.failed",
|
|
1481
1975
|
});
|
|
1482
1976
|
|
|
@@ -1499,18 +1993,16 @@ export const messages = Object.freeze({
|
|
|
1499
1993
|
"action.retry": "retry",
|
|
1500
1994
|
"action.unfreeze": "Resume",
|
|
1501
1995
|
"pane.agents": "agents",
|
|
1502
|
-
"pane.board": "board",
|
|
1996
|
+
"pane.board": "Task board",
|
|
1503
1997
|
"pane.events": "events",
|
|
1504
|
-
"board.hint": "5 lanes",
|
|
1505
1998
|
"board.filtersAria": "Filter by state",
|
|
1506
1999
|
"board.all": "all",
|
|
1507
2000
|
"board.showAll": "Show all tasks",
|
|
1508
2001
|
"board.filterChip": "Show {lane} tasks ({count})",
|
|
1509
2002
|
"board.emptyFilter": "No tasks in this state.",
|
|
1510
2003
|
"lane.pending": "pending",
|
|
1511
|
-
"lane.claimed": "
|
|
2004
|
+
"lane.claimed": "In progress",
|
|
1512
2005
|
"lane.done": "done",
|
|
1513
|
-
"lane.blocked": "blocked",
|
|
1514
2006
|
"lane.failed": "failed",
|
|
1515
2007
|
"mode.free": "free",
|
|
1516
2008
|
"mode.freeze": "freeze",
|
|
@@ -1549,6 +2041,10 @@ export const messages = Object.freeze({
|
|
|
1549
2041
|
"drawer.readOnly": "Read-only: writable=false.",
|
|
1550
2042
|
"drawer.removeClaimed": "A claimed task must be released or reopened before it can be deleted.",
|
|
1551
2043
|
"drawer.rawJson": "raw json",
|
|
2044
|
+
"drawer.lastRun": "Last run",
|
|
2045
|
+
"drawer.noRuns": "No runs yet",
|
|
2046
|
+
"drawer.copyOutput": "Copy output",
|
|
2047
|
+
"drawer.openChat": "Open agent chat",
|
|
1552
2048
|
"events.empty": "No events yet.",
|
|
1553
2049
|
"events.showAll": "Show all events",
|
|
1554
2050
|
"events.collapse": "Collapse events",
|
|
@@ -1569,8 +2065,8 @@ export const messages = Object.freeze({
|
|
|
1569
2065
|
"limits.description": "Max agents working at the same time, per role; 0 pauses the role",
|
|
1570
2066
|
"limits.role": "Role",
|
|
1571
2067
|
"limits.limit": "Concurrency limit",
|
|
1572
|
-
"limits.inFlight": "
|
|
1573
|
-
"limits.queued": "
|
|
2068
|
+
"limits.inFlight": "Running",
|
|
2069
|
+
"limits.queued": "Waiting",
|
|
1574
2070
|
"limits.defaultHint": "0-999, default 5",
|
|
1575
2071
|
"limits.limitAria": "Concurrency limit for {role}",
|
|
1576
2072
|
"limits.save": "Save",
|
|
@@ -1582,7 +2078,10 @@ export const messages = Object.freeze({
|
|
|
1582
2078
|
"limits.none": "No role data for this repository.",
|
|
1583
2079
|
"limits.close": "Close",
|
|
1584
2080
|
"limits.closeAria": "Close agent concurrency settings",
|
|
2081
|
+
"limits.removeRoleAria": "Delete role {name}",
|
|
2082
|
+
"limits.removeRoleConfirm": "Delete role {name}? Tasks already created will not be deleted.",
|
|
1585
2083
|
"settings.openAria": "Open settings for this repository",
|
|
2084
|
+
"dialog.closeAria": "Close",
|
|
1586
2085
|
"settings.title": "Settings",
|
|
1587
2086
|
"settings.tabLimits": "Concurrency limit",
|
|
1588
2087
|
"settings.tabRole": "Add role",
|
|
@@ -1622,7 +2121,7 @@ export const messages = Object.freeze({
|
|
|
1622
2121
|
"add.titleAria": "New task title",
|
|
1623
2122
|
"add.role": "Role",
|
|
1624
2123
|
"add.roleAria": "Role for the new task",
|
|
1625
|
-
"add.scope": "
|
|
2124
|
+
"add.scope": "File scope",
|
|
1626
2125
|
"add.scopeAria": "File scope for the new task",
|
|
1627
2126
|
"add.after": "After task ids (comma separated, optional)",
|
|
1628
2127
|
"add.afterAria": "Tasks that must finish first",
|
|
@@ -1663,7 +2162,7 @@ export const messages = Object.freeze({
|
|
|
1663
2162
|
"queen.dismiss": "Dismiss",
|
|
1664
2163
|
"queen.dismissAria": "Close this notice; it does not change Queen mode",
|
|
1665
2164
|
"help.queen": "Queen mode",
|
|
1666
|
-
"help.queenDesc": "Type /queen off to
|
|
2165
|
+
"help.queenDesc": "Type /queen off in the chat box to leave Queen mode; this session then returns to normal coding mode.",
|
|
1667
2166
|
"queen.status.active": "Queen active",
|
|
1668
2167
|
"queen.status.inactive": "Queen not active",
|
|
1669
2168
|
"queen.source.auto": "auto",
|
|
@@ -1681,7 +2180,7 @@ export const messages = Object.freeze({
|
|
|
1681
2180
|
"help.action.claim": "Claim: lease a pending task for an agent.",
|
|
1682
2181
|
"help.action.done": "Done: mark a claimed task complete, optionally with a commit sha.",
|
|
1683
2182
|
"help.action.fail": "Fail: mark a claimed task failed and record the reason.",
|
|
1684
|
-
"help.action.retry": "Retry: put a failed
|
|
2183
|
+
"help.action.retry": "Retry: put a failed task back in the queue.",
|
|
1685
2184
|
"help.action.remove": "Delete this task card permanently. A claimed task has to be released or reopened first.",
|
|
1686
2185
|
"plan.dialogTitle": "Set the Queen a goal",
|
|
1687
2186
|
"plan.dialogAria": "Plan tasks from a goal",
|
|
@@ -1733,18 +2232,16 @@ export const messages = Object.freeze({
|
|
|
1733
2232
|
"action.retry": "重试",
|
|
1734
2233
|
"action.unfreeze": "恢复",
|
|
1735
2234
|
"pane.agents": "智能体",
|
|
1736
|
-
"pane.board": "
|
|
2235
|
+
"pane.board": "任务看板",
|
|
1737
2236
|
"pane.events": "事件",
|
|
1738
|
-
"board.hint": "5 条泳道",
|
|
1739
2237
|
"board.filtersAria": "按状态筛选",
|
|
1740
2238
|
"board.all": "全部",
|
|
1741
2239
|
"board.showAll": "显示全部任务",
|
|
1742
2240
|
"board.filterChip": "只看{lane}任务({count})",
|
|
1743
2241
|
"board.emptyFilter": "该状态没有任务。",
|
|
1744
2242
|
"lane.pending": "待办",
|
|
1745
|
-
"lane.claimed": "
|
|
2243
|
+
"lane.claimed": "进行中",
|
|
1746
2244
|
"lane.done": "已完成",
|
|
1747
|
-
"lane.blocked": "受阻",
|
|
1748
2245
|
"lane.failed": "失败",
|
|
1749
2246
|
"mode.free": "正常",
|
|
1750
2247
|
"mode.freeze": "冻结",
|
|
@@ -1783,6 +2280,10 @@ export const messages = Object.freeze({
|
|
|
1783
2280
|
"drawer.readOnly": "只读:writable=false。",
|
|
1784
2281
|
"drawer.removeClaimed": "已认领的任务必须先释放或重开才能删除。",
|
|
1785
2282
|
"drawer.rawJson": "原始 JSON",
|
|
2283
|
+
"drawer.lastRun": "最近一次执行",
|
|
2284
|
+
"drawer.noRuns": "还没有执行记录",
|
|
2285
|
+
"drawer.copyOutput": "复制输出",
|
|
2286
|
+
"drawer.openChat": "打开智能体对话",
|
|
1786
2287
|
"events.empty": "暂无事件。",
|
|
1787
2288
|
"events.showAll": "展开全部事件",
|
|
1788
2289
|
"events.collapse": "收起事件",
|
|
@@ -1803,8 +2304,8 @@ export const messages = Object.freeze({
|
|
|
1803
2304
|
"limits.description": "同时干活的智能体数量上限,按角色分别设置;0 表示暂停该角色",
|
|
1804
2305
|
"limits.role": "角色",
|
|
1805
2306
|
"limits.limit": "并发上限",
|
|
1806
|
-
"limits.inFlight": "
|
|
1807
|
-
"limits.queued": "
|
|
2307
|
+
"limits.inFlight": "运行",
|
|
2308
|
+
"limits.queued": "等待",
|
|
1808
2309
|
"limits.defaultHint": "0–999,默认 5",
|
|
1809
2310
|
"limits.limitAria": "{role} 的并发上限",
|
|
1810
2311
|
"limits.save": "保存",
|
|
@@ -1816,7 +2317,10 @@ export const messages = Object.freeze({
|
|
|
1816
2317
|
"limits.none": "这个仓库没有角色数据。",
|
|
1817
2318
|
"limits.close": "关闭",
|
|
1818
2319
|
"limits.closeAria": "关闭智能体的并发上限设置",
|
|
2320
|
+
"limits.removeRoleAria": "删除角色 {name}",
|
|
2321
|
+
"limits.removeRoleConfirm": "确定删除角色 {name}?已创建的任务不会删除。",
|
|
1819
2322
|
"settings.openAria": "打开这个仓库的设置",
|
|
2323
|
+
"dialog.closeAria": "关闭",
|
|
1820
2324
|
"settings.title": "设置",
|
|
1821
2325
|
"settings.tabLimits": "并发上限",
|
|
1822
2326
|
"settings.tabRole": "添加角色",
|
|
@@ -1856,7 +2360,7 @@ export const messages = Object.freeze({
|
|
|
1856
2360
|
"add.titleAria": "新任务标题",
|
|
1857
2361
|
"add.role": "角色",
|
|
1858
2362
|
"add.roleAria": "新任务角色",
|
|
1859
|
-
"add.scope": "
|
|
2363
|
+
"add.scope": "文件范围",
|
|
1860
2364
|
"add.scopeAria": "新任务的文件范围",
|
|
1861
2365
|
"add.after": "依赖任务(任务 ID,逗号分隔,可选)",
|
|
1862
2366
|
"add.afterAria": "需要先完成的任务",
|
|
@@ -1897,7 +2401,7 @@ export const messages = Object.freeze({
|
|
|
1897
2401
|
"queen.dismiss": "关闭提示",
|
|
1898
2402
|
"queen.dismissAria": "关闭提示,不影响女王状态",
|
|
1899
2403
|
"help.queen": "女王模式",
|
|
1900
|
-
"help.queenDesc": "
|
|
2404
|
+
"help.queenDesc": "在对话框输入 /queen off 退出女王模式,退出后本会话恢复普通编码模式。",
|
|
1901
2405
|
"queen.status.active": "女王已接管",
|
|
1902
2406
|
"queen.status.inactive": "女王未接管",
|
|
1903
2407
|
"queen.source.auto": "自动",
|
|
@@ -1989,6 +2493,31 @@ function normalizeScope(scope) {
|
|
|
1989
2493
|
return [];
|
|
1990
2494
|
}
|
|
1991
2495
|
|
|
2496
|
+
/**
|
|
2497
|
+
* Normalize `lastRun` (written by hive-runner to .hive/runs/<cardId>.json).
|
|
2498
|
+
* A missing record is null; a malformed one is dropped instead of leaking
|
|
2499
|
+
* half-parsed values into the drawer.
|
|
2500
|
+
* @param {unknown} value
|
|
2501
|
+
* @returns {null|{agent:string,startedAt:string,endedAt:string,status:string,commit:string,exitCode:number|null,sessionId:string,output:string}}
|
|
2502
|
+
*/
|
|
2503
|
+
function normalizeLastRun(value) {
|
|
2504
|
+
if (!isRecord(value)) return null;
|
|
2505
|
+
const status = asString(value.status);
|
|
2506
|
+
if (status !== "done" && status !== "failed" && status !== "running") return null;
|
|
2507
|
+
return {
|
|
2508
|
+
agent: asString(value.agent),
|
|
2509
|
+
startedAt: asString(value.startedAt),
|
|
2510
|
+
endedAt: asString(value.endedAt),
|
|
2511
|
+
status,
|
|
2512
|
+
commit: asString(value.commit),
|
|
2513
|
+
exitCode: typeof value.exitCode === "number" && Number.isFinite(value.exitCode) ? value.exitCode : null,
|
|
2514
|
+
// Hive-runner records the worker activation's Session id; a host that can
|
|
2515
|
+
// navigate can open that conversation, an older record simply has none.
|
|
2516
|
+
sessionId: asString(value.sessionId),
|
|
2517
|
+
output: asString(value.output),
|
|
2518
|
+
};
|
|
2519
|
+
}
|
|
2520
|
+
|
|
1992
2521
|
function normalizeCard(task) {
|
|
1993
2522
|
return {
|
|
1994
2523
|
id: asString(task.id),
|
|
@@ -1997,6 +2526,7 @@ function normalizeCard(task) {
|
|
|
1997
2526
|
owner: asString(task.owner),
|
|
1998
2527
|
scope: normalizeScope(task.scope),
|
|
1999
2528
|
reason: asString(task.reason),
|
|
2529
|
+
lastRun: normalizeLastRun(task.lastRun),
|
|
2000
2530
|
};
|
|
2001
2531
|
}
|
|
2002
2532
|
|
|
@@ -2448,6 +2978,17 @@ function makeHiveIcon(doc, kind) {
|
|
|
2448
2978
|
return svg;
|
|
2449
2979
|
}
|
|
2450
2980
|
|
|
2981
|
+
function appendCodeText(node, text, token) {
|
|
2982
|
+
const index = String(text).indexOf(token);
|
|
2983
|
+
if (index < 0) {
|
|
2984
|
+
node.appendChild(element(node.ownerDocument || node, "span", null, text));
|
|
2985
|
+
return;
|
|
2986
|
+
}
|
|
2987
|
+
node.appendChild(element(node.ownerDocument || node, "span", null, String(text).slice(0, index)));
|
|
2988
|
+
node.appendChild(element(node.ownerDocument || node, "code", "hive-queen-command", token));
|
|
2989
|
+
node.appendChild(element(node.ownerDocument || node, "span", null, String(text).slice(index + token.length)));
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2451
2992
|
function setHidden(node, hidden) {
|
|
2452
2993
|
if (!node) return;
|
|
2453
2994
|
if (hidden) {
|
|
@@ -2536,6 +3077,80 @@ function formatTime(value) {
|
|
|
2536
3077
|
}
|
|
2537
3078
|
}
|
|
2538
3079
|
|
|
3080
|
+
/** Local `YYYY-MM-DD HH:MM:SS` for a run timestamp; the raw value on failure. */
|
|
3081
|
+
function formatRunStamp(value) {
|
|
3082
|
+
const date = parseDate(value);
|
|
3083
|
+
if (!date) return asString(value);
|
|
3084
|
+
const pad = (number) => String(number).padStart(2, "0");
|
|
3085
|
+
try {
|
|
3086
|
+
return (
|
|
3087
|
+
date.getFullYear() +
|
|
3088
|
+
"-" +
|
|
3089
|
+
pad(date.getMonth() + 1) +
|
|
3090
|
+
"-" +
|
|
3091
|
+
pad(date.getDate()) +
|
|
3092
|
+
" " +
|
|
3093
|
+
pad(date.getHours()) +
|
|
3094
|
+
":" +
|
|
3095
|
+
pad(date.getMinutes()) +
|
|
3096
|
+
":" +
|
|
3097
|
+
pad(date.getSeconds())
|
|
3098
|
+
);
|
|
3099
|
+
} catch {
|
|
3100
|
+
return asString(value);
|
|
3101
|
+
}
|
|
3102
|
+
}
|
|
3103
|
+
|
|
3104
|
+
/** Short display form of a commit sha; anything else is returned unchanged. */
|
|
3105
|
+
function shortCommit(value) {
|
|
3106
|
+
const sha = asString(value).trim();
|
|
3107
|
+
return /^[0-9a-f]{7,64}$/i.test(sha) ? sha.slice(0, 7) : sha;
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
/**
|
|
3111
|
+
* Copy text to the clipboard. Modern async clipboard first, then the legacy
|
|
3112
|
+
* textarea + execCommand path; a refused permission is silent (no new copy).
|
|
3113
|
+
* @param {Document} doc
|
|
3114
|
+
* @param {string} text
|
|
3115
|
+
* @returns {boolean}
|
|
3116
|
+
*/
|
|
3117
|
+
function copyToClipboard(doc, text) {
|
|
3118
|
+
const value = asString(text);
|
|
3119
|
+
if (value === "") return false;
|
|
3120
|
+
const view = (doc && doc.defaultView) || globalThis;
|
|
3121
|
+
const clipboard = view && view.navigator ? view.navigator.clipboard : null;
|
|
3122
|
+
if (clipboard && typeof clipboard.writeText === "function") {
|
|
3123
|
+
try {
|
|
3124
|
+
const pending = clipboard.writeText(value);
|
|
3125
|
+
if (pending && typeof pending.catch === "function") pending.catch(() => {});
|
|
3126
|
+
return true;
|
|
3127
|
+
} catch {
|
|
3128
|
+
// Fall through to the legacy path.
|
|
3129
|
+
}
|
|
3130
|
+
}
|
|
3131
|
+
const body = doc && doc.body;
|
|
3132
|
+
if (body && typeof body.appendChild === "function" && typeof doc.execCommand === "function") {
|
|
3133
|
+
const area = doc.createElement("textarea");
|
|
3134
|
+
area.value = value;
|
|
3135
|
+
setAttr(area, "readonly", "");
|
|
3136
|
+
setStyle(area, "position", "absolute");
|
|
3137
|
+
setStyle(area, "left", "-9999px");
|
|
3138
|
+
try {
|
|
3139
|
+
body.appendChild(area);
|
|
3140
|
+
if (typeof area.select === "function") area.select();
|
|
3141
|
+
doc.execCommand("copy");
|
|
3142
|
+
return true;
|
|
3143
|
+
} catch {
|
|
3144
|
+
return false;
|
|
3145
|
+
} finally {
|
|
3146
|
+
if (area.parentNode && typeof area.parentNode.removeChild === "function") {
|
|
3147
|
+
area.parentNode.removeChild(area);
|
|
3148
|
+
}
|
|
3149
|
+
}
|
|
3150
|
+
}
|
|
3151
|
+
return false;
|
|
3152
|
+
}
|
|
3153
|
+
|
|
2539
3154
|
function safeClassToken(value) {
|
|
2540
3155
|
const token = asString(value).toLowerCase().replace(/[^a-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
2541
3156
|
return token || "unknown";
|
|
@@ -2650,7 +3265,8 @@ function extractPlan(payload) {
|
|
|
2650
3265
|
* fetch?: typeof fetch,
|
|
2651
3266
|
* confirm?: (message: string) => boolean,
|
|
2652
3267
|
* t?: (key: string) => string,
|
|
2653
|
-
* subscribeLocale?: (listener: () => void) => (() => void)
|
|
3268
|
+
* subscribeLocale?: (listener: () => void) => (() => void),
|
|
3269
|
+
* openSession?: (sessionId: string) => void
|
|
2654
3270
|
* }} [options]
|
|
2655
3271
|
* @returns {{
|
|
2656
3272
|
* setSnapshot: (snapshot: object) => object|null,
|
|
@@ -2714,6 +3330,11 @@ export function mount(root, options = {}) {
|
|
|
2714
3330
|
? globalThis.confirm.bind(globalThis)
|
|
2715
3331
|
: null;
|
|
2716
3332
|
|
|
3333
|
+
// Hosts that can navigate open a worker's Session for the card drawer. The
|
|
3334
|
+
// callback stays absent on the standalone page and on hosts without the
|
|
3335
|
+
// client navigation API, so the "Open agent chat" button is never rendered.
|
|
3336
|
+
const openSession = typeof opts.openSession === "function" ? opts.openSession : null;
|
|
3337
|
+
|
|
2717
3338
|
const schedule =
|
|
2718
3339
|
typeof view.setInterval === "function" ? view.setInterval.bind(view) : globalThis.setInterval.bind(globalThis);
|
|
2719
3340
|
const unschedule =
|
|
@@ -2790,13 +3411,22 @@ export function mount(root, options = {}) {
|
|
|
2790
3411
|
let limitsFocusables = [];
|
|
2791
3412
|
let settingsActiveTab = "limits";
|
|
2792
3413
|
|
|
3414
|
+
function dialogCloseButton(onClose) {
|
|
3415
|
+
const button = element(doc, "button", "hive-dialog-close", "×");
|
|
3416
|
+
setAttr(button, "type", "button");
|
|
3417
|
+
const label = translate("dialog.closeAria");
|
|
3418
|
+
setAttr(button, "title", label);
|
|
3419
|
+
setAttr(button, "aria-label", label);
|
|
3420
|
+
button.addEventListener("click", onClose);
|
|
3421
|
+
return button;
|
|
3422
|
+
}
|
|
3423
|
+
|
|
2793
3424
|
// --- shell ---------------------------------------------------------------
|
|
2794
3425
|
|
|
2795
3426
|
const frame = element(doc, "div", "hive");
|
|
2796
3427
|
const bar = element(doc, "header", "hive-bar");
|
|
2797
3428
|
|
|
2798
3429
|
const ident = element(doc, "div", "hive-ident");
|
|
2799
|
-
ident.appendChild(element(doc, "span", "hive-brand", "hive"));
|
|
2800
3430
|
const repoNode = element(doc, "span", "hive-repo", "—");
|
|
2801
3431
|
ident.appendChild(repoNode);
|
|
2802
3432
|
bar.appendChild(ident);
|
|
@@ -2940,8 +3570,6 @@ export function mount(root, options = {}) {
|
|
|
2940
3570
|
const boardHead = element(doc, "div", "hive-pane-head");
|
|
2941
3571
|
const boardLabel = element(doc, "span", null, "");
|
|
2942
3572
|
boardHead.appendChild(boardLabel);
|
|
2943
|
-
const boardHint = element(doc, "span", "hive-hint", "");
|
|
2944
|
-
boardHead.appendChild(boardHint);
|
|
2945
3573
|
const boardCount = element(doc, "span", "hive-count", "0");
|
|
2946
3574
|
boardHead.appendChild(boardCount);
|
|
2947
3575
|
const stage = element(doc, "div", "hive-stage");
|
|
@@ -2986,6 +3614,61 @@ export function mount(root, options = {}) {
|
|
|
2986
3614
|
root.textContent = "";
|
|
2987
3615
|
root.appendChild(frame);
|
|
2988
3616
|
|
|
3617
|
+
let portalHost = null;
|
|
3618
|
+
|
|
3619
|
+
function showModalDialog(dialog) {
|
|
3620
|
+
const parent = doc.body && typeof doc.body.appendChild === "function" ? doc.body : frame;
|
|
3621
|
+
parent.appendChild(dialog);
|
|
3622
|
+
if (typeof dialog.showModal === "function") {
|
|
3623
|
+
try {
|
|
3624
|
+
dialog.showModal();
|
|
3625
|
+
} catch {
|
|
3626
|
+
setAttr(dialog, "open", "");
|
|
3627
|
+
}
|
|
3628
|
+
} else {
|
|
3629
|
+
setAttr(dialog, "open", "");
|
|
3630
|
+
}
|
|
3631
|
+
}
|
|
3632
|
+
|
|
3633
|
+
function closeModalDialog(dialog) {
|
|
3634
|
+
if (!dialog) return;
|
|
3635
|
+
if (typeof dialog.close === "function") {
|
|
3636
|
+
try {
|
|
3637
|
+
dialog.close();
|
|
3638
|
+
} catch {
|
|
3639
|
+
// Native close can throw for a detached dialog; removal below still wins.
|
|
3640
|
+
}
|
|
3641
|
+
}
|
|
3642
|
+
if (dialog.parentNode) dialog.parentNode.removeChild(dialog);
|
|
3643
|
+
}
|
|
3644
|
+
|
|
3645
|
+
function bindDialogDismiss(dialog, close) {
|
|
3646
|
+
dialog.addEventListener("click", (event) => {
|
|
3647
|
+
if (!event || !event.target || event.target === dialog) close();
|
|
3648
|
+
});
|
|
3649
|
+
dialog.addEventListener("cancel", (event) => {
|
|
3650
|
+
if (event && typeof event.preventDefault === "function") event.preventDefault();
|
|
3651
|
+
close();
|
|
3652
|
+
});
|
|
3653
|
+
}
|
|
3654
|
+
|
|
3655
|
+
function ensurePortalHost() {
|
|
3656
|
+
const parent =
|
|
3657
|
+
doc.body && typeof doc.body.appendChild === "function"
|
|
3658
|
+
? doc.body
|
|
3659
|
+
: frame;
|
|
3660
|
+
if (!portalHost || portalHost.parentNode !== parent) {
|
|
3661
|
+
portalHost = element(doc, "div", "hive-portal");
|
|
3662
|
+
parent.appendChild(portalHost);
|
|
3663
|
+
}
|
|
3664
|
+
return portalHost;
|
|
3665
|
+
}
|
|
3666
|
+
|
|
3667
|
+
function appendPortalOverlay(overlay) {
|
|
3668
|
+
ensurePortalHost().appendChild(overlay);
|
|
3669
|
+
}
|
|
3670
|
+
|
|
3671
|
+
|
|
2989
3672
|
// --- helpers -------------------------------------------------------------
|
|
2990
3673
|
|
|
2991
3674
|
function reportError(error) {
|
|
@@ -3019,7 +3702,6 @@ export function mount(root, options = {}) {
|
|
|
3019
3702
|
setAttr(stageChips, "aria-label", translate("board.filtersAria"));
|
|
3020
3703
|
agentsLabel.textContent = translate("pane.agents");
|
|
3021
3704
|
boardLabel.textContent = translate("pane.board");
|
|
3022
|
-
boardHint.textContent = translate("board.hint");
|
|
3023
3705
|
eventsLabel.textContent = translate("pane.events");
|
|
3024
3706
|
const eventsToggleLabel = eventsExpanded ? translate("events.collapse") : translate("events.showAll");
|
|
3025
3707
|
setAttr(eventsToggle, "title", eventsToggleLabel);
|
|
@@ -3046,14 +3728,6 @@ export function mount(root, options = {}) {
|
|
|
3046
3728
|
return element(doc, "div", "hive-empty", text);
|
|
3047
3729
|
}
|
|
3048
3730
|
|
|
3049
|
-
function findRawTask(card) {
|
|
3050
|
-
const tasks = lastSnapshot && Array.isArray(lastSnapshot.tasks) ? lastSnapshot.tasks : [];
|
|
3051
|
-
for (const task of tasks) {
|
|
3052
|
-
if (isRecord(task) && asString(task.id) === card.id) return task;
|
|
3053
|
-
}
|
|
3054
|
-
return null;
|
|
3055
|
-
}
|
|
3056
|
-
|
|
3057
3731
|
function findRawAgent(agent) {
|
|
3058
3732
|
const board = lastSnapshot && Array.isArray(lastSnapshot.board) ? lastSnapshot.board : [];
|
|
3059
3733
|
for (const rawEntry of board) {
|
|
@@ -3357,7 +4031,7 @@ export function mount(root, options = {}) {
|
|
|
3357
4031
|
}
|
|
3358
4032
|
|
|
3359
4033
|
function closePlanDialog(restoreFocus = true) {
|
|
3360
|
-
|
|
4034
|
+
closeModalDialog(planOverlay);
|
|
3361
4035
|
planOverlay = null;
|
|
3362
4036
|
planDialogNode = null;
|
|
3363
4037
|
planState = null;
|
|
@@ -3375,12 +4049,8 @@ export function mount(root, options = {}) {
|
|
|
3375
4049
|
closeDrawer();
|
|
3376
4050
|
planTriggerButton = trigger || planTriggerButton || null;
|
|
3377
4051
|
|
|
3378
|
-
const
|
|
3379
|
-
|
|
3380
|
-
if (!event || !event.target || event.target === overlay) closePlanDialog();
|
|
3381
|
-
});
|
|
3382
|
-
|
|
3383
|
-
const dialog = element(doc, "div", "hive-dialog");
|
|
4052
|
+
const dialog = element(doc, "dialog", "hive-dialog");
|
|
4053
|
+
bindDialogDismiss(dialog, () => closePlanDialog());
|
|
3384
4054
|
setAttr(dialog, "role", "dialog");
|
|
3385
4055
|
setAttr(dialog, "aria-modal", "true");
|
|
3386
4056
|
setAttr(dialog, "aria-label", translate("plan.dialogAria"));
|
|
@@ -3390,11 +4060,7 @@ export function mount(root, options = {}) {
|
|
|
3390
4060
|
titleBox.appendChild(element(doc, "h2", "hive-dialog-title", translate("plan.dialogTitle")));
|
|
3391
4061
|
head.appendChild(titleBox);
|
|
3392
4062
|
|
|
3393
|
-
const closeButton =
|
|
3394
|
-
setAttr(closeButton, "type", "button");
|
|
3395
|
-
setAttr(closeButton, "title", translate("plan.closeAria"));
|
|
3396
|
-
setAttr(closeButton, "aria-label", translate("plan.closeAria"));
|
|
3397
|
-
closeButton.addEventListener("click", () => {
|
|
4063
|
+
const closeButton = dialogCloseButton(() => {
|
|
3398
4064
|
closePlanDialog();
|
|
3399
4065
|
});
|
|
3400
4066
|
head.appendChild(closeButton);
|
|
@@ -3451,7 +4117,7 @@ export function mount(root, options = {}) {
|
|
|
3451
4117
|
dialog.appendChild(body);
|
|
3452
4118
|
|
|
3453
4119
|
const foot = element(doc, "div", "hive-dialog-foot");
|
|
3454
|
-
const cancelButton = element(doc, "button", "hive-btn
|
|
4120
|
+
const cancelButton = element(doc, "button", "hive-btn", translate("plan.cancel"));
|
|
3455
4121
|
setAttr(cancelButton, "type", "button");
|
|
3456
4122
|
setAttr(cancelButton, "title", translate("plan.cancelAria"));
|
|
3457
4123
|
setAttr(cancelButton, "aria-label", translate("plan.cancelAria"));
|
|
@@ -3460,7 +4126,7 @@ export function mount(root, options = {}) {
|
|
|
3460
4126
|
});
|
|
3461
4127
|
foot.appendChild(cancelButton);
|
|
3462
4128
|
|
|
3463
|
-
const applyButton = element(doc, "button", "hive-btn", translate("plan.write"));
|
|
4129
|
+
const applyButton = element(doc, "button", "hive-btn hive-settings-primary", translate("plan.write"));
|
|
3464
4130
|
setAttr(applyButton, "type", "button");
|
|
3465
4131
|
setButtonCopy(applyButton, translate("plan.write"), translate("plan.writeAria"));
|
|
3466
4132
|
applyButton.disabled = true;
|
|
@@ -3470,9 +4136,8 @@ export function mount(root, options = {}) {
|
|
|
3470
4136
|
foot.appendChild(applyButton);
|
|
3471
4137
|
dialog.appendChild(foot);
|
|
3472
4138
|
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
planOverlay = overlay;
|
|
4139
|
+
showModalDialog(dialog);
|
|
4140
|
+
planOverlay = dialog;
|
|
3476
4141
|
planDialogNode = dialog;
|
|
3477
4142
|
planFocusables = [closeButton, goalInput, maxInput, previewButton, cancelButton, applyButton];
|
|
3478
4143
|
planState = {
|
|
@@ -3596,7 +4261,7 @@ export function mount(root, options = {}) {
|
|
|
3596
4261
|
}
|
|
3597
4262
|
|
|
3598
4263
|
function closeLimitsDialog(restoreFocus = true) {
|
|
3599
|
-
|
|
4264
|
+
closeModalDialog(limitsOverlay);
|
|
3600
4265
|
limitsOverlay = null;
|
|
3601
4266
|
limitsDialogNode = null;
|
|
3602
4267
|
limitsState = null;
|
|
@@ -3621,12 +4286,8 @@ export function mount(root, options = {}) {
|
|
|
3621
4286
|
const writable = Boolean(lastModel.writable);
|
|
3622
4287
|
const supervisorAvailable = supervisorData.length > 0;
|
|
3623
4288
|
const rows = roleRowsForCurrentRepo(currentSupervisorRow());
|
|
3624
|
-
const
|
|
3625
|
-
|
|
3626
|
-
if (!event || !event.target || event.target === overlay) closeLimitsDialog();
|
|
3627
|
-
});
|
|
3628
|
-
|
|
3629
|
-
const dialog = element(doc, "div", "hive-dialog hive-settings-dialog");
|
|
4289
|
+
const dialog = element(doc, "dialog", "hive-dialog hive-settings-dialog");
|
|
4290
|
+
bindDialogDismiss(dialog, () => closeLimitsDialog());
|
|
3630
4291
|
setAttr(dialog, "role", "dialog");
|
|
3631
4292
|
setAttr(dialog, "aria-modal", "true");
|
|
3632
4293
|
setAttr(dialog, "aria-label", translate("settings.aria"));
|
|
@@ -3635,11 +4296,7 @@ export function mount(root, options = {}) {
|
|
|
3635
4296
|
const titleBox = element(doc, "div", "hive-dialog-head-title");
|
|
3636
4297
|
titleBox.appendChild(element(doc, "h2", "hive-dialog-title", translate("settings.title")));
|
|
3637
4298
|
head.appendChild(titleBox);
|
|
3638
|
-
const closeButton =
|
|
3639
|
-
setAttr(closeButton, "type", "button");
|
|
3640
|
-
setAttr(closeButton, "title", translate("settings.closeAria"));
|
|
3641
|
-
setAttr(closeButton, "aria-label", translate("settings.closeAria"));
|
|
3642
|
-
closeButton.addEventListener("click", () => {
|
|
4299
|
+
const closeButton = dialogCloseButton(() => {
|
|
3643
4300
|
closeLimitsDialog();
|
|
3644
4301
|
});
|
|
3645
4302
|
head.appendChild(closeButton);
|
|
@@ -3744,6 +4401,7 @@ export function mount(root, options = {}) {
|
|
|
3744
4401
|
header.appendChild(element(doc, "span", "hive-limits-cell is-number", translate("limits.limit")));
|
|
3745
4402
|
header.appendChild(element(doc, "span", "hive-limits-cell is-number", translate("limits.inFlight")));
|
|
3746
4403
|
header.appendChild(element(doc, "span", "hive-limits-cell is-number", translate("limits.queued")));
|
|
4404
|
+
header.appendChild(element(doc, "span", "hive-limits-cell is-action", ""));
|
|
3747
4405
|
table.appendChild(header);
|
|
3748
4406
|
|
|
3749
4407
|
for (const role of rows) {
|
|
@@ -3761,6 +4419,19 @@ export function mount(root, options = {}) {
|
|
|
3761
4419
|
roleRow.appendChild(input);
|
|
3762
4420
|
roleRow.appendChild(element(doc, "span", "hive-limits-cell is-number", limitsNumberText(role.inFlight)));
|
|
3763
4421
|
roleRow.appendChild(element(doc, "span", "hive-limits-cell is-number", limitsNumberText(role.queued)));
|
|
4422
|
+
if (writable) {
|
|
4423
|
+
const removeButton = element(doc, "button", "hive-btn hive-btn-ghost hive-btn-danger hive-role-remove", "×");
|
|
4424
|
+
setAttr(removeButton, "type", "button");
|
|
4425
|
+
const removeTitle = translate("limits.removeRoleAria").replace("{name}", role.role);
|
|
4426
|
+
setAttr(removeButton, "title", removeTitle);
|
|
4427
|
+
setAttr(removeButton, "aria-label", removeTitle);
|
|
4428
|
+
removeButton.addEventListener("click", () => {
|
|
4429
|
+
void removeRole(role.role, role.inFlight, removeButton);
|
|
4430
|
+
});
|
|
4431
|
+
roleRow.appendChild(removeButton);
|
|
4432
|
+
} else {
|
|
4433
|
+
roleRow.appendChild(element(doc, "span", "hive-limits-cell is-action", ""));
|
|
4434
|
+
}
|
|
3764
4435
|
table.appendChild(roleRow);
|
|
3765
4436
|
rowNodes.push({ role: role.role, input });
|
|
3766
4437
|
}
|
|
@@ -3789,7 +4460,9 @@ export function mount(root, options = {}) {
|
|
|
3789
4460
|
|
|
3790
4461
|
const queenSection = element(doc, "section", "hive-settings-section");
|
|
3791
4462
|
queenSection.appendChild(element(doc, "div", "hive-settings-section-title", translate("help.queen")));
|
|
3792
|
-
|
|
4463
|
+
const queenDescription = element(doc, "div", "hive-help-desc hive-help-queen");
|
|
4464
|
+
appendCodeText(queenDescription, translate("help.queenDesc"), "/queen off");
|
|
4465
|
+
queenSection.appendChild(queenDescription);
|
|
3793
4466
|
const tabs = element(doc, "div", "hive-settings-tabs");
|
|
3794
4467
|
setAttr(tabs, "role", "tablist");
|
|
3795
4468
|
setAttr(tabs, "aria-label", translate("settings.tabsAria"));
|
|
@@ -3860,9 +4533,8 @@ export function mount(root, options = {}) {
|
|
|
3860
4533
|
body.appendChild(queenSection);
|
|
3861
4534
|
dialog.appendChild(body);
|
|
3862
4535
|
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
limitsOverlay = overlay;
|
|
4536
|
+
showModalDialog(dialog);
|
|
4537
|
+
limitsOverlay = dialog;
|
|
3866
4538
|
limitsDialogNode = dialog;
|
|
3867
4539
|
limitsState = {
|
|
3868
4540
|
repo,
|
|
@@ -3966,6 +4638,33 @@ export function mount(root, options = {}) {
|
|
|
3966
4638
|
}
|
|
3967
4639
|
}
|
|
3968
4640
|
|
|
4641
|
+
async function removeRole(name, inFlight, button) {
|
|
4642
|
+
const state = limitsState;
|
|
4643
|
+
if (!state || !state.writable || state.busy || destroyed) return;
|
|
4644
|
+
const count = supervisorNumber(inFlight) || 0;
|
|
4645
|
+
let message = translate("limits.removeRoleConfirm").replace("{name}", name);
|
|
4646
|
+
if (count > 0) {
|
|
4647
|
+
const zh = String(translate("limits.removeRoleAria")).startsWith("删除角色");
|
|
4648
|
+
message += zh
|
|
4649
|
+
? " 该角色已有 " + String(count) + " 个任务在跑。"
|
|
4650
|
+
: " This role has " + String(count) + " tasks running.";
|
|
4651
|
+
}
|
|
4652
|
+
if (!askConfirm(message)) return;
|
|
4653
|
+
button.disabled = true;
|
|
4654
|
+
try {
|
|
4655
|
+
const ok = await postAction("roles-remove", { name });
|
|
4656
|
+
if (!ok || destroyed) return;
|
|
4657
|
+
await refreshSupervisor(true);
|
|
4658
|
+
if (destroyed) return;
|
|
4659
|
+
const trigger = limitsTriggerButton;
|
|
4660
|
+
closeLimitsDialog(false);
|
|
4661
|
+
openLimitsDialog(trigger);
|
|
4662
|
+
showToast("success", name, "");
|
|
4663
|
+
} finally {
|
|
4664
|
+
if (!destroyed && button.parentNode) button.disabled = false;
|
|
4665
|
+
}
|
|
4666
|
+
}
|
|
4667
|
+
|
|
3969
4668
|
async function saveBeeCounts() {
|
|
3970
4669
|
const state = limitsState;
|
|
3971
4670
|
if (!state || state.busy || !state.writable || !state.supervisorAvailable) return;
|
|
@@ -4123,7 +4822,7 @@ export function mount(root, options = {}) {
|
|
|
4123
4822
|
}
|
|
4124
4823
|
|
|
4125
4824
|
function closeAddDialog(restoreFocus = true) {
|
|
4126
|
-
|
|
4825
|
+
closeModalDialog(addOverlay);
|
|
4127
4826
|
addOverlay = null;
|
|
4128
4827
|
addDialogNode = null;
|
|
4129
4828
|
addState = null;
|
|
@@ -4158,12 +4857,8 @@ export function mount(root, options = {}) {
|
|
|
4158
4857
|
closeAddDialog(false);
|
|
4159
4858
|
addTriggerButton = trigger || null;
|
|
4160
4859
|
|
|
4161
|
-
const
|
|
4162
|
-
|
|
4163
|
-
if (!event || !event.target || event.target === overlay) closeAddDialog();
|
|
4164
|
-
});
|
|
4165
|
-
|
|
4166
|
-
const dialog = element(doc, "div", "hive-dialog hive-add-dialog");
|
|
4860
|
+
const dialog = element(doc, "dialog", "hive-dialog hive-add-dialog");
|
|
4861
|
+
bindDialogDismiss(dialog, () => closeAddDialog());
|
|
4167
4862
|
setAttr(dialog, "role", "dialog");
|
|
4168
4863
|
setAttr(dialog, "aria-modal", "true");
|
|
4169
4864
|
setAttr(dialog, "aria-label", translate("add.dialogTitle"));
|
|
@@ -4172,11 +4867,7 @@ export function mount(root, options = {}) {
|
|
|
4172
4867
|
const titleBox = element(doc, "div", "hive-dialog-head-title");
|
|
4173
4868
|
titleBox.appendChild(element(doc, "h2", "hive-dialog-title", translate("add.dialogTitle")));
|
|
4174
4869
|
head.appendChild(titleBox);
|
|
4175
|
-
const closeButton =
|
|
4176
|
-
setAttr(closeButton, "type", "button");
|
|
4177
|
-
setAttr(closeButton, "title", translate("settings.closeAria"));
|
|
4178
|
-
setAttr(closeButton, "aria-label", translate("settings.closeAria"));
|
|
4179
|
-
closeButton.addEventListener("click", () => {
|
|
4870
|
+
const closeButton = dialogCloseButton(() => {
|
|
4180
4871
|
closeAddDialog();
|
|
4181
4872
|
});
|
|
4182
4873
|
head.appendChild(closeButton);
|
|
@@ -4200,8 +4891,12 @@ export function mount(root, options = {}) {
|
|
|
4200
4891
|
const scopeInput = element(doc, "input", "hive-input hive-add-scope");
|
|
4201
4892
|
setAttr(scopeInput, "type", "text");
|
|
4202
4893
|
setAttr(scopeInput, "autocomplete", "off");
|
|
4894
|
+
setAttr(scopeInput, "placeholder", "src/auth.ts, docs/");
|
|
4203
4895
|
setAttr(scopeInput, "aria-label", translate("add.scopeAria"));
|
|
4204
|
-
|
|
4896
|
+
const scopeField = element(doc, "label", "hive-field");
|
|
4897
|
+
scopeField.appendChild(element(doc, "span", "hive-field-label", translate("add.scope")));
|
|
4898
|
+
scopeField.appendChild(scopeInput);
|
|
4899
|
+
body.appendChild(scopeField);
|
|
4205
4900
|
|
|
4206
4901
|
const afterInput = element(doc, "input", "hive-input hive-add-after");
|
|
4207
4902
|
setAttr(afterInput, "type", "text");
|
|
@@ -4220,7 +4915,7 @@ export function mount(root, options = {}) {
|
|
|
4220
4915
|
dialog.appendChild(body);
|
|
4221
4916
|
|
|
4222
4917
|
const foot = element(doc, "div", "hive-dialog-foot");
|
|
4223
|
-
const cancelButton = element(doc, "button", "hive-btn
|
|
4918
|
+
const cancelButton = element(doc, "button", "hive-btn", translate("add.cancel"));
|
|
4224
4919
|
setAttr(cancelButton, "type", "button");
|
|
4225
4920
|
cancelButton.addEventListener("click", () => {
|
|
4226
4921
|
closeAddDialog();
|
|
@@ -4234,12 +4929,11 @@ export function mount(root, options = {}) {
|
|
|
4234
4929
|
foot.appendChild(submitButton);
|
|
4235
4930
|
dialog.appendChild(foot);
|
|
4236
4931
|
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
addOverlay = overlay;
|
|
4932
|
+
showModalDialog(dialog);
|
|
4933
|
+
addOverlay = dialog;
|
|
4240
4934
|
addDialogNode = dialog;
|
|
4241
4935
|
addState = {
|
|
4242
|
-
overlay,
|
|
4936
|
+
overlay: dialog,
|
|
4243
4937
|
dialog,
|
|
4244
4938
|
title: titleInput,
|
|
4245
4939
|
role: roleInput,
|
|
@@ -4306,7 +5000,10 @@ export function mount(root, options = {}) {
|
|
|
4306
5000
|
}
|
|
4307
5001
|
|
|
4308
5002
|
function closeDrawer(restoreFocus = true) {
|
|
4309
|
-
if (drawerNode
|
|
5003
|
+
if (drawerNode) {
|
|
5004
|
+
if (String(drawerNode.tagName).toLowerCase() === "dialog") closeModalDialog(drawerNode);
|
|
5005
|
+
else if (drawerNode.parentNode) drawerNode.parentNode.removeChild(drawerNode);
|
|
5006
|
+
}
|
|
4310
5007
|
drawerNode = null;
|
|
4311
5008
|
drawerState = null;
|
|
4312
5009
|
if (typeof doc.removeEventListener === "function") {
|
|
@@ -4365,6 +5062,61 @@ export function mount(root, options = {}) {
|
|
|
4365
5062
|
body.appendChild(element(doc, "pre", "hive-json", JSON.stringify(raw, null, 2)));
|
|
4366
5063
|
}
|
|
4367
5064
|
|
|
5065
|
+
/**
|
|
5066
|
+
* The card drawer's "Last run" block. With no record it is one muted line;
|
|
5067
|
+
* with a record it shows status, agent, timestamps and the short commit above
|
|
5068
|
+
* the worker output (monospace, internally scrollable) and a copy button.
|
|
5069
|
+
* A record whose worker Session is known, on a host that provides
|
|
5070
|
+
* `openSession`, also gets the "Open agent chat" button.
|
|
5071
|
+
* @param {object|null} run - normalized `lastRun` (see normalizeLastRun)
|
|
5072
|
+
* @returns {HTMLElement}
|
|
5073
|
+
*/
|
|
5074
|
+
function buildRunSection(run) {
|
|
5075
|
+
const section = element(doc, "div", "hive-card-run");
|
|
5076
|
+
section.appendChild(element(doc, "div", "hive-card-run-title", translate("drawer.lastRun")));
|
|
5077
|
+
if (!run) {
|
|
5078
|
+
section.appendChild(element(doc, "div", "hive-note hive-card-run-empty", translate("drawer.noRuns")));
|
|
5079
|
+
return section;
|
|
5080
|
+
}
|
|
5081
|
+
const started = formatRunStamp(run.startedAt);
|
|
5082
|
+
const ended = formatRunStamp(run.endedAt);
|
|
5083
|
+
const metaParts = [run.status, run.agent];
|
|
5084
|
+
if (started || ended) metaParts.push(started + (ended ? " → " + ended : ""));
|
|
5085
|
+
if (run.commit) metaParts.push(shortCommit(run.commit));
|
|
5086
|
+
const metaPartsText = metaParts.filter(Boolean).join(" · ");
|
|
5087
|
+
const meta = element(doc, "div", "hive-card-run-meta", metaPartsText);
|
|
5088
|
+
setAttr(meta, "title", metaPartsText);
|
|
5089
|
+
section.appendChild(meta);
|
|
5090
|
+
section.appendChild(element(doc, "pre", "hive-card-run-output", run.output));
|
|
5091
|
+
const foot = element(doc, "div", "hive-card-run-foot");
|
|
5092
|
+
const copy = element(doc, "button", "hive-btn hive-btn-ghost hive-card-run-copy", translate("drawer.copyOutput"));
|
|
5093
|
+
setAttr(copy, "type", "button");
|
|
5094
|
+
setAttr(copy, "title", translate("drawer.copyOutput"));
|
|
5095
|
+
setAttr(copy, "aria-label", translate("drawer.copyOutput"));
|
|
5096
|
+
copy.addEventListener("click", () => {
|
|
5097
|
+
copyToClipboard(doc, run.output);
|
|
5098
|
+
});
|
|
5099
|
+
foot.appendChild(copy);
|
|
5100
|
+
// Only render the jump-to-chat control when both halves exist: a recorded
|
|
5101
|
+
// worker Session and a host navigation callback. No disabled placeholder.
|
|
5102
|
+
if (run.sessionId && openSession) {
|
|
5103
|
+
const chat = element(doc, "button", "hive-btn hive-btn-ghost hive-card-run-open", translate("drawer.openChat"));
|
|
5104
|
+
setAttr(chat, "type", "button");
|
|
5105
|
+
setAttr(chat, "title", translate("drawer.openChat"));
|
|
5106
|
+
setAttr(chat, "aria-label", translate("drawer.openChat"));
|
|
5107
|
+
chat.addEventListener("click", () => {
|
|
5108
|
+
try {
|
|
5109
|
+
openSession(run.sessionId);
|
|
5110
|
+
} catch (error) {
|
|
5111
|
+
reportError(error);
|
|
5112
|
+
}
|
|
5113
|
+
});
|
|
5114
|
+
foot.appendChild(chat);
|
|
5115
|
+
}
|
|
5116
|
+
section.appendChild(foot);
|
|
5117
|
+
return section;
|
|
5118
|
+
}
|
|
5119
|
+
|
|
4368
5120
|
function openDrawer(card, lane, trigger) {
|
|
4369
5121
|
closeHelp(false);
|
|
4370
5122
|
closePlanDialog(false);
|
|
@@ -4372,7 +5124,6 @@ export function mount(root, options = {}) {
|
|
|
4372
5124
|
closeDrawer(false);
|
|
4373
5125
|
drawerTrigger = trigger || null;
|
|
4374
5126
|
|
|
4375
|
-
const raw = findRawTask(card) || { ...card, state: lane };
|
|
4376
5127
|
const title = card.title || translate("card.untitled");
|
|
4377
5128
|
const id = card.id || translate("card.noId");
|
|
4378
5129
|
const role = asString(card.role) || "—";
|
|
@@ -4380,12 +5131,8 @@ export function mount(root, options = {}) {
|
|
|
4380
5131
|
const repo = lastModel ? lastModel.repo : "";
|
|
4381
5132
|
const ariaLabel = translate("drawer.cardAria") + " " + (card.title || card.id || translate("card.untitled"));
|
|
4382
5133
|
|
|
4383
|
-
const
|
|
4384
|
-
|
|
4385
|
-
if (!event || !event.target || event.target === overlay) closeDrawer();
|
|
4386
|
-
});
|
|
4387
|
-
|
|
4388
|
-
const dialog = element(doc, "div", "hive-dialog hive-card-dialog hive-drawer");
|
|
5134
|
+
const dialog = element(doc, "dialog", "hive-dialog hive-card-dialog hive-drawer");
|
|
5135
|
+
bindDialogDismiss(dialog, () => closeDrawer());
|
|
4389
5136
|
setAttr(dialog, "role", "dialog");
|
|
4390
5137
|
setAttr(dialog, "aria-modal", "true");
|
|
4391
5138
|
setAttr(dialog, "aria-label", ariaLabel);
|
|
@@ -4399,23 +5146,14 @@ export function mount(root, options = {}) {
|
|
|
4399
5146
|
setAttr(subline, "title", sublineText);
|
|
4400
5147
|
titleBox.appendChild(subline);
|
|
4401
5148
|
head.appendChild(titleBox);
|
|
4402
|
-
const closeButton =
|
|
4403
|
-
setAttr(closeButton, "type", "button");
|
|
4404
|
-
setAttr(closeButton, "title", translate("drawer.closeAria"));
|
|
4405
|
-
setAttr(closeButton, "aria-label", translate("drawer.closeAria"));
|
|
4406
|
-
closeButton.addEventListener("click", () => {
|
|
5149
|
+
const closeButton = dialogCloseButton(() => {
|
|
4407
5150
|
closeDrawer();
|
|
4408
5151
|
});
|
|
4409
5152
|
head.appendChild(closeButton);
|
|
4410
5153
|
dialog.appendChild(head);
|
|
4411
5154
|
|
|
4412
5155
|
const body = element(doc, "div", "hive-dialog-body hive-card-body");
|
|
4413
|
-
|
|
4414
|
-
const summary = element(doc, "summary", "hive-card-json-summary", translate("drawer.rawJson"));
|
|
4415
|
-
const pre = element(doc, "pre", "hive-json", JSON.stringify(raw, null, 2));
|
|
4416
|
-
details.appendChild(summary);
|
|
4417
|
-
details.appendChild(pre);
|
|
4418
|
-
body.appendChild(details);
|
|
5156
|
+
body.appendChild(buildRunSection(card.lastRun));
|
|
4419
5157
|
dialog.appendChild(body);
|
|
4420
5158
|
|
|
4421
5159
|
const actions = actionsForState(lane, lastModel ? lastModel.writable : false);
|
|
@@ -4459,9 +5197,8 @@ export function mount(root, options = {}) {
|
|
|
4459
5197
|
dialog.appendChild(foot);
|
|
4460
5198
|
}
|
|
4461
5199
|
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
drawerNode = overlay;
|
|
5200
|
+
showModalDialog(dialog);
|
|
5201
|
+
drawerNode = dialog;
|
|
4465
5202
|
drawerState = { kind: "card", card, lane };
|
|
4466
5203
|
if (typeof doc.addEventListener === "function") {
|
|
4467
5204
|
doc.addEventListener("keydown", onDrawerKeydown);
|
|
@@ -4712,7 +5449,7 @@ export function mount(root, options = {}) {
|
|
|
4712
5449
|
return storage;
|
|
4713
5450
|
}
|
|
4714
5451
|
} catch {
|
|
4715
|
-
// A
|
|
5452
|
+
// A failing localStorage must not break the panel.
|
|
4716
5453
|
}
|
|
4717
5454
|
return null;
|
|
4718
5455
|
}
|
|
@@ -4953,14 +5690,11 @@ export function mount(root, options = {}) {
|
|
|
4953
5690
|
const total = element(doc, "span", "hive-stat is-total");
|
|
4954
5691
|
total.appendChild(element(doc, "strong", null, String(model.stats.total)));
|
|
4955
5692
|
total.appendChild(element(doc, "span", "hive-stat-unit", " " + translate("stats.cards")));
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
const count = model.stats.byState[state];
|
|
4960
|
-
if (count === undefined || count === null) continue;
|
|
4961
|
-
const pill = element(doc, "span", "hive-stat", laneLabel(state) + " " + count);
|
|
4962
|
-
statsNode.appendChild(pill);
|
|
5693
|
+
const failedCount = model.stats.byState.failed;
|
|
5694
|
+
if (failedCount !== undefined && failedCount !== null && Number(failedCount) > 0) {
|
|
5695
|
+
total.appendChild(element(doc, "span", "hive-stat-unit", " · " + laneLabel("failed") + " " + failedCount));
|
|
4963
5696
|
}
|
|
5697
|
+
statsNode.appendChild(total);
|
|
4964
5698
|
|
|
4965
5699
|
if (model.stats.oldestPending) {
|
|
4966
5700
|
const pending = model.stats.oldestPending;
|
|
@@ -5004,7 +5738,8 @@ export function mount(root, options = {}) {
|
|
|
5004
5738
|
function renderActions(model) {
|
|
5005
5739
|
clearNode(actionsNode);
|
|
5006
5740
|
for (const action of model.actions) {
|
|
5007
|
-
const
|
|
5741
|
+
const variant = action.name === "add" ? " hive-settings-primary" : "";
|
|
5742
|
+
const button = element(doc, "button", "hive-btn" + variant, translate(action.labelKey));
|
|
5008
5743
|
setAttr(button, "type", "button");
|
|
5009
5744
|
setAttr(button, "title", translate(action.helpKey));
|
|
5010
5745
|
setAttr(button, "aria-label", translate(action.helpKey));
|
|
@@ -5372,12 +6107,53 @@ export function mount(root, options = {}) {
|
|
|
5372
6107
|
closeAddDialog(false);
|
|
5373
6108
|
closeToast();
|
|
5374
6109
|
closeDrawer();
|
|
6110
|
+
if (portalHost && portalHost.parentNode) portalHost.parentNode.removeChild(portalHost);
|
|
6111
|
+
portalHost = null;
|
|
5375
6112
|
if (frame.parentNode) frame.parentNode.removeChild(frame);
|
|
5376
6113
|
lastSnapshot = null;
|
|
5377
6114
|
lastModel = null;
|
|
5378
6115
|
}
|
|
5379
6116
|
|
|
6117
|
+
const THEME_TOKEN_NAMES = [
|
|
6118
|
+
"--dsw-alias-bg-base",
|
|
6119
|
+
"--dsw-alias-bg-layer-1",
|
|
6120
|
+
"--dsw-alias-bg-layer-2",
|
|
6121
|
+
"--dsw-alias-bg-layer-3",
|
|
6122
|
+
"--dsw-alias-border-l1",
|
|
6123
|
+
"--dsw-alias-border-l2",
|
|
6124
|
+
"--dsw-alias-label-primary",
|
|
6125
|
+
"--dsw-alias-label-secondary",
|
|
6126
|
+
"--dsw-alias-label-tertiary",
|
|
6127
|
+
"--dsw-alias-brand-primary",
|
|
6128
|
+
"--dsw-alias-interactive-bg-hover",
|
|
6129
|
+
"--dsw-alias-border-selected",
|
|
6130
|
+
"--dsw-alias-state-error-primary",
|
|
6131
|
+
"--dsw-alias-state-success-primary",
|
|
6132
|
+
"--dsw-alias-state-warn-primary",
|
|
6133
|
+
"--dsw-radius-sm",
|
|
6134
|
+
"--dsw-radius-md",
|
|
6135
|
+
"--dsw-radius-lg",
|
|
6136
|
+
"--dsw-elevation-panel",
|
|
6137
|
+
];
|
|
6138
|
+
|
|
6139
|
+
function assertThemeTokens() {
|
|
6140
|
+
if (!view || typeof view.getComputedStyle !== "function") return;
|
|
6141
|
+
let computed = null;
|
|
6142
|
+
try {
|
|
6143
|
+
computed = view.getComputedStyle(frame);
|
|
6144
|
+
} catch {
|
|
6145
|
+
return;
|
|
6146
|
+
}
|
|
6147
|
+
if (!computed) return;
|
|
6148
|
+
for (const token of THEME_TOKEN_NAMES) {
|
|
6149
|
+
if (computed.getPropertyValue(token).trim() === "" && view.console && typeof view.console.warn === "function") {
|
|
6150
|
+
view.console.warn("hive: " + token + " is empty; the neutral fallback keeps the panel visible");
|
|
6151
|
+
}
|
|
6152
|
+
}
|
|
6153
|
+
}
|
|
6154
|
+
|
|
5380
6155
|
applyChrome();
|
|
6156
|
+
assertThemeTokens();
|
|
5381
6157
|
|
|
5382
6158
|
if (typeof opts.subscribeLocale === "function") {
|
|
5383
6159
|
try {
|