kaizen-agent 1.56.0 → 1.56.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/package.json +1 -1
- package/web/board.html +1 -1
- package/web/board.js +1 -1
- package/web/notebook.js +1 -1
- package/web/term.js +7 -7
- package/web/term.ts +4 -2
- package/web/video.js +1 -1
package/web/term.ts
CHANGED
|
@@ -106,12 +106,14 @@ function mountTerm(el: HTMLElement, key: string, onEnd?: () => void): () => void
|
|
|
106
106
|
bar.className = "termkeys";
|
|
107
107
|
const msg = document.createElement("input");
|
|
108
108
|
// pointerdown + preventDefault: a tap must not move focus off the terminal, nor
|
|
109
|
-
// close the soft keyboard while the message box is being typed in.
|
|
109
|
+
// close the soft keyboard while the message box is being typed in. The key itself
|
|
110
|
+
// fires on click, which the browser drops when the touch becomes a swipe of the row.
|
|
110
111
|
const key = (label: string, fn: () => void) => {
|
|
111
112
|
const b = document.createElement("button");
|
|
112
113
|
b.type = "button";
|
|
113
114
|
b.textContent = label;
|
|
114
|
-
b.addEventListener("pointerdown", (e) =>
|
|
115
|
+
b.addEventListener("pointerdown", (e) => e.preventDefault());
|
|
116
|
+
b.addEventListener("click", () => { fn(); if (document.activeElement !== msg) term.focus(); });
|
|
115
117
|
return b;
|
|
116
118
|
};
|
|
117
119
|
const chips = document.createElement("div");
|
package/web/video.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* kaizen video page
|
|
1
|
+
/* kaizen video page 06830d1016861613 -- generated by bun run build:web from web/video.ts; do not edit */
|
|
2
2
|
(()=>{var W={TikTok:"9x16","Instagram Reels":"9x16","YouTube Shorts":"9x16","WhatsApp Status":"9x16",YouTube:"16x9","Instagram feed":"4x5"},de={"9x16":[1080,1920],"16x9":[1920,1080],"4x5":[1080,1350]},X=["#b4462f","#a8720a","#2d50a5","#0f8fa3","#1f9d55","#7a4fb5","#c2416b","#5b6b8c"],p=(e)=>document.getElementById(e),l=(e)=>String(e??"").replace(/[&<>"']/g,(t)=>`&#${t.charCodeAt(0)};`),E=(e)=>e==null?"":`${Math.floor(e/60)}:${String(Math.round(e%60)).padStart(2,"0")}`,O=(e)=>(e??"9x16").replace("x",":"),I=(e,t)=>`/video/f/${e.place}/${encodeURIComponent(e.name)}/${t.split("/").map(encodeURIComponent).join("/")}`,ce={draft:"Draft",queued:"Queued",building:"Building preview",rendering:"Rendering",ready:"Ready",failed:"Failed"},_=[],ue=[],pe=[],He=(e,t)=>ue.filter((n)=>n.place===e&&n.name===t).sort((n,i)=>i.at-n.at)[0],D="",Ee;function h(e){let t=p("toast");t.textContent=e,t.classList.add("on"),clearTimeout(Ee),Ee=setTimeout(()=>t.classList.remove("on"),3200)}async function M(e,t){let n=await fetch(e,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),i=await n.json().catch(()=>({}));if(!n.ok)throw Error(i.error||i.why||`${n.status}`);return i}async function R(){let e;try{e=await fetch("/video/list")}catch{h("The board is not running");return}let t=await e.json();if(_=t.videos,ue=t.agents??[],pe=t.places,p("emptyhow").innerHTML=`Videos are folders under <code>videos/</code> in ${t.places.map((n)=>`<code>${l(n.dir)}</code>`).join(" or ")}. Ask the kaizen-video skill to make one, and it shows up here.`,me(),y)xe(),Ae();ye()}function De(){return _.flatMap((e)=>{let t=e.outputs.filter((s)=>s.kind!=="history"&&s.kind!=="trying"),n=t.length?t:[null],i=new Map;for(let s of n)if(!i.has(s?.format??e.formats[0]))i.set(s?.format??e.formats[0],s);return[...i].map(([s,a])=>({v:e,f:s,o:a}))})}function me(){let e=p("q").value.trim().toLowerCase().split(/\s+/).filter(Boolean),t=De(),n=t.filter(({v:s})=>{let a=[s.title,s.name,s.text,s.preset,s.where,s.mode,...s.platforms].join(" ").toLowerCase();return(D==="busy"?["queued","building","rendering"].includes(s.status):!D||s.status===D)&&e.every((o)=>a.includes(o))}),i=ue.filter((s)=>s.alive&&!_.some((a)=>a.place===s.place&&a.name===s.name)&&e.every((a)=>s.name.includes(a))&&(!D||D==="busy"||D==="draft"));p("grid").removeAttribute("aria-busy"),p("grid").innerHTML=i.map((s)=>`<article class="vid" tabindex="0" data-p="${s.place}" data-n="${l(s.name)}" aria-label="${l(s.name)}, being made">
|
|
3
3
|
<div class="thumb making" style="--ar:9/16"><span class="t">${s.asking?"Claude is asking you something":"Claude is making this"}</span></div>
|
|
4
4
|
<div class="meta"><b>${l(s.name)}</b><div class="plats"><i class="where">${l(pe[s.place]?.label??"")}</i></div>
|