@engenty/wizards-runtime 0.9.0 → 0.9.2

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 (493) hide show
  1. package/README.md +24 -13
  2. package/apps/runtime/dist/agents/architect.js +1 -1
  3. package/apps/runtime/dist/app.js +2 -0
  4. package/apps/runtime/dist/authoring/guide.js +22 -0
  5. package/apps/runtime/dist/authoring/ops.js +28 -2
  6. package/apps/runtime/dist/cli/autoupdate.js +13 -1
  7. package/apps/runtime/dist/cli/versions.js +69 -1
  8. package/apps/runtime/dist/db/client.js +20 -3
  9. package/apps/runtime/dist/db/control-schema.js +3 -2
  10. package/apps/runtime/dist/db/migrations/tenant/0019_space_themes.sql +1 -0
  11. package/apps/runtime/dist/db/migrations/tenant/meta/0019_snapshot.json +3468 -0
  12. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +7 -0
  13. package/apps/runtime/dist/db/schema.js +2 -0
  14. package/apps/runtime/dist/docs/dev/integration/embed.md +35 -5
  15. package/apps/runtime/dist/docs/dev/integration/index.md +1 -0
  16. package/apps/runtime/dist/docs/dev/integration/marketplaces.md +78 -0
  17. package/apps/runtime/dist/docs/dev/integration/mcp-apps.md +33 -5
  18. package/apps/runtime/dist/docs/dev/integration/meta.json +1 -0
  19. package/apps/runtime/dist/docs/dev/integration/openui.md +55 -3
  20. package/apps/runtime/dist/docs/dev/plugins/runners.md +1 -1
  21. package/apps/runtime/dist/docs/dev/wizard-format/index.md +12 -1
  22. package/apps/runtime/dist/docs/dev/wizard-format/meta.json +1 -0
  23. package/apps/runtime/dist/docs/dev/wizard-format/pages-and-fields.md +17 -0
  24. package/apps/runtime/dist/docs/dev/wizard-format/themes.md +220 -0
  25. package/apps/runtime/dist/docs/dev/wizard-format/wizard-file.md +2 -0
  26. package/apps/runtime/dist/docs/user/ai-apps.md +27 -7
  27. package/apps/runtime/dist/docs/user/build-a-wizard.md +22 -1
  28. package/apps/runtime/dist/docs/user/run.md +15 -1
  29. package/apps/runtime/dist/docs/user/space.md +6 -1
  30. package/apps/runtime/dist/docs/user/test-and-share.md +2 -1
  31. package/apps/runtime/dist/engine/runner.js +1 -0
  32. package/apps/runtime/dist/env.js +5 -0
  33. package/apps/runtime/dist/files/upload-check.js +622 -0
  34. package/apps/runtime/dist/harness/terminal.js +14 -7
  35. package/apps/runtime/dist/index.js +2 -0
  36. package/apps/runtime/dist/mcp/flow-app.js +20 -0
  37. package/apps/runtime/dist/mcp/tools.js +36 -6
  38. package/apps/runtime/dist/no-webstorage.js +6 -0
  39. package/apps/runtime/dist/plugins/runs.js +8 -5
  40. package/apps/runtime/dist/routes/runs.js +51 -8
  41. package/apps/runtime/dist/routes/studio.js +10 -2
  42. package/apps/runtime/dist/services/brand.js +12 -4
  43. package/apps/runtime/dist/services/cloud.js +2 -0
  44. package/apps/runtime/dist/services/marketplace.js +1 -0
  45. package/apps/runtime/dist/services/package-file.js +8 -1
  46. package/apps/runtime/dist/services/package.js +7 -0
  47. package/apps/runtime/dist/services/project-files.js +15 -7
  48. package/apps/runtime/dist/services/projects.js +34 -0
  49. package/apps/runtime/dist/services/shares.js +7 -2
  50. package/apps/runtime/dist/services/spaces.js +15 -0
  51. package/apps/runtime/dist/services/themes.js +110 -0
  52. package/apps/runtime/dist/services/wizards.js +8 -0
  53. package/apps/web/dist/assets/400-BpGVy8f9.css +1 -0
  54. package/apps/web/dist/assets/400-Bx8aXxdn.css +1 -0
  55. package/apps/web/dist/assets/400-C-EAXind.css +1 -0
  56. package/apps/web/dist/assets/400-C1aMvkWZ.css +1 -0
  57. package/apps/web/dist/assets/400-CWy8yahC.css +1 -0
  58. package/apps/web/dist/assets/400-CvPzio2w.css +1 -0
  59. package/apps/web/dist/assets/400-CyB00QFz.css +1 -0
  60. package/apps/web/dist/assets/400-DiVWFxeN.css +1 -0
  61. package/apps/web/dist/assets/400-NJi9pVr7.css +1 -0
  62. package/apps/web/dist/assets/400-W7eSYfM-.css +1 -0
  63. package/apps/web/dist/assets/400-an-Q8PSH.css +1 -0
  64. package/apps/web/dist/assets/400-fDO2E_2J.css +1 -0
  65. package/apps/web/dist/assets/400-n8m3eWIv.css +1 -0
  66. package/apps/web/dist/assets/500--5BQEKwF.css +1 -0
  67. package/apps/web/dist/assets/500-BacxruX7.css +1 -0
  68. package/apps/web/dist/assets/500-Bp7rE3sO.css +1 -0
  69. package/apps/web/dist/assets/500-BrSlhPjT.css +1 -0
  70. package/apps/web/dist/assets/500-DjLsfQf4.css +1 -0
  71. package/apps/web/dist/assets/500-Dk7ZdhaB.css +1 -0
  72. package/apps/web/dist/assets/500-DqciRChS.css +1 -0
  73. package/apps/web/dist/assets/500-XHIL5p_x.css +1 -0
  74. package/apps/web/dist/assets/500-ueODFTvD.css +1 -0
  75. package/apps/web/dist/assets/500-vjb4iIph.css +1 -0
  76. package/apps/web/dist/assets/600-B1b7x6MC.css +1 -0
  77. package/apps/web/dist/assets/600-B9Zp6bBy.css +1 -0
  78. package/apps/web/dist/assets/600-BMp88EpG.css +1 -0
  79. package/apps/web/dist/assets/600-BpnjcFCp.css +1 -0
  80. package/apps/web/dist/assets/600-Bu09rnu5.css +1 -0
  81. package/apps/web/dist/assets/600-Bv31zJWL.css +1 -0
  82. package/apps/web/dist/assets/600-BvFs-CRM.css +1 -0
  83. package/apps/web/dist/assets/600-CX1ZBIY5.css +1 -0
  84. package/apps/web/dist/assets/600-CfY_-NCo.css +1 -0
  85. package/apps/web/dist/assets/600-D7AGNg1U.css +1 -0
  86. package/apps/web/dist/assets/700-5l7ov3HZ.css +1 -0
  87. package/apps/web/dist/assets/700-B057BQ0n.css +1 -0
  88. package/apps/web/dist/assets/700-BXdZ1Wt4.css +1 -0
  89. package/apps/web/dist/assets/700-BwKwxaTT.css +1 -0
  90. package/apps/web/dist/assets/700-CBDkNWxO.css +1 -0
  91. package/apps/web/dist/assets/700-CEuaYRw2.css +1 -0
  92. package/apps/web/dist/assets/700-CGFQ5xCB.css +1 -0
  93. package/apps/web/dist/assets/700-CReDayoA.css +1 -0
  94. package/apps/web/dist/assets/700-D1QH7Wga.css +1 -0
  95. package/apps/web/dist/assets/700-pQg9ODXE.css +1 -0
  96. package/apps/web/dist/assets/{AboutDialog-CB0EwGxP.js → AboutDialog-BUdEn9X_.js} +1 -1
  97. package/apps/web/dist/assets/{ChangelogDialog-BQRBkiVD.js → ChangelogDialog-ClkjHGE_.js} +1 -1
  98. package/apps/web/dist/assets/EditorPage-j5HjqTMV.js +4 -0
  99. package/apps/web/dist/assets/{FlowPreview-B0xF8e3r.js → FlowPreview-DZRkWedM.js} +1 -1
  100. package/apps/web/dist/assets/{Harness-snRbALGd.js → Harness-FiDeF3LX.js} +2 -2
  101. package/apps/web/dist/assets/{NewWizardChannels-BGzp9z0m.js → NewWizardChannels-DeJP5h5I.js} +1 -1
  102. package/apps/web/dist/assets/NewWizardPage-CIS3qNUz.js +7 -0
  103. package/apps/web/dist/assets/OnboardingPage-CoTYSubc.js +1 -0
  104. package/apps/web/dist/assets/ProjectPage-XVhe87S4.js +1 -0
  105. package/apps/web/dist/assets/PublicRunner-Bc-3e7UU.js +1 -0
  106. package/apps/web/dist/assets/{ReadOnly-Db_odT6Y.js → ReadOnly-I-Lm7a8y.js} +1 -1
  107. package/apps/web/dist/assets/RunDrawer-DXqyxTsm.js +4 -0
  108. package/apps/web/dist/assets/RunnerView-DeDApA-9.js +1 -0
  109. package/apps/web/dist/assets/SettingsPage-ChpDzJVn.js +2 -0
  110. package/apps/web/dist/assets/SetupPage-E5JoQMBM.js +1 -0
  111. package/apps/web/dist/assets/SharePage-DW1b2g9t.js +1 -0
  112. package/apps/web/dist/assets/bricolage-grotesque-latin-400-normal-A6LyuA6R.woff2 +0 -0
  113. package/apps/web/dist/assets/bricolage-grotesque-latin-400-normal-D89K-qEP.woff +0 -0
  114. package/apps/web/dist/assets/bricolage-grotesque-latin-500-normal-CV-uA8Lw.woff +0 -0
  115. package/apps/web/dist/assets/bricolage-grotesque-latin-500-normal-DEDBoLFO.woff2 +0 -0
  116. package/apps/web/dist/assets/bricolage-grotesque-latin-600-normal-Bw0J83-2.woff +0 -0
  117. package/apps/web/dist/assets/bricolage-grotesque-latin-600-normal-nxTgbNFE.woff2 +0 -0
  118. package/apps/web/dist/assets/bricolage-grotesque-latin-700-normal-DvJDmrLu.woff +0 -0
  119. package/apps/web/dist/assets/bricolage-grotesque-latin-700-normal-gtcctNPv.woff2 +0 -0
  120. package/apps/web/dist/assets/bricolage-grotesque-latin-ext-400-normal-BH175q6o.woff +0 -0
  121. package/apps/web/dist/assets/bricolage-grotesque-latin-ext-400-normal-D42HmrHD.woff2 +0 -0
  122. package/apps/web/dist/assets/bricolage-grotesque-latin-ext-500-normal-B0ZDNVGf.woff +0 -0
  123. package/apps/web/dist/assets/bricolage-grotesque-latin-ext-500-normal-DIhLz7G7.woff2 +0 -0
  124. package/apps/web/dist/assets/bricolage-grotesque-latin-ext-600-normal-CN5JKkBm.woff2 +0 -0
  125. package/apps/web/dist/assets/bricolage-grotesque-latin-ext-600-normal-DF26P3Q7.woff +0 -0
  126. package/apps/web/dist/assets/bricolage-grotesque-latin-ext-700-normal-BXpPFNFj.woff +0 -0
  127. package/apps/web/dist/assets/bricolage-grotesque-latin-ext-700-normal-fBkt-7fi.woff2 +0 -0
  128. package/apps/web/dist/assets/bricolage-grotesque-vietnamese-400-normal-B7Iv8-Rg.woff2 +0 -0
  129. package/apps/web/dist/assets/bricolage-grotesque-vietnamese-400-normal-Sle7MYWg.woff +0 -0
  130. package/apps/web/dist/assets/bricolage-grotesque-vietnamese-500-normal-CAK5R6Iy.woff +0 -0
  131. package/apps/web/dist/assets/bricolage-grotesque-vietnamese-500-normal-FzY9NZwK.woff2 +0 -0
  132. package/apps/web/dist/assets/bricolage-grotesque-vietnamese-600-normal-BppAn7jL.woff +0 -0
  133. package/apps/web/dist/assets/bricolage-grotesque-vietnamese-600-normal-Ipewt4hn.woff2 +0 -0
  134. package/apps/web/dist/assets/bricolage-grotesque-vietnamese-700-normal-BLYPkJbo.woff2 +0 -0
  135. package/apps/web/dist/assets/bricolage-grotesque-vietnamese-700-normal-CHrFuVHU.woff +0 -0
  136. package/apps/web/dist/assets/caveat-cyrillic-400-normal-9cDH9rLW.woff2 +0 -0
  137. package/apps/web/dist/assets/caveat-cyrillic-400-normal-CebvvJET.woff +0 -0
  138. package/apps/web/dist/assets/caveat-cyrillic-500-normal-DLSfp5IU.woff +0 -0
  139. package/apps/web/dist/assets/caveat-cyrillic-500-normal-DpMZbbjM.woff2 +0 -0
  140. package/apps/web/dist/assets/caveat-cyrillic-600-normal-Ba_MyzgW.woff2 +0 -0
  141. package/apps/web/dist/assets/caveat-cyrillic-600-normal-CqH0c_uj.woff +0 -0
  142. package/apps/web/dist/assets/caveat-cyrillic-700-normal-BIyejhEL.woff2 +0 -0
  143. package/apps/web/dist/assets/caveat-cyrillic-700-normal-Bhcx9qBB.woff +0 -0
  144. package/apps/web/dist/assets/caveat-cyrillic-ext-400-normal-3iEGd-c5.woff2 +0 -0
  145. package/apps/web/dist/assets/caveat-cyrillic-ext-400-normal-Cg0RnRQ5.woff +0 -0
  146. package/apps/web/dist/assets/caveat-cyrillic-ext-500-normal-DcrB4vVx.woff2 +0 -0
  147. package/apps/web/dist/assets/caveat-cyrillic-ext-500-normal-DqTXtm5N.woff +0 -0
  148. package/apps/web/dist/assets/caveat-cyrillic-ext-600-normal-BLVNc-Ct.woff +0 -0
  149. package/apps/web/dist/assets/caveat-cyrillic-ext-600-normal-DDEJyoof.woff2 +0 -0
  150. package/apps/web/dist/assets/caveat-cyrillic-ext-700-normal-CrK2-ngJ.woff2 +0 -0
  151. package/apps/web/dist/assets/caveat-cyrillic-ext-700-normal-DjFGiEhD.woff +0 -0
  152. package/apps/web/dist/assets/caveat-latin-400-normal-BzhAQZkN.woff +0 -0
  153. package/apps/web/dist/assets/caveat-latin-400-normal-D6LQsQ_v.woff2 +0 -0
  154. package/apps/web/dist/assets/caveat-latin-500-normal-B9SDL8cy.woff2 +0 -0
  155. package/apps/web/dist/assets/caveat-latin-500-normal-Do9veZfZ.woff +0 -0
  156. package/apps/web/dist/assets/caveat-latin-600-normal-DUjB8dgm.woff +0 -0
  157. package/apps/web/dist/assets/caveat-latin-600-normal-zlTlWIYU.woff2 +0 -0
  158. package/apps/web/dist/assets/caveat-latin-700-normal-D8_1Nw6V.woff2 +0 -0
  159. package/apps/web/dist/assets/caveat-latin-700-normal-cPyBTTZN.woff +0 -0
  160. package/apps/web/dist/assets/caveat-latin-ext-400-normal-D7hBUiug.woff2 +0 -0
  161. package/apps/web/dist/assets/caveat-latin-ext-400-normal-DtiRFvw0.woff +0 -0
  162. package/apps/web/dist/assets/caveat-latin-ext-500-normal-jKqJW7bC.woff2 +0 -0
  163. package/apps/web/dist/assets/caveat-latin-ext-500-normal-wUUXxlbS.woff +0 -0
  164. package/apps/web/dist/assets/caveat-latin-ext-600-normal-DDJRD6ps.woff2 +0 -0
  165. package/apps/web/dist/assets/caveat-latin-ext-600-normal-shBvSnoU.woff +0 -0
  166. package/apps/web/dist/assets/caveat-latin-ext-700-normal-DFbRgDry.woff2 +0 -0
  167. package/apps/web/dist/assets/caveat-latin-ext-700-normal-DjJQd59I.woff +0 -0
  168. package/apps/web/dist/assets/changelog-DuSV2HiU.js +1 -0
  169. package/apps/web/dist/assets/creepster-latin-400-normal-DFidaany.woff +0 -0
  170. package/apps/web/dist/assets/creepster-latin-400-normal-DnKpM-ys.woff2 +0 -0
  171. package/apps/web/dist/assets/dm-sans-latin-400-normal-BwCSEQnW.woff +0 -0
  172. package/apps/web/dist/assets/dm-sans-latin-400-normal-CW0RaeGs.woff2 +0 -0
  173. package/apps/web/dist/assets/dm-sans-latin-500-normal-B9HHJjqV.woff2 +0 -0
  174. package/apps/web/dist/assets/dm-sans-latin-500-normal-Dr3UlScf.woff +0 -0
  175. package/apps/web/dist/assets/dm-sans-latin-600-normal-Aqo67rzb.woff2 +0 -0
  176. package/apps/web/dist/assets/dm-sans-latin-600-normal-BmdmIIQ2.woff +0 -0
  177. package/apps/web/dist/assets/dm-sans-latin-700-normal-CUSSCpQX.woff +0 -0
  178. package/apps/web/dist/assets/dm-sans-latin-700-normal-DvUfVpUG.woff2 +0 -0
  179. package/apps/web/dist/assets/dm-sans-latin-ext-400-normal-BjWJ59Pq.woff +0 -0
  180. package/apps/web/dist/assets/dm-sans-latin-ext-400-normal-BtiwyxMk.woff2 +0 -0
  181. package/apps/web/dist/assets/dm-sans-latin-ext-500-normal-BJfUCQsA.woff2 +0 -0
  182. package/apps/web/dist/assets/dm-sans-latin-ext-500-normal-DR84L5F-.woff +0 -0
  183. package/apps/web/dist/assets/dm-sans-latin-ext-600-normal-4vooXBpG.woff2 +0 -0
  184. package/apps/web/dist/assets/dm-sans-latin-ext-600-normal-DRtaDpgU.woff +0 -0
  185. package/apps/web/dist/assets/dm-sans-latin-ext-700-normal-BLI3TTWz.woff +0 -0
  186. package/apps/web/dist/assets/dm-sans-latin-ext-700-normal-CJIcxD6K.woff2 +0 -0
  187. package/apps/web/dist/assets/engenty-CNjaZCVM.js +1 -0
  188. package/apps/web/dist/assets/{esm-Bji0ThaK.js → esm-yMT-rSPa.js} +1 -1
  189. package/apps/web/dist/assets/figtree-latin-400-normal-BD4aNku5.woff +0 -0
  190. package/apps/web/dist/assets/figtree-latin-400-normal-g7Dtegnw.woff2 +0 -0
  191. package/apps/web/dist/assets/figtree-latin-500-normal-BWnGEVsr.woff2 +0 -0
  192. package/apps/web/dist/assets/figtree-latin-500-normal-B_yy1phn.woff +0 -0
  193. package/apps/web/dist/assets/figtree-latin-600-normal-BM_oTo4n.woff +0 -0
  194. package/apps/web/dist/assets/figtree-latin-600-normal-Cv_xCTDl.woff2 +0 -0
  195. package/apps/web/dist/assets/figtree-latin-700-normal-BCCt2T1q.woff +0 -0
  196. package/apps/web/dist/assets/figtree-latin-700-normal-th6qEP7c.woff2 +0 -0
  197. package/apps/web/dist/assets/figtree-latin-ext-400-normal-CXAzuTZb.woff2 +0 -0
  198. package/apps/web/dist/assets/figtree-latin-ext-400-normal-Gbh-3PTk.woff +0 -0
  199. package/apps/web/dist/assets/figtree-latin-ext-500-normal-BOEJvrb_.woff +0 -0
  200. package/apps/web/dist/assets/figtree-latin-ext-500-normal-Du0rIuHj.woff2 +0 -0
  201. package/apps/web/dist/assets/figtree-latin-ext-600-normal-CQqsimlV.woff +0 -0
  202. package/apps/web/dist/assets/figtree-latin-ext-600-normal-DJlfifZj.woff2 +0 -0
  203. package/apps/web/dist/assets/figtree-latin-ext-700-normal-BoDi4KL2.woff +0 -0
  204. package/apps/web/dist/assets/figtree-latin-ext-700-normal-CS4sQkGV.woff2 +0 -0
  205. package/apps/web/dist/assets/fluffy-engenty-o_lu9icd.js +678 -0
  206. package/apps/web/dist/assets/fraunces-latin-400-normal-6IfK1voy.woff2 +0 -0
  207. package/apps/web/dist/assets/fraunces-latin-400-normal-NUPT2cO8.woff +0 -0
  208. package/apps/web/dist/assets/fraunces-latin-500-normal-BTR4KCeb.woff +0 -0
  209. package/apps/web/dist/assets/fraunces-latin-500-normal-DnGCNyPD.woff2 +0 -0
  210. package/apps/web/dist/assets/fraunces-latin-600-normal-BFCDtZfi.woff2 +0 -0
  211. package/apps/web/dist/assets/fraunces-latin-600-normal-DL5QCzvS.woff +0 -0
  212. package/apps/web/dist/assets/fraunces-latin-700-normal-CEOla-zY.woff2 +0 -0
  213. package/apps/web/dist/assets/fraunces-latin-700-normal-DTjk5d1Q.woff +0 -0
  214. package/apps/web/dist/assets/fraunces-latin-ext-400-normal-D8gbi3Gu.woff2 +0 -0
  215. package/apps/web/dist/assets/fraunces-latin-ext-400-normal-UihxqfOe.woff +0 -0
  216. package/apps/web/dist/assets/fraunces-latin-ext-500-normal-BMcFk1Xs.woff +0 -0
  217. package/apps/web/dist/assets/fraunces-latin-ext-500-normal-Z5DV8IzT.woff2 +0 -0
  218. package/apps/web/dist/assets/fraunces-latin-ext-600-normal-B0Dy4lqi.woff +0 -0
  219. package/apps/web/dist/assets/fraunces-latin-ext-600-normal-BtzmzP0X.woff2 +0 -0
  220. package/apps/web/dist/assets/fraunces-latin-ext-700-normal-CanUGppC.woff2 +0 -0
  221. package/apps/web/dist/assets/fraunces-latin-ext-700-normal-DuBstVeD.woff +0 -0
  222. package/apps/web/dist/assets/fraunces-vietnamese-400-normal-B65MOf9T.woff +0 -0
  223. package/apps/web/dist/assets/fraunces-vietnamese-400-normal-CvGt0Ybw.woff2 +0 -0
  224. package/apps/web/dist/assets/fraunces-vietnamese-500-normal-B-KbxExq.woff +0 -0
  225. package/apps/web/dist/assets/fraunces-vietnamese-500-normal-GOH_-EGq.woff2 +0 -0
  226. package/apps/web/dist/assets/fraunces-vietnamese-600-normal-BjlAJixd.woff2 +0 -0
  227. package/apps/web/dist/assets/fraunces-vietnamese-600-normal-DlAl5EAR.woff +0 -0
  228. package/apps/web/dist/assets/fraunces-vietnamese-700-normal-DH94m5DZ.woff2 +0 -0
  229. package/apps/web/dist/assets/fraunces-vietnamese-700-normal-DxawQjq2.woff +0 -0
  230. package/apps/web/dist/assets/fredoka-hebrew-400-normal-CT3eDt6U.woff2 +0 -0
  231. package/apps/web/dist/assets/fredoka-hebrew-400-normal-S03uWvSu.woff +0 -0
  232. package/apps/web/dist/assets/fredoka-hebrew-500-normal-BtShCMVp.woff +0 -0
  233. package/apps/web/dist/assets/fredoka-hebrew-500-normal-DdMTjgiE.woff2 +0 -0
  234. package/apps/web/dist/assets/fredoka-hebrew-600-normal-BiVDObXj.woff +0 -0
  235. package/apps/web/dist/assets/fredoka-hebrew-600-normal-CTBxhdlE.woff2 +0 -0
  236. package/apps/web/dist/assets/fredoka-hebrew-700-normal-DBqnFHCe.woff2 +0 -0
  237. package/apps/web/dist/assets/fredoka-hebrew-700-normal-DiqR04Vd.woff +0 -0
  238. package/apps/web/dist/assets/fredoka-latin-400-normal-17JuUzdy.woff2 +0 -0
  239. package/apps/web/dist/assets/fredoka-latin-400-normal-DbXSrOeS.woff +0 -0
  240. package/apps/web/dist/assets/fredoka-latin-500-normal-B0JifZgm.woff2 +0 -0
  241. package/apps/web/dist/assets/fredoka-latin-500-normal-BL692wg7.woff +0 -0
  242. package/apps/web/dist/assets/fredoka-latin-600-normal-C4zohCW5.woff2 +0 -0
  243. package/apps/web/dist/assets/fredoka-latin-600-normal-CcrEjrB4.woff +0 -0
  244. package/apps/web/dist/assets/fredoka-latin-700-normal-BOIZVyIN.woff2 +0 -0
  245. package/apps/web/dist/assets/fredoka-latin-700-normal-C8FeHd3X.woff +0 -0
  246. package/apps/web/dist/assets/index-D9oqYYa8.css +1 -0
  247. package/apps/web/dist/assets/index-DfHH4icT.js +14 -0
  248. package/apps/web/dist/assets/inter-cyrillic-400-normal-HOLc17fK.woff +0 -0
  249. package/apps/web/dist/assets/inter-cyrillic-400-normal-obahsSVq.woff2 +0 -0
  250. package/apps/web/dist/assets/inter-cyrillic-500-normal-BasfLYem.woff2 +0 -0
  251. package/apps/web/dist/assets/inter-cyrillic-500-normal-CxZf_p3X.woff +0 -0
  252. package/apps/web/dist/assets/inter-cyrillic-600-normal-4D_pXhcN.woff +0 -0
  253. package/apps/web/dist/assets/inter-cyrillic-600-normal-CWCymEST.woff2 +0 -0
  254. package/apps/web/dist/assets/inter-cyrillic-700-normal-CjBOestx.woff2 +0 -0
  255. package/apps/web/dist/assets/inter-cyrillic-700-normal-DrXBdSj3.woff +0 -0
  256. package/apps/web/dist/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2 +0 -0
  257. package/apps/web/dist/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff +0 -0
  258. package/apps/web/dist/assets/inter-cyrillic-ext-500-normal-B0yAr1jD.woff2 +0 -0
  259. package/apps/web/dist/assets/inter-cyrillic-ext-500-normal-BmqWE9Dz.woff +0 -0
  260. package/apps/web/dist/assets/inter-cyrillic-ext-600-normal-Bcila6Z-.woff +0 -0
  261. package/apps/web/dist/assets/inter-cyrillic-ext-600-normal-Dfes3d0z.woff2 +0 -0
  262. package/apps/web/dist/assets/inter-cyrillic-ext-700-normal-BjwYoWNd.woff2 +0 -0
  263. package/apps/web/dist/assets/inter-cyrillic-ext-700-normal-LO58E6JB.woff +0 -0
  264. package/apps/web/dist/assets/inter-greek-400-normal-B4URO6DV.woff2 +0 -0
  265. package/apps/web/dist/assets/inter-greek-400-normal-q2sYcFCs.woff +0 -0
  266. package/apps/web/dist/assets/inter-greek-500-normal-BIZE56-Y.woff2 +0 -0
  267. package/apps/web/dist/assets/inter-greek-500-normal-Xzm54t5V.woff +0 -0
  268. package/apps/web/dist/assets/inter-greek-600-normal-BZpKdvQh.woff +0 -0
  269. package/apps/web/dist/assets/inter-greek-600-normal-plRanbMR.woff2 +0 -0
  270. package/apps/web/dist/assets/inter-greek-700-normal-BUv2fZ6O.woff +0 -0
  271. package/apps/web/dist/assets/inter-greek-700-normal-C3JjAnD8.woff2 +0 -0
  272. package/apps/web/dist/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2 +0 -0
  273. package/apps/web/dist/assets/inter-greek-ext-400-normal-KugGGMne.woff +0 -0
  274. package/apps/web/dist/assets/inter-greek-ext-500-normal-2j5mBUwD.woff +0 -0
  275. package/apps/web/dist/assets/inter-greek-ext-500-normal-C4iEst2y.woff2 +0 -0
  276. package/apps/web/dist/assets/inter-greek-ext-600-normal-B8X0CLgF.woff +0 -0
  277. package/apps/web/dist/assets/inter-greek-ext-600-normal-DRtmH8MT.woff2 +0 -0
  278. package/apps/web/dist/assets/inter-greek-ext-700-normal-BoQ6DsYi.woff +0 -0
  279. package/apps/web/dist/assets/inter-greek-ext-700-normal-qfdV9bQt.woff2 +0 -0
  280. package/apps/web/dist/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
  281. package/apps/web/dist/assets/inter-latin-400-normal-CyCys3Eg.woff +0 -0
  282. package/apps/web/dist/assets/inter-latin-500-normal-BL9OpVg8.woff +0 -0
  283. package/apps/web/dist/assets/inter-latin-500-normal-Cerq10X2.woff2 +0 -0
  284. package/apps/web/dist/assets/inter-latin-600-normal-CiBQ2DWP.woff +0 -0
  285. package/apps/web/dist/assets/inter-latin-600-normal-LgqL8muc.woff2 +0 -0
  286. package/apps/web/dist/assets/inter-latin-700-normal-BLAVimhd.woff +0 -0
  287. package/apps/web/dist/assets/inter-latin-700-normal-Yt3aPRUw.woff2 +0 -0
  288. package/apps/web/dist/assets/inter-latin-ext-400-normal-77YHD8bZ.woff +0 -0
  289. package/apps/web/dist/assets/inter-latin-ext-400-normal-C1nco2VV.woff2 +0 -0
  290. package/apps/web/dist/assets/inter-latin-ext-500-normal-BxGbmqWO.woff +0 -0
  291. package/apps/web/dist/assets/inter-latin-ext-500-normal-CV4jyFjo.woff2 +0 -0
  292. package/apps/web/dist/assets/inter-latin-ext-600-normal-CIVaiw4L.woff +0 -0
  293. package/apps/web/dist/assets/inter-latin-ext-600-normal-D2bJ5OIk.woff2 +0 -0
  294. package/apps/web/dist/assets/inter-latin-ext-700-normal-Ca8adRJv.woff2 +0 -0
  295. package/apps/web/dist/assets/inter-latin-ext-700-normal-TidjK2hL.woff +0 -0
  296. package/apps/web/dist/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff +0 -0
  297. package/apps/web/dist/assets/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
  298. package/apps/web/dist/assets/inter-vietnamese-500-normal-DOriooB6.woff2 +0 -0
  299. package/apps/web/dist/assets/inter-vietnamese-500-normal-mJboJaSs.woff +0 -0
  300. package/apps/web/dist/assets/inter-vietnamese-600-normal-BuLX-rYi.woff +0 -0
  301. package/apps/web/dist/assets/inter-vietnamese-600-normal-Cc8MFFhd.woff2 +0 -0
  302. package/apps/web/dist/assets/inter-vietnamese-700-normal-BZaoP0fm.woff +0 -0
  303. package/apps/web/dist/assets/inter-vietnamese-700-normal-DlLaEgI2.woff2 +0 -0
  304. package/apps/web/dist/assets/lora-cyrillic-400-normal-BedExNGj.woff +0 -0
  305. package/apps/web/dist/assets/lora-cyrillic-400-normal-CbVom6TB.woff2 +0 -0
  306. package/apps/web/dist/assets/lora-cyrillic-500-normal-B7VECUNf.woff +0 -0
  307. package/apps/web/dist/assets/lora-cyrillic-500-normal-CGcjVW1P.woff2 +0 -0
  308. package/apps/web/dist/assets/lora-cyrillic-600-normal-DuzuWObJ.woff2 +0 -0
  309. package/apps/web/dist/assets/lora-cyrillic-600-normal-j6UMqgXb.woff +0 -0
  310. package/apps/web/dist/assets/lora-cyrillic-700-normal-CicHrsUU.woff2 +0 -0
  311. package/apps/web/dist/assets/lora-cyrillic-700-normal-CoUvLzhc.woff +0 -0
  312. package/apps/web/dist/assets/lora-cyrillic-ext-400-normal-DwaaZvol.woff2 +0 -0
  313. package/apps/web/dist/assets/lora-cyrillic-ext-400-normal-PiPRSBNu.woff +0 -0
  314. package/apps/web/dist/assets/lora-cyrillic-ext-500-normal-4Ud55qIb.woff2 +0 -0
  315. package/apps/web/dist/assets/lora-cyrillic-ext-500-normal-BM33EBQZ.woff +0 -0
  316. package/apps/web/dist/assets/lora-cyrillic-ext-600-normal-BobJ8QCm.woff +0 -0
  317. package/apps/web/dist/assets/lora-cyrillic-ext-600-normal-CYLe3Bq4.woff2 +0 -0
  318. package/apps/web/dist/assets/lora-cyrillic-ext-700-normal-B20D6wuF.woff +0 -0
  319. package/apps/web/dist/assets/lora-cyrillic-ext-700-normal-CH2Ef3pd.woff2 +0 -0
  320. package/apps/web/dist/assets/lora-latin-400-normal-DBJS-Hc6.woff +0 -0
  321. package/apps/web/dist/assets/lora-latin-400-normal-DnxXpLNu.woff2 +0 -0
  322. package/apps/web/dist/assets/lora-latin-500-normal-Dbc_1yrl.woff +0 -0
  323. package/apps/web/dist/assets/lora-latin-500-normal-Dh16O2IA.woff2 +0 -0
  324. package/apps/web/dist/assets/lora-latin-600-normal-B-3RcLOQ.woff2 +0 -0
  325. package/apps/web/dist/assets/lora-latin-600-normal-Dc3EneHn.woff +0 -0
  326. package/apps/web/dist/assets/lora-latin-700-normal-BHK4Pzk4.woff2 +0 -0
  327. package/apps/web/dist/assets/lora-latin-700-normal-Yfa97ytg.woff +0 -0
  328. package/apps/web/dist/assets/lora-latin-ext-400-normal-B9GmMl5M.woff +0 -0
  329. package/apps/web/dist/assets/lora-latin-ext-400-normal-CyviI4c-.woff2 +0 -0
  330. package/apps/web/dist/assets/lora-latin-ext-500-normal-CVMwgWlS.woff2 +0 -0
  331. package/apps/web/dist/assets/lora-latin-ext-500-normal-CmiMDADN.woff +0 -0
  332. package/apps/web/dist/assets/lora-latin-ext-600-normal-BX8pxmH4.woff +0 -0
  333. package/apps/web/dist/assets/lora-latin-ext-600-normal-CURVZmIT.woff2 +0 -0
  334. package/apps/web/dist/assets/lora-latin-ext-700-normal-DbHby4fw.woff2 +0 -0
  335. package/apps/web/dist/assets/lora-latin-ext-700-normal-XBj10pPw.woff +0 -0
  336. package/apps/web/dist/assets/lora-math-400-normal-BToItYw_.woff +0 -0
  337. package/apps/web/dist/assets/lora-math-400-normal-D2gccGFf.woff2 +0 -0
  338. package/apps/web/dist/assets/lora-math-500-normal-CZVvtWMy.woff2 +0 -0
  339. package/apps/web/dist/assets/lora-math-500-normal-z1mtDCUR.woff +0 -0
  340. package/apps/web/dist/assets/lora-math-600-normal-B9Wi-uy2.woff2 +0 -0
  341. package/apps/web/dist/assets/lora-math-600-normal-soY6uGQW.woff +0 -0
  342. package/apps/web/dist/assets/lora-math-700-normal-BdgFUNlJ.woff2 +0 -0
  343. package/apps/web/dist/assets/lora-math-700-normal-JjB0YUk-.woff +0 -0
  344. package/apps/web/dist/assets/lora-symbols-400-normal-BK2bqsD8.woff +0 -0
  345. package/apps/web/dist/assets/lora-symbols-400-normal-DmcY0X7a.woff2 +0 -0
  346. package/apps/web/dist/assets/lora-symbols-500-normal-C70LsJbW.woff +0 -0
  347. package/apps/web/dist/assets/lora-symbols-500-normal-CJHTIF5f.woff2 +0 -0
  348. package/apps/web/dist/assets/lora-symbols-600-normal-CURAubwP.woff +0 -0
  349. package/apps/web/dist/assets/lora-symbols-600-normal-DaMEG5Dn.woff2 +0 -0
  350. package/apps/web/dist/assets/lora-symbols-700-normal-DaE8wqnc.woff +0 -0
  351. package/apps/web/dist/assets/lora-symbols-700-normal-zYsi5zvy.woff2 +0 -0
  352. package/apps/web/dist/assets/lora-vietnamese-400-normal-BxA6xcFr.woff2 +0 -0
  353. package/apps/web/dist/assets/lora-vietnamese-400-normal-DlgyXXxo.woff +0 -0
  354. package/apps/web/dist/assets/lora-vietnamese-500-normal-LA4e_tum.woff2 +0 -0
  355. package/apps/web/dist/assets/lora-vietnamese-500-normal-vya0n-2r.woff +0 -0
  356. package/apps/web/dist/assets/lora-vietnamese-600-normal-B_IFhWKN.woff2 +0 -0
  357. package/apps/web/dist/assets/lora-vietnamese-600-normal-BnEhOXH8.woff +0 -0
  358. package/apps/web/dist/assets/lora-vietnamese-700-normal-BHDzxyiD.woff2 +0 -0
  359. package/apps/web/dist/assets/lora-vietnamese-700-normal-DyKKCAD2.woff +0 -0
  360. package/apps/web/dist/assets/nosifer-latin-400-normal-DC0JbRme.woff2 +0 -0
  361. package/apps/web/dist/assets/nosifer-latin-400-normal-DIu8cmES.woff +0 -0
  362. package/apps/web/dist/assets/nosifer-latin-ext-400-normal-BIsQG7vn.woff +0 -0
  363. package/apps/web/dist/assets/nosifer-latin-ext-400-normal-BYxd_lOP.woff2 +0 -0
  364. package/apps/web/dist/assets/nunito-cyrillic-400-normal-D1j0u8EH.woff +0 -0
  365. package/apps/web/dist/assets/nunito-cyrillic-400-normal-xAOo5cBP.woff2 +0 -0
  366. package/apps/web/dist/assets/nunito-cyrillic-500-normal-C7KGZCzc.woff2 +0 -0
  367. package/apps/web/dist/assets/nunito-cyrillic-500-normal-CsSUaxYY.woff +0 -0
  368. package/apps/web/dist/assets/nunito-cyrillic-600-normal-BUjmtIuu.woff +0 -0
  369. package/apps/web/dist/assets/nunito-cyrillic-600-normal-DJGQ2h05.woff2 +0 -0
  370. package/apps/web/dist/assets/nunito-cyrillic-700-normal-DP36NgGt.woff2 +0 -0
  371. package/apps/web/dist/assets/nunito-cyrillic-700-normal-DfHRUDv-.woff +0 -0
  372. package/apps/web/dist/assets/nunito-cyrillic-ext-400-normal-CuPM9foi.woff2 +0 -0
  373. package/apps/web/dist/assets/nunito-cyrillic-ext-400-normal-xaE7D4Sw.woff +0 -0
  374. package/apps/web/dist/assets/nunito-cyrillic-ext-500-normal-BooqzoBf.woff2 +0 -0
  375. package/apps/web/dist/assets/nunito-cyrillic-ext-500-normal-ryWF3qTI.woff +0 -0
  376. package/apps/web/dist/assets/nunito-cyrillic-ext-600-normal-CWPPjBOD.woff2 +0 -0
  377. package/apps/web/dist/assets/nunito-cyrillic-ext-600-normal-vnfu4DTE.woff +0 -0
  378. package/apps/web/dist/assets/nunito-cyrillic-ext-700-normal-BuR0mlCG.woff2 +0 -0
  379. package/apps/web/dist/assets/nunito-cyrillic-ext-700-normal-DfoqN4Gs.woff +0 -0
  380. package/apps/web/dist/assets/nunito-latin-400-normal-DKg4f3fz.woff +0 -0
  381. package/apps/web/dist/assets/nunito-latin-400-normal-r8SDr6Up.woff2 +0 -0
  382. package/apps/web/dist/assets/nunito-latin-500-normal-B5klmw3Q.woff +0 -0
  383. package/apps/web/dist/assets/nunito-latin-500-normal-EugFkASW.woff2 +0 -0
  384. package/apps/web/dist/assets/nunito-latin-600-normal-Br8yIETf.woff2 +0 -0
  385. package/apps/web/dist/assets/nunito-latin-600-normal-Cd0eNu1l.woff +0 -0
  386. package/apps/web/dist/assets/nunito-latin-700-normal-Dort48En.woff2 +0 -0
  387. package/apps/web/dist/assets/nunito-latin-700-normal-OcDqTBcA.woff +0 -0
  388. package/apps/web/dist/assets/nunito-latin-ext-400-normal-CjMJVfGn.woff +0 -0
  389. package/apps/web/dist/assets/nunito-latin-ext-400-normal-i-8OOpdj.woff2 +0 -0
  390. package/apps/web/dist/assets/nunito-latin-ext-500-normal-CVNQN0KE.woff +0 -0
  391. package/apps/web/dist/assets/nunito-latin-ext-500-normal-DpF2BH_v.woff2 +0 -0
  392. package/apps/web/dist/assets/nunito-latin-ext-600-normal-BKUpuB78.woff +0 -0
  393. package/apps/web/dist/assets/nunito-latin-ext-600-normal-Dd9Zuxh1.woff2 +0 -0
  394. package/apps/web/dist/assets/nunito-latin-ext-700-normal-BWeMsAzO.woff2 +0 -0
  395. package/apps/web/dist/assets/nunito-latin-ext-700-normal-D4woHhbd.woff +0 -0
  396. package/apps/web/dist/assets/nunito-vietnamese-400-normal-BHkVbP3T.woff2 +0 -0
  397. package/apps/web/dist/assets/nunito-vietnamese-400-normal-DtOtW02z.woff +0 -0
  398. package/apps/web/dist/assets/nunito-vietnamese-500-normal-9ShSsgIA.woff +0 -0
  399. package/apps/web/dist/assets/nunito-vietnamese-500-normal-BpqpEYcO.woff2 +0 -0
  400. package/apps/web/dist/assets/nunito-vietnamese-600-normal-BY8O6Cug.woff2 +0 -0
  401. package/apps/web/dist/assets/nunito-vietnamese-600-normal-DO1RqFw5.woff +0 -0
  402. package/apps/web/dist/assets/nunito-vietnamese-700-normal-C9SQsXvj.woff +0 -0
  403. package/apps/web/dist/assets/nunito-vietnamese-700-normal-Ch8EUCfz.woff2 +0 -0
  404. package/apps/web/dist/assets/oss-credits-6A3pxilr.js +1 -0
  405. package/apps/web/dist/assets/{phone-DwAf8S3l.js → phone-BprN_SDS.js} +1 -1
  406. package/apps/web/dist/assets/playfair-display-cyrillic-400-normal-CjW2EstV.woff2 +0 -0
  407. package/apps/web/dist/assets/playfair-display-cyrillic-400-normal-ZiRag6zj.woff +0 -0
  408. package/apps/web/dist/assets/playfair-display-cyrillic-500-normal-DmDODJdV.woff +0 -0
  409. package/apps/web/dist/assets/playfair-display-cyrillic-500-normal-GO7-LTbC.woff2 +0 -0
  410. package/apps/web/dist/assets/playfair-display-cyrillic-600-normal-DbWAkkgN.woff +0 -0
  411. package/apps/web/dist/assets/playfair-display-cyrillic-600-normal-oLY6jnZ7.woff2 +0 -0
  412. package/apps/web/dist/assets/playfair-display-cyrillic-700-normal-Dk1mTcxf.woff +0 -0
  413. package/apps/web/dist/assets/playfair-display-cyrillic-700-normal-Dw3uKy19.woff2 +0 -0
  414. package/apps/web/dist/assets/playfair-display-latin-400-normal-CFtfchNt.woff2 +0 -0
  415. package/apps/web/dist/assets/playfair-display-latin-400-normal-DHYHbkg3.woff +0 -0
  416. package/apps/web/dist/assets/playfair-display-latin-500-normal-BScSeVwi.woff +0 -0
  417. package/apps/web/dist/assets/playfair-display-latin-500-normal-DIxvyhka.woff2 +0 -0
  418. package/apps/web/dist/assets/playfair-display-latin-600-normal-CZLGqjJe.woff2 +0 -0
  419. package/apps/web/dist/assets/playfair-display-latin-600-normal-CxxueQ0Z.woff +0 -0
  420. package/apps/web/dist/assets/playfair-display-latin-700-normal-Bc_1Q1cG.woff +0 -0
  421. package/apps/web/dist/assets/playfair-display-latin-700-normal-CuDiGg7c.woff2 +0 -0
  422. package/apps/web/dist/assets/playfair-display-latin-ext-400-normal-BxlSGspa.woff2 +0 -0
  423. package/apps/web/dist/assets/playfair-display-latin-ext-400-normal-qdZwdvNS.woff +0 -0
  424. package/apps/web/dist/assets/playfair-display-latin-ext-500-normal-CFxFMdkY.woff +0 -0
  425. package/apps/web/dist/assets/playfair-display-latin-ext-500-normal-DE-Iylxw.woff2 +0 -0
  426. package/apps/web/dist/assets/playfair-display-latin-ext-600-normal-BumBfC1v.woff +0 -0
  427. package/apps/web/dist/assets/playfair-display-latin-ext-600-normal-CEjQclLc.woff2 +0 -0
  428. package/apps/web/dist/assets/playfair-display-latin-ext-700-normal-C58ejOkc.woff2 +0 -0
  429. package/apps/web/dist/assets/playfair-display-latin-ext-700-normal-D5HUU8GT.woff +0 -0
  430. package/apps/web/dist/assets/playfair-display-vietnamese-400-normal-BV2APVTb.woff2 +0 -0
  431. package/apps/web/dist/assets/playfair-display-vietnamese-400-normal-BbvUAu4N.woff +0 -0
  432. package/apps/web/dist/assets/playfair-display-vietnamese-500-normal-Jyt54flB.woff2 +0 -0
  433. package/apps/web/dist/assets/playfair-display-vietnamese-500-normal-_Z41d-72.woff +0 -0
  434. package/apps/web/dist/assets/playfair-display-vietnamese-600-normal-BPJkAZPN.woff +0 -0
  435. package/apps/web/dist/assets/playfair-display-vietnamese-600-normal-ICsRR-qJ.woff2 +0 -0
  436. package/apps/web/dist/assets/playfair-display-vietnamese-700-normal-CaKJSIny.woff2 +0 -0
  437. package/apps/web/dist/assets/playfair-display-vietnamese-700-normal-Cr1rw0mr.woff +0 -0
  438. package/apps/web/dist/assets/{settings-menu-B1ND1GF3.js → settings-menu-CVl54phq.js} +1 -1
  439. package/apps/web/dist/assets/theme-CbR9-ayl.css +1 -0
  440. package/apps/web/dist/assets/theme-DZZXa238.js +11 -0
  441. package/apps/web/dist/assets/ui-kIzOrA_W.js +137 -0
  442. package/apps/web/dist/assets/{upload-DCMZI6pp.js → upload-Cvztyjuj.js} +1 -1
  443. package/apps/web/dist/assets/{wrench-BRYtnxti.js → wrench-CWT9IGKq.js} +1 -1
  444. package/apps/web/dist/assets/young-serif-latin-400-normal-D1tz0Z9s.woff +0 -0
  445. package/apps/web/dist/assets/young-serif-latin-400-normal-DIMmNPI9.woff2 +0 -0
  446. package/apps/web/dist/assets/young-serif-latin-ext-400-normal-4arC2Gh9.woff +0 -0
  447. package/apps/web/dist/assets/young-serif-latin-ext-400-normal-DzElnxZw.woff2 +0 -0
  448. package/apps/web/dist/embed.js +6 -1
  449. package/apps/web/dist/index.html +4 -4
  450. package/apps/web/dist/install.sh +144 -7
  451. package/apps/web/dist/mcp/flow.html +212 -54
  452. package/node_modules/@engenty/wizards-shared/dist/definition.d.ts +12 -0
  453. package/node_modules/@engenty/wizards-shared/dist/definition.js +16 -0
  454. package/node_modules/@engenty/wizards-shared/dist/json-schema.d.ts +2 -0
  455. package/node_modules/@engenty/wizards-shared/dist/json-schema.js +13 -1
  456. package/node_modules/@engenty/wizards-shared/dist/marketplace.d.ts +2 -1
  457. package/node_modules/@engenty/wizards-shared/dist/merge.js +10 -1
  458. package/node_modules/@engenty/wizards-shared/dist/projects.d.ts +17 -2
  459. package/node_modules/@engenty/wizards-shared/dist/projects.js +21 -1
  460. package/node_modules/@engenty/wizards-shared/dist/run.d.ts +35 -4
  461. package/node_modules/@engenty/wizards-shared/dist/run.js +10 -0
  462. package/node_modules/@engenty/wizards-shared/dist/theme.d.ts +169 -0
  463. package/node_modules/@engenty/wizards-shared/dist/theme.js +271 -0
  464. package/node_modules/@engenty/wizards-shared/dist/wizard-package.d.ts +45 -1
  465. package/node_modules/@engenty/wizards-shared/dist/wizard-package.js +6 -1
  466. package/package.json +2 -4
  467. package/plugin/.claude-plugin/plugin.json +4 -3
  468. package/plugin/LICENSE +21 -0
  469. package/plugin/README.md +61 -39
  470. package/plugin/{hooks → claude-code}/register.tsx +1 -2
  471. package/plugin/plugin.json +47 -0
  472. package/apps/web/dist/assets/ChatView-BLZkLlHi.js +0 -10
  473. package/apps/web/dist/assets/EditorPage-YawfYRAL.js +0 -4
  474. package/apps/web/dist/assets/NewWizardPage-cOHfwcnA.js +0 -7
  475. package/apps/web/dist/assets/OnboardingPage-jB3ChKi3.js +0 -1
  476. package/apps/web/dist/assets/ProjectPage-hRCBquNb.js +0 -1
  477. package/apps/web/dist/assets/PublicRunner-D_ZkOyRV.js +0 -1
  478. package/apps/web/dist/assets/RunDrawer-B6AQw90D.js +0 -4
  479. package/apps/web/dist/assets/RunnerView-DHUkvi_G.js +0 -1
  480. package/apps/web/dist/assets/SettingsPage-DleMaLz8.js +0 -2
  481. package/apps/web/dist/assets/SetupPage-DTvVJR1U.js +0 -1
  482. package/apps/web/dist/assets/SharePage-Bl-rfCji.js +0 -1
  483. package/apps/web/dist/assets/changelog-BcW79fHm.js +0 -1
  484. package/apps/web/dist/assets/engenty-Cko4qGFV.js +0 -1
  485. package/apps/web/dist/assets/fluffy-engenty-Db7agOjV.js +0 -520
  486. package/apps/web/dist/assets/index-CQKA-z2z.js +0 -14
  487. package/apps/web/dist/assets/index-Cnziz-H-.css +0 -1
  488. package/apps/web/dist/assets/oss-credits-BjwxLtU4.js +0 -1
  489. package/apps/web/dist/assets/ui-Cdv3QUOd.js +0 -137
  490. /package/plugin/{hooks → claude-code}/engenty.ts +0 -0
  491. /package/plugin/{hooks → claude-code}/hooks.json +0 -0
  492. /package/plugin/{hooks → claude-code}/pane.test.tsx +0 -0
  493. /package/plugin/{types → claude-code/types}/index.d.ts +0 -0
package/README.md CHANGED
@@ -20,21 +20,22 @@
20
20
  or a browser. Anything that changes an account asks first.
21
21
  - **Share it with a link.** Anyone can run a wizard in the browser, on a phone too: camera,
22
22
  code scan, voice notes, location and a drawn signature included. Results download as PDF,
23
- Word, HTML, Markdown, PNG, MP4, MP3, CSV, Excel or JSON, or go out as a link.
23
+ Word, HTML, Markdown, PNG, MP4, MP3, CSV, Excel or JSON, or go out as a link. Each wizard
24
+ wears a theme of your space: its colours, fonts and effects.
24
25
  - **Send the result on.** From the result, by email, into Google Drive, OneDrive or S3, to a
25
26
  Slack channel, through any connected service, or onto a website the wizard opens in its
26
27
  browser – you sign in yourself and confirm before anything goes public.
27
28
  - **Runs on your machine, on your subscription.** It uses Codex, Claude Code, Antigravity
28
29
  or Cursor Agent when one is installed and signed in, so no API key is needed. Or bring a key
29
- (Vercel AI Gateway, OpenAI, Anthropic), or a local model through Ollama. Your wizards and
30
+ (Vercel AI Gateway, OpenAI, Anthropic, Google), or a local model through Ollama. Your wizards and
30
31
  results stay in a folder on your machine.
31
32
 
32
33
  ## How it looks
33
34
 
34
- The studio: a wizard’s steps as a flow with its branches, next to the conversation that changes them.
35
+ The studio: the conversation that changes a wizard, next to its steps as a flow with its branches.
35
36
 
36
37
  <p align="center">
37
- <img src="docs/assets/studio.png" alt="The studio of engenty wizards: the flow of a wizard that collects a month's receipts for bookkeeping – two pages of questions, AI steps that branch to the inbox and to customer portals, a review and the result – with the conversation beside it">
38
+ <img src="docs/assets/studio.png" alt="The studio of engenty wizards: the assistant explains where a wizard that collects a month's receipts for bookkeeping looks for them; beside it the wizard's flow – two pages of questions, AI steps that branch to the mailbox and to customer portals, a review and the result">
38
39
  </p>
39
40
 
40
41
  A wizard in use: it asks on one page, then on the next, and ends with the result to download or share.
@@ -74,14 +75,14 @@ then walks you through the rest:
74
75
  `--local` leaves the account out: nothing leaves the computer, links answer on it only
75
76
  ([local only](https://engenty.ai/docs/user/local-only)).
76
77
  - **An AI client.** It looks for Codex, Claude Code, Antigravity and Cursor Agent and
77
- offers to install the missing ones – first the one whose app (Claude, ChatGPT, Cursor) is
78
- on your Mac, as its subscription is most likely yours already. The first page of the studio
78
+ offers to install the missing ones – first the one whose app (Claude, ChatGPT, Antigravity,
79
+ Cursor) is on your Mac, as its subscription is most likely yours already. The first page of the studio
79
80
  installs them too. Or use your account’s credits, an API key, [Ollama](https://ollama.com) or,
80
81
  on a Mac with Apple silicon and macOS 26, Apple Intelligence.
81
82
  - **A browser and ffmpeg** (optional): Chrome, Edge or Chromium (on a Mac also Brave) for PDF
82
83
  and PNG exports and for steps that use a browser, ffmpeg for MP4 videos of animated widgets.
83
84
  - **Start at login** (optional): engenty wizards starts in the background when you log in (a
84
- LaunchAgent on a Mac, a systemd user service on Linux). Links and AI clients then always
85
+ LaunchAgent on a Mac, a systemd user service on Linux, a scheduled task on Windows). Links and AI clients then always
85
86
  reach it. `wizards autostart on` or `off` switches it later.
86
87
  - **Your AI apps** (optional): adds your wizards to the AI apps it finds, such as Claude
87
88
  Desktop, Cursor or Codex. `wizards connect` and `wizards disconnect` do it later.
@@ -103,7 +104,8 @@ icon at the right of the address bar.
103
104
 
104
105
  ### From source
105
106
 
106
- You need Node.js 24.11 or newer and pnpm 10 (`corepack enable`).
107
+ You need Node.js 24.11 or newer and pnpm 10 (`corepack enable`; Node 25 and later ship without
108
+ corepack, so install it first with `npm install -g corepack`).
107
109
 
108
110
  ```bash
109
111
  git clone https://github.com/engenty/wizards.git
@@ -115,8 +117,8 @@ pnpm wizards
115
117
 
116
118
  pnpm may list “Ignored build scripts” – that’s expected, nothing to do.
117
119
 
118
- Code steps (shell, Node, Python) run in a sandbox when Docker and the sandbox image are on the
119
- machine; a checkout brings its own sandbox, the installed version has none yet.
120
+ Code steps (shell, Node, Python) run in a sandbox. `wizards sandbox add` installs one (about
121
+ 340 MB, no Docker needed); a checkout also uses Docker when the sandbox image is on the machine.
120
122
 
121
123
  ## First start
122
124
 
@@ -133,17 +135,22 @@ Change it later under Settings → Models.
133
135
  - **Make a wizard:** describe it in the studio’s chat, or start from one of the templates.
134
136
  You see the steps as a diagram and can change any of them.
135
137
  - **Run and share:** try it yourself, then share the link. Shared results are kept for 7 days
136
- for people without an account. “Teilen” on a result also sends it by email, saves it to a
138
+ for people without an account. “Share” on a result also sends it by email, saves it to a
137
139
  cloud folder or posts it: [Sharing a result](docs/development.md#sharing-a-result).
138
140
  - **Connect services:** Gmail, Google Drive, Calendar, Contacts, Outlook, OneDrive, Slack,
139
141
  GitHub, HubSpot and S3 are built in; any other service can be added from its API description
140
142
  or MCP server through the [integrations.sh](https://integrations.sh) registry. Services that
141
143
  sign in with OAuth need a few settings first: [Connectors](docs/development.md#connectors).
144
+ - **Give it a look:** under “Look” a wizard wears a theme of your space – colours, fonts and
145
+ effects – or ask the assistant, for example “Make it dark and spooky for Halloween.”
142
146
  - **Build from Claude Code or Codex:** Settings → Integrate adds engenty wizards to your AI
143
147
  apps (Claude Desktop, Claude Code, Codex, Cursor and others), or `wizards connect` from a
144
- terminal.
148
+ terminal. In Claude Code, the plugin also lists your wizards beside the chat:
149
+ `claude plugin marketplace add engenty/wizards`, then `claude plugin install wizards@engenty`.
145
150
 
146
- Your machine only answers on `localhost`. To let others open shared wizards, run it on a server.
151
+ Your machine only answers on `localhost`. To let others open shared wizards, sign in with your
152
+ account: every version that goes live also runs on engenty.ai, even while your computer is off.
153
+ Or run it on a server.
147
154
 
148
155
  ## Your data
149
156
 
@@ -156,6 +163,10 @@ Back up the folder; delete it to start over. Settings go into `~/.engenty/wizard
156
163
 
157
164
  ## Update
158
165
 
166
+ engenty wizards updates itself: it looks for a new version at start and once a day, downloads
167
+ it in the background and switches to it at the next start, never during a run.
168
+ `wizards autoupdate off` turns that off. To update now:
169
+
159
170
  ```bash
160
171
  wizards update
161
172
  ```
@@ -144,7 +144,7 @@ function buildTools(input, resolved, wrote) {
144
144
  }),
145
145
  edit_wizard: createTool({
146
146
  id: "edit_wizard",
147
- description: "Change the wizard with ops, applied in order: set_meta, set_lists {lists} and set_connections {connections} (each replaces the whole array), upsert_step (the complete step; replaces the step with that id or inserts it before/after another), remove_step, move_step. Returns the validator's issues.",
147
+ description: "Change the wizard with ops, applied in order: set_meta (title, description, avatar, intro, themes), set_theme {theme} (a theme of the space, worn first), set_lists {lists} and set_connections {connections} (each replaces the whole array), upsert_step (the complete step; replaces the step with that id or inserts it before/after another), remove_step, move_step. Returns the validator's issues.",
148
148
  inputSchema: z.object({ ops: z.array(wizardOpSchema).min(1) }),
149
149
  execute: async ({ ops }) => attempt(async () => {
150
150
  const w = await ownedWizard(userId, wizardId);
@@ -161,6 +161,8 @@ if (serves.studio) {
161
161
  bearer_methods_supported: ["header"],
162
162
  });
163
163
  });
164
+ // OpenAI's plugin portal checks that the submitter controls the MCP server's host.
165
+ app.get("/.well-known/openai-apps-challenge", (c) => env.openaiAppsChallenge ? c.text(env.openaiAppsChallenge) : c.notFound());
164
166
  }
165
167
  if (serves.doors) {
166
168
  // The mobile app opens this runtime's wizard and result links (Universal Links, App Links).
@@ -12,10 +12,12 @@ type Wizard = {
12
12
  title: string // short, what the end user gets ("Rechnung erstellen")
13
13
  description: string // one sentence
14
14
  avatar: "round"|"drop"|"dome"|"flame"|"oval"|"bean"|"pebble"|"sprout"|"tower"|"wedge" // the engenty mascot shown to end users
15
+ costume?: "witch"|"devil"|"bat"|"pumpkin" // a Halloween costume the mascot wears; leave it out for none
15
16
  intro?: string // one friendly sentence above the first page
16
17
  lang?: string // two-letter code of the language the wizard's texts are in ("en", "de", "it", "fr") — ALWAYS set it to the language you write them in
17
18
  lists?: List[] // tabular data the wizard KEEPS between runs — separately for each person who runs it, or for all with "shared"
18
19
  connections?: Connection[] // accounts the PERSON connects during a run (their mailbox); kept for their next run
20
+ themes?: string[] // ids of the space's themes the wizard offers, in order (see Theme) — leave it out to look like the space's brand
19
21
  steps: Step[] // run top to bottom; the LAST step is always a "result"
20
22
  }
21
23
 
@@ -52,6 +54,23 @@ type Connection =
52
54
  // Default: read → allow, write → ask. Deleting always asks. Set "allow" for an action marked
53
55
  // "write" that in truth only looks something up (MCP servers often leave the mark out).
54
56
 
57
+ type Theme = { // a look of the SPACE, values only: no CSS, no files. Make one with the op set_theme
58
+ id: string // lowercase-dashes, unique in the space ("halloween"); not brand/host/default
59
+ name: string // shown in the studio ("Halloween")
60
+ base?: "brand"|"host"|"default" // what it builds on; what it leaves out comes from there (default "brand")
61
+ colors?: { scheme: "light"|"dark", accent?, background?, text? }[]
62
+ // colours "#rrggbb" for light and for dark pages, in order: the first shows until the
63
+ // person picks. One entry: the pages are always that scheme. Each scheme once
64
+ fonts?: { heading?: Font|"brand", text?: Font|"brand" }
65
+ shape?: { radius?: "sharp"|"soft"|"round", cards?: "solid"|"outline"|"glass", headings?: "normal"|"uppercase" }
66
+ effects?: Effect[] // from the runner's library; an unknown one is left out
67
+ }
68
+ // Effect: { id: "glow" } · { id: "corners", kind: "webs"|"frost" } · { id: "particles", kind: "embers"|"snow"|"confetti"|"stars" }
69
+ // · { id: "figures", costume: "witch"|"devil"|"bat"|"pumpkin", motion: "fly"|"peek" } · { id: "fog" } · { id: "pattern", kind: "dots"|"grid" }
70
+ // Font: "Inter"|"Figtree"|"DM Sans"|"Nunito"|"Fredoka"|"Bricolage Grotesque"|"Fraunces"|"Playfair Display"|"Lora"|
71
+ // "Young Serif"|"Caveat"|"Creepster"|"Nosifer" — shipped with the runner. Creepster and Nosifer are spooky display fonts:
72
+ // headings only, never text. "brand" takes the space's brand font.
73
+
55
74
  // Every step: { id (camelCase, unique), title, description?, next?: Branch[] }
56
75
  // Branch = { when: Condition | Condition[], goto: stepId | "end", max? }
57
76
  // | { ask: "a statement about the run", goto: stepId | "end", max? }
@@ -312,6 +331,9 @@ Templates (in instructions/prompt): {{fieldId}} · {{steps.stepId}} (whole outpu
312
331
  A template may only use fields asked and steps run EARLIER.`;
313
332
  export const PRINCIPLES = `
314
333
  How good wizards look:
334
+ - Most wizards name no themes and wear their space's brand. Give one a theme (op set_theme) when it has a look of its own
335
+ (a Halloween wizard: dark only, a glowing orange accent, a spooky display font, spider webs, bats flying, embers) or when
336
+ the person asks for one. A theme is the space's: other wizards can wear it too.
315
337
  - For non-technical end users. Plain words, friendly titles phrased as questions ("What is the post for?").
316
338
  - The wizard speaks for itself: the first page invites in its own voice ("Show me your fridge."), every field's help says in
317
339
  one line why it is asked ("For the amounts in the recipes"), every step that takes a while has a "working" line that
@@ -1,4 +1,4 @@
1
- import { ENGENTY_KINDS } from "@engenty/wizards-shared/definition";
1
+ import { ENGENTY_COSTUMES, ENGENTY_KINDS, } from "@engenty/wizards-shared/definition";
2
2
  import { z } from "zod";
3
3
  const position = {
4
4
  /** Place the step directly before this step id. */
@@ -12,8 +12,12 @@ export const wizardOpSchema = z.discriminatedUnion("op", [
12
12
  title: z.string().min(1).optional(),
13
13
  description: z.string().optional(),
14
14
  avatar: z.enum(ENGENTY_KINDS).optional(),
15
+ /** null takes the costume off. */
16
+ costume: z.enum(ENGENTY_COSTUMES).nullable().optional(),
15
17
  /** null removes the intro. */
16
18
  intro: z.string().nullable().optional(),
19
+ /** The themes the wizard offers, in its order (ids of the space's themes); null removes them. */
20
+ themes: z.array(z.string()).max(8).nullable().optional(),
17
21
  }),
18
22
  z.object({
19
23
  op: z.literal("upsert_step"),
@@ -28,6 +32,11 @@ export const wizardOpSchema = z.discriminatedUnion("op", [
28
32
  op: z.literal("set_connections"),
29
33
  connections: z.array(z.looseObject({ id: z.string() })),
30
34
  }),
35
+ /**
36
+ * A theme of the space, made or replaced, worn first by this wizard: values only (colours for
37
+ * light and dark, fonts, shape, effects). Its id names it in `themes`.
38
+ */
39
+ z.object({ op: z.literal("set_theme"), theme: z.looseObject({ id: z.string() }) }),
31
40
  z.object({ op: z.literal("remove_step"), stepId: z.string() }),
32
41
  z.object({ op: z.literal("move_step"), stepId: z.string(), ...position }),
33
42
  ]);
@@ -58,7 +67,7 @@ export function applyOps(def, ops) {
58
67
  const steps = next.steps;
59
68
  switch (op.op) {
60
69
  case "set_meta": {
61
- const { op: _, intro, ...meta } = op;
70
+ const { op: _, intro, costume, themes, ...meta } = op;
62
71
  Object.assign(next, Object.fromEntries(Object.entries(meta).filter(([, v]) => v !== undefined)));
63
72
  if (intro === null) {
64
73
  delete next.intro;
@@ -66,6 +75,23 @@ export function applyOps(def, ops) {
66
75
  else if (intro !== undefined) {
67
76
  next.intro = intro;
68
77
  }
78
+ if (costume === null) {
79
+ delete next.costume;
80
+ }
81
+ else if (costume !== undefined) {
82
+ next.costume = costume;
83
+ }
84
+ if (themes === null) {
85
+ delete next.themes;
86
+ }
87
+ else if (themes !== undefined) {
88
+ next.themes = themes;
89
+ }
90
+ return;
91
+ }
92
+ case "set_theme": {
93
+ const id = op.theme.id;
94
+ next.themes = [id, ...(next.themes ?? []).filter((x) => x !== id)];
69
95
  return;
70
96
  }
71
97
  case "set_lists":
@@ -3,7 +3,7 @@ import { mkdirSync, mkdtempSync, openSync, readFileSync, renameSync, rmSync, wri
3
3
  import { delimiter, join } from "node:path";
4
4
  import { withPath } from "./environment.js";
5
5
  import { readEnvFile, readInstallNote } from "./home.js";
6
- import { currentVersion, promote, prune, RUNTIME_PACKAGE, runtimeDir, switchTo, versionIn, } from "./versions.js";
6
+ import { currentVersion, promote, prune, RUNTIME_PACKAGE, runtimeDir, switchTo, tryInstallLock, versionIn, } from "./versions.js";
7
7
  /**
8
8
  * Updates that come by themselves, for an install made by install.sh (never `npx wizards` or a
9
9
  * checkout). The runtime asks the npm registry for the newest runtime when it starts and once
@@ -139,6 +139,11 @@ export async function checkForUpdate(paths, options, deps = systemDeps) {
139
139
  if (!options.force && now.getTime() - Date.parse(state.checkedAt ?? "0") < HOUR) {
140
140
  return { kind: "skipped", reason: "asked within the hour" };
141
141
  }
142
+ // An install or another update is at work in runtime/: the next check comes after it.
143
+ const unlock = tryInstallLock(paths);
144
+ if (!unlock) {
145
+ return { kind: "skipped", reason: "another install is running" };
146
+ }
142
147
  state.checkedAt = now.toISOString();
143
148
  delete state.error;
144
149
  const tmp = mkdtempSync(join(paths.home, "update-"));
@@ -162,6 +167,7 @@ export async function checkForUpdate(paths, options, deps = systemDeps) {
162
167
  finally {
163
168
  writeUpdateState(paths, state);
164
169
  rmSync(tmp, { recursive: true, force: true });
170
+ unlock();
165
171
  }
166
172
  }
167
173
  /** The versions kept besides the current one: the one waiting and the one before. */
@@ -178,6 +184,11 @@ export function applyPendingUpdate(paths, now = new Date()) {
178
184
  if (!pending || !from) {
179
185
  return null;
180
186
  }
187
+ // Waits for the next start while an install is at work in runtime/.
188
+ const unlock = tryInstallLock(paths);
189
+ if (!unlock) {
190
+ return null;
191
+ }
181
192
  delete state.pending;
182
193
  try {
183
194
  if (!isNewer(pending.version, from)) {
@@ -194,6 +205,7 @@ export function applyPendingUpdate(paths, now = new Date()) {
194
205
  }
195
206
  finally {
196
207
  writeUpdateState(paths, state);
208
+ unlock();
197
209
  }
198
210
  }
199
211
  /** Notes a switch somebody made by hand (`wizards update`), so the notice says it too. */
@@ -1,4 +1,4 @@
1
- import { existsSync, lstatSync, mkdirSync, readdirSync, readFileSync, readlinkSync, renameSync, rmSync, symlinkSync, } from "node:fs";
1
+ import { existsSync, lstatSync, mkdirSync, readdirSync, readFileSync, readlinkSync, renameSync, rmSync, symlinkSync, writeFileSync, } from "node:fs";
2
2
  import { dirname, join, resolve } from "node:path";
3
3
  /**
4
4
  * The runtimes of an install made by install.sh, one folder per version, side by side:
@@ -115,11 +115,33 @@ export function prune(paths, keep) {
115
115
  }
116
116
  return stale;
117
117
  }
118
+ /**
119
+ * The packages the package-lock.json of an npm prefix names that are not there (the ones for
120
+ * other machines aside). An npm stopped halfway, or two installs at once, leave some out without
121
+ * saying so; install.sh checks the same.
122
+ */
123
+ export function missingPackages(prefix) {
124
+ let packages;
125
+ try {
126
+ packages = JSON.parse(readFileSync(join(prefix, "package-lock.json"), "utf8")).packages ?? {};
127
+ }
128
+ catch {
129
+ return ["package-lock.json"];
130
+ }
131
+ return Object.entries(packages)
132
+ .filter(([where, p]) => where && !p.optional && !p.devOptional && !p.dev && !p.peer)
133
+ .filter(([where]) => !existsSync(join(prefix, where, "package.json")))
134
+ .map(([where]) => where);
135
+ }
118
136
  /** Puts an npm prefix installed elsewhere into its version folder (never the current one). */
119
137
  export function promote(paths, staged, version) {
120
138
  if (versionIn(staged) !== version) {
121
139
  throw new Error(`The download holds version ${versionIn(staged) ?? "none"}, not ${version}.`);
122
140
  }
141
+ const missing = missingPackages(staged);
142
+ if (missing.length) {
143
+ throw new Error(`The download of ${version} misses ${missing.length} packages (${missing.slice(0, 3).join(", ")}).`);
144
+ }
123
145
  if (currentVersion(paths) === version) {
124
146
  rmSync(staged, { recursive: true, force: true });
125
147
  return;
@@ -133,3 +155,49 @@ export function promote(paths, staged, version) {
133
155
  rmSync(runtimeDir(paths, version), { recursive: true, force: true });
134
156
  renameSync(staged, runtimeDir(paths, version));
135
157
  }
158
+ // --- one install at a time -------------------------------------------------------------------
159
+ const lockDir = (paths) => join(paths.home, "install.lock");
160
+ const alive = (pid) => {
161
+ try {
162
+ process.kill(pid, 0);
163
+ return true;
164
+ }
165
+ catch (error) {
166
+ return error.code === "EPERM";
167
+ }
168
+ };
169
+ /**
170
+ * Takes the lock install.sh takes (a folder with its owner's pid in it), so that an update in
171
+ * the background never writes runtime/ while an install does. Returns how to give it back, or
172
+ * null while somebody else holds it; a lock whose owner is gone is taken over.
173
+ */
174
+ export function tryInstallLock(paths) {
175
+ const dir = lockDir(paths);
176
+ for (let attempt = 0; attempt < 2; attempt++) {
177
+ try {
178
+ mkdirSync(paths.home, { recursive: true });
179
+ mkdirSync(dir);
180
+ }
181
+ catch (error) {
182
+ // A home folder it cannot write to: no update either way.
183
+ if (error.code !== "EEXIST") {
184
+ return null;
185
+ }
186
+ let owner = Number.NaN;
187
+ try {
188
+ owner = Number(readFileSync(join(dir, "pid"), "utf8").trim());
189
+ }
190
+ catch {
191
+ // Made a moment ago, its pid not written yet: held.
192
+ }
193
+ if (Number.isInteger(owner) && owner > 0 && !alive(owner)) {
194
+ rmSync(dir, { recursive: true, force: true });
195
+ continue;
196
+ }
197
+ return null;
198
+ }
199
+ writeFileSync(join(dir, "pid"), `${process.pid}\n`);
200
+ return () => rmSync(dir, { recursive: true, force: true });
201
+ }
202
+ return null;
203
+ }
@@ -181,16 +181,33 @@ export const db = new Proxy({}, {
181
181
  },
182
182
  });
183
183
  export { schema };
184
+ /**
185
+ * Runs `fn` again after each wait in `waits` (milliseconds) while it fails: a remote database
186
+ * drops a connection now and then. The last failure is thrown.
187
+ */
188
+ export async function retried(label, fn, waits = [1_000, 3_000, 10_000]) {
189
+ for (const wait of waits) {
190
+ try {
191
+ return await fn();
192
+ }
193
+ catch (err) {
194
+ console.warn(`[${label}] failed, trying again in ${wait / 1000}s:`, err.message);
195
+ await new Promise((resolve) => setTimeout(resolve, wait));
196
+ }
197
+ }
198
+ return fn();
199
+ }
184
200
  /** Brings every known tenant database to the current schema (after a release). */
185
- export async function migrateAllTenants() {
186
- const tenants = await controlDb.select({ id: control.tenant.id }).from(control.tenant);
201
+ export async function migrateAllTenants(waits) {
202
+ const tenants = await retried("migrate", () => controlDb.select({ id: control.tenant.id }).from(control.tenant), waits);
187
203
  const failed = [];
188
204
  let migrated = 0;
189
205
  const queue = [...tenants];
190
206
  await Promise.all(Array.from({ length: 4 }, async () => {
191
207
  for (let t = queue.shift(); t; t = queue.shift()) {
192
208
  try {
193
- await openTenantDb(t.id);
209
+ const id = t.id;
210
+ await retried(`migrate ${id}`, () => openTenantDb(id), waits);
194
211
  migrated++;
195
212
  }
196
213
  catch (err) {
@@ -19,9 +19,10 @@ export const link = sqliteTable("link", {
19
19
  tenantId: text("tenant_id").notNull(),
20
20
  /**
21
21
  * `wizard` = a share link `/w/<token>`, `result` = a shared result `/s/<token>`, `logo` = a
22
- * brand logo, `code` = a wizard's ID to type in (its `ref` is the wizard's share token).
22
+ * brand logo, `font` = a brand font's file, `code` = a wizard's ID to type in (its `ref` is
23
+ * the wizard's share token).
23
24
  */
24
- kind: text("kind", { enum: ["wizard", "result", "logo", "code"] }).notNull(),
25
+ kind: text("kind", { enum: ["wizard", "result", "logo", "font", "code"] }).notNull(),
25
26
  ref: text("ref").notNull(),
26
27
  createdAt: createdAt(),
27
28
  }, (t) => [index("link_tenant").on(t.tenantId), index("link_ref").on(t.kind, t.ref)]);
@@ -0,0 +1 @@
1
+ ALTER TABLE `project` ADD `themes` text DEFAULT '[]' NOT NULL;