@engenty/wizards-runtime 0.16.0 → 0.16.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.
Files changed (26) hide show
  1. package/apps/runtime/dist/cli/move-files.js +27 -11
  2. package/apps/runtime/dist/documents/parse.js +9 -0
  3. package/apps/runtime/dist/services/work-files.js +25 -1
  4. package/apps/web/dist/assets/{AboutDialog-0q4P80yv.js → AboutDialog-C9SnsGno.js} +1 -1
  5. package/apps/web/dist/assets/{CapabilitiesPage-BlZP8DYb.js → CapabilitiesPage-DvSSybt0.js} +1 -1
  6. package/apps/web/dist/assets/{ChangelogDialog-CDN7kMs1.js → ChangelogDialog-B28TK333.js} +1 -1
  7. package/apps/web/dist/assets/{EditorPage-CrMVsgUt.js → EditorPage-Duu8swX6.js} +1 -1
  8. package/apps/web/dist/assets/{NewWizardChannels-Czool7s1.js → NewWizardChannels-B12l2_Jh.js} +1 -1
  9. package/apps/web/dist/assets/{NewWizardPage-CfVe_4a2.js → NewWizardPage-B10K8vND.js} +1 -1
  10. package/apps/web/dist/assets/{PreviewPane-CQDKQO6z.js → PreviewPane-DhhQ06Ic.js} +1 -1
  11. package/apps/web/dist/assets/{PublicRunner-BDZNnlQw.js → PublicRunner-B8ncIxIP.js} +1 -1
  12. package/apps/web/dist/assets/{ReadOnly-B7MUySpC.js → ReadOnly-DwewuYi8.js} +1 -1
  13. package/apps/web/dist/assets/{SettingsPage-Bgurv3l2.js → SettingsPage-C-gGIJLJ.js} +2 -2
  14. package/apps/web/dist/assets/{SetupPage-C3km8vqv.js → SetupPage-CdsrHW-w.js} +1 -1
  15. package/apps/web/dist/assets/{SharePage-UwEJBIzq.js → SharePage-CZClatA_.js} +1 -1
  16. package/apps/web/dist/assets/{SpacePage-D9PXLSU_.js → SpacePage-CYhxcjj0.js} +1 -1
  17. package/apps/web/dist/assets/{UpdateCheck-C7I43zFZ.js → UpdateCheck-CLPUsKVT.js} +2 -2
  18. package/apps/web/dist/assets/{changelog-DwgWiSZb.js → changelog-y5oxYzPd.js} +1 -1
  19. package/apps/web/dist/assets/{connection-sign-in-hI3HXhq4.js → connection-sign-in-DECedzrs.js} +1 -1
  20. package/apps/web/dist/assets/{host-D5hNHbhF.js → host-CJdLkzfY.js} +4 -4
  21. package/apps/web/dist/assets/{index-CyBrvupM.js → index-CmonJZHC.js} +3 -3
  22. package/apps/web/dist/assets/{theme-CdX0marK.js → theme-D6KUBJnh.js} +1 -1
  23. package/apps/web/dist/index.html +3 -3
  24. package/package.json +1 -1
  25. package/plugin/.claude-plugin/plugin.json +1 -1
  26. package/plugin/plugin.json +1 -1
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/400-CyB00QFz.css","assets/500-DqciRChS.css","assets/600-B9Zp6bBy.css","assets/700-5l7ov3HZ.css","assets/400-n8m3eWIv.css","assets/500-BrSlhPjT.css","assets/600-CfY_-NCo.css","assets/700-CGFQ5xCB.css","assets/400-C1aMvkWZ.css","assets/500-XHIL5p_x.css","assets/600-BpnjcFCp.css","assets/700-BwKwxaTT.css","assets/400-CvPzio2w.css","assets/500-vjb4iIph.css","assets/600-BMp88EpG.css","assets/700-CReDayoA.css","assets/400-C-EAXind.css","assets/500-BacxruX7.css","assets/600-Bv31zJWL.css","assets/700-D1QH7Wga.css","assets/400-an-Q8PSH.css","assets/500-Dk7ZdhaB.css","assets/600-Bu09rnu5.css","assets/700-CEuaYRw2.css","assets/400-BpGVy8f9.css","assets/500-DjLsfQf4.css","assets/600-BvFs-CRM.css","assets/700-BXdZ1Wt4.css","assets/400-Bx8aXxdn.css","assets/500-ueODFTvD.css","assets/600-CX1ZBIY5.css","assets/700-B057BQ0n.css","assets/400-W7eSYfM-.css","assets/500--5BQEKwF.css","assets/600-B1b7x6MC.css","assets/700-pQg9ODXE.css","assets/400-NJi9pVr7.css","assets/400-fDO2E_2J.css","assets/500-Bp7rE3sO.css","assets/600-D7AGNg1U.css","assets/700-CBDkNWxO.css","assets/400-DiVWFxeN.css","assets/400-CWy8yahC.css"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{At as r,Bt as i,Ct as a,Dt as o,Ft as s,Gt as c,Ht as l,Mt as u,Nt as d,On as f,Pn as p,Pt as m,Q as h,St as g,Tn as _,Ut as v,Vt as y,bn as b,bt as x,er as S,f as C,gn as w,gt as T,ht as E,jn as D,kt as O,ln as k,mn as A,on as ee,pn as j,pt as M,rn as N,xn as P,xt as F,yn as te}from"./ui-BCfu5sia.js";import{t as ne}from"./react-dom-hf6EcyAr.js";import{t as I}from"./preload-helper-DpV6A1kQ.js";import{d as L,u as re}from"./marked.esm-DQ7XA7AC.js";import{t as ie}from"./volume-2-BqlBtCIJ.js";import{a as ae,d as oe,l as se,o as ce,t as le,u as ue}from"./read-aloud-Bfp9_bUY.js";import{A as de,D as fe,E as pe,S as me}from"./session-CMQo8P-G.js";import{t as he}from"./phone-B4uKDBFq.js";import{t as ge}from"./engenty-CNjaZCVM.js";import{Ct as R,E as _e,Et as ve,G as ye,P as be,St as xe,Tt as z,bt as Se,m as Ce,n as we,rt as B,s as V,t as Te,u as Ee,vt as De,xt as Oe,yt as H}from"./i18n-BBzMbGoo.js";import{t as ke}from"./index-CyBrvupM.js";var Ae={name:`hand`,size:24,node:[[`path`,{d:`M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2`,key:`1fvzgz`}],[`path`,{d:`M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2`,key:`1kc0my`}],[`path`,{d:`M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8`,key:`10h0bg`}],[`path`,{d:`M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15`,key:`1s1gnw`}]]};Ae.node;var je=L(Ae),Me={name:`smartphone`,size:24,node:[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]};Me.node;var Ne=L(Me),Pe={name:`video-off`,size:24,node:[[`path`,{d:`M10.66 6H14a2 2 0 0 1 2 2v2.5l5.248-3.062A.5.5 0 0 1 22 7.87v8.196`,key:`w8jjjt`}],[`path`,{d:`M16 16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2`,key:`1xawa7`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]};Pe.node;var Fe=L(Pe),Ie={name:`volume-x`,size:24,node:[[`path`,{d:`M11 4.702a.7.7 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.7.7 0 0 0 11 19.298z`,key:`1p7khw`}],[`path`,{d:`m16.5 14.5 5-5`,key:`cul3yw`}],[`path`,{d:`m16.5 9.5 5 5`,key:`1akey5`}]]};Ie.node;var Le=L(Ie),Re=3e3,ze=new Set;function Be(e,t,n){let r=`${e.family}\n${e.url}`;if(ze.has(r))return;ze.add(r);let i=!1,a=setTimeout(()=>i||n(),Re),o=()=>{i=!0,clearTimeout(a)},s=()=>{o(),n()};if(e.stylesheet){let n=document.createElement(`link`);n.rel=`stylesheet`,n.href=t,n.onerror=s,n.onload=()=>{document.fonts.load(`1em "${e.family.replace(/"/g,``)}"`).then(e=>e.length?o():s(),s)},document.head.append(n);return}new FontFace(e.family,`url("${t.replace(/["\\\n]/g,encodeURIComponent)}")`,{display:`swap`,weight:`100 900`}).load().then(e=>{document.fonts.add(e),o()},s)}var Ve=e(ne(),1),U=e(t(),1),W=e(n(),1),He=typeof window<`u`&&window.matchMedia(`(pointer: coarse)`).matches;function Ue({since:e}){let[t,n]=(0,U.useState)(Date.now());if((0,U.useEffect)(()=>{if(!e)return;let t=setInterval(()=>n(Date.now()),1e3);return()=>clearInterval(t)},[e]),!e)return null;let r=Math.max(0,Math.floor((t-e)/1e3)),i=String(Math.floor(r/60)).padStart(2,`0`),a=String(r%60).padStart(2,`0`);return(0,W.jsxs)(`span`,{className:`font-mono text-[0.8125rem] text-white/60 tabular-nums`,children:[i,`:`,a]})}function G({label:e,on:t,danger:n,busy:r,onClick:i,children:a}){return(0,W.jsx)(`button`,{type:`button`,"aria-label":e,title:e,"aria-pressed":t,disabled:r,onClick:i,className:A(`flex size-12 items-center justify-center rounded-full transition disabled:opacity-50`,n?`bg-rose text-white hover:brightness-110`:t===!1?`bg-white text-neutral-900 hover:bg-white/90`:`bg-white/15 text-white hover:bg-white/25`),children:r?(0,W.jsx)(k,{className:`size-5`}):a})}function We({voice:e}){let t=(0,U.useRef)(null),{captions:n}=e;return(0,U.useEffect)(()=>{n.length&&t.current?.scrollIntoView({block:`end`})},[n]),n.length?(0,W.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-4 sm:px-5`,children:(0,W.jsxs)(`ol`,{className:`mx-auto flex max-w-[720px] flex-col gap-2 py-2`,children:[n.map(e=>(0,W.jsx)(`li`,{className:A(`text-[0.9375rem] leading-snug`,e.who===`bot`?`text-white/95`:`text-right text-white/50`),children:e.text},e.id)),(0,W.jsx)(`div`,{ref:t})]})}):null}function Ge({voice:e,view:t,video:n,className:r}){let i=e.state===`live`,a=e.state===`connecting`,[o,s]=(0,U.useState)(null),[c,l]=(0,U.useState)(!1);(0,U.useEffect)(()=>{s(i?Date.now():null)},[i]);let u=async()=>{l(!1),await e.start(),n&&await e.startCamera()},d=()=>{e.stop(),l(!0)},f=n||e.camera,m=[...e.captions].reverse().find(e=>e.who===`bot`),h=[...e.captions].reverse().find(e=>e.who===`me`),g=e.speaking?V(`talk.speaking`):e.listening?V(`talk.listening`):i?V(`talk.live`):a?V(`talk.connecting`):c?V(`video.ended`):``;return(0,W.jsxs)(`section`,{className:A(`relative flex min-h-0 flex-col bg-neutral-950 text-white`,`safe-top`,r),children:[(0,W.jsxs)(`div`,{className:`flex h-14 shrink-0 items-center gap-3 px-4 sm:px-5`,children:[(0,W.jsx)(`div`,{className:`min-w-0 flex-1 truncate font-display font-semibold text-[1rem] tracking-tight`,children:t?.wizard.title??``}),g?(0,W.jsxs)(`span`,{className:`flex items-center gap-1.5 text-[0.8125rem] text-white/70`,children:[i?(0,W.jsx)(`span`,{className:A(`size-2 rounded-full`,e.speaking?`animate-pulse-dot bg-emerald-400`:`bg-rose`)}):null,g]}):null,(0,W.jsx)(Ue,{since:o})]}),(0,W.jsxs)(`div`,{className:A(`grid min-h-0 gap-2 px-3 pb-2 sm:px-4`,f?`flex-1 grid-cols-1 sm:grid-cols-2`:`shrink-0 grid-cols-1`,!f&&i&&e.captions.length?`h-[38%]`:f?``:`flex-1`),children:[(0,W.jsxs)(`div`,{className:A(`relative min-h-0 overflow-hidden rounded-2xl bg-neutral-900`,!f&&`hidden`),children:[(0,W.jsx)(`video`,{ref:e.video,muted:!0,playsInline:!0,autoPlay:!0,className:A(`absolute inset-0 h-full w-full object-cover`,e.facing===`user`&&`-scale-x-100`,e.camera?`block`:`hidden`)}),e.camera?null:(0,W.jsxs)(`div`,{className:`absolute inset-0 flex flex-col items-center justify-center gap-2 text-white/50`,children:[(0,W.jsx)(Fe,{className:`size-8`}),(0,W.jsx)(`span`,{className:`text-[0.8125rem]`,children:V(`video.cameraOff`)})]}),(0,W.jsxs)(`span`,{className:`absolute bottom-2 left-3 rounded-md bg-black/50 px-2 py-0.5 text-[0.75rem]`,children:[V(`video.you`),e.muted?(0,W.jsx)(oe,{className:`ml-1.5 inline size-3`}):null]})]}),(0,W.jsxs)(`div`,{className:A(`relative flex min-h-0 items-center justify-center overflow-hidden rounded-2xl transition-shadow`,f?`bg-neutral-900`:`bg-transparent`,f&&e.speaking&&`ring-2 ring-emerald-400/70`),children:[(0,W.jsx)(`div`,{className:A(`rounded-full transition-shadow duration-500`,!f&&e.listening&&`shadow-[0_0_80px_20px_rgba(244,63,94,0.25)]`,!f&&e.speaking&&`shadow-[0_0_80px_20px_rgba(52,211,153,0.3)]`,e.speaking&&`animate-breathe`),children:(0,W.jsx)(me,{kind:t?.wizard.avatar??`round`,costume:t?.wizard.costume,size:f?140:200,fluffy:!0,interactive:!1})}),f?(0,W.jsx)(`span`,{className:`absolute bottom-2 left-3 max-w-[85%] truncate rounded-md bg-black/50 px-2 py-0.5 text-[0.75rem]`,children:t?.wizard.title??``}):null]})]}),i&&!f?(0,W.jsx)(We,{voice:e}):i&&(m||h)?(0,W.jsx)(`div`,{className:`shrink-0 px-4 pb-2 sm:px-5`,children:(0,W.jsxs)(`div`,{className:`mx-auto max-w-[720px] space-y-1 text-center`,children:[h?(0,W.jsx)(`p`,{className:`line-clamp-1 text-[0.8125rem] text-white/50`,children:h.text}):null,m?(0,W.jsx)(`p`,{className:`line-clamp-3 text-[0.9375rem] text-white/95 leading-snug`,children:m.text}):null]})}):null,e.error?(0,W.jsx)(`p`,{className:`shrink-0 px-5 pb-2 text-center text-[0.8125rem] text-rose`,children:e.error}):null,(0,W.jsx)(`div`,{className:`flex shrink-0 items-center justify-center gap-3 px-4 pt-1 pb-4`,children:i?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(G,{label:V(e.muted?`video.unmute`:`video.mute`),on:!e.muted,onClick:e.toggleMute,children:e.muted?(0,W.jsx)(oe,{className:`size-5`}):(0,W.jsx)(p,{className:`size-5`})}),(0,W.jsx)(G,{label:V(e.camera?`talk.cameraOff`:`talk.camera`),on:e.camera,onClick:()=>e.camera?e.stopCamera():void e.startCamera(),children:e.camera?(0,W.jsx)(w,{className:`size-5`}):(0,W.jsx)(Fe,{className:`size-5`})}),e.camera&&He?(0,W.jsx)(G,{label:V(`video.flip`),onClick:()=>void e.flipCamera(),children:(0,W.jsx)(te,{className:`size-5`})}):null,(0,W.jsx)(G,{label:V(`video.leave`),danger:!0,onClick:d,children:(0,W.jsx)(ue,{className:`size-5`})})]}):(0,W.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,W.jsxs)(`button`,{type:`button`,disabled:a||!t?.talk,onClick:()=>void u(),className:`flex h-12 items-center gap-2 rounded-full bg-emerald-500 px-6 font-medium text-[0.9375rem] text-white transition hover:brightness-110 disabled:opacity-50`,children:[a?(0,W.jsx)(k,{className:`size-4`}):n?(0,W.jsx)(w,{className:`size-5`}):(0,W.jsx)(p,{className:`size-5`}),V(c?`video.rejoin`:n?`video.join`:`talk.start`)]}),!c&&!e.error?(0,W.jsx)(`p`,{className:`max-w-sm text-center text-[0.75rem] text-white/50`,children:V(n?`video.hint`:`talk.joinHint`)}):null]})})]})}var Ke=e=>_e[e.kind]!==`device`,qe=1024,Je=4e3;function Ye(e,t){return e?e.length>t?`${e.slice(0,t)} …`:e:``}function Xe(e,t,n=!1){let r=[`status: ${e.status}`,`camera: ${n?`on`:`off`}`];if(e.ask)return r.push(e.ask.kind===`confirm`?`question: the step wants to "${e.ask.action.summary}" in ${e.ask.service}; answer_ask allows or skips it`:`question: a sign-in at ${e.ask.site.host}; the person types it on the screen, wait`),r.join(`
2
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{At as r,Bt as i,Ct as a,Dt as o,Ft as s,Gt as c,Ht as l,Mt as u,Nt as d,On as f,Pn as p,Pt as m,Q as h,St as g,Tn as _,Ut as v,Vt as y,bn as b,bt as x,er as S,f as C,gn as w,gt as T,ht as E,jn as D,kt as O,ln as k,mn as A,on as ee,pn as j,pt as M,rn as N,xn as P,xt as F,yn as te}from"./ui-BCfu5sia.js";import{t as ne}from"./react-dom-hf6EcyAr.js";import{t as I}from"./preload-helper-DpV6A1kQ.js";import{d as L,u as re}from"./marked.esm-DQ7XA7AC.js";import{t as ie}from"./volume-2-BqlBtCIJ.js";import{a as ae,d as oe,l as se,o as ce,t as le,u as ue}from"./read-aloud-Bfp9_bUY.js";import{A as de,D as fe,E as pe,S as me}from"./session-CMQo8P-G.js";import{t as he}from"./phone-B4uKDBFq.js";import{t as ge}from"./engenty-CNjaZCVM.js";import{Ct as R,E as _e,Et as ve,G as ye,P as be,St as xe,Tt as z,bt as Se,m as Ce,n as we,rt as B,s as V,t as Te,u as Ee,vt as De,xt as Oe,yt as H}from"./i18n-BBzMbGoo.js";import{t as ke}from"./index-CmonJZHC.js";var Ae={name:`hand`,size:24,node:[[`path`,{d:`M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2`,key:`1fvzgz`}],[`path`,{d:`M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2`,key:`1kc0my`}],[`path`,{d:`M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8`,key:`10h0bg`}],[`path`,{d:`M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15`,key:`1s1gnw`}]]};Ae.node;var je=L(Ae),Me={name:`smartphone`,size:24,node:[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]};Me.node;var Ne=L(Me),Pe={name:`video-off`,size:24,node:[[`path`,{d:`M10.66 6H14a2 2 0 0 1 2 2v2.5l5.248-3.062A.5.5 0 0 1 22 7.87v8.196`,key:`w8jjjt`}],[`path`,{d:`M16 16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2`,key:`1xawa7`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]};Pe.node;var Fe=L(Pe),Ie={name:`volume-x`,size:24,node:[[`path`,{d:`M11 4.702a.7.7 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.7.7 0 0 0 11 19.298z`,key:`1p7khw`}],[`path`,{d:`m16.5 14.5 5-5`,key:`cul3yw`}],[`path`,{d:`m16.5 9.5 5 5`,key:`1akey5`}]]};Ie.node;var Le=L(Ie),Re=3e3,ze=new Set;function Be(e,t,n){let r=`${e.family}\n${e.url}`;if(ze.has(r))return;ze.add(r);let i=!1,a=setTimeout(()=>i||n(),Re),o=()=>{i=!0,clearTimeout(a)},s=()=>{o(),n()};if(e.stylesheet){let n=document.createElement(`link`);n.rel=`stylesheet`,n.href=t,n.onerror=s,n.onload=()=>{document.fonts.load(`1em "${e.family.replace(/"/g,``)}"`).then(e=>e.length?o():s(),s)},document.head.append(n);return}new FontFace(e.family,`url("${t.replace(/["\\\n]/g,encodeURIComponent)}")`,{display:`swap`,weight:`100 900`}).load().then(e=>{document.fonts.add(e),o()},s)}var Ve=e(ne(),1),U=e(t(),1),W=e(n(),1),He=typeof window<`u`&&window.matchMedia(`(pointer: coarse)`).matches;function Ue({since:e}){let[t,n]=(0,U.useState)(Date.now());if((0,U.useEffect)(()=>{if(!e)return;let t=setInterval(()=>n(Date.now()),1e3);return()=>clearInterval(t)},[e]),!e)return null;let r=Math.max(0,Math.floor((t-e)/1e3)),i=String(Math.floor(r/60)).padStart(2,`0`),a=String(r%60).padStart(2,`0`);return(0,W.jsxs)(`span`,{className:`font-mono text-[0.8125rem] text-white/60 tabular-nums`,children:[i,`:`,a]})}function G({label:e,on:t,danger:n,busy:r,onClick:i,children:a}){return(0,W.jsx)(`button`,{type:`button`,"aria-label":e,title:e,"aria-pressed":t,disabled:r,onClick:i,className:A(`flex size-12 items-center justify-center rounded-full transition disabled:opacity-50`,n?`bg-rose text-white hover:brightness-110`:t===!1?`bg-white text-neutral-900 hover:bg-white/90`:`bg-white/15 text-white hover:bg-white/25`),children:r?(0,W.jsx)(k,{className:`size-5`}):a})}function We({voice:e}){let t=(0,U.useRef)(null),{captions:n}=e;return(0,U.useEffect)(()=>{n.length&&t.current?.scrollIntoView({block:`end`})},[n]),n.length?(0,W.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-4 sm:px-5`,children:(0,W.jsxs)(`ol`,{className:`mx-auto flex max-w-[720px] flex-col gap-2 py-2`,children:[n.map(e=>(0,W.jsx)(`li`,{className:A(`text-[0.9375rem] leading-snug`,e.who===`bot`?`text-white/95`:`text-right text-white/50`),children:e.text},e.id)),(0,W.jsx)(`div`,{ref:t})]})}):null}function Ge({voice:e,view:t,video:n,className:r}){let i=e.state===`live`,a=e.state===`connecting`,[o,s]=(0,U.useState)(null),[c,l]=(0,U.useState)(!1);(0,U.useEffect)(()=>{s(i?Date.now():null)},[i]);let u=async()=>{l(!1),await e.start(),n&&await e.startCamera()},d=()=>{e.stop(),l(!0)},f=n||e.camera,m=[...e.captions].reverse().find(e=>e.who===`bot`),h=[...e.captions].reverse().find(e=>e.who===`me`),g=e.speaking?V(`talk.speaking`):e.listening?V(`talk.listening`):i?V(`talk.live`):a?V(`talk.connecting`):c?V(`video.ended`):``;return(0,W.jsxs)(`section`,{className:A(`relative flex min-h-0 flex-col bg-neutral-950 text-white`,`safe-top`,r),children:[(0,W.jsxs)(`div`,{className:`flex h-14 shrink-0 items-center gap-3 px-4 sm:px-5`,children:[(0,W.jsx)(`div`,{className:`min-w-0 flex-1 truncate font-display font-semibold text-[1rem] tracking-tight`,children:t?.wizard.title??``}),g?(0,W.jsxs)(`span`,{className:`flex items-center gap-1.5 text-[0.8125rem] text-white/70`,children:[i?(0,W.jsx)(`span`,{className:A(`size-2 rounded-full`,e.speaking?`animate-pulse-dot bg-emerald-400`:`bg-rose`)}):null,g]}):null,(0,W.jsx)(Ue,{since:o})]}),(0,W.jsxs)(`div`,{className:A(`grid min-h-0 gap-2 px-3 pb-2 sm:px-4`,f?`flex-1 grid-cols-1 sm:grid-cols-2`:`shrink-0 grid-cols-1`,!f&&i&&e.captions.length?`h-[38%]`:f?``:`flex-1`),children:[(0,W.jsxs)(`div`,{className:A(`relative min-h-0 overflow-hidden rounded-2xl bg-neutral-900`,!f&&`hidden`),children:[(0,W.jsx)(`video`,{ref:e.video,muted:!0,playsInline:!0,autoPlay:!0,className:A(`absolute inset-0 h-full w-full object-cover`,e.facing===`user`&&`-scale-x-100`,e.camera?`block`:`hidden`)}),e.camera?null:(0,W.jsxs)(`div`,{className:`absolute inset-0 flex flex-col items-center justify-center gap-2 text-white/50`,children:[(0,W.jsx)(Fe,{className:`size-8`}),(0,W.jsx)(`span`,{className:`text-[0.8125rem]`,children:V(`video.cameraOff`)})]}),(0,W.jsxs)(`span`,{className:`absolute bottom-2 left-3 rounded-md bg-black/50 px-2 py-0.5 text-[0.75rem]`,children:[V(`video.you`),e.muted?(0,W.jsx)(oe,{className:`ml-1.5 inline size-3`}):null]})]}),(0,W.jsxs)(`div`,{className:A(`relative flex min-h-0 items-center justify-center overflow-hidden rounded-2xl transition-shadow`,f?`bg-neutral-900`:`bg-transparent`,f&&e.speaking&&`ring-2 ring-emerald-400/70`),children:[(0,W.jsx)(`div`,{className:A(`rounded-full transition-shadow duration-500`,!f&&e.listening&&`shadow-[0_0_80px_20px_rgba(244,63,94,0.25)]`,!f&&e.speaking&&`shadow-[0_0_80px_20px_rgba(52,211,153,0.3)]`,e.speaking&&`animate-breathe`),children:(0,W.jsx)(me,{kind:t?.wizard.avatar??`round`,costume:t?.wizard.costume,size:f?140:200,fluffy:!0,interactive:!1})}),f?(0,W.jsx)(`span`,{className:`absolute bottom-2 left-3 max-w-[85%] truncate rounded-md bg-black/50 px-2 py-0.5 text-[0.75rem]`,children:t?.wizard.title??``}):null]})]}),i&&!f?(0,W.jsx)(We,{voice:e}):i&&(m||h)?(0,W.jsx)(`div`,{className:`shrink-0 px-4 pb-2 sm:px-5`,children:(0,W.jsxs)(`div`,{className:`mx-auto max-w-[720px] space-y-1 text-center`,children:[h?(0,W.jsx)(`p`,{className:`line-clamp-1 text-[0.8125rem] text-white/50`,children:h.text}):null,m?(0,W.jsx)(`p`,{className:`line-clamp-3 text-[0.9375rem] text-white/95 leading-snug`,children:m.text}):null]})}):null,e.error?(0,W.jsx)(`p`,{className:`shrink-0 px-5 pb-2 text-center text-[0.8125rem] text-rose`,children:e.error}):null,(0,W.jsx)(`div`,{className:`flex shrink-0 items-center justify-center gap-3 px-4 pt-1 pb-4`,children:i?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(G,{label:V(e.muted?`video.unmute`:`video.mute`),on:!e.muted,onClick:e.toggleMute,children:e.muted?(0,W.jsx)(oe,{className:`size-5`}):(0,W.jsx)(p,{className:`size-5`})}),(0,W.jsx)(G,{label:V(e.camera?`talk.cameraOff`:`talk.camera`),on:e.camera,onClick:()=>e.camera?e.stopCamera():void e.startCamera(),children:e.camera?(0,W.jsx)(w,{className:`size-5`}):(0,W.jsx)(Fe,{className:`size-5`})}),e.camera&&He?(0,W.jsx)(G,{label:V(`video.flip`),onClick:()=>void e.flipCamera(),children:(0,W.jsx)(te,{className:`size-5`})}):null,(0,W.jsx)(G,{label:V(`video.leave`),danger:!0,onClick:d,children:(0,W.jsx)(ue,{className:`size-5`})})]}):(0,W.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,W.jsxs)(`button`,{type:`button`,disabled:a||!t?.talk,onClick:()=>void u(),className:`flex h-12 items-center gap-2 rounded-full bg-emerald-500 px-6 font-medium text-[0.9375rem] text-white transition hover:brightness-110 disabled:opacity-50`,children:[a?(0,W.jsx)(k,{className:`size-4`}):n?(0,W.jsx)(w,{className:`size-5`}):(0,W.jsx)(p,{className:`size-5`}),V(c?`video.rejoin`:n?`video.join`:`talk.start`)]}),!c&&!e.error?(0,W.jsx)(`p`,{className:`max-w-sm text-center text-[0.75rem] text-white/50`,children:V(n?`video.hint`:`talk.joinHint`)}):null]})})]})}var Ke=e=>_e[e.kind]!==`device`,qe=1024,Je=4e3;function Ye(e,t){return e?e.length>t?`${e.slice(0,t)} …`:e:``}function Xe(e,t,n=!1){let r=[`status: ${e.status}`,`camera: ${n?`on`:`off`}`];if(e.ask)return r.push(e.ask.kind===`confirm`?`question: the step wants to "${e.ask.action.summary}" in ${e.ask.service}; answer_ask allows or skips it`:`question: a sign-in at ${e.ask.site.host}; the person types it on the screen, wait`),r.join(`
3
3
  `);if(e.status===`running`){let t=[...e.events].reverse().find(e=>e.type===`tool`||e.type===`info`||e.type===`step_started`);return r.push(`working on: ${e.step?.title??``}`),t&&r.push(`doing: ${Te(t)}`),r.join(`
4
4
  `)}if(e.status===`done`){r.push(`done. made:`);for(let{step:t,output:n}of e.shown)r.push(`- ${t.title}: ${Ye(n?.text,400)||`(a file, on the screen)`}`);return r.join(`
5
5
  `)}if(e.status===`failed`)return r.push(`failed: ${e.error??``}; go_back or the person retries on the screen`),r.join(`
@@ -34,7 +34,7 @@
34
34
  dispatchEvent(new Event("wizard-install"));
35
35
  });
36
36
  </script>
37
- <script type="module" crossorigin src="/studio/assets/index-CyBrvupM.js"></script>
37
+ <script type="module" crossorigin src="/studio/assets/index-CmonJZHC.js"></script>
38
38
  <link rel="modulepreload" crossorigin href="/studio/assets/rolldown-runtime-hePW80VL.js">
39
39
  <link rel="modulepreload" crossorigin href="/studio/assets/jsx-runtime-BNakU3Ej.js">
40
40
  <link rel="modulepreload" crossorigin href="/studio/assets/preload-helper-DpV6A1kQ.js">
@@ -55,11 +55,11 @@
55
55
  <link rel="modulepreload" crossorigin href="/studio/assets/floating-ui.dom-pwdNGv4b.js">
56
56
  <link rel="modulepreload" crossorigin href="/studio/assets/upload-CAlHC232.js">
57
57
  <link rel="modulepreload" crossorigin href="/studio/assets/media-Cej-H610.js">
58
- <link rel="modulepreload" crossorigin href="/studio/assets/UpdateCheck-C7I43zFZ.js">
58
+ <link rel="modulepreload" crossorigin href="/studio/assets/UpdateCheck-CLPUsKVT.js">
59
59
  <link rel="modulepreload" crossorigin href="/studio/assets/with-selector-CoMyWBAX.js">
60
60
  <link rel="modulepreload" crossorigin href="/studio/assets/code-editor-Ca5EAxmd.js">
61
61
  <link rel="modulepreload" crossorigin href="/studio/assets/LangSwitch-Dkd0FBIH.js">
62
- <link rel="modulepreload" crossorigin href="/studio/assets/host-D5hNHbhF.js">
62
+ <link rel="modulepreload" crossorigin href="/studio/assets/host-CJdLkzfY.js">
63
63
  <link rel="stylesheet" crossorigin href="/studio/assets/host-BrP-ENHg.css">
64
64
  <link rel="stylesheet" crossorigin href="/studio/assets/index-w-3J3ZJ9.css">
65
65
  </head>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engenty/wizards-runtime",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "Make a wish. Get your wizard. It guides you step by step. Let AI do the work. Runs on your machine, on the AI subscription you already have. The runtime, which `npx wizards` installs.",
5
5
  "license": "FSL-1.1-MIT AND CC-BY-4.0",
6
6
  "homepage": "https://engenty.ai",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wizards",
3
3
  "displayName": "engenty wizards",
4
- "version": "0.16.0",
4
+ "version": "0.16.1",
5
5
  "description": "Build page-by-page AI wizards that people open on a shared link — designed, tested and published from Claude Code — run your published ones in the chat, and keep them in a pane beside it.",
6
6
  "author": {
7
7
  "name": "engenty"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "engenty-wizards",
4
- "version": "0.16.0",
4
+ "version": "0.16.1",
5
5
  "description": "Build page-by-page AI wizards that people open on a shared link, test and publish them from the chat, and run your published ones here.",
6
6
  "author": {
7
7
  "name": "engenty",