@engenty/wizards-runtime 0.8.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/runtime/dist/agents/architect.js +3 -3
- package/apps/runtime/dist/agents/studio-assistant.js +1 -1
- package/apps/runtime/dist/agents/website.js +1 -1
- package/apps/runtime/dist/app.js +3 -1
- package/apps/runtime/dist/assistant/browser.js +1 -1
- package/apps/runtime/dist/authoring/guide.js +24 -2
- package/apps/runtime/dist/authoring/ops.js +28 -2
- package/apps/runtime/dist/cli/autoupdate.js +13 -1
- package/apps/runtime/dist/cli/features.js +1 -1
- package/apps/runtime/dist/cli/validate.js +2 -2
- package/apps/runtime/dist/cli/versions.js +69 -1
- package/apps/runtime/dist/connectors/external.js +1 -1
- package/apps/runtime/dist/connectors/index.js +2 -2
- package/apps/runtime/dist/connectors/via-account.js +1 -1
- package/apps/runtime/dist/credits/estimate.js +1 -1
- package/apps/runtime/dist/db/client.js +20 -3
- package/apps/runtime/dist/db/control-schema.js +3 -2
- package/apps/runtime/dist/db/migrations/tenant/0019_space_themes.sql +1 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0019_snapshot.json +3468 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +7 -0
- package/apps/runtime/dist/db/schema.js +2 -0
- package/apps/runtime/dist/docs/dev/index.md +1 -1
- package/apps/runtime/dist/docs/dev/integration/embed.md +35 -5
- package/apps/runtime/dist/docs/dev/integration/index.md +2 -1
- package/apps/runtime/dist/docs/dev/integration/marketplaces.md +78 -0
- package/apps/runtime/dist/docs/dev/integration/mcp-apps.md +33 -5
- package/apps/runtime/dist/docs/dev/integration/meta.json +1 -0
- package/apps/runtime/dist/docs/dev/integration/openui.md +56 -4
- package/apps/runtime/dist/docs/dev/integration/own-ui.md +2 -2
- package/apps/runtime/dist/docs/dev/plugins/examples.md +2 -3
- package/apps/runtime/dist/docs/dev/plugins/studio.md +5 -6
- package/apps/runtime/dist/docs/dev/plugins/styling.md +10 -7
- package/apps/runtime/dist/docs/dev/wizard-format/index.md +61 -1
- package/apps/runtime/dist/docs/user/ai-apps.md +27 -7
- package/apps/runtime/dist/docs/user/build-a-wizard.md +23 -2
- package/apps/runtime/dist/docs/user/space.md +15 -10
- package/apps/runtime/dist/docs/user/test-and-share.md +2 -1
- package/apps/runtime/dist/documents/parse.js +1 -1
- package/apps/runtime/dist/engine/decide.js +1 -1
- package/apps/runtime/dist/engine/events.js +1 -1
- package/apps/runtime/dist/engine/input.js +3 -3
- package/apps/runtime/dist/engine/prepare.js +1 -1
- package/apps/runtime/dist/engine/requirements.js +3 -3
- package/apps/runtime/dist/engine/runner.js +7 -6
- package/apps/runtime/dist/engine/steps.js +6 -6
- package/apps/runtime/dist/engine/surface.js +3 -3
- package/apps/runtime/dist/engine/template.js +4 -4
- package/apps/runtime/dist/env.js +5 -0
- package/apps/runtime/dist/features.js +1 -1
- package/apps/runtime/dist/film/project.js +2 -2
- package/apps/runtime/dist/film/step.js +2 -2
- package/apps/runtime/dist/harness/apple.js +1 -1
- package/apps/runtime/dist/harness/claude.js +1 -1
- package/apps/runtime/dist/harness/codex.js +1 -1
- package/apps/runtime/dist/harness/model.js +1 -1
- package/apps/runtime/dist/harness/terminal.js +1 -1
- package/apps/runtime/dist/mcp/flow-app.js +21 -1
- package/apps/runtime/dist/mcp/tools.js +36 -6
- package/apps/runtime/dist/media/conversation.js +1 -1
- package/apps/runtime/dist/media/transcribe.js +1 -1
- package/apps/runtime/dist/model-errors.js +1 -1
- package/apps/runtime/dist/models.js +3 -3
- package/apps/runtime/dist/plugin.js +1 -1
- package/apps/runtime/dist/plugins/discovery.js +1 -1
- package/apps/runtime/dist/plugins/loader.js +2 -2
- package/apps/runtime/dist/plugins/runs.js +2 -2
- package/apps/runtime/dist/render/downloads.js +2 -2
- package/apps/runtime/dist/render/shaped.js +1 -1
- package/apps/runtime/dist/routes/api.js +2 -2
- package/apps/runtime/dist/routes/lang.js +1 -1
- package/apps/runtime/dist/routes/marketplace.js +1 -1
- package/apps/runtime/dist/routes/runs.js +34 -7
- package/apps/runtime/dist/routes/studio.js +16 -8
- package/apps/runtime/dist/services/access.js +1 -1
- package/apps/runtime/dist/services/api.js +4 -4
- package/apps/runtime/dist/services/assistant-chats.js +2 -2
- package/apps/runtime/dist/services/brand.js +14 -6
- package/apps/runtime/dist/services/cloud.js +3 -1
- package/apps/runtime/dist/services/errors.js +1 -1
- package/apps/runtime/dist/services/files.js +1 -1
- package/apps/runtime/dist/services/knowledge-model.js +3 -3
- package/apps/runtime/dist/services/knowledge.js +2 -2
- package/apps/runtime/dist/services/marketplace.js +6 -5
- package/apps/runtime/dist/services/package-file.js +11 -4
- package/apps/runtime/dist/services/package.js +9 -2
- package/apps/runtime/dist/services/profile.js +1 -1
- package/apps/runtime/dist/services/project-files.js +3 -3
- package/apps/runtime/dist/services/project-index.js +1 -1
- package/apps/runtime/dist/services/projects.js +36 -2
- package/apps/runtime/dist/services/runners.js +3 -3
- package/apps/runtime/dist/services/runs.js +2 -2
- package/apps/runtime/dist/services/shares.js +8 -3
- package/apps/runtime/dist/services/site.js +2 -2
- package/apps/runtime/dist/services/space-categories.js +3 -3
- package/apps/runtime/dist/services/space-data.js +4 -4
- package/apps/runtime/dist/services/spaces.js +21 -6
- package/apps/runtime/dist/services/themes.js +110 -0
- package/apps/runtime/dist/services/translations.js +5 -5
- package/apps/runtime/dist/services/widgets.js +1 -1
- package/apps/runtime/dist/services/wizards.js +11 -3
- package/apps/runtime/dist/sharing/files.js +1 -1
- package/apps/runtime/dist/sharing/jobs.js +1 -1
- package/apps/runtime/dist/store/index.js +3 -3
- package/apps/runtime/dist/store/shared-lists.js +1 -1
- package/apps/runtime/dist/texts.js +1 -1
- package/apps/runtime/dist/tools/index.js +1 -1
- package/apps/runtime/dist/tools/plugin.js +2 -2
- package/apps/runtime/dist/tools/project.js +1 -1
- package/apps/runtime/dist/tools/store.js +2 -2
- package/apps/runtime/dist/widgets/bundle.js +1 -1
- package/apps/runtime/dist/widgets/step.js +3 -3
- package/apps/web/dist/assets/400-BpGVy8f9.css +1 -0
- package/apps/web/dist/assets/400-Bx8aXxdn.css +1 -0
- package/apps/web/dist/assets/400-C-EAXind.css +1 -0
- package/apps/web/dist/assets/400-C1aMvkWZ.css +1 -0
- package/apps/web/dist/assets/400-CWy8yahC.css +1 -0
- package/apps/web/dist/assets/400-CvPzio2w.css +1 -0
- package/apps/web/dist/assets/400-CyB00QFz.css +1 -0
- package/apps/web/dist/assets/400-DiVWFxeN.css +1 -0
- package/apps/web/dist/assets/400-NJi9pVr7.css +1 -0
- package/apps/web/dist/assets/400-W7eSYfM-.css +1 -0
- package/apps/web/dist/assets/400-an-Q8PSH.css +1 -0
- package/apps/web/dist/assets/400-fDO2E_2J.css +1 -0
- package/apps/web/dist/assets/400-n8m3eWIv.css +1 -0
- package/apps/web/dist/assets/500--5BQEKwF.css +1 -0
- package/apps/web/dist/assets/500-BacxruX7.css +1 -0
- package/apps/web/dist/assets/500-Bp7rE3sO.css +1 -0
- package/apps/web/dist/assets/500-BrSlhPjT.css +1 -0
- package/apps/web/dist/assets/500-DjLsfQf4.css +1 -0
- package/apps/web/dist/assets/500-Dk7ZdhaB.css +1 -0
- package/apps/web/dist/assets/500-DqciRChS.css +1 -0
- package/apps/web/dist/assets/500-XHIL5p_x.css +1 -0
- package/apps/web/dist/assets/500-ueODFTvD.css +1 -0
- package/apps/web/dist/assets/500-vjb4iIph.css +1 -0
- package/apps/web/dist/assets/600-B1b7x6MC.css +1 -0
- package/apps/web/dist/assets/600-B9Zp6bBy.css +1 -0
- package/apps/web/dist/assets/600-BMp88EpG.css +1 -0
- package/apps/web/dist/assets/600-BpnjcFCp.css +1 -0
- package/apps/web/dist/assets/600-Bu09rnu5.css +1 -0
- package/apps/web/dist/assets/600-Bv31zJWL.css +1 -0
- package/apps/web/dist/assets/600-BvFs-CRM.css +1 -0
- package/apps/web/dist/assets/600-CX1ZBIY5.css +1 -0
- package/apps/web/dist/assets/600-CfY_-NCo.css +1 -0
- package/apps/web/dist/assets/600-D7AGNg1U.css +1 -0
- package/apps/web/dist/assets/700-5l7ov3HZ.css +1 -0
- package/apps/web/dist/assets/700-B057BQ0n.css +1 -0
- package/apps/web/dist/assets/700-BXdZ1Wt4.css +1 -0
- package/apps/web/dist/assets/700-BwKwxaTT.css +1 -0
- package/apps/web/dist/assets/700-CBDkNWxO.css +1 -0
- package/apps/web/dist/assets/700-CEuaYRw2.css +1 -0
- package/apps/web/dist/assets/700-CGFQ5xCB.css +1 -0
- package/apps/web/dist/assets/700-CReDayoA.css +1 -0
- package/apps/web/dist/assets/700-D1QH7Wga.css +1 -0
- package/apps/web/dist/assets/700-pQg9ODXE.css +1 -0
- package/apps/web/dist/assets/{AboutDialog-CiiSwL4t.js → AboutDialog-DKfHXQUv.js} +1 -1
- package/apps/web/dist/assets/{ChangelogDialog-BEyz7LNE.js → ChangelogDialog-BsM9zGdh.js} +1 -1
- package/apps/web/dist/assets/EditorPage-CRcgupmQ.js +4 -0
- package/apps/web/dist/assets/{FlowPreview-CLf8WHiG.js → FlowPreview-szPmsT2-.js} +1 -1
- package/apps/web/dist/assets/{Harness-jc3jpWvI.js → Harness-CXx-Js4U.js} +2 -2
- package/apps/web/dist/assets/{NewWizardChannels-BPGZ4pfP.js → NewWizardChannels-C6R1HV0I.js} +1 -1
- package/apps/web/dist/assets/NewWizardPage-D6Z6DYeT.js +7 -0
- package/apps/web/dist/assets/OnboardingPage-DrN26Afr.js +1 -0
- package/apps/web/dist/assets/ProjectPage-CNyhwfgz.js +1 -0
- package/apps/web/dist/assets/PublicRunner-CREvMYW_.js +1 -0
- package/apps/web/dist/assets/{ReadOnly-BVwbqvpi.js → ReadOnly-BUyOPou5.js} +1 -1
- package/apps/web/dist/assets/RunDrawer-8iWXyXjL.js +4 -0
- package/apps/web/dist/assets/RunnerView-CufG6xDP.js +1 -0
- package/apps/web/dist/assets/SettingsPage-B4M4DrMS.js +2 -0
- package/apps/web/dist/assets/SetupPage-D-Op38jE.js +1 -0
- package/apps/web/dist/assets/SharePage-BXYVZ3Fa.js +1 -0
- package/apps/web/dist/assets/bricolage-grotesque-latin-400-normal-A6LyuA6R.woff2 +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-latin-400-normal-D89K-qEP.woff +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-latin-500-normal-CV-uA8Lw.woff +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-latin-500-normal-DEDBoLFO.woff2 +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-latin-600-normal-Bw0J83-2.woff +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-latin-600-normal-nxTgbNFE.woff2 +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-latin-700-normal-DvJDmrLu.woff +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-latin-700-normal-gtcctNPv.woff2 +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-latin-ext-400-normal-BH175q6o.woff +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-latin-ext-400-normal-D42HmrHD.woff2 +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-latin-ext-500-normal-B0ZDNVGf.woff +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-latin-ext-500-normal-DIhLz7G7.woff2 +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-latin-ext-600-normal-CN5JKkBm.woff2 +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-latin-ext-600-normal-DF26P3Q7.woff +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-latin-ext-700-normal-BXpPFNFj.woff +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-latin-ext-700-normal-fBkt-7fi.woff2 +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-vietnamese-400-normal-B7Iv8-Rg.woff2 +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-vietnamese-400-normal-Sle7MYWg.woff +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-vietnamese-500-normal-CAK5R6Iy.woff +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-vietnamese-500-normal-FzY9NZwK.woff2 +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-vietnamese-600-normal-BppAn7jL.woff +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-vietnamese-600-normal-Ipewt4hn.woff2 +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-vietnamese-700-normal-BLYPkJbo.woff2 +0 -0
- package/apps/web/dist/assets/bricolage-grotesque-vietnamese-700-normal-CHrFuVHU.woff +0 -0
- package/apps/web/dist/assets/caveat-cyrillic-400-normal-9cDH9rLW.woff2 +0 -0
- package/apps/web/dist/assets/caveat-cyrillic-400-normal-CebvvJET.woff +0 -0
- package/apps/web/dist/assets/caveat-cyrillic-500-normal-DLSfp5IU.woff +0 -0
- package/apps/web/dist/assets/caveat-cyrillic-500-normal-DpMZbbjM.woff2 +0 -0
- package/apps/web/dist/assets/caveat-cyrillic-600-normal-Ba_MyzgW.woff2 +0 -0
- package/apps/web/dist/assets/caveat-cyrillic-600-normal-CqH0c_uj.woff +0 -0
- package/apps/web/dist/assets/caveat-cyrillic-700-normal-BIyejhEL.woff2 +0 -0
- package/apps/web/dist/assets/caveat-cyrillic-700-normal-Bhcx9qBB.woff +0 -0
- package/apps/web/dist/assets/caveat-cyrillic-ext-400-normal-3iEGd-c5.woff2 +0 -0
- package/apps/web/dist/assets/caveat-cyrillic-ext-400-normal-Cg0RnRQ5.woff +0 -0
- package/apps/web/dist/assets/caveat-cyrillic-ext-500-normal-DcrB4vVx.woff2 +0 -0
- package/apps/web/dist/assets/caveat-cyrillic-ext-500-normal-DqTXtm5N.woff +0 -0
- package/apps/web/dist/assets/caveat-cyrillic-ext-600-normal-BLVNc-Ct.woff +0 -0
- package/apps/web/dist/assets/caveat-cyrillic-ext-600-normal-DDEJyoof.woff2 +0 -0
- package/apps/web/dist/assets/caveat-cyrillic-ext-700-normal-CrK2-ngJ.woff2 +0 -0
- package/apps/web/dist/assets/caveat-cyrillic-ext-700-normal-DjFGiEhD.woff +0 -0
- package/apps/web/dist/assets/caveat-latin-400-normal-BzhAQZkN.woff +0 -0
- package/apps/web/dist/assets/caveat-latin-400-normal-D6LQsQ_v.woff2 +0 -0
- package/apps/web/dist/assets/caveat-latin-500-normal-B9SDL8cy.woff2 +0 -0
- package/apps/web/dist/assets/caveat-latin-500-normal-Do9veZfZ.woff +0 -0
- package/apps/web/dist/assets/caveat-latin-600-normal-DUjB8dgm.woff +0 -0
- package/apps/web/dist/assets/caveat-latin-600-normal-zlTlWIYU.woff2 +0 -0
- package/apps/web/dist/assets/caveat-latin-700-normal-D8_1Nw6V.woff2 +0 -0
- package/apps/web/dist/assets/caveat-latin-700-normal-cPyBTTZN.woff +0 -0
- package/apps/web/dist/assets/caveat-latin-ext-400-normal-D7hBUiug.woff2 +0 -0
- package/apps/web/dist/assets/caveat-latin-ext-400-normal-DtiRFvw0.woff +0 -0
- package/apps/web/dist/assets/caveat-latin-ext-500-normal-jKqJW7bC.woff2 +0 -0
- package/apps/web/dist/assets/caveat-latin-ext-500-normal-wUUXxlbS.woff +0 -0
- package/apps/web/dist/assets/caveat-latin-ext-600-normal-DDJRD6ps.woff2 +0 -0
- package/apps/web/dist/assets/caveat-latin-ext-600-normal-shBvSnoU.woff +0 -0
- package/apps/web/dist/assets/caveat-latin-ext-700-normal-DFbRgDry.woff2 +0 -0
- package/apps/web/dist/assets/caveat-latin-ext-700-normal-DjJQd59I.woff +0 -0
- package/apps/web/dist/assets/changelog-KvwOYLcI.js +1 -0
- package/apps/web/dist/assets/creepster-latin-400-normal-DFidaany.woff +0 -0
- package/apps/web/dist/assets/creepster-latin-400-normal-DnKpM-ys.woff2 +0 -0
- package/apps/web/dist/assets/dm-sans-latin-400-normal-BwCSEQnW.woff +0 -0
- package/apps/web/dist/assets/dm-sans-latin-400-normal-CW0RaeGs.woff2 +0 -0
- package/apps/web/dist/assets/dm-sans-latin-500-normal-B9HHJjqV.woff2 +0 -0
- package/apps/web/dist/assets/dm-sans-latin-500-normal-Dr3UlScf.woff +0 -0
- package/apps/web/dist/assets/dm-sans-latin-600-normal-Aqo67rzb.woff2 +0 -0
- package/apps/web/dist/assets/dm-sans-latin-600-normal-BmdmIIQ2.woff +0 -0
- package/apps/web/dist/assets/dm-sans-latin-700-normal-CUSSCpQX.woff +0 -0
- package/apps/web/dist/assets/dm-sans-latin-700-normal-DvUfVpUG.woff2 +0 -0
- package/apps/web/dist/assets/dm-sans-latin-ext-400-normal-BjWJ59Pq.woff +0 -0
- package/apps/web/dist/assets/dm-sans-latin-ext-400-normal-BtiwyxMk.woff2 +0 -0
- package/apps/web/dist/assets/dm-sans-latin-ext-500-normal-BJfUCQsA.woff2 +0 -0
- package/apps/web/dist/assets/dm-sans-latin-ext-500-normal-DR84L5F-.woff +0 -0
- package/apps/web/dist/assets/dm-sans-latin-ext-600-normal-4vooXBpG.woff2 +0 -0
- package/apps/web/dist/assets/dm-sans-latin-ext-600-normal-DRtaDpgU.woff +0 -0
- package/apps/web/dist/assets/dm-sans-latin-ext-700-normal-BLI3TTWz.woff +0 -0
- package/apps/web/dist/assets/dm-sans-latin-ext-700-normal-CJIcxD6K.woff2 +0 -0
- package/apps/web/dist/assets/engenty-CNjaZCVM.js +1 -0
- package/apps/web/dist/assets/esm-CetquljB.js +7 -0
- package/apps/web/dist/assets/figtree-latin-400-normal-BD4aNku5.woff +0 -0
- package/apps/web/dist/assets/figtree-latin-400-normal-g7Dtegnw.woff2 +0 -0
- package/apps/web/dist/assets/figtree-latin-500-normal-BWnGEVsr.woff2 +0 -0
- package/apps/web/dist/assets/figtree-latin-500-normal-B_yy1phn.woff +0 -0
- package/apps/web/dist/assets/figtree-latin-600-normal-BM_oTo4n.woff +0 -0
- package/apps/web/dist/assets/figtree-latin-600-normal-Cv_xCTDl.woff2 +0 -0
- package/apps/web/dist/assets/figtree-latin-700-normal-BCCt2T1q.woff +0 -0
- package/apps/web/dist/assets/figtree-latin-700-normal-th6qEP7c.woff2 +0 -0
- package/apps/web/dist/assets/figtree-latin-ext-400-normal-CXAzuTZb.woff2 +0 -0
- package/apps/web/dist/assets/figtree-latin-ext-400-normal-Gbh-3PTk.woff +0 -0
- package/apps/web/dist/assets/figtree-latin-ext-500-normal-BOEJvrb_.woff +0 -0
- package/apps/web/dist/assets/figtree-latin-ext-500-normal-Du0rIuHj.woff2 +0 -0
- package/apps/web/dist/assets/figtree-latin-ext-600-normal-CQqsimlV.woff +0 -0
- package/apps/web/dist/assets/figtree-latin-ext-600-normal-DJlfifZj.woff2 +0 -0
- package/apps/web/dist/assets/figtree-latin-ext-700-normal-BoDi4KL2.woff +0 -0
- package/apps/web/dist/assets/figtree-latin-ext-700-normal-CS4sQkGV.woff2 +0 -0
- package/apps/web/dist/assets/fluffy-engenty-o_lu9icd.js +678 -0
- package/apps/web/dist/assets/fraunces-latin-400-normal-6IfK1voy.woff2 +0 -0
- package/apps/web/dist/assets/fraunces-latin-400-normal-NUPT2cO8.woff +0 -0
- package/apps/web/dist/assets/fraunces-latin-500-normal-BTR4KCeb.woff +0 -0
- package/apps/web/dist/assets/fraunces-latin-500-normal-DnGCNyPD.woff2 +0 -0
- package/apps/web/dist/assets/fraunces-latin-600-normal-BFCDtZfi.woff2 +0 -0
- package/apps/web/dist/assets/fraunces-latin-600-normal-DL5QCzvS.woff +0 -0
- package/apps/web/dist/assets/fraunces-latin-700-normal-CEOla-zY.woff2 +0 -0
- package/apps/web/dist/assets/fraunces-latin-700-normal-DTjk5d1Q.woff +0 -0
- package/apps/web/dist/assets/fraunces-latin-ext-400-normal-D8gbi3Gu.woff2 +0 -0
- package/apps/web/dist/assets/fraunces-latin-ext-400-normal-UihxqfOe.woff +0 -0
- package/apps/web/dist/assets/fraunces-latin-ext-500-normal-BMcFk1Xs.woff +0 -0
- package/apps/web/dist/assets/fraunces-latin-ext-500-normal-Z5DV8IzT.woff2 +0 -0
- package/apps/web/dist/assets/fraunces-latin-ext-600-normal-B0Dy4lqi.woff +0 -0
- package/apps/web/dist/assets/fraunces-latin-ext-600-normal-BtzmzP0X.woff2 +0 -0
- package/apps/web/dist/assets/fraunces-latin-ext-700-normal-CanUGppC.woff2 +0 -0
- package/apps/web/dist/assets/fraunces-latin-ext-700-normal-DuBstVeD.woff +0 -0
- package/apps/web/dist/assets/fraunces-vietnamese-400-normal-B65MOf9T.woff +0 -0
- package/apps/web/dist/assets/fraunces-vietnamese-400-normal-CvGt0Ybw.woff2 +0 -0
- package/apps/web/dist/assets/fraunces-vietnamese-500-normal-B-KbxExq.woff +0 -0
- package/apps/web/dist/assets/fraunces-vietnamese-500-normal-GOH_-EGq.woff2 +0 -0
- package/apps/web/dist/assets/fraunces-vietnamese-600-normal-BjlAJixd.woff2 +0 -0
- package/apps/web/dist/assets/fraunces-vietnamese-600-normal-DlAl5EAR.woff +0 -0
- package/apps/web/dist/assets/fraunces-vietnamese-700-normal-DH94m5DZ.woff2 +0 -0
- package/apps/web/dist/assets/fraunces-vietnamese-700-normal-DxawQjq2.woff +0 -0
- package/apps/web/dist/assets/fredoka-hebrew-400-normal-CT3eDt6U.woff2 +0 -0
- package/apps/web/dist/assets/fredoka-hebrew-400-normal-S03uWvSu.woff +0 -0
- package/apps/web/dist/assets/fredoka-hebrew-500-normal-BtShCMVp.woff +0 -0
- package/apps/web/dist/assets/fredoka-hebrew-500-normal-DdMTjgiE.woff2 +0 -0
- package/apps/web/dist/assets/fredoka-hebrew-600-normal-BiVDObXj.woff +0 -0
- package/apps/web/dist/assets/fredoka-hebrew-600-normal-CTBxhdlE.woff2 +0 -0
- package/apps/web/dist/assets/fredoka-hebrew-700-normal-DBqnFHCe.woff2 +0 -0
- package/apps/web/dist/assets/fredoka-hebrew-700-normal-DiqR04Vd.woff +0 -0
- package/apps/web/dist/assets/fredoka-latin-400-normal-17JuUzdy.woff2 +0 -0
- package/apps/web/dist/assets/fredoka-latin-400-normal-DbXSrOeS.woff +0 -0
- package/apps/web/dist/assets/fredoka-latin-500-normal-B0JifZgm.woff2 +0 -0
- package/apps/web/dist/assets/fredoka-latin-500-normal-BL692wg7.woff +0 -0
- package/apps/web/dist/assets/fredoka-latin-600-normal-C4zohCW5.woff2 +0 -0
- package/apps/web/dist/assets/fredoka-latin-600-normal-CcrEjrB4.woff +0 -0
- package/apps/web/dist/assets/fredoka-latin-700-normal-BOIZVyIN.woff2 +0 -0
- package/apps/web/dist/assets/fredoka-latin-700-normal-C8FeHd3X.woff +0 -0
- package/apps/web/dist/assets/index-C5Qmfm_0.css +1 -0
- package/apps/web/dist/assets/index-TJhB4-x8.js +14 -0
- package/apps/web/dist/assets/inter-cyrillic-400-normal-HOLc17fK.woff +0 -0
- package/apps/web/dist/assets/inter-cyrillic-400-normal-obahsSVq.woff2 +0 -0
- package/apps/web/dist/assets/inter-cyrillic-500-normal-BasfLYem.woff2 +0 -0
- package/apps/web/dist/assets/inter-cyrillic-500-normal-CxZf_p3X.woff +0 -0
- package/apps/web/dist/assets/inter-cyrillic-600-normal-4D_pXhcN.woff +0 -0
- package/apps/web/dist/assets/inter-cyrillic-600-normal-CWCymEST.woff2 +0 -0
- package/apps/web/dist/assets/inter-cyrillic-700-normal-CjBOestx.woff2 +0 -0
- package/apps/web/dist/assets/inter-cyrillic-700-normal-DrXBdSj3.woff +0 -0
- package/apps/web/dist/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2 +0 -0
- package/apps/web/dist/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff +0 -0
- package/apps/web/dist/assets/inter-cyrillic-ext-500-normal-B0yAr1jD.woff2 +0 -0
- package/apps/web/dist/assets/inter-cyrillic-ext-500-normal-BmqWE9Dz.woff +0 -0
- package/apps/web/dist/assets/inter-cyrillic-ext-600-normal-Bcila6Z-.woff +0 -0
- package/apps/web/dist/assets/inter-cyrillic-ext-600-normal-Dfes3d0z.woff2 +0 -0
- package/apps/web/dist/assets/inter-cyrillic-ext-700-normal-BjwYoWNd.woff2 +0 -0
- package/apps/web/dist/assets/inter-cyrillic-ext-700-normal-LO58E6JB.woff +0 -0
- package/apps/web/dist/assets/inter-greek-400-normal-B4URO6DV.woff2 +0 -0
- package/apps/web/dist/assets/inter-greek-400-normal-q2sYcFCs.woff +0 -0
- package/apps/web/dist/assets/inter-greek-500-normal-BIZE56-Y.woff2 +0 -0
- package/apps/web/dist/assets/inter-greek-500-normal-Xzm54t5V.woff +0 -0
- package/apps/web/dist/assets/inter-greek-600-normal-BZpKdvQh.woff +0 -0
- package/apps/web/dist/assets/inter-greek-600-normal-plRanbMR.woff2 +0 -0
- package/apps/web/dist/assets/inter-greek-700-normal-BUv2fZ6O.woff +0 -0
- package/apps/web/dist/assets/inter-greek-700-normal-C3JjAnD8.woff2 +0 -0
- package/apps/web/dist/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2 +0 -0
- package/apps/web/dist/assets/inter-greek-ext-400-normal-KugGGMne.woff +0 -0
- package/apps/web/dist/assets/inter-greek-ext-500-normal-2j5mBUwD.woff +0 -0
- package/apps/web/dist/assets/inter-greek-ext-500-normal-C4iEst2y.woff2 +0 -0
- package/apps/web/dist/assets/inter-greek-ext-600-normal-B8X0CLgF.woff +0 -0
- package/apps/web/dist/assets/inter-greek-ext-600-normal-DRtmH8MT.woff2 +0 -0
- package/apps/web/dist/assets/inter-greek-ext-700-normal-BoQ6DsYi.woff +0 -0
- package/apps/web/dist/assets/inter-greek-ext-700-normal-qfdV9bQt.woff2 +0 -0
- package/apps/web/dist/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
- package/apps/web/dist/assets/inter-latin-400-normal-CyCys3Eg.woff +0 -0
- package/apps/web/dist/assets/inter-latin-500-normal-BL9OpVg8.woff +0 -0
- package/apps/web/dist/assets/inter-latin-500-normal-Cerq10X2.woff2 +0 -0
- package/apps/web/dist/assets/inter-latin-600-normal-CiBQ2DWP.woff +0 -0
- package/apps/web/dist/assets/inter-latin-600-normal-LgqL8muc.woff2 +0 -0
- package/apps/web/dist/assets/inter-latin-700-normal-BLAVimhd.woff +0 -0
- package/apps/web/dist/assets/inter-latin-700-normal-Yt3aPRUw.woff2 +0 -0
- package/apps/web/dist/assets/inter-latin-ext-400-normal-77YHD8bZ.woff +0 -0
- package/apps/web/dist/assets/inter-latin-ext-400-normal-C1nco2VV.woff2 +0 -0
- package/apps/web/dist/assets/inter-latin-ext-500-normal-BxGbmqWO.woff +0 -0
- package/apps/web/dist/assets/inter-latin-ext-500-normal-CV4jyFjo.woff2 +0 -0
- package/apps/web/dist/assets/inter-latin-ext-600-normal-CIVaiw4L.woff +0 -0
- package/apps/web/dist/assets/inter-latin-ext-600-normal-D2bJ5OIk.woff2 +0 -0
- package/apps/web/dist/assets/inter-latin-ext-700-normal-Ca8adRJv.woff2 +0 -0
- package/apps/web/dist/assets/inter-latin-ext-700-normal-TidjK2hL.woff +0 -0
- package/apps/web/dist/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff +0 -0
- package/apps/web/dist/assets/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
- package/apps/web/dist/assets/inter-vietnamese-500-normal-DOriooB6.woff2 +0 -0
- package/apps/web/dist/assets/inter-vietnamese-500-normal-mJboJaSs.woff +0 -0
- package/apps/web/dist/assets/inter-vietnamese-600-normal-BuLX-rYi.woff +0 -0
- package/apps/web/dist/assets/inter-vietnamese-600-normal-Cc8MFFhd.woff2 +0 -0
- package/apps/web/dist/assets/inter-vietnamese-700-normal-BZaoP0fm.woff +0 -0
- package/apps/web/dist/assets/inter-vietnamese-700-normal-DlLaEgI2.woff2 +0 -0
- package/apps/web/dist/assets/lora-cyrillic-400-normal-BedExNGj.woff +0 -0
- package/apps/web/dist/assets/lora-cyrillic-400-normal-CbVom6TB.woff2 +0 -0
- package/apps/web/dist/assets/lora-cyrillic-500-normal-B7VECUNf.woff +0 -0
- package/apps/web/dist/assets/lora-cyrillic-500-normal-CGcjVW1P.woff2 +0 -0
- package/apps/web/dist/assets/lora-cyrillic-600-normal-DuzuWObJ.woff2 +0 -0
- package/apps/web/dist/assets/lora-cyrillic-600-normal-j6UMqgXb.woff +0 -0
- package/apps/web/dist/assets/lora-cyrillic-700-normal-CicHrsUU.woff2 +0 -0
- package/apps/web/dist/assets/lora-cyrillic-700-normal-CoUvLzhc.woff +0 -0
- package/apps/web/dist/assets/lora-cyrillic-ext-400-normal-DwaaZvol.woff2 +0 -0
- package/apps/web/dist/assets/lora-cyrillic-ext-400-normal-PiPRSBNu.woff +0 -0
- package/apps/web/dist/assets/lora-cyrillic-ext-500-normal-4Ud55qIb.woff2 +0 -0
- package/apps/web/dist/assets/lora-cyrillic-ext-500-normal-BM33EBQZ.woff +0 -0
- package/apps/web/dist/assets/lora-cyrillic-ext-600-normal-BobJ8QCm.woff +0 -0
- package/apps/web/dist/assets/lora-cyrillic-ext-600-normal-CYLe3Bq4.woff2 +0 -0
- package/apps/web/dist/assets/lora-cyrillic-ext-700-normal-B20D6wuF.woff +0 -0
- package/apps/web/dist/assets/lora-cyrillic-ext-700-normal-CH2Ef3pd.woff2 +0 -0
- package/apps/web/dist/assets/lora-latin-400-normal-DBJS-Hc6.woff +0 -0
- package/apps/web/dist/assets/lora-latin-400-normal-DnxXpLNu.woff2 +0 -0
- package/apps/web/dist/assets/lora-latin-500-normal-Dbc_1yrl.woff +0 -0
- package/apps/web/dist/assets/lora-latin-500-normal-Dh16O2IA.woff2 +0 -0
- package/apps/web/dist/assets/lora-latin-600-normal-B-3RcLOQ.woff2 +0 -0
- package/apps/web/dist/assets/lora-latin-600-normal-Dc3EneHn.woff +0 -0
- package/apps/web/dist/assets/lora-latin-700-normal-BHK4Pzk4.woff2 +0 -0
- package/apps/web/dist/assets/lora-latin-700-normal-Yfa97ytg.woff +0 -0
- package/apps/web/dist/assets/lora-latin-ext-400-normal-B9GmMl5M.woff +0 -0
- package/apps/web/dist/assets/lora-latin-ext-400-normal-CyviI4c-.woff2 +0 -0
- package/apps/web/dist/assets/lora-latin-ext-500-normal-CVMwgWlS.woff2 +0 -0
- package/apps/web/dist/assets/lora-latin-ext-500-normal-CmiMDADN.woff +0 -0
- package/apps/web/dist/assets/lora-latin-ext-600-normal-BX8pxmH4.woff +0 -0
- package/apps/web/dist/assets/lora-latin-ext-600-normal-CURVZmIT.woff2 +0 -0
- package/apps/web/dist/assets/lora-latin-ext-700-normal-DbHby4fw.woff2 +0 -0
- package/apps/web/dist/assets/lora-latin-ext-700-normal-XBj10pPw.woff +0 -0
- package/apps/web/dist/assets/lora-math-400-normal-BToItYw_.woff +0 -0
- package/apps/web/dist/assets/lora-math-400-normal-D2gccGFf.woff2 +0 -0
- package/apps/web/dist/assets/lora-math-500-normal-CZVvtWMy.woff2 +0 -0
- package/apps/web/dist/assets/lora-math-500-normal-z1mtDCUR.woff +0 -0
- package/apps/web/dist/assets/lora-math-600-normal-B9Wi-uy2.woff2 +0 -0
- package/apps/web/dist/assets/lora-math-600-normal-soY6uGQW.woff +0 -0
- package/apps/web/dist/assets/lora-math-700-normal-BdgFUNlJ.woff2 +0 -0
- package/apps/web/dist/assets/lora-math-700-normal-JjB0YUk-.woff +0 -0
- package/apps/web/dist/assets/lora-symbols-400-normal-BK2bqsD8.woff +0 -0
- package/apps/web/dist/assets/lora-symbols-400-normal-DmcY0X7a.woff2 +0 -0
- package/apps/web/dist/assets/lora-symbols-500-normal-C70LsJbW.woff +0 -0
- package/apps/web/dist/assets/lora-symbols-500-normal-CJHTIF5f.woff2 +0 -0
- package/apps/web/dist/assets/lora-symbols-600-normal-CURAubwP.woff +0 -0
- package/apps/web/dist/assets/lora-symbols-600-normal-DaMEG5Dn.woff2 +0 -0
- package/apps/web/dist/assets/lora-symbols-700-normal-DaE8wqnc.woff +0 -0
- package/apps/web/dist/assets/lora-symbols-700-normal-zYsi5zvy.woff2 +0 -0
- package/apps/web/dist/assets/lora-vietnamese-400-normal-BxA6xcFr.woff2 +0 -0
- package/apps/web/dist/assets/lora-vietnamese-400-normal-DlgyXXxo.woff +0 -0
- package/apps/web/dist/assets/lora-vietnamese-500-normal-LA4e_tum.woff2 +0 -0
- package/apps/web/dist/assets/lora-vietnamese-500-normal-vya0n-2r.woff +0 -0
- package/apps/web/dist/assets/lora-vietnamese-600-normal-B_IFhWKN.woff2 +0 -0
- package/apps/web/dist/assets/lora-vietnamese-600-normal-BnEhOXH8.woff +0 -0
- package/apps/web/dist/assets/lora-vietnamese-700-normal-BHDzxyiD.woff2 +0 -0
- package/apps/web/dist/assets/lora-vietnamese-700-normal-DyKKCAD2.woff +0 -0
- package/apps/web/dist/assets/nosifer-latin-400-normal-DC0JbRme.woff2 +0 -0
- package/apps/web/dist/assets/nosifer-latin-400-normal-DIu8cmES.woff +0 -0
- package/apps/web/dist/assets/nosifer-latin-ext-400-normal-BIsQG7vn.woff +0 -0
- package/apps/web/dist/assets/nosifer-latin-ext-400-normal-BYxd_lOP.woff2 +0 -0
- package/apps/web/dist/assets/nunito-cyrillic-400-normal-D1j0u8EH.woff +0 -0
- package/apps/web/dist/assets/nunito-cyrillic-400-normal-xAOo5cBP.woff2 +0 -0
- package/apps/web/dist/assets/nunito-cyrillic-500-normal-C7KGZCzc.woff2 +0 -0
- package/apps/web/dist/assets/nunito-cyrillic-500-normal-CsSUaxYY.woff +0 -0
- package/apps/web/dist/assets/nunito-cyrillic-600-normal-BUjmtIuu.woff +0 -0
- package/apps/web/dist/assets/nunito-cyrillic-600-normal-DJGQ2h05.woff2 +0 -0
- package/apps/web/dist/assets/nunito-cyrillic-700-normal-DP36NgGt.woff2 +0 -0
- package/apps/web/dist/assets/nunito-cyrillic-700-normal-DfHRUDv-.woff +0 -0
- package/apps/web/dist/assets/nunito-cyrillic-ext-400-normal-CuPM9foi.woff2 +0 -0
- package/apps/web/dist/assets/nunito-cyrillic-ext-400-normal-xaE7D4Sw.woff +0 -0
- package/apps/web/dist/assets/nunito-cyrillic-ext-500-normal-BooqzoBf.woff2 +0 -0
- package/apps/web/dist/assets/nunito-cyrillic-ext-500-normal-ryWF3qTI.woff +0 -0
- package/apps/web/dist/assets/nunito-cyrillic-ext-600-normal-CWPPjBOD.woff2 +0 -0
- package/apps/web/dist/assets/nunito-cyrillic-ext-600-normal-vnfu4DTE.woff +0 -0
- package/apps/web/dist/assets/nunito-cyrillic-ext-700-normal-BuR0mlCG.woff2 +0 -0
- package/apps/web/dist/assets/nunito-cyrillic-ext-700-normal-DfoqN4Gs.woff +0 -0
- package/apps/web/dist/assets/nunito-latin-400-normal-DKg4f3fz.woff +0 -0
- package/apps/web/dist/assets/nunito-latin-400-normal-r8SDr6Up.woff2 +0 -0
- package/apps/web/dist/assets/nunito-latin-500-normal-B5klmw3Q.woff +0 -0
- package/apps/web/dist/assets/nunito-latin-500-normal-EugFkASW.woff2 +0 -0
- package/apps/web/dist/assets/nunito-latin-600-normal-Br8yIETf.woff2 +0 -0
- package/apps/web/dist/assets/nunito-latin-600-normal-Cd0eNu1l.woff +0 -0
- package/apps/web/dist/assets/nunito-latin-700-normal-Dort48En.woff2 +0 -0
- package/apps/web/dist/assets/nunito-latin-700-normal-OcDqTBcA.woff +0 -0
- package/apps/web/dist/assets/nunito-latin-ext-400-normal-CjMJVfGn.woff +0 -0
- package/apps/web/dist/assets/nunito-latin-ext-400-normal-i-8OOpdj.woff2 +0 -0
- package/apps/web/dist/assets/nunito-latin-ext-500-normal-CVNQN0KE.woff +0 -0
- package/apps/web/dist/assets/nunito-latin-ext-500-normal-DpF2BH_v.woff2 +0 -0
- package/apps/web/dist/assets/nunito-latin-ext-600-normal-BKUpuB78.woff +0 -0
- package/apps/web/dist/assets/nunito-latin-ext-600-normal-Dd9Zuxh1.woff2 +0 -0
- package/apps/web/dist/assets/nunito-latin-ext-700-normal-BWeMsAzO.woff2 +0 -0
- package/apps/web/dist/assets/nunito-latin-ext-700-normal-D4woHhbd.woff +0 -0
- package/apps/web/dist/assets/nunito-vietnamese-400-normal-BHkVbP3T.woff2 +0 -0
- package/apps/web/dist/assets/nunito-vietnamese-400-normal-DtOtW02z.woff +0 -0
- package/apps/web/dist/assets/nunito-vietnamese-500-normal-9ShSsgIA.woff +0 -0
- package/apps/web/dist/assets/nunito-vietnamese-500-normal-BpqpEYcO.woff2 +0 -0
- package/apps/web/dist/assets/nunito-vietnamese-600-normal-BY8O6Cug.woff2 +0 -0
- package/apps/web/dist/assets/nunito-vietnamese-600-normal-DO1RqFw5.woff +0 -0
- package/apps/web/dist/assets/nunito-vietnamese-700-normal-C9SQsXvj.woff +0 -0
- package/apps/web/dist/assets/nunito-vietnamese-700-normal-Ch8EUCfz.woff2 +0 -0
- package/apps/web/dist/assets/oss-credits-BvQGQEzd.js +1 -0
- package/apps/web/dist/assets/{phone-5SYD9OrJ.js → phone-CJVAobUx.js} +1 -1
- package/apps/web/dist/assets/playfair-display-cyrillic-400-normal-CjW2EstV.woff2 +0 -0
- package/apps/web/dist/assets/playfair-display-cyrillic-400-normal-ZiRag6zj.woff +0 -0
- package/apps/web/dist/assets/playfair-display-cyrillic-500-normal-DmDODJdV.woff +0 -0
- package/apps/web/dist/assets/playfair-display-cyrillic-500-normal-GO7-LTbC.woff2 +0 -0
- package/apps/web/dist/assets/playfair-display-cyrillic-600-normal-DbWAkkgN.woff +0 -0
- package/apps/web/dist/assets/playfair-display-cyrillic-600-normal-oLY6jnZ7.woff2 +0 -0
- package/apps/web/dist/assets/playfair-display-cyrillic-700-normal-Dk1mTcxf.woff +0 -0
- package/apps/web/dist/assets/playfair-display-cyrillic-700-normal-Dw3uKy19.woff2 +0 -0
- package/apps/web/dist/assets/playfair-display-latin-400-normal-CFtfchNt.woff2 +0 -0
- package/apps/web/dist/assets/playfair-display-latin-400-normal-DHYHbkg3.woff +0 -0
- package/apps/web/dist/assets/playfair-display-latin-500-normal-BScSeVwi.woff +0 -0
- package/apps/web/dist/assets/playfair-display-latin-500-normal-DIxvyhka.woff2 +0 -0
- package/apps/web/dist/assets/playfair-display-latin-600-normal-CZLGqjJe.woff2 +0 -0
- package/apps/web/dist/assets/playfair-display-latin-600-normal-CxxueQ0Z.woff +0 -0
- package/apps/web/dist/assets/playfair-display-latin-700-normal-Bc_1Q1cG.woff +0 -0
- package/apps/web/dist/assets/playfair-display-latin-700-normal-CuDiGg7c.woff2 +0 -0
- package/apps/web/dist/assets/playfair-display-latin-ext-400-normal-BxlSGspa.woff2 +0 -0
- package/apps/web/dist/assets/playfair-display-latin-ext-400-normal-qdZwdvNS.woff +0 -0
- package/apps/web/dist/assets/playfair-display-latin-ext-500-normal-CFxFMdkY.woff +0 -0
- package/apps/web/dist/assets/playfair-display-latin-ext-500-normal-DE-Iylxw.woff2 +0 -0
- package/apps/web/dist/assets/playfair-display-latin-ext-600-normal-BumBfC1v.woff +0 -0
- package/apps/web/dist/assets/playfair-display-latin-ext-600-normal-CEjQclLc.woff2 +0 -0
- package/apps/web/dist/assets/playfair-display-latin-ext-700-normal-C58ejOkc.woff2 +0 -0
- package/apps/web/dist/assets/playfair-display-latin-ext-700-normal-D5HUU8GT.woff +0 -0
- package/apps/web/dist/assets/playfair-display-vietnamese-400-normal-BV2APVTb.woff2 +0 -0
- package/apps/web/dist/assets/playfair-display-vietnamese-400-normal-BbvUAu4N.woff +0 -0
- package/apps/web/dist/assets/playfair-display-vietnamese-500-normal-Jyt54flB.woff2 +0 -0
- package/apps/web/dist/assets/playfair-display-vietnamese-500-normal-_Z41d-72.woff +0 -0
- package/apps/web/dist/assets/playfair-display-vietnamese-600-normal-BPJkAZPN.woff +0 -0
- package/apps/web/dist/assets/playfair-display-vietnamese-600-normal-ICsRR-qJ.woff2 +0 -0
- package/apps/web/dist/assets/playfair-display-vietnamese-700-normal-CaKJSIny.woff2 +0 -0
- package/apps/web/dist/assets/playfair-display-vietnamese-700-normal-Cr1rw0mr.woff +0 -0
- package/apps/web/dist/assets/settings-menu-DjgZMuyV.js +1 -0
- package/apps/web/dist/assets/theme-BucH2rUv.js +11 -0
- package/apps/web/dist/assets/theme-CbR9-ayl.css +1 -0
- package/apps/web/dist/assets/ui-LJgQlXbd.js +137 -0
- package/apps/web/dist/assets/{upload-Bevcvx5V.js → upload-Dz86uI5u.js} +1 -1
- package/apps/web/dist/assets/{wrench-ZD5SCsz9.js → wrench-Dr5LakQv.js} +1 -1
- package/apps/web/dist/assets/young-serif-latin-400-normal-D1tz0Z9s.woff +0 -0
- package/apps/web/dist/assets/young-serif-latin-400-normal-DIMmNPI9.woff2 +0 -0
- package/apps/web/dist/assets/young-serif-latin-ext-400-normal-4arC2Gh9.woff +0 -0
- package/apps/web/dist/assets/young-serif-latin-ext-400-normal-DzElnxZw.woff2 +0 -0
- package/apps/web/dist/embed.js +6 -1
- package/apps/web/dist/index.html +4 -4
- package/apps/web/dist/install.sh +102 -5
- package/apps/web/dist/mcp/flow.html +212 -54
- package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/definition.d.ts +12 -0
- package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/definition.js +16 -0
- package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/json-schema.d.ts +2 -0
- package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/json-schema.js +13 -1
- package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/marketplace.d.ts +2 -1
- package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/merge.js +10 -1
- package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/projects.d.ts +17 -2
- package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/projects.js +21 -1
- package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/run.d.ts +31 -4
- package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/run.js +2 -0
- package/node_modules/@engenty/wizards-shared/dist/theme.d.ts +169 -0
- package/node_modules/@engenty/wizards-shared/dist/theme.js +271 -0
- package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/wizard-package.d.ts +45 -1
- package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/wizard-package.js +6 -1
- package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/package.json +1 -1
- package/package.json +3 -3
- package/plugin/.claude-plugin/plugin.json +4 -3
- package/plugin/LICENSE +21 -0
- package/plugin/README.md +61 -39
- package/plugin/{hooks → claude-code}/register.tsx +1 -2
- package/plugin/plugin.json +47 -0
- package/apps/web/dist/assets/ChatView-9RkWts5F.js +0 -10
- package/apps/web/dist/assets/EditorPage-CCsKKcYo.js +0 -4
- package/apps/web/dist/assets/NewWizardPage-tidycL7Y.js +0 -7
- package/apps/web/dist/assets/OnboardingPage-DtVuaIuv.js +0 -1
- package/apps/web/dist/assets/ProjectPage-BsWgCP5z.js +0 -1
- package/apps/web/dist/assets/PublicRunner-CkA_etKX.js +0 -1
- package/apps/web/dist/assets/RunDrawer-CkFpnWCC.js +0 -4
- package/apps/web/dist/assets/RunnerView-CxTFM-lx.js +0 -1
- package/apps/web/dist/assets/SettingsPage-DM1wNAE7.js +0 -1
- package/apps/web/dist/assets/SetupPage-BKnQqiab.js +0 -1
- package/apps/web/dist/assets/SharePage-CTTSudtp.js +0 -1
- package/apps/web/dist/assets/changelog-DBEwyB1f.js +0 -1
- package/apps/web/dist/assets/engenty-Cko4qGFV.js +0 -1
- package/apps/web/dist/assets/esm-DtNAg8uF.js +0 -7
- package/apps/web/dist/assets/fluffy-engenty-Db7agOjV.js +0 -520
- package/apps/web/dist/assets/index-V1M59Yez.css +0 -1
- package/apps/web/dist/assets/index-xIz8znhq.js +0 -14
- package/apps/web/dist/assets/oss-credits-BWE03Xax.js +0 -1
- package/apps/web/dist/assets/settings-menu-Bn5-7Lqk.js +0 -1
- package/apps/web/dist/assets/ui-s39eGOtW.js +0 -137
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/assistant.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/assistant.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/changes.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/changes.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/claude-plugin.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/claude-plugin.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/connectors.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/connectors.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/decision.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/decision.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/data-tables/columns-format.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/data-tables/columns-format.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/data-tables/columns-value.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/data-tables/columns-value.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/data-tables/columns.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/data-tables/columns.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/data-tables/index.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/data-tables/index.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/search-index/catalog-lexical.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/search-index/catalog-lexical.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/search-index/catalog-rank.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/search-index/catalog-rank.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/feature-flags.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/feature-flags.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/features.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/features.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/fit.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/fit.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/knowledge.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/knowledge.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/marketplace-entry.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/marketplace-entry.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/marketplace-search.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/marketplace-search.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/marketplace.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/merge.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/numbers.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/numbers.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/providers.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/providers.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/runner-texts.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/runner-texts.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/runners.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/runners.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/shape.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/shape.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/sharing.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/sharing.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/space-data.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/space-data.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/store.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/store.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/surface.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/surface.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/texts.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/texts.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/translation.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/translation.js +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/workspace.d.ts +0 -0
- /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/workspace.js +0 -0
- /package/plugin/{hooks → claude-code}/engenty.ts +0 -0
- /package/plugin/{hooks → claude-code}/hooks.json +0 -0
- /package/plugin/{hooks → claude-code}/pane.test.tsx +0 -0
- /package/plugin/{types → claude-code/types}/index.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { note } from "@engenty-
|
|
2
|
-
import { PACKAGE_MIME } from "@engenty-
|
|
1
|
+
import { note } from "@engenty/wizards-shared/run";
|
|
2
|
+
import { PACKAGE_MIME } from "@engenty/wizards-shared/wizard-package";
|
|
3
3
|
import { Hono } from "hono";
|
|
4
4
|
import { bodyLimit } from "hono/body-limit";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { localLang } from "@engenty-
|
|
1
|
+
import { localLang } from "@engenty/wizards-shared/definition";
|
|
2
2
|
import { serverText } from "../texts.js";
|
|
3
3
|
/**
|
|
4
4
|
* The language a visitor's request asks for, as the studio starts in it (`localLang`): the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CAPABILITY_IDS, INDUSTRY_IDS, ITEM_FORMAT_IDS, MARKETPLACE_PLAN_IDS, USE_CASE_IDS, } from "@engenty-
|
|
1
|
+
import { CAPABILITY_IDS, INDUSTRY_IDS, ITEM_FORMAT_IDS, MARKETPLACE_PLAN_IDS, USE_CASE_IDS, } from "@engenty/wizards-shared/marketplace";
|
|
2
2
|
import { Hono } from "hono";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { asLang, marketplaceDetail, searchMarketplace, searchMarketplaceAsGuest, starEntry, } from "../services/marketplace.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FORMATS, isLang, LANG_CODE, LANGS, LIST_FORMATS, TEXT_CLASSES, wizardLang, } from "@engenty-
|
|
2
|
-
import { TableColumnValueError } from "@engenty-
|
|
3
|
-
import { noteText, } from "@engenty-
|
|
4
|
-
import { machineTranslated, translateDefinition, } from "@engenty-
|
|
1
|
+
import { FORMATS, isLang, LANG_CODE, LANGS, LIST_FORMATS, TEXT_CLASSES, wizardLang, } from "@engenty/wizards-shared/definition";
|
|
2
|
+
import { TableColumnValueError } from "@engenty/wizards-shared/engenty/data-tables";
|
|
3
|
+
import { noteText, } from "@engenty/wizards-shared/run";
|
|
4
|
+
import { machineTranslated, translateDefinition, } from "@engenty/wizards-shared/translation";
|
|
5
5
|
import { getConnInfo } from "@hono/node-server/conninfo";
|
|
6
6
|
import { and, eq } from "drizzle-orm";
|
|
7
7
|
import { Hono } from "hono";
|
|
@@ -138,7 +138,7 @@ async function accessibleRun(c, runId, opts = {}) {
|
|
|
138
138
|
}
|
|
139
139
|
async function viewOf(run) {
|
|
140
140
|
const w = await db.query.wizard.findFirst({ where: eq(schema.wizard.id, run.wizardId) });
|
|
141
|
-
return runView(run, await brandView(w?.projectId ?? ""));
|
|
141
|
+
return runView(run, await brandView(w?.projectId ?? "", run.definition.themes));
|
|
142
142
|
}
|
|
143
143
|
function commandError(c, err) {
|
|
144
144
|
if (err instanceof RunInputError) {
|
|
@@ -168,6 +168,7 @@ function tenantFrom(find) {
|
|
|
168
168
|
const wizardLink = tenantFrom((c) => tenantOfLink(c.req.param("token") ?? "", "wizard"));
|
|
169
169
|
const resultLink = tenantFrom((c) => tenantOfLink(c.req.param("token") ?? "", "result"));
|
|
170
170
|
const logoLink = tenantFrom((c) => tenantOfLink(c.req.param("id") ?? "", "logo"));
|
|
171
|
+
const fontLink = tenantFrom((c) => tenantOfLink(c.req.param("id") ?? "", "font"));
|
|
171
172
|
const runTenant = tenantFrom((c) => tenantOfRun(c.req.param("id") ?? ""));
|
|
172
173
|
/** Wrong guesses at a wizard's ID, per address and hour: 32^8 IDs stay out of reach. */
|
|
173
174
|
const codeMisses = new Map();
|
|
@@ -235,7 +236,10 @@ export function pageFields(def) {
|
|
|
235
236
|
}))
|
|
236
237
|
: []);
|
|
237
238
|
}
|
|
238
|
-
/**
|
|
239
|
+
/**
|
|
240
|
+
* What a wizard's page shows before a run: in the viewer's language where `as` is given, in the
|
|
241
|
+
* theme the request asks for where the wizard offers it.
|
|
242
|
+
*/
|
|
239
243
|
async function publicBody(c, w, original, as) {
|
|
240
244
|
const translated = as ? translateDefinition(original, as.memory) : null;
|
|
241
245
|
const def = translated?.def ?? original;
|
|
@@ -245,8 +249,10 @@ async function publicBody(c, w, original, as) {
|
|
|
245
249
|
title: def.title,
|
|
246
250
|
description: def.description,
|
|
247
251
|
avatar: def.avatar,
|
|
252
|
+
costume: def.costume,
|
|
248
253
|
intro: def.intro ?? null,
|
|
249
|
-
|
|
254
|
+
// `?theme=`: the theme the page showing the wizard asks for (an embed's `data-theme`).
|
|
255
|
+
brand: await brandView(w.projectId, def.themes, c.req.query("theme")?.slice(0, 80)),
|
|
250
256
|
turnstileSiteKey: env.turnstile.siteKey || null,
|
|
251
257
|
available: !reason,
|
|
252
258
|
unavailableReason: reason && noteText(reason, requestLang(c)),
|
|
@@ -283,6 +289,7 @@ export const publicRoutes = new Hono()
|
|
|
283
289
|
.use("/wizards/:token", wizardLink)
|
|
284
290
|
.use("/wizards/:token/*", wizardLink)
|
|
285
291
|
.use("/logos/:id", logoLink)
|
|
292
|
+
.use("/fonts/:id", fontLink)
|
|
286
293
|
.get("/wizards/:token", async (c) => {
|
|
287
294
|
const found = await publishedWizard(c.req.param("token"));
|
|
288
295
|
if (!found) {
|
|
@@ -480,6 +487,26 @@ export const publicRoutes = new Hono()
|
|
|
480
487
|
// An SVG logo is shown, never run.
|
|
481
488
|
"content-security-policy": "sandbox",
|
|
482
489
|
});
|
|
490
|
+
})
|
|
491
|
+
// A brand font's own file, while its space's brand names it: run pages, embeds and hosts'
|
|
492
|
+
// frames load it from here, so any origin may.
|
|
493
|
+
.get("/fonts/:id", async (c) => {
|
|
494
|
+
const id = c.req.param("id");
|
|
495
|
+
const row = await db.query.projectFile.findFirst({ where: eq(schema.projectFile.id, id) });
|
|
496
|
+
const p = row
|
|
497
|
+
? await db.query.project.findFirst({ where: eq(schema.project.id, row.projectId) })
|
|
498
|
+
: null;
|
|
499
|
+
const named = p?.brand.fonts?.some((f) => f.source && "file" in f.source && f.source.file === id);
|
|
500
|
+
const found = named && row?.mime.startsWith("font/") ? await loadAsset(id) : null;
|
|
501
|
+
if (!found) {
|
|
502
|
+
return c.notFound();
|
|
503
|
+
}
|
|
504
|
+
return c.body(new Uint8Array(found.data), 200, {
|
|
505
|
+
"content-type": found.row.mime,
|
|
506
|
+
"cache-control": "public, max-age=86400",
|
|
507
|
+
"access-control-allow-origin": "*",
|
|
508
|
+
"cross-origin-resource-policy": "cross-origin",
|
|
509
|
+
});
|
|
483
510
|
});
|
|
484
511
|
export const runRoutes = new Hono()
|
|
485
512
|
.use("/:id", runTenant)
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { mkdirSync } from "node:fs";
|
|
2
2
|
import { join } from "node:path";
|
|
3
|
-
import { ASSISTANT_LAYOUTS, ASSISTANT_PAGE_BYTES, assistantSignalSchema, assistantTurnSchema, } from "@engenty-
|
|
4
|
-
import { LANGS, MODEL_CLASSES, TEXT_CLASSES, wizardLang, } from "@engenty-
|
|
5
|
-
import { CATEGORY_TYPES, whereSchema } from "@engenty-
|
|
6
|
-
import { PROJECT_FILE_KINDS } from "@engenty-
|
|
7
|
-
import { isCreditsRef } from "@engenty-
|
|
8
|
-
import { note } from "@engenty-
|
|
9
|
-
import { wizardTexts } from "@engenty-
|
|
10
|
-
import { PACKAGE_EXTENSION, PACKAGE_MAX_BYTES, PACKAGE_MIME, } from "@engenty-
|
|
3
|
+
import { ASSISTANT_LAYOUTS, ASSISTANT_PAGE_BYTES, assistantSignalSchema, assistantTurnSchema, } from "@engenty/wizards-shared/assistant";
|
|
4
|
+
import { LANGS, MODEL_CLASSES, TEXT_CLASSES, wizardLang, } from "@engenty/wizards-shared/definition";
|
|
5
|
+
import { CATEGORY_TYPES, whereSchema } from "@engenty/wizards-shared/knowledge";
|
|
6
|
+
import { PROJECT_FILE_KINDS } from "@engenty/wizards-shared/projects";
|
|
7
|
+
import { isCreditsRef } from "@engenty/wizards-shared/providers";
|
|
8
|
+
import { note } from "@engenty/wizards-shared/run";
|
|
9
|
+
import { wizardTexts } from "@engenty/wizards-shared/translation";
|
|
10
|
+
import { PACKAGE_EXTENSION, PACKAGE_MAX_BYTES, PACKAGE_MIME, } from "@engenty/wizards-shared/wizard-package";
|
|
11
11
|
import { generateText } from "ai";
|
|
12
12
|
import { Hono } from "hono";
|
|
13
13
|
import { streamSSE } from "hono/streaming";
|
|
@@ -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";
|
|
@@ -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) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2
|
-
import { note } from "@engenty-
|
|
2
|
+
import { note } from "@engenty/wizards-shared/run";
|
|
3
3
|
import { and, eq } from "drizzle-orm";
|
|
4
4
|
import { db, schema } from "../db/client.js";
|
|
5
5
|
import { managed, tenantInfo } from "../manage.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { textLang, wizardLang, } from "@engenty-
|
|
2
|
-
import { standaloneEntry } from "@engenty-
|
|
3
|
-
import { pluginsOf } from "@engenty-
|
|
4
|
-
import { noteText } from "@engenty-
|
|
1
|
+
import { textLang, wizardLang, } from "@engenty/wizards-shared/definition";
|
|
2
|
+
import { standaloneEntry } from "@engenty/wizards-shared/fit";
|
|
3
|
+
import { pluginsOf } from "@engenty/wizards-shared/marketplace";
|
|
4
|
+
import { noteText } from "@engenty/wizards-shared/run";
|
|
5
5
|
import { and, count, desc, eq, gte, inArray, isNotNull, or, sql } from "drizzle-orm";
|
|
6
6
|
import { MICROS_PER_CREDIT } from "../credits/credits.js";
|
|
7
7
|
import { db, schema } from "../db/client.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ASSISTANT_LAYOUTS } from "@engenty-
|
|
2
|
-
import { note } from "@engenty-
|
|
1
|
+
import { ASSISTANT_LAYOUTS } from "@engenty/wizards-shared/assistant";
|
|
2
|
+
import { note } from "@engenty/wizards-shared/run";
|
|
3
3
|
import { generateText } from "ai";
|
|
4
4
|
import { and, asc, desc, eq, isNotNull, isNull, sql } from "drizzle-orm";
|
|
5
5
|
import { nanoid } from "nanoid";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { GRADIENT_TYPES, gradientCss, mainLogo, runTheme, } from "@engenty-
|
|
2
|
-
import { note } from "@engenty-
|
|
1
|
+
import { GRADIENT_TYPES, gradientCss, mainLogo, runTheme, } from "@engenty/wizards-shared/projects";
|
|
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
|
-
/**
|
|
20
|
-
|
|
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:
|
|
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
|
|
35
|
+
theme,
|
|
28
36
|
};
|
|
29
37
|
}
|
|
30
38
|
const HEX = /^#[0-9a-f]{6}$/i;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
-
import { note } from "@engenty-
|
|
2
|
+
import { note } from "@engenty/wizards-shared/run";
|
|
3
3
|
import { and, asc, eq, inArray, isNotNull, isNull, like } from "drizzle-orm";
|
|
4
4
|
import { accountToken, linkedAccount } from "../auth/account.js";
|
|
5
5
|
import { control, controlDb, db, schema } from "../db/client.js";
|
|
@@ -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.");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cleanPath, isTextMime, mimeForPath, WORKSPACE_LIMITS, } from "@engenty-
|
|
1
|
+
import { cleanPath, isTextMime, mimeForPath, WORKSPACE_LIMITS, } from "@engenty/wizards-shared/workspace";
|
|
2
2
|
import { and, asc, eq, inArray } from "drizzle-orm";
|
|
3
3
|
import { db, schema } from "../db/client.js";
|
|
4
4
|
import { getBlob, putBlob } from "../files/blobs.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { dayOf, slugOf } from "@engenty-
|
|
2
|
-
import { note } from "@engenty-
|
|
3
|
-
import { columnIdOf } from "@engenty-
|
|
1
|
+
import { dayOf, slugOf } from "@engenty/wizards-shared/knowledge";
|
|
2
|
+
import { note } from "@engenty/wizards-shared/run";
|
|
3
|
+
import { columnIdOf } from "@engenty/wizards-shared/space-data";
|
|
4
4
|
import { generateText, Output } from "ai";
|
|
5
5
|
import { and, eq, inArray, isNull } from "drizzle-orm";
|
|
6
6
|
import { nanoid } from "nanoid";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { formatTableCell } from "@engenty-
|
|
2
|
-
import { slugOf, } from "@engenty-
|
|
1
|
+
import { formatTableCell } from "@engenty/wizards-shared/engenty/data-tables";
|
|
2
|
+
import { slugOf, } from "@engenty/wizards-shared/knowledge";
|
|
3
3
|
import { and, asc, count, eq, inArray, isNotNull, isNull } from "drizzle-orm";
|
|
4
4
|
import { db, schema } from "../db/client.js";
|
|
5
5
|
import { embeddingModel, systemOneAccess } from "../models.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
2
|
import { statSync } from "node:fs";
|
|
3
|
-
import { DEFINITION_VERSION, readable, wizardSchema, } from "@engenty-
|
|
4
|
-
import { capabilitiesOf, costTierOf, effortOf, formatsOf, MARKETPLACE_LANGS, pluginsOf, } from "@engenty-
|
|
5
|
-
import { wizardOutline } from "@engenty-
|
|
6
|
-
import { searchEntries } from "@engenty-
|
|
7
|
-
import { note } from "@engenty-
|
|
3
|
+
import { DEFINITION_VERSION, readable, wizardSchema, } from "@engenty/wizards-shared/definition";
|
|
4
|
+
import { capabilitiesOf, costTierOf, effortOf, formatsOf, MARKETPLACE_LANGS, pluginsOf, } from "@engenty/wizards-shared/marketplace";
|
|
5
|
+
import { wizardOutline } from "@engenty/wizards-shared/marketplace-entry";
|
|
6
|
+
import { searchEntries } from "@engenty/wizards-shared/marketplace-search";
|
|
7
|
+
import { note } from "@engenty/wizards-shared/run";
|
|
8
8
|
import { and, eq, inArray, notInArray } from "drizzle-orm";
|
|
9
9
|
import { formulaEstimate } from "../credits/estimate.js";
|
|
10
10
|
import { control, controlDb, db, schema, withTenant } from "../db/client.js";
|
|
@@ -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: [],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { note } from "@engenty-
|
|
2
|
-
import { manifestSchema, PACKAGE_FILES, PACKAGE_FORMAT, PACKAGE_MANIFEST, PACKAGE_MAX_BYTES, } from "@engenty-
|
|
3
|
-
import { cleanPath, WORKSPACE_LIMITS } from "@engenty-
|
|
1
|
+
import { note } from "@engenty/wizards-shared/run";
|
|
2
|
+
import { manifestSchema, PACKAGE_FILES, PACKAGE_FORMAT, PACKAGE_MANIFEST, PACKAGE_MAX_BYTES, } from "@engenty/wizards-shared/wizard-package";
|
|
3
|
+
import { cleanPath, WORKSPACE_LIMITS } from "@engenty/wizards-shared/workspace";
|
|
4
4
|
import { strFromU8, unzipSync } from "fflate";
|
|
5
5
|
import { ServiceError } from "./errors.js";
|
|
6
6
|
/**
|
|
@@ -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 {
|
|
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) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PACKAGE_EXTENSION, PACKAGE_FILES, PACKAGE_FORMAT, PACKAGE_MANIFEST, PACKAGE_SCHEMA_URL, } from "@engenty-
|
|
1
|
+
import { PACKAGE_EXTENSION, PACKAGE_FILES, PACKAGE_FORMAT, PACKAGE_MANIFEST, PACKAGE_SCHEMA_URL, } from "@engenty/wizards-shared/wizard-package";
|
|
2
2
|
import { and, eq, isNull } from "drizzle-orm";
|
|
3
3
|
import { strToU8, zipSync } from "fflate";
|
|
4
4
|
import { listConnectors } from "../connectors/external.js";
|
|
@@ -10,8 +10,9 @@ 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
|
-
/** A wizard as a file — the format is `@engenty-
|
|
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. */
|
|
16
17
|
export const KNOWLEDGE_DIR = "knowledge/";
|
|
17
18
|
/** How much of the project's knowledge a package takes along: enough pages, never the whole space. */
|
|
@@ -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 }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PROJECT_LIMITS, projectFileLimit, } from "@engenty-
|
|
2
|
-
import { note } from "@engenty-
|
|
1
|
+
import { PROJECT_LIMITS, projectFileLimit, } from "@engenty/wizards-shared/projects";
|
|
2
|
+
import { note } from "@engenty/wizards-shared/run";
|
|
3
3
|
import { generateText } from "ai";
|
|
4
4
|
import { and, asc, count, eq, max } from "drizzle-orm";
|
|
5
5
|
import { db, schema } from "../db/client.js";
|
|
@@ -351,7 +351,7 @@ async function removeRow(row) {
|
|
|
351
351
|
await dropConverted(row.id);
|
|
352
352
|
await db.delete(schema.projectFile).where(eq(schema.projectFile.id, row.id));
|
|
353
353
|
await removeAsset(row.id);
|
|
354
|
-
if (row.kind === "logo") {
|
|
354
|
+
if (row.kind === "logo" || row.mime.startsWith("font/")) {
|
|
355
355
|
await dropLinks([row.id]);
|
|
356
356
|
}
|
|
357
357
|
spaceFileChanged("space.file.removed", row);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { formatTableCell } from "@engenty-
|
|
1
|
+
import { formatTableCell } from "@engenty/wizards-shared/engenty/data-tables";
|
|
2
2
|
import { embedMany } from "ai";
|
|
3
3
|
import { and, eq, inArray, isNotNull, isNull, sql } from "drizzle-orm";
|
|
4
4
|
import { db, schema, withTenant } from "../db/client.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { COLOR_SECTION_KINDS, cleanAssetSections, cleanLogoSections, FACT_TYPES, FONT_USES, FONT_WEIGHTS, GRADIENT_TYPES, orderColors, PROJECT_LIMITS, RULE_MARKS, } from "@engenty-
|
|
2
|
-
import { note } from "@engenty-
|
|
1
|
+
import { COLOR_SECTION_KINDS, cleanAssetSections, cleanLogoSections, FACT_TYPES, FONT_USES, FONT_WEIGHTS, GRADIENT_TYPES, orderColors, PROJECT_LIMITS, RULE_MARKS, } from "@engenty/wizards-shared/projects";
|
|
2
|
+
import { note } from "@engenty/wizards-shared/run";
|
|
3
3
|
import { and, count, eq, isNull } from "drizzle-orm";
|
|
4
4
|
import { nanoid } from "nanoid";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { textLang, wizardLang } from "@engenty-
|
|
2
|
-
import { note } from "@engenty-
|
|
3
|
-
import { BUILT_IN_RUNNERS, CONVERSATION_RUNNERS, DEFAULT_RUNNER, DEFAULT_RUNNER_SETTINGS, runnerFit, } from "@engenty-
|
|
1
|
+
import { textLang, wizardLang } from "@engenty/wizards-shared/definition";
|
|
2
|
+
import { note } from "@engenty/wizards-shared/run";
|
|
3
|
+
import { BUILT_IN_RUNNERS, CONVERSATION_RUNNERS, DEFAULT_RUNNER, DEFAULT_RUNNER_SETTINGS, runnerFit, } from "@engenty/wizards-shared/runners";
|
|
4
4
|
import { env } from "../env.js";
|
|
5
5
|
import { conversationAccess, conversationAvailable } from "../models.js";
|
|
6
6
|
import { pluginsOf } from "../plugins/registry.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FIELD_WAYS, formatsFor, isDecidedField, shownFields, slotText, wizardLang, } from "@engenty-
|
|
2
|
-
import { note } from "@engenty-
|
|
1
|
+
import { FIELD_WAYS, formatsFor, isDecidedField, shownFields, slotText, wizardLang, } from "@engenty/wizards-shared/definition";
|
|
2
|
+
import { note } from "@engenty/wizards-shared/run";
|
|
3
3
|
import { and, count, desc, eq, gte, inArray, max, or, sql } from "drizzle-orm";
|
|
4
4
|
import { canSpend, MICROS_PER_CREDIT } from "../credits/credits.js";
|
|
5
5
|
import { db, schema } from "../db/client.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { note } from "@engenty-
|
|
1
|
+
import { note } from "@engenty/wizards-shared/run";
|
|
2
2
|
import { and, eq, isNotNull, lt } from "drizzle-orm";
|
|
3
3
|
import { nanoid } from "nanoid";
|
|
4
4
|
import { db, schema } from "../db/client.js";
|
|
@@ -67,8 +67,13 @@ export async function shareView(run) {
|
|
|
67
67
|
token: run.shareToken ?? "",
|
|
68
68
|
title: result?.title ?? def.title,
|
|
69
69
|
message: result?.type === "result" ? (result.message ?? null) : null,
|
|
70
|
-
wizard: {
|
|
71
|
-
|
|
70
|
+
wizard: {
|
|
71
|
+
title: def.title,
|
|
72
|
+
description: def.description,
|
|
73
|
+
avatar: def.avatar,
|
|
74
|
+
costume: def.costume,
|
|
75
|
+
},
|
|
76
|
+
brand: await brandView(w?.projectId ?? "", def.themes),
|
|
72
77
|
shown,
|
|
73
78
|
createdAt: run.createdAt.toISOString(),
|
|
74
79
|
expiresAt: run.expiresAt?.toISOString() ?? null,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { factKey, PROJECT_LIMITS } from "@engenty-
|
|
2
|
-
import { note } from "@engenty-
|
|
1
|
+
import { factKey, PROJECT_LIMITS } from "@engenty/wizards-shared/projects";
|
|
2
|
+
import { note } from "@engenty/wizards-shared/run";
|
|
3
3
|
import { nanoid } from "nanoid";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { runStudioAssistant } from "../agents/studio-assistant.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CATEGORY_TYPES, dayOf, } from "@engenty-
|
|
2
|
-
import { readNumber } from "@engenty-
|
|
3
|
-
import { note } from "@engenty-
|
|
1
|
+
import { CATEGORY_TYPES, dayOf, } from "@engenty/wizards-shared/knowledge";
|
|
2
|
+
import { readNumber } from "@engenty/wizards-shared/numbers";
|
|
3
|
+
import { note } from "@engenty/wizards-shared/run";
|
|
4
4
|
import { and, asc, eq, inArray, isNotNull, or, sql } from "drizzle-orm";
|
|
5
5
|
import { nanoid } from "nanoid";
|
|
6
6
|
import { db, schema } from "../db/client.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TableColumnValueError, tableColumnsSchema, } from "@engenty-
|
|
2
|
-
import { note } from "@engenty-
|
|
3
|
-
import { editCells, SPACE_DATA_LIMITS, } from "@engenty-
|
|
4
|
-
import { rowKey } from "@engenty-
|
|
1
|
+
import { TableColumnValueError, tableColumnsSchema, } from "@engenty/wizards-shared/engenty/data-tables";
|
|
2
|
+
import { note } from "@engenty/wizards-shared/run";
|
|
3
|
+
import { editCells, SPACE_DATA_LIMITS, } from "@engenty/wizards-shared/space-data";
|
|
4
|
+
import { rowKey } from "@engenty/wizards-shared/store";
|
|
5
5
|
import { and, asc, count, desc, eq, inArray, isNotNull, isNull, max } from "drizzle-orm";
|
|
6
6
|
import { nanoid } from "nanoid";
|
|
7
7
|
import { db, schema } from "../db/client.js";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
-
import { tableColumnsSchema } from "@engenty-
|
|
3
|
-
import { CATEGORY_TYPES } from "@engenty-
|
|
4
|
-
import { PROJECT_LIMITS } from "@engenty-
|
|
5
|
-
import { note } from "@engenty-
|
|
6
|
-
import { SPACE_DATA_LIMITS } from "@engenty-
|
|
7
|
-
import {
|
|
2
|
+
import { tableColumnsSchema } from "@engenty/wizards-shared/engenty/data-tables";
|
|
3
|
+
import { CATEGORY_TYPES } from "@engenty/wizards-shared/knowledge";
|
|
4
|
+
import { PROJECT_LIMITS } from "@engenty/wizards-shared/projects";
|
|
5
|
+
import { note } from "@engenty/wizards-shared/run";
|
|
6
|
+
import { SPACE_DATA_LIMITS } from "@engenty/wizards-shared/space-data";
|
|
7
|
+
import { MAX_WIZARD_THEMES, themeSchema } from "@engenty/wizards-shared/theme";
|
|
8
|
+
import { WORKSPACE_LIMITS } from "@engenty/wizards-shared/workspace";
|
|
8
9
|
import { and, count, eq, inArray, isNull, notInArray, sql } from "drizzle-orm";
|
|
9
10
|
import { nanoid } from "nanoid";
|
|
10
11
|
import { z } from "zod";
|
|
@@ -67,6 +68,8 @@ export const syncWizardSchema = z.object({
|
|
|
67
68
|
.default([]),
|
|
68
69
|
shareEnabled: z.boolean().default(true),
|
|
69
70
|
dailyRunLimit: z.number().int().min(1).max(10_000).optional(),
|
|
71
|
+
/** The install's themes the wizard names; the cloud keeps them as the install has them. */
|
|
72
|
+
themes: z.array(themeSchema).max(MAX_WIZARD_THEMES).default([]),
|
|
70
73
|
});
|
|
71
74
|
export const syncSettingsSchema = z.object({
|
|
72
75
|
shareEnabled: z.boolean().optional(),
|
|
@@ -196,6 +199,17 @@ async function syncLogo(projectId, logo) {
|
|
|
196
199
|
await removeProjectFile(projectId, old.id);
|
|
197
200
|
}
|
|
198
201
|
}
|
|
202
|
+
/** The install's themes as it has them: a synced space is a mirror, so the install's version wins. */
|
|
203
|
+
async function mirrorThemes(project, themes) {
|
|
204
|
+
if (!themes.length) {
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
const ids = new Set(themes.map((t) => t.id));
|
|
208
|
+
await db
|
|
209
|
+
.update(schema.project)
|
|
210
|
+
.set({ themes: [...project.themes.filter((t) => !ids.has(t.id)), ...themes] })
|
|
211
|
+
.where(eq(schema.project.id, project.id));
|
|
212
|
+
}
|
|
199
213
|
/** Makes or updates the synced project: its name and what it says about itself (the logo: syncLogo). */
|
|
200
214
|
async function syncSpace(spaceId, space) {
|
|
201
215
|
const existing = await syncedProject(spaceId);
|
|
@@ -247,6 +261,7 @@ export async function syncWizard(rawSpaceId, rawWizardId, input) {
|
|
|
247
261
|
const files = await keepFiles(input.files.map((f) => ({ path: f.path, mime: f.mime, data: Buffer.from(f.data, "base64") })));
|
|
248
262
|
const taken = await inTransaction(async () => {
|
|
249
263
|
const project = await syncSpace(spaceId, input.space);
|
|
264
|
+
await mirrorThemes(project, input.themes);
|
|
250
265
|
const existing = await db.query.wizard.findFirst({
|
|
251
266
|
where: and(eq(schema.wizard.id, wizardId), eq(schema.wizard.tenantId, currentTenant())),
|
|
252
267
|
});
|