kaizen-agent 1.64.0 → 1.64.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.
Files changed (62) hide show
  1. package/README.md +10 -10
  2. package/agents/kaizen-planner.md +2 -2
  3. package/cli/backlog.test.ts +1 -1
  4. package/cli/board.test.ts +24 -24
  5. package/cli/dashboard.ts +15 -15
  6. package/cli/install.ts +6 -3
  7. package/cli/notes.test.ts +3 -3
  8. package/cli/notes.ts +1 -1
  9. package/cli/settings.ts +5 -5
  10. package/cli/sources.test.ts +32 -32
  11. package/cli/sources.ts +15 -15
  12. package/cli/state.test.ts +74 -51
  13. package/cli/state.ts +69 -48
  14. package/cli/web.ts +53 -33
  15. package/commands/kaizen-discover.md +1 -1
  16. package/package.json +1 -1
  17. package/skills/kaizen/README.md +2 -2
  18. package/skills/kaizen/SKILL.md +2 -2
  19. package/skills/kaizen/config.default.yml +22 -22
  20. package/skills/kaizen/discover.md +8 -8
  21. package/skills/kaizen/gather.md +2 -2
  22. package/skills/kaizen/spec-plan.md +1 -1
  23. package/skills/kaizen/spec.md +1 -1
  24. package/skills/kaizen-help/SKILL.md +2 -2
  25. package/web/board/api.ts +10 -10
  26. package/web/board/cards.ts +46 -46
  27. package/web/board/icebox.ts +14 -14
  28. package/web/board/keys.ts +3 -3
  29. package/web/board/labels.ts +2 -2
  30. package/web/board/live.ts +3 -3
  31. package/web/board/main.ts +1 -1
  32. package/web/board/markdown.ts +1 -1
  33. package/web/board/panel.ts +17 -17
  34. package/web/board/phone.ts +7 -7
  35. package/web/board/projects.ts +6 -6
  36. package/web/board/run-view.ts +5 -5
  37. package/web/board/search.ts +11 -11
  38. package/web/board/settings-cleanup.ts +42 -0
  39. package/web/board/settings-pages.ts +1 -1
  40. package/web/board/settings.ts +13 -0
  41. package/web/board/store.ts +1 -1
  42. package/web/board/{ideas.ts → tasks.ts} +22 -22
  43. package/web/board/terms.ts +3 -3
  44. package/web/board/views.ts +23 -12
  45. package/web/board/workspace.ts +7 -7
  46. package/web/board/ws-board-ui.ts +1 -1
  47. package/web/board/ws-board.test.ts +1 -1
  48. package/web/board/ws-board.ts +1 -1
  49. package/web/board/ws-tabs.test.ts +2 -2
  50. package/web/board/ws-tabs.ts +2 -2
  51. package/web/board.html +33 -33
  52. package/web/board.js +101 -101
  53. package/web/notebook.js +17 -17
  54. package/web/notebook.ts +5 -5
  55. package/web/notes-lib.ts +2 -2
  56. package/web/notes.html +11 -11
  57. package/web/term-font.test.ts +22 -0
  58. package/web/term-font.ts +30 -0
  59. package/web/term.js +38 -38
  60. package/web/term.ts +13 -2
  61. package/web/video.html +11 -11
  62. package/web/video.js +24 -24
@@ -1,4 +1,4 @@
1
- // The Ideas page (?view=ideas): every idea and run across projects as one table, with
1
+ // The Ideas page (?view=tasks): every idea and run across projects as one table, with
2
2
  // source, project, Open/Running/Done and text filters. A card's source is the icebox
3
3
  // signal it came from (its `idea` text or `run` id); one typed by hand is "Manual".
4
4
  // The data is the rail's (workspace.ts): no fetch of its own.
@@ -13,11 +13,11 @@ import { open } from "./panel.ts";
13
13
  import { refreshBoardBadge } from "./badge.ts";
14
14
  import { cardHref, drawSources, logo, railData, srcIcon, stateOf, titleOf } from "./workspace.ts";
15
15
 
16
- const WORDS = { idle: "Idea", plan: "Planning", build: "Building", review: "Reviewing", wait: "Waiting on you", done: "Done", aband: "Abandoned", stalled: "Stalled" };
16
+ const WORDS = { idle: "Task", plan: "Planning", build: "Building", review: "Reviewing", wait: "Waiting on you", done: "Done", aband: "Abandoned", stalled: "Stalled" };
17
17
  const PLAT = { x: "X", tiktok: "TikTok", instagram: "Instagram", threads: "Threads" };
18
18
  const SEARCH = raw('<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>');
19
19
  const AGENTS = ["claude", "codex", "agy", "opencode", "gemini", "cursor"];
20
- // sort: on Open, ideas first or running first (kept per browser).
20
+ // sort: on Open, tasks first or running first (kept per browser).
21
21
  const f = { src: "all", proj: "", show: "open", q: "", sort: (() => { try { return localStorage.getItem("kz-ideas-sort") || "runs"; } catch { return "runs"; } })() };
22
22
  let go: (v: string, push?: boolean) => void = () => {};
23
23
 
@@ -43,11 +43,11 @@ function sourcesOf(cards, d) {
43
43
  let sel = 0;
44
44
  const pg = pager("ideas");
45
45
  let shownRows: any[] = [];
46
- // Orca's Tasks shape: a toolbar over a list. The search box, the page's filters and New idea
46
+ // Orca's Tasks shape: a toolbar over a list. The search box, the page's filters and New task
47
47
  // live in the shared header elsewhere, so they move in here and go back on leaving.
48
48
  let docked: [Comment, HTMLElement][] = [];
49
49
  function dock() {
50
- if (!$("tk-bar")) $("ideasv").innerHTML = String(html`<div class="tk-bar" id="tk-bar"><div class="tk-row" id="tk-chips"></div><div class="tk-row"><label class="tk-q" id="tk-q">${SEARCH}</label><span id="tk-tools"></span></div></div><div class="tk-list" id="tk-list"></div>`);
50
+ if (!$("tk-bar")) $("tasksv").innerHTML = String(html`<div class="tk-bar" id="tk-bar"><div class="tk-row" id="tk-chips"></div><div class="tk-row"><label class="tk-q" id="tk-q">${SEARCH}</label><span id="tk-tools"></span></div></div><div class="tk-list" id="tk-list"></div>`);
51
51
  if (docked.length) return;
52
52
  for (const [id, to] of [["bq", "tk-q"], ["hx", "tk-tools"], ["newtop", "tk-tools"]]) {
53
53
  const el = $(id),
@@ -62,8 +62,8 @@ function undock() {
62
62
  docked = [];
63
63
  }
64
64
  function draw() {
65
- const box = $("ideasv");
66
- if (!document.body.classList.contains("ideav")) return;
65
+ const box = $("tasksv");
66
+ if (!document.body.classList.contains("taskv")) return;
67
67
  dock();
68
68
  const { cards: all, projects, srcs } = railData();
69
69
  const cards = all.filter((c) => !c.archived);
@@ -74,7 +74,7 @@ function draw() {
74
74
  const dirs = [...new Set(cards.map((c) => c.state))];
75
75
  // "Showing": the same projects-shown set as the Board and the Icebox (store.shown).
76
76
  const shownDirs = dirs.filter((d) => store.shown.has(d));
77
- // The Board's header is the Ideas header too (as on the Icebox): its project picker, its
77
+ // The Board's header is the Tasks header too (as on the Icebox): its project picker, its
78
78
  // Showing list and its search box drive this table.
79
79
  const proj = store.all ? "" : store.S?.dir ?? "";
80
80
  const q = (($("bq") as HTMLInputElement | null)?.value ?? "").trim().toLowerCase();
@@ -82,10 +82,10 @@ function draw() {
82
82
  const matched = cards
83
83
  .filter((c) => f.src === "all" || src.get(c) === f.src)
84
84
  .filter((c) => (proj ? c.state === proj : !shownDirs.length || shownDirs.includes(c.state)))
85
- // Open: ideas not started yet and runs in flight. Running: runs in flight only. Done: finished runs.
85
+ // Open: tasks not started yet and runs in flight. Running: runs in flight only. Done: finished runs.
86
86
  .filter((c) => (f.show === "done" ? fin(c) : f.show === "running" ? c.kind === "run" && !fin(c) : !fin(c)))
87
87
  .filter((c) => !q || (titleOf(c) + " " + nameOf(c.state, projects)).toLowerCase().includes(q))
88
- // On Open, ideas above runs or runs above ideas, as chosen; newest first within each.
88
+ // On Open, tasks above runs or runs above tasks, as chosen; newest first within each.
89
89
  .sort((a, b) => (f.show === "open" ? (a.kind === b.kind ? 0 : (a.kind === "idea") === (f.sort === "ideas") ? -1 : 1) : 0) || (b.moved ?? b.added ?? 0) - (a.moved ?? a.added ?? 0));
90
90
  const rows = pageOf(pg, matched);
91
91
  const now = Date.now();
@@ -101,23 +101,23 @@ function draw() {
101
101
  html`${srcMark(f.src)}<span>${srcName(f.src)}</span>`,
102
102
  html`${srcList.map((u) => html`<button type="button" role="menuitemradio" data-src="${u}" aria-checked="${String(f.src === u)}">${srcMark(u)}<span>${srcName(u)}</span>${ck}</button>`)}`,
103
103
  );
104
- // Ideas' own filters, placed in the shared header after its search box.
104
+ // Tasks' own filters, placed in the shared header after its search box.
105
105
  const sortPop =
106
106
  f.show === "open"
107
107
  ? pop(
108
108
  "ideas-sort",
109
- html`<span>${f.sort === "ideas" ? "Ideas first" : "Running first"}</span>`,
110
- html`${[["ideas", "Ideas first"], ["runs", "Running first"]].map(([v, l]) => html`<button type="button" role="menuitemradio" data-sort="${v}" aria-checked="${String(f.sort === v)}"><span>${l}</span>${ck}</button>`)}`,
109
+ html`<span>${f.sort === "ideas" ? "Tasks first" : "Running first"}</span>`,
110
+ html`${[["ideas", "Tasks first"], ["runs", "Running first"]].map(([v, l]) => html`<button type="button" role="menuitemradio" data-sort="${v}" aria-checked="${String(f.sort === v)}"><span>${l}</span>${ck}</button>`)}`,
111
111
  )
112
112
  : "";
113
- // Scope and filters first; search, refresh and New idea sit at the right (CSS order).
113
+ // Scope and filters first; search, refresh and New task sit at the right (CSS order).
114
114
  const chips = html`${seg("open", "Open")}${seg("running", "Running")}${seg("done", "Done")}`;
115
115
  const extra = html`${sources}${sortPop}<button class="ib" id="ideas-ref" title="Refresh" aria-label="Refresh">${ico("refresh")}</button>`;
116
116
  const table = !rows.length ? html`<div class="tk-empty">${raw('<svg><use href="#r-bulb"/></svg>')}<p>Nothing matches.</p><span>Try a different search or filter.</span></div>` : html`<table class="itable"><thead><tr><th></th><th>Title / context</th><th>Status</th><th>Updated</th><th></th></tr></thead><tbody>${rows.map((c, i) => {
117
117
  const name = nameOf(c.state, projects),
118
118
  st = stateOf(c),
119
119
  agent = (c.tags ?? []).find((t) => AGENTS.includes(t));
120
- return html`<tr><td>${logo(c.state, name, projects)}</td><td><b>${titleOf(c)}</b><div class="ctx">${name}${agent ? html`<span class="tag">${NAMES[agent]}</span>` : ""}</div></td><td><span class="stc"><span class="si ${st}"></span>${WORDS[st]}</span></td><td class="d">${c.moved || c.added ? age(c.moved || c.added, now) + " ago" : ""}</td><td><div class="acts">${asking === key(c) ? html`<span class="q">Delete?</span><button class="btn ghost" data-keep="1">Keep</button><button class="btn danger" data-yes="${i}">Delete</button>` : html`${c.kind === "idea" ? html`<button class="del" data-i="${i}" title="Delete idea" aria-label="Delete idea">${ico("trash")}</button>` : ""}<button class="go" data-i="${i}">${c.kind === "idea" ? "Start" : "Open"} ${ico("arrow")}</button>`}</div></td></tr>`;
120
+ return html`<tr><td>${logo(c.state, name, projects)}</td><td><b>${titleOf(c)}</b><div class="ctx">${name}${agent ? html`<span class="tag">${NAMES[agent]}</span>` : ""}</div></td><td><span class="stc"><span class="si ${st}"></span>${WORDS[st]}</span></td><td class="d">${c.moved || c.added ? age(c.moved || c.added, now) + " ago" : ""}</td><td><div class="acts">${asking === key(c) ? html`<span class="q">Delete?</span><button class="btn ghost" data-keep="1">Keep</button><button class="btn danger" data-yes="${i}">Delete</button>` : html`${c.kind === "idea" ? html`<button class="del" data-i="${i}" title="Delete task" aria-label="Delete task">${ico("trash")}</button>` : ""}<button class="go" data-i="${i}">${c.kind === "idea" ? "Start" : "Open"} ${ico("arrow")}</button>`}</div></td></tr>`;
121
121
  })}</tbody></table>`;
122
122
  const hx = $("hx");
123
123
  // Not while a pop-up in it is open: redrawing would close it under the pointer.
@@ -164,7 +164,7 @@ function act(c) {
164
164
  runPopup(here);
165
165
  }
166
166
 
167
- // An idea is deleted as the board's card menu does it, not recorded anywhere.
167
+ // A task is deleted as the board's card menu does it, not recorded anywhere.
168
168
  let asking: string | null = null;
169
169
  async function del(c) {
170
170
  asking = null;
@@ -183,12 +183,12 @@ function detail(c) {
183
183
  }
184
184
 
185
185
  function mark() {
186
- const trs = [...document.querySelectorAll<HTMLElement>("#ideasv tbody tr")];
186
+ const trs = [...document.querySelectorAll<HTMLElement>("#tasksv tbody tr")];
187
187
  trs.forEach((tr, i) => tr.classList.toggle("kb", i === sel));
188
188
  trs[sel]?.scrollIntoView({ block: "nearest" });
189
189
  }
190
190
  addEventListener("keydown", (e) => {
191
- if (!document.body.classList.contains("ideav") || !shownRows.length) return;
191
+ if (!document.body.classList.contains("taskv") || !shownRows.length) return;
192
192
  const t = e.target as HTMLElement;
193
193
  // From the search box, or anywhere on the page that is not another field or a menu.
194
194
  if (t.id !== "bq" && (t.closest("input,textarea,select,[contenteditable],details,dialog") || t.isContentEditable)) return;
@@ -201,13 +201,13 @@ addEventListener("keydown", (e) => {
201
201
  act(shownRows[sel]);
202
202
  }
203
203
  });
204
- export function openIdeas() {
205
- $("bq").placeholder = "Search ideas (press /)";
204
+ export function openTasks() {
205
+ $("bq").placeholder = "Search tasks (press /)";
206
206
  addEventListener("kz-view", () => (undock(), ($("bq").placeholder = "Filter cards (press /)")), { once: true });
207
207
  void drawSources(true);
208
208
  draw();
209
209
  }
210
- export function initIdeas(goTo: typeof go) {
210
+ export function initTasks(goTo: typeof go) {
211
211
  go = goTo;
212
212
  addEventListener("kz-rail", draw);
213
213
  // The shared header's search box, project picker and Showing list.
@@ -216,7 +216,7 @@ export function initIdeas(goTo: typeof go) {
216
216
  $("shows")?.addEventListener("click", () => queueMicrotask(draw));
217
217
  }
218
218
 
219
- // A click outside the Ideas header's pop-ups closes them.
219
+ // A click outside the Tasks header's pop-ups closes them.
220
220
  addEventListener(
221
221
  "pointerdown",
222
222
  (e) => {
@@ -5,7 +5,7 @@ import { termLoad } from "./agent-term.ts";
5
5
  import { open } from "./panel.ts";
6
6
  import { resume } from "./approvals.ts";
7
7
 
8
- // ---- the Terminal page: every in-card agent session the board knows, Ideas to Done, tiled.
8
+ // ---- the Terminal page: every in-card agent session the board knows, Tasks to Done, tiled.
9
9
  // A tile is one more kzTerm mount on /pty beside the card panel's (attachPty takes many
10
10
  // listeners). Mounts outlive redraws: a /state tick moves tiles around, it never reconnects.
11
11
  // Layout is per browser in kz-terms: tile order, hidden tiles, the maximised one, and the
@@ -178,7 +178,7 @@ export function openTerms() {
178
178
  grid.querySelectorAll(".tsplit").forEach((s) => s.remove());
179
179
  grid.insertAdjacentHTML(
180
180
  "beforeend",
181
- html`<div class="empty tempty"><div class="mascot"></div><b>${hid.length ? "Every terminal is hidden" : "No terminals running"}</b><p>Runs with an agent open in kaizen show here, from Ideas to Done.</p></div>`.s,
181
+ html`<div class="empty tempty"><div class="mascot"></div><b>${hid.length ? "Every terminal is hidden" : "No terminals running"}</b><p>Runs with an agent open in kaizen show here, from Tasks to Done.</p></div>`.s,
182
182
  );
183
183
  return;
184
184
  }
@@ -201,7 +201,7 @@ export function openTerms() {
201
201
  off = st === "ended";
202
202
  const hd = t.el.querySelector("header")!;
203
203
  hd.title = (c.kind === "run" ? c.id : c.text) + " · " + c.where + (i < 9 ? ` · Alt+${i + 1}` : "");
204
- // An ended run can be resumed from here; an idea whose agent ended has no run to resume.
204
+ // An ended run can be resumed from here; a task whose agent ended has no run to resume.
205
205
  hd.innerHTML = html`<span class="tdot ${st}" role="img" title="${st}" aria-label="${st}"></span><b>${nameOf(c)} - ${projOf(c)}</b>${off ? html`<span class="tend">ended</span>` : ""}<span class="sp"></span>${off && c.kind === "run" ? html`<button class="btn sm" data-a="resume" title="Continue this run's agent">Resume</button>` : ""}${c.kind === "shell" ? "" : html`<button class="ib sm" data-a="card" title="Open card" aria-label="Open card">${ico("open")}</button>`}<button class="ib sm" data-a="max" title="${lay.max === k ? "Restore" : "Maximise"} (Ctrl+Shift+M)" aria-label="${lay.max === k ? "Restore" : "Maximise"}">${ico(lay.max === k ? "min" : "max")}</button>${off ? "" : html`<button class="ib sm" data-a="hide" title="Hide" aria-label="Hide">${ico("dash")}</button>`}<button class="ib sm" data-a="${off ? "hide" : "exit"}" title="${off ? "Close" : "Exit session"}" aria-label="${off ? "Close" : "Exit session"}">${ico("close")}</button>`.s;
206
206
  t.el.classList.toggle("ended", off);
207
207
  t.el.classList.toggle("asking", st === "asking");
@@ -5,24 +5,25 @@ import { close } from "./panel.ts";
5
5
  import { openSettings } from "./settings.ts";
6
6
  import { openTerms, termsStop } from "./terms.ts";
7
7
  import { openHome } from "./home.ts";
8
- import { initIdeas, openIdeas } from "./ideas.ts";
8
+ import { initTasks, openTasks } from "./tasks.ts";
9
9
  import { initRunView, openWorkspace, runStop, showRunView } from "./run-view.ts";
10
10
  import { initPhone, isPhone, openPhone } from "./phone.ts";
11
11
 
12
12
  // ---- views: Home (the chat, at /), the board, Settings and the Icebox as pages in the docked panel, or the Terminal page; each with its own address
13
13
  export let view = "board";
14
+ let boardBack = false;
14
15
  // The board's own area, not the docked panel.
15
- const AREA = ["board", "terminal", "home", "ideas", "run", "chat", "device"];
16
+ const AREA = ["board", "terminal", "home", "tasks", "run", "chat", "device"];
16
17
  export const markView = (v) => {
17
18
  // A phone's run workspace belongs to its Runs tab.
18
19
  const lit = v === "run" && isPhone() ? "device" : v;
19
20
  document
20
- .querySelectorAll(".rail a.it")
21
+ .querySelectorAll(".rail a[data-view]")
21
22
  .forEach((a) =>
22
23
  a.dataset.view === lit ? a.setAttribute("aria-current", "page") : a.removeAttribute("aria-current"),
23
24
  );
24
25
  // The Icebox is titled in the header, top left, like the board.
25
- document.querySelector(".hdr h1").textContent = v === "sources" ? "Icebox" : v === "ideas" ? "Ideas" : v === "run" ? "Run" : v === "terminal" ? "Terminal" : v === "home" ? (isPhone() ? "kaizen" : "Home") : v === "chat" ? "Chat" : v === "device" ? "Runs" : "Board";
26
+ document.querySelector(".hdr h1").textContent = v === "sources" ? "Icebox" : v === "tasks" ? "Tasks" : v === "run" ? "Run" : v === "terminal" ? "Terminal" : v === "home" ? (isPhone() ? "kaizen" : "Home") : v === "chat" ? "Chat" : v === "device" ? "Runs" : "Board";
26
27
  if (v === "home" && isPhone()) document.querySelector(".hdr h1").innerHTML = '<pre class="mark" role="img" aria-label="kaizen">' + document.querySelector(".rail pre.mark").innerHTML + "</pre>";
27
28
  };
28
29
  export function go(v, push) {
@@ -30,10 +31,10 @@ export function go(v, push) {
30
31
  if (v === "icebox") v = "sources";
31
32
  // A workspace address shows in the run view, which resolves it to a card.
32
33
  if (v === "ws") v = "run";
33
- if (!["settings", "sources", "terminal", "board", "ideas", "run", "chat", "device"].includes(v)) v = "home";
34
- // A phone has Home, Chat, Runs and Settings: the board, Ideas and the Icebox are set up on a computer,
34
+ if (!["settings", "sources", "terminal", "board", "tasks", "run", "chat", "device"].includes(v)) v = "home";
35
+ // A phone has Home, Chat, Runs and Settings: the board, Tasks and the Icebox are set up on a computer,
35
36
  // whose Home is the chat.
36
- if (isPhone() ? ["board", "ideas", "sources"].includes(v) : v === "chat" || v === "device") v = "home";
37
+ if (isPhone() ? ["board", "tasks", "sources"].includes(v) : v === "chat" || v === "device") v = "home";
37
38
  const was = view;
38
39
  view = v;
39
40
  markView(v);
@@ -45,7 +46,7 @@ export function go(v, push) {
45
46
  document.body.classList.toggle("homev", (v === "home" && !ph) || v === "chat");
46
47
  document.body.classList.toggle("phomev", ph || v === "device");
47
48
  document.body.classList.toggle("pdevv", v === "device");
48
- document.body.classList.toggle("ideav", v === "ideas");
49
+ document.body.classList.toggle("taskv", v === "tasks");
49
50
  document.body.classList.toggle("runv", v === "run");
50
51
  // Leaving a workspace: its panel closes as the board's would, its terminals unmount.
51
52
  if (was === "run" && v !== "run") {
@@ -63,13 +64,13 @@ export function go(v, push) {
63
64
  else termsStop();
64
65
  if ((v === "home" && !ph) || v === "chat") openHome();
65
66
  openPhone(ph ? "home" : v === "device" ? "device" : null);
66
- if (v === "ideas") openIdeas();
67
+ if (v === "tasks") openTasks();
67
68
  // After the panel handling below, which closes the board's panel on the way in.
68
69
  if (v === "run") queueMicrotask(() => void showRunView(true));
69
70
  // The Terminal page is the board's own area, not the docked panel: the panel closes as on the board.
70
71
  if (AREA.includes(v)) {
71
72
  if (AREA.includes(was)) {
72
- if (v !== "board" && (was === "board" || was === "ideas")) {
73
+ if (v !== "board" && (was === "board" || was === "tasks")) {
73
74
  view = "board";
74
75
  close();
75
76
  view = v;
@@ -92,7 +93,7 @@ export function go(v, push) {
92
93
  }
93
94
 
94
95
  export function initViews() {
95
- initIdeas(go);
96
+ initTasks(go);
96
97
  initRunView();
97
98
  initPhone(go, openWorkspace);
98
99
  document.querySelectorAll(".rail a[data-view]").forEach((a) => {
@@ -104,7 +105,17 @@ export function initViews() {
104
105
  store.setQ = "";
105
106
  store.setBack = view !== "settings";
106
107
  }
107
- vt(() => go(a.dataset.view, true));
108
+ // Board is a toggle: a second click goes back to where the first one came from.
109
+ if (a.dataset.view === "board" && view === "board") {
110
+ const back = boardBack;
111
+ boardBack = false;
112
+ return void (back ? history.back() : vt(() => go("home", true)));
113
+ }
114
+ const opening = a.dataset.view === "board";
115
+ vt(() => {
116
+ go(a.dataset.view, true);
117
+ boardBack = opening;
118
+ });
108
119
  };
109
120
  });
110
121
  document.querySelector(".rail .home").onclick = (e) => {
@@ -1,5 +1,5 @@
1
1
  // The side menu's live parts on every page (board, notebook, video): the Icebox count,
2
- // the Ideas entry's source icons and the Projects list; and the board's flat footer
2
+ // the Tasks entry's source icons and the Projects list; and the board's flat footer
3
3
  // (agent usage, terminal count, phone). Stands alone, so the notebook and video
4
4
  // bundles can carry it without the board.
5
5
  import { onBoardCards } from "./badge.ts";
@@ -15,7 +15,7 @@ const DAY = 864e5;
15
15
  const STAGE = ["idea", "planning", "building", "reviewing", "done"];
16
16
  // A card's state icon (.si) and the word under its title.
17
17
  export function stateOf(c) {
18
- // An idea whose agent is working is a run being born: show it as planning.
18
+ // A task whose agent is working is a run being born: show it as planning.
19
19
  if (c.kind === "idea") return !c.pty?.alive ? "idle" : c.pty.asking ? "wait" : c.pty.busy ? "plan" : "idle";
20
20
  if (c.status === "waiting" || (c.pty?.alive && c.pty.asking)) return "wait";
21
21
  if (c.status === "done") return c.accept === "needs" || gitDue(c) ? "wait" : "done";
@@ -36,8 +36,8 @@ export function subline(c, now) {
36
36
  return `${STAGE[c.column] ?? c.status} · ${age(t, now)}`;
37
37
  }
38
38
  export const titleOf = (c) => (c.title || c.text || "").split("\n")[0];
39
- // Shown in the list: runs not archived, a finished one only for a day. Ideas not started yet
40
- // live on the Ideas page; one whose agent is starting (it has a terminal) shows here.
39
+ // Shown in the list: runs not archived, a finished one only for a day. Tasks not started yet
40
+ // live on the Tasks page; one whose agent is starting (it has a terminal) shows here.
41
41
  export const listed = (c, now) =>
42
42
  !c.archived && (c.kind === "idea" ? !!c.pty : !["done", "abandoned"].includes(c.status) || now - (c.moved ?? 0) < DAY);
43
43
  export const projName = (dir, projects) => {
@@ -50,7 +50,7 @@ export const logo = (dir, name, projects) => {
50
50
  ? html`<img class="plogo" src="/project-logo?dir=${encodeURIComponent(dir)}" alt="" loading="lazy" onerror="this.outerHTML=this.dataset.f" data-f="${String(ini)}">`
51
51
  : ini;
52
52
  };
53
- // A card's address: its run workspace (?view=run&dir=&id=, or &idea= for an idea).
53
+ // A card's address: its run workspace (?view=run&dir=&id=, or &idea= for a task).
54
54
  export const cardHref = (c) =>
55
55
  `/?view=run&dir=${encodeURIComponent(c.state)}&` + (c.kind === "run" ? "id=" + encodeURIComponent(c.id) : "idea=" + encodeURIComponent(c.text));
56
56
 
@@ -185,7 +185,7 @@ const foldAll = (shut: boolean) => {
185
185
  drawList();
186
186
  };
187
187
  // A card's workspace row: its own (a run's worktree) when the project lists it, else the
188
- // main checkout's, so a run whose worktree is gone, an idea or an old run never vanishes.
188
+ // main checkout's, so a run whose worktree is gone, a task or an old run never vanishes.
189
189
  export function wsOfCard(c, projects = last.projects) {
190
190
  const ws = projects?.find((p) => p.dir === c.state)?.workspaces ?? [];
191
191
  return ws.find((w) => w.path === c.ws)?.path ?? ws.find((w) => w.main)?.path ?? c.ws ?? "";
@@ -295,7 +295,7 @@ addEventListener("popstate", markCurrent);
295
295
  // The pages that can open a card in place (the board) answer this event and cancel it.
296
296
  const ask = (name, detail) => !dispatchEvent(new CustomEvent(name, { cancelable: true, detail }));
297
297
 
298
- // What the Ideas page reads too: the cards, and /sources (sources plus every icebox signal).
298
+ // What the Tasks page reads too: the cards, and /sources (sources plus every icebox signal).
299
299
  let srcs: any = null;
300
300
  export const railData = () => ({ ...last, srcs });
301
301
  const told = () => dispatchEvent(new Event("kz-rail"));
@@ -80,7 +80,7 @@ export function drawWsBoard(inScope: (dir: string) => boolean) {
80
80
  if (col !== 2 && !inScope(dir)) continue;
81
81
  if (q && col !== 2 && !`${wsLabel(w)} ${name} ${cs.map(titleOf).join(" ")}`.toLowerCase().includes(q)) continue;
82
82
  const lead = [...open].sort((x, y) => RANK[stateOf(x)] - RANK[stateOf(y)])[0] ?? last;
83
- // An idea whose agent asks adds the waiting dot; its column never changes.
83
+ // A task whose agent asks adds the waiting dot; its column never changes.
84
84
  const asks = cs.some((c) => c.kind === "idea" && stateOf(c) === "wait");
85
85
  const st = asks ? "wait" : lead ? stateOf(lead) : "idle";
86
86
  cols[col].push(
@@ -13,7 +13,7 @@ const stateOf = (c) =>
13
13
  : c.column >= 3 ? "review" : c.column === 2 ? "build" : "plan";
14
14
  const col = (cs: any[], ws = "/p") => columnOf(cs, D, ws, wsOf, stateOf).col;
15
15
 
16
- test("no runs, only ideas, an asking idea: Todo", () => {
16
+ test("no runs, only tasks, an asking idea: Todo", () => {
17
17
  expect(col([])).toBe(0);
18
18
  expect(col([{ kind: "idea", state: D, text: "t", ws: "/p" }])).toBe(0);
19
19
  expect(col([{ kind: "idea", state: D, text: "t", ws: "/p", pty: { alive: true, asking: true } }])).toBe(0);
@@ -3,7 +3,7 @@
3
3
  import { finished } from "./ws-tabs.ts";
4
4
 
5
5
  export const WS_COLS = ["Todo", "In progress", "In review", "Done"];
6
- // A workspace's column from its runs (ideas never move it). Archived runs still count as
6
+ // A workspace's column from its runs (tasks never move it). Archived runs still count as
7
7
  // finished ones, so a workspace whose newest run is done stays Done until a new run starts.
8
8
  // Returns the open runs (not finished, not archived) and the newest finished run, for the card.
9
9
  export function columnOf(cards: any[], dir: string, ws: string, wsOfCard, stateOf) {
@@ -15,7 +15,7 @@ const cards = [
15
15
  { kind: "idea", state: "/p/.kaizen", text: "no agent", ws: "/p" },
16
16
  ];
17
17
 
18
- test("live runs get terminals; an idea only with its agent; a run waiting on approval stays", () => {
18
+ test("live runs get terminals; a task only with its agent; a run waiting on approval stays", () => {
19
19
  expect(liveIn(cards, "/p/.kaizen", "/p", wsOf).map((c) => c.id ?? c.text)).toEqual(["a", "b", "e", "t"]);
20
20
  expect(liveIn(cards, "/p/.kaizen", "/p/.kaizen/wt/x", wsOf).map((c) => c.id)).toEqual(["f"]);
21
21
  expect(finished(cards[4])).toBe(false);
@@ -84,7 +84,7 @@ test("toOpen: a run that moves into review or done opens the Browser once; other
84
84
  expect(toOpen(cs, new Set(), ["c"], key).map(key)).toEqual(["b"]); // c already opened once
85
85
  });
86
86
 
87
- test("pickable: waiting first, then newest; done+approved, abandoned, archived and ideas are not listed", () => {
87
+ test("pickable: waiting first, then newest; done+approved, abandoned, archived and tasks are not listed", () => {
88
88
  const cs = [run("old", "building", { moved: 1 }), run("new", "building", { moved: 9 }), run("w", "waiting", { moved: 2 }), run("e", "done", { accept: "needs", moved: 3 }), ...cards.slice(2, 4), cards[6], cards[7], cards[5]];
89
89
  expect(pickable(cs, "/p/.kaizen", "/p", wsOf).map((c) => c.id)).toEqual(["e", "w", "new", "old"]);
90
90
  expect(pickable(cs, "/p/.kaizen", "/p/.kaizen/wt/x", wsOf).map((c) => c.id)).toEqual(["f"]);
@@ -48,7 +48,7 @@ export const dueWord = (c) => (c.gitDue === "push" ? "push" : "commit");
48
48
  // A run that is over: abandoned, or done and neither waiting on an approval nor on its commit. It is History.
49
49
  export const finished = (c) => c.kind === "run" && (c.status === "abandoned" || (c.status === "done" && c.accept !== "needs" && !gitDue(c)));
50
50
  const here = (c, dir: string, ws: string, wsOfCard) => c.state === dir && wsOfCard(c) === ws;
51
- // The cards whose agent terminals get tabs in a workspace: runs not over, and ideas whose agent is open.
51
+ // The cards whose agent terminals get tabs in a workspace: runs not over, and tasks whose agent is open.
52
52
  export const liveIn = (cards: any[], dir: string, ws: string, wsOfCard) =>
53
53
  cards.filter((c) => !c.archived && here(c, dir, ws, wsOfCard) && (c.kind === "idea" ? !!c.pty : c.kind === "run" && !finished(c)));
54
54
  // History: the workspace's finished runs, newest first.
@@ -98,7 +98,7 @@ export const chosen = (live: any[], hist: any[], picked?: string | null, keyOf:
98
98
  export const newRun = (live: any[], seen: Set<string>, keyOf: (c) => string = (c) => c.id) => live.find((c) => !seen.has(keyOf(c)));
99
99
 
100
100
  // The terminal the board launched for each stage of a run: plan/impl/review sub-tab -> pty key.
101
- // plan, impl and review are recorded when the board launches them (the idea's agent once its run
101
+ // plan, impl and review are recorded when the board launches them (the task's agent once its run
102
102
  // exists, /decide, /fix). A plan that was not recorded falls back to the session no stage claims,
103
103
  // and only until a later stage has been launched.
104
104
  export function stageKeys(c): Record<string, string> {
package/web/board.html CHANGED
@@ -92,16 +92,17 @@ svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6;stroke
92
92
  body .rail a.upd::after{left:calc(50% + 6px);top:4px}body .toast{left:16px;bottom:calc(68px + env(safe-area-inset-bottom))}}
93
93
  .rail a.it[data-n]{position:relative}.rail a.it[data-n]::after{content:attr(data-n);position:absolute;left:24px;top:3px;min-width:16px;height:16px;padding:0 4px;box-sizing:border-box;border-radius:8px;background:var(--dim);color:var(--bg);font:600 10px/16px var(--font);text-align:center;box-shadow:0 0 0 2px var(--bg)}
94
94
  @media(max-width:640px){body .rail a.it[data-n]::after{left:calc(50% + 4px);top:2px}}
95
- .rail a.it:is([data-view=board],[data-view=ideas])[data-n]::after{left:auto;right:8px;top:6px;background:var(--warn)}
96
- [data-rail=min] .rail a.it:is([data-view=board],[data-view=ideas])[data-n]::after{left:24px;right:auto;top:3px}
97
- @media(max-width:640px){[data-rail=min] .rail a.it:is([data-view=board],[data-view=ideas])[data-n]::after{left:calc(50% + 4px);top:2px}}
98
- /* the rail's Projects list: ideas and runs grouped by project, each with its state icon */
95
+ .rail a.it:is([data-view=board],[data-view=tasks])[data-n]::after{left:auto;right:8px;top:6px;background:var(--warn)}
96
+ [data-rail=min] .rail a.it:is([data-view=board],[data-view=tasks])[data-n]::after{left:24px;right:auto;top:3px}
97
+ @media(max-width:640px){[data-rail=min] .rail a.it:is([data-view=board],[data-view=tasks])[data-n]::after{left:calc(50% + 4px);top:2px}}
98
+ /* the rail's Projects list: tasks and runs grouped by project, each with its state icon */
99
99
  .rail a.it .n{margin-left:auto;font-size:var(--fs-xs);font-weight:400;color:var(--dim)}
100
100
  .rail a.it .srcs+.n{margin-left:8px}.rail a.it .srcs{margin-left:auto;display:flex;gap:4px;opacity:.75}.rail a.it .srcs svg,.rail a.it .srcs img{width:13px;height:13px}
101
101
  .rail a.it,.rail .theme,.rail .theme button{border-radius:4px}
102
102
  .rail .psec{display:flex;align-items:center;gap:2px;margin:14px 0 2px;padding-left:var(--padx);font-size:var(--fs-xs);font-weight:600;color:var(--dim)}.rail .psec .lbl{flex:1}
103
103
  .rail .psec button,.rail .rib{width:var(--btn-xs);height:var(--btn-xs);display:grid;place-items:center;flex:none;border-radius:4px;color:var(--dim)}.rail .psec button:hover,.rail .rib:hover{background:var(--hover);color:var(--ink)}.rail .psec button svg,.rail .rib svg{width:var(--ico);height:var(--ico)}
104
104
  .rail .psec button[aria-pressed=true]{color:var(--accent)}.rail .psec button{position:relative}.rail .psec button[aria-pressed=true]::after{content:"";position:absolute;right:3px;top:3px;width:6px;height:6px;border-radius:50%;background:var(--accent)}
105
+ .rail .psec a.pbd{width:var(--btn-xs);height:var(--btn-xs);display:grid;place-items:center;flex:none;border-radius:4px;color:var(--dim)}.rail .psec a.pbd:hover{background:var(--hover);color:var(--ink)}.rail .psec a.pbd[aria-current=page]{color:var(--accent)}
105
106
  .pfpop{position:fixed;z-index:40;min-width:220px;max-width:280px;max-height:60vh;overflow:auto;padding:6px;display:flex;flex-direction:column;gap:1px;background:var(--bg-2);color:var(--ink);border:1px solid var(--line);border-radius:4px;box-shadow:var(--shadow-2);font-size:12.5px}
106
107
  .pfpop .sel{margin:2px 2px 6px;padding:5px 8px;border-radius:4px}.pfrow{display:flex;align-items:center;gap:8px;padding:5px 8px;border-radius:4px;cursor:pointer;white-space:nowrap}.pfrow:hover{background:var(--hover)}.pfrow input{accent-color:var(--accent);margin:0}.pfrow .plogo{width:16px;height:16px;font-size:9px;border-radius:4px;display:inline-grid;place-items:center;flex:none;font-weight:600;color:var(--dim);background:var(--hover)}.pfrow img.plogo{background:none}
107
108
  .pfall{display:flex;align-items:center;gap:2px}.pfall .pfrow{flex:1;min-width:0}.pfb{all:unset;display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:4px;cursor:pointer;color:var(--dim)}.pfb:hover{background:var(--hover);color:var(--ink)}.pfb:focus-visible{outline:2px solid var(--accent)}
@@ -135,12 +136,12 @@ body .rail a.upd::after{left:calc(50% + 6px);top:4px}body .toast{left:16px;botto
135
136
  [data-rail=min] .rail a.it .n,[data-rail=min] .rail a.it .srcs,[data-rail=min] .rail .rib:not(.th),[data-rail=min] .plist .proj :not(.plogo),[data-rail=min] .plist .row div,[data-rail=min] .plist .wcount{display:none}
136
137
  [data-rail=min] .rail .psec{padding:0;margin:12px 0 2px;flex-direction:column}[data-rail=min] .rail .rbot{flex-direction:column}
137
138
  [data-rail=min] .plist .proj{justify-content:center;margin:10px 0 4px;padding:0}[data-rail=min] .plist .row{grid-template-columns:14px;justify-content:center;padding:0}
138
- @media(max-width:640px){.rail .psec,.rail .plist,.rail .rib{display:none}.rail .rbot,[data-rail=min] .rail .rbot{display:contents}.rail a.it[data-view=ideas]{order:3}.rail a.it[data-view=board]{order:4}.rail a.it .n,.rail a.it .srcs{display:none}}
139
- /* phones: Home, Chat, Runs, Settings. The board, Ideas and the Icebox are set up on a computer (web/board/phone.ts) */
139
+ @media(max-width:640px){.rail .psec,.rail .plist,.rail .rib{display:none}.rail .rbot,[data-rail=min] .rail .rbot{display:contents}.rail a.it[data-view=tasks]{order:3}.rail a.it[data-view=board]{order:4}.rail a.it .n,.rail a.it .srcs{display:none}}
140
+ /* phones: Home, Chat, Runs, Settings. The board, Tasks and the Icebox are set up on a computer (web/board/phone.ts) */
140
141
  @media(min-width:641px){.rail .rbot .lbl{display:none}.rail .rbot a.it{flex:none;width:var(--btn-xs);height:var(--btn-xs);padding:0;justify-content:center;margin-right:auto}[data-rail=min] .rail .rbot a.it{width:var(--btn-s);height:var(--btn-s);margin-right:0}}
141
142
  .rail a.it.ponly,#phome{display:none}
142
143
  @media(max-width:640px){
143
- .rail a.it:is([data-view=board],[data-view=ideas],[data-view=sources]),#foot,#ctx-open,body .rail .rbot .rib{display:none!important}
144
+ .rail a.it:is([data-view=board],[data-view=tasks],[data-view=sources]),#foot,#ctx-open,body .rail .rbot .rib{display:none!important}
144
145
  .rail a.it.ponly{display:flex}
145
146
  .rail a.it[data-view=home]{order:1}.rail a.it[data-view=chat]{order:2}.rail a.it[data-view=device]{order:3}.rail a.it[data-view=settings]{order:4}
146
147
  .rail,[data-rail=min] .rail{padding:8px 8px max(2px,calc(env(safe-area-inset-bottom) - 8px));border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
@@ -270,7 +271,7 @@ section h2{margin:0;font-size:13px;color:var(--ink);font-weight:500;display:flex
270
271
  section h2 i{font-style:normal;font-weight:400;font-size:12px;color:var(--dim)}
271
272
  section h2 i:empty{display:none}
272
273
  section h2 .ib{margin-left:auto}
273
- /* Ideas column: its title is two icon tabs, Ideas | Backlog; on Backlog a severity filter icon */
274
+ /* Tasks column: its title is two icon tabs, Tasks | Backlog; on Backlog a severity filter icon */
274
275
  .itabs{display:flex;align-items:center;gap:2px}
275
276
  .itabs [role=tab]{min-height:26px;padding:0 8px;border:0;border-radius:13px;background:none;color:var(--dim);font:inherit;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;gap:5px}
276
277
  .itabs [role=tab] svg{width:14px;height:14px;stroke-width:1.7}
@@ -509,17 +510,17 @@ aside.wide{width:100%;border-left:0}@media(min-width:901px){aside.wide{width:62%
509
510
  @media(max-width:640px){.foot{order:1;gap:10px;padding:4px 10px;border-top:1px solid var(--line)}.foot .umtr,.foot .wk,.foot .ptxt{display:none}}
510
511
  @media(max-width:640px){.foot #res{display:none}}
511
512
 
512
- /* the Ideas page: source chips and project, then Open/Running/Done, search and the table */
513
- #ideasv{display:none}
514
- body.ideav #ideasv{flex:1;min-height:0;display:flex;flex-direction:column;gap:0;padding:6px 32px 20px}body #ideasv .hdr.ihdr{display:flex}#hx .iseg{display:flex;gap:4px}#hx .pill{display:flex;gap:6px;align-items:center;padding:4px 10px;font-size:12px;border-radius:4px;border:1px solid var(--line);color:var(--dim);background:none;cursor:pointer;white-space:nowrap}#hx .pill:hover{color:var(--ink)}#hx .pill.on{background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 55%,transparent)}#hx .ipop>summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer}#hx .ipop>summary::-webkit-details-marker{display:none}#hx .ipop>summary::after{content:"";width:0;height:0;border:4px solid transparent;border-top:5px solid currentColor;margin:4px 0 0 2px}#hx .ipop>summary svg,#hx .ipop>summary img{width:15px;height:15px}#hx .ipop .menu-pop{position:absolute;padding:6px;display:flex;flex-direction:column;gap:1px;max-height:360px;overflow:auto;width:280px}#hx .ipop button{padding:6px 8px;border-radius:4px;background:none;border:0;color:var(--dim);text-align:left;cursor:pointer;font:inherit}#hx .ipop button:hover{background:var(--hover);color:var(--ink)}#hx .ipop button svg:not(.ck),#hx .ipop button img{width:15px;height:15px}#hx .ipop .ck{width:14px;height:14px;color:var(--accent);visibility:hidden;margin-left:auto}#hx .ipop [aria-checked=true]{color:var(--ink);font-weight:500}#hx .ipop [aria-checked=true] .ck{visibility:visible}#hx .ipop .pop-ft{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:4px;padding:6px 4px 0;font-size:12px;color:var(--dim)}#hx .ipop .pop-ft button{color:var(--accent);padding:2px 6px}#ideasv .ihdr .pill{padding:4px 10px;font-size:12px}#ideasv .ibox{padding:0}#ideasv .itable{border-left:0;margin-left:0}#ideasv .itable th:first-child,#ideasv .itable td:first-child{padding-left:28px}#ideasv .itable th:last-child,#ideasv .itable td:last-child{padding-right:16px}
515
- #ideasv .ibar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
516
- #ideasv .pill{display:flex;gap:6px;align-items:center;padding:5px 11px;border-radius:4px;border:1px solid var(--line);color:var(--dim);white-space:nowrap}#ideasv .pill:hover{color:var(--ink)}#ideasv .pill.on{background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 55%,transparent)}
517
- #ideasv .pill svg,#ideasv .pill img{width:15px;height:15px}#ideasv .pill .fav{display:contents}
518
- #ideasv .ibox{flex:1;min-height:0;display:flex;flex-direction:column}#ideasv .ibox>.ibar{padding:0 0 10px}
519
- #ideasv #ideas-q{flex:0 1 240px;min-width:140px;border-radius:4px;padding:6px 10px;font-family:var(--mono);font-size:12px}
520
- #ideasv .iscroll{flex:1;min-height:0;overflow:auto}
513
+ /* the Tasks page: source chips and project, then Open/Running/Done, search and the table */
514
+ #tasksv{display:none}
515
+ body.taskv #tasksv{flex:1;min-height:0;display:flex;flex-direction:column;gap:0;padding:6px 32px 20px}body #tasksv .hdr.ihdr{display:flex}#hx .iseg{display:flex;gap:4px}#hx .pill{display:flex;gap:6px;align-items:center;padding:4px 10px;font-size:12px;border-radius:4px;border:1px solid var(--line);color:var(--dim);background:none;cursor:pointer;white-space:nowrap}#hx .pill:hover{color:var(--ink)}#hx .pill.on{background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 55%,transparent)}#hx .ipop>summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer}#hx .ipop>summary::-webkit-details-marker{display:none}#hx .ipop>summary::after{content:"";width:0;height:0;border:4px solid transparent;border-top:5px solid currentColor;margin:4px 0 0 2px}#hx .ipop>summary svg,#hx .ipop>summary img{width:15px;height:15px}#hx .ipop .menu-pop{position:absolute;padding:6px;display:flex;flex-direction:column;gap:1px;max-height:360px;overflow:auto;width:280px}#hx .ipop button{padding:6px 8px;border-radius:4px;background:none;border:0;color:var(--dim);text-align:left;cursor:pointer;font:inherit}#hx .ipop button:hover{background:var(--hover);color:var(--ink)}#hx .ipop button svg:not(.ck),#hx .ipop button img{width:15px;height:15px}#hx .ipop .ck{width:14px;height:14px;color:var(--accent);visibility:hidden;margin-left:auto}#hx .ipop [aria-checked=true]{color:var(--ink);font-weight:500}#hx .ipop [aria-checked=true] .ck{visibility:visible}#hx .ipop .pop-ft{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:4px;padding:6px 4px 0;font-size:12px;color:var(--dim)}#hx .ipop .pop-ft button{color:var(--accent);padding:2px 6px}#tasksv .ihdr .pill{padding:4px 10px;font-size:12px}#tasksv .ibox{padding:0}#tasksv .itable{border-left:0;margin-left:0}#tasksv .itable th:first-child,#tasksv .itable td:first-child{padding-left:28px}#tasksv .itable th:last-child,#tasksv .itable td:last-child{padding-right:16px}
516
+ #tasksv .ibar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
517
+ #tasksv .pill{display:flex;gap:6px;align-items:center;padding:5px 11px;border-radius:4px;border:1px solid var(--line);color:var(--dim);white-space:nowrap}#tasksv .pill:hover{color:var(--ink)}#tasksv .pill.on{background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 55%,transparent)}
518
+ #tasksv .pill svg,#tasksv .pill img{width:15px;height:15px}#tasksv .pill .fav{display:contents}
519
+ #tasksv .ibox{flex:1;min-height:0;display:flex;flex-direction:column}#tasksv .ibox>.ibar{padding:0 0 10px}
520
+ #tasksv #ideas-q{flex:0 1 240px;min-width:140px;border-radius:4px;padding:6px 10px;font-family:var(--mono);font-size:12px}
521
+ #tasksv .iscroll{flex:1;min-height:0;overflow:auto}
521
522
  .itable{width:100%;border-collapse:collapse}.itable th{text-align:left;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--dim);font-weight:600;padding:8px 12px;border-bottom:1px solid var(--line)}
522
- .itable td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:middle}.itable tr:hover td{background:var(--hover)}#ideasv tbody tr{cursor:pointer}.itable tr.kb td{background:var(--hover)}.itable td:first-child{width:28px;padding-right:0}.itable td.d{color:var(--dim);white-space:nowrap}
523
+ .itable td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:middle}.itable tr:hover td{background:var(--hover)}#tasksv tbody tr{cursor:pointer}.itable tr.kb td{background:var(--hover)}.itable td:first-child{width:28px;padding-right:0}.itable td.d{color:var(--dim);white-space:nowrap}
523
524
  .itable .ctx{display:flex;gap:6px;align-items:center;color:var(--dim);font-size:12px;margin-top:3px}.itable .tag{font-size:10.5px;border:1px solid var(--line);border-radius:4px;padding:0 7px}
524
525
  .itable .stc{display:flex;gap:8px;align-items:center;font-size:12px;white-space:nowrap}
525
526
  .itable .go{display:flex;gap:6px;align-items:center;padding:4px 10px;border:1px solid var(--line);border-radius:4px;white-space:nowrap}.itable .go:hover{background:var(--hover)}.itable .go svg{width:13px;height:13px}.itable .acts{display:flex;gap:6px;justify-content:flex-end;align-items:center}.itable .del{display:grid;place-items:center;width:28px;height:28px;border:1px solid transparent;border-radius:4px;background:none;color:var(--dim);cursor:pointer}.itable .del:hover{color:var(--danger);border-color:var(--line)}.itable .del svg{width:15px;height:15px}.itable .acts .q{color:var(--dim);font-size:12px}.itable .acts .btn{padding:4px 10px;font-size:12px}
@@ -533,7 +534,7 @@ body.ideav #ideasv{flex:1;min-height:0;display:flex;flex-direction:column;gap:0;
533
534
  .kpager{position:sticky;bottom:0;z-index:1;display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:8px 12px;border-top:1px solid var(--line);background:var(--bg);font-size:var(--fs-s);color:var(--dim)}.kpager label{display:flex;align-items:center;gap:6px;margin-right:auto}.kpager select{width:auto}
534
535
  .tk-empty{display:flex;flex-direction:column;align-items:center;gap:4px;padding:56px 24px;text-align:center;font-size:14px;color:var(--dim)}.tk-empty svg{width:32px;height:32px;margin-bottom:12px;opacity:.6}.tk-empty p{margin:0;font-size:16px;font-weight:500;color:var(--ink)}
535
536
  .itable th{position:sticky;top:0;z-index:1;height:32px;box-sizing:border-box;padding:0 12px;font-size:11px;font-weight:500;background:color-mix(in srgb,var(--hover) 25%,var(--bg))}.itable td{height:48px;box-sizing:border-box;padding:8px 12px;border-bottom:1px solid color-mix(in srgb,var(--line) 30%,transparent)}.itable tr:last-child td{border-bottom:0}.itable b{font-weight:500}
536
- @media(max-width:640px){body.ideav #ideasv{padding:10px}.itable th:nth-child(4),.itable td:nth-child(4){display:none}.itable td,.itable th{padding:8px 6px}}
537
+ @media(max-width:640px){body.taskv #tasksv{padding:10px}.itable th:nth-child(4),.itable td:nth-child(4){display:none}.itable td,.itable th{padding:8px 6px}}
537
538
 
538
539
  /* the mockup has no right-hand project pane: the Files/Notes/Terminal pane (#context, context.ts) is not shown on desktop widths; the run workspace has its own strip */
539
540
  @media(min-width:641px){#context,#ctx-open{display:none!important}}
@@ -541,7 +542,7 @@ body.ideav #ideasv{flex:1;min-height:0;display:flex;flex-direction:column;gap:0;
541
542
  @media(min-width:1201px){html body:not(.paged) #board{grid-template-columns:repeat(5,minmax(200px,1fr))}}
542
543
  /* the run workspace (?view=run): a tabbed centre, and the card's panel docked right as an icon strip */
543
544
  #runv,#pnotes,#pnlist{display:none}.pstrip{display:contents}#ptabs svg{display:none}
544
- body.runv .hdr,body.runv #board,body.runv .ftr,body.runv #terms,body.runv #home,body.runv #ideasv,body.runv .scrim,body.runv #context{display:none!important}
545
+ body.runv .hdr,body.runv #board,body.runv .ftr,body.runv #terms,body.runv #home,body.runv #tasksv,body.runv .scrim,body.runv #context{display:none!important}
545
546
  body.runv .app{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr);margin-right:8px!important}body.runv #pfoot{min-width:0;flex-wrap:wrap}body.runv #pfoot .note{flex:1 1 100%;white-space:normal;min-width:0}
546
547
  body.runv #runv{grid-area:1/1;display:flex;flex-direction:column;min-width:0;min-height:0}
547
548
  #rtabs{display:flex;align-items:center;gap:2px;height:var(--tabbar);min-height:var(--tabbar);padding:0 6px;overflow-x:auto;scrollbar-width:none;flex:1;min-width:0}#rtabs .sp{flex:1}#rbar{display:flex;align-items:center;flex:none;border-bottom:1px solid var(--line);padding-right:6px}
@@ -631,7 +632,7 @@ aside{position:fixed;top:0;right:0;bottom:0;z-index:11;width:520px;max-width:100
631
632
  aside.open{transform:none;visibility:visible}
632
633
  /* Settings and the Icebox are pages: the same panel, docked into the app column, full width like the board */
633
634
  body.paged #board,body.paged .ftr,body.paged .scrim,body.paged #bq{display:none}
634
- /* The Icebox keeps the project bar with its own title, without New idea or the panel's header; Settings has none */
635
+ /* The Icebox keeps the project bar with its own title, without New task or the panel's header; Settings has none */
635
636
  body.paged:not(.ice) .hdr,body.ice aside.docked>header{display:none}body.ice #newtop{visibility:hidden}
636
637
  /* The Terminal page: the project bar stays (it picks whose terminals show), the board gives way to the tiles */
637
638
  #home{display:none}#hnewtop,#hpop,#hsidetop{display:none}body.homev.paged .hdr{display:flex}body.homev #combo,body.homev #showc,body.homev #bq,body.homev #newtop,body.homev #fbtn,body.homev #tmodes{display:none!important}body.homev #hnewtop{display:inline-flex;align-items:center;gap:6px}@media(min-width:641px){body.homev #hpop{display:inline-grid}}#hnewtop svg{width:16px;height:16px}
@@ -1013,12 +1014,12 @@ a.schip:hover{color:var(--ink);border-color:color-mix(in srgb,var(--line) 60%,va
1013
1014
  ::view-transition-group(*){animation-duration:.2s}
1014
1015
  @media(prefers-reduced-motion:reduce){:root:not([data-motion=full]) *,:root:not([data-motion=full]) *::before,:root:not([data-motion=full]) *::after,:root:not([data-motion=full])::view-transition-group(*),:root:not([data-motion=full])::view-transition-old(*),:root:not([data-motion=full])::view-transition-new(*){transition:none!important;animation:none!important}}
1015
1016
  :root[data-motion=reduce] *,:root[data-motion=reduce] *::before,:root[data-motion=reduce] *::after,:root[data-motion=reduce]::view-transition-group(*),:root[data-motion=reduce]::view-transition-old(*),:root[data-motion=reduce]::view-transition-new(*){transition:none!important;animation:none!important}
1016
- /* Every page's top bar (Board, Ideas, Icebox, Terminal, Settings, a run's tabs): one height, one divider. */
1017
- /* Ideas uses the Board's own header, as the Icebox does; its extra filters go in #hx. */
1018
- body.ideav.paged .hdr{display:flex}body.ideav.paged #bq{display:block}body.ideav #fbtn,body.ideav #tmodes{display:none}body:not(.ideav) #hx{display:none}#hx{display:flex;gap:8px;align-items:center}
1019
- @media(min-width:641px){.app .hdr,#ideasv .hdr.ihdr,#panel.docked>header{height:52px;min-height:52px;box-sizing:border-box;padding-top:0;padding-bottom:0;border-bottom:1px solid var(--line);align-items:center;flex-wrap:nowrap}.itable th{border-bottom-color:var(--line)}}
1017
+ /* Every page's top bar (Board, Tasks, Icebox, Terminal, Settings, a run's tabs): one height, one divider. */
1018
+ /* Tasks uses the Board's own header, as the Icebox does; its extra filters go in #hx. */
1019
+ body.taskv.paged .hdr{display:flex}body.taskv.paged #bq{display:block}body.taskv #fbtn,body.taskv #tmodes{display:none}body:not(.taskv) #hx{display:none}#hx{display:flex;gap:8px;align-items:center}
1020
+ @media(min-width:641px){.app .hdr,#tasksv .hdr.ihdr,#panel.docked>header{height:52px;min-height:52px;box-sizing:border-box;padding-top:0;padding-bottom:0;border-bottom:1px solid var(--line);align-items:center;flex-wrap:nowrap}.itable th{border-bottom-color:var(--line)}}
1020
1021
 
1021
- /* Ideas header on a small laptop: one row, nothing wraps; the search box gives way first. */
1022
+ /* Tasks header on a small laptop: one row, nothing wraps; the search box gives way first. */
1022
1023
  #newtop{white-space:nowrap}#newtop svg{display:none}
1023
1024
  /* Board, Workspaces mode: the Workspaces | Runs switch in the header, four columns of workspace cards. */
1024
1025
  body:not(.paged) #hx{display:flex}
@@ -1140,11 +1141,10 @@ html body.wsb:not(.paged) #board{grid-template-columns:repeat(4,minmax(200px,1fr
1140
1141
  <a class="it ponly" href="/?view=chat" data-view="chat" title="Chat with kaizen's agent"><svg><use href="#r-chat"/></svg><span class="lbl">Chat</span></a>
1141
1142
  <a class="it ponly" href="/?view=device" data-view="device" title="This computer's runs"><svg><use href="#r-runs"/></svg><span class="lbl">Runs</span></a>
1142
1143
  <a class="it fold" href="/?view=icebox" data-view="sources" title="Icebox: requests gathered from your sources"><svg><use href="#r-tray"/></svg><span class="lbl">Icebox</span><span class="srcs" id="rail-srcs"></span><span class="n" id="ice-n"></span></a>
1143
- <a class="it" href="/?view=ideas" data-view="ideas" title="Ideas: every idea and run, filtered"><svg><use href="#r-bulb"/></svg><span class="lbl">Ideas</span></a>
1144
- <a class="it" href="/?view=board" data-view="board" title="Board"><svg><use href="#i-board"/></svg><span class="lbl">Board</span></a>
1144
+ <a class="it" href="/?view=tasks" data-view="tasks" title="Tasks: every task and run, filtered"><svg><use href="#r-bulb"/></svg><span class="lbl">Tasks</span></a>
1145
1145
  <a class="it" href="/?setup=1" id="rsetup" hidden title="Continue setup"><span class="ring"></span><span class="lbl">Setup</span></a>
1146
- <div class="psec"><span class="lbl">Projects</span><button id="pfilter" title="Show one project" aria-label="Show one project"><svg><use href="#r-filter"/></svg></button><button id="padd" title="Add project or workspace" aria-label="Add project or workspace"><svg><use href="#r-plus"/></svg></button></div>
1147
- <div class="plist" id="plist" aria-label="Ideas and runs by project"></div>
1146
+ <div class="psec"><span class="lbl">Projects</span><a class="pbd" href="/?view=board" data-view="board" title="Board" aria-label="Board"><svg><use href="#i-board"/></svg></a><button id="pfilter" title="Show one project" aria-label="Show one project"><svg><use href="#r-filter"/></svg></button><button id="padd" title="Add project or workspace" aria-label="Add project or workspace"><svg><use href="#r-plus"/></svg></button></div>
1147
+ <div class="plist" id="plist" aria-label="Tasks and runs by project"></div>
1148
1148
  <div class="rbot"><a class="it fold" href="/?view=settings" data-view="settings" title="Settings" aria-label="Settings"><svg><use href="#i-gear"/></svg><span class="lbl">Settings</span></a><a class="rib" href="/issue" target="_blank" rel="noopener" title="Report an issue" aria-label="Report an issue"><svg><use href="#r-bug"/></svg></a><button class="rib" id="kbd" title="Keyboard shortcuts" aria-label="Keyboard shortcuts"><svg><use href="#r-kbd"/></svg></button><button class="rib th" id="themet" title="Theme" aria-label="Theme"><svg class="sun"><use href="#i-sun"/></svg><svg class="moon"><use href="#i-moon"/></svg></button></div>
1149
1149
  </nav>
1150
1150
  <script>
@@ -1187,7 +1187,7 @@ html body.wsb:not(.paged) #board{grid-template-columns:repeat(4,minmax(200px,1fr
1187
1187
  <span class="hx" id="hx"></span>
1188
1188
  <span class="sp"></span>
1189
1189
  <span class="bar" id="tmodes" role="group" aria-label="Layout"></span>
1190
- <button class="btn pri" id="newtop"><svg><use href="#i-plus"/></svg><span>New idea</span></button>
1190
+ <button class="btn pri" id="newtop"><svg><use href="#i-plus"/></svg><span>New task</span></button>
1191
1191
  <button class="ib" id="ctx-open" aria-label="Open side panel" title="Notes, files and terminals"><svg><use href="#i-side"/></svg></button>
1192
1192
  <button class="ib" id="hpop" title="Pop out chat" aria-label="Pop out chat"><svg><use href="#i-popout"/></svg></button>
1193
1193
  <button class="btn pri" id="hnewtop" aria-label="New chat"><svg><use href="#i-plus"/></svg><span>New chat</span></button>
@@ -1197,7 +1197,7 @@ html body.wsb:not(.paged) #board{grid-template-columns:repeat(4,minmax(200px,1fr
1197
1197
  <div id="terms" aria-label="Terminals"></div>
1198
1198
  <div id="home" aria-label="Chat"></div>
1199
1199
  <div id="phome" aria-label="Devices and runs"></div>
1200
- <div id="ideasv" aria-label="Ideas"></div>
1200
+ <div id="tasksv" aria-label="Tasks"></div>
1201
1201
  <div id="runv" aria-label="Run workspace"><div id="rbar"><nav id="rtabs" aria-label="Workspace tabs"></nav><button class="rbtn" id="rside" title="Show or hide the run panel" aria-label="Show or hide the run panel" aria-pressed="false"><svg><use href="#i-open"/></svg></button></div><div id="rpanes"></div></div>
1202
1202
 
1203
1203
  <div class="ftr"><span class="strip" id="strip"></span></div>
@@ -1216,7 +1216,7 @@ html body.wsb:not(.paged) #board{grid-template-columns:repeat(4,minmax(200px,1fr
1216
1216
  <div class="toast" id="toast" role="status"></div>
1217
1217
  <div class="help" id="help"><div>
1218
1218
  <p>Optional. Everything here is also a button.</p>
1219
- <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>
1219
+ <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 task</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>
1220
1220
 
1221
1221
  <script>
1222
1222
  // The server writes notifier() from state.ts over the marker: one rule for both UIs.