@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
@@ -2,9 +2,11 @@ import { createHash } from "node:crypto";
2
2
  import { readFileSync } from "node:fs";
3
3
  import { dirname, resolve } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
+ import { themeOffered } from "@engenty/wizards-shared/theme";
5
6
  import { RESOURCE_MIME_TYPE, registerAppResource } from "@modelcontextprotocol/ext-apps/server";
6
7
  import { env } from "../env.js";
7
8
  import { runTicket } from "../secrets/signing.js";
9
+ import { brandView } from "../services/brand.js";
8
10
  import { draftIssues, ownedWizard, publishedVersion } from "../services/wizards.js";
9
11
  /**
10
12
  * The flow widget (MCP Apps): a wizard as its diagram, and a run on it — where it stands, what
@@ -54,6 +56,18 @@ export function registerFlowApp(server) {
54
56
  },
55
57
  prefersBorder: true,
56
58
  },
59
+ // ChatGPT gives each listed app's widget an origin of its own, named by this key,
60
+ // and opens links from the widget (the run page) only to the redirect domains.
61
+ "openai/widgetDomain": origin,
62
+ "openai/widgetCSP": {
63
+ connect_domains: [origin],
64
+ resource_domains: [
65
+ origin,
66
+ "https://fonts.googleapis.com",
67
+ "https://fonts.gstatic.com",
68
+ ],
69
+ redirect_domains: [origin],
70
+ },
57
71
  },
58
72
  },
59
73
  ],
@@ -68,12 +82,16 @@ export async function flowView(userId, wizardId, options = {}) {
68
82
  const published = options.shows === "draft" ? null : await publishedVersion(w);
69
83
  const shows = published ? "published" : "draft";
70
84
  const definition = options.definition ?? published?.definition ?? w.draft;
85
+ // The app's own look unless it asks for one the wizard offers.
86
+ const theme = options.theme && themeOffered(options.theme, definition.themes) ? options.theme : "host";
87
+ const { theme: look } = await brandView(w.projectId, definition.themes, theme);
71
88
  return {
72
89
  wizard: {
73
90
  id: w.id,
74
91
  title: definition.title,
75
92
  description: definition.description,
76
93
  avatar: definition.avatar,
94
+ costume: definition.costume,
77
95
  shows,
78
96
  published: w.publishedVersion !== null,
79
97
  issues: shows === "draft" ? (await draftIssues(w)).length : undefined,
@@ -83,6 +101,8 @@ export async function flowView(userId, wizardId, options = {}) {
83
101
  runtime: options.run
84
102
  ? { base: env.publicUrl, ticket: runTicket(options.run.runId) }
85
103
  : undefined,
104
+ theme,
105
+ look,
86
106
  };
87
107
  }
88
108
  /** A tool's `_meta` that opens the widget with the tool's result. */
@@ -52,6 +52,14 @@ function failure(err) {
52
52
  function spaceFrom(p) {
53
53
  return p.origin === "local" ? "your computer" : "here";
54
54
  }
55
+ function annotationsOf(config) {
56
+ const readOnly = config.readOnly ?? false;
57
+ return {
58
+ readOnlyHint: readOnly,
59
+ destructiveHint: !readOnly && (config.destructive ?? false),
60
+ openWorldHint: config.openWorld ?? false,
61
+ };
62
+ }
55
63
  export function registerTools(server, who) {
56
64
  const writer = { source: "mcp", client: who.client };
57
65
  const tool = (name, scope, config, run) => {
@@ -62,7 +70,7 @@ export function registerTools(server, who) {
62
70
  title: config.title,
63
71
  description: config.description,
64
72
  inputSchema: config.input,
65
- annotations: { readOnlyHint: config.readOnly ?? false, openWorldHint: false },
73
+ annotations: annotationsOf(config),
66
74
  },
67
75
  // The SDK has parsed `args` with `input` before this runs.
68
76
  (async (args) => {
@@ -83,7 +91,7 @@ export function registerTools(server, who) {
83
91
  title: config.title,
84
92
  description: config.description,
85
93
  inputSchema: config.input,
86
- annotations: { readOnlyHint: config.readOnly ?? false, openWorldHint: false },
94
+ annotations: annotationsOf(config),
87
95
  _meta: flowAppMeta,
88
96
  }, (async (args) => {
89
97
  try {
@@ -268,7 +276,8 @@ export function registerTools(server, who) {
268
276
  tool("edit_wizard", "wizards:write", {
269
277
  title: "Edit wizard",
270
278
  description: `Apply ops to the draft atomically, in order:
271
- - set_meta {title?, description?, avatar?, intro? (null removes)}
279
+ - set_meta {title?, description?, avatar?, costume? (null takes it off), intro? (null removes), themes? (theme ids in order; null removes)}
280
+ - set_theme {theme}: a theme of the space (see "type Theme"), made or replaced, worn first by this wizard
272
281
  - set_lists {lists} / set_connections {connections}: replace the wizard's lists or connections as a whole
273
282
  - upsert_step {step (complete), before?|after?}: replaces the step with that id, else inserts it (default: before the final result step)
274
283
  - remove_step {stepId}
@@ -280,6 +289,7 @@ Returns the new revision and the issues.`,
280
289
  ops: z.array(wizardOpSchema).min(1).max(50),
281
290
  note,
282
291
  }),
292
+ destructive: true,
283
293
  }, async ({ wizardId, ...input }) => {
284
294
  const { revision, issues } = await editWizard(who.userId, wizardId, input, writer);
285
295
  return { revision, issues };
@@ -288,6 +298,7 @@ Returns the new revision and the issues.`,
288
298
  title: "Replace wizard",
289
299
  description: "Replace the whole draft. Use edit_wizard for smaller changes.",
290
300
  input: z.object({ wizardId: z.string(), baseRevision, definition, note }),
301
+ destructive: true,
291
302
  }, async ({ wizardId, ...input }) => {
292
303
  const { revision, issues } = await writeDraft(who.userId, wizardId, input, writer);
293
304
  return { revision, issues };
@@ -297,6 +308,8 @@ Returns the new revision and the issues.`,
297
308
  title: "Publish wizard",
298
309
  description: "Publish the draft as a new version behind the share link. Refused while the draft has issues. Only when the person asked for it.",
299
310
  input: z.object({ wizardId: z.string() }),
311
+ destructive: true,
312
+ openWorld: true,
300
313
  }, async ({ wizardId }) => publishAndSync(who.userId, wizardId));
301
314
  tool("set_sharing", "wizards:publish", {
302
315
  title: "Set sharing",
@@ -306,6 +319,8 @@ Returns the new revision and the issues.`,
306
319
  enabled: z.boolean().optional(),
307
320
  dailyRunLimit: z.number().int().min(1).max(10_000).optional(),
308
321
  }),
322
+ destructive: true,
323
+ openWorld: true,
309
324
  }, async ({ wizardId, enabled, dailyRunLimit }) => {
310
325
  const w = await updateWizardSettings(who.userId, wizardId, {
311
326
  shareEnabled: enabled,
@@ -330,6 +345,7 @@ Returns the new revision and the issues.`,
330
345
  .describe("Field id → value, for every page (field ids are unique in a wizard). Items fields take an array of row objects."),
331
346
  acceptReviews: z.boolean().default(true),
332
347
  }),
348
+ openWorld: true,
333
349
  }, async ({ wizardId, answers, acceptReviews }) => {
334
350
  const { runId } = await startTestRun(who.userId, wizardId, { answers, acceptReviews });
335
351
  const report = await runReport(who.userId, runId, 2, "test");
@@ -393,13 +409,19 @@ While status is running, get_run with waitSeconds. Hosts with MCP Apps also show
393
409
  input: z.object({
394
410
  wizardId: z.string(),
395
411
  answers: z.record(z.string(), z.unknown()).default({}),
412
+ theme: z
413
+ .string()
414
+ .max(80)
415
+ .optional()
416
+ .describe("The widget's look: the id of a theme the wizard names (its definition's themes), brand or default. Left out: host, this app's own look. Only when the person asks for the wizard's look."),
396
417
  }),
397
- }, async ({ wizardId, answers }) => {
418
+ openWorld: true,
419
+ }, async ({ wizardId, answers, theme }) => {
398
420
  const { runId, refused } = await startRun(who.userId, wizardId, answers);
399
421
  const report = await runReport(who.userId, runId, 2);
400
422
  return {
401
423
  result: { ...report, ...(refused ? { refusedAnswers: refused } : {}) },
402
- view: await flowView(who.userId, wizardId, { run: report }),
424
+ view: await flowView(who.userId, wizardId, { run: report, theme }),
403
425
  };
404
426
  });
405
427
  const waitSeconds = z
@@ -424,6 +446,7 @@ While status is running, get_run with waitSeconds. Hosts with MCP Apps also show
424
446
  values: z.record(z.string(), z.unknown()),
425
447
  waitSeconds,
426
448
  }),
449
+ openWorld: true,
427
450
  }, async ({ runId, stepId, values, waitSeconds }) => {
428
451
  await answerRunPage(who.userId, runId, stepId, values);
429
452
  return runReport(who.userId, runId, waitSeconds);
@@ -447,6 +470,7 @@ While status is running, get_run with waitSeconds. Hosts with MCP Apps also show
447
470
  ]),
448
471
  waitSeconds,
449
472
  }),
473
+ openWorld: true,
450
474
  }, async ({ runId, stepId, action, waitSeconds }) => {
451
475
  await reviewRun(who.userId, runId, stepId, action);
452
476
  return runReport(who.userId, runId, waitSeconds);
@@ -460,6 +484,8 @@ While status is running, get_run with waitSeconds. Hosts with MCP Apps also show
460
484
  answer: z.enum(["allow", "skip"]),
461
485
  waitSeconds,
462
486
  }),
487
+ destructive: true,
488
+ openWorld: true,
463
489
  }, async ({ runId, askId, answer, waitSeconds }) => {
464
490
  await answerRunAsk(who.userId, runId, askId, answer);
465
491
  return runReport(who.userId, runId, waitSeconds);
@@ -468,6 +494,8 @@ While status is running, get_run with waitSeconds. Hosts with MCP Apps also show
468
494
  title: "Control run",
469
495
  description: "back: return to the previous page or review. retry: run the failed step again. cancel: stop the run.",
470
496
  input: z.object({ runId: z.string(), action: z.enum(["back", "retry", "cancel"]) }),
497
+ destructive: true,
498
+ openWorld: true,
471
499
  }, async ({ runId, action }) => {
472
500
  await controlRun(who.userId, runId, action);
473
501
  return runReport(who.userId, runId);
@@ -495,6 +523,7 @@ While status is running, get_run with waitSeconds. Hosts with MCP Apps also show
495
523
  base64: z.string().optional(),
496
524
  mime: z.string().optional(),
497
525
  }),
526
+ destructive: true,
498
527
  }, async ({ wizardId, path, content, base64, mime }) => {
499
528
  if ((content === undefined) === (base64 === undefined)) {
500
529
  throw new ServiceError("invalid", "Pass either content or base64.");
@@ -505,6 +534,7 @@ While status is running, get_run with waitSeconds. Hosts with MCP Apps also show
505
534
  title: "Delete workspace file",
506
535
  description: "Remove a file from the workspace.",
507
536
  input: z.object({ wizardId: z.string(), path: z.string() }),
537
+ destructive: true,
508
538
  }, async ({ wizardId, path }) => {
509
539
  await deleteFile(who.userId, wizardId, path);
510
540
  return { ok: true };
@@ -522,7 +552,7 @@ While status is running, get_run with waitSeconds. Hosts with MCP Apps also show
522
552
  title: "Check widget",
523
553
  description: "Load a widget step of the draft in a real browser with its sample data: script errors, the timeline it registered (seconds, for the MP4 export) and a screenshot.",
524
554
  inputSchema: input,
525
- annotations: { readOnlyHint: true, openWorldHint: false },
555
+ annotations: annotationsOf({ readOnly: true }),
526
556
  }, (async ({ wizardId, stepId, data }) => {
527
557
  try {
528
558
  const r = await checkDraftWidget(who.userId, wizardId, stepId, data);
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // Node 25 and later define `localStorage` and warn once when code reads it without
3
+ // `--localstorage-file`. A module bundled in @turbodocx/html-to-docx reads it when it loads, so
4
+ // every start printed that warning. The runtime keeps nothing in browser storage: the global goes,
5
+ // as it is on Node 24. Imported first by index.ts, before anything that could read it.
6
+ delete globalThis.localStorage;
@@ -8,6 +8,7 @@ import { watchRun } from "../engine/events.js";
8
8
  import { fieldErrorsIn } from "../engine/input.js";
9
9
  import { cancel, createRun, goBack, NoCreditsError, RunInputError, retry, reviewStep, submitPage, } from "../engine/runner.js";
10
10
  import { saveAsset } from "../files/storage.js";
11
+ import { checkUpload } from "../files/upload-check.js";
11
12
  import { wizardUnavailable } from "../limits.js";
12
13
  import { transcribeAudio } from "../media/transcribe.js";
13
14
  import { errorText, ModelUnavailableError } from "../model-errors.js";
@@ -175,14 +176,16 @@ export function runsApiFor(pluginId) {
175
176
  async upload(runId, file) {
176
177
  await pluginRun(runId);
177
178
  // The type comes from the channel's sender: kept only when it is one a wizard takes.
178
- const mime = uploadMime(file.mime);
179
- const asset = await saveAsset({
180
- runId,
181
- kind: mime.startsWith("image/") ? "image" : "file",
182
- mime,
179
+ const checked = await checkUpload({
183
180
  name: file.name,
181
+ mime: uploadMime(file.mime),
184
182
  data: file.data instanceof Uint8Array ? file.data : new Uint8Array(file.data),
185
183
  });
184
+ const asset = await saveAsset({
185
+ runId,
186
+ kind: checked.mime.startsWith("image/") ? "image" : "file",
187
+ ...checked,
188
+ });
186
189
  return { assetId: asset.id };
187
190
  },
188
191
  async transcribe(runId, file) {
@@ -25,6 +25,7 @@ import { liveResources } from "../engine/resources.js";
25
25
  import { cancel, createRun, editOutput, goBack, NoCreditsError, projectIdOf, RunConflict, RunInputError, retry, reviewStep, runView, submitPage, talkAllowed, } from "../engine/runner.js";
26
26
  import { basePath, env } from "../env.js";
27
27
  import { loadAsset, saveAsset } from "../files/storage.js";
28
+ import { checkUpload } from "../files/upload-check.js";
28
29
  import { reverseGeocode } from "../geocode.js";
29
30
  import { allowed, hashIp, verifyTurnstile, wizardUnavailable } from "../limits.js";
30
31
  import { mintConversation } from "../media/conversation.js";
@@ -138,7 +139,7 @@ async function accessibleRun(c, runId, opts = {}) {
138
139
  }
139
140
  async function viewOf(run) {
140
141
  const w = await db.query.wizard.findFirst({ where: eq(schema.wizard.id, run.wizardId) });
141
- return runView(run, await brandView(w?.projectId ?? ""));
142
+ return runView(run, await brandView(w?.projectId ?? "", run.definition.themes));
142
143
  }
143
144
  function commandError(c, err) {
144
145
  if (err instanceof RunInputError) {
@@ -168,6 +169,7 @@ function tenantFrom(find) {
168
169
  const wizardLink = tenantFrom((c) => tenantOfLink(c.req.param("token") ?? "", "wizard"));
169
170
  const resultLink = tenantFrom((c) => tenantOfLink(c.req.param("token") ?? "", "result"));
170
171
  const logoLink = tenantFrom((c) => tenantOfLink(c.req.param("id") ?? "", "logo"));
172
+ const fontLink = tenantFrom((c) => tenantOfLink(c.req.param("id") ?? "", "font"));
171
173
  const runTenant = tenantFrom((c) => tenantOfRun(c.req.param("id") ?? ""));
172
174
  /** Wrong guesses at a wizard's ID, per address and hour: 32^8 IDs stay out of reach. */
173
175
  const codeMisses = new Map();
@@ -235,7 +237,10 @@ export function pageFields(def) {
235
237
  }))
236
238
  : []);
237
239
  }
238
- /** What a wizard's page shows before a run: in the viewer's language where `as` is given. */
240
+ /**
241
+ * What a wizard's page shows before a run: in the viewer's language where `as` is given, in the
242
+ * theme the request asks for where the wizard offers it.
243
+ */
239
244
  async function publicBody(c, w, original, as) {
240
245
  const translated = as ? translateDefinition(original, as.memory) : null;
241
246
  const def = translated?.def ?? original;
@@ -245,8 +250,10 @@ async function publicBody(c, w, original, as) {
245
250
  title: def.title,
246
251
  description: def.description,
247
252
  avatar: def.avatar,
253
+ costume: def.costume,
248
254
  intro: def.intro ?? null,
249
- brand: await brandView(w.projectId),
255
+ // `?theme=`: the theme the page showing the wizard asks for (an embed's `data-theme`).
256
+ brand: await brandView(w.projectId, def.themes, c.req.query("theme")?.slice(0, 80)),
250
257
  turnstileSiteKey: env.turnstile.siteKey || null,
251
258
  available: !reason,
252
259
  unavailableReason: reason && noteText(reason, requestLang(c)),
@@ -283,6 +290,7 @@ export const publicRoutes = new Hono()
283
290
  .use("/wizards/:token", wizardLink)
284
291
  .use("/wizards/:token/*", wizardLink)
285
292
  .use("/logos/:id", logoLink)
293
+ .use("/fonts/:id", fontLink)
286
294
  .get("/wizards/:token", async (c) => {
287
295
  const found = await publishedWizard(c.req.param("token"));
288
296
  if (!found) {
@@ -475,11 +483,33 @@ export const publicRoutes = new Hono()
475
483
  return c.notFound();
476
484
  }
477
485
  return c.body(new Uint8Array(found.data), 200, {
478
- "content-type": found.row.mime,
486
+ "content-type": bareMime(found.row.mime) ?? "application/octet-stream",
479
487
  "cache-control": "public, max-age=86400",
488
+ "x-content-type-options": "nosniff",
480
489
  // An SVG logo is shown, never run.
481
490
  "content-security-policy": "sandbox",
482
491
  });
492
+ })
493
+ // A brand font's own file, while its space's brand names it: run pages, embeds and hosts'
494
+ // frames load it from here, so any origin may.
495
+ .get("/fonts/:id", async (c) => {
496
+ const id = c.req.param("id");
497
+ const row = await db.query.projectFile.findFirst({ where: eq(schema.projectFile.id, id) });
498
+ const p = row
499
+ ? await db.query.project.findFirst({ where: eq(schema.project.id, row.projectId) })
500
+ : null;
501
+ const named = p?.brand.fonts?.some((f) => f.source && "file" in f.source && f.source.file === id);
502
+ const found = named && row?.mime.startsWith("font/") ? await loadAsset(id) : null;
503
+ if (!found) {
504
+ return c.notFound();
505
+ }
506
+ return c.body(new Uint8Array(found.data), 200, {
507
+ "content-type": bareMime(found.row.mime) ?? "application/octet-stream",
508
+ "cache-control": "public, max-age=86400",
509
+ "x-content-type-options": "nosniff",
510
+ "access-control-allow-origin": "*",
511
+ "cross-origin-resource-policy": "cross-origin",
512
+ });
483
513
  });
484
514
  export const runRoutes = new Hono()
485
515
  .use("/:id", runTenant)
@@ -845,12 +875,25 @@ export const runRoutes = new Hono()
845
875
  if (!(file instanceof File) || file.size > limit) {
846
876
  return refuse(c, { code: "fileTooLarge", params: { mb: Math.round(limit / 1_000_000) } }, 400);
847
877
  }
878
+ let checked;
879
+ try {
880
+ checked = await checkUpload({
881
+ name: file.name,
882
+ mime,
883
+ data: new Uint8Array(await file.arrayBuffer()),
884
+ });
885
+ }
886
+ catch (err) {
887
+ const said = noteOf(err);
888
+ if (said) {
889
+ return refuse(c, said, 400);
890
+ }
891
+ throw err;
892
+ }
848
893
  const ref = await saveAsset({
849
894
  runId: run.id,
850
- kind: mime.startsWith("image/") ? "upload-image" : "upload",
851
- mime,
852
- name: file.name.slice(0, 120),
853
- data: new Uint8Array(await file.arrayBuffer()),
895
+ kind: checked.mime.startsWith("image/") ? "upload-image" : "upload",
896
+ ...checked,
854
897
  });
855
898
  return c.json(ref);
856
899
  })
@@ -59,6 +59,7 @@ import { runnersOf, wizardRunners } from "../services/runners.js";
59
59
  import { listResults, listRuns, startTestRun } from "../services/runs.js";
60
60
  import { addCategoryValue, categoryRow, categoryValue, deleteCategory, deleteCategoryValue, mergeCategoryValues, orderCategoryValues, putCategory, renameCategoryValue, setItemCategory, updateCategory, } from "../services/space-categories.js";
61
61
  import { addTableRow, createPage, createTable, deletePage, deleteTable, deleteTableRows, getPage, getTable, listSpaceData, orderSubPages, updatePage, updateTable, updateTableRow, } from "../services/space-data.js";
62
+ import { deleteTheme, listThemes, saveTheme } from "../services/themes.js";
62
63
  import { deleteTranslation, editTranslation, isLangCode, publishedDefinition, translationsOf, } from "../services/translations.js";
63
64
  import { draftWidgetPreview } from "../services/widgets.js";
64
65
  import { createWizard, deleteWizard, draftChanges, duplicateWizard, listWizards, ownedWizard, rotateShareLink, updateWizardSettings, wizardMessages, wizardState, writableWizard, writeDraft, } from "../services/wizards.js";
@@ -68,7 +69,7 @@ import { codeOf } from "../tenants/control.js";
68
69
  import { currentTenant } from "../tenants/tenant.js";
69
70
  import { serverText } from "../texts.js";
70
71
  import { applyUpdate, updateStatus } from "../update.js";
71
- import { byteRange } from "./delivery.js";
72
+ import { bareMime, byteRange } from "./delivery.js";
72
73
  import { notFoundAnswer, requestLang, say } from "./lang.js";
73
74
  /** The model sources a test call has worked on: the setup is done for those, not for the others. */
74
75
  async function testedSources() {
@@ -523,6 +524,13 @@ export const studio = new Hono()
523
524
  const patch = projectPatchSchema.parse(await c.req.json());
524
525
  await updateProject(c.get("user").id, c.req.param("id"), patch);
525
526
  return c.json({ ok: true });
527
+ })
528
+ // --- the space's themes: how its wizards' pages look (docs/plans/themes.md) ---
529
+ .get("/projects/:id/themes", async (c) => c.json(await listThemes(c.get("user").id, c.req.param("id"))))
530
+ .put("/projects/:id/themes", async (c) => c.json(await saveTheme(c.get("user").id, c.req.param("id"), await c.req.json())))
531
+ .delete("/projects/:id/themes/:themeId{.+}", async (c) => {
532
+ await deleteTheme(c.get("user").id, c.req.param("id"), c.req.param("themeId"));
533
+ return c.json({ ok: true });
526
534
  })
527
535
  // --- what a project holds for all its wizards: logos, assets, documents -------
528
536
  .get("/projects/:id/files", async (c) => {
@@ -637,7 +645,7 @@ export const studio = new Hono()
637
645
  const project = await ownedProject(c.get("user").id, c.req.param("id"));
638
646
  const { row, data } = await projectFileContent(project.id, c.req.param("fileId"));
639
647
  const headers = {
640
- "content-type": row.mime,
648
+ "content-type": bareMime(row.mime) ?? "application/octet-stream",
641
649
  "cache-control": "private, max-age=3600",
642
650
  "x-content-type-options": "nosniff",
643
651
  // An uploaded SVG or HTML file is shown, never run. A PDF is left to the browser's own
@@ -1,5 +1,6 @@
1
1
  import { GRADIENT_TYPES, gradientCss, mainLogo, runTheme, } from "@engenty/wizards-shared/projects";
2
2
  import { note } from "@engenty/wizards-shared/run";
3
+ import { chosenTheme, lookColours, themedLook } from "@engenty/wizards-shared/theme";
3
4
  import { generateText, Output } from "ai";
4
5
  import { and, asc, eq } from "drizzle-orm";
5
6
  import { z } from "zod";
@@ -16,15 +17,22 @@ export async function mainLogoId(projectId) {
16
17
  });
17
18
  return mainLogo(logos, p?.brand.logoSections)?.id ?? null;
18
19
  }
19
- /** What end users see of the project: its title, accent and logo — never the project name. */
20
- export async function brandView(projectId) {
20
+ /**
21
+ * What end users see of the project: its title, accent and logo — never the project name — and the
22
+ * look of the wizard's pages: the theme the place showing it asks for where the wizard offers
23
+ * it, else the first theme of the wizard's chain the space has, else the brand.
24
+ */
25
+ export async function brandView(projectId, chain, asked) {
21
26
  const p = await db.query.project.findFirst({ where: eq(schema.project.id, projectId) });
22
27
  const logo = p ? await mainLogoId(p.id) : null;
28
+ const theme = themedLook(runTheme(p?.brand ?? {}), chosenTheme(chain, p?.themes ?? [], asked));
23
29
  return {
24
30
  name: p?.brand.name ?? "",
25
- accent: p?.brand.colors?.[0]?.value ?? null,
31
+ accent: lookColours(theme, theme.dark ? "dark" : "light").accent ??
32
+ p?.brand.colors?.[0]?.value ??
33
+ null,
26
34
  logoUrl: logo ? `/api/public/logos/${logo}` : null,
27
- theme: runTheme(p?.brand ?? {}),
35
+ theme,
28
36
  };
29
37
  }
30
38
  const HEX = /^#[0-9a-f]{6}$/i;
@@ -12,6 +12,7 @@ import { mainLogoId } from "./brand.js";
12
12
  import { ServiceError } from "./errors.js";
13
13
  import { projectFileContent, projectFiles } from "./project-files.js";
14
14
  import { ownedProject } from "./projects.js";
15
+ import { themesOf } from "./themes.js";
15
16
  import { ownedWizard, publishedVersion, publishWizard } from "./wizards.js";
16
17
  const key = (wizardId) => `cloud:${wizardId}`;
17
18
  const EMPTY = { copy: null, error: null };
@@ -230,6 +231,7 @@ export async function syncToCloud(userId, wizardId) {
230
231
  files,
231
232
  shareEnabled: w.shareEnabled,
232
233
  dailyRunLimit: w.dailyRunLimit,
234
+ themes: themesOf(version.definition.themes, (await ownedProject(userId, w.projectId)).themes),
233
235
  }, 120_000);
234
236
  if (!answer.ok || !answer.body.shareUrl) {
235
237
  throw refusal(answer, "The cloud did not take the wizard.");
@@ -121,6 +121,7 @@ function pluginSummary({ id, plugin, starter }) {
121
121
  // Found by the plugin's name as well: "Termine" finds the appointment plugin's starters.
122
122
  terms: [name],
123
123
  avatar: definition.avatar,
124
+ costume: definition.costume,
124
125
  formats: formatsOf(definition),
125
126
  industries: ["any"],
126
127
  useCases: [],
@@ -19,7 +19,14 @@ export function json(data) {
19
19
  /** A manifest, or a bare definition: a wizard without workspace is fully told by its JSON. */
20
20
  export function readManifest(raw) {
21
21
  if (raw?.format !== PACKAGE_FORMAT) {
22
- return { format: PACKAGE_FORMAT, version: 1, definition: raw, connectors: [], mcpServers: [] };
22
+ return {
23
+ format: PACKAGE_FORMAT,
24
+ version: 1,
25
+ definition: raw,
26
+ connectors: [],
27
+ mcpServers: [],
28
+ themes: [],
29
+ };
23
30
  }
24
31
  const parsed = manifestSchema.safeParse(raw);
25
32
  if (!parsed.success) {
@@ -10,6 +10,7 @@ import { draftFiles, writeFile } from "./files.js";
10
10
  import { pageTree } from "./knowledge.js";
11
11
  import { readPackage } from "./package-file.js";
12
12
  import { ownedProject } from "./projects.js";
13
+ import { importThemes, themesOf } from "./themes.js";
13
14
  import { createWizard, deleteWizard, draftIssues, ownedWizard, parseDraft } from "./wizards.js";
14
15
  /** A wizard as a file — the format is `@engenty/wizards-shared/wizard-package`'s. */
15
16
  /** Where the project's pages go in a package, as Markdown the standalone runner reads inline. */
@@ -63,6 +64,7 @@ export async function exportWizard(userId, wizardId, options = {}) {
63
64
  mcpServers: project.mcpServers
64
65
  .filter((s) => servers.has(s.id))
65
66
  .map((s) => ({ id: s.id, name: s.name })),
67
+ themes: themesOf(definition.themes, project.themes),
66
68
  };
67
69
  const entries = {};
68
70
  for (const f of live ? live.files : await draftFiles(w.id)) {
@@ -145,6 +147,11 @@ lang = "en") {
145
147
  // The shape is checked before anything is written; a wrong one leaves no wizard behind.
146
148
  const { draft } = parseDraft(manifest.definition, files.map((f) => f.path));
147
149
  const lacks = await missing(userId, projectId, draft, manifest);
150
+ // The wizard's looks come into the space; one whose id is taken by another look is renamed.
151
+ const renamed = await importThemes(projectId, manifest.themes);
152
+ if (draft.themes) {
153
+ draft.themes = draft.themes.map((id) => renamed[id] ?? id);
154
+ }
148
155
  const counts = {
149
156
  name,
150
157
  steps: serverText(lang, "stepCount", { count: draft.steps.length }),
@@ -5,6 +5,7 @@ import { and, asc, count, eq, max } from "drizzle-orm";
5
5
  import { db, schema } from "../db/client.js";
6
6
  import { documentMime, UnreadableDocument } from "../documents/parse.js";
7
7
  import { loadAsset, removeAsset, replaceAsset, saveAsset } from "../files/storage.js";
8
+ import { checkUpload } from "../files/upload-check.js";
8
9
  import { embeddingModel, textModel } from "../models.js";
9
10
  import { spaceFileChanged } from "../plugins/events.js";
10
11
  import { dropLinks, putLink } from "../tenants/control.js";
@@ -76,18 +77,26 @@ function accepts(kind, mime) {
76
77
  }
77
78
  export async function addProjectFile(projectId, input) {
78
79
  await requireWritableProject(projectId);
79
- const mime = documentMime(input.name, input.mime) || "application/octet-stream";
80
- if (!accepts(input.kind, mime)) {
80
+ const declared = documentMime(input.name, input.mime) || "application/octet-stream";
81
+ if (!accepts(input.kind, declared)) {
81
82
  throw new ServiceError("invalid", input.kind === "logo"
82
83
  ? note("logoImagePngSvg")
83
84
  : input.kind === "pattern"
84
85
  ? note("patternImageSvgPng")
85
86
  : note("filesGoHere"));
86
87
  }
87
- const limit = projectFileLimit(input.kind, mime);
88
+ const limit = projectFileLimit(input.kind, declared);
88
89
  if (!input.data.byteLength || input.data.byteLength > limit) {
89
90
  throw new ServiceError("invalid", note("chooseFileUpTo", { mb: Math.round(limit / 1_000_000) }));
90
91
  }
92
+ // The bytes say what the file is; a picture is drawn again without its metadata.
93
+ const checked = await checkUpload({
94
+ name: input.name,
95
+ mime: declared,
96
+ data: input.data,
97
+ fallbackName: "datei",
98
+ });
99
+ const { mime, data, name } = checked;
91
100
  const scope = and(eq(schema.projectFile.projectId, projectId), eq(schema.projectFile.kind, input.kind));
92
101
  const [{ n, last }] = await db
93
102
  .select({ n: count(), last: max(schema.projectFile.position) })
@@ -96,12 +105,11 @@ export async function addProjectFile(projectId, input) {
96
105
  if (n >= PROJECT_LIMITS.files[input.kind]) {
97
106
  throw new ServiceError("refused", note("roomMostFiles", { count: PROJECT_LIMITS.files[input.kind] }));
98
107
  }
99
- const name = input.name.slice(0, 120) || "datei";
100
108
  const ref = await saveAsset({
101
109
  kind: input.kind === "logo" ? "logo" : "project",
102
110
  mime,
103
111
  name,
104
- data: input.data,
112
+ data,
105
113
  });
106
114
  const description = input.description?.trim().slice(0, 600) ?? "";
107
115
  const work = input.kind === "document" || (!description && SEEN_BY_MODEL.includes(mime));
@@ -113,7 +121,7 @@ export async function addProjectFile(projectId, input) {
113
121
  kind: input.kind,
114
122
  name,
115
123
  mime,
116
- size: input.data.byteLength,
124
+ size: data.byteLength,
117
125
  description,
118
126
  source: input.source ?? null,
119
127
  position: (last ?? -1) + 1,
@@ -351,7 +359,7 @@ async function removeRow(row) {
351
359
  await dropConverted(row.id);
352
360
  await db.delete(schema.projectFile).where(eq(schema.projectFile.id, row.id));
353
361
  await removeAsset(row.id);
354
- if (row.kind === "logo") {
362
+ if (row.kind === "logo" || row.mime.startsWith("font/")) {
355
363
  await dropLinks([row.id]);
356
364
  }
357
365
  spaceFileChanged("space.file.removed", row);
@@ -7,6 +7,7 @@ import { db, schema } from "../db/client.js";
7
7
  import { env } from "../env.js";
8
8
  import { managed, tenantInfo } from "../manage.js";
9
9
  import { spaceChanged } from "../plugins/events.js";
10
+ import { putLink } from "../tenants/control.js";
10
11
  import { currentTenant } from "../tenants/tenant.js";
11
12
  import { serverText } from "../texts.js";
12
13
  import { mayBuild, requireAdmin, requireBuild, requireWritable } from "./access.js";
@@ -62,6 +63,18 @@ export const brandFontSchema = z.object({
62
63
  weights: z.array(z.number().int().min(100).max(900)).max(FONT_WEIGHTS.length + 3),
63
64
  license: z.string().max(200).optional(),
64
65
  uses: z.array(z.enum(FONT_USES)).max(FONT_USES.length).optional(),
66
+ source: z
67
+ .union([
68
+ z.object({ file: z.string().max(40) }),
69
+ z.object({
70
+ url: z
71
+ .string()
72
+ .max(600)
73
+ .url()
74
+ .refine((u) => u.startsWith("https://"), "an https:// address"),
75
+ }),
76
+ ])
77
+ .optional(),
65
78
  });
66
79
  export const textStyleSchema = z.object({
67
80
  id: sectionId,
@@ -254,6 +267,9 @@ export async function updateProject(userId, projectId, patch) {
254
267
  if (patch.facts && new Set(patch.facts.map((f) => f.key)).size !== patch.facts.length) {
255
268
  throw new ServiceError("invalid", note("twoEntriesSameKey"));
256
269
  }
270
+ if (patch.brand?.fonts) {
271
+ await linkFontFiles(p.id, patch.brand.fonts);
272
+ }
257
273
  await db
258
274
  .update(schema.project)
259
275
  .set({
@@ -266,6 +282,24 @@ export async function updateProject(userId, projectId, patch) {
266
282
  .where(eq(schema.project.id, p.id));
267
283
  spaceChanged("space.updated", p.id);
268
284
  }
285
+ /**
286
+ * A brand font's own file is a font of the space; run pages ask for it by its id, before the
287
+ * tenant is known, so the control database learns it.
288
+ */
289
+ async function linkFontFiles(projectId, fonts) {
290
+ for (const f of fonts) {
291
+ if (!(f.source && "file" in f.source)) {
292
+ continue;
293
+ }
294
+ const file = await db.query.projectFile.findFirst({
295
+ where: and(eq(schema.projectFile.id, f.source.file), eq(schema.projectFile.projectId, projectId)),
296
+ });
297
+ if (!file?.mime.startsWith("font/")) {
298
+ throw new ServiceError("invalid", note("fontSourceNoFont", { family: f.family }));
299
+ }
300
+ await putLink(file.id, "font", file.id);
301
+ }
302
+ }
269
303
  /**
270
304
  * The brand with the patch on it. Sections and rules are optional: a section without title and
271
305
  * logos and rules without words are not kept.