kaizen-agent 1.60.0 → 1.60.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.
- package/cli/pty.test.ts +7 -2
- package/cli/pty.ts +4 -3
- package/cli/web-pr.test.ts +51 -0
- package/cli/web.ts +30 -1
- package/cli/worktree.test.ts +104 -1
- package/cli/worktree.ts +117 -2
- package/package.json +1 -1
- package/web/board/git.ts +309 -62
- package/web/board/panel.ts +15 -15
- package/web/board/run-view.ts +26 -5
- package/web/board/search-match.ts +20 -0
- package/web/board/search.test.ts +20 -0
- package/web/board/search.ts +324 -0
- package/web/board/workspace.ts +2 -0
- package/web/board/ws-board-ui.ts +12 -1
- package/web/board/ws-tabs.test.ts +11 -1
- package/web/board/ws-tabs.ts +4 -1
- package/web/board.html +7 -1
- package/web/board.js +126 -42
- package/web/notebook.js +42 -24
- package/web/notes.html +1 -0
- package/web/term.js +1 -1
- package/web/video.html +1 -0
- package/web/video.js +72 -54
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
// Global search: the "Search" entry on top of the side menu, and Ctrl/Cmd+K anywhere, open
|
|
2
|
+
// one palette over workspaces, runs and ideas, chats, agent terminals, projects, pages and
|
|
3
|
+
// actions (modelled on Orca's "Jump to..." palette). Nothing is fetched but /chats; the rest
|
|
4
|
+
// is what the side menu already holds. Stands alone like workspace.ts, so the notebook and
|
|
5
|
+
// video pages carry it too: a pick the page cannot do in place navigates instead.
|
|
6
|
+
import { $, html, raw } from "./dom.ts";
|
|
7
|
+
import { age } from "./labels.ts";
|
|
8
|
+
import { openAdd } from "./add-project.ts";
|
|
9
|
+
import { cardHref, projName, railData, stateOf, titleOf, wsHref, wsLabel, wsOfCard } from "./workspace.ts";
|
|
10
|
+
import { match, type Item } from "./search-match.ts";
|
|
11
|
+
import { leaves, wsKey } from "./ws-tabs.ts";
|
|
12
|
+
|
|
13
|
+
// The pages that can open a thing in place answer this event and cancel it.
|
|
14
|
+
const ask = (name: string, detail: any) => !dispatchEvent(new CustomEvent(name, { cancelable: true, detail }));
|
|
15
|
+
// A menu entry's own click: in place on the board, a page load elsewhere.
|
|
16
|
+
const page = (v: string, href: string) => () => {
|
|
17
|
+
const a = document.querySelector<HTMLElement>(`.rail a.it[data-view="${v}"]`);
|
|
18
|
+
a ? a.click() : (location.href = href);
|
|
19
|
+
};
|
|
20
|
+
const openWs = (dir: string, ws: string) => {
|
|
21
|
+
if (!ask("kz-open-ws", { dir, ws })) location.href = wsHref(dir, ws);
|
|
22
|
+
};
|
|
23
|
+
// The run view's saved layouts (run-view.ts keeps them here per workspace).
|
|
24
|
+
const layouts = (): Record<string, any> => {
|
|
25
|
+
try {
|
|
26
|
+
return JSON.parse(localStorage.getItem("kz-runtabs") || "{}");
|
|
27
|
+
} catch {
|
|
28
|
+
return {};
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
// A tab: the board opens it in place; elsewhere its screen is chosen in storage, then the workspace loads.
|
|
32
|
+
const openTab = (dir: string, ws: string, id: string) => {
|
|
33
|
+
if (ask("kz-open-tab", { dir, ws, id })) return;
|
|
34
|
+
const all = layouts(),
|
|
35
|
+
s = all[wsKey(dir, ws)],
|
|
36
|
+
sc = s?.screens?.find((x) => leaves(x.tree).includes(id));
|
|
37
|
+
if (sc)
|
|
38
|
+
try {
|
|
39
|
+
s.on = sc.id;
|
|
40
|
+
localStorage.setItem("kz-runtabs", JSON.stringify(all));
|
|
41
|
+
} catch {}
|
|
42
|
+
location.href = wsHref(dir, ws);
|
|
43
|
+
};
|
|
44
|
+
// The run view's own tabs worth jumping to; agent tabs are listed with the terminals.
|
|
45
|
+
const TAB_KINDS = ["local", "preview", "note", "history", "shell"];
|
|
46
|
+
const browsed = (k: string) => {
|
|
47
|
+
try {
|
|
48
|
+
return localStorage.getItem("kz-browse:" + k)?.replace(/^https?:\/\//, "").replace(/\/$/, "");
|
|
49
|
+
} catch {}
|
|
50
|
+
};
|
|
51
|
+
const ICO = {
|
|
52
|
+
ws: '<circle cx="6" cy="6" r="2"/><circle cx="6" cy="18" r="2"/><circle cx="18" cy="8" r="2"/><path d="M6 8v8M18 10c0 4-6 3-12 6"/>',
|
|
53
|
+
run: '<path d="M5 4l14 8-14 8z"/>',
|
|
54
|
+
idea: '<path d="M9 18h6M10 21h4M12 3a6 6 0 0 0-4 10.5c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5A6 6 0 0 0 12 3z"/>',
|
|
55
|
+
chat: '<path d="M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z"/>',
|
|
56
|
+
term: '<path d="M4 17l6-5-6-5M12 19h8"/>',
|
|
57
|
+
proj: '<path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>',
|
|
58
|
+
page: '<rect x="4" y="4" width="16" height="16" rx="2"/><path d="M4 9h16"/>',
|
|
59
|
+
act: '<path d="M13 3L5 14h6l-1 7 8-11h-6z"/>',
|
|
60
|
+
tab: '<rect x="3" y="5" width="18" height="14" rx="2"/><path d="M3 9h8V5"/>',
|
|
61
|
+
plus: '<path d="M12 5v14M5 12h14"/>',
|
|
62
|
+
search: '<circle cx="11" cy="11" r="7"/><path d="M20 20l-4-4"/>',
|
|
63
|
+
};
|
|
64
|
+
const svg = (k: string) => raw(`<svg viewBox="0 0 24 24" aria-hidden="true"><g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${ICO[k]}</g></svg>`);
|
|
65
|
+
|
|
66
|
+
let chats: any[] = [];
|
|
67
|
+
function items(): Item[] {
|
|
68
|
+
const { cards, projects = [], agents = [] } = railData();
|
|
69
|
+
const now = Date.now();
|
|
70
|
+
const cur = new URLSearchParams(location.search);
|
|
71
|
+
// The workspace open now: named by the address, or the one holding the run it names.
|
|
72
|
+
const curRun = cur.get("id") && cards.find((c) => c.kind === "run" && c.state === cur.get("dir") && c.id === cur.get("id"));
|
|
73
|
+
const curWs = cur.get("ws") ?? (curRun ? wsOfCard(curRun, projects) : null);
|
|
74
|
+
const out: Item[] = [];
|
|
75
|
+
const saved = layouts();
|
|
76
|
+
// Workspaces, the one open now first; then by their latest run.
|
|
77
|
+
const latest = new Map<string, number>();
|
|
78
|
+
for (const c of cards) {
|
|
79
|
+
const k = c.state + "\0" + wsOfCard(c, projects);
|
|
80
|
+
latest.set(k, Math.max(latest.get(k) ?? 0, c.moved ?? 0));
|
|
81
|
+
}
|
|
82
|
+
for (const p of projects) {
|
|
83
|
+
const name = projName(p.dir, projects);
|
|
84
|
+
for (const w of p.workspaces ?? []) {
|
|
85
|
+
const here = cur.get("dir") === p.dir && curWs === w.path;
|
|
86
|
+
const at = latest.get(p.dir + "\0" + w.path);
|
|
87
|
+
out.push({
|
|
88
|
+
group: here ? "Current" : "Workspaces",
|
|
89
|
+
title: wsLabel(w),
|
|
90
|
+
sub: name,
|
|
91
|
+
when: at ? age(at, now) : undefined,
|
|
92
|
+
hay: `${wsLabel(w)} ${name} ${w.path} workspace`,
|
|
93
|
+
at: here ? Infinity : at ?? 0,
|
|
94
|
+
ico: "ws",
|
|
95
|
+
act: () => openWs(p.dir, w.path),
|
|
96
|
+
});
|
|
97
|
+
const k = wsKey(p.dir, w.path),
|
|
98
|
+
lay = saved[k];
|
|
99
|
+
for (const t of lay?.tabs ?? []) {
|
|
100
|
+
if (!TAB_KINDS.includes(t.kind) || lay.hidden?.includes(t.id)) continue;
|
|
101
|
+
const title = (t.kind === "local" && browsed(k)) || t.title;
|
|
102
|
+
out.push({ group: "Tabs", title, sub: `${wsLabel(w)} · ${name}`, hay: `${title} ${t.title} ${t.kind} ${t.note ?? ""} ${wsLabel(w)} ${name} tab`, ico: "tab", act: () => openTab(p.dir, w.path, t.id) });
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
out.push({ group: "Projects", title: name, hay: `${name} ${p.dir} project`, ico: "proj", act: () => {
|
|
106
|
+
const main = p.workspaces?.find((w) => w.main) ?? p.workspaces?.[0];
|
|
107
|
+
main ? openWs(p.dir, main.path) : page("board", "/?view=board")();
|
|
108
|
+
} });
|
|
109
|
+
}
|
|
110
|
+
// Runs and ideas, not archived.
|
|
111
|
+
for (const c of cards.filter((c) => !c.archived)) {
|
|
112
|
+
const st = stateOf(c);
|
|
113
|
+
out.push({
|
|
114
|
+
group: c.kind === "run" ? "Runs" : "Ideas",
|
|
115
|
+
title: titleOf(c) || c.id,
|
|
116
|
+
sub: projName(c.state, projects),
|
|
117
|
+
when: c.moved ? age(c.moved, now) : undefined,
|
|
118
|
+
hay: `${titleOf(c)} ${c.id ?? ""} ${c.text ?? ""} ${projName(c.state, projects)} ${st}`,
|
|
119
|
+
at: c.moved ?? 0,
|
|
120
|
+
dot: st,
|
|
121
|
+
ico: c.kind === "run" ? "run" : "idea",
|
|
122
|
+
act: () => {
|
|
123
|
+
if (!ask("kz-open-card", { dir: c.state, id: c.kind === "run" ? c.id : undefined, text: c.text })) location.href = cardHref(c);
|
|
124
|
+
},
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
for (const c of chats) {
|
|
128
|
+
// updated is an ISO date string.
|
|
129
|
+
const at = Date.parse(c.updated) || 0;
|
|
130
|
+
out.push({
|
|
131
|
+
group: "Chats & terminals",
|
|
132
|
+
title: c.title || "Chat",
|
|
133
|
+
sub: c.project ? projName(c.project, projects) : undefined,
|
|
134
|
+
when: at ? age(at, now) : undefined,
|
|
135
|
+
hay: `${c.title} chat ${c.project ?? ""}`,
|
|
136
|
+
at,
|
|
137
|
+
dot: c.busy ? "build" : undefined,
|
|
138
|
+
ico: "chat",
|
|
139
|
+
act: () => {
|
|
140
|
+
try {
|
|
141
|
+
sessionStorage.setItem("kz-chat", c.id);
|
|
142
|
+
} catch {}
|
|
143
|
+
page("home", "/")();
|
|
144
|
+
},
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
for (const a of agents)
|
|
148
|
+
out.push({
|
|
149
|
+
group: "Chats & terminals",
|
|
150
|
+
title: a.name || a.agent || "Terminal",
|
|
151
|
+
sub: projName(a.dir, projects),
|
|
152
|
+
hay: `${a.name} ${a.agent ?? ""} ${a.run ?? ""} ${a.last ?? ""} ${projName(a.dir, projects)} terminal agent`,
|
|
153
|
+
at: a.at ?? a.born ?? 0,
|
|
154
|
+
dot: a.asking ? "wait" : a.busy ? "build" : "done",
|
|
155
|
+
ico: "term",
|
|
156
|
+
act: () => {
|
|
157
|
+
if (!ask("kz-open-term", { dir: a.dir, ws: a.ws, key: a.key })) location.href = wsHref(a.dir, a.ws ?? "");
|
|
158
|
+
},
|
|
159
|
+
});
|
|
160
|
+
// Pages and actions. Each clicks the side menu's own control, so it behaves the same.
|
|
161
|
+
const click = (id: string) => () => $(id)?.click();
|
|
162
|
+
const acts: [string, string, () => void, string?][] = [
|
|
163
|
+
["Home", "page", page("home", "/"), "chat"],
|
|
164
|
+
["Icebox", "page", page("sources", "/?view=icebox"), "requests sources gathered"],
|
|
165
|
+
["Ideas", "page", page("ideas", "/?view=ideas"), "backlog"],
|
|
166
|
+
["Board", "page", page("board", "/?view=board"), "kanban runs"],
|
|
167
|
+
["Notes", "page", () => (location.href = "/notebook"), "notebook docs"],
|
|
168
|
+
["Settings", "page", page("settings", "/?view=settings"), "preferences config"],
|
|
169
|
+
["New idea", "act", () => ($("newtop") ? $("newtop").click() : (location.href = "/?view=board")), "create add run"],
|
|
170
|
+
["Add a project", "act", () => openAdd({ dir: null }), "clone folder create workspace"],
|
|
171
|
+
["Toggle theme", "act", click("themet"), "dark light"],
|
|
172
|
+
["Collapse or expand menu", "act", click("fold"), "sidebar rail"],
|
|
173
|
+
["Keyboard shortcuts", "act", click("kbd"), "keys help"],
|
|
174
|
+
["Report an issue", "act", () => open("/issue", "_blank", "noopener"), "bug feedback"],
|
|
175
|
+
];
|
|
176
|
+
for (const [title, ico, act, kw] of acts) out.push({ group: "Actions", title, hay: `${title} ${kw ?? ""}`, ico, act });
|
|
177
|
+
return out;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
const ORDER = ["Current", "Workspaces", "Tabs", "Chats & terminals", "Runs", "Ideas", "Projects", "Actions"];
|
|
181
|
+
// With nothing typed each group shows its most recent few, as Orca's does.
|
|
182
|
+
const CAP = { Workspaces: 5, Tabs: 4, "Chats & terminals": 5, Runs: 5, Ideas: 3, Projects: 5 };
|
|
183
|
+
|
|
184
|
+
let dl: HTMLDialogElement | null = null;
|
|
185
|
+
let shown: Item[] = [];
|
|
186
|
+
let sel = 0;
|
|
187
|
+
function draw() {
|
|
188
|
+
const q = (dl!.querySelector("input") as HTMLInputElement).value;
|
|
189
|
+
const all = items();
|
|
190
|
+
const hit = q.trim() ? match(all, q) : all.slice().sort((a, b) => (b.at ?? 0) - (a.at ?? 0));
|
|
191
|
+
shown = [];
|
|
192
|
+
// Typed: the group holding the best match comes first, so Enter takes it.
|
|
193
|
+
const order = q.trim() ? [...new Set(hit.map((i) => i.group))] : ORDER;
|
|
194
|
+
for (const g of order) {
|
|
195
|
+
const rows = hit.filter((i) => i.group === g);
|
|
196
|
+
shown.push(...rows.slice(0, q.trim() ? 8 : CAP[g] ?? rows.length));
|
|
197
|
+
}
|
|
198
|
+
// Orca offers to create what was typed; here that is a new idea.
|
|
199
|
+
if (q.trim())
|
|
200
|
+
shown.push({ group: "Create", title: `New idea "${q.trim()}"`, hay: "", ico: "plus", act: () => newIdeaWith(q.trim()) });
|
|
201
|
+
sel = Math.min(sel, shown.length - 1);
|
|
202
|
+
const list = dl!.querySelector(".gs-list")!;
|
|
203
|
+
let g = "";
|
|
204
|
+
list.innerHTML = String(
|
|
205
|
+
html`${shown.map((i, n) => {
|
|
206
|
+
const head = i.group !== g ? ((g = i.group), html`<div class="gs-h" role="presentation">${i.group}</div>`) : "";
|
|
207
|
+
return html`${head}<div class="gs-i" role="option" id="gs-${n}" data-n="${n}" aria-selected="${String(n === sel)}">${svg(i.ico)}${i.dot ? html`<span class="si ${i.dot}"></span>` : ""}<span class="gs-t">${i.title}</span>${i.sub ? html`<span class="gs-s">${i.sub}</span>` : ""}${i.when ? html`<span class="gs-w">${i.when}</span>` : ""}</div>`;
|
|
208
|
+
})}${shown.length === 1 && q.trim() ? html`<div class="gs-none">No results</div>` : ""}`,
|
|
209
|
+
);
|
|
210
|
+
mark(sel);
|
|
211
|
+
dl!.querySelector(".gs-live")!.textContent = `${shown.length} result${shown.length === 1 ? "" : "s"} found`;
|
|
212
|
+
}
|
|
213
|
+
// Moves the selection without rebuilding the list.
|
|
214
|
+
function mark(n: number) {
|
|
215
|
+
dl!.querySelector(`#gs-${sel}`)?.setAttribute("aria-selected", "false");
|
|
216
|
+
sel = n;
|
|
217
|
+
const r = dl!.querySelector(`#gs-${n}`);
|
|
218
|
+
r?.setAttribute("aria-selected", "true");
|
|
219
|
+
dl!.querySelector("input")!.setAttribute("aria-activedescendant", "gs-" + n);
|
|
220
|
+
r?.scrollIntoView({ block: "nearest" });
|
|
221
|
+
}
|
|
222
|
+
function newIdeaWith(text: string) {
|
|
223
|
+
if (!$("newtop")) return void (location.href = "/?view=board");
|
|
224
|
+
$("newtop").click();
|
|
225
|
+
const t = document.querySelector<HTMLTextAreaElement>("dialog[open] textarea");
|
|
226
|
+
if (t) (t.value = text), t.dispatchEvent(new Event("input", { bubbles: true }));
|
|
227
|
+
}
|
|
228
|
+
function pick(n: number) {
|
|
229
|
+
const i = shown[n];
|
|
230
|
+
if (!i) return;
|
|
231
|
+
dl!.close();
|
|
232
|
+
i.act();
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export function openSearch() {
|
|
236
|
+
if (dl) return dl.querySelector("input")!.focus();
|
|
237
|
+
dl = document.createElement("dialog");
|
|
238
|
+
dl.className = "gs";
|
|
239
|
+
dl.setAttribute("aria-label", "Search");
|
|
240
|
+
dl.innerHTML = String(
|
|
241
|
+
html`<div class="gs-box"><div class="gs-q">${svg("search")}<input type="text" placeholder="Search" aria-label="Search" role="combobox" aria-expanded="true" aria-controls="gs-list" autocomplete="off" spellcheck="false"></div><div class="gs-list" id="gs-list" role="listbox"></div><span class="gs-live" role="status" aria-live="polite"></span></div>`,
|
|
242
|
+
);
|
|
243
|
+
document.body.append(dl);
|
|
244
|
+
const q = dl.querySelector("input")!;
|
|
245
|
+
sel = 0;
|
|
246
|
+
q.oninput = () => ((sel = 0), draw());
|
|
247
|
+
q.onkeydown = (e) => {
|
|
248
|
+
const d = { ArrowDown: 1, ArrowUp: -1 }[e.key] ?? (e.ctrlKey && e.key === "n" ? 1 : e.ctrlKey && e.key === "p" ? -1 : 0);
|
|
249
|
+
if (d) {
|
|
250
|
+
e.preventDefault();
|
|
251
|
+
mark((sel + d + shown.length) % shown.length);
|
|
252
|
+
} else if (e.key === "Enter") {
|
|
253
|
+
e.preventDefault();
|
|
254
|
+
pick(sel);
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
const list = dl.querySelector<HTMLElement>(".gs-list")!;
|
|
258
|
+
list.onclick = (e) => {
|
|
259
|
+
const r = (e.target as Element).closest<HTMLElement>(".gs-i");
|
|
260
|
+
if (r) pick(+r.dataset.n!);
|
|
261
|
+
};
|
|
262
|
+
list.onpointermove = (e) => {
|
|
263
|
+
const r = (e.target as Element).closest<HTMLElement>(".gs-i");
|
|
264
|
+
if (r && +r.dataset.n! !== sel) mark(+r.dataset.n!);
|
|
265
|
+
};
|
|
266
|
+
dl.onclick = (e) => e.target === dl && dl!.close();
|
|
267
|
+
dl.onclose = () => (dl!.remove(), (dl = null));
|
|
268
|
+
dl.showModal();
|
|
269
|
+
draw();
|
|
270
|
+
// Chats live behind one fetch; the list redraws when they land.
|
|
271
|
+
fetch("/chats")
|
|
272
|
+
.then((r) => r.json())
|
|
273
|
+
.then((d) => {
|
|
274
|
+
chats = d.chats ?? [];
|
|
275
|
+
if (dl) draw();
|
|
276
|
+
})
|
|
277
|
+
.catch(() => {});
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
const CSS = `dialog.gs{border:0;padding:0;margin:14vh auto auto;background:none;width:min(560px,calc(100vw - 32px));color:var(--ink);overflow:visible}
|
|
281
|
+
dialog.gs::backdrop{background:rgb(0 0 0/.35)}
|
|
282
|
+
.gs-box{display:flex;flex-direction:column;max-height:min(480px,72vh);background:var(--bg);border:1px solid var(--line);border-radius:10px;box-shadow:0 16px 40px rgb(0 0 0/.25);overflow:hidden}
|
|
283
|
+
.gs-q{display:flex;align-items:center;gap:8px;padding:0 12px;border-bottom:1px solid var(--line)}
|
|
284
|
+
.gs-q svg{width:15px;height:15px;color:var(--dim);flex:none}
|
|
285
|
+
.gs-q input{flex:1;min-width:0;height:40px;border:0;outline:0;background:none;color:var(--ink);font:inherit;font-size:var(--fs-l,14px)}
|
|
286
|
+
.gs-list{flex:1;overflow:auto;padding:4px}
|
|
287
|
+
.gs-h{padding:10px 8px 4px;font-size:var(--fs-xs,11px);color:var(--dim)}
|
|
288
|
+
.gs-i{display:flex;align-items:center;gap:8px;height:var(--btn-s,32px);padding:0 var(--padx,8px);border-radius:var(--r-s,4px);cursor:pointer;font-size:var(--fs,13px)}
|
|
289
|
+
.gs-i[aria-selected=true]{background:var(--hover)}
|
|
290
|
+
.gs-i svg{width:var(--ico,14px);height:var(--ico,14px);color:var(--dim);flex:none}
|
|
291
|
+
.gs-i .si{flex:none}
|
|
292
|
+
.gs-t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
|
|
293
|
+
.gs-s{color:var(--dim);font-size:var(--fs-s,12px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:0 1 auto}
|
|
294
|
+
.gs-w{margin-left:auto;padding-left:8px;color:var(--dim);font-size:var(--fs-xs,11px);flex:none}
|
|
295
|
+
.gs-none{padding:14px 8px;text-align:center;color:var(--dim);font-size:var(--fs-s,12px)}
|
|
296
|
+
.gs-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
|
|
297
|
+
@media(max-width:640px){.rail a.it.gs-it{display:none}}`;
|
|
298
|
+
|
|
299
|
+
export function initSearch() {
|
|
300
|
+
const st = document.createElement("style");
|
|
301
|
+
st.textContent = CSS;
|
|
302
|
+
document.head.append(st);
|
|
303
|
+
const mac = /Mac|iP(hone|ad)/.test(navigator.platform);
|
|
304
|
+
const it = $("gsearch");
|
|
305
|
+
if (it) it.onclick = (e) => (e.preventDefault(), openSearch());
|
|
306
|
+
// Opened before the menu's data came in: fill in as it lands.
|
|
307
|
+
addEventListener("kz-rail", () => dl && draw());
|
|
308
|
+
// Ctrl/Cmd+K anywhere, and Orca's own Cmd+J (Ctrl+Shift+J is the browser's console).
|
|
309
|
+
addEventListener(
|
|
310
|
+
"keydown",
|
|
311
|
+
(e) => {
|
|
312
|
+
// A terminal keeps its keys: Ctrl+K there is the shell's kill-line.
|
|
313
|
+
if ((e.target as Element)?.closest?.(".xterm")) return;
|
|
314
|
+
const mod = mac ? e.metaKey : e.ctrlKey;
|
|
315
|
+
const k = e.key.toLowerCase();
|
|
316
|
+
if (mod && !e.altKey && ((k === "k" && !e.shiftKey) || (mac && k === "j" && !e.shiftKey))) {
|
|
317
|
+
e.preventDefault();
|
|
318
|
+
e.stopPropagation();
|
|
319
|
+
dl ? dl.close() : openSearch();
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
true,
|
|
323
|
+
);
|
|
324
|
+
}
|
package/web/board/workspace.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { store } from "./store.ts";
|
|
|
7
7
|
import { $, html, modal, raw } from "./dom.ts";
|
|
8
8
|
import { age, need } from "./labels.ts";
|
|
9
9
|
import { openAdd } from "./add-project.ts";
|
|
10
|
+
import { initSearch } from "./search.ts";
|
|
10
11
|
import { agentsHtml, dueWord, forgetAgents, gitDue, settleIn, toggleOpen, wsAgents, type Agent } from "./ws-tabs.ts";
|
|
11
12
|
|
|
12
13
|
const DAY = 864e5;
|
|
@@ -285,6 +286,7 @@ const syncSpin = () =>
|
|
|
285
286
|
if (a.animationName?.startsWith("si-") && a.startTime !== 0) a.startTime = 0;
|
|
286
287
|
});
|
|
287
288
|
export function initRail() {
|
|
289
|
+
initSearch();
|
|
288
290
|
let queued = false;
|
|
289
291
|
const hasSi = (n: any) => n.nodeType === 1 && (n.classList.contains("si") || n.querySelector(".si"));
|
|
290
292
|
new MutationObserver((rs) => {
|
package/web/board/ws-board-ui.ts
CHANGED
|
@@ -43,7 +43,18 @@ export function initWsBoard(render: () => void) {
|
|
|
43
43
|
rerender = render;
|
|
44
44
|
addEventListener("kz-view", () => (syncMode(), drawToggle()));
|
|
45
45
|
addEventListener("kz-state", drawToggle);
|
|
46
|
-
|
|
46
|
+
// A render publishes the cards, which raises kz-rail at once: that one is its own echo, not
|
|
47
|
+
// news, and answering it rendered again forever. Fresh rail data (a fetch) still redraws.
|
|
48
|
+
let drawing = false;
|
|
49
|
+
addEventListener("kz-rail", () => {
|
|
50
|
+
if (drawing || boardMode() !== "ws" || document.body.classList.contains("paged")) return;
|
|
51
|
+
drawing = true;
|
|
52
|
+
try {
|
|
53
|
+
render();
|
|
54
|
+
} finally {
|
|
55
|
+
drawing = false;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
47
58
|
$("board").addEventListener("click", (e: MouseEvent) => {
|
|
48
59
|
const a = (e.target as Element).closest?.("a.wcard") as HTMLAnchorElement;
|
|
49
60
|
if (!a || e.ctrlKey || e.metaKey || e.shiftKey || e.button) return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { expect, test } from "bun:test";
|
|
2
|
-
import { agentStatus, agentsHtml, forgetAgents, lineOf, settleIn, toggleOpen, wsAgents, SETTLE_MS, awaiting, dueWord, chosen, loopbackUrl, toOpen, stageKeys, stageTabs, finished, historyOf, liveIn, migrate, pickable, wsKey } from "./ws-tabs.ts";
|
|
2
|
+
import { agentStatus, agentsHtml, forgetAgents, lineOf, settleIn, toggleOpen, wsAgents, SETTLE_MS, awaiting, dueWord, chosen, loopbackUrl, toOpen, stageKeys, stageTabs, finished, historyOf, liveIn, migrate, pickable, prune, wsKey } from "./ws-tabs.ts";
|
|
3
3
|
|
|
4
4
|
const run = (id: string, status: string, o: any = {}) => ({ kind: "run", state: "/p/.kaizen", id, status, moved: 1, ws: "/p", ...o });
|
|
5
5
|
const wsOf = (c) => c.ws;
|
|
@@ -169,3 +169,13 @@ test("card html: one agent has no chevron; several group chips; expanded lists r
|
|
|
169
169
|
expect(open).not.toContain("<b>");
|
|
170
170
|
expect(lineOf(rows(ag("z"))[0])).toBe("Done - Claude");
|
|
171
171
|
});
|
|
172
|
+
|
|
173
|
+
test("prune keeps a split node it drops nothing from, so a gutter drag writes to the live layout", () => {
|
|
174
|
+
const inner = { dir: "rows" as const, kids: ["b", "c"], sizes: [1, 1] };
|
|
175
|
+
const tree = { dir: "cols" as const, kids: ["a", inner], sizes: [2, 1] };
|
|
176
|
+
expect(prune(tree, () => true)).toBe(tree);
|
|
177
|
+
const cut = prune(tree, (id) => id !== "c") as any;
|
|
178
|
+
expect(cut).not.toBe(tree);
|
|
179
|
+
expect(cut.kids).toEqual(["a", "b"]);
|
|
180
|
+
expect(cut.sizes).toEqual([2, 1]);
|
|
181
|
+
});
|
package/web/board/ws-tabs.ts
CHANGED
|
@@ -16,7 +16,10 @@ export function prune(n: Node, keep: (id: string) => boolean): Node | null {
|
|
|
16
16
|
const p = prune(k, keep);
|
|
17
17
|
if (p) (kids.push(p), sizes.push(n.sizes[i] ?? 1));
|
|
18
18
|
});
|
|
19
|
-
|
|
19
|
+
if (!kids.length) return null;
|
|
20
|
+
if (kids.length === 1) return kids[0];
|
|
21
|
+
// Nothing dropped: the same node, so a drag holding it keeps writing to the live layout.
|
|
22
|
+
return kids.length === n.kids.length && kids.every((k, i) => k === n.kids[i]) ? n : { dir: n.dir, kids, sizes };
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
// A workspace's key in the saved tab layouts (localStorage kz-runtabs).
|
package/web/board.html
CHANGED
|
@@ -337,6 +337,10 @@ section li.hint{display:block;padding:14px;border:1px dashed var(--line);border-
|
|
|
337
337
|
.inl input::placeholder,.inl textarea::placeholder,.notes textarea::placeholder{color:var(--dim)}
|
|
338
338
|
.inl .row,.notes .row{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;align-items:center}
|
|
339
339
|
.split{position:relative;display:inline-flex}.split>#ns{border-top-right-radius:0;border-bottom-right-radius:0}.split>#nm{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:color-mix(in srgb,var(--on-accent) 35%,var(--accent));padding:0 7px;display:inline-flex;align-items:center}.split>#nm svg{width:14px;height:14px;stroke-width:2}.split .menu-pop{right:0;top:calc(100% + 4px);z-index:9;white-space:nowrap;min-width:0;padding:4px}.split .menu-pop button{padding:5px 8px;font-size:12px;gap:6px}.split .menu-pop svg{width:13px;height:13px}.split .menu-pop button:focus-visible{outline-width:1px;outline-offset:-1px}.split .menu-pop[hidden]{display:none}
|
|
340
|
+
.gitp{display:flex;flex-direction:column;gap:calc(var(--gap) * 2);font-size:var(--fs)}.gitp .ghead{display:flex;flex-direction:column;gap:0;padding-bottom:var(--padx);border-bottom:1px solid var(--line)}.gitp .gchip{align-self:flex-start;display:inline-flex;align-items:center;gap:var(--gap);height:var(--btn-xs);padding:0 var(--padx);margin-bottom:var(--gap);border:1px solid var(--line);border-radius:var(--r-s);background:var(--bg-2);color:var(--ink);font:500 var(--fs-xs) inherit;text-decoration:none;cursor:pointer}.gitp .gchip svg{width:var(--ico-s);height:var(--ico-s);fill:none;stroke:currentColor;stroke-width:2}.gitp .gchip:hover{background:var(--hover)}.gitp span.gchip{cursor:default;color:var(--dim)}.gitp .gchip.open{color:var(--ok,var(--accent))}.gitp .gchip.merged{color:var(--accent)}.gitp .gchip.closed,.gitp .gchip.draft{color:var(--dim)}.gitp .gbr{font:500 var(--fs-s) var(--mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gitp .gto{font:var(--fs-s) var(--mono);color:var(--dim)}
|
|
341
|
+
.gitp .gsec{display:flex;flex-direction:column;gap:var(--gap)}.gitp .ghd{font-weight:600;font-size:var(--fs-s);display:flex;gap:var(--gap);align-items:center}.gitp .ghd .n{font-weight:500;color:var(--dim)}.gitp .dim{color:var(--dim);font-size:var(--fs-s)}.gitp pre.files{margin:0;max-height:calc(var(--row) * 6);overflow:auto;font:var(--fs-s)/1.5 var(--mono);color:var(--dim);background:var(--bg-2);border:1px solid var(--line);border-radius:var(--r-s);padding:var(--gap) var(--padx)}.gitp textarea,.gitp input{width:100%;border:1px solid var(--line);border-radius:var(--r-s);padding:var(--gap) var(--padx);background:var(--bg-2);font:inherit;color:var(--ink)}.gitp textarea{min-height:calc(var(--row) * 2);resize:vertical}.gitp textarea:focus,.gitp input:focus{outline:none;border-color:var(--accent)}.gitp .row{display:flex;gap:var(--gap);justify-content:flex-end}
|
|
342
|
+
.gitp .gempty{display:flex;flex-direction:column;gap:var(--gap)}.gitp .gempty b{font-size:var(--fs-l);font-weight:600}.gitp .gempty span{color:var(--dim);font-size:var(--fs-s)}.gitp .gempty code{font:var(--fs-s) var(--mono)}
|
|
343
|
+
.gitp .gsplit{display:flex;width:100%}.gitp .gsplit>.btn:first-child{flex:1;min-height:var(--btn-s);border-top-right-radius:0;border-bottom-right-radius:0}.gitp .gsplit>.gmore{min-height:var(--btn-s);padding:0 var(--padx);border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:color-mix(in srgb,var(--on-accent) 35%,var(--accent));display:inline-flex;align-items:center}.gitp .gsplit>.gmore:not(.pri){border-left-color:var(--line)}.gitp .gsplit>.gmore svg{width:var(--ico);height:var(--ico)}.gitp .gsplit .menu-pop{left:0;right:0;top:calc(100% + var(--gap));z-index:9;white-space:normal}.gitp .gsplit .menu-pop[hidden]{display:none}.gitp .gsplit .menu-pop button,.gitp .gsplit .menu-pop a{flex-direction:column;align-items:flex-start;gap:0;padding:var(--gap) var(--padx);font-size:var(--fs-s);color:var(--ink);text-decoration:none;border-radius:var(--r-s)}.gitp .gsplit .menu-pop a:hover{background:var(--hover)}.gitp .gsplit .menu-pop button:disabled{color:var(--dim);cursor:default;background:none}.gitp .gsplit .menu-pop small{font-size:var(--fs-xs);color:var(--dim)}.gitp .gsplit .menu-pop hr{margin:var(--gap) 0}
|
|
340
344
|
.inl .row .mic{margin-right:0}.inl .row #newpick{margin-right:auto}.inl .row .btn{white-space:nowrap}.inl .att{font-size:12px;color:var(--dim)}.inl .att{font-size:12px;color:var(--dim)}.inl .att:empty{display:none}
|
|
341
345
|
dialog.kz{border:0;padding:0;background:none;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:visible;color:var(--ink)}dialog.kz::backdrop{background:rgb(0 0 0/.45)}dialog.kz>.inl{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:16px;gap:10px}dialog.kz .inl input,dialog.kz .inl textarea{background:var(--canvas);border-color:var(--line)}dialog.kz .row input{flex:1;min-width:0}dialog.kz #ndc{align-self:flex-start}dialog.kz .btn.opt{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 12px;text-align:left}dialog.kz .btn.opt small{color:var(--dim)}dialog.kz label.att{display:flex;flex-direction:column;gap:4px}dialog.kz label.att:has(input[type=checkbox]){flex-direction:row;align-items:center}dialog.kz select{background:var(--canvas);border:1px solid var(--line);border-radius:var(--r-s);color:var(--ink);padding:6px 8px;font:inherit}dialog.viewer{width:min(1100px,calc(100vw - 32px));height:calc(100dvh - 32px);background:var(--bg);border-radius:var(--r);display:none;flex-direction:column;overflow:hidden}dialog.viewer[open]{display:flex}.viewer-hd{display:flex;gap:12px;align-items:center;padding:8px 12px;border-bottom:1px solid var(--line)}.viewer-hd span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}dialog.viewer img{flex:1;min-height:0;width:100%;object-fit:contain}dialog.viewer iframe{flex:1;border:0;width:100%;background:#fff}
|
|
342
346
|
.inl .run-actions{display:grid;gap:8px}.inl .run-actions .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.inl .run-actions .pri{grid-column:1/-1}
|
|
@@ -421,7 +425,7 @@ body.runv #runv{grid-area:1/1;display:flex;flex-direction:column;min-width:0;min
|
|
|
421
425
|
.rpane>.term{flex:1;min-height:0;padding:6px 0 0 8px}
|
|
422
426
|
.rframe{flex:1;min-height:0;width:100%;border:0;background:var(--bg-2)}
|
|
423
427
|
.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:4px}.urlbar button{width:28px;height:28px;display:grid;place-items:center;border-radius:4px;color:var(--dim);font-size:16px}.urlbar button:hover{background:var(--hover)}.urlbar svg{width:15px;height:15px}
|
|
424
|
-
.rpane:not(.split)>.ph{display:none}.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}.ph>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.pmove>summary{list-style:none;cursor:pointer;padding:0 4px;border-radius:4px}.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}.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}.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:4px;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:4px;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:4px}
|
|
428
|
+
.rpane:not(.split)>.ph{display:none}.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}.ph>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.pmove>summary{list-style:none;cursor:pointer;padding:0 4px;border-radius:4px}.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}.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:4px;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:4px;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:4px}
|
|
425
429
|
.rempty{margin:auto;text-align:center;color:var(--dim)}
|
|
426
430
|
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: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}
|
|
427
431
|
body.runv #panel>header{grid-area:1/1;border:0;padding:14px 12px 12px 18px}body.runv #pfoot{border:0;padding:12px 12px 14px 18px}
|
|
@@ -904,6 +908,7 @@ html body.wsb:not(.paged) #board{grid-template-columns:repeat(4,minmax(200px,1fr
|
|
|
904
908
|
<symbol id="t-plan" viewBox="0 0 24 24"><path d="M9 5h11M9 12h11M9 19h11"/><path d="M4 5l1 1 2-2M4 12l1 1 2-2M4 19h2"/></symbol>
|
|
905
909
|
<symbol id="t-backlog" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="5" rx="1"/><path d="M5 9v10h14V9M10 13h4"/></symbol>
|
|
906
910
|
<symbol id="t-impl" viewBox="0 0 24 24"><path d="M16 18l6-6-6-6M8 6l-6 6 6 6"/></symbol>
|
|
911
|
+
<symbol id="t-git" viewBox="0 0 24 24"><circle cx="6" cy="5" r="2"/><circle cx="6" cy="19" r="2"/><circle cx="18" cy="8" r="2"/><path d="M6 7v10M18 10c0 5-12 3-12 7"/></symbol>
|
|
907
912
|
<symbol id="t-review" 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>
|
|
908
913
|
<symbol id="t-preview" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="3"/><circle cx="9" cy="10" r="2"/><path d="M21 16l-5-5-9 9"/></symbol>
|
|
909
914
|
<symbol id="t-book" viewBox="0 0 24 24"><path d="M4 4h6a3 3 0 0 1 3 3v13a2 2 0 0 0-2-2H4zM20 4h-6a3 3 0 0 0-3 3v13a2 2 0 0 1 2-2h7z"/></symbol>
|
|
@@ -944,6 +949,7 @@ html body.wsb:not(.paged) #board{grid-template-columns:repeat(4,minmax(200px,1fr
|
|
|
944
949
|
<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>
|
|
945
950
|
<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>
|
|
946
951
|
</defs></svg>
|
|
952
|
+
<a class="it gs-it" href="#" id="gsearch" title="Search everything"><svg viewBox="0 0 24 24"><circle cx="11" cy="11" r="7" fill="none" stroke="currentColor" stroke-width="2"/><path d="M20 20l-4-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg><span class="lbl">Search</span></a>
|
|
947
953
|
<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>
|
|
948
954
|
<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>
|
|
949
955
|
<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>
|