kaizen-agent 1.62.0 → 1.64.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/cli/automations.test.ts +167 -0
- package/cli/automations.ts +298 -0
- package/cli/dashboard.ts +1 -7
- package/cli/handoff.test.ts +133 -0
- package/cli/handoff.ts +122 -0
- package/cli/install.test.ts +16 -0
- package/cli/install.ts +92 -191
- package/cli/look.ts +33 -0
- package/cli/pty.ts +16 -2
- package/cli/resources.test.ts +50 -0
- package/cli/resources.ts +113 -0
- package/cli/restart.test.ts +28 -1
- package/cli/settings.ts +6 -2
- package/cli/setup.test.ts +22 -2
- package/cli/setup.ts +101 -51
- package/cli/sources.ts +1 -1
- package/cli/state.test.ts +7 -0
- package/cli/state.ts +13 -2
- package/cli/usage.test.ts +11 -0
- package/cli/web.ts +134 -6
- package/cli/workers.ts +11 -4
- package/cli/worktree.test.ts +174 -1
- package/cli/worktree.ts +190 -35
- package/package.json +1 -1
- package/skills/kaizen/config.default.yml +17 -0
- package/skills/kaizen/settings.md +4 -0
- package/skills/kaizen/spec-build.md +13 -0
- package/skills/kaizen/spec-main.md +13 -0
- package/skills/kaizen-help/SKILL.md +1 -0
- package/skills/media/kaizen-deck/SKILL.md +21 -2
- package/skills/media/kaizen-deck/scripts/motion.py +99 -0
- package/web/board/cards.ts +1 -0
- package/web/board/git.ts +4 -4
- package/web/board/phone.ts +5 -5
- package/web/board/resources.ts +152 -0
- package/web/board/run-view.ts +107 -1
- package/web/board/search.ts +6 -0
- package/web/board/settings-automations.ts +71 -0
- package/web/board/settings-pages.test.ts +4 -0
- package/web/board/settings-pages.ts +2 -1
- package/web/board/settings.ts +10 -3
- package/web/board/workspace.ts +7 -1
- package/web/board/ws-tabs.test.ts +20 -1
- package/web/board/ws-tabs.ts +26 -7
- package/web/board.html +20 -3
- package/web/board.js +119 -88
- package/web/notebook.js +23 -23
- package/web/notes.html +1 -0
- package/web/term.js +1 -1
- package/web/video.html +1 -0
- package/web/video.js +49 -49
package/web/board/ws-tabs.ts
CHANGED
|
@@ -6,6 +6,24 @@
|
|
|
6
6
|
import { html } from "./dom.ts";
|
|
7
7
|
import { age } from "./labels.ts";
|
|
8
8
|
export type Node = string | { dir: "cols" | "rows"; kids: Node[]; sizes: number[] };
|
|
9
|
+
export type Box = { left: number; top: number; right: number; bottom: number };
|
|
10
|
+
// The pane next to `from` in a direction: it must lie past that edge and share some of the
|
|
11
|
+
// other axis; the closest wins, then the one lined up best.
|
|
12
|
+
export function nearestPane(boxes: Record<string, Box>, from: string, dir: "l" | "r" | "u" | "d"): string | null {
|
|
13
|
+
const a = boxes[from];
|
|
14
|
+
if (!a) return null;
|
|
15
|
+
const across = dir === "l" || dir === "r";
|
|
16
|
+
const gap = (b: Box) => (dir === "l" ? a.left - b.right : dir === "r" ? b.left - a.right : dir === "u" ? a.top - b.bottom : b.top - a.bottom);
|
|
17
|
+
const lap = (b: Box) => (across ? Math.min(a.bottom, b.bottom) - Math.max(a.top, b.top) : Math.min(a.right, b.right) - Math.max(a.left, b.left));
|
|
18
|
+
let best: string | null = null;
|
|
19
|
+
for (const [id, b] of Object.entries(boxes)) {
|
|
20
|
+
if (id === from || gap(b) < -1 || lap(b) <= 0) continue;
|
|
21
|
+
const cur = best && boxes[best];
|
|
22
|
+
if (!cur || gap(b) < gap(cur) - 1 || (Math.abs(gap(b) - gap(cur)) <= 1 && lap(b) > lap(cur))) best = id;
|
|
23
|
+
}
|
|
24
|
+
return best;
|
|
25
|
+
}
|
|
26
|
+
|
|
9
27
|
export const leaves = (n: Node): string[] => (typeof n === "string" ? [n] : n.kids.flatMap(leaves));
|
|
10
28
|
// Drops ids no longer open; a split left with one child becomes that child.
|
|
11
29
|
export function prune(n: Node, keep: (id: string) => boolean): Node | null {
|
|
@@ -121,17 +139,18 @@ export const loopbackUrl = (pv?: string | null) => (pv ? /https?:\/\/(?:localhos
|
|
|
121
139
|
export const toOpen = (cards: any[], was: Set<string>, seen: string[], keyOf: (c) => string) => cards.filter((c) => reviewing(c) && !was.has(keyOf(c)) && !seen.includes(keyOf(c)));
|
|
122
140
|
|
|
123
141
|
// ---- the sidebar card's agents (/state `agents`, one entry per open agent terminal)
|
|
124
|
-
export type Agent = { key: string; dir: string; ws?: string; agent?: string; name: string; run?: string; asking: boolean; busy: boolean; last?: string; at?: number; born?: number };
|
|
125
|
-
export type Status = "asking" | "working" | "done";
|
|
142
|
+
export type Agent = { key: string; dir: string; ws?: string; agent?: string; name: string; run?: string; asking: boolean; busy: boolean; last?: string; at?: number; born?: number; land?: string };
|
|
143
|
+
export type Status = "conflict" | "failed" | "asking" | "working" | "done";
|
|
126
144
|
// Output flickers: entering "working" is immediate, leaving it for "done" waits this long after the last busy tick.
|
|
127
145
|
export const SETTLE_MS = 3000;
|
|
128
146
|
const seenBusy = new Map<string, number>(); // pty key + start time -> when it was last seen busy
|
|
129
147
|
const id = (a: Agent) => a.key + "@" + (a.born ?? 0); // a restarted pty under the same key is a new agent
|
|
130
|
-
const ORDER: Record<Status, number> = { asking: 0, working: 1, done: 2 };
|
|
131
|
-
const WORD: Record<Status, string> = { asking: "Asking", working: "Working", done: "Done" };
|
|
132
|
-
const DOT: Record<Status, string> = { asking: "wait", working: "build", done: "done" }; // the .si icons
|
|
148
|
+
const ORDER: Record<Status, number> = { conflict: 0, failed: 0, asking: 0, working: 1, done: 2 };
|
|
149
|
+
export const WORD: Record<Status, string> = { conflict: "Conflict", failed: "Land failed", asking: "Asking", working: "Working", done: "Done" };
|
|
150
|
+
export const DOT: Record<Status, string> = { conflict: "fail", failed: "fail", asking: "wait", working: "build", done: "done" }; // the .si icons
|
|
133
151
|
// asking comes first and is immediate both ways (the server already waits for the screen to settle).
|
|
134
152
|
export function agentStatus(a: Agent, now: number, seen = seenBusy): Status {
|
|
153
|
+
if (a.land) return a.land === "conflict" ? "conflict" : "failed";
|
|
135
154
|
if (a.asking) return "asking";
|
|
136
155
|
if (a.busy) return (seen.set(id(a), now), "working");
|
|
137
156
|
return now - (seen.get(id(a)) ?? -Infinity) < SETTLE_MS ? "working" : "done";
|
|
@@ -148,7 +167,7 @@ export const wsAgents = (as: Agent[], dir: string, ws: string, wsOf, now: number
|
|
|
148
167
|
.map((a) => ({ a, st: agentStatus(a, now, seen) }))
|
|
149
168
|
.sort((x, y) => ORDER[x.st] - ORDER[y.st]);
|
|
150
169
|
// An expanded card's row text: the agent's latest output line, else the status and the agent.
|
|
151
|
-
export const lineOf = ({ a, st }: ARow) => a.last || `${WORD[st]} - ${a.name}`;
|
|
170
|
+
export const lineOf = ({ a, st }: ARow) => (a.land ? "" : a.last) || `${WORD[st]} - ${a.name}`;
|
|
152
171
|
const ago = (t: number | undefined, now: number) => (!t ? "" : now - t < 60e3 ? "now" : age(t, now));
|
|
153
172
|
// Expanded cards, remembered per workspace (localStorage kz-wsopen): the map of dir\0ws to true.
|
|
154
173
|
export const openKey = (dir: string, ws: string) => dir + "\0" + ws;
|
|
@@ -174,7 +193,7 @@ export function agentsHtml(rows: ARow[], now: number, open: boolean, dir: string
|
|
|
174
193
|
const chev = html`<button type="button" class="wchev${open ? " on" : ""}" data-wopen ${at} aria-expanded="${String(open)}" aria-label="${String(rows.length)} agents: ${open ? "hide" : "show"} the list">${CHEV}</button>`;
|
|
175
194
|
if (open)
|
|
176
195
|
return html`<div class="wag"><span class="aht">${String(rows.length)} agents</span>${chev}</div><div class="alist">${rows.map((r) => html`<button type="button" class="arow" data-term="${r.a.key}" ${at} title="${lineOf(r)}">${dot(r.st)}${mark(r.a)}<span class="atx">${lineOf(r)}</span><small>${ago(r.a.at, now)}</small></button>`)}</div>`;
|
|
177
|
-
const chips = (["asking", "working", "done"] as Status[]).map((st) => ({ st, rs: rows.filter((r) => r.st === st) })).filter((g) => g.rs.length);
|
|
196
|
+
const chips = (["conflict", "failed", "asking", "working", "done"] as Status[]).map((st) => ({ st, rs: rows.filter((r) => r.st === st) })).filter((g) => g.rs.length);
|
|
178
197
|
return html`<div class="wag"><span class="chips">${chips.map((g) => html`<span class="chip">${dot(g.st)}${g.rs.map((r) => html`<button type="button" class="amark" data-term="${r.a.key}" ${at} title="${r.a.name} - ${WORD[g.st]}: open its terminal" aria-label="${r.a.name} - ${WORD[g.st]}: open its terminal">${mark(r.a)}</button>`)}</span>`)}</span>${chev}</div>`;
|
|
179
198
|
}
|
|
180
199
|
|
package/web/board.html
CHANGED
|
@@ -125,6 +125,7 @@ body .rail a.upd::after{left:calc(50% + 6px);top:4px}body .toast{left:16px;botto
|
|
|
125
125
|
.si.review{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--warn) 35%,transparent);animation:si-spin 1.6s linear infinite}
|
|
126
126
|
.si.review::after{content:"";position:absolute;width:4px;height:4px;border-radius:50%;background:var(--warn);top:-1px;left:4px;box-shadow:0 0 4px var(--warn)}
|
|
127
127
|
.si.wait{background:var(--warn)}.si.wait::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--warn);animation:si-ping 1.6s cubic-bezier(0,0,.2,1) infinite}
|
|
128
|
+
.si.fail{background:var(--danger)}.si.fail::after{content:"!";position:absolute;inset:0;color:#fff;font:700 9px/12px system-ui;text-align:center}.mk.bad{color:var(--danger);font-weight:600}
|
|
128
129
|
.si.done{background:var(--ok)}.si.done::after{content:"";position:absolute;left:4.2px;top:2px;width:2.5px;height:5.5px;border:solid var(--bg);border-width:0 1.6px 1.6px 0;transform:rotate(45deg)}
|
|
129
130
|
.si.stalled{background:var(--danger)}.si.stalled::after{content:"";position:absolute;left:3.5px;top:3.5px;width:5px;height:5px;background:linear-gradient(90deg,var(--bg) 0 1.6px,transparent 0 3.4px,var(--bg) 0)}
|
|
130
131
|
.si.aband{box-shadow:inset 0 0 0 1.5px var(--dim);opacity:.5}
|
|
@@ -481,6 +482,11 @@ aside.wide{width:100%;border-left:0}@media(min-width:901px){aside.wide{width:62%
|
|
|
481
482
|
.ftr .strip .attn{color:var(--ink);background:color-mix(in srgb,var(--warn) 18%,transparent);box-shadow:inset 0 0 0 1px var(--warn)}.ftr .strip .attn:hover,.ftr .strip .attn.on{background:color-mix(in srgb,var(--warn) 30%,transparent)}.ftr .strip .attn svg{color:var(--warn)}.ftr .st svg{width:12px;height:12px}
|
|
482
483
|
.ftr a{color:var(--dim);cursor:pointer;white-space:nowrap;text-decoration:none;display:inline-flex;align-items:center;gap:5px}.ftr a>svg{width:13px;height:13px}.ftr a:hover{color:var(--ink)}
|
|
483
484
|
|
|
485
|
+
#keyhint{position:fixed;left:50%;bottom:44px;transform:translateX(-50%);z-index:60;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;width:max-content;max-width:calc(100vw - 32px);padding:9px 14px;font-size:12px;color:var(--ink);background:var(--bg-2);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.35);animation:keyhint .12s ease-out}
|
|
486
|
+
#keyhint span{display:flex;align-items:center;gap:6px;white-space:nowrap}
|
|
487
|
+
#keyhint kbd{padding:2px 6px;font:11px var(--mono);color:var(--ink-hi);border:1px solid var(--line);border-radius:5px}
|
|
488
|
+
@keyframes keyhint{from{opacity:0;transform:translate(-50%,4px)}}
|
|
489
|
+
@media (prefers-reduced-motion:reduce){#keyhint{animation:none}}
|
|
484
490
|
/* the flat footer under everything: agent usage, refresh; terminal count and phone on the right */
|
|
485
491
|
@media(min-width:641px){body{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr) auto}.rail{grid-area:1/1}.app{grid-area:1/2}#context{grid-area:1/3}.foot{grid-area:2/1/3/-1}.app{margin-bottom:0}#context{margin-bottom:0}}
|
|
486
492
|
.foot{display:flex;align-items:center;gap:14px;padding:5px 12px;font-size:12px;color:var(--dim);min-width:0;white-space:nowrap}
|
|
@@ -490,8 +496,18 @@ aside.wide{width:100%;border-left:0}@media(min-width:901px){aside.wide{width:62%
|
|
|
490
496
|
.uchip:hover .utip,.uchip:focus .utip{display:flex}.urow{display:grid;grid-template-columns:1fr auto;gap:3px 10px;align-items:center}.urow>span{color:var(--dim)}.urow>i{grid-column:1/-1;height:4px;border-radius:2px;background:var(--line);overflow:hidden}.urow>i>i{display:block;height:100%;background:var(--ok)}.urow>i>i.mid{background:var(--warn)}.urow>i>i.hi{background:var(--danger)}.urow small{grid-column:1/-1;color:var(--dim);font-size:11px}.foot .uchip.na{opacity:.75}
|
|
491
497
|
.foot .umtr{width:54px;height:5px;border-radius:3px;background:var(--line);overflow:hidden}.foot .umtr i{display:block;height:100%;background:var(--ok)}.foot .umtr i.mid{background:var(--warn)}.foot .umtr i.hi{background:var(--danger)}
|
|
492
498
|
.foot .fb{display:flex;align-items:center;gap:6px;padding:3px 7px;border-radius:4px;color:var(--dim);text-decoration:none}.foot .fb:hover{background:var(--hover);color:var(--ink)}.foot .fb[hidden],.foot .uchip[hidden]{display:none}
|
|
499
|
+
.foot button.fb{border:0;background:none;font:inherit;cursor:pointer}.foot .fb[aria-expanded=true]{background:var(--hover);color:var(--ink)}
|
|
500
|
+
#respop{position:fixed;right:12px;bottom:calc(var(--foot-h,32px) + 6px);z-index:30;width:260px;max-width:calc(100vw - 24px);max-height:min(70vh,440px);overflow:auto;padding:2px 8px 8px;border:1px solid var(--line);border-radius:var(--r-s);background:var(--bg-2);box-shadow:var(--shadow-2);color:var(--ink);font-size:var(--fs-xs);white-space:normal}
|
|
501
|
+
#respop h3{display:flex;align-items:center;justify-content:space-between;margin:6px 0 2px;min-height:18px;font-size:var(--fs-xs);font-weight:600;color:var(--dim)}#respop h3 button{border:0;background:none;color:var(--dim);font:inherit;cursor:pointer}#respop h3 button:hover{color:var(--ink)}#respop h3 .rfold{padding:0;font-weight:600}
|
|
502
|
+
#respop .rsrow{display:flex;align-items:center;gap:6px;min-height:18px}#respop .rsrow>span:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#respop .rsrow>b{font-weight:500;font-variant-numeric:tabular-nums}#respop .rsrow.tot{border-top:1px solid var(--line);margin-top:2px}
|
|
503
|
+
#respop .rhero{display:flex;align-items:baseline;gap:6px;margin-bottom:2px}#respop .rhero b{font-size:15px;line-height:1.2;font-weight:600;color:var(--ink-hi);font-variant-numeric:tabular-nums}#respop .rhero span{color:var(--dim)}
|
|
504
|
+
#respop .rspark{display:block;width:100%;height:32px;margin-bottom:4px;border-bottom:1px solid var(--line)}#respop .rspark polygon{stroke:none;fill:color-mix(in srgb,var(--run) 16%,transparent)}#respop .rspark polyline{fill:none;stroke:var(--run);stroke-width:2}
|
|
505
|
+
#respop .rseg{display:flex;gap:2px;height:6px;margin-bottom:3px}#respop .rseg i{min-width:2px;border-radius:2px}#respop .s0{background:var(--accent)}#respop .s1{background:color-mix(in srgb,var(--ink) 62%,var(--bg-2))}#respop .s2{background:color-mix(in srgb,var(--ink) 38%,var(--bg-2))}#respop .s3{background:color-mix(in srgb,var(--ink) 22%,var(--bg-2))}#respop .s4{background:var(--line)}
|
|
506
|
+
#respop .rsrow u{display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:2px}#respop .rsrow em{font-style:normal;color:var(--dim);font-variant-numeric:tabular-nums}
|
|
507
|
+
#respop .rgrp{margin-top:3px;color:var(--dim);font-size:var(--fs-xs)}#respop .rsrow button{border:0;border-radius:4px;padding:0 4px;background:none;color:var(--dim);font:inherit;cursor:pointer}#respop .rsrow button:hover{background:var(--hover);color:var(--ink)}#respop .rsrow button.kill:hover,#respop .rsrow button.yes{color:var(--danger)}#respop .rnote{color:var(--dim)}
|
|
493
508
|
.foot .dot{width:7px;height:7px;border-radius:50%;background:var(--ok);box-shadow:0 0 6px var(--ok)}.foot .dot.off{background:var(--dim);box-shadow:none}
|
|
494
509
|
@media(max-width:640px){.foot{order:1;gap:10px;padding:4px 10px;border-top:1px solid var(--line)}.foot .umtr,.foot .wk,.foot .ptxt{display:none}}
|
|
510
|
+
@media(max-width:640px){.foot #res{display:none}}
|
|
495
511
|
|
|
496
512
|
/* the Ideas page: source chips and project, then Open/Running/Done, search and the table */
|
|
497
513
|
#ideasv{display:none}
|
|
@@ -834,7 +850,7 @@ aside .foot .more .menu-pop{left:0;right:auto;top:auto;bottom:calc(100% + 4px)}.
|
|
|
834
850
|
.help{position:fixed;inset:0;z-index:12;display:none;align-items:center;justify-content:center;background:color-mix(in srgb,var(--bg) 60%,transparent);backdrop-filter:blur(3px)}
|
|
835
851
|
.help.on{display:flex}.help div{background:var(--bg-2);border:1px solid var(--line);border-radius:var(--r);padding:24px 28px;box-shadow:var(--shadow-2)}
|
|
836
852
|
.help p{margin:0 0 16px;color:var(--dim)}.help dl{display:grid;grid-template-columns:auto 1fr;gap:10px 20px;align-items:center;margin:0}.help dt{display:flex;gap:6px;justify-content:flex-end}.help dd{margin:0}
|
|
837
|
-
.help kbd{font:12px/1 ui-monospace,monospace;padding:4px 7px;border:1px solid var(--line);border-bottom-width:2px;border-radius:var(--r-s);background:var(--bg);color:var(--ink-hi)}
|
|
853
|
+
.help div{max-height:calc(100vh - 32px);overflow:auto}.help h3{margin:20px 0 8px;font-size:13px;color:var(--ink-hi)}.help p:has(+dl){margin-bottom:12px}.help kbd{font:12px/1 ui-monospace,monospace;padding:4px 7px;border:1px solid var(--line);border-bottom-width:2px;border-radius:var(--r-s);background:var(--bg);color:var(--ink-hi)}
|
|
838
854
|
/* request sources: cards, status badges, top bar, and add-box */
|
|
839
855
|
/* the icebox as an inbox: toolbar, filter chips, one row per request, bulk bar */
|
|
840
856
|
.ice-bar{flex-direction:row;align-items:center;gap:8px;margin:6px 0 0}.ice-bulk+.ice-list,.ice-list{margin-top:0}
|
|
@@ -1047,6 +1063,7 @@ html body.wsb:not(.paged) #board{grid-template-columns:repeat(4,minmax(200px,1fr
|
|
|
1047
1063
|
<symbol id="i-video" viewBox="0 0 24 24"><rect x="3" y="6" width="13" height="12" rx="2"/><path d="M16 10.5l5-3v9l-5-3z"/></symbol>
|
|
1048
1064
|
<symbol id="i-trash" viewBox="0 0 24 24"><path d="M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14M10 11v6M14 11v6"/></symbol>
|
|
1049
1065
|
<symbol id="i-ask" 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"/><path d="M9.8 9.5a2.3 2.3 0 0 1 4.4.8c0 1.5-2.2 2-2.2 3.2M12 16.5h.01"/></symbol>
|
|
1066
|
+
<symbol id="i-mem" viewBox="0 0 24 24"><path d="M3 7h18v9H3zM7 16v3M12 16v3M17 16v3M7 10v3M12 10v3M17 10v3"/></symbol>
|
|
1050
1067
|
<symbol id="i-term" viewBox="0 0 24 24"><path d="M4 17l6-5-6-5M12 19h8"/></symbol>
|
|
1051
1068
|
<symbol id="i-max" viewBox="0 0 24 24"><path d="M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5"/></symbol>
|
|
1052
1069
|
<symbol id="i-min" viewBox="0 0 24 24"><path d="M9 4v5H4M15 4v5h5M9 20v-5H4M15 20v-5h5"/></symbol>
|
|
@@ -1194,12 +1211,12 @@ html body.wsb:not(.paged) #board{grid-template-columns:repeat(4,minmax(200px,1fr
|
|
|
1194
1211
|
<div class="foot" id="pfoot"></div>
|
|
1195
1212
|
</aside>
|
|
1196
1213
|
</div>
|
|
1197
|
-
<footer class="foot" id="foot" aria-label="Usage and status"><span id="usage"></span><button class="fb" id="usage-r" title="Refresh usage" aria-label="Refresh usage"><svg><use href="#i-refresh"/></svg></button><span class="sp"></span><a class="fb" id="tcount" href="/?view=terminal" title="All terminals" hidden><svg><use href="#i-term"/></svg><span></span></a><span class="uchip" id="phone" hidden></span></footer>
|
|
1214
|
+
<footer class="foot" id="foot" aria-label="Usage and status"><span id="usage"></span><button class="fb" id="usage-r" title="Refresh usage" aria-label="Refresh usage"><svg><use href="#i-refresh"/></svg></button><span class="sp"></span><button type="button" class="fb" id="res" title="Resources" aria-haspopup="dialog" aria-expanded="false"><svg><use href="#i-mem"/></svg><span></span></button><a class="fb" id="tcount" href="/?view=terminal" title="All terminals" hidden><svg><use href="#i-term"/></svg><span></span></a><span class="uchip" id="phone" hidden></span></footer>
|
|
1198
1215
|
<section id="context" aria-label="Project context"><header><strong id="context-title">Project</strong><button class="ib" id="ctx-close" aria-label="Close side panel" title="Close"><svg><use href="#i-close"/></svg></button></header><nav aria-label="Side content"><button data-context="files">Files</button><button data-context="notes">Notes</button><button data-context="terminal">Terminal</button></nav><div id="context-body"></div></section>
|
|
1199
1216
|
<div class="toast" id="toast" role="status"></div>
|
|
1200
1217
|
<div class="help" id="help"><div>
|
|
1201
1218
|
<p>Optional. Everything here is also a button.</p>
|
|
1202
|
-
<dl><dt><kbd>←↓↑→</kbd><kbd>hjkl</kbd></dt><dd>move between cards</dd><dt><kbd>Enter</kbd></dt><dd>open</dd><dt><kbd>←→</kbd><kbd>hl</kbd></dt><dd>tabs, in an open run</dd><dt><kbd>↑↓</kbd><kbd>jk</kbd></dt><dd>scroll, in an open run</dd><dt><kbd>n</kbd></dt><dd>new idea</dd><dt><kbd>e</kbd></dt><dd>edit</dd><dt><kbd>x</kbd></dt><dd>reject / abandon</dd><dt><kbd>r</kbd></dt><dd>run</dd><dt><kbd>a</kbd></dt><dd>all projects</dd><dt><kbd>Esc</kbd></dt><dd>close</dd><dt><kbd>?</kbd></dt><dd>this list</dd></dl></div></div>
|
|
1219
|
+
<dl><dt><kbd>←↓↑→</kbd><kbd>hjkl</kbd></dt><dd>move between cards</dd><dt><kbd>Enter</kbd></dt><dd>open</dd><dt><kbd>←→</kbd><kbd>hl</kbd></dt><dd>tabs, in an open run</dd><dt><kbd>↑↓</kbd><kbd>jk</kbd></dt><dd>scroll, in an open run</dd><dt><kbd>n</kbd></dt><dd>new idea</dd><dt><kbd>e</kbd></dt><dd>edit</dd><dt><kbd>x</kbd></dt><dd>reject / abandon</dd><dt><kbd>r</kbd></dt><dd>run</dd><dt><kbd>a</kbd></dt><dd>all projects</dd><dt><kbd>Esc</kbd></dt><dd>close</dd><dt><kbd>?</kbd></dt><dd>this list</dd></dl><dl style="margin-top:16px"><dt><kbd>Ctrl</kbd><kbd>Shift</kbd><kbd>Space</kbd></dt><dd>search, also from a terminal</dd></dl><h3>In a workspace</h3><p>Press <kbd>Ctrl</kbd> <kbd>Space</kbd> to focus the current pane, then one key:</p><dl><dt><kbd>←↓↑→</kbd><kbd>hjkl</kbd></dt><dd>move between panes</dd><dt><kbd>1-9</kbd></dt><dd>go to tab</dd><dt><kbd>n</kbd><kbd>p</kbd></dt><dd>next, previous tab</dd><dt><kbd>c</kbd></dt><dd>new tab menu</dd><dt><kbd>r</kbd></dt><dd>split right menu</dd><dt><kbd>d</kbd></dt><dd>split down menu</dd><dt><kbd>x</kbd></dt><dd>close pane</dd><dt><kbd>?</kbd></dt><dd>this list</dd></dl></div></div>
|
|
1203
1220
|
|
|
1204
1221
|
<script>
|
|
1205
1222
|
// The server writes notifier() from state.ts over the marker: one rule for both UIs.
|