kaizen-agent 1.83.0 → 1.84.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaizen-agent",
3
- "version": "1.83.0",
3
+ "version": "1.84.0",
4
4
  "description": "Staged workflow for AI agents — code, writing, research, operations: plan, human approval, build, independent review, bounded fix loop.",
5
5
  "type": "module",
6
6
  "bin": {
package/web/annotate.js CHANGED
@@ -4,13 +4,17 @@
4
4
  // its own overlay (and Pause). It talks to the board only by postMessage, signed with the per-open
5
5
  // token in its own URL; the board keeps the notes and decides what to do with them.
6
6
  (() => {
7
- if (window.__kzAnnotate || window.parent === window) return;
7
+ // Framed by the board, or the desktop app's Browser tab (a <webview>, where the page has no parent
8
+ // and the app's preload sets __kzHost and relays the messages).
9
+ const hosted = window.parent !== window || window.__kzHost === true;
10
+ if (window.__kzAnnotate || !hosted) return;
8
11
  window.__kzAnnotate = true;
9
12
  const script = document.currentScript;
10
13
  let token = "";
11
14
  try { token = new URL(script.src).searchParams.get("t") || ""; } catch {}
12
15
  const parent = window.parent;
13
- const send = (m) => parent.postMessage({ kz: 1, t: token, ...m }, "*");
16
+ // `out` marks what the page says, so the webview's relay forwards it and not what the board sends.
17
+ const send = (m) => parent.postMessage({ kz: 1, t: token, out: 1, ...m }, "*");
14
18
 
15
19
  const cfg = { on: false, mode: "element", hide: false, block: true, color: "#3c82f7", components: true };
16
20
  let marks = []; // notes the board has: { n, kind, selector, items, pb, page }
@@ -111,18 +115,22 @@
111
115
  .b{position:fixed;pointer-events:none;border:2px solid var(--c);background:color-mix(in srgb,var(--c) 14%,transparent);border-radius:2px}
112
116
  .b.g{--c:#34c759}.b.sel{border-style:dashed}
113
117
  .l{position:fixed;pointer-events:none;background:var(--c);color:#fff;padding:1px 6px;border-radius:3px;white-space:nowrap;max-width:60vw;overflow:hidden;text-overflow:ellipsis}
114
- .m{position:fixed;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;background:var(--c);color:#fff;font-weight:600;display:grid;place-items:center;pointer-events:auto;cursor:pointer;box-shadow:0 1px 4px #0006}
118
+ .m{position:fixed;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;background:var(--c);color:#fff;font-weight:600;border:2px solid #fff;display:grid;place-items:center;pointer-events:auto;cursor:pointer;box-shadow:0 1px 4px #0006}
115
119
  .m.g{background:#34c759}
116
- .c{position:fixed;width:300px;background:#1c1c1e;color:#f2f2f7;border:1px solid #3a3a3c;border-radius:10px;padding:10px;pointer-events:auto;box-shadow:0 8px 28px #0008}
117
- .c code{display:block;color:#98989f;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
118
- .c textarea{width:100%;height:64px;resize:vertical;background:#2c2c2e;color:inherit;border:1px solid #48484a;border-radius:6px;padding:6px}
119
- .c .r{display:flex;gap:6px;margin-top:6px;align-items:center}
120
- .c select{background:#2c2c2e;color:inherit;border:1px solid #48484a;border-radius:6px;padding:3px}
121
- .c button,.p button{background:#2c2c2e;color:inherit;border:1px solid #48484a;border-radius:6px;padding:3px 10px;cursor:pointer}
122
- .c button.go,.p button{background:var(--c);border-color:var(--c);color:#fff}
123
- .t{position:fixed;width:260px;background:#1c1c1e;color:#f2f2f7;border:1px solid #3a3a3c;border-radius:10px;padding:8px 10px;pointer-events:none;box-shadow:0 8px 28px #0008;white-space:pre-wrap;word-break:break-word}
120
+ .c{position:fixed;width:320px;background:#1c1c1e;color:#f2f2f7;border:1px solid #2c2c2e;border-radius:14px;padding:12px;pointer-events:auto;box-shadow:0 12px 36px #000a}
121
+ .c code{display:block;font:12px/1.4 system-ui,sans-serif;color:#98989f;margin-bottom:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
122
+ .c textarea{display:block;width:100%;height:68px;resize:none;background:#262628;color:inherit;border:1px solid #3a3a3c;border-radius:9px;padding:8px 10px;outline:0}
123
+ .c textarea:focus{border-color:#5a5a5e}
124
+ .c .r{display:flex;gap:6px;margin-top:10px;align-items:center;min-width:0}
125
+ .c select{flex:none;width:76px;background:none;color:#98989f;border:1px solid #3a3a3c;border-radius:999px;padding:3px 4px;font-size:11px;text-overflow:ellipsis}
126
+ .c button{flex:none;background:none;color:#98989f;border:0;border-radius:999px;padding:6px 8px;cursor:pointer}
127
+ .c button:hover{color:#f2f2f7}
128
+ .c button.go,.p button{background:#f59e0b;color:#1c1c1e;font-weight:600;padding:6px 14px}
129
+ .c button.go:hover,.p button:hover{background:#fbb02d;color:#1c1c1e}
130
+ .p button{border:0;border-radius:999px;cursor:pointer;padding:5px 14px}
131
+ .t{position:fixed;width:260px;background:#1c1c1e;color:#f2f2f7;border:1px solid #2c2c2e;border-radius:12px;padding:8px 12px;pointer-events:none;box-shadow:0 8px 28px #0008;white-space:pre-wrap;word-break:break-word}
124
132
  .t small{display:block;color:#98989f;margin-top:4px}
125
- .p{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);background:#1c1c1e;color:#f2f2f7;border:1px solid #3a3a3c;border-radius:20px;padding:5px 8px 5px 14px;pointer-events:auto;display:flex;gap:8px;align-items:center}
133
+ .p{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);background:#1c1c1e;color:#f2f2f7;border:1px solid #2c2c2e;border-radius:999px;padding:6px 8px 6px 16px;pointer-events:auto;display:flex;gap:8px;align-items:center}
126
134
  </style><div id="o"></div>`;
127
135
  const layer = root.getElementById("o");
128
136
  layer.style.setProperty("--c", cfg.color);
@@ -288,7 +296,8 @@
288
296
  const inHost = (e) => e.composedPath && e.composedPath().includes(host);
289
297
  const target = (x, y) => { const e = document.elementFromPoint(x, y); return e && e !== host && e !== document.documentElement ? e : null; };
290
298
  const rectFor = (els) => union(els.map((e) => e.getBoundingClientRect()));
291
- const pickElement = (e) => openComposer({ kind: "element", els: [e], rect: rectFor([e]), label: describe(e) });
299
+ const quoted = (e) => { const t = textOf(e).replace(/\s+/g, " ").trim(); return t ? `"${t.slice(0, 60)}${t.length > 60 ? "…" : ""}"` : describe(e); };
300
+ const pickElement = (e) => openComposer({ kind: "element", els: [e], rect: rectFor([e]), label: quoted(e) });
292
301
  function commitMulti() { if (!multi.length) return; const els = multi.slice(); openComposer({ kind: "multi", els, rect: rectFor(els), label: `${els.length} elements` }); }
293
302
  function areaItems(r) {
294
303
  const out = [];
@@ -4,6 +4,10 @@
4
4
  export const accept = (e: { source: unknown; origin: string; data: any }, frameWin: unknown, origin: string, token: string) =>
5
5
  !!origin && e.source === frameWin && e.origin === origin && !!e.data && e.data.kz === 1 && e.data.t === token;
6
6
 
7
+ // The desktop app's Browser tab is a <webview>: the page's messages arrive over its IPC channel, from
8
+ // that element only, so the token is all there is to check.
9
+ export const acceptHost = (d: any, token: string) => !!d && d.kz === 1 && d.t === token && !!token;
10
+
7
11
  // The page reports its address on the proxy; the board shows the app's own. Anything not on the proxy's
8
12
  // origin (a javascript: or data: URL, another site) is null: the page is untrusted and must not set the board's address.
9
13
  export const mapUrl = (href: string, origin: string, target: string): string | null => {
@@ -6,7 +6,8 @@
6
6
  import { html, raw } from "./dom.ts";
7
7
  import { post } from "./api.ts";
8
8
  import { toast } from "./toast.ts";
9
- import { accept, mapUrl, safeCrop, MAX_BOARD_NOTES } from "./annotate-lib.ts";
9
+ import { ico } from "./dom.ts";
10
+ import { accept, acceptHost, mapUrl, safeCrop, MAX_BOARD_NOTES } from "./annotate-lib.ts";
10
11
 
11
12
  type Note = Record<string, any> & { id: string; n: number };
12
13
  type Settings = { mode: string; level: string; components: boolean; color: string; clear: boolean; block: boolean };
@@ -26,11 +27,11 @@ export type Annotator = {
26
27
  };
27
28
 
28
29
  export function annotator(o: {
29
- host: HTMLElement; frame: HTMLIFrameElement; wsKey: string; run: () => { dir: string; id: string } | null; onLocation: (u: string) => void; reload: () => void; button: HTMLElement;
30
+ host: HTMLElement; frame: HTMLIFrameElement | HTMLElement; wsKey: string; run: () => { dir: string; id: string } | null; onLocation: (u: string) => void; reload: () => void; button: HTMLElement;
30
31
  }): Annotator {
31
32
  const sk = "kz-annotate", nk = "kz-ann:" + o.wsKey;
32
33
  const S: Settings = read(sk, DEFAULTS);
33
- let on = false, hide = false, pause = false, hiddenForNow = false, want = false;
34
+ let on = false, hide = false, pause = false, want = false, listOpen = false;
34
35
  let px: { origin: string; token: string; target: string } | null = null;
35
36
  let notes: Note[] = [];
36
37
  try { notes = JSON.parse(localStorage.getItem(nk) || "[]"); } catch { /* none */ }
@@ -42,11 +43,18 @@ export function annotator(o: {
42
43
  const side = document.createElement("div");
43
44
  side.className = "annlist";
44
45
  side.hidden = true;
45
- o.frame.after(side);
46
- o.frame.parentElement!.before(bar);
46
+ // Both float over the page (board.html .annrow): a dark pill bottom-right, a notes panel on the right.
47
+ const rowEl = o.frame.parentElement!;
48
+ rowEl.append(side, bar);
47
49
 
48
- const frameWin = () => o.frame.contentWindow;
49
- const say = (m: Record<string, unknown>) => { if (px) frameWin()?.postMessage({ kz: 1, t: px.token, ...m }, px.origin); };
50
+ // The Browser tab is an iframe, or in the desktop app a <webview> (talks over IPC, not postMessage).
51
+ const web = o.frame.tagName === "WEBVIEW" ? (o.frame as any) : null;
52
+ const frameWin = () => (o.frame as HTMLIFrameElement).contentWindow;
53
+ const say = (m: Record<string, unknown>) => {
54
+ if (!px) return;
55
+ const msg = { kz: 1, t: px.token, ...m };
56
+ if (web) { try { web.send("kz-ann", msg); } catch { /* not loaded yet: the page says ready when it is */ } } else frameWin()?.postMessage(msg, px.origin);
57
+ };
50
58
  const cfg = () => ({ on, mode: S.mode, hide, block: S.block, color: S.color, components: S.components });
51
59
  const markers = () => notes.map((n) => ({ n: n.n, kind: n.kind, selector: n.selector, items: n.items, pb: n.pb, page: n.page, comment: n.comment, intent: n.intent, severity: n.severity }));
52
60
  const push = () => { say({ type: "config", cfg: { ...cfg(), pause } }); say({ type: "markers", list: markers() }); };
@@ -54,13 +62,18 @@ export function annotator(o: {
54
62
  const forServer = () => notes.map((n) => ({ ...n }));
55
63
 
56
64
  function draw() {
57
- bar.hidden = !px || hiddenForNow;
58
- side.hidden = !px || hiddenForNow;
65
+ const show = !!px;
66
+ bar.hidden = !show;
67
+ side.hidden = !show || !listOpen;
68
+ rowEl.classList.toggle("lst", show && listOpen);
59
69
  o.button.classList.toggle("on", want);
60
70
  if (!px) return;
61
- const b = (id: string, label: string, title: string, active = false, disabled = false) => html`<button type="button" class="rwin${active ? " on" : ""}" data-a="${id}" title="${title}"${raw(disabled ? " disabled" : "")}>${label}</button>`;
71
+ // Icon buttons in one dark pill, as in Agentation: modes, then pause, markers, copy, send, clear, notes, settings, close.
72
+ const b = (id: string, icon: string, title: string, active = false, disabled = false, badge = 0) =>
73
+ html`<button type="button" data-a="${id}" title="${title}" aria-label="${title}" class="${active ? "on" : ""}"${raw(disabled ? " disabled" : "")}>${ico(icon)}${badge ? html`<i class="cnt">${badge}</i>` : ""}</button>`;
74
+ const mode = (id: string, icon: string, t: string) => b("mode:" + id, icon, t, on && S.mode === id);
62
75
  bar.textContent = "";
63
- bar.insertAdjacentHTML("beforeend", String(html`${raw(MODES.map(([id, l, t]) => String(b("mode:" + id, l, t, on && S.mode === id))).join(""))}<span class="sep"></span>${b("pick", on ? "Picking" : "Pick", "Turn picking on or off (Ctrl+Shift+F)", on)}${b("pause", "Pause", "Freeze animations (P)", pause)}${b("hide", "Markers", "Show or hide markers (H)", !hide)}<span class="sep"></span>${b("copy", "Copy", "Copy as markdown (C)", false, !notes.length)}${b("send", "Send to agent", "Type the notes into this run's agent (S)", false, !notes.length)}${b("clear", "Clear", "Remove all notes (X)", false, !notes.length)}<span class="sep"></span>${b("set", "Settings", "Output detail, colour, behaviour")}${b("off", "Hide", "Hide the annotator until the board reloads")}`));
76
+ bar.insertAdjacentHTML("beforeend", String(html`${mode("element", "a-pick", "Pick an element")}${mode("text", "a-text", "Select text")}${mode("multi", "a-multi", "Pick several elements")}${mode("area", "a-area", "Drag an area")}<span class="sep"></span>${b("pause", "a-pause", "Freeze animations (P)", pause)}${b("hide", "eye", "Show or hide markers (H)", !hide)}${b("copy", "a-copy", "Copy notes as markdown (C)", false, !notes.length)}${b("send", "send", "Type the notes into this run's agent (S)", false, !notes.length)}${b("clear", "trash", "Remove all notes (X)", false, !notes.length)}<span class="sep"></span>${b("list", "note", "Notes list", listOpen, false, notes.length)}${b("set", "gear", "Output detail, colour, behaviour", !!settings)}${b("off", "x", "Close the annotator (the Annotate button brings it back)")}`));
64
77
  side.textContent = "";
65
78
  if (!notes.length) side.insertAdjacentHTML("beforeend", String(html`<p class="annempty">No notes yet. Pick something on the page and write what should change.</p>`));
66
79
  for (const n of notes) {
@@ -97,15 +110,16 @@ export function annotator(o: {
97
110
  function setMode(m: string) { S.mode = m; on = true; write(sk, S); push(); draw(); }
98
111
 
99
112
  const act = (a: string) => {
100
- if (a.startsWith("mode:")) return setMode(a.slice(5));
113
+ if (a.startsWith("mode:")) return on && S.mode === a.slice(5) ? (on = false, push(), draw()) : setMode(a.slice(5));
101
114
  if (a === "pick") { on = !on; push(); draw(); }
102
115
  else if (a === "pause") { pause = !pause; push(); draw(); }
103
116
  else if (a === "hide") { hide = !hide; push(); draw(); }
104
117
  else if (a === "copy") void copy();
105
118
  else if (a === "send") void sendNotes();
106
119
  else if (a === "clear") clear();
107
- else if (a === "set") { settings = settings ? null : document.createElement("div"); if (settings) settings.className = "annset"; drawSettings(); draw(); }
108
- else if (a === "off") { hiddenForNow = true; want = false; on = false; pause = false; px = null; o.button.hidden = true; draw(); o.reload(); }
120
+ else if (a === "list") { listOpen = !listOpen; draw(); }
121
+ else if (a === "set") { settings = settings ? null : document.createElement("div"); if (settings) { settings.className = "annset"; listOpen = true; } drawSettings(); draw(); }
122
+ else if (a === "off") { want = false; on = false; pause = false; listOpen = false; px = null; draw(); o.reload(); }
109
123
  };
110
124
  bar.onclick = (e) => { const a = (e.target as Element).closest<HTMLElement>("[data-a]")?.dataset.a; if (a) act(a); };
111
125
  side.onclick = (e) => {
@@ -147,7 +161,10 @@ export function annotator(o: {
147
161
  const onMsg = (e: MessageEvent) => {
148
162
  if (!px || !o.host.isConnected) return;
149
163
  if (!accept(e, frameWin(), px.origin, px.token)) return;
150
- const d = e.data;
164
+ handle(e.data);
165
+ };
166
+ const handle = (d: any) => {
167
+ if (!px) return;
151
168
  if (d.type === "ready") { on = true; push(); draw(); }
152
169
  else if (d.type === "loc") { const u = mapUrl(String(d.href), px.origin, px.target); if (u) o.onLocation(u); }
153
170
  else if (d.type === "key") keyAct(String(d.key));
@@ -163,12 +180,13 @@ export function annotator(o: {
163
180
  }
164
181
  };
165
182
  addEventListener("message", onMsg);
183
+ web?.addEventListener("ipc-message", (e: any) => { if (px && o.host.isConnected && e.channel === "kz-ann" && acceptHost(e.args?.[0], px.token)) handle(e.args[0]); });
166
184
 
167
185
  return {
168
186
  proxied: () => !!px,
169
187
  active: () => on,
170
188
  async open(u) {
171
- if (!want || hiddenForNow || !/^https?:\/\/(localhost|127\.0\.0\.1|\[::1\])(:|\/|$)/.test(u)) { px = null; on = false; pause = false; draw(); return null; }
189
+ if (!want || !/^https?:\/\/(localhost|127\.0\.0\.1|\[::1\])(:|\/|$)/.test(u)) { px = null; on = false; pause = false; draw(); return null; }
172
190
  const r = await post("/annotate/open", { url: u });
173
191
  if (!r?.ok) { want = false; px = null; draw(); return null; }
174
192
  px = { origin: r.origin, token: r.token, target: new URL(u).origin };
@@ -464,11 +464,21 @@ function browser(el: HTMLElement) {
464
464
  (el as any).browseTo = (u: string) => go(u);
465
465
  // On a phone over the tailnet, localhost is the phone itself: framing it shows nothing useful.
466
466
  const local = (u) => /^https?:\/\/(localhost|127\.0\.0\.1|\[::1\])(:|\/|$)/.test(u);
467
- const frame = document.createElement("iframe");
467
+ // In the desktop app the page is a <webview> in its own persistent session (desktop/src/browser-pane.ts):
468
+ // a first-party page with its own cookies, as in Orca. An iframe on the board's 127.0.0.1 origin made
469
+ // localhost:8000 third-party, so its Lax session cookie never came back (a login answered 419), and the
470
+ // framing blocks screen capture. Browsers, and an older app without the flag, keep the iframe.
471
+ const web = !!(window as any).kaizenDesktop?.browserPane;
472
+ const frame = document.createElement(web ? "webview" : "iframe") as HTMLIFrameElement;
468
473
  frame.className = "rframe";
469
474
  frame.title = "Browser";
470
- // Dev apps run; a framed page cannot navigate the board itself (no allow-top-navigation).
471
- frame.setAttribute("sandbox", "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox allow-modals allow-downloads");
475
+ if (web) frame.setAttribute("allowpopups", "");
476
+ else {
477
+ // Dev apps run; a framed page cannot navigate the board itself (no allow-top-navigation).
478
+ frame.setAttribute("sandbox", "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox allow-modals allow-downloads");
479
+ // Without these the browser blocks microphone, camera and screen capture for the framed page.
480
+ frame.setAttribute("allow", "display-capture; microphone; camera; clipboard-read; clipboard-write; fullscreen");
481
+ }
472
482
  const note = document.createElement("p");
473
483
  note.className = "rnote";
474
484
  const far = "This page is on the computer running kaizen; from this device localhost is the device itself. Use Open in browser on that computer.";
@@ -511,7 +521,7 @@ function browser(el: HTMLElement) {
511
521
  void ann.open(u).then((via) => {
512
522
  if (seq !== nav) return;
513
523
  frame.src = via ?? u;
514
- if (via) return;
524
+ if (via || web) return; // a webview is a top-level page: nothing refuses to be framed
515
525
  frameCheck(u);
516
526
  });
517
527
  };
@@ -562,6 +572,20 @@ function browser(el: HTMLElement) {
562
572
  else if (b === "back" && back.length) fwd.push(url), go(back.pop()!, false);
563
573
  else if (b === "fwd" && fwd.length) back.push(url), go(fwd.pop()!, false);
564
574
  };
575
+ if (web) {
576
+ // The page navigated on its own (a link, a form, a redirect after login): show its address.
577
+ // Through the annotator's proxy the page reports its address itself (onLocation).
578
+ const nav2 = (e: any) => {
579
+ if (e.isMainFrame === false || ann.proxied() || !/^https?:\/\//.test(e.url) || e.url === url) return;
580
+ back.push(url), (fwd.length = 0);
581
+ url = e.url;
582
+ inp.value = url;
583
+ if (ext) ext.href = url;
584
+ try { localStorage.setItem(k, url); } catch {}
585
+ };
586
+ frame.addEventListener("did-navigate", nav2);
587
+ frame.addEventListener("did-navigate-in-page", nav2);
588
+ }
565
589
  go(url, false);
566
590
  }
567
591
 
package/web/board.html CHANGED
@@ -675,9 +675,9 @@ body.runv #runv{grid-area:1/1;display:flex;flex-direction:column;min-width:0;min
675
675
  .rpane{min-width:0;min-height:0;display:flex;flex-direction:column;position:relative}.rpane[hidden]{display:none}
676
676
  .rpane .ph{display:flex;cursor:grab;gap:6px;align-items:center;justify-content:space-between;height:var(--pane-h);padding:0 var(--padx);font-size:11px;color:var(--dim);border-bottom:1px solid var(--line)}.rpane.split .ph{display:flex;gap:6px;align-items:center;justify-content:space-between;height:var(--pane-h);padding:0 var(--padx);font-size:11px;color:var(--dim);border-bottom:1px solid var(--line)}.rpane.split .ph button{color:var(--dim);padding:0 4px}
677
677
  .rpane>.term{flex:1;min-height:0;padding:6px 0 0 8px}
678
- .rframe{flex:1;min-height:0;width:100%;border:0;background:var(--bg-2)}
678
+ .rframe{flex:1;min-height:0;width:100%;border:0;background:var(--bg-2)}webview.rframe{display:flex}.rframe[hidden]{display:none}
679
679
  .urlbar{display:flex;gap:6px;align-items:center;padding:6px 10px;border-bottom:1px solid var(--line)}.urlbar input{flex:1;min-width:0;font:12px var(--mono);border-radius:var(--r-s)}.urlbar button{width:28px;height:28px;display:grid;place-items:center;border-radius:var(--r-s);color:var(--dim);font-size:16px}.urlbar button:hover{background:var(--hover)}.urlbar svg{width:15px;height:15px}
680
- .rpane:not(.split)>.ph{display:none}.annrow{flex:1;min-height:0;display:flex}.annrow>.rframe{flex:1;min-width:0;width:auto}.annbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:4px 10px;border-bottom:1px solid var(--line);font-size:12px;color:var(--dim)}.annbar[hidden],.annlist[hidden],.urlbar [hidden]{display:none}.annbar .rwin.on,.urlbar .rwin.on{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.annbar .rwin[disabled]{opacity:.45;cursor:default}.annbar .sep{width:1px;height:18px;background:var(--line)}.annlist{flex:0 0 280px;min-width:0;overflow:auto;border-left:1px solid var(--line);padding:8px;display:flex;flex-direction:column;gap:8px;font-size:12px}.annempty{color:var(--dim);margin:8px 4px}.ann{display:flex;gap:8px;align-items:flex-start;border:1px solid var(--line);border-radius:var(--r-s);padding:8px}.ann.flash{outline:2px solid var(--accent)}.ann>button{background:none;border:0;color:var(--dim);cursor:pointer;font-size:16px;line-height:1}.annn{flex:0 0 22px;height:22px;border-radius:50%;background:var(--accent);color:var(--on-accent);display:grid;place-items:center;font-size:12px}.annn.g{background:#34c759;color:#fff}.annb{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.annc{color:var(--ink);white-space:pre-wrap;word-break:break-word;outline:0;border-radius:3px}.annc:focus{background:var(--hover)}.annb code{color:var(--dim);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.annb small{color:var(--dim)}.annb img{max-width:100%;border:1px solid var(--line);border-radius:var(--r-xs)}.annset{display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:var(--r-s);padding:8px}.annset label{display:flex;gap:6px;align-items:center;justify-content:space-between}@media(max-width:640px){.annlist{flex-basis:160px}}.rnote,.rnone{color:var(--dim);padding:16px;margin:0}#rpanes{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}#rpanes>.rtree,#rpanes>.rpane{grid-area:1/1}.rtree{display:flex;min-width:0;min-height:0}.rtree.rows{flex-direction:column}.rtree>*{min-width:0;min-height:0}.rpane .ph>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.pmove>summary{list-style:none;cursor:pointer;padding:0 4px;border-radius:var(--r-s)}.pmove>summary::-webkit-details-marker{display:none}.pmove>summary:hover{background:var(--hover);color:var(--ink)}.pmove .menu-pop{position:fixed;z-index:40;right:auto;bottom:auto;width:max-content;min-width:200px;max-width:320px}.pmove .mh{display:block;padding:4px 10px;font-size:11px;color:var(--dim);font-weight:500}.rpane .ph button{background:none;border:0;color:inherit;cursor:pointer}.rdrop{box-shadow:inset 0 -2px 0 var(--accent)!important;background:var(--hover)!important}.rpane.rdrop-l{box-shadow:inset 3px 0 0 var(--accent)}.rpane.rdrop-r{box-shadow:inset -3px 0 0 var(--accent)}.rpane.rdrop-t{box-shadow:inset 0 3px 0 var(--accent)}.rpane.rdrop-b{box-shadow:inset 0 -3px 0 var(--accent)}.rgut{flex:0 0 1px;background:var(--line);position:relative;z-index:2}.rdrag iframe{pointer-events:none}.rgut::after{content:"";position:absolute;inset:0 -4px;cursor:col-resize}.rtree.rows>.rgut::after{inset:-4px 0;cursor:row-resize}.rpane.split.focus{outline:1px solid var(--accent);outline-offset:-1px}.rwin{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border:1px solid var(--line);border-radius:var(--r-s);background:none;color:var(--ink);font:inherit;font-size:12px;cursor:pointer;text-decoration:none;white-space:nowrap}.rwin:hover{background:var(--hover)}.rwin svg{width:14px;height:14px}.rnote b{display:block;color:var(--ink);margin-bottom:4px}.rnote .rwin{margin:8px 6px 0 0;vertical-align:middle}.urlbar button.rwin{width:auto;height:28px;padding:0 10px;display:inline-flex;font-size:12px;color:var(--ink)}.shots{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin-top:12px}.shots figure{margin:0;border:1px solid var(--line);border-radius:var(--r-xs);overflow:hidden;background:var(--bg-2)}.shots img{display:block;width:100%;height:180px;object-fit:cover;object-position:top;border-radius:0}.shots figcaption{padding:6px 10px;font-size:12px;color:var(--dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rprev{overflow:auto;padding:16px 20px}.rprev img{max-width:100%;border-radius:var(--r-xs)}
680
+ .rpane:not(.split)>.ph{display:none}.annrow{flex:1;min-height:0;display:flex;position:relative}.annrow>.rframe{flex:1;min-width:0;width:auto}.annbar{position:absolute;right:14px;bottom:14px;z-index:6;display:flex;flex-wrap:wrap;justify-content:center;gap:2px;align-items:center;max-width:calc(100% - 28px);padding:6px;border-radius:26px;background:#1c1c1e;color:#c7c7cc;border:1px solid #3a3a3c;box-shadow:0 8px 28px #0007}.annbar button{position:relative;width:32px;height:32px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:none;color:inherit;cursor:pointer}.annbar button:hover{background:#2c2c2e;color:#fff}.annbar button.on{background:#3a3a3c;color:#fff}.annbar button svg{width:17px;height:17px}.annbar .cnt{position:absolute;top:1px;right:0;min-width:15px;height:15px;padding:0 4px;border-radius:8px;background:#f59e0b;color:#1c1c1e;font:600 10px/15px system-ui;font-style:normal;text-align:center}.annbar .sep{width:1px;height:18px;background:#3a3a3c;margin:0 4px}.annrow.lst .annbar{right:314px}.annbar[hidden],.annlist[hidden],.urlbar [hidden]{display:none}.urlbar .rwin.on{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.annbar button[disabled]{opacity:.35;cursor:default}.annbar button[disabled]:hover{background:none;color:inherit}.annlist{position:absolute;top:0;right:0;bottom:0;z-index:5;width:300px;max-width:85%;overflow:auto;background:var(--bg);border-left:1px solid var(--line);box-shadow:-8px 0 24px #0003;padding:10px;display:flex;flex-direction:column;gap:8px;font-size:12px}.annempty{color:var(--dim);margin:8px 4px}.ann{display:flex;gap:8px;align-items:flex-start;border:1px solid var(--line);border-radius:var(--r-s);padding:8px}.ann.flash{outline:2px solid var(--accent)}.ann>button{background:none;border:0;color:var(--dim);cursor:pointer;font-size:16px;line-height:1}.annn{flex:0 0 22px;height:22px;border-radius:50%;background:var(--accent);color:var(--on-accent);display:grid;place-items:center;font-size:12px}.annn.g{background:#34c759;color:#fff}.annb{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.annc{color:var(--ink);white-space:pre-wrap;word-break:break-word;outline:0;border-radius:3px}.annc:focus{background:var(--hover)}.annb code{color:var(--dim);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.annb small{color:var(--dim)}.annb img{max-width:100%;border:1px solid var(--line);border-radius:var(--r-xs)}.annset{display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:var(--r-s);padding:8px}.annset label{display:flex;gap:6px;align-items:center;justify-content:space-between}@media(max-width:640px){.annlist{width:240px}.annrow.lst .annbar{right:254px}}.rnote,.rnone{color:var(--dim);padding:16px;margin:0}#rpanes{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}#rpanes>.rtree,#rpanes>.rpane{grid-area:1/1}.rtree{display:flex;min-width:0;min-height:0}.rtree.rows{flex-direction:column}.rtree>*{min-width:0;min-height:0}.rpane .ph>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.pmove>summary{list-style:none;cursor:pointer;padding:0 4px;border-radius:var(--r-s)}.pmove>summary::-webkit-details-marker{display:none}.pmove>summary:hover{background:var(--hover);color:var(--ink)}.pmove .menu-pop{position:fixed;z-index:40;right:auto;bottom:auto;width:max-content;min-width:200px;max-width:320px}.pmove .mh{display:block;padding:4px 10px;font-size:11px;color:var(--dim);font-weight:500}.rpane .ph button{background:none;border:0;color:inherit;cursor:pointer}.rdrop{box-shadow:inset 0 -2px 0 var(--accent)!important;background:var(--hover)!important}.rpane.rdrop-l{box-shadow:inset 3px 0 0 var(--accent)}.rpane.rdrop-r{box-shadow:inset -3px 0 0 var(--accent)}.rpane.rdrop-t{box-shadow:inset 0 3px 0 var(--accent)}.rpane.rdrop-b{box-shadow:inset 0 -3px 0 var(--accent)}.rgut{flex:0 0 1px;background:var(--line);position:relative;z-index:2}.rdrag iframe,.rdrag webview{pointer-events:none}.rgut::after{content:"";position:absolute;inset:0 -4px;cursor:col-resize}.rtree.rows>.rgut::after{inset:-4px 0;cursor:row-resize}.rpane.split.focus{outline:1px solid var(--accent);outline-offset:-1px}.rwin{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border:1px solid var(--line);border-radius:var(--r-s);background:none;color:var(--ink);font:inherit;font-size:12px;cursor:pointer;text-decoration:none;white-space:nowrap}.rwin:hover{background:var(--hover)}.rwin svg{width:14px;height:14px}.rnote b{display:block;color:var(--ink);margin-bottom:4px}.rnote .rwin{margin:8px 6px 0 0;vertical-align:middle}.urlbar button.rwin{width:auto;height:28px;padding:0 10px;display:inline-flex;font-size:12px;color:var(--ink)}.shots{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin-top:12px}.shots figure{margin:0;border:1px solid var(--line);border-radius:var(--r-xs);overflow:hidden;background:var(--bg-2)}.shots img{display:block;width:100%;height:180px;object-fit:cover;object-position:top;border-radius:0}.shots figcaption{padding:6px 10px;font-size:12px;color:var(--dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rprev{overflow:auto;padding:16px 20px}.rprev img{max-width:100%;border-radius:var(--r-xs)}
681
681
  .rempty{margin:auto;text-align:center;color:var(--dim)}
682
682
  body.runv #panel{grid-area:1/2;position:relative!important;inset:auto!important;transform:none!important;visibility:visible!important;transition:width .18s;overflow:hidden;width:var(--rpanel-w,340px)!important;max-width:none;z-index:auto!important;border:0;box-shadow:none;background:var(--canvas);display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:auto minmax(0,1fr) auto}
683
683
  body.runv #panel>header{grid-area:1/1;border:0;padding:11px 12px 12px 18px}body.runv #pfoot{border:0;padding:12px 12px 14px 18px}
@@ -1355,7 +1355,7 @@ html body.wsb:not(.paged) #board{grid-template-columns:repeat(4,minmax(200px,1fr
1355
1355
  <symbol id="i-claude" viewBox="0 0 24 24"><path fill="#D97757" stroke="none" d="m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z"/></symbol>
1356
1356
  <symbol id="i-gemini" viewBox="0 0 24 24"><path fill="#8E75B2" stroke="none" d="M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81"/></symbol><symbol id="i-codex" viewBox="0 0 24 24"><path fill="currentColor" stroke="none" d="M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"/></symbol>
1357
1357
  <symbol id="i-arrow" viewBox="0 0 24 24"><path d="M5 12h14M13 6l6 6-6 6"/></symbol>
1358
- <symbol id="i-img" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><circle cx="9" cy="10" r="2"/><path d="m21 17-5-5-9 8"/></symbol><symbol id="i-eye" viewBox="0 0 24 24"><path d="M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/></symbol>
1358
+ <symbol id="i-img" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="2"/><circle cx="9" cy="10" r="2"/><path d="m21 17-5-5-9 8"/></symbol><symbol id="i-a-pick" viewBox="0 0 24 24"><path d="m5 3 14 7-6 2-2 6z"/></symbol><symbol id="i-a-text" viewBox="0 0 24 24"><path d="M5 6V4h14v2M12 4v16M9 20h6"/></symbol><symbol id="i-a-multi" viewBox="0 0 24 24"><rect x="3" y="3" width="10" height="10" rx="1.5"/><rect x="11" y="11" width="10" height="10" rx="1.5"/></symbol><symbol id="i-a-area" viewBox="0 0 24 24"><rect x="3.5" y="3.5" width="17" height="17" rx="2" stroke-dasharray="3 3"/></symbol><symbol id="i-a-pause" viewBox="0 0 24 24"><path d="M9 5v14M15 5v14"/></symbol><symbol id="i-a-copy" viewBox="0 0 24 24"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V6a2 2 0 0 1 2-2h8"/></symbol><symbol id="i-eye" viewBox="0 0 24 24"><path d="M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z"/><circle cx="12" cy="12" r="3"/></symbol>
1359
1359
  <symbol id="t-request" viewBox="0 0 24 24"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></symbol>
1360
1360
  <symbol id="t-notes" viewBox="0 0 24 24"><path d="M12 17v5M9 3h6l-1 6 3 3H7l3-3z"/></symbol>
1361
1361
  <symbol id="t-explore" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="m16 8-2.5 5.5L8 16l2.5-5.5L16 8z"/></symbol>