kaizen-agent 1.49.0 → 1.50.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.
Files changed (84) hide show
  1. package/agents/kaizen-reviewer.md +1 -1
  2. package/cli/hermes.ts +5 -2
  3. package/cli/notes.test.ts +1 -1
  4. package/cli/settings.test.ts +2 -0
  5. package/cli/settings.ts +2 -2
  6. package/cli/state.test.ts +24 -0
  7. package/cli/state.ts +18 -0
  8. package/cli/versions.test.ts +154 -0
  9. package/cli/versions.ts +272 -0
  10. package/cli/video.test.ts +64 -3
  11. package/cli/video.ts +111 -18
  12. package/cli/web.ts +15 -0
  13. package/package.json +1 -1
  14. package/skills/kaizen/README.md +5 -5
  15. package/skills/kaizen/SKILL.md +10 -14
  16. package/skills/kaizen/config.default.yml +3 -3
  17. package/skills/kaizen/spec-main.md +18 -16
  18. package/skills/kaizen/spec-plan.md +6 -6
  19. package/skills/kaizen/spec-review.md +2 -2
  20. package/skills/kaizen-help/SKILL.md +6 -5
  21. package/skills/media/kaizen-video/SKILL.md +20 -2
  22. package/skills/media/kaizen-video/canvas.html +241 -0
  23. package/skills/media/kaizen-video/examples/canvas-film/cat.txt +31 -0
  24. package/skills/media/kaizen-video/examples/canvas-film/film.json +460 -0
  25. package/skills/media/kaizen-video/examples/canvas-film/lines.json +10 -0
  26. package/skills/media/kaizen-video/examples/canvas-film/skip.txt +18 -0
  27. package/skills/media/kaizen-video/examples/canvas-film/talk.txt +23 -0
  28. package/skills/media/kaizen-video/examples/canvas-film/wow.txt +24 -0
  29. package/skills/media/kaizen-video/examples/kaizen-promo/promo.json +17 -0
  30. package/skills/media/kaizen-video/examples/kaizen-promo/record.json +10 -0
  31. package/skills/media/kaizen-video/examples/notula-promo/promo.json +41 -0
  32. package/skills/media/kaizen-video/examples/notula-promo/record.json +135 -0
  33. package/skills/media/kaizen-video/examples/notula-promo/seed.php +20 -0
  34. package/skills/media/kaizen-video/examples/notula-promo/seed.py +38 -0
  35. package/skills/media/kaizen-video/presets/app-promo/CREDITS.txt +2 -0
  36. package/skills/media/kaizen-video/presets/app-promo/README.md +21 -0
  37. package/skills/media/kaizen-video/presets/app-promo/preset.json +7 -0
  38. package/skills/media/kaizen-video/presets/app-promo/template/compositions/end.html +25 -0
  39. package/skills/media/kaizen-video/presets/app-promo/template/compositions/hook.html +19 -0
  40. package/skills/media/kaizen-video/presets/app-promo/template/compositions/name.html +19 -0
  41. package/skills/media/kaizen-video/presets/app-promo/template/compositions/step.html +52 -0
  42. package/skills/media/kaizen-video/presets/app-promo/template/index.html +24 -0
  43. package/skills/media/kaizen-video/presets/film-cinematic-drama/.hidden +1 -0
  44. package/skills/media/kaizen-video/presets/film-explainer-canvas/.hidden +1 -0
  45. package/skills/media/kaizen-video/presets/film-explainer-canvas/CREDITS.txt +3 -0
  46. package/skills/media/kaizen-video/presets/film-explainer-canvas/README.md +7 -0
  47. package/skills/media/kaizen-video/presets/film-explainer-canvas/assets/fonts/InstrumentSerif.ttf +0 -0
  48. package/skills/media/kaizen-video/presets/film-explainer-canvas/assets/fonts/SpaceMono.ttf +0 -0
  49. package/skills/media/kaizen-video/presets/film-explainer-canvas/assets/sfx/boing.wav +0 -0
  50. package/skills/media/kaizen-video/presets/film-explainer-canvas/assets/sfx/ding.wav +0 -0
  51. package/skills/media/kaizen-video/presets/film-explainer-canvas/assets/sfx/ending.wav +0 -0
  52. package/skills/media/kaizen-video/presets/film-explainer-canvas/assets/sfx/pop.wav +0 -0
  53. package/skills/media/kaizen-video/presets/film-explainer-canvas/assets/sfx/reveal.wav +0 -0
  54. package/skills/media/kaizen-video/presets/film-explainer-canvas/assets/sfx/shutter.wav +0 -0
  55. package/skills/media/kaizen-video/presets/film-explainer-canvas/assets/sfx/stamp.wav +0 -0
  56. package/skills/media/kaizen-video/presets/film-explainer-canvas/assets/sfx/tick.wav +0 -0
  57. package/skills/media/kaizen-video/presets/film-explainer-canvas/assets/sfx/whoosh.wav +0 -0
  58. package/skills/media/kaizen-video/presets/film-explainer-canvas/style.json +15 -0
  59. package/skills/media/kaizen-video/presets/film-fun-energetic/.hidden +1 -0
  60. package/skills/media/kaizen-video/presets/film-promo-booth/.hidden +1 -0
  61. package/skills/media/kaizen-video/presets/film-viral-social/.hidden +1 -0
  62. package/skills/media/kaizen-video/presets/tiktok-explainer/index.html +1 -1
  63. package/skills/media/kaizen-video/references/canvas.md +60 -0
  64. package/skills/media/kaizen-video/references/presets.md +31 -0
  65. package/skills/media/kaizen-video/references/promo.md +148 -0
  66. package/skills/media/kaizen-video/references/revisions.md +11 -2
  67. package/skills/media/kaizen-video/scripts/make_film.py +157 -4
  68. package/skills/media/kaizen-video/scripts/make_promo.py +297 -0
  69. package/skills/media/kaizen-video/scripts/make_tiktok.py +34 -6
  70. package/skills/media/kaizen-video/scripts/pixel.py +40 -0
  71. package/skills/media/kaizen-video/scripts/record.mjs +103 -0
  72. package/web/board/approvals.ts +2 -2
  73. package/web/board/cards.ts +4 -4
  74. package/web/board/icebox.ts +6 -5
  75. package/web/board/panel.ts +2 -2
  76. package/web/board.html +24 -9
  77. package/web/board.js +24 -24
  78. package/web/notebook.js +10 -10
  79. package/web/notebook.ts +5 -1
  80. package/web/notes.html +19 -3
  81. package/web/term.js +1 -1
  82. package/web/video.html +62 -12
  83. package/web/video.js +67 -56
  84. package/web/video.ts +266 -33
@@ -215,13 +215,13 @@ export async function openRun(c, refresh, again) {
215
215
  asks = !pq
216
216
  ? " It has open questions the board cannot show: answer them in the terminal running this run, or approve and your agent asks them."
217
217
  : qs.length
218
- ? ` It asks ${qs.length === 1 ? "one question" : qs.length + " questions"}: Approve opens ${qs.length === 1 ? "it" : "them"}.`
218
+ ? ` Approve first asks you ${qs.length === 1 ? "its question" : "its " + qs.length + " questions"}.`
219
219
  : "";
220
220
  // gitBtn's buttons restyled as menu rows.
221
221
  const more =
222
222
  gitBtn(c).replace(/class="btn( pri)?"/g, "") +
223
223
  `<button data-a="archive">Archive</button><hr><button data-a="ab" class="danger">Abandon</button>`;
224
- foot.innerHTML = html`<span class="note">${sent ? "Sent to your agent." : APPROVAL[c.awaiting] + asks + " Answering here opens a new agent session."}</span><details class="more"><summary class="btn ghost">More</summary><div class="menu-pop">${raw(more)}</div></details>${raw(rs)}<span class="dec"><button class="btn" data-a="revise"${sent ? " disabled" : ""}>Revise</button><button class="btn pri" data-a="approve"${sent ? " disabled" : ""}>${c.awaiting === "findings" ? "Approve as-is" : "Approve"}</button></span>`;
224
+ foot.innerHTML = html`<span class="note">${sent ? "Sent to your agent." : APPROVAL[c.awaiting] + asks}</span><details class="more"><summary class="btn ghost">More</summary><div class="menu-pop">${raw(more)}</div></details>${raw(rs)}<span class="dec"><button class="btn" data-a="revise"${sent ? " disabled" : ""}>Revise</button><button class="btn pri" data-a="approve"${sent ? " disabled" : ""}>${c.awaiting === "findings" ? "Approve as-is" : "Approve"}</button></span>`;
225
225
  } else if (c.status === "waiting")
226
226
  foot.innerHTML = html`<span class="note">Waiting on you: ${need(c.awaiting)}. Answer in the ${c.pty && c.pty.alive ? "terminal (button at the top)" : "terminal running this run"}.</span>${raw(arch)}<button class="btn ghost" data-a="ab">Abandon</button>${raw(rs)}`;
227
227
  else if (c.status === "done") foot.innerHTML = raw(arch + rs);
package/web/board.html CHANGED
@@ -59,6 +59,7 @@ svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6;stroke
59
59
  [data-rail=min] .theme{flex-direction:column}
60
60
  [data-rail=min] .theme button{width:34px;flex:none}
61
61
  @media(max-width:640px){#fold{display:none}}
62
+ .mtab{display:none}
62
63
  /* phones: the side menu is a bottom tab bar, in the page flow so nothing sits under it; it owns the bottom safe area */
63
64
  @media(max-width:640px){body{flex-direction:column;padding-bottom:0}.app{flex:1;min-height:0}
64
65
  .rail,[data-rail=min] .rail{order:2;width:auto;flex-direction:row;align-items:stretch;gap:0;padding:4px 6px calc(4px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--bg-2);overflow:visible}
@@ -66,6 +67,16 @@ svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6;stroke
66
67
  .rail a.it,[data-rail=min] .rail a.it{flex:1;width:auto;flex-direction:column;justify-content:center;gap:2px;height:auto;min-height:48px;padding:4px 0;font-size:11px}
67
68
  .rail a.it[aria-current=page]{background:none;color:var(--accent)}
68
69
  [data-rail=min] .rail .lbl{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
70
+ .rail a.it.fold{display:none}
71
+ .mtab{display:flex;flex:1;position:relative}
72
+ .mtab summary{flex:1;list-style:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:48px;padding:4px 0;font-size:11px;font-weight:500;color:var(--dim);cursor:pointer}
73
+ .mtab summary::-webkit-details-marker{display:none}
74
+ .mtab svg{width:18px;height:18px}
75
+ .mtab[open] summary,.rail:has(a.it.fold[aria-current=page]) .mtab summary{color:var(--accent)}
76
+ .mpop{position:absolute;right:0;bottom:calc(100% + 8px);z-index:30;min-width:160px;display:flex;flex-direction:column;padding:6px;background:var(--bg-2);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow-2)}
77
+ .mpop a{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:var(--r-s);font-size:14px;color:var(--ink);text-decoration:none}
78
+ .mpop a:hover{background:var(--hover)}
79
+ .rail:has(a.it.fold.upd) .mtab summary{position:relative}.rail:has(a.it.fold.upd) .mtab summary::after{content:"";position:absolute;left:calc(50% + 6px);top:4px;width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px var(--bg)}
69
80
  body .rail a.upd::after{left:calc(50% + 6px);top:4px}body .toast{left:16px;bottom:calc(68px + env(safe-area-inset-bottom))}}
70
81
  /* end side menu */
71
82
  .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)}
@@ -151,7 +162,7 @@ section h2 .ib{margin-left:auto}
151
162
  .itabs [role=tab]{min-height:26px;padding:0 8px;border:0;border-radius:13px;background:none;color:var(--dim);font:inherit;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;gap:5px}
152
163
  .itabs [role=tab] svg{width:14px;height:14px;stroke-width:1.7}
153
164
  .itabs [role=tab][aria-selected=true]{color:var(--ink);font-weight:500;background:color-mix(in srgb,var(--dim) 14%,transparent)}
154
- .itabs i{font-style:normal}
165
+ .itabs i{font-style:normal}.itabs b{font-weight:inherit}
155
166
  .itabs button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
156
167
  section h2 .sevf{margin-left:auto}section h2 .sevf~.ib{margin-left:0}
157
168
  section h2 .sevf.on{color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent)}
@@ -191,7 +202,7 @@ section h2 .clear{margin-left:auto;min-height:22px;padding:0 8px}
191
202
  .c-title{font-size:13px;font-weight:500;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--ink)}
192
203
  .c-foot{display:flex;align-items:center;gap:8px;margin-top:2px}
193
204
  .card .act{align-self:flex-start;min-height:24px;padding:0 10px;font-size:12px}
194
- .card.compact{flex-direction:row;align-items:center;gap:8px;padding:7px 12px}.card.compact .c-id{display:contents}.card.compact .idt{display:none}.card.compact .c-title{order:1;flex:1;min-width:0;-webkit-line-clamp:1}.card.compact .age{order:2}.card.compact .more{order:3}.card.compact .c-foot,.card.compact .kids{display:none}
205
+ .card.compact{flex-direction:row;align-items:center;gap:8px;padding:7px 12px}.card.compact .c-id{display:contents}.card.compact .idt{order:1;min-width:0;color:var(--ink)}.card.compact .c-title{display:none}.card.compact .age{order:2}.card.compact .more{order:3}.card.compact .c-foot,.card.compact .kids{display:none}
195
206
  section li.hint{display:block;padding:14px;border:1px dashed var(--line);border-radius:var(--r-s);color:var(--dim);font-size:12px;text-align:center}
196
207
  #bq{width:220px;min-height:30px}
197
208
  .c-chips{display:flex;gap:4px;flex-wrap:wrap;flex:1;min-width:0}
@@ -274,7 +285,7 @@ body.paged #board,body.paged .ftr,body.paged .scrim,body.paged #bq{display:none}
274
285
  body.paged:not(.ice) .hdr,body.ice aside.docked>header{display:none}body.ice #newtop{visibility:hidden}
275
286
  /* The Terminal page: the project bar stays (it picks whose terminals show), the board gives way to the tiles */
276
287
  #terms{display:none}body.termv.paged .hdr{display:flex}body.termv #newtop,body.termv #fbtn{display:none!important}
277
- body.termv #terms{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;padding:10px 20px 14px 28px}
288
+ body.termv #terms{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;padding:10px 20px 14px 28px;animation:fi .2s}
278
289
  .tbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px}#tmodes{display:none}body.termv #tmodes{display:inline-flex}#tmodes button{display:inline-grid;place-items:center;padding:0 8px}#tmodes svg{width:16px;height:16px}.tbar .chip{cursor:pointer;background:none;border:0;font:inherit;font-size:11px}.tbar .chip:hover{color:var(--ink)}.tbar svg{width:12px;height:12px}
279
290
  .tgrid{position:relative;flex:1;min-height:0;display:grid;gap:6px}
280
291
  .tile{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid var(--line);border-radius:var(--r-s);background:var(--bg);overflow:hidden}.tile.off{display:none}.tile.drop{outline:2px solid var(--accent);outline-offset:-2px}
@@ -393,8 +404,8 @@ aside .foot .more .menu-pop{left:0;right:auto;top:auto;bottom:calc(100% + 4px)}.
393
404
  .ice-fpop{position:absolute;right:0;top:calc(100% + 4px);z-index:9;display:flex;flex-direction:column;gap:6px;padding:8px;background:var(--bg-2);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow-2)}.ice-fpop .ice-combo .menu-pop{left:auto;right:0}
394
405
  .ice-bar .count{font-size:13px;font-weight:600;color:var(--ink)}
395
406
  .ice-bar .end{flex:1}
396
- .ice-bar .btn,.ice-bulk .btn,.ice-ra .btn{display:inline-flex;align-items:center;gap:6px}
397
- .ice-bar .btn svg,.ice-bulk .btn svg,.ice-ra .btn svg{width:14px;height:14px}
407
+ .ice-bar .btn,.ice-bulk .btn,.ice-ra .btn,.ice-zero .btn{display:inline-flex;align-items:center;gap:6px}
408
+ .ice-bar .btn svg,.ice-bulk .btn svg,.ice-ra .btn svg,.ice-zero .btn svg{width:14px;height:14px}
398
409
  .ice-bar>input,.ice-row input,.ice-bulk input{accent-color:var(--accent);width:15px;height:15px;margin:0;flex-shrink:0}
399
410
  .ice-bar .ice-sel{width:auto;max-width:170px;height:28px;font-size:12px;padding:2px 26px 2px 8px}
400
411
  @media(max-width:640px){.ice-bar{flex-wrap:wrap}.ice-bar .ice-combo{min-width:0;flex:1 1 40%}.ice-bar .ice-combo>.sel{max-width:none;width:100%}}
@@ -420,7 +431,7 @@ aside .foot .more .menu-pop{left:0;right:auto;top:auto;bottom:calc(100% + 4px)}.
420
431
  .ice-open{display:grid;gap:8px;padding:6px 12px 12px 61px}
421
432
  .ice-zero{padding:40px 16px;text-align:center;border:1px solid var(--line);border-radius:var(--r);background:var(--bg-2)}
422
433
  .ice-zero h4{margin:0 0 6px;font-size:14px;font-weight:600;color:var(--ink)}
423
- .ice-zero p{margin:0;font-size:12px;color:var(--dim);line-height:1.5}
434
+ .ice-zero p{margin:0 auto;font-size:12px;color:var(--dim);line-height:1.5}
424
435
  .ice-open .hint{font-size:12px;color:var(--dim)}
425
436
  /* the sources: the run panel's drawer (aside rules), sliding over the icebox page */
426
437
  body:not(.paged) .src-sec,body:not(.paged) .src-scrim{display:none}
@@ -591,9 +602,10 @@ a.schip:hover{color:var(--ink);border-color:color-mix(in srgb,var(--line) 60%,va
591
602
  <a class="it" href="/?view=icebox" data-view="sources" title="Icebox: requests gathered from your sources"><svg><use href="#i-inbox"/></svg><span class="lbl">Icebox</span></a>
592
603
  <a class="it" href="/" data-view="board" title="Board"><svg><use href="#i-board"/></svg><span class="lbl">Board</span></a>
593
604
  <a class="it" href="/notebook" data-view="notes" title="Notes"><svg><use href="#i-note"/></svg><span class="lbl">Notes</span></a>
594
- <a class="it" href="/video" data-view="video" title="Video: make and edit videos"><svg><use href="#i-video"/></svg><span class="lbl">Video</span></a>
605
+ <a class="it fold" href="/video" data-view="video" title="Video: make and edit videos"><svg><use href="#i-video"/></svg><span class="lbl">Video</span></a>
595
606
  <a class="it" href="/?view=terminal" data-view="terminal" title="Terminal: every agent running in its card"><svg><use href="#i-term"/></svg><span class="lbl">Terminal</span></a>
596
- <a class="it" href="/?view=settings" data-view="settings" title="Settings"><svg><use href="#i-gear"/></svg><span class="lbl">Settings</span></a>
607
+ <a class="it fold" href="/?view=settings" data-view="settings" title="Settings"><svg><use href="#i-gear"/></svg><span class="lbl">Settings</span></a>
608
+ <details class="mtab"><summary title="More"><svg><use href="#i-more"/></svg><span class="lbl">More</span></summary><div class="mpop"><a href="/video" data-view="video"><svg><use href="#i-video"/></svg>Video</a><a href="/?view=settings" data-view="settings"><svg><use href="#i-gear"/></svg>Settings</a></div></details>
597
609
  <span class="end"></span>
598
610
  <div class="theme" role="group" aria-label="Theme"><button data-t="light" title="Light theme"><svg><use href="#i-sun"/></svg><span class="lbl">Light</span></button><button data-t="dark" title="Dark theme"><svg><use href="#i-moon"/></svg><span class="lbl">Dark</span></button></div>
599
611
  </nav>
@@ -614,7 +626,10 @@ a.schip:hover{color:var(--ink);border-color:color-mix(in srgb,var(--line) 60%,va
614
626
  window.setMotion=m=>{if(m==="system")delete r.dataset.motion;else r.dataset.motion=m;try{m==="system"?localStorage.removeItem("kz-motion"):localStorage.setItem("kz-motion",m)}catch(e){}};
615
627
  try{const m=localStorage.getItem("kz-motion");if(m)r.dataset.motion=m}catch(e){}
616
628
  os.addEventListener("change",paint);paint();
617
- document.querySelectorAll(".theme button").forEach(b=>b.onclick=()=>setTheme(b.dataset.t))})();
629
+ document.querySelectorAll(".theme button").forEach(b=>b.onclick=()=>setTheme(b.dataset.t));
630
+ // Phones: More holds the tabs that do not fit; a pick or a tap elsewhere closes it.
631
+ const more=document.querySelector(".mtab");more.querySelectorAll("a").forEach(a=>a.addEventListener("click",()=>more.open=false));
632
+ addEventListener("pointerdown",e=>{if(more.open&&!more.contains(e.target))more.open=false},true)})();
618
633
  </script>
619
634
  <div class="app">
620
635
  <div class="hdr">