wizards 0.2.45 → 0.2.47
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/app.js +34 -1
- package/apps/runtime/dist/cli/features.js +50 -0
- package/apps/runtime/dist/cli/main.js +12 -2
- package/apps/runtime/dist/cli/report.js +81 -0
- package/apps/runtime/dist/debug.js +196 -0
- package/apps/runtime/dist/features.js +123 -0
- package/apps/runtime/dist/harness/model.js +2 -0
- package/apps/runtime/dist/index.js +3 -0
- package/apps/runtime/dist/log.js +106 -0
- package/apps/runtime/dist/manage.js +13 -0
- package/apps/runtime/dist/plugins/discovery.js +11 -0
- package/apps/runtime/dist/plugins/loader.js +10 -0
- package/apps/runtime/dist/routes/debug.js +42 -0
- package/apps/runtime/dist/routes/internal.js +21 -5
- package/apps/runtime/dist/routes/runs.js +1 -1
- package/apps/runtime/dist/routes/studio.js +7 -5
- package/apps/runtime/dist/tenants/control.js +7 -0
- package/apps/web/dist/assets/{AboutDialog-Dx_ged8B.js → AboutDialog-t7bpiasT.js} +1 -1
- package/apps/web/dist/assets/{ChangelogDialog-CbEGxGZG.js → ChangelogDialog-B87yS6aN.js} +1 -1
- package/apps/web/dist/assets/{ChatView-DZm3GK6k.js → ChatView-Dm764bYy.js} +4 -4
- package/apps/web/dist/assets/EditorPage-BG_Ue2iC.js +3 -0
- package/apps/web/dist/assets/{FlowPreview-t7hVutQM.js → FlowPreview-ChXfiMn_.js} +1 -1
- package/apps/web/dist/assets/{Harness-DnUFOVKn.js → Harness-zKMptCzB.js} +2 -2
- package/apps/web/dist/assets/HomePage-BXSg5P5k.js +1 -0
- package/apps/web/dist/assets/{Marketplace-SLjncUHh.js → Marketplace-BWhUJ4UX.js} +2 -2
- package/apps/web/dist/assets/{NewWizardPage-D24mz6nu.js → NewWizardPage-C3NqEGmg.js} +1 -1
- package/apps/web/dist/assets/ProjectPage-D6Fy7uTV.js +2 -0
- package/apps/web/dist/assets/PublicRunner-ChgJs0C9.js +1 -0
- package/apps/web/dist/assets/{ReadOnly-BokOQXGX.js → ReadOnly-C9P9aiU6.js} +1 -1
- package/apps/web/dist/assets/{RunDrawer-BLxTUquf.js → RunDrawer-CvIKLphz.js} +3 -3
- package/apps/web/dist/assets/RunnerView-Bmayop7s.js +2 -0
- package/apps/web/dist/assets/SettingsPage-QkwtRFoD.js +1 -0
- package/apps/web/dist/assets/SetupPage-B3IOQLO3.js +1 -0
- package/apps/web/dist/assets/{SharePage-D30PD4st.js → SharePage-C3QEzicl.js} +1 -1
- package/apps/web/dist/assets/ThemeSwitch-3IzIOlNz.js +1 -0
- package/apps/web/dist/assets/arrow-right-Dpp_mpHe.js +1 -0
- package/apps/web/dist/assets/changelog-Du2gWzlN.js +1 -0
- package/apps/web/dist/assets/{circle-alert-DmnHyrXp.js → circle-alert-CPo3Naay.js} +1 -1
- package/apps/web/dist/assets/{definition-TTirPrTQ.js → definition-CQGiBQ4X.js} +1 -1
- package/apps/web/dist/assets/{external-link-CbsKNS8Z.js → external-link-CpU8aJY2.js} +1 -1
- package/apps/web/dist/assets/index-Cz6c1S5g.js +78 -0
- package/apps/web/dist/assets/{lock-CjhgdsXt.js → lock-C_WlXIQ0.js} +1 -1
- package/apps/web/dist/assets/{refresh-cw-Obopmbfz.js → refresh-cw-Cli5WGnW.js} +1 -1
- package/apps/web/dist/assets/{session-OPJXuQ-4.js → session-miDEdw2c.js} +1 -1
- package/apps/web/dist/assets/{settings-menu-Dme1HWda.js → settings-menu-ROT8Lbbj.js} +1 -1
- package/apps/web/dist/assets/{sparkles-DQnR0qxG.js → sparkles-CP5H-O1E.js} +1 -1
- package/apps/web/dist/assets/{trash-CDGh6DEg.js → trash-DU-hZpV0.js} +1 -1
- package/apps/web/dist/assets/ui-D92EkdEB.js +9 -0
- package/apps/web/dist/assets/{upload-BzfKj43F.js → upload-DMq5N6Fw.js} +1 -1
- package/apps/web/dist/assets/{volume-2-Dca_TstC.js → volume-2-0SfkvOho.js} +1 -1
- package/apps/web/dist/index.html +10 -10
- package/apps/web/dist/mcp/flow.html +41 -41
- package/node_modules/@engenty-wizards/plugin-sdk/dist/index.d.ts +21 -0
- package/node_modules/@engenty-wizards/shared/dist/feature-flags.d.ts +54 -0
- package/node_modules/@engenty-wizards/shared/dist/feature-flags.js +46 -0
- package/node_modules/@engenty-wizards/shared/dist/features.d.ts +36 -0
- package/node_modules/@engenty-wizards/shared/dist/features.js +78 -0
- package/package.json +1 -1
- package/apps/web/dist/assets/EditorPage-DYmr37s6.js +0 -3
- package/apps/web/dist/assets/HomePage-BtDteNOG.js +0 -1
- package/apps/web/dist/assets/ProjectPage-BrJp7tGj.js +0 -2
- package/apps/web/dist/assets/PublicRunner-c3A01WoK.js +0 -1
- package/apps/web/dist/assets/RunnerView-BCXVgQJg.js +0 -2
- package/apps/web/dist/assets/SettingsPage-CUZcrDWr.js +0 -1
- package/apps/web/dist/assets/SetupPage-DVM5r96i.js +0 -1
- package/apps/web/dist/assets/ThemeSwitch-BeoISyt6.js +0 -1
- package/apps/web/dist/assets/arrow-right-BeQQ3XNo.js +0 -1
- package/apps/web/dist/assets/changelog-CpOw96D-.js +0 -1
- package/apps/web/dist/assets/index-C67UNafO.js +0 -78
- package/apps/web/dist/assets/ui-BJwZ9JV4.js +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{J as e}from"./ui-D92EkdEB.js";var t={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{J as e}from"./ui-D92EkdEB.js";var t={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,n as t}from"./jsx-runtime-D3jfb0Ew.js";import{r as n}from"./logo-C80CWCDM.js";import{
|
|
1
|
+
import{a as e,n as t}from"./jsx-runtime-D3jfb0Ew.js";import{r as n}from"./logo-C80CWCDM.js";import{A as r,C as i,O as a,S as o}from"./ui-D92EkdEB.js";var s=e(t(),1);function c(e){return e.split(/\s+/).map(e=>e[0]??``).join(``).slice(0,2).toUpperCase()}function l(){let e=m().data?.limits.projects;return e===null||(e??1)>1}function u(){return m().data?.limits.build??!0}function d(){return m().data?.limits.create??!0}function f(){let e=m().data;return!e||e.mode===`local`||e.tenant.role!==`member`}function p(e){return e.mode===`managed`?e.credits:e.models?.source===`account`?e.account?.credits??null:null}function m(){return n({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 h(e=!0){return n({queryKey:[`projects`],queryFn:()=>i.get(`/api/studio/projects`),enabled:e})}var g=`wz.project`;function _(){try{return localStorage.getItem(g)}catch{return null}}var v=_(),y=new Set;function b(e){v=e;try{localStorage.setItem(g,e)}catch{}for(let e of y)e()}function x(){let e=h(),t=(0,s.useSyncExternalStore)(e=>(y.add(e),()=>y.delete(e)),()=>v),n=e.data??[];return{project:n.find(e=>e.id===t)??n[0]??null,projects:n,select:b,loading:e.isLoading}}function S(e,t){return n({queryKey:[`cloud`,e],queryFn:()=>i.get(`/api/studio/wizards/${e}/cloud`),enabled:t})}function C(e){return e instanceof o&&e.body?.code===`read_only`?e.message:null}async function w(){await fetch(r(`/api/auth/sign-out`),{method:`POST`,credentials:`include`,headers:{"content-type":`application/json`},body:`{}`}),window.location.href=`${a}/`}function T(e=window.location.pathname){window.location.href=r(`/api/auth/login?return=${encodeURIComponent(e)}`)}export{p as a,f as c,d,m as f,w as i,l,C as n,S as o,h as p,T as r,x as s,c as t,u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,n as t,t as n}from"./jsx-runtime-D3jfb0Ew.js";import{t as r}from"./react-dom-DenslgJm.js";import{H as i,
|
|
1
|
+
import{a as e,n as t,t as n}from"./jsx-runtime-D3jfb0Ew.js";import{t as r}from"./react-dom-DenslgJm.js";import{H as i,U as a,W as o,X as s,_ as c,q as l}from"./ui-D92EkdEB.js";var u=e(t(),1),d=r(),f=e(n(),1),p=(0,u.createContext)({slot:null,narrow:!1,setDetail:()=>void 0});function m(){return(0,u.useContext)(p)}function h({children:e}){let{slot:t}=m();return t?(0,d.createPortal)(e,t):null}function g(e){let{setDetail:t}=m();(0,u.useEffect)(()=>(t(e),()=>t(null)),[e,t])}var _=`(max-width: 767px)`;function v(e){let t=window.matchMedia(_);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}function y(){return(0,u.useSyncExternalStore)(v,()=>window.matchMedia(_).matches)}function b(e){return e===`deeper`?`animate-step-deeper`:e===`back`&&`animate-step-back`}function x({title:e,open:t,onBack:n}){return(0,f.jsxs)(`div`,{className:`mb-2 flex h-9 min-w-0 items-center px-1`,children:[(0,f.jsx)(`div`,{className:c(`shrink-0 overflow-hidden transition-[width,margin,opacity] duration-200 ease-out`,t?`-ml-1.5 mr-0.5 w-8 opacity-100`:`w-0 opacity-0`),children:(0,f.jsx)(`button`,{type:`button`,onClick:n,"aria-hidden":!t,tabIndex:t?void 0:-1,"aria-label":e,className:`grid size-8 place-items-center rounded-lg text-ink-3 transition hover:bg-accent hover:text-ink`,children:(0,f.jsx)(l,{className:`size-4`})})}),t?(0,f.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2 font-medium text-[0.875rem]`,children:[(0,f.jsx)(t.icon,{className:`size-4 shrink-0 text-ember-strong`}),(0,f.jsx)(`span`,{className:`truncate`,children:t.label})]}):(0,f.jsx)(`span`,{className:`truncate font-medium text-[0.875rem]`,children:e})]})}function S({entries:e,current:t,onPick:n}){return(0,f.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:e.map(e=>(0,f.jsx)(`li`,{children:(0,f.jsxs)(s,{to:e.to,onClick:r=>{e.id===t?.id&&(r.preventDefault(),n(e))},"aria-current":e.id===t?.id?`page`:void 0,className:c(`group flex items-center gap-2 rounded-lg px-2 py-1 text-[0.875rem] transition max-md:py-2`,e.id===t?.id?`bg-paper-2 font-medium text-ink`:`text-ink-2 hover:bg-accent hover:text-ink`),children:[(0,f.jsx)(`span`,{className:`grid size-7 shrink-0 place-items-center`,children:(0,f.jsx)(e.icon,{className:`size-4 transition-transform duration-200 ease-out group-hover:scale-110`})}),(0,f.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label}),(0,f.jsx)(i,{className:`size-4 text-ink-4 md:hidden`})]})},e.id))})}function C({label:e,onBack:t}){return(0,f.jsxs)(`button`,{type:`button`,onClick:t,className:`-ml-1 flex items-center gap-1 rounded-lg py-1.5 pr-3 pl-1 text-[0.8125rem] text-ink-3 transition hover:text-ink`,children:[(0,f.jsx)(a,{className:`size-4`}),e]})}function w(e){let t=(0,u.useRef)({level:e,direction:null});return e!==t.current.level&&(t.current={level:e,direction:e>t.current.level?`deeper`:`back`}),t.current.direction}function T({label:e,collapsible:t,open:n=!0,count:r,children:i}){let[a,s]=(0,u.useState)(n),l=`font-medium text-[0.6875rem] text-ink-4 uppercase tracking-[0.12em]`;return(0,f.jsxs)(`div`,{className:`mt-5 first:mt-0`,children:[t?(0,f.jsxs)(`button`,{type:`button`,onClick:()=>s(!a),"aria-expanded":a,className:c(`mb-1 flex w-full items-center gap-1 px-2 text-left hover:text-ink-2`,l),children:[(0,f.jsx)(`span`,{className:`flex-1`,children:e}),a?null:(0,f.jsx)(`span`,{className:`tabular-nums tracking-normal`,children:r}),(0,f.jsx)(o,{className:c(`size-3.5 transition-transform`,a?null:`-rotate-90`)})]}):(0,f.jsx)(`p`,{className:c(`mb-1 px-2`,l),children:e}),a?(0,f.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:i}):null]})}function E({icon:e,label:t,badge:n,tone:r,toneLabel:a,selected:o,disabled:s,onPick:l}){return(0,f.jsx)(`li`,{children:(0,f.jsxs)(`button`,{type:`button`,onClick:l,disabled:s,"aria-current":o?`page`:void 0,className:c(`group flex w-full items-center gap-2 rounded-lg px-2 py-1 text-left text-[0.875rem] transition max-md:py-2`,o?`bg-paper-2 font-medium text-ink`:`text-ink-2 hover:bg-accent hover:text-ink`,s&&`cursor-default opacity-50 hover:bg-transparent hover:text-ink-2`),children:[(0,f.jsx)(`span`,{className:`grid size-7 shrink-0 place-items-center`,children:(0,f.jsx)(e,{className:c(`size-4 transition-transform duration-200 ease-out`,!s&&`group-hover:scale-110`,o?`text-ember-strong`:`text-ink-3`)})}),(0,f.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:t}),n,r?(0,f.jsx)(`span`,{role:`img`,title:a,"aria-label":a,className:c(`size-2 shrink-0 rounded-full`,r===`done`&&`bg-moss`,r===`credits`&&`bg-amber`,r===`on`&&`bg-ember`,r===`off`&&`ring-1 ring-ink-4 ring-inset`)}):null,s?null:(0,f.jsx)(i,{className:`size-4 shrink-0 text-ink-4 md:hidden`})]})})}export{E as a,b as c,m as d,w as f,T as i,g as l,x as n,p as o,S as r,h as s,C as t,y as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{J as e}from"./ui-D92EkdEB.js";var t={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};t.node;var n=e(t),r={name:`pencil-line`,size:24,node:[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]};r.node;var i=e(r),a={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};a.node;var o=e(a);export{i as n,n as r,o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{J as e}from"./ui-D92EkdEB.js";var t={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};t.node;var n=e(t),r={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};r.node;var i=e(r);export{n,i as t};
|