@engenty/wizards-runtime 0.14.2 → 0.15.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/apps/runtime/dist/agents/studio-assistant.js +50 -3
- package/apps/runtime/dist/app.js +9 -2
- package/apps/runtime/dist/broker/call.js +2 -0
- package/apps/runtime/dist/broker/host.js +1 -0
- package/apps/runtime/dist/broker/rwx.js +38 -4
- package/apps/runtime/dist/db/migrations/tenant/0040_rwx_elements.sql +21 -0
- package/apps/runtime/dist/db/migrations/tenant/0041_broker_log_client.sql +1 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0040_snapshot.json +5153 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0041_snapshot.json +5160 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +14 -0
- package/apps/runtime/dist/db/schema.js +2 -0
- package/apps/runtime/dist/docs/dev/api.md +24 -2
- package/apps/runtime/dist/docs/dev/architecture.md +13 -2
- package/apps/runtime/dist/elements/caller.js +45 -0
- package/apps/runtime/dist/elements/catalogue.js +14 -0
- package/apps/runtime/dist/elements/connections.js +60 -0
- package/apps/runtime/dist/elements/gate.js +81 -0
- package/apps/runtime/dist/elements/knowledge.js +139 -0
- package/apps/runtime/dist/elements/outside.js +103 -0
- package/apps/runtime/dist/elements/specs.js +102 -0
- package/apps/runtime/dist/elements/wizards.js +59 -0
- package/apps/runtime/dist/env.js +5 -2
- package/apps/runtime/dist/mcp/elements.js +88 -0
- package/apps/runtime/dist/mcp/handler.js +2 -0
- package/apps/runtime/dist/mcp/scopes.js +5 -0
- package/apps/runtime/dist/prompts/authoring.md +2 -2
- package/apps/runtime/dist/prompts/tools.md +3 -0
- package/apps/runtime/dist/routes/api.js +2 -2
- package/apps/runtime/dist/routes/elements.js +76 -0
- package/apps/runtime/dist/services/work-ai.js +27 -19
- package/apps/runtime/dist/services/work-connections.js +2 -2
- package/apps/runtime/dist/tools/index.js +5 -4
- package/apps/runtime/dist/tools/skills.js +80 -54
- package/apps/runtime/dist/tools/space.js +8 -152
- package/apps/web/dist/assets/{AboutDialog-Cag3RJuT.js → AboutDialog-DaWEIHFN.js} +1 -1
- package/apps/web/dist/assets/{CapabilitiesPage-BQYiN0gT.js → CapabilitiesPage-Dt91U_sK.js} +2 -2
- package/apps/web/dist/assets/{ChangelogDialog-D_dQOMIq.js → ChangelogDialog-Do7pwmFv.js} +1 -1
- package/apps/web/dist/assets/{CodeEditor-nxoOt8ge.js → CodeEditor-Cdox-51M.js} +1 -1
- package/apps/web/dist/assets/{EditorPage-C4_8LsQN.js → EditorPage-DS_a5K3s.js} +1 -1
- package/apps/web/dist/assets/{FlowPreview-aMfwcPul.js → FlowPreview-BPS86xzA.js} +1 -1
- package/apps/web/dist/assets/{LangSwitch-DpD0inR4.js → LangSwitch-BRHbi_Sd.js} +1 -1
- package/apps/web/dist/assets/{Marketplace-CpzD9pNQ.js → Marketplace-CS7JTgiv.js} +2 -2
- package/apps/web/dist/assets/{NewWizardChannels-CcE3UMVb.js → NewWizardChannels-D-OLsex6.js} +1 -1
- package/apps/web/dist/assets/{NewWizardPage-BzN7zrQx.js → NewWizardPage-BM_pkk41.js} +1 -1
- package/apps/web/dist/assets/{OnboardingPage-ztHT01ah.js → OnboardingPage-Cpn5pubC.js} +1 -1
- package/apps/web/dist/assets/{PreviewPane-BabMbBZI.js → PreviewPane-BOk1-yO4.js} +1 -1
- package/apps/web/dist/assets/{PublicRunner-D-JmtqCi.js → PublicRunner-CgzMZb0r.js} +1 -1
- package/apps/web/dist/assets/{ReadOnly-GAORKKqV.js → ReadOnly-8DEx-ly3.js} +1 -1
- package/apps/web/dist/assets/{SettingsPage-BKAiYmXl.js → SettingsPage-CcrknFcI.js} +2 -2
- package/apps/web/dist/assets/{SetupPage-C1EZZHIp.js → SetupPage-D5nzjgPU.js} +1 -1
- package/apps/web/dist/assets/{SharePage-N80EhoD7.js → SharePage-PKHX8a8a.js} +1 -1
- package/apps/web/dist/assets/{SkillEditor-CqQMg2MC.js → SkillEditor-BsXTqNli.js} +1 -1
- package/apps/web/dist/assets/{Skills-CnhpgoOA.js → Skills-C_X1ZsKg.js} +1 -1
- package/apps/web/dist/assets/{SpacePage-CRR8JvV1.js → SpacePage-wZGqUoSQ.js} +2 -2
- package/apps/web/dist/assets/{UpdateCheck-CfXZBQNv.js → UpdateCheck-D6x7MqEl.js} +2 -2
- package/apps/web/dist/assets/changelog-M-eOBqgu.js +1 -0
- package/apps/web/dist/assets/{circle-alert-C8Ma-bPY.js → circle-alert-DJbCyxcg.js} +1 -1
- package/apps/web/dist/assets/{circle-check-Bu9Z3mlJ.js → circle-check-jqtsKi_b.js} +1 -1
- package/apps/web/dist/assets/{code-editor-CfTGqOpp.js → code-editor-BpCEnf8H.js} +2 -2
- package/apps/web/dist/assets/{code-xml-B4kLFZSj.js → code-xml-q88cSTV8.js} +1 -1
- package/apps/web/dist/assets/{connection-sign-in-B2D0O8W-.js → connection-sign-in-UJ6xk-TD.js} +1 -1
- package/apps/web/dist/assets/{eye-BpoKpIdt.js → eye-CgkvVlba.js} +1 -1
- package/apps/web/dist/assets/{host-BlKXX7YK.js → host-Bd_bon_c.js} +7 -7
- package/apps/web/dist/assets/{i18n-BJ7Ld6O6.js → i18n-0fUKyVRE.js} +1 -1
- package/apps/web/dist/assets/{index-66tE1oti.js → index-DOgwxnto.js} +3 -3
- package/apps/web/dist/assets/{phone-Ctvf-Am-.js → phone-CjPvZ0nk.js} +1 -1
- package/apps/web/dist/assets/{read-aloud-Da_RSm2S.js → read-aloud-CLXo_asN.js} +1 -1
- package/apps/web/dist/assets/{runners-CyIvJIHr.js → runners-BoPaPsjN.js} +1 -1
- package/apps/web/dist/assets/{scroll-text-ChrjRu9Y.js → scroll-text-2BhJO_W7.js} +1 -1
- package/apps/web/dist/assets/{session-SXPtTWRK.js → session-CpYa5hwd.js} +1 -1
- package/apps/web/dist/assets/{theme-Br1S0j5h.js → theme-Bj3wNQR0.js} +1 -1
- package/apps/web/dist/assets/{ui-Uqnx1UpK.js → ui-CktezodE.js} +1 -1
- package/apps/web/dist/assets/{upload-BchUnQGV.js → upload-CHGCFVZK.js} +1 -1
- package/apps/web/dist/assets/{useMutation-DEkZhp5c.js → useMutation-7_FOHoEl.js} +1 -1
- package/apps/web/dist/assets/{volume-2-CU_oy81Z.js → volume-2-Bw5KASy8.js} +1 -1
- package/apps/web/dist/index.html +13 -13
- package/apps/web/dist/mcp/flow.html +1 -1
- package/node_modules/@engenty/wizards-shared/dist/run.d.ts +3 -0
- package/node_modules/@engenty/wizards-shared/dist/run.js +6 -0
- package/node_modules/@engenty/wizards-shared/dist/rwx.d.ts +1 -1
- package/node_modules/@engenty/wizards-shared/dist/rwx.js +3 -0
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/README.md +3 -0
- package/plugin/plugin.json +1 -1
- package/plugin/skills/work-in-space/SKILL.md +16 -0
- package/apps/web/dist/assets/changelog-6MqC8Vy8.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{sr as e}from"./ui-
|
|
1
|
+
import{sr as e}from"./ui-CktezodE.js";var t={name:`phone`,size:24,node:[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{ct as r,q as i,sr as a,yr as o}from"./ui-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{ct as r,q as i,sr as a,yr as o}from"./ui-CktezodE.js";import{n as s,ot as c,s as l}from"./i18n-0fUKyVRE.js";var u={name:`mic-off`,size:24,node:[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M15 9.34V5a3 3 0 0 0-5.68-1.33`,key:`1gzdoj`}],[`path`,{d:`M16.95 16.95A7 7 0 0 1 5 12v-2`,key:`cqa7eg`}],[`path`,{d:`M18.89 13.23A7 7 0 0 0 19 12v-2`,key:`16hl24`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v3a3 3 0 0 0 5.12 2.12`,key:`r2i35w`}]]};u.node;var d=a(u),f={name:`phone-off`,size:24,node:[[`path`,{d:`M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272`,key:`1wngk7`}],[`path`,{d:`M22 2 2 22`,key:`y4kqgn`}],[`path`,{d:`M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473`,key:`10hv5p`}]]};f.node;var p=a(f),m={name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]};m.node;var h=a(m),g=e(n(),1);async function _(){let{account:e}=await(await fetch(r(`/api/auth/sign-out`),{method:`POST`,credentials:`include`,headers:{"content-type":`application/json`},body:`{}`})).json().catch(()=>({}));if(!e){window.location.reload();return}let t=document.createElement(`form`);t.method=`POST`,t.action=e,document.body.append(t),t.submit()}function v({name:e,until:t}){let n=new Intl.DateTimeFormat(s,{timeStyle:`short`}).format(new Date(t));return(0,g.jsxs)(`div`,{className:`flex flex-wrap items-center justify-center gap-x-3 gap-y-1 bg-amber-tint px-4 py-2 text-center text-[0.8125rem] text-ink`,children:[(0,g.jsx)(`span`,{children:l(`impersonation.banner`,{name:e,time:n})}),(0,g.jsx)(`button`,{type:`button`,className:`font-medium underline underline-offset-2 hover:text-ink-2`,onClick:()=>void _(),children:l(`impersonation.back`)})]})}function y(){let e=o({queryKey:[`impersonation`],queryFn:()=>i.get(`/api/public/impersonation`),staleTime:6e4,retry:!1});return e.data?(0,g.jsx)(v,{name:e.data.name,until:e.data.until}):null}var b=e(t(),1),x=`wz.readAloud`,S=typeof window<`u`&&`speechSynthesis`in window&&`SpeechSynthesisUtterance`in window;function C(){try{return localStorage.getItem(x)===`1`}catch{return!1}}function w(e){try{localStorage.setItem(x,e?`1`:`0`)}catch{}}function T(e){let t=window.speechSynthesis.getVoices(),n=e.slice(0,2);return t.find(t=>t.lang===e&&t.default)??t.find(t=>t.lang===e)??t.find(e=>e.lang.startsWith(n)&&e.default)??t.find(e=>e.lang.startsWith(n))??null}function E(e,t=s,n=!1){if(!S||!e.trim())return;let r=window.speechSynthesis;n&&r.cancel();let i=c(t),a=new SpeechSynthesisUtterance(e.trim().slice(0,2e3));a.lang=i;let o=T(i);o&&(a.voice=o),r.speak(a)}function D(e,t=s){if(!S||!e.trim())return Promise.resolve();let n=window.speechSynthesis;n.cancel();let r=c(t),i=new SpeechSynthesisUtterance(e.trim().slice(0,4e3));i.lang=r;let a=T(r);return a&&(i.voice=a),new Promise(e=>{i.onend=()=>e(),i.onerror=()=>e(),n.speak(i)})}function O(e){return e.replace(/```[\s\S]*?```/g,``).replace(/!\[[^\]]*\]\([^)]*\)/g,``).replace(/\[([^\]]+)\]\([^)]*\)/g,`$1`).replace(/https?:\/\/\S+/g,``).replace(/^#+\s*/gm,``).replace(/^\s*[-*]\s+/gm,``).replace(/[*_`>|]/g,``).replace(/\n{2,}/g,`. `).replace(/\s+/g,` `).trim()}function k(){S&&window.speechSynthesis.cancel()}function A(){let[e,t]=(0,b.useState)(()=>S&&C()),n=(0,b.useCallback)(e=>{t(e),w(e),e||k()},[]);return(0,b.useEffect)(()=>{S&&window.speechSynthesis.getVoices()},[]),(0,b.useEffect)(()=>()=>k(),[]),[e,n]}function j(e,t,n,r){let i=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(!e){i.current=null;return}let a=n.map(e=>e.key);if(!i.current){i.current=new Set(a);let e=[...n].reverse().find(e=>e.who===`bot`&&e.spoken!==!1);if(e){let n=r(e.key);n&&E(n,t,!0)}return}let o=n.filter(e=>!i.current?.has(e.key));for(let e of a)i.current.add(e);o.some(e=>e.who===`me`)&&k();for(let e of o)if(e.who===`bot`&&e.spoken!==!1){let n=r(e.key);n&&E(n,t)}},[e,t,n,r])}export{A as a,y as c,d,O as i,h as l,k as n,j as o,D as r,v as s,S as t,p as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as e}from"./i18n-
|
|
1
|
+
import{T as e}from"./i18n-0fUKyVRE.js";var t=[`text`,`data`,`image`,`video`,`voice`,`document`,`dashboard`,`widget`,`motion-graphics`,`surface`];[...e],[...t];var n={default:`steps`,enabled:[`steps`,`chat`]};export{n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{sr as e}from"./ui-
|
|
1
|
+
import{sr as e}from"./ui-CktezodE.js";var t={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};t.node;var n=e(t),r={name:`scroll-text`,size:24,node:[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]};r.node;var i=e(r);export{n,i as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/fluffy-engenty-o_lu9icd.js","assets/rolldown-runtime-hePW80VL.js","assets/jsx-runtime-BNakU3Ej.js","assets/engenty-CNjaZCVM.js"])))=>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{G as r,Wr as i,Zt as a,ct as o,q as s,rt as c,sr as l,tt as u,yr as d,zt as f}from"./ui-Uqnx1UpK.js";import{t as ee}from"./preload-helper-DpV6A1kQ.js";import{c as te,s as ne,t as p}from"./engenty-CNjaZCVM.js";import"./logo-BpnjXTRy.js";import{N as re,i as m,o as ie,s as ae}from"./i18n-BJ7Ld6O6.js";var h={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};h.node;var g=l(h),_={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]};_.node;var v=l(_),y=e(t(),1),b=[`light`,`branded`,`dark`],x=`wizards.theme`,S=new Set,C=window.matchMedia(`(prefers-color-scheme: dark)`),w=`engenty_theme`;function T(){let e=document.cookie.split(`;`).map(e=>e.trim()).find(e=>e.startsWith(`${w}=`))?.slice(14);return e&&(b.includes(e)||e===`system`)?e:null}function E(e){let t=window.location.hostname,n=t.split(`.`),r=n.length>1&&!/^\d+$/.test(n[n.length-1])?n.length>2?n.slice(1).join(`.`):t:``,i=window.location.protocol===`https:`?`; Secure`:``;document.cookie=`${w}=${e}; Path=/; Max-Age=31536000; SameSite=Lax${r?`; Domain=${r}`:``}${i}`}function D(){try{let e=T()??localStorage.getItem(x);return e===`system`?null:e&&b.includes(e)?e:`branded`}catch{return`branded`}}function O(){return D()??(C.matches?`branded`:`light`)}var k=0,A=null,j=null;function M(){try{return T()!==null||localStorage.getItem(x)!==null}catch{return!1}}function N(){return k>0?`dark`:A||(j&&!M()?j:O()===`light`?`light`:`dark`)}function oe(){return k>0||O()!==`dark`}function P(){requestAnimationFrame(()=>{let e=document.querySelector(`meta[name="theme-color"]`),t=document.createElement(`canvas`).getContext(`2d`);if(!e||!t||!document.body)return;t.fillStyle=getComputedStyle(document.body).backgroundColor,t.fillRect(0,0,1,1);let[n,r,i]=t.getImageData(0,0,1,1).data;e.content=`#${[n,r,i].map(e=>e.toString(16).padStart(2,`0`)).join(``)}`})}function F(){let e=N()===`dark`;document.documentElement.classList.toggle(`dark`,e),document.documentElement.classList.toggle(`branded`,oe()),P();for(let e of S)e()}C.addEventListener(`change`,F),T()||E(D()??`system`),F();function I(e){E(e??`system`);try{localStorage.setItem(x,e??`system`)}catch{let t=document.documentElement;t.classList.toggle(`dark`,e?e!==`light`:N()===`dark`),t.classList.toggle(`branded`,e!==`dark`);return}F()}function se(){return(0,y.useSyncExternalStore)(e=>(S.add(e),()=>S.delete(e)),D)}function ce(){return(0,y.useSyncExternalStore)(e=>(S.add(e),()=>S.delete(e)),O)}function L(){return(0,y.useSyncExternalStore)(e=>(S.add(e),()=>S.delete(e)),()=>document.documentElement.classList.contains(`dark`)?`dark`:`light`)}function le(){return(0,y.useSyncExternalStore)(e=>(S.add(e),()=>S.delete(e)),()=>{let e=document.documentElement.classList;return e.contains(`dark`)?e.contains(`branded`)?`branded`:`dark`:`light`})}var R=e=>`oklch(from ${ne[te[e]??`cobalt`]} 0.34 calc(c * 0.6) h)`;function ue(e){(0,y.useEffect)(()=>{if(!e)return;let t=document.documentElement;return k+=1,t.style.setProperty(`--stage`,e),F(),()=>{--k,t.style.removeProperty(`--stage`),F()}},[e])}function de(e){(0,y.useEffect)(()=>{if(!e)return;let t=document.documentElement;return t.style.setProperty(`--engenty-stage`,R(e)),P(),()=>{t.style.removeProperty(`--engenty-stage`),P()}},[e])}function z(e){(0,y.useEffect)(()=>{if(e)return j=e,F(),()=>{j=null,F()}},[e])}function B(e){(0,y.useEffect)(()=>{if(e)return A=e,F(),()=>{A=null,F()}},[e])}function V(){return(0,y.useSyncExternalStore)(e=>(S.add(e),()=>S.delete(e)),()=>A!==null)}var H=e(n(),1),fe={name:`engenty wizards`,short:`wizards`},U=(0,y.lazy)(()=>ee(()=>import(`./fluffy-engenty-o_lu9icd.js`).then(e=>({default:e.FluffyEngenty})),__vite__mapDeps([0,1,2,3])));function pe({kind:e,size:t=64,fluffy:n,coat:r,costume:i,helmet:a=!1,interactive:o=!0}){let s=e||`round`,c=L(),l=r??(c===`dark`?`jelly`:`fur`);if(n&&t>=120&&(l===`fur`||c===`dark`))return(0,H.jsx)(y.Suspense,{fallback:(0,H.jsx)(p,{costume:i,helmet:a,kind:s,size:Math.round(t*.62)}),children:(0,H.jsx)(U,{costume:i,gooseHelmet:a,coat:l,kind:s,size:t,quality:`medium`,interactive:o})});if(n&&t>=120){let e=Math.round(t*1.08);return(0,H.jsxs)(`div`,{"aria-hidden":`true`,className:`relative flex items-center justify-center overflow-hidden`,style:{background:R(s),borderRadius:t*.28,height:t,width:t},children:[(0,H.jsx)(`span`,{className:`pointer-events-none absolute rounded-full bg-white`,style:{filter:`blur(${t*.18}px)`,height:t*.8,opacity:.16,right:-t*.3,top:-t*.3,width:t*.8}}),(0,H.jsx)(`div`,{className:`relative`,style:{marginTop:t*.04},children:(0,H.jsx)(y.Suspense,{fallback:(0,H.jsx)(p,{costume:i,helmet:a,kind:s,size:Math.round(e*.62)}),children:(0,H.jsx)(U,{costume:i,gooseHelmet:a,coat:`jelly`,kind:s,size:e,quality:`medium`,interactive:o})})})]})}return(0,H.jsx)(p,{costume:i,helmet:a,kind:s,size:t,animated:o})}function me(){let e=L(),t=V(),n=e===`dark`?`light`:`branded`;return t?null:(0,H.jsx)(a,{label:ae(n===`branded`?`theme.branded`:`theme.light`),onClick:()=>I(n),children:e===`dark`?(0,H.jsx)(v,{className:`size-4`}):(0,H.jsx)(g,{className:`size-4`})})}var W={account:{kind:`release`,default:!0,label:`Account in a local install`,hint:`Linking, Settings → Account, the offer to sign in.`},twoWaySync:{kind:`release`,default:!0,label:`Two-way sync with the cloud`,hint:`A local install with an account keeps its spaces in step with the organization in the cloud, both ways: wizards, knowledge, data and files.`},liveChanges:{kind:`release`,default:!0,label:`Live changes in the studio`,hint:`An open studio shows what changed elsewhere (another member, a run, the AI, the sync) without a reload.`},unsetConnectors:{kind:`release`,default:!1,label:`Connectors without an OAuth client`,hint:`Built-in connectors are shown although their client is not set up.`},site:{kind:`release`,default:!1,label:`Link to the website in the setup`,hint:`The local install's setup links the product's site.`},teamPlans:{kind:`release`,default:!1,label:`Organization plans`,hint:`The organization page in the cloud studio, and plans that carry this switch on the account pages.`},organizationSettings:{kind:`release`,default:!1,label:`Organization settings in the studio`,hint:`Settings › Organisation in the cloud studio: the organization's name, its members and invitations, changed there instead of on the account pages.`},brandSections:{kind:`release`,default:!1,label:`Sections in Brand`,hint:`Sections of logos and of colours, gradients and patterns among them.`},brandRules:{kind:`release`,default:!1,label:`Rules in Brand`,hint:`Rules for how the logos, the colours and the type may be used.`},typography:{kind:`release`,default:!1,label:`Typography in Brand`,hint:`The brand's fonts, their licences and a type scale.`},channelVoice:{kind:`release`,default:!1,label:`Live voice`,hint:`Wizards run as a spoken conversation in the browser: offered when building and sharing.`},channelVideo:{kind:`release`,default:!1,label:`Video call`,hint:`Wizards run as a video call in the browser: offered when building and sharing.`},pages:{kind:`release`,default:!1,label:`Public page`,hint:`A space's page at the organization's address on wizards.page: its part in the space, the share dialog's switch.`},wordpress:{kind:`release`,default:!1,label:`WordPress plugin`,hint:`The plugin for WordPress sites, and a wizard as a package for one: offered in the share dialog and under Settings → Integrate.`},skills:{kind:`release`,default:!0,label:`Skills`,hint:`Skills, a place of their own in the app bar: from skills.sh, uploaded or written; always on in every AI step, or read by a wizard when it needs one.`},plugins:{kind:`release`,default:!1,label:`Plugins in the settings`,hint:`Settings › Plugins, also before any plugin is installed. Installing a plugin turns it on.`},goose:{kind:`release`,default:!1,label:`Goose`,hint:`The studio's assistant: its chat at the foot of the page and in the sidebar.`},workMode:{kind:`release`,default:!1,label:`Work mode`,hint:"The switch between Studio and Work in the app bar, and Work's chats. Client comes with the public page (`pages`)."},workWip:{kind:`release`,default:!1,label:`Work – WiP`,hint:`Work's places that aren't built yet, in the app bar under the chats: engenties, files, data, results and the bell.`},modelTiers:{kind:`release`,default:!1,label:`Model tiers`,hint:`The organization's model tier: steps may name a maker, calls say what they are for, and the studio shows what each class runs on in the tier.`},customDomains:{kind:`release`,default:!1,label:`Own domains`,hint:`Settings › Allgemein: the organization's wizards under a domain of its own, once a TXT record confirms it.`},broker:{kind:`release`,default:!0,label:`Broker`,hint:`RWX rules per space: who may read, write and execute what; enforced at every reader.`},capabilities:{kind:`release`,default:!0,label:`Capabilities`,hint:`One place in the app bar for Skills and Verbindungen: the space's connections with sign-in, audience and rules, each person's own sign-ins, the broker's Protokoll, Entdecken.`},ownKeys:{kind:`plan`,default:!0,label:`Own API keys`,hint:`The organization puts its providers' keys into the cloud studio instead of running on credits.`}};function G(e,t){let n=e?.[t];return typeof n==`boolean`?n:Object.hasOwn(W,t)?W[t].default:!1}function he(e=W){let t={};for(let[n,r]of Object.entries(e))t[n]=r.default;return t}function ge(e){return Object.fromEntries(re.filter(t=>e[t]?.startsWith(`apple:`)).map(e=>[e,``]))}function _e(e){return e.split(/\s+/).map(e=>e[0]??``).join(``).slice(0,2).toUpperCase()}function ve(){let e=K().data?.limits.spaces;return e===null||(e??1)>1}function ye(){return K().data?.limits.build??!0}function be(){let e=K().data,t=Z().space?.studio??!1;return!e||e.limits.create||G(e.features,`capabilities`)&&e.limits.build&&t}function xe(){let e=K().data;return!e||e.mode===`local`||e.tenant.role!==`member`}function Se(){let e=i();return t=>{m(t),e.setQueryData([`me`],e=>e&&{...e,lang:t}),s.put(`/api/studio/lang`,{lang:t}).catch(()=>void 0)}}function Ce(e){let t=i();(0,y.useEffect)(()=>{if(!e)return;if(e.lang){m(e.lang);return}let n=ie();n&&(t.setQueryData([`me`],e=>e&&{...e,lang:n}),s.put(`/api/studio/lang`,{lang:n}).catch(()=>void 0))},[e,t])}function K(){return d({queryKey:[`me`],queryFn:async()=>{try{return await s.get(`/api/studio/me`)}catch(e){if(e instanceof f&&e.status===401)return null;throw e}},staleTime:3e4})}function q(e=!0){return d({queryKey:r.spaces(),queryFn:()=>s.get(`/api/studio/spaces`),enabled:e})}var J=`wz.space`;function we(){try{return localStorage.getItem(J)}catch{return null}}var Y=we(),X=new Set;function Te(e){Y=e;try{localStorage.setItem(J,e)}catch{}for(let e of X)e()}function Z(){let e=q(),t=(0,y.useSyncExternalStore)(e=>(X.add(e),()=>X.delete(e)),()=>Y),n=e.data??[];return{space:n.find(e=>e.id===t)??n[0]??null,spaces:n,select:Te,loading:e.isLoading}}function Ee(e,t){return d({queryKey:[`cloud`,e],queryFn:()=>s.get(`/api/studio/wizards/${e}/cloud`),enabled:t})}function De(e){return e instanceof f&&e.body?.code===`read_only`?e.message:null}async function Oe(){let{account:e}=await(await fetch(o(`/api/auth/sign-out`),{method:`POST`,credentials:`include`,headers:{"content-type":`application/json`},body:`{}`})).json().catch(()=>({}));if(!e){window.location.href=`${u}/`;return}let t=document.createElement(`form`);t.method=`POST`,t.action=e;let n=document.createElement(`input`);n.type=`hidden`,n.name=`return`,n.value=`${window.location.origin}${u}/`,t.append(n),document.body.append(t),t.submit()}function ke(e=Ae(),t){let n=new URLSearchParams({return:e});c!==u&&n.set(`organization`,c.slice(u.length+1)),t?.trim()&&n.set(`wish`,t.trim()),window.location.href=o(`/api/auth/login?${n}`)}function Ae(){let e=new URLSearchParams(window.location.search);e.delete(`signin`);let t=e.toString();return`${window.location.pathname}${t?`?${t}`:``}`}var Q=`wizards.wish`,$=1;function je(e){try{localStorage.setItem(Q,JSON.stringify({text:e,at:Date.now()}))}catch{}}function Me(){try{let e=JSON.parse(localStorage.getItem(Q)??`null`);if(typeof e?.text==`string`&&typeof e.at==`number`&&Date.now()-e.at<$*864e5)return e.text}catch{}return null}function Ne(){try{localStorage.removeItem(Q)}catch{}}export{L as A,me as C,z as D,B as E,se as M,v as N,ce as O,g as P,pe as S,ue as T,q as _,De as a,G as b,Ce as c,xe as d,ve as f,Se as g,K as h,Me as i,le as j,de as k,Ee as l,be as m,_e as n,ke as o,ye as p,je as r,Oe as s,Ne as t,Z as u,ge as v,I as w,fe as x,he as y};
|
|
2
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{G as r,Wr as i,Zt as a,ct as o,q as s,rt as c,sr as l,tt as u,yr as d,zt as f}from"./ui-CktezodE.js";import{t as ee}from"./preload-helper-DpV6A1kQ.js";import{c as te,s as ne,t as p}from"./engenty-CNjaZCVM.js";import"./logo-BpnjXTRy.js";import{N as re,i as m,o as ie,s as ae}from"./i18n-0fUKyVRE.js";var h={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};h.node;var g=l(h),_={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]};_.node;var v=l(_),y=e(t(),1),b=[`light`,`branded`,`dark`],x=`wizards.theme`,S=new Set,C=window.matchMedia(`(prefers-color-scheme: dark)`),w=`engenty_theme`;function T(){let e=document.cookie.split(`;`).map(e=>e.trim()).find(e=>e.startsWith(`${w}=`))?.slice(14);return e&&(b.includes(e)||e===`system`)?e:null}function E(e){let t=window.location.hostname,n=t.split(`.`),r=n.length>1&&!/^\d+$/.test(n[n.length-1])?n.length>2?n.slice(1).join(`.`):t:``,i=window.location.protocol===`https:`?`; Secure`:``;document.cookie=`${w}=${e}; Path=/; Max-Age=31536000; SameSite=Lax${r?`; Domain=${r}`:``}${i}`}function D(){try{let e=T()??localStorage.getItem(x);return e===`system`?null:e&&b.includes(e)?e:`branded`}catch{return`branded`}}function O(){return D()??(C.matches?`branded`:`light`)}var k=0,A=null,j=null;function M(){try{return T()!==null||localStorage.getItem(x)!==null}catch{return!1}}function N(){return k>0?`dark`:A||(j&&!M()?j:O()===`light`?`light`:`dark`)}function oe(){return k>0||O()!==`dark`}function P(){requestAnimationFrame(()=>{let e=document.querySelector(`meta[name="theme-color"]`),t=document.createElement(`canvas`).getContext(`2d`);if(!e||!t||!document.body)return;t.fillStyle=getComputedStyle(document.body).backgroundColor,t.fillRect(0,0,1,1);let[n,r,i]=t.getImageData(0,0,1,1).data;e.content=`#${[n,r,i].map(e=>e.toString(16).padStart(2,`0`)).join(``)}`})}function F(){let e=N()===`dark`;document.documentElement.classList.toggle(`dark`,e),document.documentElement.classList.toggle(`branded`,oe()),P();for(let e of S)e()}C.addEventListener(`change`,F),T()||E(D()??`system`),F();function I(e){E(e??`system`);try{localStorage.setItem(x,e??`system`)}catch{let t=document.documentElement;t.classList.toggle(`dark`,e?e!==`light`:N()===`dark`),t.classList.toggle(`branded`,e!==`dark`);return}F()}function se(){return(0,y.useSyncExternalStore)(e=>(S.add(e),()=>S.delete(e)),D)}function ce(){return(0,y.useSyncExternalStore)(e=>(S.add(e),()=>S.delete(e)),O)}function L(){return(0,y.useSyncExternalStore)(e=>(S.add(e),()=>S.delete(e)),()=>document.documentElement.classList.contains(`dark`)?`dark`:`light`)}function le(){return(0,y.useSyncExternalStore)(e=>(S.add(e),()=>S.delete(e)),()=>{let e=document.documentElement.classList;return e.contains(`dark`)?e.contains(`branded`)?`branded`:`dark`:`light`})}var R=e=>`oklch(from ${ne[te[e]??`cobalt`]} 0.34 calc(c * 0.6) h)`;function ue(e){(0,y.useEffect)(()=>{if(!e)return;let t=document.documentElement;return k+=1,t.style.setProperty(`--stage`,e),F(),()=>{--k,t.style.removeProperty(`--stage`),F()}},[e])}function de(e){(0,y.useEffect)(()=>{if(!e)return;let t=document.documentElement;return t.style.setProperty(`--engenty-stage`,R(e)),P(),()=>{t.style.removeProperty(`--engenty-stage`),P()}},[e])}function z(e){(0,y.useEffect)(()=>{if(e)return j=e,F(),()=>{j=null,F()}},[e])}function B(e){(0,y.useEffect)(()=>{if(e)return A=e,F(),()=>{A=null,F()}},[e])}function V(){return(0,y.useSyncExternalStore)(e=>(S.add(e),()=>S.delete(e)),()=>A!==null)}var H=e(n(),1),fe={name:`engenty wizards`,short:`wizards`},U=(0,y.lazy)(()=>ee(()=>import(`./fluffy-engenty-o_lu9icd.js`).then(e=>({default:e.FluffyEngenty})),__vite__mapDeps([0,1,2,3])));function pe({kind:e,size:t=64,fluffy:n,coat:r,costume:i,helmet:a=!1,interactive:o=!0}){let s=e||`round`,c=L(),l=r??(c===`dark`?`jelly`:`fur`);if(n&&t>=120&&(l===`fur`||c===`dark`))return(0,H.jsx)(y.Suspense,{fallback:(0,H.jsx)(p,{costume:i,helmet:a,kind:s,size:Math.round(t*.62)}),children:(0,H.jsx)(U,{costume:i,gooseHelmet:a,coat:l,kind:s,size:t,quality:`medium`,interactive:o})});if(n&&t>=120){let e=Math.round(t*1.08);return(0,H.jsxs)(`div`,{"aria-hidden":`true`,className:`relative flex items-center justify-center overflow-hidden`,style:{background:R(s),borderRadius:t*.28,height:t,width:t},children:[(0,H.jsx)(`span`,{className:`pointer-events-none absolute rounded-full bg-white`,style:{filter:`blur(${t*.18}px)`,height:t*.8,opacity:.16,right:-t*.3,top:-t*.3,width:t*.8}}),(0,H.jsx)(`div`,{className:`relative`,style:{marginTop:t*.04},children:(0,H.jsx)(y.Suspense,{fallback:(0,H.jsx)(p,{costume:i,helmet:a,kind:s,size:Math.round(e*.62)}),children:(0,H.jsx)(U,{costume:i,gooseHelmet:a,coat:`jelly`,kind:s,size:e,quality:`medium`,interactive:o})})})]})}return(0,H.jsx)(p,{costume:i,helmet:a,kind:s,size:t,animated:o})}function me(){let e=L(),t=V(),n=e===`dark`?`light`:`branded`;return t?null:(0,H.jsx)(a,{label:ae(n===`branded`?`theme.branded`:`theme.light`),onClick:()=>I(n),children:e===`dark`?(0,H.jsx)(v,{className:`size-4`}):(0,H.jsx)(g,{className:`size-4`})})}var W={account:{kind:`release`,default:!0,label:`Account in a local install`,hint:`Linking, Settings → Account, the offer to sign in.`},twoWaySync:{kind:`release`,default:!0,label:`Two-way sync with the cloud`,hint:`A local install with an account keeps its spaces in step with the organization in the cloud, both ways: wizards, knowledge, data and files.`},liveChanges:{kind:`release`,default:!0,label:`Live changes in the studio`,hint:`An open studio shows what changed elsewhere (another member, a run, the AI, the sync) without a reload.`},unsetConnectors:{kind:`release`,default:!1,label:`Connectors without an OAuth client`,hint:`Built-in connectors are shown although their client is not set up.`},site:{kind:`release`,default:!1,label:`Link to the website in the setup`,hint:`The local install's setup links the product's site.`},teamPlans:{kind:`release`,default:!1,label:`Organization plans`,hint:`The organization page in the cloud studio, and plans that carry this switch on the account pages.`},organizationSettings:{kind:`release`,default:!1,label:`Organization settings in the studio`,hint:`Settings › Organisation in the cloud studio: the organization's name, its members and invitations, changed there instead of on the account pages.`},brandSections:{kind:`release`,default:!1,label:`Sections in Brand`,hint:`Sections of logos and of colours, gradients and patterns among them.`},brandRules:{kind:`release`,default:!1,label:`Rules in Brand`,hint:`Rules for how the logos, the colours and the type may be used.`},typography:{kind:`release`,default:!1,label:`Typography in Brand`,hint:`The brand's fonts, their licences and a type scale.`},channelVoice:{kind:`release`,default:!1,label:`Live voice`,hint:`Wizards run as a spoken conversation in the browser: offered when building and sharing.`},channelVideo:{kind:`release`,default:!1,label:`Video call`,hint:`Wizards run as a video call in the browser: offered when building and sharing.`},pages:{kind:`release`,default:!1,label:`Public page`,hint:`A space's page at the organization's address on wizards.page: its part in the space, the share dialog's switch.`},wordpress:{kind:`release`,default:!1,label:`WordPress plugin`,hint:`The plugin for WordPress sites, and a wizard as a package for one: offered in the share dialog and under Settings → Integrate.`},skills:{kind:`release`,default:!0,label:`Skills`,hint:`Skills, a place of their own in the app bar: from skills.sh, uploaded or written; always on in every AI step, or read by a wizard when it needs one.`},plugins:{kind:`release`,default:!1,label:`Plugins in the settings`,hint:`Settings › Plugins, also before any plugin is installed. Installing a plugin turns it on.`},goose:{kind:`release`,default:!1,label:`Goose`,hint:`The studio's assistant: its chat at the foot of the page and in the sidebar.`},workMode:{kind:`release`,default:!1,label:`Work mode`,hint:"The switch between Studio and Work in the app bar, and Work's chats. Client comes with the public page (`pages`)."},workWip:{kind:`release`,default:!1,label:`Work – WiP`,hint:`Work's places that aren't built yet, in the app bar under the chats: engenties, files, data, results and the bell.`},modelTiers:{kind:`release`,default:!1,label:`Model tiers`,hint:`The organization's model tier: steps may name a maker, calls say what they are for, and the studio shows what each class runs on in the tier.`},customDomains:{kind:`release`,default:!1,label:`Own domains`,hint:`Settings › Allgemein: the organization's wizards under a domain of its own, once a TXT record confirms it.`},broker:{kind:`release`,default:!0,label:`Broker`,hint:`RWX rules per space: who may read, write and execute what; enforced at every reader.`},capabilities:{kind:`release`,default:!0,label:`Capabilities`,hint:`One place in the app bar for Skills and Verbindungen: the space's connections with sign-in, audience and rules, each person's own sign-ins, the broker's Protokoll, Entdecken.`},ownKeys:{kind:`plan`,default:!0,label:`Own API keys`,hint:`The organization puts its providers' keys into the cloud studio instead of running on credits.`}};function G(e,t){let n=e?.[t];return typeof n==`boolean`?n:Object.hasOwn(W,t)?W[t].default:!1}function he(e=W){let t={};for(let[n,r]of Object.entries(e))t[n]=r.default;return t}function ge(e){return Object.fromEntries(re.filter(t=>e[t]?.startsWith(`apple:`)).map(e=>[e,``]))}function _e(e){return e.split(/\s+/).map(e=>e[0]??``).join(``).slice(0,2).toUpperCase()}function ve(){let e=K().data?.limits.spaces;return e===null||(e??1)>1}function ye(){return K().data?.limits.build??!0}function be(){let e=K().data,t=Z().space?.studio??!1;return!e||e.limits.create||G(e.features,`capabilities`)&&e.limits.build&&t}function xe(){let e=K().data;return!e||e.mode===`local`||e.tenant.role!==`member`}function Se(){let e=i();return t=>{m(t),e.setQueryData([`me`],e=>e&&{...e,lang:t}),s.put(`/api/studio/lang`,{lang:t}).catch(()=>void 0)}}function Ce(e){let t=i();(0,y.useEffect)(()=>{if(!e)return;if(e.lang){m(e.lang);return}let n=ie();n&&(t.setQueryData([`me`],e=>e&&{...e,lang:n}),s.put(`/api/studio/lang`,{lang:n}).catch(()=>void 0))},[e,t])}function K(){return d({queryKey:[`me`],queryFn:async()=>{try{return await s.get(`/api/studio/me`)}catch(e){if(e instanceof f&&e.status===401)return null;throw e}},staleTime:3e4})}function q(e=!0){return d({queryKey:r.spaces(),queryFn:()=>s.get(`/api/studio/spaces`),enabled:e})}var J=`wz.space`;function we(){try{return localStorage.getItem(J)}catch{return null}}var Y=we(),X=new Set;function Te(e){Y=e;try{localStorage.setItem(J,e)}catch{}for(let e of X)e()}function Z(){let e=q(),t=(0,y.useSyncExternalStore)(e=>(X.add(e),()=>X.delete(e)),()=>Y),n=e.data??[];return{space:n.find(e=>e.id===t)??n[0]??null,spaces:n,select:Te,loading:e.isLoading}}function Ee(e,t){return d({queryKey:[`cloud`,e],queryFn:()=>s.get(`/api/studio/wizards/${e}/cloud`),enabled:t})}function De(e){return e instanceof f&&e.body?.code===`read_only`?e.message:null}async function Oe(){let{account:e}=await(await fetch(o(`/api/auth/sign-out`),{method:`POST`,credentials:`include`,headers:{"content-type":`application/json`},body:`{}`})).json().catch(()=>({}));if(!e){window.location.href=`${u}/`;return}let t=document.createElement(`form`);t.method=`POST`,t.action=e;let n=document.createElement(`input`);n.type=`hidden`,n.name=`return`,n.value=`${window.location.origin}${u}/`,t.append(n),document.body.append(t),t.submit()}function ke(e=Ae(),t){let n=new URLSearchParams({return:e});c!==u&&n.set(`organization`,c.slice(u.length+1)),t?.trim()&&n.set(`wish`,t.trim()),window.location.href=o(`/api/auth/login?${n}`)}function Ae(){let e=new URLSearchParams(window.location.search);e.delete(`signin`);let t=e.toString();return`${window.location.pathname}${t?`?${t}`:``}`}var Q=`wizards.wish`,$=1;function je(e){try{localStorage.setItem(Q,JSON.stringify({text:e,at:Date.now()}))}catch{}}function Me(){try{let e=JSON.parse(localStorage.getItem(Q)??`null`);if(typeof e?.text==`string`&&typeof e.at==`number`&&Date.now()-e.at<$*864e5)return e.text}catch{}return null}function Ne(){try{localStorage.removeItem(Q)}catch{}}export{L as A,me as C,z as D,B as E,se as M,v as N,ce as O,g as P,pe as S,ue as T,q as _,De as a,G as b,Ce as c,xe as d,ve as f,Se as g,K as h,Me as i,le as j,de as k,Ee as l,be as m,_e as n,ke as o,ye as p,je as r,Oe as s,Ne as t,Z as u,ge as v,I as w,fe as x,he as y};
|
|
@@ -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{$n as r,At as i,Dt as a,Ft as o,It as s,Lt as c,On as l,Ot as u,Pt as d,St as f,Tn as p,Tt as m,Zt as h,_n as g,_t as _,cn as v,ct as y,dn as b,dt as x,en as S,gn as C,gt as w,hn as T,ht as E,jn as D,kt as O,q as k,rn as A,rr as ee,sn as j,sr as M,u as N,ut as P,vt as F,wt as te,xn as I,zt as L}from"./ui-
|
|
2
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{$n as r,At as i,Dt as a,Ft as o,It as s,Lt as c,On as l,Ot as u,Pt as d,St as f,Tn as p,Tt as m,Zt as h,_n as g,_t as _,cn as v,ct as y,dn as b,dt as x,en as S,gn as C,gt as w,hn as T,ht as E,jn as D,kt as O,q as k,rn as A,rr as ee,sn as j,sr as M,u as N,ut as P,vt as F,wt as te,xn as I,zt as L}from"./ui-CktezodE.js";import{t as ne}from"./react-dom-hf6EcyAr.js";import{t as R}from"./preload-helper-DpV6A1kQ.js";import{t as re}from"./volume-2-Bw5KASy8.js";import{a as ie,d as ae,l as oe,o as se,t as ce,u as le}from"./read-aloud-CLXo_asN.js";import{A as ue,D as de,E as fe,S as pe}from"./session-CpYa5hwd.js";import{t as me}from"./phone-CjPvZ0nk.js";import{t as he}from"./engenty-CNjaZCVM.js";import{Ct as z,E as ge,Et as _e,G as ve,P as ye,St as be,Tt as B,bt as xe,m as Se,n as Ce,rt as V,s as H,t as we,u as Te,vt as Ee,xt as De,yt as U}from"./i18n-0fUKyVRE.js";import{t as Oe}from"./index-DOgwxnto.js";var ke={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`}]]};ke.node;var Ae=M(ke),je={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`}]]};je.node;var Me=M(je),Ne={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`}]]};Ne.node;var Pe=M(Ne),Fe={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`}]]};Fe.node;var Ie=M(Fe),Le=3e3,Re=new Set;function ze(e,t,n){let r=`${e.family}\n${e.url}`;if(Re.has(r))return;Re.add(r);let i=!1,a=setTimeout(()=>i||n(),Le),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 Be=e(ne(),1),W=e(t(),1),G=e(n(),1),Ve=typeof window<`u`&&window.matchMedia(`(pointer: coarse)`).matches;function He({since:e}){let[t,n]=(0,W.useState)(Date.now());if((0,W.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,G.jsxs)(`span`,{className:`font-mono text-[0.8125rem] text-white/60 tabular-nums`,children:[i,`:`,a]})}function K({label:e,on:t,danger:n,busy:r,onClick:i,children:a}){return(0,G.jsx)(`button`,{type:`button`,"aria-label":e,title:e,"aria-pressed":t,disabled:r,onClick:i,className:v(`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,G.jsx)(A,{className:`size-5`}):a})}function Ue({voice:e}){let t=(0,W.useRef)(null),{captions:n}=e;return(0,W.useEffect)(()=>{n.length&&t.current?.scrollIntoView({block:`end`})},[n]),n.length?(0,G.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-4 sm:px-5`,children:(0,G.jsxs)(`ol`,{className:`mx-auto flex max-w-[720px] flex-col gap-2 py-2`,children:[n.map(e=>(0,G.jsx)(`li`,{className:v(`text-[0.9375rem] leading-snug`,e.who===`bot`?`text-white/95`:`text-right text-white/50`),children:e.text},e.id)),(0,G.jsx)(`div`,{ref:t})]})}):null}function We({voice:e,view:t,video:n,className:r}){let i=e.state===`live`,a=e.state===`connecting`,[o,s]=(0,W.useState)(null),[c,l]=(0,W.useState)(!1);(0,W.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,p=[...e.captions].reverse().find(e=>e.who===`bot`),m=[...e.captions].reverse().find(e=>e.who===`me`),h=e.speaking?H(`talk.speaking`):e.listening?H(`talk.listening`):i?H(`talk.live`):a?H(`talk.connecting`):c?H(`video.ended`):``;return(0,G.jsxs)(`section`,{className:v(`relative flex min-h-0 flex-col bg-neutral-950 text-white`,`safe-top`,r),children:[(0,G.jsxs)(`div`,{className:`flex h-14 shrink-0 items-center gap-3 px-4 sm:px-5`,children:[(0,G.jsx)(`div`,{className:`min-w-0 flex-1 truncate font-display font-semibold text-[1rem] tracking-tight`,children:t?.wizard.title??``}),h?(0,G.jsxs)(`span`,{className:`flex items-center gap-1.5 text-[0.8125rem] text-white/70`,children:[i?(0,G.jsx)(`span`,{className:v(`size-2 rounded-full`,e.speaking?`animate-pulse-dot bg-emerald-400`:`bg-rose`)}):null,h]}):null,(0,G.jsx)(He,{since:o})]}),(0,G.jsxs)(`div`,{className:v(`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,G.jsxs)(`div`,{className:v(`relative min-h-0 overflow-hidden rounded-2xl bg-neutral-900`,!f&&`hidden`),children:[(0,G.jsx)(`video`,{ref:e.video,muted:!0,playsInline:!0,autoPlay:!0,className:v(`absolute inset-0 h-full w-full object-cover`,e.facing===`user`&&`-scale-x-100`,e.camera?`block`:`hidden`)}),e.camera?null:(0,G.jsxs)(`div`,{className:`absolute inset-0 flex flex-col items-center justify-center gap-2 text-white/50`,children:[(0,G.jsx)(Pe,{className:`size-8`}),(0,G.jsx)(`span`,{className:`text-[0.8125rem]`,children:H(`video.cameraOff`)})]}),(0,G.jsxs)(`span`,{className:`absolute bottom-2 left-3 rounded-md bg-black/50 px-2 py-0.5 text-[0.75rem]`,children:[H(`video.you`),e.muted?(0,G.jsx)(ae,{className:`ml-1.5 inline size-3`}):null]})]}),(0,G.jsxs)(`div`,{className:v(`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,G.jsx)(`div`,{className:v(`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,G.jsx)(pe,{kind:t?.wizard.avatar??`round`,costume:t?.wizard.costume,size:f?140:200,fluffy:!0,interactive:!1})}),f?(0,G.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,G.jsx)(Ue,{voice:e}):i&&(p||m)?(0,G.jsx)(`div`,{className:`shrink-0 px-4 pb-2 sm:px-5`,children:(0,G.jsxs)(`div`,{className:`mx-auto max-w-[720px] space-y-1 text-center`,children:[m?(0,G.jsx)(`p`,{className:`line-clamp-1 text-[0.8125rem] text-white/50`,children:m.text}):null,p?(0,G.jsx)(`p`,{className:`line-clamp-3 text-[0.9375rem] text-white/95 leading-snug`,children:p.text}):null]})}):null,e.error?(0,G.jsx)(`p`,{className:`shrink-0 px-5 pb-2 text-center text-[0.8125rem] text-rose`,children:e.error}):null,(0,G.jsx)(`div`,{className:`flex shrink-0 items-center justify-center gap-3 px-4 pt-1 pb-4`,children:i?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(K,{label:H(e.muted?`video.unmute`:`video.mute`),on:!e.muted,onClick:e.toggleMute,children:e.muted?(0,G.jsx)(ae,{className:`size-5`}):(0,G.jsx)(D,{className:`size-5`})}),(0,G.jsx)(K,{label:H(e.camera?`talk.cameraOff`:`talk.camera`),on:e.camera,onClick:()=>e.camera?e.stopCamera():void e.startCamera(),children:e.camera?(0,G.jsx)(b,{className:`size-5`}):(0,G.jsx)(Pe,{className:`size-5`})}),e.camera&&Ve?(0,G.jsx)(K,{label:H(`video.flip`),onClick:()=>void e.flipCamera(),children:(0,G.jsx)(T,{className:`size-5`})}):null,(0,G.jsx)(K,{label:H(`video.leave`),danger:!0,onClick:d,children:(0,G.jsx)(le,{className:`size-5`})})]}):(0,G.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,G.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,G.jsx)(A,{className:`size-4`}):n?(0,G.jsx)(b,{className:`size-5`}):(0,G.jsx)(D,{className:`size-5`}),H(c?`video.rejoin`:n?`video.join`:`talk.start`)]}),!c&&!e.error?(0,G.jsx)(`p`,{className:`max-w-sm text-center text-[0.75rem] text-white/50`,children:H(n?`video.hint`:`talk.joinHint`)}):null]})})]})}var Ge=e=>ge[e.kind]!==`device`,Ke=1024,qe=4e3;function Je(e,t){return e?e.length>t?`${e.slice(0,t)} …`:e:``}function Ye(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: ${we(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}: ${Je(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(`
|