wizards 0.3.8 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/README.md +28 -14
  2. package/apps/runtime/dist/agents/studio-assistant.js +67 -20
  3. package/apps/runtime/dist/auth/account.js +36 -4
  4. package/apps/runtime/dist/auth/device.js +101 -0
  5. package/apps/runtime/dist/auth/index.js +4 -4
  6. package/apps/runtime/dist/cli/account.js +289 -0
  7. package/apps/runtime/dist/cli/install-env.js +33 -0
  8. package/apps/runtime/dist/cli/main.js +17 -3
  9. package/apps/runtime/dist/cli/menu.js +19 -5
  10. package/apps/runtime/dist/cli/setup.js +9 -16
  11. package/apps/runtime/dist/cli/status.js +4 -1
  12. package/apps/runtime/dist/cli/ui.js +14 -0
  13. package/apps/runtime/dist/docs/dev/plugins/reference.md +7 -4
  14. package/apps/runtime/dist/docs/dev/plugins/server.md +3 -1
  15. package/apps/runtime/dist/docs/dev/plugins/space.md +19 -1
  16. package/apps/runtime/dist/docs/dev/plugins/studio.md +43 -6
  17. package/apps/runtime/dist/docs/dev/plugins/styling.md +8 -1
  18. package/apps/runtime/dist/docs/user/command-line.md +3 -2
  19. package/apps/runtime/dist/docs/user/create-account.md +47 -0
  20. package/apps/runtime/dist/docs/user/first-start.md +9 -1
  21. package/apps/runtime/dist/docs/user/index.md +16 -12
  22. package/apps/runtime/dist/docs/user/install.md +3 -1
  23. package/apps/runtime/dist/docs/user/local-only.md +38 -0
  24. package/apps/runtime/dist/docs/user/meta.json +3 -1
  25. package/apps/runtime/dist/docs/user/models.md +3 -2
  26. package/apps/runtime/dist/docs/user/space.md +4 -4
  27. package/apps/runtime/dist/engine/steps.js +3 -2
  28. package/apps/runtime/dist/engine/template.js +14 -10
  29. package/apps/runtime/dist/film/project.js +15 -3
  30. package/apps/runtime/dist/manage.js +12 -0
  31. package/apps/runtime/dist/plugins/loader.js +38 -2
  32. package/apps/runtime/dist/plugins/pro.js +16 -16
  33. package/apps/runtime/dist/routes/studio.js +69 -3
  34. package/apps/runtime/dist/services/brand.js +61 -1
  35. package/apps/runtime/dist/services/cloud.js +10 -10
  36. package/apps/runtime/dist/services/onboarding.js +152 -0
  37. package/apps/runtime/dist/services/projects.js +19 -10
  38. package/apps/runtime/dist/tools/plugin.js +11 -3
  39. package/apps/web/dist/assets/AboutDialog-CXEpsI6L.js +1 -0
  40. package/apps/web/dist/assets/{ChangelogDialog-DsSEkayM.js → ChangelogDialog-Cc2APUGI.js} +1 -1
  41. package/apps/web/dist/assets/ChatView-B2r4dW_m.js +10 -0
  42. package/apps/web/dist/assets/EditorPage-CNAYlSms.js +3 -0
  43. package/apps/web/dist/assets/{FlowPreview-C_x5Kc2j.js → FlowPreview-DzU1nGDb.js} +1 -1
  44. package/apps/web/dist/assets/{Harness-CvvtSTZC.js → Harness-ALQ9Csm6.js} +2 -2
  45. package/apps/web/dist/assets/NewWizardChannels-DMPqHkCF.js +1 -0
  46. package/apps/web/dist/assets/NewWizardPage-pi053e8N.js +7 -0
  47. package/apps/web/dist/assets/OnboardingPage-TYNX6Umd.js +1 -0
  48. package/apps/web/dist/assets/ProjectPage-CvEkx_Ux.js +1 -0
  49. package/apps/web/dist/assets/PublicRunner-BrivKNHo.js +1 -0
  50. package/apps/web/dist/assets/{ReadOnly-C1UcqOlS.js → ReadOnly-DQPHmvS0.js} +1 -1
  51. package/apps/web/dist/assets/RunDrawer-3osugizk.js +4 -0
  52. package/apps/web/dist/assets/{RunnerView-ii-PP5c-.js → RunnerView-Ci4_WzVv.js} +1 -1
  53. package/apps/web/dist/assets/SettingsPage-DKntf7-9.js +1 -0
  54. package/apps/web/dist/assets/SetupPage-DZQxEQyk.js +1 -0
  55. package/apps/web/dist/assets/SharePage-B9l4KthU.js +1 -0
  56. package/apps/web/dist/assets/changelog-CxdXZo3V.js +1 -0
  57. package/apps/web/dist/assets/{circle-alert-D-Q6DK7b.js → circle-alert-DCBV7n5k.js} +1 -1
  58. package/apps/web/dist/assets/{esm-CTna4iL0.js → esm-CuqXcPS3.js} +1 -1
  59. package/apps/web/dist/assets/index-CmxVazOf.css +1 -0
  60. package/apps/web/dist/assets/index-j09nLtEs.js +14 -0
  61. package/apps/web/dist/assets/{lock-DwGN_KOC.js → lock-DlzTfwxP.js} +1 -1
  62. package/apps/web/dist/assets/{phone-XIVIe17d.js → phone-BFD815nc.js} +1 -1
  63. package/apps/web/dist/assets/{settings-menu-JuSRq6NP.js → settings-menu-C7VsRpe9.js} +1 -1
  64. package/apps/web/dist/assets/ui-DTuixH4y.js +134 -0
  65. package/apps/web/dist/assets/{upload-CDxTpAqx.js → upload-BEf5-d6X.js} +1 -1
  66. package/apps/web/dist/index.html +4 -5
  67. package/apps/web/dist/install.sh +17 -7
  68. package/apps/web/dist/mcp/flow.html +2 -2
  69. package/node_modules/@engenty-wizards/plugin-sdk/dist/index.d.ts +36 -2
  70. package/node_modules/@engenty-wizards/plugin-sdk/dist/studio.d.ts +44 -1
  71. package/node_modules/@engenty-wizards/shared/dist/feature-flags.d.ts +18 -0
  72. package/node_modules/@engenty-wizards/shared/dist/feature-flags.js +18 -0
  73. package/node_modules/@engenty-wizards/shared/dist/projects.d.ts +22 -6
  74. package/node_modules/@engenty-wizards/shared/dist/projects.js +20 -0
  75. package/package.json +1 -1
  76. package/apps/web/dist/assets/AboutDialog-ClV4gNiW.js +0 -1
  77. package/apps/web/dist/assets/ChatView-BdYCnDLk.js +0 -10
  78. package/apps/web/dist/assets/EditorPage-7PZzkNBT.js +0 -3
  79. package/apps/web/dist/assets/NewWizardChannels-g1qCd_tQ.js +0 -1
  80. package/apps/web/dist/assets/NewWizardPage-B3hswj5r.js +0 -7
  81. package/apps/web/dist/assets/ProjectPage-CFDncRxT.js +0 -1
  82. package/apps/web/dist/assets/PublicRunner-C9N5r-sT.js +0 -1
  83. package/apps/web/dist/assets/RunDrawer-B8YzFvgz.js +0 -4
  84. package/apps/web/dist/assets/SettingsPage-ClEP5Q0t.js +0 -1
  85. package/apps/web/dist/assets/SetupPage-CDFzo6LT.js +0 -1
  86. package/apps/web/dist/assets/SharePage-BV2S0g84.js +0 -1
  87. package/apps/web/dist/assets/changelog-wZI-UaUi.js +0 -1
  88. package/apps/web/dist/assets/index-DUjJx-uk.css +0 -1
  89. package/apps/web/dist/assets/index-DnQgOKOQ.js +0 -15
  90. package/apps/web/dist/assets/logo-C4V2_3Ar.js +0 -1
  91. package/apps/web/dist/assets/ui-DrjXmHdO.js +0 -133
@@ -1 +1 @@
1
- import{pn as e}from"./ui-DrjXmHdO.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
+ import{Wn as e}from"./ui-DTuixH4y.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{pn as e}from"./ui-DrjXmHdO.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
+ import{Wn as e}from"./ui-DTuixH4y.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{Et as r,an as i,dn as a,hn as o,in as s,on as c}from"./ui-DrjXmHdO.js";import{_n as l}from"./index-DnQgOKOQ.js";var u=e(t(),1),d=l(),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:r(`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)(a,{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)(o,{to:e.to,onClick:r=>{e.id===t?.id&&(r.preventDefault(),n(e))},"aria-current":e.id===t?.id?`page`:void 0,className:r(`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)(s,{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)(i,{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:i,children:a}){let[o,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(!o),"aria-expanded":o,className:r(`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}),o?null:(0,f.jsx)(`span`,{className:`tabular-nums tracking-normal`,children:i}),(0,f.jsx)(c,{className:r(`size-3.5 transition-transform`,o?null:`-rotate-90`)})]}):(0,f.jsx)(`p`,{className:r(`mb-1 px-2`,l),children:e}),o?(0,f.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:a}):null]})}function E({icon:e,label:t,badge:n,tone:i,toneLabel:a,selected:o,disabled:c,onPick:l}){return(0,f.jsx)(`li`,{children:(0,f.jsxs)(`button`,{type:`button`,onClick:l,disabled:c,"aria-current":o?`page`:void 0,className:r(`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`,c&&`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:r(`size-4 transition-transform duration-200 ease-out`,!c&&`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,i?(0,f.jsx)(`span`,{role:`img`,title:a,"aria-label":a,className:r(`size-2 shrink-0 rounded-full`,i===`done`&&`bg-moss`,i===`credits`&&`bg-amber`,i===`on`&&`bg-ember`,i===`off`&&`ring-1 ring-ink-4 ring-inset`)}):null,c?null:(0,f.jsx)(s,{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
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{Fn as r,Hn as i,In as a,Kn as o,Ln as s,tn as c}from"./ui-DTuixH4y.js";import{qt as l}from"./index-j09nLtEs.js";var u=e(t(),1),d=l(),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)(i,{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)(o,{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)(r,{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,o]=(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:()=>o(!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)(s,{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:i,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,i?(0,f.jsx)(`span`,{role:`img`,title:a,"aria-label":a,className:c(`size-2 shrink-0 rounded-full`,i===`done`&&`bg-moss`,i===`credits`&&`bg-amber`,i===`on`&&`bg-ember`,i===`off`&&`ring-1 ring-ink-4 ring-inset`)}):null,s?null:(0,f.jsx)(r,{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};