@engenty/wizards-runtime 0.19.0 → 0.19.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/apps/runtime/dist/engine/runner.js +20 -7
- package/apps/runtime/dist/prompts/architect.md +3 -3
- package/apps/runtime/dist/prompts/authoring.md +4 -3
- package/apps/runtime/dist/services/work-chats.js +14 -6
- package/apps/runtime/dist/sharing/state.js +7 -3
- package/apps/web/dist/assets/{AboutDialog-BxT7chz8.js → AboutDialog-BUWu36Mb.js} +1 -1
- package/apps/web/dist/assets/{BlockEditor-BX8ZxxIc.js → BlockEditor-1-EvUIta.js} +1 -1
- package/apps/web/dist/assets/{Bundle-Dkpi5E6W.js → Bundle-RNkjBwAL.js} +1 -1
- package/apps/web/dist/assets/{CapabilitiesPage-CfSb23wy.js → CapabilitiesPage-fgTP28Mn.js} +2 -2
- package/apps/web/dist/assets/{ChangelogDialog-j-vHLy-V.js → ChangelogDialog-C_ZZLRZT.js} +1 -1
- package/apps/web/dist/assets/{CodeEditor-CfM2A-yS.js → CodeEditor-BEJKIMd0.js} +1 -1
- package/apps/web/dist/assets/{ConnectorsSection-fRBZYfZu.js → ConnectorsSection-iLrduYak.js} +1 -1
- package/apps/web/dist/assets/EditorPage-CRZte0O1.js +3 -0
- package/apps/web/dist/assets/{FlowPreview-E0kuvM5n.js → FlowPreview-ptI86Ogs.js} +1 -1
- package/apps/web/dist/assets/{LangSwitch-DhQmCtyY.js → LangSwitch-BNa_H8AR.js} +1 -1
- package/apps/web/dist/assets/Marketplace-9aGWG2pJ.js +2 -0
- package/apps/web/dist/assets/{NewWizardChannels-BATgI9GR.js → NewWizardChannels-BFDm9vCT.js} +1 -1
- package/apps/web/dist/assets/{NewWizardPage-B5V5ScKh.js → NewWizardPage-ueGFlLDo.js} +1 -1
- package/apps/web/dist/assets/{OnboardingPage-DWpDqlCi.js → OnboardingPage-DtDd7k_O.js} +1 -1
- package/apps/web/dist/assets/{PreviewPane-Br2w92Wh.js → PreviewPane-CEltrf_-.js} +2 -2
- package/apps/web/dist/assets/ProtocolSection-Bb3c44Te.js +1 -0
- package/apps/web/dist/assets/{PublicRunner-Cjhfeqi3.js → PublicRunner-BaTg24s3.js} +1 -1
- package/apps/web/dist/assets/{ReadOnly-CkToYpY5.js → ReadOnly-YF0RkR7P.js} +1 -1
- package/apps/web/dist/assets/{Results-C9qxCpUQ.js → Results-DJRLiVo0.js} +1 -1
- package/apps/web/dist/assets/{RunDrawer-BRXH71U8.js → RunDrawer-CSpTNJp-.js} +1 -1
- package/apps/web/dist/assets/{SettingsPage-Dobd7tAA.js → SettingsPage--_ap3omw.js} +2 -2
- package/apps/web/dist/assets/{SetupPage-BkMjwBlV.js → SetupPage-ELKHbmnE.js} +1 -1
- package/apps/web/dist/assets/{SharePage-Boj1R928.js → SharePage-OiKEnmL1.js} +1 -1
- package/apps/web/dist/assets/{SkillEditor-DtVRUYqS.js → SkillEditor-C1_zwNOQ.js} +1 -1
- package/apps/web/dist/assets/{Skills-DK1Pv-Xh.js → Skills-_pLGtOjH.js} +1 -1
- package/apps/web/dist/assets/{SpacePage-CjgBRkkw.js → SpacePage-r4EbxEJe.js} +2 -2
- package/apps/web/dist/assets/{StudioHome-B5HcJJ4Q.js → StudioHome-CwvxI29m.js} +1 -1
- package/apps/web/dist/assets/{UpdateCheck-DFor0F9T.js → UpdateCheck-BpdsLIOc.js} +2 -2
- package/apps/web/dist/assets/{brand-Ij-I_Lms.js → brand-ByQY-UcL.js} +1 -1
- package/apps/web/dist/assets/changelog-Dt-V-BKp.js +1 -0
- package/apps/web/dist/assets/{code-editor-BVgSljQq.js → code-editor-B8zG80PA.js} +2 -2
- package/apps/web/dist/assets/{host-BELYIPMT.js → host-Ckjz94Ea.js} +6 -6
- package/apps/web/dist/assets/{i18n-DPqdH1PJ.js → i18n-ClCOlfx2.js} +1 -1
- package/apps/web/dist/assets/{index-wJZVaKLg.js → index-BHKh0A9F.js} +3 -3
- package/apps/web/dist/assets/index-D18zQ05f.css +1 -0
- package/apps/web/dist/assets/{read-aloud-pd-PWi_5.js → read-aloud-spC7eEBp.js} +1 -1
- package/apps/web/dist/assets/{runners-D9DHhaD9.js → runners-DNqzwMQ0.js} +1 -1
- package/apps/web/dist/assets/{session-Mt-n8MI0.js → session-Dd9duhPc.js} +1 -1
- package/apps/web/dist/assets/{theme-BQhQx_UL.js → theme-DumM6FI_.js} +1 -1
- package/apps/web/dist/assets/{ui-D4qQLcbs.js → ui-BjhZhw8x.js} +1 -1
- package/apps/web/dist/assets/{useMutation-CUZC19i3.js → useMutation-CoEdB_9_.js} +1 -1
- package/apps/web/dist/assets/{viewers-D-8HZrcq.js → viewers-BmcrgvXX.js} +2 -2
- package/apps/web/dist/index.html +13 -13
- package/apps/web/dist/mcp/flow.html +3 -3
- package/node_modules/@engenty/wizards-shared/dist/run.d.ts +2 -0
- package/node_modules/@engenty/wizards-shared/dist/run.js +2 -0
- package/node_modules/@engenty/wizards-shared/dist/transition.js +5 -1
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/plugin.json +1 -1
- package/apps/web/dist/assets/EditorPage-CrFyN_Qn.js +0 -3
- package/apps/web/dist/assets/Marketplace-BdkNOARm.js +0 -2
- package/apps/web/dist/assets/ProtocolSection-DMCojdZu.js +0 -1
- package/apps/web/dist/assets/changelog-n9RARUzp.js +0 -1
- package/apps/web/dist/assets/index-CVZlO0z3.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{i as t,o as n,z as r}from"./i18n-DPqdH1PJ.js";import{$ as i,Wr as a,Yt as o,Z as s,lt as c,mt as l,st as u,yr as d}from"./ui-D4qQLcbs.js";import{n as f}from"./jsx-runtime-C3cWAN_r.js";var p={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.`},ownKeysGateway:{kind:`release`,default:!1,label:`Own API keys through the gateway`,hint:`The organization's own accounts at the providers live in the Manage-App, and every cloud call goes through the gateway, which runs it on such an account or on credits. Keys saved in the cloud studio move there once.`},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.`},dockerEgress:{kind:`release`,default:!1,label:`Docker sandbox through the broker`,hint:`A Docker sandbox reaches the internet only through the runtime: the hosts its run may reach and the package registries, each connection in the log.`},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.`},clientSpaces:{kind:`release`,default:!1,label:`Client spaces`,hint:`A space's clients, each in a client space under it: their own data, results and chats, the firm's setup read from the space (docs/plans/client-spaces.md).`},orgSpaces:{kind:`release`,default:!1,label:`Organization, spaces and folders`,hint:`The organization's own space as the root, Mein Space per person, every other space under the root; the path bar with the space menu instead of the space tile; Ordner in Work (docs/plans/org-spaces.md).`},knowledgeTree:{kind:`release`,default:!1,label:`Knowledge as a knowledge base`,hint:`Knowledge's start page with one Add menu, folders in its menu and categories as a tab, the block editor for pages (docs/plans/knowledge-base.md).`},knowledgeMedia:{kind:`release`,default:!1,label:`Pictures in Wissen by what they show`,hint:`Pictures and PDF pages are embedded as pictures where the embedding model takes them (EmbeddingGemma 2), so a search finds a photo by what it shows (docs/plans/media-and-files.md).`},gatewaySearch:{kind:`release`,default:!1,label:`Web search through the gateway`,hint:`web_search through the gateway's /v1/web/search for every model and client, in place of the model's own search. On once the gateway has its provider's key.`},dateien:{kind:`release`,default:!1,label:`Dateien`,hint:`File trees another party owns, mounted in a space and indexed where they live: a folder on this computer first (docs/plans/media-and-files.md).`},durableRuns:{kind:`release`,default:!1,label:`Runs that last days`,hint:`Runs that wait for days and survive a restart: a clock or a signal wakes them, and a deadline holds automatic steps. What a step did outside happens once, an AI step goes on where it was and can stop to ask a person. Retries over time and onFail; out of credits waits for a top-up.`},startTriggers:{kind:`release`,default:!1,label:`Starts by itself`,hint:`A wizard that runs on a schedule: the share dialog's section, the clock, the bell (docs/plans/starts.md).`},fastCreate:{kind:`release`,default:!1,label:`Fast first draft`,hint:`A new wizard's first pages within seconds: one quick model call writes the text form, each page is saved as it arrives, and the architect finishes the rest while the person looks (docs/plans/fast-creation.md, Part 3).`},codeSteps:{kind:`release`,default:!1,label:`Code steps`,hint:`A step that runs a function from the wizard's files with no model: maths, reshaping, scoring. With it, function tools in the wizard's files that a step's model calls (docs/plans/wizard-code.md). The architect knows both, and a run with them starts (docs/plans/code-step.md).`},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.`},personSignIn:{kind:`plan`,default:!0,label:`Each person signs in to a connection`,hint:`A space's connection may have each person sign in with their own account. Without it a connection signs in as the space.`}};function m(e,t){let n=e?.[t];return typeof n==`boolean`?n:Object.hasOwn(p,t)?p[t].default:!1}function h(e=p){let t={};for(let[n,r]of Object.entries(e))t[n]=r.default;return t}var g=e(f(),1);function _(e){return Object.fromEntries(r.filter(t=>e[t]?.startsWith(`apple:`)).map(e=>[e,``]))}function v(e){return e.split(/\s+/).map(e=>e.match(/[\p{L}\p{N}]/u)?.[0]??``).join(``).slice(0,2).toUpperCase()}function y(){let e=T().data?.limits.spaces;return e===null||(e??1)>1}function b(){return T().data?.limits.build??!0}function x(){let e=T().data,t=M().space?.studio??!1;return!e||e.limits.create||m(e.features,`capabilities`)&&e.limits.build&&t}function S(){let e=T().data;return!e||e.mode===`local`||e.tenant.role!==`member`}function C(){let e=a();return n=>{t(n),e.setQueryData([`me`],e=>e&&{...e,lang:n}),i.put(`/api/studio/lang`,{lang:n}).catch(()=>void 0)}}function w(e){let r=a();(0,g.useEffect)(()=>{if(!e)return;if(e.lang){t(e.lang);return}let a=n();a&&(r.setQueryData([`me`],e=>e&&{...e,lang:a}),i.put(`/api/studio/lang`,{lang:a}).catch(()=>void 0))},[e,r])}function T(){return d({queryKey:[`me`],queryFn:async()=>{try{return await i.get(`/api/studio/me`)}catch(e){if(e instanceof o&&e.status===401)return null;throw e}},staleTime:3e4})}function E(e=!0){return d({queryKey:s.spaces(),queryFn:()=>i.get(`/api/studio/spaces`),enabled:e})}var D=`wz.space`;function O(){try{return localStorage.getItem(D)}catch{return null}}var k=O(),A=new Set;function j(e){k=e;try{localStorage.setItem(D,e)}catch{}for(let e of A)e()}function M(){let e=E(),t=(0,g.useSyncExternalStore)(e=>(A.add(e),()=>A.delete(e)),()=>k),n=e.data??[];return{space:n.find(e=>e.id===t)??n[0]??null,spaces:n,select:j,loading:e.isLoading}}function N(e,t){return d({queryKey:[`cloud`,e],queryFn:()=>i.get(`/api/studio/wizards/${e}/cloud`),enabled:t})}function P(e){return e instanceof o&&e.body?.code===`read_only`?e.message:null}async function F(){let{account:e}=await(await fetch(l(`/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 I(e=L(),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=l(`/api/auth/login?${n}`)}function L(){let e=new URLSearchParams(window.location.search);e.delete(`signin`);let t=e.toString();return`${window.location.pathname}${t?`?${t}`:``}`}var R=`wizards.wish`,z=1;function B(e){try{localStorage.setItem(R,JSON.stringify({text:e,at:Date.now()}))}catch{}}function V(){try{let e=JSON.parse(localStorage.getItem(R)??`null`);if(typeof e?.text==`string`&&typeof e.at==`number`&&Date.now()-e.at<z*864e5)return e.text}catch{}return null}function H(){try{localStorage.removeItem(R)}catch{}}export{E as _,P as a,m as b,w as c,S as d,y as f,C as g,T as h,V as i,N as l,x as m,v as n,I as o,b as p,B as r,F as s,H as t,M as u,_ as v,h as y};
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{i as t,o as n,z as r}from"./i18n-ClCOlfx2.js";import{$ as i,Wr as a,Yt as o,Z as s,lt as c,mt as l,st as u,yr as d}from"./ui-BjhZhw8x.js";import{n as f}from"./jsx-runtime-C3cWAN_r.js";var p={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.`},ownKeysGateway:{kind:`release`,default:!1,label:`Own API keys through the gateway`,hint:`The organization's own accounts at the providers live in the Manage-App, and every cloud call goes through the gateway, which runs it on such an account or on credits. Keys saved in the cloud studio move there once.`},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.`},dockerEgress:{kind:`release`,default:!1,label:`Docker sandbox through the broker`,hint:`A Docker sandbox reaches the internet only through the runtime: the hosts its run may reach and the package registries, each connection in the log.`},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.`},clientSpaces:{kind:`release`,default:!1,label:`Client spaces`,hint:`A space's clients, each in a client space under it: their own data, results and chats, the firm's setup read from the space (docs/plans/client-spaces.md).`},orgSpaces:{kind:`release`,default:!1,label:`Organization, spaces and folders`,hint:`The organization's own space as the root, Mein Space per person, every other space under the root; the path bar with the space menu instead of the space tile; Ordner in Work (docs/plans/org-spaces.md).`},knowledgeTree:{kind:`release`,default:!1,label:`Knowledge as a knowledge base`,hint:`Knowledge's start page with one Add menu, folders in its menu and categories as a tab, the block editor for pages (docs/plans/knowledge-base.md).`},knowledgeMedia:{kind:`release`,default:!1,label:`Pictures in Wissen by what they show`,hint:`Pictures and PDF pages are embedded as pictures where the embedding model takes them (EmbeddingGemma 2), so a search finds a photo by what it shows (docs/plans/media-and-files.md).`},gatewaySearch:{kind:`release`,default:!1,label:`Web search through the gateway`,hint:`web_search through the gateway's /v1/web/search for every model and client, in place of the model's own search. On once the gateway has its provider's key.`},dateien:{kind:`release`,default:!1,label:`Dateien`,hint:`File trees another party owns, mounted in a space and indexed where they live: a folder on this computer first (docs/plans/media-and-files.md).`},durableRuns:{kind:`release`,default:!1,label:`Runs that last days`,hint:`Runs that wait for days and survive a restart: a clock or a signal wakes them, and a deadline holds automatic steps. What a step did outside happens once, an AI step goes on where it was and can stop to ask a person. Retries over time and onFail; out of credits waits for a top-up.`},startTriggers:{kind:`release`,default:!1,label:`Starts by itself`,hint:`A wizard that runs on a schedule: the share dialog's section, the clock, the bell (docs/plans/starts.md).`},fastCreate:{kind:`release`,default:!1,label:`Fast first draft`,hint:`A new wizard's first pages within seconds: one quick model call writes the text form, each page is saved as it arrives, and the architect finishes the rest while the person looks (docs/plans/fast-creation.md, Part 3).`},codeSteps:{kind:`release`,default:!1,label:`Code steps`,hint:`A step that runs a function from the wizard's files with no model: maths, reshaping, scoring. With it, function tools in the wizard's files that a step's model calls (docs/plans/wizard-code.md). The architect knows both, and a run with them starts (docs/plans/code-step.md).`},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.`},personSignIn:{kind:`plan`,default:!0,label:`Each person signs in to a connection`,hint:`A space's connection may have each person sign in with their own account. Without it a connection signs in as the space.`}};function m(e,t){let n=e?.[t];return typeof n==`boolean`?n:Object.hasOwn(p,t)?p[t].default:!1}function h(e=p){let t={};for(let[n,r]of Object.entries(e))t[n]=r.default;return t}var g=e(f(),1);function _(e){return Object.fromEntries(r.filter(t=>e[t]?.startsWith(`apple:`)).map(e=>[e,``]))}function v(e){return e.split(/\s+/).map(e=>e.match(/[\p{L}\p{N}]/u)?.[0]??``).join(``).slice(0,2).toUpperCase()}function y(){let e=T().data?.limits.spaces;return e===null||(e??1)>1}function b(){return T().data?.limits.build??!0}function x(){let e=T().data,t=M().space?.studio??!1;return!e||e.limits.create||m(e.features,`capabilities`)&&e.limits.build&&t}function S(){let e=T().data;return!e||e.mode===`local`||e.tenant.role!==`member`}function C(){let e=a();return n=>{t(n),e.setQueryData([`me`],e=>e&&{...e,lang:n}),i.put(`/api/studio/lang`,{lang:n}).catch(()=>void 0)}}function w(e){let r=a();(0,g.useEffect)(()=>{if(!e)return;if(e.lang){t(e.lang);return}let a=n();a&&(r.setQueryData([`me`],e=>e&&{...e,lang:a}),i.put(`/api/studio/lang`,{lang:a}).catch(()=>void 0))},[e,r])}function T(){return d({queryKey:[`me`],queryFn:async()=>{try{return await i.get(`/api/studio/me`)}catch(e){if(e instanceof o&&e.status===401)return null;throw e}},staleTime:3e4})}function E(e=!0){return d({queryKey:s.spaces(),queryFn:()=>i.get(`/api/studio/spaces`),enabled:e})}var D=`wz.space`;function O(){try{return localStorage.getItem(D)}catch{return null}}var k=O(),A=new Set;function j(e){k=e;try{localStorage.setItem(D,e)}catch{}for(let e of A)e()}function M(){let e=E(),t=(0,g.useSyncExternalStore)(e=>(A.add(e),()=>A.delete(e)),()=>k),n=e.data??[];return{space:n.find(e=>e.id===t)??n[0]??null,spaces:n,select:j,loading:e.isLoading}}function N(e,t){return d({queryKey:[`cloud`,e],queryFn:()=>i.get(`/api/studio/wizards/${e}/cloud`),enabled:t})}function P(e){return e instanceof o&&e.body?.code===`read_only`?e.message:null}async function F(){let{account:e}=await(await fetch(l(`/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 I(e=L(),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=l(`/api/auth/login?${n}`)}function L(){let e=new URLSearchParams(window.location.search);e.delete(`signin`);let t=e.toString();return`${window.location.pathname}${t?`?${t}`:``}`}var R=`wizards.wish`,z=1;function B(e){try{localStorage.setItem(R,JSON.stringify({text:e,at:Date.now()}))}catch{}}function V(){try{let e=JSON.parse(localStorage.getItem(R)??`null`);if(typeof e?.text==`string`&&typeof e.at==`number`&&Date.now()-e.at<z*864e5)return e.text}catch{}return null}function H(){try{localStorage.removeItem(R)}catch{}}export{E as _,P as a,m as b,w as c,S as d,y as f,C as g,T as h,V as i,N as l,x as m,v as n,I as o,b as p,B as r,F as s,H as t,M as u,_ as v,h 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-XKyaHtl9.js";import{n as t,t as n}from"./jsx-runtime-C3cWAN_r.js";import{$ as r,At as i,Cn as a,Ct as o,Et as s,Fn as c,Ft as l,Gt as u,It as d,Kt as f,Ln as p,Lt as m,Mn as h,Mt as g,Nt as _,Rt as v,St as y,Tn as b,Tt as x,Ut as S,Wt as C,_n as w,bn as T,ir as E,kn as D,mt as O,p as k,pn as A,qt as j,sn as M,un as N,vn as P,wn as F,wt as ee}from"./ui-
|
|
2
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{n as t,t as n}from"./jsx-runtime-C3cWAN_r.js";import{$ as r,At as i,Cn as a,Ct as o,Et as s,Fn as c,Ft as l,Gt as u,It as d,Kt as f,Ln as p,Lt as m,Mn as h,Mt as g,Nt as _,Rt as v,St as y,Tn as b,Tt as x,Ut as S,Wt as C,_n as w,bn as T,ir as E,kn as D,mt as O,p as k,pn as A,qt as j,sn as M,un as N,vn as P,wn as F,wt as ee}from"./ui-BjhZhw8x.js";import{t as te}from"./react-dom-BwXff0Px.js";import{d as I,u as L}from"./marked.esm-BfGIZK7F.js";import{t as ne}from"./volume-2-Br71vpS5.js";import{a as re,c as ie,d as ae,f as oe,o as se,p as ce,t as le}from"./read-aloud-spC7eEBp.js";import{n as ue,o as de,s as fe,u as pe}from"./brand-ByQY-UcL.js";import{t as me}from"./phone-CG7Bz_ZL.js";import{t as he}from"./engenty-Cy7MbUxR.js";import{$ as ge,$t as R,B as _e,Bt as ve,Gt as ye,Qt as be,Vt as z,Wt as xe,k as Se,mt as B,n as Ce,nn as we,s as V,t as Te,tn as H,u as Ee}from"./i18n-ClCOlfx2.js";import{t as U}from"./preload-helper-Cj7BV335.js";import{t as De}from"./index-BHKh0A9F.js";var Oe={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`}]]};Oe.node;var ke=I(Oe),Ae={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`}]]};Ae.node;var je=I(Ae),Me={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`}]]};Me.node;var Ne=I(Me),Pe={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`}]]};Pe.node;var Fe=I(Pe),Ie=3e3,Le=new Set;function Re(e,t,n){let r=`${e.family}\n${e.url}`;if(Le.has(r))return;Le.add(r);let i=!1,a=setTimeout(()=>i||n(),Ie),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)}else 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 ze=e(te(),1),W=e(t(),1),G=e(n(),1),Be=typeof window<`u`&&window.matchMedia(`(pointer: coarse)`).matches;function Ve({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 He({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:P(`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:P(`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`,o=e.state===`connecting`,[s,c]=(0,W.useState)(null),[l,u]=(0,W.useState)(!1);(0,W.useEffect)(()=>{c(i?Date.now():null)},[i]);let d=async()=>{u(!1),await e.start(),n&&await e.startCamera()},f=()=>{e.stop(),u(!0)},m=n||e.camera,h=[...e.captions].reverse().find(e=>e.who===`bot`),g=[...e.captions].reverse().find(e=>e.who===`me`),_=e.speaking?V(`talk.speaking`):e.listening?V(`talk.listening`):i?V(`talk.live`):o?V(`talk.connecting`):l?V(`video.ended`):``;return(0,G.jsxs)(`section`,{className:P(`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??``}),_?(0,G.jsxs)(`span`,{className:`flex items-center gap-1.5 text-[0.8125rem] text-white/70`,children:[i?(0,G.jsx)(`span`,{className:P(`size-2 rounded-full`,e.speaking?`animate-pulse-dot bg-emerald-400`:`bg-rose`)}):null,_]}):null,(0,G.jsx)(Ve,{since:s})]}),(0,G.jsxs)(`div`,{className:P(`grid min-h-0 gap-2 px-3 pb-2 sm:px-4`,m?`flex-1 grid-cols-1 sm:grid-cols-2`:`shrink-0 grid-cols-1`,!m&&i&&e.captions.length?`h-[38%]`:m?``:`flex-1`),children:[(0,G.jsxs)(`div`,{className:P(`relative min-h-0 overflow-hidden rounded-2xl bg-neutral-900`,!m&&`hidden`),children:[(0,G.jsx)(`video`,{ref:e.video,muted:!0,playsInline:!0,autoPlay:!0,className:P(`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)(Ne,{className:`size-8`}),(0,G.jsx)(`span`,{className:`text-[0.8125rem]`,children:V(`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:[V(`video.you`),e.muted?(0,G.jsx)(ce,{className:`ml-1.5 inline size-3`}):null]})]}),(0,G.jsxs)(`div`,{className:P(`relative flex min-h-0 items-center justify-center overflow-hidden rounded-2xl transition-shadow`,m?`bg-neutral-900`:`bg-transparent`,m&&e.speaking&&`ring-2 ring-emerald-400/70`),children:[(0,G.jsx)(`div`,{className:P(`rounded-full transition-shadow duration-500`,!m&&e.listening&&`shadow-[0_0_80px_20px_rgba(244,63,94,0.25)]`,!m&&e.speaking&&`shadow-[0_0_80px_20px_rgba(52,211,153,0.3)]`,e.speaking&&`animate-breathe`),children:(0,G.jsx)(ue,{kind:t?.wizard.avatar??`round`,costume:t?.wizard.costume,size:m?140:200,fluffy:!0,interactive:!1})}),m?(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&&!m?(0,G.jsx)(Ue,{voice:e}):i&&(h||g)?(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:[g?(0,G.jsx)(`p`,{className:`line-clamp-1 text-[0.8125rem] text-white/50`,children:g.text}):null,h?(0,G.jsx)(`p`,{className:`line-clamp-3 text-[0.9375rem] text-white/95 leading-snug`,children:h.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)(He,{label:V(e.muted?`video.unmute`:`video.mute`),on:!e.muted,onClick:e.toggleMute,children:e.muted?(0,G.jsx)(ce,{className:`size-5`}):(0,G.jsx)(p,{className:`size-5`})}),(0,G.jsx)(He,{label:V(e.camera?`talk.cameraOff`:`talk.camera`),on:e.camera,onClick:()=>e.camera?e.stopCamera():void e.startCamera(),children:e.camera?(0,G.jsx)(T,{className:`size-5`}):(0,G.jsx)(Ne,{className:`size-5`})}),e.camera&&Be?(0,G.jsx)(He,{label:V(`video.flip`),onClick:()=>void e.flipCamera(),children:(0,G.jsx)(a,{className:`size-5`})}):null,(0,G.jsx)(He,{label:V(`video.leave`),danger:!0,onClick:f,children:(0,G.jsx)(oe,{className:`size-5`})})]}):(0,G.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,G.jsxs)(`button`,{type:`button`,disabled:o||!t?.talk,onClick:()=>void d(),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:[o?(0,G.jsx)(A,{className:`size-4`}):n?(0,G.jsx)(T,{className:`size-5`}):(0,G.jsx)(p,{className:`size-5`}),V(l?`video.rejoin`:n?`video.join`:`talk.start`)]}),!l&&!e.error?(0,G.jsx)(`p`,{className:`max-w-sm text-center text-[0.75rem] text-white/50`,children:V(n?`video.hint`:`talk.joinHint`)}):null]})})]})}var Ge=e=>Se[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`?e.ask.again?`question: "${e.ask.action.summary}" in ${e.ask.service} was interrupted and may have happened already; answer_ask allows doing it again or skips it`:`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.question)return r.push(`question: "${e.question}"; ask the person, then answer_question with their words`),r.join(`
|
|
4
4
|
`);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(`
|
|
5
5
|
`)}if(e.status===`sleeping`)return r.push(e.pause?.kind===`credits`?`out of credits; it goes on by itself once the account is topped up`:e.pause?.kind===`sign_in`?`${e.pause.service} needs a new sign-in; it goes on by itself after that`:`waiting until: ${e.wakeAt??`soon`}; it goes on by itself, nothing to do`),r.join(`
|