gcf-board 0.4.1 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/server/app.js +101 -8
- package/dist/server/chat.js +54 -0
- package/dist/server/cli.js +11 -4
- package/dist/server/desktop.js +17 -3
- package/dist/server/events.js +15 -1
- package/dist/server/files.js +5 -4
- package/dist/server/relay.js +50 -0
- package/dist/server/runs.js +220 -57
- package/dist/web/assets/{index-DCkdSzDJ.css → index-BYAEKw51.css} +1 -1
- package/dist/web/assets/index-DpzFCrLV.js +36 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/index-CCeftHBL.js +0 -34
package/dist/server/runs.js
CHANGED
|
@@ -1,12 +1,27 @@
|
|
|
1
|
-
// Runs the board started: `ai-factory <harness> run <ids> --json` (GCF: gcf-harness), one
|
|
2
|
-
//
|
|
3
|
-
//
|
|
1
|
+
// Runs the board started: `ai-factory <harness> run <ids> --json` (GCF: gcf-harness), one per batch,
|
|
2
|
+
// in a relay (relay.ts) the board starts detached: the run outlives the board, and a board started
|
|
3
|
+
// again finds it by its record in `<board home>/runs/` and reads its end from there. A run
|
|
4
|
+
// started from a console shows on the board too (its lock or session mark makes the item
|
|
5
|
+
// `running`); only its report is not here.
|
|
4
6
|
// In `run_mode: main` the checkout takes one run at a time: a run asked for meanwhile waits in
|
|
5
7
|
// the project's queue and starts when the one before it ends.
|
|
6
8
|
import { spawn } from 'node:child_process';
|
|
9
|
+
import { randomUUID } from 'node:crypto';
|
|
10
|
+
import { mkdirSync, readdirSync, readFileSync, rmSync, statSync, unlinkSync, writeFileSync, } from 'node:fs';
|
|
11
|
+
import path from 'node:path';
|
|
12
|
+
import { fileURLToPath } from 'node:url';
|
|
7
13
|
import { briefError } from './cli.js';
|
|
8
|
-
import { broadcast } from './events.js';
|
|
14
|
+
import { alive, broadcast } from './events.js';
|
|
9
15
|
import { HttpError } from './http-error.js';
|
|
16
|
+
import { homeDir } from './registry.js';
|
|
17
|
+
// The source runs relay.ts, the package its build beside this file.
|
|
18
|
+
const RELAY = fileURLToPath(new URL(import.meta.url.endsWith('.ts') ? 'relay.ts' : 'relay.js', import.meta.url));
|
|
19
|
+
const flightsDir = () => path.join(homeDir(), 'runs');
|
|
20
|
+
const recordOf = (rid) => path.join(flightsDir(), `${rid}.json`);
|
|
21
|
+
const endOf = (rid) => path.join(flightsDir(), `${rid}.end.json`);
|
|
22
|
+
// A relay touches its record every BEAT_MS of relay.ts (30 s): on adoption, three missed beats
|
|
23
|
+
// is a dead one.
|
|
24
|
+
const BEAT_STALE_MS = 90_000;
|
|
10
25
|
// A board that stops leaves its runs going: killing one would lose its integrate step.
|
|
11
26
|
const active = new Set();
|
|
12
27
|
const queues = new Map();
|
|
@@ -19,8 +34,11 @@ const scheduled = new Map();
|
|
|
19
34
|
const limitPaused = new Set();
|
|
20
35
|
// Runs going on for a project the operator removed: their end touches no project state.
|
|
21
36
|
const forgotten = new WeakSet();
|
|
22
|
-
//
|
|
23
|
-
|
|
37
|
+
// The runs in flight by their record's id: a project added back must not take one twice.
|
|
38
|
+
const flights = new Map();
|
|
39
|
+
// shortcut: reports and acts live in memory, like the queue: a board restart forgets the ones
|
|
40
|
+
// it showed (a run in flight is not lost, its record waits); persist them with the queue if
|
|
41
|
+
// restarts become common.
|
|
24
42
|
const reports = new Map();
|
|
25
43
|
const acts = new Map();
|
|
26
44
|
const KEEP_REPORTS = 20;
|
|
@@ -119,7 +137,8 @@ function schedule(run, at) {
|
|
|
119
137
|
liftLimitPause(project);
|
|
120
138
|
try {
|
|
121
139
|
if (s) {
|
|
122
|
-
const
|
|
140
|
+
const { entry, p, ids, mode, harness } = s.run;
|
|
141
|
+
const r = startRun(entry, p, ids, mode, false, harness);
|
|
123
142
|
const how = 'queued' in r ? 'wait in the queue' : 'run again';
|
|
124
143
|
trace(project, 'resume', `the usage limit reset: ${s.run.ids.join(', ')} ${how}`);
|
|
125
144
|
}
|
|
@@ -205,7 +224,7 @@ export function stalled(ok, result) {
|
|
|
205
224
|
}
|
|
206
225
|
/**
|
|
207
226
|
* The harness report a run printed, or null for none. A report of another shape counts as none:
|
|
208
|
-
* the
|
|
227
|
+
* the end of the run that reads it would throw, and take the server down with it.
|
|
209
228
|
*/
|
|
210
229
|
export function harnessReport(out) {
|
|
211
230
|
let r;
|
|
@@ -235,66 +254,210 @@ function spawnRun(q, mode) {
|
|
|
235
254
|
const { entry, p, ids, harness } = q;
|
|
236
255
|
const run = { project: p.name, ids, started: new Date().toISOString(), mode };
|
|
237
256
|
active.add(run);
|
|
238
|
-
const args = [entry, harness, 'run', ...ids, '--json'
|
|
239
|
-
|
|
257
|
+
const args = [entry, harness, 'run', ...ids, '--json'];
|
|
258
|
+
if (q.fresh)
|
|
259
|
+
args.push('--fresh');
|
|
260
|
+
// A board's run is always open to the operator: its chat settings say who waits for whom.
|
|
261
|
+
// shortcut: the page shows no chat yet, so nobody could answer a question there: the run
|
|
262
|
+
// waits for none (as `answer_timeout_min: 0`); drop the timeout when the chat screen ships.
|
|
263
|
+
// GCF_BOARD_CHAT_TIMEOUT: the scenario tests, which answer through the API, wait.
|
|
264
|
+
args.push('--chat', '--chat-timeout', process.env.GCF_BOARD_CHAT_TIMEOUT ?? '0');
|
|
265
|
+
const rid = randomUUID();
|
|
266
|
+
const relay = spawn(process.execPath, [RELAY, recordOf(rid), endOf(rid), ...args], {
|
|
240
267
|
cwd: p.path,
|
|
241
|
-
|
|
242
|
-
stdio:
|
|
268
|
+
detached: true,
|
|
269
|
+
stdio: 'ignore',
|
|
270
|
+
windowsHide: true,
|
|
243
271
|
});
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
272
|
+
relay.unref();
|
|
273
|
+
// Only a relay that started has a pid, and a run to find again; at once, the board may stop next.
|
|
274
|
+
const record = {
|
|
275
|
+
project: p.name,
|
|
276
|
+
path: p.path,
|
|
277
|
+
ids,
|
|
278
|
+
mode,
|
|
279
|
+
started: run.started,
|
|
280
|
+
harness,
|
|
281
|
+
pid: relay.pid ?? 0,
|
|
282
|
+
};
|
|
283
|
+
try {
|
|
284
|
+
if (relay.pid) {
|
|
285
|
+
mkdirSync(flightsDir(), { recursive: true });
|
|
286
|
+
writeFileSync(recordOf(rid), JSON.stringify(record));
|
|
287
|
+
flights.set(rid, run);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
catch {
|
|
291
|
+
// No record: this board still reports the run, a board after it will not find it.
|
|
292
|
+
}
|
|
293
|
+
relay.on('error', (e) => land(q, run, rid, true, e.message));
|
|
294
|
+
relay.on('exit', () => land(q, run, rid, true));
|
|
295
|
+
return run;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* A run's end: its report from the end file its relay wrote, or what went wrong. `live`: a
|
|
299
|
+
* board saw it end, so a usage limit or a stalled queue acts on it; a run that ended while no
|
|
300
|
+
* board was up only reports (a reset counted from now could be a day late).
|
|
301
|
+
*/
|
|
302
|
+
function land(q, run, rid, live, message = '') {
|
|
303
|
+
// A spawn that fails fires both error and exit: one end only.
|
|
304
|
+
if (!active.has(run))
|
|
305
|
+
return;
|
|
306
|
+
let end = null;
|
|
307
|
+
try {
|
|
308
|
+
end = JSON.parse(readFileSync(endOf(rid), 'utf8'));
|
|
309
|
+
}
|
|
310
|
+
catch {
|
|
311
|
+
// No end: the relay died or never started, the message below says so.
|
|
312
|
+
}
|
|
313
|
+
// A run with no record (its write failed) has nothing to claim.
|
|
314
|
+
let claimed = true;
|
|
315
|
+
if (flights.delete(rid)) {
|
|
316
|
+
// The record is the claim: a second board on the same home that took it reports it there.
|
|
317
|
+
// shortcut: the loser does not see the result, so its main queue goes on even after a limit
|
|
318
|
+
// or a stall the winner paused for; two boards on one home is not a setup the board offers.
|
|
319
|
+
try {
|
|
320
|
+
unlinkSync(recordOf(rid));
|
|
321
|
+
}
|
|
322
|
+
catch (e) {
|
|
323
|
+
if (e.code === 'ENOENT') {
|
|
324
|
+
active.delete(run);
|
|
325
|
+
if (q.mode === 'main')
|
|
326
|
+
advance(q.p.name);
|
|
327
|
+
broadcast({ type: 'board', project: run.project });
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
// Held by a scanner for a moment: report now; the end stays for a board after this one,
|
|
331
|
+
// which reports it again.
|
|
332
|
+
claimed = false;
|
|
261
333
|
}
|
|
262
|
-
|
|
263
|
-
|
|
334
|
+
}
|
|
335
|
+
try {
|
|
336
|
+
if (claimed)
|
|
337
|
+
rmSync(endOf(rid), { force: true });
|
|
338
|
+
}
|
|
339
|
+
catch {
|
|
340
|
+
// Held by a scanner: its id is no other run's, so it only stays behind.
|
|
341
|
+
}
|
|
342
|
+
active.delete(run);
|
|
343
|
+
const { p, ids, mode } = q;
|
|
344
|
+
const ok = end?.code === 0;
|
|
345
|
+
const result = harnessReport(end?.out ?? '');
|
|
346
|
+
if (!end && !message)
|
|
347
|
+
message = "the run's relay ended without a result";
|
|
348
|
+
// A run of a project removed meanwhile only reports: it pauses and schedules nothing.
|
|
349
|
+
const kept = !forgotten.has(run);
|
|
350
|
+
const acting = kept && live;
|
|
351
|
+
const stop = acting && mode === 'main' && queues.get(p.name)?.length && stalled(ok, result);
|
|
352
|
+
if (stop) {
|
|
353
|
+
paused.add(p.name);
|
|
354
|
+
limitPaused.delete(p.name);
|
|
355
|
+
}
|
|
356
|
+
const note = !kept
|
|
357
|
+
? ''
|
|
358
|
+
: !live
|
|
359
|
+
? 'it ended while the board was stopped: nothing was paused or scheduled'
|
|
264
360
|
: limited(q, result) ||
|
|
265
361
|
(stop ? 'the queue is paused: fix the cause, then resume it on the board' : '');
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
advance(p.name);
|
|
287
|
-
broadcast({ type: 'board', project: p.name });
|
|
362
|
+
if (stop)
|
|
363
|
+
trace(p.name, 'queue-paused', `after ${ids.join(', ')}: ${note}`);
|
|
364
|
+
for (const i of result?.items ?? [])
|
|
365
|
+
if (acting && i.handoffs)
|
|
366
|
+
trace(p.name, 'handoff', `${i.id}: ${i.handoffs} context handoff(s) to a fresh session`);
|
|
367
|
+
// A harness before 0.11 refuses the chat flags every board run passes: say what to update.
|
|
368
|
+
const old = /unknown option '--chat|--chat-timeout is a number of minutes above 0/;
|
|
369
|
+
const brief = !end?.err
|
|
370
|
+
? ''
|
|
371
|
+
: old.test(end.err)
|
|
372
|
+
? 'board runs need gcf-harness-aif-ext 0.11 or later: update it in the project'
|
|
373
|
+
: briefError(end.err);
|
|
374
|
+
const report = {
|
|
375
|
+
id: `r${++reportSeq}`,
|
|
376
|
+
at: new Date().toISOString(),
|
|
377
|
+
ids,
|
|
378
|
+
ok,
|
|
379
|
+
result,
|
|
380
|
+
err: (brief + message).trim(),
|
|
381
|
+
note,
|
|
288
382
|
};
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
383
|
+
// A project removed meanwhile has no board to show it on.
|
|
384
|
+
if (kept)
|
|
385
|
+
reports.set(p.name, [...(reports.get(p.name) ?? []), report].slice(-KEEP_REPORTS));
|
|
386
|
+
// The checkout is free now, for whatever queue the name has: a project added back meanwhile.
|
|
387
|
+
if (mode === 'main')
|
|
388
|
+
advance(p.name);
|
|
389
|
+
broadcast({ type: 'board', project: p.name });
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Whether the relay of a run found on adoption still goes: its pid lives and it touched its
|
|
393
|
+
* record lately (relay.ts). A pid alone is not enough: another process may hold it after a
|
|
394
|
+
* restart of Windows, whose fast startup keeps the uptime going.
|
|
395
|
+
*/
|
|
396
|
+
function going(rid, pid) {
|
|
397
|
+
try {
|
|
398
|
+
return alive(pid) && Date.now() - statSync(recordOf(rid)).mtimeMs < BEAT_STALE_MS;
|
|
399
|
+
}
|
|
400
|
+
catch {
|
|
401
|
+
return false;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* The runs a board before this one started for the project: one going shows as active until it
|
|
406
|
+
* ends, one that ended meanwhile as its report, one whose relay died with no end as a failure.
|
|
407
|
+
* shortcut: the records of a project removed while no board was up stay in the board home until
|
|
408
|
+
* it is added back; sweep the ones of unregistered projects at the start if they pile up.
|
|
409
|
+
*/
|
|
410
|
+
export function adoptRuns(entry, p) {
|
|
411
|
+
let names;
|
|
412
|
+
try {
|
|
413
|
+
names = readdirSync(flightsDir());
|
|
414
|
+
}
|
|
415
|
+
catch {
|
|
416
|
+
return;
|
|
417
|
+
}
|
|
418
|
+
for (const name of names) {
|
|
419
|
+
if (!name.endsWith('.json') || name.endsWith('.end.json'))
|
|
420
|
+
continue;
|
|
421
|
+
const rid = name.slice(0, -'.json'.length);
|
|
422
|
+
if (flights.has(rid))
|
|
423
|
+
continue;
|
|
424
|
+
let f;
|
|
425
|
+
try {
|
|
426
|
+
f = JSON.parse(readFileSync(recordOf(rid), 'utf8'));
|
|
427
|
+
}
|
|
428
|
+
catch {
|
|
429
|
+
continue;
|
|
430
|
+
}
|
|
431
|
+
if (f.project !== p.name || f.path !== p.path)
|
|
432
|
+
continue;
|
|
433
|
+
const run = { project: p.name, ids: f.ids, started: f.started, mode: f.mode };
|
|
434
|
+
const q = { entry, p, ids: f.ids, mode: f.mode, harness: f.harness };
|
|
435
|
+
active.add(run);
|
|
436
|
+
flights.set(rid, run);
|
|
437
|
+
// shortcut: off Windows a dead relay leaves its harness going (no job object), reported
|
|
438
|
+
// failed here; record the harness pid if that bites. A board started within a beat of the
|
|
439
|
+
// machine waking takes a run going since before the sleep for a dead one (its beat is late):
|
|
440
|
+
// a main queue then starts in a busy checkout, and the end that relay writes stays behind.
|
|
441
|
+
// Once adopted, only the pid's death ends it: a sleep stops the beats too.
|
|
442
|
+
if (going(rid, f.pid)) {
|
|
443
|
+
const poll = setInterval(() => {
|
|
444
|
+
if (alive(f.pid))
|
|
445
|
+
return;
|
|
446
|
+
clearInterval(poll);
|
|
447
|
+
land(q, run, rid, true);
|
|
448
|
+
}, 2000);
|
|
449
|
+
poll.unref();
|
|
450
|
+
}
|
|
451
|
+
else
|
|
452
|
+
land(q, run, rid, false);
|
|
453
|
+
}
|
|
454
|
+
broadcast({ type: 'board', project: p.name });
|
|
292
455
|
}
|
|
293
456
|
/**
|
|
294
457
|
* Start a batch in the project's run mode, or queue it behind the main run going on. Its end
|
|
295
458
|
* is a run report with the harness report, or what went wrong. `fresh` starts new agent
|
|
296
459
|
* sessions where the harness would resume the interrupted ones. `harness` is the domain's
|
|
297
|
-
* (`domain.harness`); the tests take GCF's.
|
|
460
|
+
* (`domain.harness`); the tests take GCF's. Its sessions are open to the operator's chat.
|
|
298
461
|
*/
|
|
299
462
|
export function startRun(entry, p, ids, mode = 'worktree', fresh = false, harness = 'gcf-harness') {
|
|
300
463
|
// A second click on the same card: the harness would refuse it on its lock, noisily.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--bg:#14161a;--panel:#1d2026;--card:#262a32;--line:#343a45;--text:#e6e8ec;--muted:#8b93a1;--accent:#5b9cff;--ok:#46c08a;--warn:#e8a33d;--bad:#e5534b;--verdict:#b48cff;--auto:#46c08a;--decision:#e8a33d;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font:14px/1.4 system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0}button,input,select,textarea{font:inherit;color:inherit;background:var(--card);border:1px solid var(--line);border-radius:6px;padding:6px 10px}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.danger{border-color:var(--bad);color:var(--bad)}code,pre{font-family:ui-monospace,Cascadia Code,Consolas,monospace}.muted{color:var(--muted)}.error,.warn{color:var(--bad)}.ok{color:var(--ok)}.badge{background:var(--line);border-radius:4px;padding:1px 6px;font-size:12px;display:inline-block}.topbar{background:var(--panel);border-bottom:1px solid var(--line);z-index:5;align-items:center;gap:12px;padding:8px 16px;display:flex;position:sticky;top:0}.projects-menu{position:relative}.projects-menu>:not(summary){margin-top:8px}.projects-menu[open]{background:var(--panel);border:1px solid var(--line);z-index:20;border-radius:8px;width:min(520px,92vw);padding:10px;position:absolute;top:8px;right:16px}.add-project{flex-wrap:wrap;gap:6px;display:flex}.add-project input:first-child{flex:260px}.empty{padding:32px}.project{padding:12px 16px 48px}.banner{border:1px solid var(--bad);border-radius:6px;margin-bottom:8px;padding:8px 12px}.header{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:8px;display:flex}.phase{flex-wrap:wrap;flex:1;align-items:center;gap:8px;display:flex}.criterion{color:var(--muted);font-size:12px}.criterion.met-true{color:var(--ok)}.criterion.met-false{color:var(--warn)}.wip.over{color:var(--bad);font-weight:600}.tabs{gap:4px;margin:8px 0;display:flex;overflow-x:auto}.tabs button{background:0 0;border-color:#0000}.tabs button.active{border-color:var(--line);background:var(--panel)}.board-actions{align-items:center;gap:12px;margin-bottom:8px;display:flex}.graveyard-zone{border:1px dashed var(--line);color:var(--muted);text-align:center;border-radius:6px;flex:1;padding:6px 10px}.graveyard-zone.over{border-color:var(--bad);color:var(--bad)}.columns{scroll-snap-type:x mandatory;grid-auto-columns:minmax(230px,1fr);grid-auto-flow:column;gap:10px;padding-bottom:8px;display:grid;overflow-x:auto}.column{background:var(--panel);border:1px solid var(--line);scroll-snap-align:start;border-radius:8px;min-height:200px;padding:8px}.column.over{border-color:var(--accent)}.column h3{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:0 0 8px;font-size:13px}.count{color:var(--text)}.card{background:var(--card);border:1px solid var(--line);border-left:3px solid var(--line);cursor:pointer;touch-action:manipulation;border-radius:6px;margin-bottom:8px;padding:8px}.card.gate-verdict{border-left-color:var(--verdict)}.card.gate-auto{border-left-color:var(--auto)}.card.gate-decision{border-left-color:var(--decision)}.card.dragging{opacity:.7;z-index:10;position:relative}.card-top,.card-bottom{flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;display:flex}.card .id{font-size:13px;font-weight:600}.card .type,.card .field{color:var(--muted)}.card .lessons{color:var(--warn)}button.link{cursor:pointer;background:0 0;border:none;padding:0;text-decoration:underline}.drawer .lessons{margin:8px 0}.gate{margin-left:auto;font-size:11px}.gate-verdict.gate{color:var(--verdict)}.gate-auto.gate{color:var(--auto)}.gate-decision.gate{color:var(--decision)}.title{margin:4px 0}.plan{background:var(--line);border-radius:4px;padding:0 5px}.verified{color:var(--ok)}.queued,.card .field.waits_for{color:var(--warn)}.activity{color:var(--muted)}.quiet{color:var(--warn)}.rank{color:var(--muted);font-size:11px}.card.drop-before{box-shadow:0 -3px 0 var(--accent)}.run-next{color:var(--muted);align-items:center;gap:6px;display:inline-flex}.run-next input{width:56px}.card .severity-critical.severity,.card .severity-high.severity{color:var(--bad)}.long{color:var(--warn);white-space:pre-wrap;margin-top:4px;font-size:12px}.drawer{background:var(--panel);border-left:1px solid var(--line);z-index:30;flex-direction:column;width:min(640px,100vw);padding:12px 16px;display:flex;position:fixed;top:0;bottom:0;right:0;box-shadow:-8px 0 24px #0006}.drawer>header{justify-content:space-between;align-items:center;display:flex}.drawer h2{margin:0}.facts{grid-template-columns:max-content 1fr;gap:2px 12px;margin:8px 0;display:grid}.facts dt{color:var(--muted)}.facts .fact{display:contents}.facts dd{margin:0}.moves{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.moves details{gap:6px;display:inline-flex}.moves details[open]{flex-wrap:wrap;gap:6px;display:flex}.drawer-body{border-top:1px solid var(--line);flex:1;padding-top:8px;overflow:auto}.frontmatter{color:var(--muted);background:var(--card);white-space:pre-wrap;border-radius:6px;padding:8px;font-size:12px}.log{white-space:pre-wrap;word-break:break-word;margin:0;font-size:12px}.modal{z-index:40;background:#0000008c;place-items:center;padding:12px;display:grid;position:fixed;inset:0}.dialog{background:var(--panel);border:1px solid var(--line);border-radius:10px;flex-direction:column;gap:10px;width:min(480px,100%);max-height:90vh;padding:16px;display:flex;overflow:auto}.dialog h2{margin:0;font-size:16px}.dialog label{color:var(--muted);flex-direction:column;gap:4px;font-size:13px;display:flex}.dialog label>*{color:var(--text)}.dialog-actions{justify-content:flex-end;gap:8px;display:flex}.list-view ul{padding:0;list-style:none}.list-view li{border-bottom:1px solid var(--line);align-items:center;gap:8px;padding:6px 0;display:flex}.row-actions{gap:6px;margin-left:auto;display:flex}.inline-form{gap:6px;margin:8px 0;display:flex}.inline-form input{flex:1}.playtest .build{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.check{background:var(--card);border:1px solid var(--line);border-radius:8px;margin-bottom:8px;padding:10px}.check p{margin:4px 0}.ended{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;display:grid}.ended table{border-collapse:collapse;width:100%}.ended td{border-bottom:1px solid var(--line);vertical-align:top;padding:4px 6px}.toasts{z-index:50;flex-direction:column;gap:6px;max-width:min(480px,92vw);display:flex;position:fixed;bottom:12px;right:12px}.toast{background:var(--card);border:1px solid var(--ok);white-space:pre-wrap;border-radius:6px;padding:8px 12px}.toast-close{float:right;background:0 0;border:none;margin:-4px -6px 0 8px;padding:0 6px}.toast.error{border-color:var(--bad)}.run-reports{flex-direction:column;gap:6px;margin:6px 0;display:flex}.acts ul{margin:4px 0;padding-left:18px}@media (width<=700px){.project{padding:8px}.columns{grid-auto-columns:85vw}}.dialog.help{max-height:80vh;overflow-y:auto}.dialog.help dt{margin-top:6px;font-weight:600}.dialog.help dd{color:var(--muted);margin:0 0 0 12px}
|
|
1
|
+
:root{--bg:#14161a;--panel:#1d2026;--card:#262a32;--line:#343a45;--text:#e6e8ec;--muted:#8b93a1;--accent:#5b9cff;--ok:#46c08a;--warn:#e8a33d;--bad:#e5534b;--verdict:#b48cff;--auto:#46c08a;--decision:#e8a33d;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font:14px/1.4 system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0}button,input,select,textarea{font:inherit;color:inherit;background:var(--card);border:1px solid var(--line);border-radius:6px;padding:6px 10px}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.danger{border-color:var(--bad);color:var(--bad)}code,pre{font-family:ui-monospace,Cascadia Code,Consolas,monospace}.muted{color:var(--muted)}.error,.warn{color:var(--bad)}.ok{color:var(--ok)}.badge{background:var(--line);border-radius:4px;padding:1px 6px;font-size:12px;display:inline-block}.topbar{background:var(--panel);border-bottom:1px solid var(--line);z-index:5;align-items:center;gap:12px;padding:8px 16px;display:flex;position:sticky;top:0}.projects-menu{position:relative}.projects-menu>:not(summary){margin-top:8px}.projects-menu[open]{background:var(--panel);border:1px solid var(--line);z-index:20;border-radius:8px;width:min(520px,92vw);padding:10px;position:absolute;top:8px;right:16px}.add-project{flex-wrap:wrap;gap:6px;display:flex}.add-project input:first-child{flex:260px}.empty{padding:32px}.project{padding:12px 16px 48px}.banner{border:1px solid var(--bad);border-radius:6px;margin-bottom:8px;padding:8px 12px}.header{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:8px;display:flex}.phase{flex-wrap:wrap;flex:1;align-items:center;gap:8px;display:flex}.criterion{color:var(--muted);font-size:12px}.criterion.met-true{color:var(--ok)}.criterion.met-false{color:var(--warn)}.wip.over{color:var(--bad);font-weight:600}.tabs{gap:4px;margin:8px 0;display:flex;overflow-x:auto}.tabs button{background:0 0;border-color:#0000}.tabs button.active{border-color:var(--line);background:var(--panel)}.board-actions{align-items:center;gap:12px;margin-bottom:8px;display:flex}.graveyard-zone{border:1px dashed var(--line);color:var(--muted);text-align:center;border-radius:6px;flex:1;padding:6px 10px}.graveyard-zone.over{border-color:var(--bad);color:var(--bad)}.columns{scroll-snap-type:x mandatory;grid-auto-columns:minmax(230px,1fr);grid-auto-flow:column;gap:10px;padding-bottom:8px;display:grid;overflow-x:auto}.column{background:var(--panel);border:1px solid var(--line);scroll-snap-align:start;border-radius:8px;min-height:200px;padding:8px}.column.over{border-color:var(--accent)}.column h3{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:0 0 8px;font-size:13px}.count{color:var(--text)}.card{background:var(--card);border:1px solid var(--line);border-left:3px solid var(--line);cursor:pointer;touch-action:manipulation;border-radius:6px;margin-bottom:8px;padding:8px}.card.gate-verdict{border-left-color:var(--verdict)}.card.gate-auto{border-left-color:var(--auto)}.card.gate-decision{border-left-color:var(--decision)}.card.dragging{opacity:.7;z-index:10;position:relative}.card-top,.card-bottom{flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;display:flex}.card .id{font-size:13px;font-weight:600}.card .type,.card .field{color:var(--muted)}.card .lessons{color:var(--warn)}button.link{cursor:pointer;background:0 0;border:none;padding:0;text-decoration:underline}.drawer .lessons{margin:8px 0}.gate{margin-left:auto;font-size:11px}.gate-verdict.gate{color:var(--verdict)}.gate-auto.gate{color:var(--auto)}.gate-decision.gate{color:var(--decision)}.title{margin:4px 0}.plan{background:var(--line);border-radius:4px;padding:0 5px}.verified{color:var(--ok)}.queued,.card .field.waits_for{color:var(--warn)}.activity{color:var(--muted)}.quiet{color:var(--warn)}.rank{color:var(--muted);font-size:11px}.card.drop-before{box-shadow:0 -3px 0 var(--accent)}.run-next{color:var(--muted);align-items:center;gap:6px;display:inline-flex}.run-next input{width:56px}.card .severity-critical.severity,.card .severity-high.severity{color:var(--bad)}.long{color:var(--warn);white-space:pre-wrap;margin-top:4px;font-size:12px}.drawer{background:var(--panel);border-left:1px solid var(--line);z-index:30;flex-direction:column;width:min(640px,100vw);padding:12px 16px;display:flex;position:fixed;top:0;bottom:0;right:0;box-shadow:-8px 0 24px #0006}.drawer>header{justify-content:space-between;align-items:center;display:flex}.drawer h2{margin:0}.facts{grid-template-columns:max-content 1fr;gap:2px 12px;margin:8px 0;display:grid}.facts dt{color:var(--muted)}.facts .fact{display:contents}.facts dd{margin:0}.moves{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.moves details{gap:6px;display:inline-flex}.moves details[open]{flex-wrap:wrap;gap:6px;display:flex}.drawer-body{border-top:1px solid var(--line);flex:1;padding-top:8px;overflow:auto}.frontmatter{color:var(--muted);background:var(--card);white-space:pre-wrap;border-radius:6px;padding:8px;font-size:12px}.log{white-space:pre-wrap;word-break:break-word;margin:0;font-size:12px}.modal{z-index:40;background:#0000008c;place-items:center;padding:12px;display:grid;position:fixed;inset:0}.dialog{background:var(--panel);border:1px solid var(--line);border-radius:10px;flex-direction:column;gap:10px;width:min(480px,100%);max-height:90vh;padding:16px;display:flex;overflow:auto}.dialog h2{margin:0;font-size:16px}.dialog label{color:var(--muted);flex-direction:column;gap:4px;font-size:13px;display:flex}.dialog label>*{color:var(--text)}.dialog-actions{justify-content:flex-end;gap:8px;display:flex}.list-view ul{padding:0;list-style:none}.list-view li{border-bottom:1px solid var(--line);align-items:center;gap:8px;padding:6px 0;display:flex}.row-actions{gap:6px;margin-left:auto;display:flex}.inline-form{gap:6px;margin:8px 0;display:flex}.inline-form input,.inline-form textarea{flex:1}.inline-form textarea{resize:vertical;font:inherit}.entry-text{white-space:pre-wrap}.playtest .build{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.check{background:var(--card);border:1px solid var(--line);border-radius:8px;margin-bottom:8px;padding:10px}.check p{margin:4px 0}.ended{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;display:grid}.ended table{border-collapse:collapse;width:100%}.ended td{border-bottom:1px solid var(--line);vertical-align:top;padding:4px 6px}.toasts{z-index:50;flex-direction:column;gap:6px;max-width:min(480px,92vw);display:flex;position:fixed;bottom:12px;right:12px}.toast{background:var(--card);border:1px solid var(--ok);white-space:pre-wrap;border-radius:6px;padding:8px 12px}.toast-close{float:right;background:0 0;border:none;margin:-4px -6px 0 8px;padding:0 6px}.toast.error{border-color:var(--bad)}.run-reports{flex-direction:column;gap:6px;margin:6px 0;display:flex}.acts ul{margin:4px 0;padding-left:18px}@media (width<=700px){.project{padding:8px}.columns{grid-auto-columns:85vw}}.dialog.help{max-height:80vh;overflow-y:auto}.dialog.help dt{margin-top:6px;font-weight:600}.dialog.help dd{color:var(--muted);margin:0 0 0 12px}
|