kaizen-agent 1.64.0 → 1.64.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/agents/kaizen-planner.md +2 -2
- package/cli/backlog.test.ts +1 -1
- package/cli/board.test.ts +24 -24
- package/cli/dashboard.ts +15 -15
- package/cli/install.ts +6 -3
- package/cli/notes.test.ts +3 -3
- package/cli/notes.ts +1 -1
- package/cli/settings.ts +5 -5
- package/cli/sources.test.ts +32 -32
- package/cli/sources.ts +15 -15
- package/cli/state.test.ts +74 -51
- package/cli/state.ts +69 -48
- package/cli/web.ts +53 -33
- package/commands/kaizen-discover.md +1 -1
- package/package.json +1 -1
- package/skills/kaizen/README.md +2 -2
- package/skills/kaizen/SKILL.md +2 -2
- package/skills/kaizen/config.default.yml +22 -22
- package/skills/kaizen/discover.md +8 -8
- package/skills/kaizen/gather.md +2 -2
- package/skills/kaizen/spec-plan.md +1 -1
- package/skills/kaizen/spec.md +1 -1
- package/skills/kaizen-help/SKILL.md +2 -2
- package/web/board/api.ts +10 -10
- package/web/board/cards.ts +46 -46
- package/web/board/icebox.ts +14 -14
- package/web/board/keys.ts +3 -3
- package/web/board/labels.ts +2 -2
- package/web/board/live.ts +3 -3
- package/web/board/main.ts +1 -1
- package/web/board/markdown.ts +1 -1
- package/web/board/panel.ts +17 -17
- package/web/board/phone.ts +7 -7
- package/web/board/projects.ts +6 -6
- package/web/board/run-view.ts +5 -5
- package/web/board/search.ts +11 -11
- package/web/board/settings-cleanup.ts +42 -0
- package/web/board/settings-pages.ts +1 -1
- package/web/board/settings.ts +13 -0
- package/web/board/store.ts +1 -1
- package/web/board/{ideas.ts → tasks.ts} +22 -22
- package/web/board/terms.ts +3 -3
- package/web/board/views.ts +23 -12
- package/web/board/workspace.ts +7 -7
- package/web/board/ws-board-ui.ts +1 -1
- package/web/board/ws-board.test.ts +1 -1
- package/web/board/ws-board.ts +1 -1
- package/web/board/ws-tabs.test.ts +2 -2
- package/web/board/ws-tabs.ts +2 -2
- package/web/board.html +33 -33
- package/web/board.js +101 -101
- package/web/notebook.js +17 -17
- package/web/notebook.ts +5 -5
- package/web/notes-lib.ts +2 -2
- package/web/notes.html +11 -11
- package/web/term-font.test.ts +22 -0
- package/web/term-font.ts +30 -0
- package/web/term.js +38 -38
- package/web/term.ts +13 -2
- package/web/video.html +11 -11
- package/web/video.js +24 -24
package/web/term.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { FitAddon } from "@xterm/addon-fit";
|
|
|
6
6
|
import { WebglAddon } from "@xterm/addon-webgl";
|
|
7
7
|
import { WebLinksAddon } from "@xterm/addon-web-links";
|
|
8
8
|
import { SearchAddon } from "@xterm/addon-search";
|
|
9
|
+
import { fontRead, fontSet, fontStep } from "./term-font.ts";
|
|
9
10
|
|
|
10
11
|
function mountTerm(el: HTMLElement, key: string, onEnd?: () => void): () => void {
|
|
11
12
|
const css = getComputedStyle(el);
|
|
@@ -15,7 +16,7 @@ function mountTerm(el: HTMLElement, key: string, onEnd?: () => void): () => void
|
|
|
15
16
|
cursorBlink: true,
|
|
16
17
|
// Nerd Font first: shell prompts print private-use glyphs that plain monospace fonts lack.
|
|
17
18
|
fontFamily: `"JetBrainsMono Nerd Font",${tok("--mono")}`,
|
|
18
|
-
fontSize:
|
|
19
|
+
fontSize: fontRead(),
|
|
19
20
|
scrollback: 5000,
|
|
20
21
|
allowProposedApi: true, // search match decorations
|
|
21
22
|
theme: theme(),
|
|
@@ -289,8 +290,17 @@ function mountTerm(el: HTMLElement, key: string, onEnd?: () => void): () => void
|
|
|
289
290
|
openSearch();
|
|
290
291
|
return false;
|
|
291
292
|
}
|
|
292
|
-
|
|
293
|
+
const next = fontStep(term.options.fontSize!, e);
|
|
294
|
+
if (next === null) return true;
|
|
295
|
+
e.preventDefault(); // the browser would zoom the page
|
|
296
|
+
if (e.type === "keydown") fontSet(next);
|
|
297
|
+
return false;
|
|
293
298
|
});
|
|
299
|
+
const refont = (e: Event) => {
|
|
300
|
+
term.options.fontSize = (e as CustomEvent<number>).detail;
|
|
301
|
+
size();
|
|
302
|
+
};
|
|
303
|
+
addEventListener("kz-term-font", refont);
|
|
294
304
|
// Each resize makes the agent redraw its whole screen, so a panel animating or a
|
|
295
305
|
// soft keyboard opening sends one, not dozens.
|
|
296
306
|
let resizing: Timer | undefined;
|
|
@@ -309,6 +319,7 @@ function mountTerm(el: HTMLElement, key: string, onEnd?: () => void): () => void
|
|
|
309
319
|
clearTimeout(retry);
|
|
310
320
|
if (ws) { ws.onclose = null; ws.close(); }
|
|
311
321
|
removeEventListener("kz-theme", retheme);
|
|
322
|
+
removeEventListener("kz-term-font", refont);
|
|
312
323
|
os.removeEventListener("change", retheme);
|
|
313
324
|
term.dispose();
|
|
314
325
|
};
|
package/web/video.html
CHANGED
|
@@ -88,16 +88,17 @@ svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6;stroke
|
|
|
88
88
|
body .rail a.upd::after{left:calc(50% + 6px);top:4px}body .toast{left:16px;bottom:calc(68px + env(safe-area-inset-bottom))}}
|
|
89
89
|
.rail a.it[data-n]{position:relative}.rail a.it[data-n]::after{content:attr(data-n);position:absolute;left:24px;top:3px;min-width:16px;height:16px;padding:0 4px;box-sizing:border-box;border-radius:8px;background:var(--dim);color:var(--bg);font:600 10px/16px var(--font);text-align:center;box-shadow:0 0 0 2px var(--bg)}
|
|
90
90
|
@media(max-width:640px){body .rail a.it[data-n]::after{left:calc(50% + 4px);top:2px}}
|
|
91
|
-
.rail a.it:is([data-view=board],[data-view=
|
|
92
|
-
[data-rail=min] .rail a.it:is([data-view=board],[data-view=
|
|
93
|
-
@media(max-width:640px){[data-rail=min] .rail a.it:is([data-view=board],[data-view=
|
|
94
|
-
/* the rail's Projects list:
|
|
91
|
+
.rail a.it:is([data-view=board],[data-view=tasks])[data-n]::after{left:auto;right:8px;top:6px;background:var(--warn)}
|
|
92
|
+
[data-rail=min] .rail a.it:is([data-view=board],[data-view=tasks])[data-n]::after{left:24px;right:auto;top:3px}
|
|
93
|
+
@media(max-width:640px){[data-rail=min] .rail a.it:is([data-view=board],[data-view=tasks])[data-n]::after{left:calc(50% + 4px);top:2px}}
|
|
94
|
+
/* the rail's Projects list: tasks and runs grouped by project, each with its state icon */
|
|
95
95
|
.rail a.it .n{margin-left:auto;font-size:var(--fs-xs);font-weight:400;color:var(--dim)}
|
|
96
96
|
.rail a.it .srcs+.n{margin-left:8px}.rail a.it .srcs{margin-left:auto;display:flex;gap:4px;opacity:.75}.rail a.it .srcs svg,.rail a.it .srcs img{width:13px;height:13px}
|
|
97
97
|
.rail a.it,.rail .theme,.rail .theme button{border-radius:4px}
|
|
98
98
|
.rail .psec{display:flex;align-items:center;gap:2px;margin:14px 0 2px;padding-left:var(--padx);font-size:var(--fs-xs);font-weight:600;color:var(--dim)}.rail .psec .lbl{flex:1}
|
|
99
99
|
.rail .psec button,.rail .rib{width:var(--btn-xs);height:var(--btn-xs);display:grid;place-items:center;flex:none;border-radius:4px;color:var(--dim)}.rail .psec button:hover,.rail .rib:hover{background:var(--hover);color:var(--ink)}.rail .psec button svg,.rail .rib svg{width:var(--ico);height:var(--ico)}
|
|
100
100
|
.rail .psec button[aria-pressed=true]{color:var(--accent)}.rail .psec button{position:relative}.rail .psec button[aria-pressed=true]::after{content:"";position:absolute;right:3px;top:3px;width:6px;height:6px;border-radius:50%;background:var(--accent)}
|
|
101
|
+
.rail .psec a.pbd{width:var(--btn-xs);height:var(--btn-xs);display:grid;place-items:center;flex:none;border-radius:4px;color:var(--dim)}.rail .psec a.pbd:hover{background:var(--hover);color:var(--ink)}.rail .psec a.pbd[aria-current=page]{color:var(--accent)}
|
|
101
102
|
.pfpop{position:fixed;z-index:40;min-width:220px;max-width:280px;max-height:60vh;overflow:auto;padding:6px;display:flex;flex-direction:column;gap:1px;background:var(--bg-2);color:var(--ink);border:1px solid var(--line);border-radius:4px;box-shadow:var(--shadow-2);font-size:12.5px}
|
|
102
103
|
.pfpop .sel{margin:2px 2px 6px;padding:5px 8px;border-radius:4px}.pfrow{display:flex;align-items:center;gap:8px;padding:5px 8px;border-radius:4px;cursor:pointer;white-space:nowrap}.pfrow:hover{background:var(--hover)}.pfrow input{accent-color:var(--accent);margin:0}.pfrow .plogo{width:16px;height:16px;font-size:9px;border-radius:4px;display:inline-grid;place-items:center;flex:none;font-weight:600;color:var(--dim);background:var(--hover)}.pfrow img.plogo{background:none}
|
|
103
104
|
.pfall{display:flex;align-items:center;gap:2px}.pfall .pfrow{flex:1;min-width:0}.pfb{all:unset;display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:4px;cursor:pointer;color:var(--dim)}.pfb:hover{background:var(--hover);color:var(--ink)}.pfb:focus-visible{outline:2px solid var(--accent)}
|
|
@@ -131,12 +132,12 @@ body .rail a.upd::after{left:calc(50% + 6px);top:4px}body .toast{left:16px;botto
|
|
|
131
132
|
[data-rail=min] .rail a.it .n,[data-rail=min] .rail a.it .srcs,[data-rail=min] .rail .rib:not(.th),[data-rail=min] .plist .proj :not(.plogo),[data-rail=min] .plist .row div,[data-rail=min] .plist .wcount{display:none}
|
|
132
133
|
[data-rail=min] .rail .psec{padding:0;margin:12px 0 2px;flex-direction:column}[data-rail=min] .rail .rbot{flex-direction:column}
|
|
133
134
|
[data-rail=min] .plist .proj{justify-content:center;margin:10px 0 4px;padding:0}[data-rail=min] .plist .row{grid-template-columns:14px;justify-content:center;padding:0}
|
|
134
|
-
@media(max-width:640px){.rail .psec,.rail .plist,.rail .rib{display:none}.rail .rbot,[data-rail=min] .rail .rbot{display:contents}.rail a.it[data-view=
|
|
135
|
-
/* phones: Home, Chat, Runs, Settings. The board,
|
|
135
|
+
@media(max-width:640px){.rail .psec,.rail .plist,.rail .rib{display:none}.rail .rbot,[data-rail=min] .rail .rbot{display:contents}.rail a.it[data-view=tasks]{order:3}.rail a.it[data-view=board]{order:4}.rail a.it .n,.rail a.it .srcs{display:none}}
|
|
136
|
+
/* phones: Home, Chat, Runs, Settings. The board, Tasks and the Icebox are set up on a computer (web/board/phone.ts) */
|
|
136
137
|
@media(min-width:641px){.rail .rbot .lbl{display:none}.rail .rbot a.it{flex:none;width:var(--btn-xs);height:var(--btn-xs);padding:0;justify-content:center;margin-right:auto}[data-rail=min] .rail .rbot a.it{width:var(--btn-s);height:var(--btn-s);margin-right:0}}
|
|
137
138
|
.rail a.it.ponly,#phome{display:none}
|
|
138
139
|
@media(max-width:640px){
|
|
139
|
-
.rail a.it:is([data-view=board],[data-view=
|
|
140
|
+
.rail a.it:is([data-view=board],[data-view=tasks],[data-view=sources]),#foot,#ctx-open,body .rail .rbot .rib{display:none!important}
|
|
140
141
|
.rail a.it.ponly{display:flex}
|
|
141
142
|
.rail a.it[data-view=home]{order:1}.rail a.it[data-view=chat]{order:2}.rail a.it[data-view=device]{order:3}.rail a.it[data-view=settings]{order:4}
|
|
142
143
|
.rail,[data-rail=min] .rail{padding:8px 8px max(2px,calc(env(safe-area-inset-bottom) - 8px));border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
|
|
@@ -383,11 +384,10 @@ pre.mark span:nth-child(1){color:var(--ink-hi)}pre.mark span:nth-child(2){color:
|
|
|
383
384
|
<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>
|
|
384
385
|
<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>
|
|
385
386
|
<a class="it fold" href="/?view=icebox" data-view="sources" title="Icebox: requests gathered from your sources"><svg><use href="#r-tray"/></svg><span class="lbl">Icebox</span><span class="srcs" id="rail-srcs"></span><span class="n" id="ice-n"></span></a>
|
|
386
|
-
<a class="it" href="/?view=
|
|
387
|
-
<a class="it" href="/?view=board" data-view="board" title="Board"><svg><use href="#i-board"/></svg><span class="lbl">Board</span></a>
|
|
387
|
+
<a class="it" href="/?view=tasks" data-view="tasks" title="Tasks: every task and run, filtered"><svg><use href="#r-bulb"/></svg><span class="lbl">Tasks</span></a>
|
|
388
388
|
<a class="it" href="/?setup=1" id="rsetup" hidden title="Continue setup"><span class="ring"></span><span class="lbl">Setup</span></a>
|
|
389
|
-
<div class="psec"><span class="lbl">Projects</span><button id="pfilter" title="Show one project" aria-label="Show one project"><svg><use href="#r-filter"/></svg></button><button id="padd" title="Add project or workspace" aria-label="Add project or workspace"><svg><use href="#r-plus"/></svg></button></div>
|
|
390
|
-
<div class="plist" id="plist" aria-label="
|
|
389
|
+
<div class="psec"><span class="lbl">Projects</span><a class="pbd" href="/?view=board" data-view="board" title="Board" aria-label="Board"><svg><use href="#i-board"/></svg></a><button id="pfilter" title="Show one project" aria-label="Show one project"><svg><use href="#r-filter"/></svg></button><button id="padd" title="Add project or workspace" aria-label="Add project or workspace"><svg><use href="#r-plus"/></svg></button></div>
|
|
390
|
+
<div class="plist" id="plist" aria-label="Tasks and runs by project"></div>
|
|
391
391
|
<div class="rbot"><a class="it fold" href="/?view=settings" data-view="settings" title="Settings" aria-label="Settings"><svg><use href="#i-gear"/></svg><span class="lbl">Settings</span></a><a class="rib" href="/issue" target="_blank" rel="noopener" title="Report an issue" aria-label="Report an issue"><svg><use href="#r-bug"/></svg></a><button class="rib" id="kbd" title="Keyboard shortcuts" aria-label="Keyboard shortcuts"><svg><use href="#r-kbd"/></svg></button><button class="rib th" id="themet" title="Theme" aria-label="Theme"><svg class="sun"><use href="#i-sun"/></svg><svg class="moon"><use href="#i-moon"/></svg></button></div>
|
|
392
392
|
</nav>
|
|
393
393
|
<script>
|