kaizen-agent 1.62.0 → 1.63.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.
@@ -309,6 +309,12 @@ export function initSearch() {
309
309
  addEventListener(
310
310
  "keydown",
311
311
  (e) => {
312
+ // Ctrl+Shift+Space works in a terminal too: no shell or agent needs it.
313
+ if (e.ctrlKey && e.shiftKey && e.code === "Space") {
314
+ e.preventDefault();
315
+ e.stopPropagation();
316
+ return void (dl ? dl.close() : openSearch());
317
+ }
312
318
  // A terminal keeps its keys: Ctrl+K there is the shell's kill-line.
313
319
  if ((e.target as Element)?.closest?.(".xterm")) return;
314
320
  const mod = mac ? e.metaKey : e.ctrlKey;
@@ -0,0 +1,71 @@
1
+ import { post } from "./api.ts";
2
+ import { $, html, raw } from "./dom.ts";
3
+ import { toast } from "./toast.ts";
4
+
5
+ // Settings → Workflows → Automations: schedules that start a run in this project. /automations
6
+ // answers for the page's project; the server makes every decision, this only draws and posts.
7
+ type Hist = { fire: string; at: number; kind: string; status: string; reason?: string; run?: string };
8
+ type Rule = { id: string; name: string; text: string; cron: string; kind: string; enabled: boolean; agent?: string; precheck?: string; precheck_timeout: number; grace_minutes: number; next: number | null; history: Hist[] };
9
+ export type Auto = { zone: string; cap: number; project: string; agents: { cmd: string; name: string }[]; rules: Rule[] };
10
+
11
+ // The form survives the redraw every change event causes.
12
+ const draft: Record<string, string> = { kind: "daily", time: "09:00", day: "mon", grace_minutes: "720", precheck_timeout: "60" };
13
+ let editing = "";
14
+ const when = (t: number) => new Date(t).toLocaleString([], { weekday: "short", hour: "2-digit", minute: "2-digit", day: "numeric", month: "short" });
15
+ const SCHEDULE: Record<string, string> = { hourly: "Every hour", daily: "Every day", weekdays: "Weekdays", weekly: "Every week", cron: "Cron" };
16
+ const f = (k: string) => draft[k] ?? "";
17
+
18
+ const hist = (h: Hist) => html`<li><time>${when(h.at)}</time> · ${h.kind} · <b>${h.status.replace(/_/g, " ")}</b>${h.reason ? html` · ${h.reason}` : ""}${h.run ? html` · <code>${h.run}</code>` : ""}</li>`;
19
+
20
+ const row = (r: Rule) => html`<div class="sk" data-q="${["automation", r.name, r.text, r.cron].join(" ").toLowerCase()}">
21
+ <div class="sk-h"><span class="sk-n"><b>${r.name}</b><span>${SCHEDULE[r.kind]} · <code>${r.cron}</code> · ${r.enabled ? (r.next ? "next " + when(r.next) : "never") : "paused"}</span></span>
22
+ <button type="button" class="btn" data-auto="run" data-id="${r.id}">Run now</button>
23
+ <button type="button" class="btn" data-auto="edit" data-id="${r.id}">Edit</button>
24
+ <button type="button" class="btn" data-auto="delete" data-id="${r.id}">Delete</button>
25
+ <button type="button" class="chk sm${r.enabled ? " on" : ""}" data-auto="${r.enabled ? "pause" : "resume"}" data-id="${r.id}" role="switch" aria-checked="${String(r.enabled)}" aria-label="${r.name}" title="${r.enabled ? "On" : "Paused"}"></button></div>
26
+ <div class="sk-a"><span>${r.text.length > 140 ? r.text.slice(0, 140) + "…" : r.text}</span></div>
27
+ ${r.history.length ? html`<details class="sk-a"><summary>History (${r.history.length})</summary><ul>${r.history.map(hist)}</ul></details>` : ""}
28
+ </div>`;
29
+
30
+ const field = (label: string, id: string, ctl: unknown) => html`<label class="sk-n" style="display:block;margin-top:8px"><span style="display:block">${label}</span>${ctl}</label>`;
31
+ const input = (k: string, attrs = "") => html`<input class="sel" data-f="${k}" value="${f(k)}" ${raw(attrs)} spellcheck="false" autocomplete="off" style="width:100%">`;
32
+
33
+ const form = (d: Auto) => html`<div class="sk" data-q="automation new create add schedule">
34
+ <div class="sk-n"><b>${editing ? "Edit automation" : "New automation"}</b><span>Project: ${d.project}. Times are ${d.zone}, this computer's. One board per project: runs start only while a board is open.</span></div>
35
+ <p class="hint" role="alert" style="color:var(--warn)">Warning: an automation runs unattended in auto mode. It plans, builds and reviews with nobody watching, so it changes code in this project and spends tokens. It stops at the final approval only if your approval settings say so. At most ${d.cap} runs a day, and one open run at a time.</p>
36
+ ${field("Name", "name", input("name", 'maxlength="60"'))}
37
+ ${field("Request (what each run should do)", "text", html`<textarea class="sel" data-f="text" rows="3" style="width:100%">${f("text")}</textarea>`)}
38
+ ${field("Schedule", "kind", html`<select class="sel" data-f="kind" style="width:100%">${Object.entries(SCHEDULE).map(([k, v]) => html`<option value="${k}"${f("kind") === k ? " selected" : ""}>${v}</option>`)}</select>`)}
39
+ ${f("kind") === "cron" ? field("Cron (minute hour day month weekday)", "cron", input("cron", 'placeholder="0 9 * * 1-5"')) : html`${field(f("kind") === "hourly" ? "At minute (uses the minutes of HH:MM)" : "Time (HH:MM)", "time", input("time", 'placeholder="09:00"'))}${f("kind") === "weekly" ? field("Day", "day", html`<select class="sel" data-f="day" style="width:100%">${["mon", "tue", "wed", "thu", "fri", "sat", "sun"].map((x) => html`<option${f("day") === x ? " selected" : ""}>${x}</option>`)}</select>`) : ""}`}
40
+ ${field("Agent", "agent", html`<select class="sel" data-f="agent" style="width:100%"><option value="">Project default</option>${d.agents.map((a) => html`<option value="${a.cmd}"${f("agent") === a.cmd ? " selected" : ""}>${a.name}</option>`)}</select>`)}
41
+ ${field("Check before each scheduled run (optional shell command; exit 0 continues)", "precheck", input("precheck", 'placeholder="git fetch -q && test -n &quot;$(git log --since=7.days -1)&quot;"'))}
42
+ <p class="hint">Runs on this computer, in the project folder, every time this fires. Not run by Run now.</p>
43
+ ${field("Check time limit (seconds)", "precheck_timeout", input("precheck_timeout", 'inputmode="numeric"'))}
44
+ ${field("Late start allowed (minutes after the due time)", "grace_minutes", input("grace_minutes", 'inputmode="numeric"'))}
45
+ <div class="sk-a"><button type="button" class="btn pri" data-auto="save">${editing ? "Save" : "Create"}</button>${editing ? html`<button type="button" class="btn" data-auto="cancel">Cancel</button>` : ""}</div>
46
+ </div>`;
47
+
48
+ export const automationRows = (d: Auto) => html`<h3 class="sg">Automations</h3><div class="sgrp">${d.rules.map(row)}${form(d)}</div>`;
49
+
50
+ export function wireAutomations(d: Auto, redraw: () => Promise<unknown>) {
51
+ $("pbody").querySelectorAll<HTMLInputElement>("[data-f]").forEach((el) => {
52
+ el.oninput = () => { draft[el.dataset.f!] = el.value; };
53
+ el.onchange = () => { draft[el.dataset.f!] = el.value; if (el.dataset.f === "kind") redraw(); };
54
+ });
55
+ $("pbody").querySelectorAll<HTMLElement>("[data-auto]").forEach((b) => (b.onclick = async () => {
56
+ const op = b.dataset.auto!, id = b.dataset.id ?? "";
57
+ if (op === "edit") {
58
+ const r = d.rules.find((x) => x.id === id)!;
59
+ editing = id;
60
+ Object.assign(draft, { name: r.name, text: r.text, kind: r.kind, cron: r.cron, agent: r.agent ?? "", precheck: r.precheck ?? "", precheck_timeout: String(r.precheck_timeout), grace_minutes: String(r.grace_minutes), time: "09:00", day: "mon" });
61
+ return void redraw();
62
+ }
63
+ if (op === "cancel") { editing = ""; return void redraw(); }
64
+ if (op === "delete" && !confirm("Delete this automation and its history?")) return;
65
+ const j = await post("/automations", op === "save" ? { op: editing ? "update" : "create", id: editing, ...draft } : { op, id });
66
+ if (j.error) return toast(j.error);
67
+ if (op === "save") { editing = ""; for (const k of ["name", "text", "cron", "agent", "precheck"]) delete draft[k]; toast("Saved"); }
68
+ else if (op === "run") toast(j.ok ? "Started" : (j.status ?? "not started").replace(/_/g, " ") + (j.why ? ": " + j.why : ""));
69
+ await redraw();
70
+ }));
71
+ }
@@ -22,3 +22,7 @@ test("the Orchestration page exists and holds its three settings", () => {
22
22
  expect(pages.has("orchestration")).toBe(true);
23
23
  for (const k of ["enabled", "max_workers", "permissions", "worker_model.claude"]) expect(placeOf(`orchestration.${k}`)).toEqual(["orchestration", "Workers"]);
24
24
  });
25
+
26
+ test("the Automations page sits under Workflows", () => {
27
+ expect(SETTINGS_NAV.find(([g]) => g === "Workflows")![1].some((p) => p.id === "automations")).toBe(true);
28
+ });
@@ -17,6 +17,7 @@ export const SETTINGS_NAV: [string, SettingsPage[]][] = [
17
17
  ["Workflows", [
18
18
  { id: "approvals", title: "Approvals", desc: "Where a run stops and waits for you.", ico: "check" },
19
19
  { id: "autofix", title: "Auto-fix", desc: "What happens to review findings.", ico: "bug" },
20
+ { id: "automations", title: "Automations", desc: "Schedules that start a run in this project.", ico: "clock" },
20
21
  { id: "git", title: "Git & Source Control", desc: "Branches and commits for each run.", ico: "pen" },
21
22
  { id: "terminal", title: "Terminal", desc: "The terminal dashboard.", ico: "term" },
22
23
  ]],
@@ -29,7 +30,7 @@ export const SETTINGS_NAV: [string, SettingsPage[]][] = [
29
30
  // First match wins: [key pattern, page, subsection].
30
31
  const PLACES: [RegExp, string, string][] = [
31
32
  [/^(preset|runner|build\.|review\.executor)/, "agents", "Workflow"],
32
- [/^subagents\./, "agents", "Subagents"],
33
+ [/^(subagents\.|agent\.model\.)/, "agents", "Models"],
33
34
  [/^agent\.default$/, "agents", "Default agent"],
34
35
  [/^agent\./, "agents", "Running agents"],
35
36
  [/^orchestration\./, "orchestration", "Workers"],
@@ -1,12 +1,13 @@
1
1
  import { store } from "./store.ts";
2
2
  import { termStop } from "./agent-term.ts";
3
- import { load, post } from "./api.ts";
3
+ import { dirHeader, load, post } from "./api.ts";
4
4
  import { stopDictation } from "./dictation.ts";
5
5
  import { $, html, ico, raw } from "./dom.ts";
6
6
  import { close } from "./panel.ts";
7
7
  import { accountRows, wireAccounts } from "./settings-accounts.ts";
8
8
  import { agentRows, wireAgents } from "./settings-agents.ts";
9
9
  import { modelInput, modelLabel, orchestrationRows } from "./settings-orchestration.ts";
10
+ import { automationRows, wireAutomations } from "./settings-automations.ts";
10
11
  import { skillRows, wireSkills } from "./settings-skills.ts";
11
12
  import { fillMics, micRow } from "./settings-voice.ts";
12
13
  import { placeOf, SETTINGS_NAV } from "./settings-pages.ts";
@@ -70,6 +71,9 @@ export async function openSettings() {
70
71
  const sk = await fetch("/skills")
71
72
  .then((r) => (r.ok ? r.json() : null))
72
73
  .catch(() => null);
74
+ const au = await fetch("/automations", { headers: dirHeader() })
75
+ .then((r) => (r.ok ? r.json() : null))
76
+ .catch(() => null);
73
77
  if (gen !== store.pageGen) return;
74
78
  $("psub").textContent = "";
75
79
  $("psub").title = "";
@@ -127,10 +131,12 @@ export async function openSettings() {
127
131
  ));
128
132
  // Drawn as chips with the agent list, above the rest of the page.
129
133
  cfg.rows = cfg.rows.filter((r) => !(r.key === "agent.default" && ap));
134
+ // A model row only for a tool on this machine.
135
+ if (ap) cfg.rows = cfg.rows.filter((r) => !r.key.startsWith("agent.model.") || ap.agents.some((a) => a.installed && r.key.endsWith("." + a.cmd)));
130
136
  for (const r of cfg.rows) {
131
137
  const id = "s-" + r.key.replace(/\./g, "-");
132
138
  const [page, sub] = placeOf(r.key);
133
- const wm = r.key.startsWith("orchestration.worker_model.");
139
+ const wm = /^(orchestration\.worker_model|agent\.model)\./.test(r.key);
134
140
  put(page, sub + (scoped && r.group === "Board" ? " · all projects" : ""), row(
135
141
  wm ? modelLabel(r) : r.label,
136
142
  r.text
@@ -178,7 +184,7 @@ export async function openSettings() {
178
184
  <button class="sup" type="button">${ico("chev")}Settings</button>
179
185
  <header><h2>${p.title}</h2><p>${p.desc}${scopeName ? ` Editing ${scopeName}.` : ""}</p></header>
180
186
  ${p.id === "general" ? html`<div id="supd"></div>` : ""}
181
- <div class="scard">${p.id === "agents" && ap ? agentRows(ap, defaultAgent, scopeName) : ""}${p.id === "accounts" && ac ? accountRows(ac) : ""}${p.id === "orchestration" && cfg ? orchestrationRows({ windows: !!cfg.windows, bypass: cfg.rows.some((r) => r.key === "orchestration.permissions" && r.value === "bypass") }) : ""}${p.id === "skills" && sk ? skillRows(sk.skills) : ""}${[...pageRows.get(p.id)].map(([sub, rows]) => html`<h3 class="sg">${sub}</h3><div class="sgrp">${rows}</div>`)}</div>
187
+ <div class="scard">${p.id === "agents" && ap ? agentRows(ap, defaultAgent, scopeName) : ""}${p.id === "accounts" && ac ? accountRows(ac) : ""}${p.id === "orchestration" && cfg ? orchestrationRows({ windows: !!cfg.windows, bypass: cfg.rows.some((r) => r.key === "orchestration.permissions" && r.value === "bypass") }) : ""}${p.id === "skills" && sk ? skillRows(sk.skills) : ""}${p.id === "automations" ? (au ? automationRows(au) : html`<h3 class="sg">Automations</h3><div class="sgrp"><div class="sk" data-q="automation">Open a project to add automations. They belong to one project each.</div></div>`) : ""}${[...pageRows.get(p.id)].map(([sub, rows]) => html`<h3 class="sg">${sub}</h3><div class="sgrp">${rows}</div>`)}</div>
182
188
  </div>`)}
183
189
  ${cfg ? "" : html`<p class="snone">Settings could not be read. Run <code>kaizen settings</code>.</p>`}
184
190
  <p class="snone" id="snone" hidden></p>
@@ -243,6 +249,7 @@ export async function openSettings() {
243
249
  };
244
250
  if (ap) wireAgents(openSettings, cfg?.scope ?? null);
245
251
  if (sk) wireSkills(openSettings, sk.token);
252
+ if (au) wireAutomations(au, openSettings);
246
253
  fillMics();
247
254
  if (ac) wireAccounts(openSettings);
248
255
  filter();
@@ -454,7 +454,11 @@ export function usageChips(list) {
454
454
  async function usage(refresh = false) {
455
455
  try {
456
456
  const r = await fetch("/usage" + (refresh ? "?refresh=1" : ""));
457
- if (r.ok) $("usage").innerHTML = usageChips(await r.json());
457
+ if (!r.ok) return;
458
+ const list = await r.json();
459
+ $("usage").innerHTML = usageChips(list);
460
+ // Nothing to refresh: only Claude and Codex report usage.
461
+ $("usage-r").style.display = list.length ? "" : "none";
458
462
  } catch {}
459
463
  }
460
464
  async function phone() {
@@ -1,5 +1,5 @@
1
1
  import { expect, test } from "bun:test";
2
- import { agentStatus, agentsHtml, forgetAgents, lineOf, settleIn, toggleOpen, wsAgents, SETTLE_MS, awaiting, dueWord, chosen, newRun, loopbackUrl, toOpen, stageKeys, stageTabs, finished, historyOf, liveIn, migrate, pickable, prune, wsKey } from "./ws-tabs.ts";
2
+ import { nearestPane, agentStatus, agentsHtml, forgetAgents, lineOf, settleIn, toggleOpen, wsAgents, SETTLE_MS, awaiting, dueWord, chosen, newRun, loopbackUrl, toOpen, stageKeys, stageTabs, finished, historyOf, liveIn, migrate, pickable, prune, wsKey } from "./ws-tabs.ts";
3
3
 
4
4
  const run = (id: string, status: string, o: any = {}) => ({ kind: "run", state: "/p/.kaizen", id, status, moved: 1, ws: "/p", ...o });
5
5
  const wsOf = (c) => c.ws;
@@ -192,3 +192,14 @@ test("a terminal that carried plan and build is named for the run's stage", () =
192
192
  expect(stageTabs(c, "Claude")).toEqual([{ key: "a", title: "Build · Claude" }]);
193
193
  expect(stageTabs({ ...c, column: 3 }, "Claude")[0].title).toBe("Review · Claude");
194
194
  });
195
+
196
+ test("nearestPane walks a split like tmux", () => {
197
+ const box = (left: number, top: number, right: number, bottom: number) => ({ left, top, right, bottom });
198
+ const b = { a: box(0, 0, 50, 100), b: box(50, 0, 100, 50), c: box(50, 50, 100, 100) };
199
+ expect(nearestPane(b, "b", "d")).toBe("c");
200
+ expect(nearestPane(b, "c", "l")).toBe("a");
201
+ expect(nearestPane(b, "a", "l")).toBeNull();
202
+ expect(nearestPane(b, "a", "u")).toBeNull();
203
+ expect(nearestPane(b, "a", "r")).toBe("b");
204
+ expect(nearestPane(b, "gone", "r")).toBeNull();
205
+ });
@@ -6,6 +6,24 @@
6
6
  import { html } from "./dom.ts";
7
7
  import { age } from "./labels.ts";
8
8
  export type Node = string | { dir: "cols" | "rows"; kids: Node[]; sizes: number[] };
9
+ export type Box = { left: number; top: number; right: number; bottom: number };
10
+ // The pane next to `from` in a direction: it must lie past that edge and share some of the
11
+ // other axis; the closest wins, then the one lined up best.
12
+ export function nearestPane(boxes: Record<string, Box>, from: string, dir: "l" | "r" | "u" | "d"): string | null {
13
+ const a = boxes[from];
14
+ if (!a) return null;
15
+ const across = dir === "l" || dir === "r";
16
+ const gap = (b: Box) => (dir === "l" ? a.left - b.right : dir === "r" ? b.left - a.right : dir === "u" ? a.top - b.bottom : b.top - a.bottom);
17
+ const lap = (b: Box) => (across ? Math.min(a.bottom, b.bottom) - Math.max(a.top, b.top) : Math.min(a.right, b.right) - Math.max(a.left, b.left));
18
+ let best: string | null = null;
19
+ for (const [id, b] of Object.entries(boxes)) {
20
+ if (id === from || gap(b) < -1 || lap(b) <= 0) continue;
21
+ const cur = best && boxes[best];
22
+ if (!cur || gap(b) < gap(cur) - 1 || (Math.abs(gap(b) - gap(cur)) <= 1 && lap(b) > lap(cur))) best = id;
23
+ }
24
+ return best;
25
+ }
26
+
9
27
  export const leaves = (n: Node): string[] => (typeof n === "string" ? [n] : n.kids.flatMap(leaves));
10
28
  // Drops ids no longer open; a split left with one child becomes that child.
11
29
  export function prune(n: Node, keep: (id: string) => boolean): Node | null {
package/web/board.html CHANGED
@@ -481,6 +481,11 @@ aside.wide{width:100%;border-left:0}@media(min-width:901px){aside.wide{width:62%
481
481
  .ftr .strip .attn{color:var(--ink);background:color-mix(in srgb,var(--warn) 18%,transparent);box-shadow:inset 0 0 0 1px var(--warn)}.ftr .strip .attn:hover,.ftr .strip .attn.on{background:color-mix(in srgb,var(--warn) 30%,transparent)}.ftr .strip .attn svg{color:var(--warn)}.ftr .st svg{width:12px;height:12px}
482
482
  .ftr a{color:var(--dim);cursor:pointer;white-space:nowrap;text-decoration:none;display:inline-flex;align-items:center;gap:5px}.ftr a>svg{width:13px;height:13px}.ftr a:hover{color:var(--ink)}
483
483
 
484
+ #keyhint{position:fixed;left:50%;bottom:44px;transform:translateX(-50%);z-index:60;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;width:max-content;max-width:calc(100vw - 32px);padding:9px 14px;font-size:12px;color:var(--ink);background:var(--bg-2);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.35);animation:keyhint .12s ease-out}
485
+ #keyhint span{display:flex;align-items:center;gap:6px;white-space:nowrap}
486
+ #keyhint kbd{padding:2px 6px;font:11px var(--mono);color:var(--ink-hi);border:1px solid var(--line);border-radius:5px}
487
+ @keyframes keyhint{from{opacity:0;transform:translate(-50%,4px)}}
488
+ @media (prefers-reduced-motion:reduce){#keyhint{animation:none}}
484
489
  /* the flat footer under everything: agent usage, refresh; terminal count and phone on the right */
485
490
  @media(min-width:641px){body{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr) auto}.rail{grid-area:1/1}.app{grid-area:1/2}#context{grid-area:1/3}.foot{grid-area:2/1/3/-1}.app{margin-bottom:0}#context{margin-bottom:0}}
486
491
  .foot{display:flex;align-items:center;gap:14px;padding:5px 12px;font-size:12px;color:var(--dim);min-width:0;white-space:nowrap}
@@ -834,7 +839,7 @@ aside .foot .more .menu-pop{left:0;right:auto;top:auto;bottom:calc(100% + 4px)}.
834
839
  .help{position:fixed;inset:0;z-index:12;display:none;align-items:center;justify-content:center;background:color-mix(in srgb,var(--bg) 60%,transparent);backdrop-filter:blur(3px)}
835
840
  .help.on{display:flex}.help div{background:var(--bg-2);border:1px solid var(--line);border-radius:var(--r);padding:24px 28px;box-shadow:var(--shadow-2)}
836
841
  .help p{margin:0 0 16px;color:var(--dim)}.help dl{display:grid;grid-template-columns:auto 1fr;gap:10px 20px;align-items:center;margin:0}.help dt{display:flex;gap:6px;justify-content:flex-end}.help dd{margin:0}
837
- .help kbd{font:12px/1 ui-monospace,monospace;padding:4px 7px;border:1px solid var(--line);border-bottom-width:2px;border-radius:var(--r-s);background:var(--bg);color:var(--ink-hi)}
842
+ .help div{max-height:calc(100vh - 32px);overflow:auto}.help h3{margin:20px 0 8px;font-size:13px;color:var(--ink-hi)}.help p:has(+dl){margin-bottom:12px}.help kbd{font:12px/1 ui-monospace,monospace;padding:4px 7px;border:1px solid var(--line);border-bottom-width:2px;border-radius:var(--r-s);background:var(--bg);color:var(--ink-hi)}
838
843
  /* request sources: cards, status badges, top bar, and add-box */
839
844
  /* the icebox as an inbox: toolbar, filter chips, one row per request, bulk bar */
840
845
  .ice-bar{flex-direction:row;align-items:center;gap:8px;margin:6px 0 0}.ice-bulk+.ice-list,.ice-list{margin-top:0}
@@ -1199,7 +1204,7 @@ html body.wsb:not(.paged) #board{grid-template-columns:repeat(4,minmax(200px,1fr
1199
1204
  <div class="toast" id="toast" role="status"></div>
1200
1205
  <div class="help" id="help"><div>
1201
1206
  <p>Optional. Everything here is also a button.</p>
1202
- <dl><dt><kbd>←↓↑→</kbd><kbd>hjkl</kbd></dt><dd>move between cards</dd><dt><kbd>Enter</kbd></dt><dd>open</dd><dt><kbd>←→</kbd><kbd>hl</kbd></dt><dd>tabs, in an open run</dd><dt><kbd>↑↓</kbd><kbd>jk</kbd></dt><dd>scroll, in an open run</dd><dt><kbd>n</kbd></dt><dd>new idea</dd><dt><kbd>e</kbd></dt><dd>edit</dd><dt><kbd>x</kbd></dt><dd>reject / abandon</dd><dt><kbd>r</kbd></dt><dd>run</dd><dt><kbd>a</kbd></dt><dd>all projects</dd><dt><kbd>Esc</kbd></dt><dd>close</dd><dt><kbd>?</kbd></dt><dd>this list</dd></dl></div></div>
1207
+ <dl><dt><kbd>←↓↑→</kbd><kbd>hjkl</kbd></dt><dd>move between cards</dd><dt><kbd>Enter</kbd></dt><dd>open</dd><dt><kbd>←→</kbd><kbd>hl</kbd></dt><dd>tabs, in an open run</dd><dt><kbd>↑↓</kbd><kbd>jk</kbd></dt><dd>scroll, in an open run</dd><dt><kbd>n</kbd></dt><dd>new idea</dd><dt><kbd>e</kbd></dt><dd>edit</dd><dt><kbd>x</kbd></dt><dd>reject / abandon</dd><dt><kbd>r</kbd></dt><dd>run</dd><dt><kbd>a</kbd></dt><dd>all projects</dd><dt><kbd>Esc</kbd></dt><dd>close</dd><dt><kbd>?</kbd></dt><dd>this list</dd></dl><dl style="margin-top:16px"><dt><kbd>Ctrl</kbd><kbd>Shift</kbd><kbd>Space</kbd></dt><dd>search, also from a terminal</dd></dl><h3>In a workspace</h3><p>Press <kbd>Ctrl</kbd> <kbd>Space</kbd> to focus the current pane, then one key:</p><dl><dt><kbd>←↓↑→</kbd><kbd>hjkl</kbd></dt><dd>move between panes</dd><dt><kbd>1-9</kbd></dt><dd>go to tab</dd><dt><kbd>n</kbd><kbd>p</kbd></dt><dd>next, previous tab</dd><dt><kbd>c</kbd></dt><dd>new tab menu</dd><dt><kbd>r</kbd></dt><dd>split right menu</dd><dt><kbd>d</kbd></dt><dd>split down menu</dd><dt><kbd>x</kbd></dt><dd>close pane</dd><dt><kbd>?</kbd></dt><dd>this list</dd></dl></div></div>
1203
1208
 
1204
1209
  <script>
1205
1210
  // The server writes notifier() from state.ts over the marker: one rule for both UIs.