kaizen-agent 1.58.0 → 1.59.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.
@@ -0,0 +1,91 @@
1
+ // ---- Phones: their own Home (devices, recent runs, usage) and the Runs page (this
2
+ // machine's runs grouped waiting / active / done). The board, Ideas and Icebox are set up
3
+ // on a computer; a phone has Home, Chat, Runs and Settings.
4
+ import { $, html, raw } from "./dom.ts";
5
+ import { cardHref, logo, railData, stateOf, subline, titleOf, usageChips } from "./workspace.ts";
6
+
7
+ export const isPhone = () => matchMedia("(max-width:640px)").matches;
8
+
9
+ type Computer = { name: string; dns: string; os: string; online: boolean };
10
+ let net: { self: Computer | null; computers: Computer[]; tailscale: boolean } = { self: null, computers: [], tailscale: false };
11
+ let usage: any[] = [];
12
+ let mode: "home" | "device" | null = null;
13
+
14
+ const chev = raw(`<svg class="pchev" viewBox="0 0 24 24" aria-hidden="true"><path d="M9 6l6 6-6 6"/></svg>`);
15
+ const runs = () => railData().cards.filter((c) => c.kind === "run" && !c.archived);
16
+ const projName = (dir: string) => {
17
+ const l = railData().projects?.find((p) => p.dir === dir)?.label || dir.replace(/[\\/]\.kaizen$/, "");
18
+ return l.split(/[\\/]/).pop() || l;
19
+ };
20
+
21
+ function row(c, now: number) {
22
+ const name = projName(c.state);
23
+ return html`<a class="prow" href="${cardHref(c)}" data-dir="${c.state}" data-id="${c.id}"><span class="si ${stateOf(c)}"></span><span class="pmain"><b>${titleOf(c)}</b><small>${logo(c.state, name, railData().projects)}${name}</small><code>${subline(c, now)}</code></span></a>`;
24
+ }
25
+
26
+ function home() {
27
+ const now = Date.now();
28
+ const all = runs();
29
+ const active = all.filter((c) => !["done", "abandoned"].includes(c.status));
30
+ const waiting = all.filter((c) => stateOf(c) === "wait").length;
31
+ const projects = new Set(all.map((c) => c.state)).size;
32
+ const me = net.self?.name || "This computer";
33
+ const others = net.computers.map(
34
+ (d) =>
35
+ html`<a class="pdev" href="${d.dns ? "https://" + d.dns + "/" : "#"}" target="_blank" rel="noopener"${raw(d.dns ? "" : ' aria-disabled="true"')}><span class="pico"><svg><use href="#r-desk"/></svg></span><span class="pmain"><b>${d.name}</b><small><i class="pdot${d.online ? " on" : ""}"></i>${d.online ? "Connected" : "Disconnected"}${d.os ? " · " + d.os : ""}</small></span>${chev}</a>`,
36
+ );
37
+ const recent = [...all].sort((a, b) => (b.moved ?? 0) - (a.moved ?? 0)).slice(0, 12);
38
+ return html`<section class="psec2"><h3>Devices</h3><a class="pdev" href="/?view=device" data-dev="here"><span class="pico"><svg><use href="#r-desk"/></svg></span><span class="pmain"><b>${me}</b><small><i class="pdot on"></i>Connected · ${projects} project${projects === 1 ? "" : "s"} · ${active.length} active${waiting ? html` · <em>${waiting} waiting</em>` : ""}</small></span>${chev}</a>${others}${net.tailscale ? "" : html`<p class="pnote">Tailscale is off on this computer: other devices do not show.</p>`}</section>
39
+ <section class="psec2"><h3>Runs</h3><div class="plist2">${recent.map((c) => row(c, now))}${recent.length ? "" : html`<p class="pnote">No runs yet.</p>`}</div></section>${usage.length ? html`<section class="psec2"><h3>Usage</h3><div class="pusage">${raw(usageChips(usage))}</div></section>` : ""}`;
40
+ }
41
+
42
+ function device() {
43
+ const now = Date.now();
44
+ const all = [...runs()].sort((a, b) => (b.moved ?? 0) - (a.moved ?? 0));
45
+ const wait = all.filter((c) => stateOf(c) === "wait");
46
+ const done = all.filter((c) => ["done", "abandoned"].includes(c.status));
47
+ const active = all.filter((c) => !wait.includes(c) && !done.includes(c));
48
+ const group = (title: string, cs: any[], shut = false) =>
49
+ cs.length ? html`<details class="pgrp"${raw(shut ? "" : " open")}><summary>${title}<span>${cs.length}</span></summary><div class="plist2">${cs.map((c) => row(c, now))}</div></details>` : "";
50
+ return html`${group("Waiting on you", wait)}${group("Active", active)}${group("Done", done, true)}${all.length ? "" : html`<p class="pnote">No runs yet.</p>`}`;
51
+ }
52
+
53
+ function draw() {
54
+ const el = $("phome");
55
+ if (!el || !mode) return;
56
+ const keep = mode === "device" ? [...el.querySelectorAll("details")].map((d) => d.open) : [];
57
+ el.innerHTML = String(mode === "home" ? home() : device());
58
+ el.querySelectorAll("details").forEach((d, i) => keep[i] !== undefined && (d.open = keep[i]));
59
+ }
60
+
61
+ async function fetchNet() {
62
+ try {
63
+ const [p, u] = await Promise.all([fetch("/phone").then((r) => r.json()), fetch("/usage").then((r) => (r.ok ? r.json() : []))]);
64
+ net = { self: p.self ?? null, computers: p.computers ?? [], tailscale: !!p.tailscale };
65
+ usage = u;
66
+ draw();
67
+ } catch {}
68
+ }
69
+
70
+ // Home (devices) or Runs (this machine); null when neither shows.
71
+ export function openPhone(m: "home" | "device" | null) {
72
+ mode = m;
73
+ if (!m) return;
74
+ draw();
75
+ if (m === "home") void fetchNet();
76
+ }
77
+
78
+ export function initPhone(go: (v: string, push?: boolean) => void, openRun: (c) => void) {
79
+ addEventListener("kz-cards", draw);
80
+ $("phome")?.addEventListener("click", (e) => {
81
+ if ((e as MouseEvent).ctrlKey || (e as MouseEvent).metaKey) return;
82
+ const a = (e.target as HTMLElement).closest<HTMLAnchorElement>("a");
83
+ if (!a) return;
84
+ if (a.dataset.dev) return (e.preventDefault(), go("device", true));
85
+ if (a.getAttribute("aria-disabled")) return e.preventDefault();
86
+ if (a.classList.contains("prow")) {
87
+ const c = runs().find((x) => x.state === a.dataset.dir && x.id === a.dataset.id);
88
+ if (c) (e.preventDefault(), openRun(c));
89
+ }
90
+ });
91
+ }
@@ -6,12 +6,13 @@ import { openSettings } from "./settings.ts";
6
6
  import { openTerms, termsStop } from "./terms.ts";
7
7
  import { openHome } from "./home.ts";
8
8
  import { initIdeas, openIdeas } from "./ideas.ts";
9
- import { initRunView, runStop, showRunView } from "./run-view.ts";
9
+ import { initRunView, openWorkspace, runStop, showRunView } from "./run-view.ts";
10
+ import { initPhone, isPhone, openPhone } from "./phone.ts";
10
11
 
11
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
12
13
  export let view = "board";
13
14
  // The board's own area, not the docked panel.
14
- const AREA = ["board", "terminal", "home", "ideas", "run"];
15
+ const AREA = ["board", "terminal", "home", "ideas", "run", "chat", "device"];
15
16
  export const markView = (v) => {
16
17
  document
17
18
  .querySelectorAll(".rail a.it")
@@ -19,19 +20,25 @@ export const markView = (v) => {
19
20
  a.dataset.view === v ? a.setAttribute("aria-current", "page") : a.removeAttribute("aria-current"),
20
21
  );
21
22
  // The Icebox is titled in the header, top left, like the board.
22
- document.querySelector(".hdr h1").textContent = v === "sources" ? "Icebox" : v === "ideas" ? "Ideas" : v === "run" ? "Run" : v === "terminal" ? "Terminal" : v === "home" ? "Home" : "Board";
23
+ 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";
23
24
  };
24
25
  export function go(v, push) {
25
26
  store.pageGen++;
26
27
  if (v === "icebox") v = "sources";
27
- if (!["settings", "sources", "terminal", "board", "ideas", "run"].includes(v)) v = "home";
28
+ if (!["settings", "sources", "terminal", "board", "ideas", "run", "chat", "device"].includes(v)) v = "home";
29
+ // A phone has Home, Chat, Runs and Settings: the board, Ideas and the Icebox are set up on a computer,
30
+ // whose Home is the chat.
31
+ if (isPhone() ? ["board", "ideas", "sources"].includes(v) : v === "chat" || v === "device") v = "home";
28
32
  const was = view;
29
33
  view = v;
30
34
  markView(v);
31
35
  document.body.classList.toggle("paged", v !== "board");
32
36
  document.body.classList.toggle("ice", v === "sources");
33
37
  document.body.classList.toggle("termv", v === "terminal");
34
- document.body.classList.toggle("homev", v === "home");
38
+ const ph = isPhone() && v === "home";
39
+ document.body.classList.toggle("homev", (v === "home" && !ph) || v === "chat");
40
+ document.body.classList.toggle("phomev", ph || v === "device");
41
+ document.body.classList.toggle("pdevv", v === "device");
35
42
  document.body.classList.toggle("ideav", v === "ideas");
36
43
  document.body.classList.toggle("runv", v === "run");
37
44
  // Leaving a workspace: its panel closes as the board's would, its terminals unmount.
@@ -48,14 +55,15 @@ export function go(v, push) {
48
55
  const p = $("panel");
49
56
  if (v === "terminal") openTerms();
50
57
  else termsStop();
51
- if (v === "home") openHome();
58
+ if ((v === "home" && !ph) || v === "chat") openHome();
59
+ openPhone(ph ? "home" : v === "device" ? "device" : null);
52
60
  if (v === "ideas") openIdeas();
53
61
  // After the panel handling below, which closes the board's panel on the way in.
54
62
  if (v === "run") queueMicrotask(() => void showRunView());
55
63
  // The Terminal page is the board's own area, not the docked panel: the panel closes as on the board.
56
64
  if (AREA.includes(v)) {
57
65
  if (AREA.includes(was)) {
58
- if (v !== "board" && was === "board") {
66
+ if (v !== "board" && (was === "board" || was === "ideas")) {
59
67
  view = "board";
60
68
  close();
61
69
  view = v;
@@ -80,6 +88,7 @@ export function go(v, push) {
80
88
  export function initViews() {
81
89
  initIdeas(go);
82
90
  initRunView();
91
+ initPhone(go, openWorkspace);
83
92
  document.querySelectorAll(".rail a[data-view]").forEach((a) => {
84
93
  if (a.dataset.view === "notes" || a.dataset.view === "video") return;
85
94
  a.onclick = (e) => {
@@ -11,7 +11,8 @@ const DAY = 864e5;
11
11
  const STAGE = ["idea", "planning", "building", "reviewing", "done"];
12
12
  // A card's state icon (.si) and the word under its title.
13
13
  export function stateOf(c) {
14
- if (c.kind === "idea") return "idle";
14
+ // An idea whose agent is working is a run being born: show it as planning.
15
+ if (c.kind === "idea") return !c.pty?.alive ? "idle" : c.pty.asking ? "wait" : c.pty.busy ? "plan" : "idle";
15
16
  if (c.status === "waiting" || (c.pty?.alive && c.pty.asking)) return "wait";
16
17
  if (c.status === "done") return "done";
17
18
  if (c.status === "abandoned") return "aband";
@@ -19,7 +20,8 @@ export function stateOf(c) {
19
20
  return c.column >= 3 ? "review" : c.column === 2 ? "build" : "plan";
20
21
  }
21
22
  export function subline(c, now) {
22
- if (c.kind === "idea") return "idea";
23
+ // An idle agent and no run yet: it answered, or waits for the user.
24
+ if (c.kind === "idea") return !c.pty?.alive ? "idea" : c.pty.asking ? "waiting on you" : c.pty.busy ? "planning · starting" : "agent · open";
23
25
  const t = c.moved ?? now;
24
26
  if (c.status === "waiting") return c.awaiting ? `${STAGE[c.column] ?? "waiting"} · ${need(c.awaiting)}` : "waiting on you";
25
27
  if (c.status === "done" || c.status === "abandoned") return `${c.status} · ${age(t, now)} ago`;
@@ -211,6 +213,7 @@ export function initRail() {
211
213
  drawList();
212
214
  void drawSources();
213
215
  onCount?.(cards);
216
+ dispatchEvent(new Event("kz-cards"));
214
217
  told();
215
218
  });
216
219
  $("pfilter").onclick = (e) => {
package/web/board.html CHANGED
@@ -119,7 +119,50 @@ body .rail a.upd::after{left:calc(50% + 6px);top:4px}body .toast{left:16px;botto
119
119
  [data-rail=min] .rail .psec{padding:0;margin:12px 0 2px;flex-direction:column}[data-rail=min] .rail .rbot{flex-direction:column}
120
120
  [data-rail=min] .plist .proj{justify-content:center;margin:10px 0 4px}[data-rail=min] .plist .row{grid-template-columns:14px;justify-content:center;padding:7px 0}
121
121
  @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}}
122
+ /* phones: Home, Chat, Runs, Settings. The board, Ideas and the Icebox are set up on a computer (web/board/phone.ts) */
123
+ .rail a.it.ponly,#phome{display:none}
124
+ @media(max-width:640px){
125
+ .rail a.it:is([data-view=board],[data-view=ideas],[data-view=sources]),#foot,#ctx-open,body .rail .rbot .rib{display:none!important}
126
+ .rail a.it.ponly{display:flex}
127
+ .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}
128
+ .rail,[data-rail=min] .rail{padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
129
+ .rail a.it,[data-rail=min] .rail a.it{min-height:50px;gap:3px;font-size:10.5px;letter-spacing:.01em}
130
+ .rail a.it svg{width:44px;height:26px;padding:4px 12px;box-sizing:border-box;border-radius:13px;transition:background .15s}
131
+ .rail a.it[aria-current=page] svg{background:color-mix(in srgb,var(--accent) 16%,transparent)}
132
+ .rail a.it[aria-current=page]{font-weight:600}
133
+ }
122
134
  /* end side menu */
135
+ @media(max-width:640px){
136
+ body .hdr{padding:12px 16px 10px;gap:8px;border-bottom:0}
137
+ body.paged:is(.phomev,.homev) .hdr{display:flex!important;flex-wrap:nowrap}
138
+ body .hdr h1{flex:1 1 auto;font-size:19px;letter-spacing:-.01em}
139
+ body.homev #hnewtop{border-radius:19px}
140
+ body.phomev .hdr>:not(h1):not(#newtop),body.phomev #board{display:none!important}
141
+ body.phomev #newtop{display:inline-grid;place-items:center;width:38px;height:38px;padding:0;font-size:0;border-radius:19px}
142
+ body.phomev #newtop::before{content:"+";display:block;height:38px;font-size:24px;font-weight:300;line-height:36px}
143
+ body.pdevv #newtop{display:none!important}
144
+ body.phomev #phome{display:block;flex:1;min-height:0;overflow:auto;padding:4px 16px 24px;animation:fi .2s}
145
+ }
146
+ #phome h3{margin:18px 4px 8px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--dim)}
147
+ #phome .psec2:first-child h3{margin-top:6px}
148
+ .pdev{display:flex;align-items:center;gap:12px;margin-bottom:8px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg-2);color:var(--ink);text-decoration:none}
149
+ .pdev[aria-disabled]{opacity:.6}
150
+ .pico{width:36px;height:36px;display:grid;place-items:center;flex:none;border-radius:9px;background:var(--hover);color:var(--dim)}.pico svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
151
+ .pmain{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
152
+ .pmain b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
153
+ .pmain small{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pmain small em{font-style:normal;color:var(--warn)}
154
+ .pmain small .plogo{width:14px;height:14px;font-size:8px;border-radius:3px;display:inline-grid;place-items:center;flex:none;font-weight:600;background:var(--hover)}
155
+ .pmain code{font:11.5px/1.4 var(--mono);color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
156
+ .pdot{width:7px;height:7px;border-radius:50%;flex:none;background:var(--dim)}.pdot.on{background:var(--ok)}
157
+ .pchev{width:16px;height:16px;flex:none;fill:none;stroke:var(--dim);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
158
+ .plist2{display:flex;flex-direction:column}
159
+ .prow{display:flex;align-items:flex-start;gap:12px;padding:11px 4px;border-bottom:1px solid color-mix(in srgb,var(--line) 60%,transparent);color:var(--ink);text-decoration:none}
160
+ .prow:last-child{border-bottom:0}.prow .si{margin-top:4px}.prow .page{font-size:11.5px;color:var(--dim);flex:none;margin-top:2px}
161
+ .pgrp{margin-top:6px}.pgrp summary{display:flex;align-items:center;gap:8px;list-style:none;padding:12px 4px 6px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--dim);cursor:pointer}
162
+ .pgrp summary::-webkit-details-marker{display:none}.pgrp summary::before{content:"";width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg);transition:transform .15s}.pgrp[open] summary::before{transform:rotate(45deg)}
163
+ .pnote{margin:4px;font-size:12.5px;color:var(--dim)}
164
+ .pusage{display:flex;flex-wrap:wrap;gap:14px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--bg-2);font-size:13px}
165
+
123
166
  /* the work area: an inset rounded panel on the canvas the side menu sits on */
124
167
  .app{flex:1;min-width:0;display:flex;flex-direction:column;margin:8px 8px 8px 0;background:var(--bg);border:1px solid var(--line);border-radius:12px;overflow:hidden}
125
168
  @media(max-width:640px){.app{margin:0;border:0;border-radius:0}html,body{background:var(--bg)}aside:not(.docked){padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) 0}}
@@ -336,7 +379,7 @@ body.ideav #ideasv{flex:1;min-height:0;display:flex;flex-direction:column;gap:0;
336
379
  #ideasv #ideas-q{flex:0 1 240px;min-width:140px;border-radius:4px;padding:6px 10px;font-family:var(--mono);font-size:12px}
337
380
  #ideasv .iscroll{flex:1;min-height:0;overflow:auto}
338
381
  .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)}
339
- .itable td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:middle}.itable tr:hover td{background:var(--hover)}.itable tr.kb td{background:var(--hover)}.itable tr.kb td:first-child{box-shadow:inset 2px 0 0 var(--accent)}.itable td:first-child{width:28px;padding-right:0}.itable td.d{color:var(--dim);white-space:nowrap}
382
+ .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 tr.kb td:first-child{box-shadow:inset 2px 0 0 var(--accent)}.itable td:first-child{width:28px;padding-right:0}.itable td.d{color:var(--dim);white-space:nowrap}
340
383
  .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}
341
384
  .itable .stc{display:flex;gap:8px;align-items:center;font-size:12px;white-space:nowrap}
342
385
  .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}
@@ -750,6 +793,9 @@ a.schip:hover{color:var(--ink);border-color:color-mix(in srgb,var(--line) 60%,va
750
793
  /* Ideas uses the Board's own header, as the Icebox does; its extra filters go in #hx. */
751
794
  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}
752
795
  @media(min-width:641px){.app .hdr,#ideasv .hdr.ihdr,#rtabs,#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)}}
796
+
797
+ /* Ideas header on a small laptop: one row, nothing wraps; the search box gives way first. */
798
+ #newtop{white-space:nowrap}@media(min-width:641px) and (max-width:1440px){body.ideav .app .hdr{gap:8px;padding:8px 12px 8px 20px;height:auto;flex-wrap:wrap}body.ideav #bq{flex:1 1 120px;width:auto;min-width:90px}body.ideav #hx{gap:6px;min-width:0}body.ideav #hx .iseg{gap:2px}body.ideav #hx .pill{padding:4px 8px}body.ideav #hx .ipop .sel{max-width:130px}}
753
799
  </style>
754
800
  </head>
755
801
  <body>
@@ -845,8 +891,13 @@ body.ideav.paged .hdr{display:flex}body.ideav.paged #bq{display:block}body.ideav
845
891
  <symbol id="r-plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></symbol>
846
892
  <symbol id="r-bug" viewBox="0 0 24 24"><rect x="8" y="6" width="8" height="14" rx="4"/><path d="M12 20v-9M8 12H4M20 12h-4M9 7 7 4M15 7l2-3M8 17l-3 2M16 17l3 2"/></symbol>
847
893
  <symbol id="r-kbd" viewBox="0 0 24 24"><rect x="2" y="6" width="20" height="12" rx="2"/><path d="M6 10h.01M10 10h.01M14 10h.01M18 10h.01M7 14h10"/></symbol>
894
+ <symbol id="r-desk" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="12" rx="2"/><path d="M8 20h8M12 16v4"/></symbol>
895
+ <symbol id="r-chat" viewBox="0 0 24 24"><path d="M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z"/></symbol>
896
+ <symbol id="r-runs" viewBox="0 0 24 24"><path d="M9 6h11M9 12h11M9 18h11"/><circle cx="4.5" cy="6" r="1.2"/><circle cx="4.5" cy="12" r="1.2"/><circle cx="4.5" cy="18" r="1.2"/></symbol>
848
897
  </defs></svg>
849
898
  <a class="it" href="/" data-view="home" title="Home: chat with the project's agent"><svg><use href="#i-home"/></svg><span class="lbl">Home</span></a>
899
+ <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>
900
+ <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>
850
901
  <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>
851
902
  <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>
852
903
  <a class="it" href="/?view=board" data-view="board" title="Board"><svg><use href="#i-board"/></svg><span class="lbl">Board</span></a>
@@ -895,6 +946,7 @@ body.ideav.paged .hdr{display:flex}body.ideav.paged #bq{display:block}body.ideav
895
946
 
896
947
  <div id="terms" aria-label="Terminals"></div>
897
948
  <div id="home" aria-label="Chat"></div>
949
+ <div id="phome" aria-label="Devices and runs"></div>
898
950
  <div id="ideasv" aria-label="Ideas"></div>
899
951
  <div id="runv" aria-label="Run workspace"><nav id="rtabs" aria-label="Workspace tabs"></nav><div id="rpanes"></div></div>
900
952