gcf-board 0.6.0 → 0.7.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.
@@ -4,8 +4,8 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>GCF board</title>
7
- <script type="module" crossorigin src="/assets/index-D_F7OEyk.js"></script>
8
- <link rel="stylesheet" crossorigin href="/assets/index-BYAEKw51.css">
7
+ <script type="module" crossorigin src="/assets/index-BB3i2FaE.js"></script>
8
+ <link rel="stylesheet" crossorigin href="/assets/index-B3u-VrJK.css">
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
@@ -453,12 +453,14 @@ async function decided(c, requestId, { allow, by = 'operator', always = false })
453
453
  return post(c, { type: 'denied', request_id: requestId, tool: card.tool, by, title });
454
454
  }
455
455
 
456
- const rule = always ? card.always : null;
456
+ let rule = always ? card.always : null;
457
457
  if (rule) {
458
458
  try {
459
459
  await c.saveAlways(rule);
460
460
  } catch (e) {
461
461
  post(c, { type: 'error', text: `the rule ${rule} was not saved: ${e.message}` });
462
+ // "Saved" is the event's word (chat-events.md): a rule not saved is an allow once.
463
+ rule = null;
462
464
  }
463
465
  }
464
466
 
@@ -305,6 +305,7 @@ export async function runJob(p) {
305
305
  // A record whose handoff its own run already counted (`counted`) owes none.
306
306
  if (kind === 'handoff' && !rec.counted && (await capped(j)))
307
307
  return { code: 0, handoffs: j.handoffs, handoffLimit: true, handoffPending: false };
308
+ await noReset(j, kind, rec);
308
309
  try {
309
310
  return await chain(j, kind, rec);
310
311
  } finally {
@@ -314,18 +315,37 @@ export async function runJob(p) {
314
315
  }
315
316
  }
316
317
 
318
+ /**
319
+ * A record a stopped wait left paused: limit names its reset: a run started on it (the
320
+ * operator's Run, before the reset or after) names none while it works (AD-32), so no board
321
+ * reads it as waiting for the limit.
322
+ */
323
+ async function noReset(j, kind, rec) {
324
+ if (!rec?.resets) return;
325
+ // As the gate's: a session the run does not resume is named by none, so a handoff stays one.
326
+ const resumes = kind === 'resume';
327
+ await j.p.persist?.({
328
+ session_id: resumes ? rec.session_id : undefined,
329
+ handoffs: j.handoffs,
330
+ handoffPending: false,
331
+ total: resumes ? Number(rec.cost_usd) || undefined : undefined,
332
+ limit: { resets: null },
333
+ });
334
+ }
335
+
317
336
  /**
318
337
  * A session the usage limit cut (`s.ran`): the job waits for the reset, then goes on with it
319
338
  * resumed; with a fresh one when it was told to hand over (a handoff, counted), or when it has
320
- * no session to resume. No wait leaves it as it ended: paused. A stop during the wait leaves
321
- * the session to the next run, not paused by the limit.
339
+ * no session to resume. No wait leaves it as it ended: paused. A stop during the wait keeps
340
+ * the limit and its reset (PRD §3.2): the item is paused: limit, and a rerun resumes the
341
+ * session; the stop is the operator's, so it pauses no queue.
322
342
  */
323
343
  async function overLimit(j, s) {
324
344
  while (s.ran.limit && !s.ran.stopped && !(await j.p.done?.())) {
325
345
  const { reset, handover, state } = limitState(j, s);
326
346
  if (handover && (await pastCap(j))) return;
327
347
  const waited = await limitWait(j, reset, state);
328
- if (waited === 'stopped') s.ran = { ...s.ran, limit: undefined, stopped: true };
348
+ if (waited === 'stopped') s.ran = { ...s.ran, stopped: true };
329
349
  if (waited !== 'reset' || (handover && (await capped(j)))) return;
330
350
  await afterReset(j, s, handover);
331
351
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gcf-session",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "private": true,
5
5
  "description": "The session engine of GCF: one agent session and a run as a chain of them, the chat protocol, the provider adapters. Bundled by gcf-harness-aif-ext and gcf-board, never published.",
6
6
  "type": "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gcf-board",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "A local web board for GCF game projects: shows `gcf board --json` and runs the same ai-factory gcf commands an operator runs in a console",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -36,6 +36,8 @@
36
36
  },
37
37
  "devDependencies": {
38
38
  "@dnd-kit/core": "^6.3.1",
39
+ "@fontsource-variable/golos-text": "^5.3.0",
40
+ "@fontsource-variable/jetbrains-mono": "^5.3.0",
39
41
  "@types/node": "^22.18.0",
40
42
  "@types/react": "^19.0.0",
41
43
  "@types/react-dom": "^19.0.0",
@@ -1 +0,0 @@
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}