@engenty/wizards-runtime 0.8.0 → 0.9.0

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 (215) hide show
  1. package/apps/runtime/dist/agents/architect.js +2 -2
  2. package/apps/runtime/dist/agents/studio-assistant.js +1 -1
  3. package/apps/runtime/dist/agents/website.js +1 -1
  4. package/apps/runtime/dist/app.js +1 -1
  5. package/apps/runtime/dist/assistant/browser.js +1 -1
  6. package/apps/runtime/dist/authoring/guide.js +2 -2
  7. package/apps/runtime/dist/authoring/ops.js +1 -1
  8. package/apps/runtime/dist/cli/features.js +1 -1
  9. package/apps/runtime/dist/cli/validate.js +2 -2
  10. package/apps/runtime/dist/connectors/external.js +1 -1
  11. package/apps/runtime/dist/connectors/index.js +2 -2
  12. package/apps/runtime/dist/connectors/via-account.js +1 -1
  13. package/apps/runtime/dist/credits/estimate.js +1 -1
  14. package/apps/runtime/dist/docs/dev/index.md +1 -1
  15. package/apps/runtime/dist/docs/dev/integration/index.md +1 -1
  16. package/apps/runtime/dist/docs/dev/integration/openui.md +1 -1
  17. package/apps/runtime/dist/docs/dev/integration/own-ui.md +2 -2
  18. package/apps/runtime/dist/docs/dev/plugins/examples.md +2 -3
  19. package/apps/runtime/dist/docs/dev/plugins/studio.md +5 -6
  20. package/apps/runtime/dist/docs/dev/plugins/styling.md +10 -7
  21. package/apps/runtime/dist/docs/user/build-a-wizard.md +2 -2
  22. package/apps/runtime/dist/docs/user/space.md +14 -10
  23. package/apps/runtime/dist/documents/parse.js +1 -1
  24. package/apps/runtime/dist/engine/decide.js +1 -1
  25. package/apps/runtime/dist/engine/events.js +1 -1
  26. package/apps/runtime/dist/engine/input.js +3 -3
  27. package/apps/runtime/dist/engine/prepare.js +1 -1
  28. package/apps/runtime/dist/engine/requirements.js +3 -3
  29. package/apps/runtime/dist/engine/runner.js +6 -6
  30. package/apps/runtime/dist/engine/steps.js +6 -6
  31. package/apps/runtime/dist/engine/surface.js +3 -3
  32. package/apps/runtime/dist/engine/template.js +4 -4
  33. package/apps/runtime/dist/features.js +1 -1
  34. package/apps/runtime/dist/film/project.js +2 -2
  35. package/apps/runtime/dist/film/step.js +2 -2
  36. package/apps/runtime/dist/harness/apple.js +1 -1
  37. package/apps/runtime/dist/harness/claude.js +1 -1
  38. package/apps/runtime/dist/harness/codex.js +1 -1
  39. package/apps/runtime/dist/harness/model.js +1 -1
  40. package/apps/runtime/dist/harness/terminal.js +1 -1
  41. package/apps/runtime/dist/mcp/flow-app.js +1 -1
  42. package/apps/runtime/dist/media/conversation.js +1 -1
  43. package/apps/runtime/dist/media/transcribe.js +1 -1
  44. package/apps/runtime/dist/model-errors.js +1 -1
  45. package/apps/runtime/dist/models.js +3 -3
  46. package/apps/runtime/dist/plugin.js +1 -1
  47. package/apps/runtime/dist/plugins/discovery.js +1 -1
  48. package/apps/runtime/dist/plugins/loader.js +2 -2
  49. package/apps/runtime/dist/plugins/runs.js +2 -2
  50. package/apps/runtime/dist/render/downloads.js +2 -2
  51. package/apps/runtime/dist/render/shaped.js +1 -1
  52. package/apps/runtime/dist/routes/api.js +2 -2
  53. package/apps/runtime/dist/routes/lang.js +1 -1
  54. package/apps/runtime/dist/routes/marketplace.js +1 -1
  55. package/apps/runtime/dist/routes/runs.js +4 -4
  56. package/apps/runtime/dist/routes/studio.js +8 -8
  57. package/apps/runtime/dist/services/access.js +1 -1
  58. package/apps/runtime/dist/services/api.js +4 -4
  59. package/apps/runtime/dist/services/assistant-chats.js +2 -2
  60. package/apps/runtime/dist/services/brand.js +2 -2
  61. package/apps/runtime/dist/services/cloud.js +1 -1
  62. package/apps/runtime/dist/services/errors.js +1 -1
  63. package/apps/runtime/dist/services/files.js +1 -1
  64. package/apps/runtime/dist/services/knowledge-model.js +3 -3
  65. package/apps/runtime/dist/services/knowledge.js +2 -2
  66. package/apps/runtime/dist/services/marketplace.js +5 -5
  67. package/apps/runtime/dist/services/package-file.js +3 -3
  68. package/apps/runtime/dist/services/package.js +2 -2
  69. package/apps/runtime/dist/services/profile.js +1 -1
  70. package/apps/runtime/dist/services/project-files.js +2 -2
  71. package/apps/runtime/dist/services/project-index.js +1 -1
  72. package/apps/runtime/dist/services/projects.js +2 -2
  73. package/apps/runtime/dist/services/runners.js +3 -3
  74. package/apps/runtime/dist/services/runs.js +2 -2
  75. package/apps/runtime/dist/services/shares.js +1 -1
  76. package/apps/runtime/dist/services/site.js +2 -2
  77. package/apps/runtime/dist/services/space-categories.js +3 -3
  78. package/apps/runtime/dist/services/space-data.js +4 -4
  79. package/apps/runtime/dist/services/spaces.js +6 -6
  80. package/apps/runtime/dist/services/translations.js +5 -5
  81. package/apps/runtime/dist/services/widgets.js +1 -1
  82. package/apps/runtime/dist/services/wizards.js +3 -3
  83. package/apps/runtime/dist/sharing/files.js +1 -1
  84. package/apps/runtime/dist/sharing/jobs.js +1 -1
  85. package/apps/runtime/dist/store/index.js +3 -3
  86. package/apps/runtime/dist/store/shared-lists.js +1 -1
  87. package/apps/runtime/dist/texts.js +1 -1
  88. package/apps/runtime/dist/tools/index.js +1 -1
  89. package/apps/runtime/dist/tools/plugin.js +2 -2
  90. package/apps/runtime/dist/tools/project.js +1 -1
  91. package/apps/runtime/dist/tools/store.js +2 -2
  92. package/apps/runtime/dist/widgets/bundle.js +1 -1
  93. package/apps/runtime/dist/widgets/step.js +3 -3
  94. package/apps/web/dist/assets/AboutDialog-CB0EwGxP.js +1 -0
  95. package/apps/web/dist/assets/{ChangelogDialog-BEyz7LNE.js → ChangelogDialog-BQRBkiVD.js} +1 -1
  96. package/apps/web/dist/assets/ChatView-BLZkLlHi.js +10 -0
  97. package/apps/web/dist/assets/EditorPage-YawfYRAL.js +4 -0
  98. package/apps/web/dist/assets/{FlowPreview-CLf8WHiG.js → FlowPreview-B0xF8e3r.js} +1 -1
  99. package/apps/web/dist/assets/{Harness-jc3jpWvI.js → Harness-snRbALGd.js} +2 -2
  100. package/apps/web/dist/assets/{NewWizardChannels-BPGZ4pfP.js → NewWizardChannels-BGzp9z0m.js} +1 -1
  101. package/apps/web/dist/assets/NewWizardPage-cOHfwcnA.js +7 -0
  102. package/apps/web/dist/assets/OnboardingPage-jB3ChKi3.js +1 -0
  103. package/apps/web/dist/assets/ProjectPage-hRCBquNb.js +1 -0
  104. package/apps/web/dist/assets/PublicRunner-D_ZkOyRV.js +1 -0
  105. package/apps/web/dist/assets/{ReadOnly-BVwbqvpi.js → ReadOnly-Db_odT6Y.js} +1 -1
  106. package/apps/web/dist/assets/RunDrawer-B6AQw90D.js +4 -0
  107. package/apps/web/dist/assets/RunnerView-DHUkvi_G.js +1 -0
  108. package/apps/web/dist/assets/SettingsPage-DleMaLz8.js +2 -0
  109. package/apps/web/dist/assets/SetupPage-DTvVJR1U.js +1 -0
  110. package/apps/web/dist/assets/{SharePage-CTTSudtp.js → SharePage-Bl-rfCji.js} +1 -1
  111. package/apps/web/dist/assets/changelog-BcW79fHm.js +1 -0
  112. package/apps/web/dist/assets/esm-Bji0ThaK.js +7 -0
  113. package/apps/web/dist/assets/index-CQKA-z2z.js +14 -0
  114. package/apps/web/dist/assets/index-Cnziz-H-.css +1 -0
  115. package/apps/web/dist/assets/oss-credits-BjwxLtU4.js +1 -0
  116. package/apps/web/dist/assets/{phone-5SYD9OrJ.js → phone-DwAf8S3l.js} +1 -1
  117. package/apps/web/dist/assets/settings-menu-B1ND1GF3.js +1 -0
  118. package/apps/web/dist/assets/ui-Cdv3QUOd.js +137 -0
  119. package/apps/web/dist/assets/{upload-Bevcvx5V.js → upload-DCMZI6pp.js} +1 -1
  120. package/apps/web/dist/assets/{wrench-ZD5SCsz9.js → wrench-BRYtnxti.js} +1 -1
  121. package/apps/web/dist/index.html +3 -3
  122. package/apps/web/dist/mcp/flow.html +5 -5
  123. package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/package.json +1 -1
  124. package/package.json +3 -3
  125. package/plugin/.claude-plugin/plugin.json +1 -1
  126. package/apps/web/dist/assets/AboutDialog-CiiSwL4t.js +0 -1
  127. package/apps/web/dist/assets/ChatView-9RkWts5F.js +0 -10
  128. package/apps/web/dist/assets/EditorPage-CCsKKcYo.js +0 -4
  129. package/apps/web/dist/assets/NewWizardPage-tidycL7Y.js +0 -7
  130. package/apps/web/dist/assets/OnboardingPage-DtVuaIuv.js +0 -1
  131. package/apps/web/dist/assets/ProjectPage-BsWgCP5z.js +0 -1
  132. package/apps/web/dist/assets/PublicRunner-CkA_etKX.js +0 -1
  133. package/apps/web/dist/assets/RunDrawer-CkFpnWCC.js +0 -4
  134. package/apps/web/dist/assets/RunnerView-CxTFM-lx.js +0 -1
  135. package/apps/web/dist/assets/SettingsPage-DM1wNAE7.js +0 -1
  136. package/apps/web/dist/assets/SetupPage-BKnQqiab.js +0 -1
  137. package/apps/web/dist/assets/changelog-DBEwyB1f.js +0 -1
  138. package/apps/web/dist/assets/esm-DtNAg8uF.js +0 -7
  139. package/apps/web/dist/assets/index-V1M59Yez.css +0 -1
  140. package/apps/web/dist/assets/index-xIz8znhq.js +0 -14
  141. package/apps/web/dist/assets/oss-credits-BWE03Xax.js +0 -1
  142. package/apps/web/dist/assets/settings-menu-Bn5-7Lqk.js +0 -1
  143. package/apps/web/dist/assets/ui-s39eGOtW.js +0 -137
  144. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/assistant.d.ts +0 -0
  145. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/assistant.js +0 -0
  146. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/changes.d.ts +0 -0
  147. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/changes.js +0 -0
  148. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/claude-plugin.d.ts +0 -0
  149. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/claude-plugin.js +0 -0
  150. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/connectors.d.ts +0 -0
  151. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/connectors.js +0 -0
  152. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/decision.d.ts +0 -0
  153. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/decision.js +0 -0
  154. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/definition.d.ts +0 -0
  155. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/definition.js +0 -0
  156. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/data-tables/columns-format.d.ts +0 -0
  157. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/data-tables/columns-format.js +0 -0
  158. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/data-tables/columns-value.d.ts +0 -0
  159. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/data-tables/columns-value.js +0 -0
  160. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/data-tables/columns.d.ts +0 -0
  161. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/data-tables/columns.js +0 -0
  162. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/data-tables/index.d.ts +0 -0
  163. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/data-tables/index.js +0 -0
  164. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/search-index/catalog-lexical.d.ts +0 -0
  165. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/search-index/catalog-lexical.js +0 -0
  166. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/search-index/catalog-rank.d.ts +0 -0
  167. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/engenty/search-index/catalog-rank.js +0 -0
  168. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/feature-flags.d.ts +0 -0
  169. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/feature-flags.js +0 -0
  170. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/features.d.ts +0 -0
  171. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/features.js +0 -0
  172. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/fit.d.ts +0 -0
  173. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/fit.js +0 -0
  174. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/json-schema.d.ts +0 -0
  175. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/json-schema.js +0 -0
  176. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/knowledge.d.ts +0 -0
  177. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/knowledge.js +0 -0
  178. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/marketplace-entry.d.ts +0 -0
  179. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/marketplace-entry.js +0 -0
  180. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/marketplace-search.d.ts +0 -0
  181. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/marketplace-search.js +0 -0
  182. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/marketplace.d.ts +0 -0
  183. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/marketplace.js +0 -0
  184. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/merge.d.ts +0 -0
  185. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/merge.js +0 -0
  186. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/numbers.d.ts +0 -0
  187. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/numbers.js +0 -0
  188. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/projects.d.ts +0 -0
  189. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/projects.js +0 -0
  190. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/providers.d.ts +0 -0
  191. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/providers.js +0 -0
  192. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/run.d.ts +0 -0
  193. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/run.js +0 -0
  194. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/runner-texts.d.ts +0 -0
  195. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/runner-texts.js +0 -0
  196. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/runners.d.ts +0 -0
  197. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/runners.js +0 -0
  198. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/shape.d.ts +0 -0
  199. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/shape.js +0 -0
  200. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/sharing.d.ts +0 -0
  201. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/sharing.js +0 -0
  202. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/space-data.d.ts +0 -0
  203. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/space-data.js +0 -0
  204. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/store.d.ts +0 -0
  205. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/store.js +0 -0
  206. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/surface.d.ts +0 -0
  207. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/surface.js +0 -0
  208. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/texts.d.ts +0 -0
  209. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/texts.js +0 -0
  210. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/translation.d.ts +0 -0
  211. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/translation.js +0 -0
  212. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/wizard-package.d.ts +0 -0
  213. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/wizard-package.js +0 -0
  214. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/workspace.d.ts +0 -0
  215. /package/node_modules/{@engenty-wizards/shared → @engenty/wizards-shared}/dist/workspace.js +0 -0
@@ -1,8 +1,8 @@
1
1
  import { existsSync, mkdirSync, watch } from "node:fs";
2
2
  import { join, resolve, sep } from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
- import { FIELD_KINDS, PLUGIN_ID, PLUGIN_TOOL_NAME, wizardSchema, } from "@engenty-wizards/shared/definition";
5
- import { BUILT_IN_RUNNERS, OUTPUT_KINDS, RESERVED_PATHS, RUNNER_ID, } from "@engenty-wizards/shared/runners";
4
+ import { FIELD_KINDS, PLUGIN_ID, PLUGIN_TOOL_NAME, wizardSchema, } from "@engenty/wizards-shared/definition";
5
+ import { BUILT_IN_RUNNERS, OUTPUT_KINDS, RESERVED_PATHS, RUNNER_ID, } from "@engenty/wizards-shared/runners";
6
6
  import { generateText, Output } from "ai";
7
7
  import { eq } from "drizzle-orm";
8
8
  import { createJiti } from "jiti";
@@ -1,6 +1,6 @@
1
1
  import { createHash } from "node:crypto";
2
- import { LANGS, textLang, wizardLang } from "@engenty-wizards/shared/definition";
3
- import { noteText } from "@engenty-wizards/shared/run";
2
+ import { LANGS, textLang, wizardLang } from "@engenty/wizards-shared/definition";
3
+ import { noteText } from "@engenty/wizards-shared/run";
4
4
  import { and, asc, eq, inArray, isNotNull } from "drizzle-orm";
5
5
  import { db, schema, withTenant } from "../db/client.js";
6
6
  import { answerAsk } from "../engine/asks.js";
@@ -1,5 +1,5 @@
1
- import { formatsFor, widgetSize } from "@engenty-wizards/shared/definition";
2
- import { listAsMarkdown } from "@engenty-wizards/shared/store";
1
+ import { formatsFor, widgetSize } from "@engenty/wizards-shared/definition";
2
+ import { listAsMarkdown } from "@engenty/wizards-shared/store";
3
3
  import { and, eq } from "drizzle-orm";
4
4
  import { zipSync } from "fflate";
5
5
  import { db, schema } from "../db/client.js";
@@ -1,4 +1,4 @@
1
- import { labelOf, titleKey, } from "@engenty-wizards/shared/shape";
1
+ import { labelOf, titleKey, } from "@engenty/wizards-shared/shape";
2
2
  const isEntry = (v) => Boolean(v) && typeof v === "object" && !Array.isArray(v);
3
3
  /** A value that fits in a cell or a line: no lists of entries, no objects. */
4
4
  const flat = (s) => s.kind !== "object" && s.kind !== "table" && !(s.kind === "list" && s.of.kind === "object");
@@ -1,5 +1,5 @@
1
- import { note } from "@engenty-wizards/shared/run";
2
- import { PACKAGE_MIME } from "@engenty-wizards/shared/wizard-package";
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-wizards/shared/definition";
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-wizards/shared/marketplace";
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-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";
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";
@@ -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-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";
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";
@@ -1,5 +1,5 @@
1
1
  import { AsyncLocalStorage } from "node:async_hooks";
2
- import { note } from "@engenty-wizards/shared/run";
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-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";
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-wizards/shared/assistant";
2
- import { note } from "@engenty-wizards/shared/run";
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,5 @@
1
- import { GRADIENT_TYPES, gradientCss, mainLogo, runTheme, } from "@engenty-wizards/shared/projects";
2
- import { note } from "@engenty-wizards/shared/run";
1
+ import { GRADIENT_TYPES, gradientCss, mainLogo, runTheme, } from "@engenty/wizards-shared/projects";
2
+ import { note } from "@engenty/wizards-shared/run";
3
3
  import { generateText, Output } from "ai";
4
4
  import { and, asc, eq } from "drizzle-orm";
5
5
  import { z } from "zod";
@@ -1,5 +1,5 @@
1
1
  import { createHash } from "node:crypto";
2
- import { note } from "@engenty-wizards/shared/run";
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";
@@ -1,4 +1,4 @@
1
- import { note } from "@engenty-wizards/shared/run";
1
+ import { note } from "@engenty/wizards-shared/run";
2
2
  import { errorText, NotedError } from "../model-errors.js";
3
3
  const STATUS = {
4
4
  not_found: 404,
@@ -1,4 +1,4 @@
1
- import { cleanPath, isTextMime, mimeForPath, WORKSPACE_LIMITS, } from "@engenty-wizards/shared/workspace";
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-wizards/shared/knowledge";
2
- import { note } from "@engenty-wizards/shared/run";
3
- import { columnIdOf } from "@engenty-wizards/shared/space-data";
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-wizards/shared/engenty/data-tables";
2
- import { slugOf, } from "@engenty-wizards/shared/knowledge";
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-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";
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";
@@ -1,6 +1,6 @@
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";
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
  /**
@@ -1,4 +1,4 @@
1
- import { PACKAGE_EXTENSION, PACKAGE_FILES, PACKAGE_FORMAT, PACKAGE_MANIFEST, PACKAGE_SCHEMA_URL, } from "@engenty-wizards/shared/wizard-package";
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";
@@ -11,7 +11,7 @@ import { pageTree } from "./knowledge.js";
11
11
  import { readPackage } from "./package-file.js";
12
12
  import { ownedProject } from "./projects.js";
13
13
  import { createWizard, deleteWizard, draftIssues, ownedWizard, parseDraft } from "./wizards.js";
14
- /** A wizard as a file — the format is `@engenty-wizards/shared/wizard-package`'s. */
14
+ /** A wizard as a file — the format is `@engenty/wizards-shared/wizard-package`'s. */
15
15
  /** Where the project's pages go in a package, as Markdown the standalone runner reads inline. */
16
16
  export const KNOWLEDGE_DIR = "knowledge/";
17
17
  /** How much of the project's knowledge a package takes along: enough pages, never the whole space. */
@@ -1,4 +1,4 @@
1
- import { isLang } from "@engenty-wizards/shared/definition";
1
+ import { isLang } from "@engenty/wizards-shared/definition";
2
2
  import { z } from "zod";
3
3
  import { linkedAccount } from "../auth/account.js";
4
4
  import { managed } from "../manage.js";
@@ -1,5 +1,5 @@
1
- import { PROJECT_LIMITS, projectFileLimit, } from "@engenty-wizards/shared/projects";
2
- import { note } from "@engenty-wizards/shared/run";
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";
@@ -1,4 +1,4 @@
1
- import { formatTableCell } from "@engenty-wizards/shared/engenty/data-tables";
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-wizards/shared/projects";
2
- import { note } from "@engenty-wizards/shared/run";
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";
@@ -1,6 +1,6 @@
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";
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-wizards/shared/definition";
2
- import { note } from "@engenty-wizards/shared/run";
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-wizards/shared/run";
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";
@@ -1,5 +1,5 @@
1
- import { factKey, PROJECT_LIMITS } from "@engenty-wizards/shared/projects";
2
- import { note } from "@engenty-wizards/shared/run";
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-wizards/shared/knowledge";
2
- import { readNumber } from "@engenty-wizards/shared/numbers";
3
- import { note } from "@engenty-wizards/shared/run";
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-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";
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,10 @@
1
1
  import { createHash } from "node:crypto";
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 { WORKSPACE_LIMITS } from "@engenty-wizards/shared/workspace";
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 { WORKSPACE_LIMITS } from "@engenty/wizards-shared/workspace";
8
8
  import { and, count, eq, inArray, isNull, notInArray, sql } from "drizzle-orm";
9
9
  import { nanoid } from "nanoid";
10
10
  import { z } from "zod";
@@ -1,9 +1,9 @@
1
1
  import { createHash } from "node:crypto";
2
- import { isLang, LANG_CODE, langNameEn, validateWizard, wizardLang, wizardSchema, } from "@engenty-wizards/shared/definition";
3
- import { note, RUN_NOTES } from "@engenty-wizards/shared/run";
4
- import { RUNNER_TEXTS } from "@engenty-wizards/shared/runner-texts";
5
- import { pluralRules } from "@engenty-wizards/shared/texts";
6
- import { keepsPlaceholders, missingTexts, translateDefinition, } from "@engenty-wizards/shared/translation";
2
+ import { isLang, LANG_CODE, langNameEn, validateWizard, wizardLang, wizardSchema, } from "@engenty/wizards-shared/definition";
3
+ import { note, RUN_NOTES } from "@engenty/wizards-shared/run";
4
+ import { RUNNER_TEXTS } from "@engenty/wizards-shared/runner-texts";
5
+ import { pluralRules } from "@engenty/wizards-shared/texts";
6
+ import { keepsPlaceholders, missingTexts, translateDefinition, } from "@engenty/wizards-shared/translation";
7
7
  import { generateText, jsonSchema, Output } from "ai";
8
8
  import { and, eq } from "drizzle-orm";
9
9
  import { control, controlDb, db, schema } from "../db/client.js";
@@ -1,4 +1,4 @@
1
- import { widgetSize } from "@engenty-wizards/shared/definition";
1
+ import { widgetSize } from "@engenty/wizards-shared/definition";
2
2
  import { probeWidget } from "../widgets/render.js";
3
3
  import { widgetPreviewHtml } from "../widgets/step.js";
4
4
  import { notFound, ServiceError } from "./errors.js";
@@ -1,6 +1,6 @@
1
- import { versionChanges } from "@engenty-wizards/shared/changes";
2
- import { pluginToolOf, shapeIssues, validateWizard, wizardSchema, } from "@engenty-wizards/shared/definition";
3
- import { note } from "@engenty-wizards/shared/run";
1
+ import { versionChanges } from "@engenty/wizards-shared/changes";
2
+ import { pluginToolOf, shapeIssues, validateWizard, wizardSchema, } from "@engenty/wizards-shared/definition";
3
+ import { note } from "@engenty/wizards-shared/run";
4
4
  import { and, desc, eq, sql } from "drizzle-orm";
5
5
  import { nanoid } from "nanoid";
6
6
  import { applyOps, OpError } from "../authoring/ops.js";
@@ -1,4 +1,4 @@
1
- import { FORMATS, LIST_FORMATS, listRef, } from "@engenty-wizards/shared/definition";
1
+ import { FORMATS, LIST_FORMATS, listRef, } from "@engenty/wizards-shared/definition";
2
2
  import { listDownload, renderDownload } from "../render/downloads.js";
3
3
  import { listRows, scopeOf } from "../store/index.js";
4
4
  import { line, ShareError } from "./types.js";
@@ -1,4 +1,4 @@
1
- import { noteText } from "@engenty-wizards/shared/run";
1
+ import { noteText } from "@engenty/wizards-shared/run";
2
2
  import { connectionContext } from "../connectors/index.js";
3
3
  import { askPerson } from "../engine/asks.js";
4
4
  import { signalChanged } from "../engine/events.js";
@@ -1,6 +1,6 @@
1
- import { note } from "@engenty-wizards/shared/run";
2
- import { firstRowAt, newCells, patchCells, rowKey, STORE_LIMITS, } from "@engenty-wizards/shared/store";
3
- import { cleanPath, mimeForPath } from "@engenty-wizards/shared/workspace";
1
+ import { note } from "@engenty/wizards-shared/run";
2
+ import { firstRowAt, newCells, patchCells, rowKey, STORE_LIMITS, } from "@engenty/wizards-shared/store";
3
+ import { cleanPath, mimeForPath } from "@engenty/wizards-shared/workspace";
4
4
  import { and, asc, eq, inArray, like, lt, sql } from "drizzle-orm";
5
5
  import { nanoid } from "nanoid";
6
6
  import { db, schema } from "../db/client.js";
@@ -1,4 +1,4 @@
1
- import { firstRowAt, newCells, patchCells, rowKey, STORE_LIMITS, } from "@engenty-wizards/shared/store";
1
+ import { firstRowAt, newCells, patchCells, rowKey, STORE_LIMITS, } from "@engenty/wizards-shared/store";
2
2
  import { and, asc, eq, inArray } from "drizzle-orm";
3
3
  import { nanoid } from "nanoid";
4
4
  import { db, schema } from "../db/client.js";
@@ -1,4 +1,4 @@
1
- import { textOf } from "@engenty-wizards/shared/texts";
1
+ import { textOf } from "@engenty/wizards-shared/texts";
2
2
  /**
3
3
  * What the server says itself, in each language: answers to a request, the lines about the
4
4
  * assistants' work, the words of what it makes for a person (a first space, a new wizard).
@@ -1,5 +1,5 @@
1
1
  import { anthropic } from "@ai-sdk/anthropic";
2
- import { isTextMime } from "@engenty-wizards/shared/workspace";
2
+ import { isTextMime } from "@engenty/wizards-shared/workspace";
3
3
  import { createTool } from "@mastra/core/tools";
4
4
  import { MCPClient } from "@mastra/mcp";
5
5
  import { z } from "zod";
@@ -1,5 +1,5 @@
1
- import { pluginToolOf } from "@engenty-wizards/shared/definition";
2
- import { note } from "@engenty-wizards/shared/run";
1
+ import { pluginToolOf } from "@engenty/wizards-shared/definition";
2
+ import { note } from "@engenty/wizards-shared/run";
3
3
  import { createTool } from "@mastra/core/tools";
4
4
  import { StepError } from "../engine/types.js";
5
5
  import { loadedPlugin, pluginIdsOf, pluginsOf } from "../plugins/registry.js";
@@ -1,4 +1,4 @@
1
- import { whereSchema } from "@engenty-wizards/shared/knowledge";
1
+ import { whereSchema } from "@engenty/wizards-shared/knowledge";
2
2
  import { createTool } from "@mastra/core/tools";
3
3
  import { and, eq } from "drizzle-orm";
4
4
  import { z } from "zod";
@@ -1,5 +1,5 @@
1
- import { allFields } from "@engenty-wizards/shared/definition";
2
- import { TableColumnValueError } from "@engenty-wizards/shared/engenty/data-tables";
1
+ import { allFields } from "@engenty/wizards-shared/definition";
2
+ import { TableColumnValueError } from "@engenty/wizards-shared/engenty/data-tables";
3
3
  import { createTool } from "@mastra/core/tools";
4
4
  import { eq } from "drizzle-orm";
5
5
  import { z } from "zod";
@@ -1,5 +1,5 @@
1
1
  import { posix } from "node:path";
2
- import { isTextMime } from "@engenty-wizards/shared/workspace";
2
+ import { isTextMime } from "@engenty/wizards-shared/workspace";
3
3
  import { getBlob } from "../files/blobs.js";
4
4
  import { guardHtml } from "../render/guard.js";
5
5
  import { WIDGET_RUNTIME } from "./runtime.js";
@@ -1,6 +1,6 @@
1
- import { allFields, dataRef, widgetSize, } from "@engenty-wizards/shared/definition";
2
- import { runTheme } from "@engenty-wizards/shared/projects";
3
- import { note } from "@engenty-wizards/shared/run";
1
+ import { allFields, dataRef, widgetSize, } from "@engenty/wizards-shared/definition";
2
+ import { runTheme } from "@engenty/wizards-shared/projects";
3
+ import { note } from "@engenty/wizards-shared/run";
4
4
  import { resolveRef } from "../engine/template.js";
5
5
  import { StepError } from "../engine/types.js";
6
6
  import { extFor, inlineAssetRefs, loadAsset } from "../files/storage.js";
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{Ft as r,Gt as i,Hn as a,Ht as o,It as s,Lt as c,Pt as l,en as u,pr as d,qt as f,yr as p}from"./ui-Cdv3QUOd.js";import{t as m}from"./preload-helper-CNEI7N0N.js";import{Ft as h,dt as g,ft as _,tt as v}from"./index-CQKA-z2z.js";import{c as y,f as b}from"./settings-menu-B1ND1GF3.js";import{ReleaseNotes as x,loadReleases as S,releaseDate as C,releaseLabel as w}from"./ChangelogDialog-BQRBkiVD.js";var T=e(t(),1),E=[{name:`engenty wizards`,description:`credit.engenty-wizards`,homepage:`https://github.com/engenty/wizards`,license:`FSL-1.1-MIT`},{name:`engenty`,description:`credit.engenty`,homepage:`https://github.com/engenty/engenty`,license:`FSL-1.1-MIT`}],D=[{name:`Mastra`,description:`credit.mastra`,homepage:`https://github.com/mastra-ai/mastra`,license:`Apache-2.0`},{name:`AI SDK`,description:`credit.ai-sdk`,homepage:`https://github.com/vercel/ai`,license:`Apache-2.0`},{name:`Model Context Protocol`,description:`credit.model-context-protocol`,homepage:`https://github.com/modelcontextprotocol/typescript-sdk`,license:`MIT`},{name:`Hono`,description:`credit.hono`,homepage:`https://github.com/honojs/hono`,license:`MIT`},{name:`Drizzle ORM`,description:`credit.drizzle-orm`,homepage:`https://github.com/drizzle-team/drizzle-orm`,license:`Apache-2.0`},{name:`libSQL`,description:`credit.libsql`,homepage:`https://github.com/tursodatabase/libsql`,license:`MIT`},{name:`Playwright`,description:`credit.playwright`,homepage:`https://github.com/microsoft/playwright`,license:`Apache-2.0`},{name:`React`,description:`credit.react`,homepage:`https://github.com/facebook/react`,license:`MIT`},{name:`Vite`,description:`credit.vite`,homepage:`https://github.com/vitejs/vite`,license:`MIT`},{name:`Tailwind CSS`,description:`credit.tailwind-css`,homepage:`https://github.com/tailwindlabs/tailwindcss`,license:`MIT`},{name:`React Flow`,description:`credit.react-flow`,homepage:`https://github.com/xyflow/xyflow`,license:`MIT`},{name:`TanStack Query`,description:`credit.tanstack-query`,homepage:`https://github.com/TanStack/query`,license:`MIT`},{name:`xterm.js`,description:`credit.xterm-js`,homepage:`https://github.com/xtermjs/xterm.js`,license:`MIT`},{name:`Lucide`,description:`credit.lucide`,homepage:`https://github.com/lucide-icons/lucide`,license:`ISC`},{name:`Geist & Geist Mono`,description:`credit.geist-geist-mono`,homepage:`https://github.com/vercel/geist-font`,license:`OFL-1.1`},{name:`Space Grotesk`,description:`credit.space-grotesk`,homepage:`https://github.com/floriankarsten/space-grotesk`,license:`OFL-1.1`},{name:`git-cliff`,description:`credit.git-cliff`,homepage:`https://github.com/orhun/git-cliff`,license:`MIT OR Apache-2.0`}],O=e(n(),1),k=(e,...t)=>t.some(t=>t?.toLowerCase().includes(e));function A({name:e,homepage:t,version:n,license:r,description:i}){return(0,O.jsxs)(`li`,{className:`py-2.5`,children:[(0,O.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-2.5 gap-y-0.5`,children:[t?(0,O.jsxs)(`a`,{href:t,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1 font-medium text-[0.875rem] text-ink underline-offset-4 hover:underline`,children:[e,(0,O.jsx)(d,{"aria-hidden":!0,className:`size-3 text-ink-4`})]}):(0,O.jsx)(`span`,{className:`font-medium text-[0.875rem] text-ink`,children:e}),n?(0,O.jsx)(`span`,{className:`text-[0.75rem] text-ink-3 tabular-nums`,children:n}):null,(0,O.jsx)(`span`,{className:`text-[0.75rem] text-ink-3`,children:r})]}),i?(0,O.jsx)(`p`,{className:`mt-0.5 text-[0.8125rem] text-ink-3`,children:i}):null]})}function j({title:e,hint:t,children:n}){return(0,O.jsxs)(`section`,{className:`mt-6`,children:[(0,O.jsx)(`h3`,{className:`border-border-soft border-b pb-2 font-display font-semibold text-[1rem]`,children:e}),t?(0,O.jsx)(`p`,{className:`mt-2 text-[0.8125rem] text-ink-3`,children:t}):null,n]})}function M({credits:e}){return(0,O.jsx)(`ul`,{className:`divide-y divide-border-soft`,children:e.map(e=>(0,O.jsx)(A,{name:e.name,homepage:e.homepage,license:e.license,description:u(e.description)},e.name))})}function N({label:e,packages:t}){return(0,O.jsxs)(`div`,{className:`mt-4`,children:[(0,O.jsx)(`h4`,{className:`font-medium text-[0.75rem] text-ink-3 tracking-wide`,children:e}),(0,O.jsx)(`ul`,{className:`divide-y divide-border-soft`,children:t.map(e=>(0,O.jsx)(A,{...e},e.name))})]})}function P({active:e}){let[t,n]=(0,T.useState)(null),[i,a]=(0,T.useState)(``);(0,T.useEffect)(()=>{if(!e||t)return;let r=!1;return m(()=>import(`./oss-credits-BjwxLtU4.js`).then(e=>{r||n(e.default)}),[]),()=>{r=!0}},[e,t]),(0,T.useEffect)(()=>{e||a(``)},[e]);let s=i.trim().toLowerCase(),l=e=>s?e.filter(e=>k(s,e.name,e.license,u(e.description))):e,d=e=>s?e.filter(e=>k(s,e.name,e.license,e.version)):e,f=l(E),p=l(D),h=t?[{id:`shared`,label:u(`about.creditsShared`),packages:d(t.shared)},...t.groups.map(e=>({id:e.id,label:e.label,packages:d(e.packages)}))].filter(e=>e.packages.length>0):[],g=f.length===0&&p.length===0&&h.length===0;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`p`,{className:`mb-4 text-[0.875rem] text-ink-3`,children:u(`about.creditsHint`)}),(0,O.jsx)(c,{type:`search`,value:i,placeholder:u(`about.search`),onChange:e=>a(e.target.value)}),f.length>0?(0,O.jsx)(j,{title:u(`about.creditsProduct`),children:(0,O.jsx)(M,{credits:f})}):null,p.length>0?(0,O.jsx)(j,{title:u(`about.creditsBuiltWith`),children:(0,O.jsx)(M,{credits:p})}):null,t===null?(0,O.jsx)(`div`,{className:`flex justify-center py-10 text-ink-3`,children:(0,O.jsx)(o,{})}):h.length>0?(0,O.jsx)(j,{title:u(`about.creditsDeps`),hint:s?void 0:u(`about.creditsDepsHint`),children:h.map(e=>(0,O.jsx)(N,{label:e.label,packages:e.packages},e.id))}):null,t!==null&&g?(0,O.jsx)(r,{children:u(`about.noMatches`)}):null]})}var F=[`new`,`earlier`,`credits`],I=e=>u(e===`new`?`about.tab.new`:e===`earlier`?`about.tab.earlier`:`about.credits`),L=e=>e===1?u(`about.change`):u(`about.changes`,{n:e});function R({me:e,active:t,initialTab:n=`new`}){let r=e?.mode===`local`,{data:a,latest:s}=g(r&&t),[c,l]=(0,T.useState)(null),[d,m]=(0,T.useState)(n);(0,T.useEffect)(()=>m(n),[n]);let E=b(F.indexOf(d)),D=a?.newer&&s?s:_;(0,T.useEffect)(()=>{if(!t)return;let e=!1;return l(null),S(D===`0.9.0`?void 0:D).then(t=>{e||l(t)}),()=>{e=!0}},[t,D]);let k=c?.find(e=>e.version===`v${D}`)??c?.[0]??null,A=c?.filter(e=>e!==k)??[],j=r?a?.kind??null:`cloud`;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(`div`,{className:`flex flex-col items-center pt-4 text-center`,children:[(0,O.jsx)(h,{size:96}),(0,O.jsxs)(`div`,{className:`mt-4 font-display font-semibold text-[1.5rem] tracking-tight`,children:[`engenty`,(0,O.jsx)(`span`,{className:`text-ember`,children:`.`}),(0,O.jsx)(`span`,{className:`ml-1.5 font-normal text-ink-3`,children:`wizards`})]}),(0,O.jsxs)(`div`,{className:`mt-1 text-[0.9375rem] text-ink-3 tabular-nums`,children:[u(`about.version`,{v:_}),j?` · ${u(`about.kind.${j}`)}`:``]})]}),r?(0,O.jsx)(`div`,{className:`mt-5`,children:(0,O.jsx)(v,{enabled:t})}):null,(0,O.jsx)(`div`,{className:`mt-6 flex justify-center`,children:(0,O.jsx)(i,{value:d,onChange:m,options:F.map(e=>({id:e,label:I(e)})),label:u(`about.title`)})}),(0,O.jsxs)(`div`,{className:f(`mt-5`,y(E)),children:[d===`new`?c===null?(0,O.jsx)(`div`,{className:`flex justify-center py-6 text-ink-3`,children:(0,O.jsx)(o,{})}):k?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(`h3`,{className:`flex items-baseline gap-3 border-border-soft border-b pb-2 font-display font-semibold text-[1rem]`,children:[w(k),(0,O.jsx)(`span`,{className:`font-normal font-sans text-[0.8125rem] text-ink-3 tabular-nums`,children:C(k)})]}),(0,O.jsx)(`div`,{className:`mt-3`,children:(0,O.jsx)(x,{release:k})})]}):(0,O.jsx)(`p`,{className:`text-[0.875rem] text-ink-3`,children:u(`about.changelogEmpty`)}):null,d===`earlier`?(0,O.jsx)(`div`,{className:`flex flex-col divide-y divide-border-soft`,children:A.map(e=>(0,O.jsxs)(`details`,{className:`group/r py-2`,children:[(0,O.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-baseline gap-3 text-[0.875rem] [&::-webkit-details-marker]:hidden`,children:[(0,O.jsx)(p,{className:`size-3.5 shrink-0 self-center text-ink-4 transition group-open/r:rotate-90`}),(0,O.jsx)(`span`,{className:`font-medium text-ink tabular-nums`,children:w(e)}),(0,O.jsx)(`span`,{className:`text-[0.8125rem] text-ink-3 tabular-nums`,children:C(e)}),(0,O.jsx)(`span`,{className:`ml-auto text-[0.8125rem] text-ink-4`,children:L(e.commits.length)})]}),(0,O.jsx)(`div`,{className:`mt-2 pl-6`,children:(0,O.jsx)(x,{release:e})})]},e.version??`unreleased`))}):null,d===`credits`?(0,O.jsx)(P,{active:!0}):null]},d)]})}function z({open:e,onClose:t,me:n}){return(0,O.jsxs)(l,{open:e,onClose:t,wide:!0,height:`tall`,children:[(0,O.jsx)(`div`,{className:`-mt-2 -mr-2 sticky top-0 z-10 flex h-0 justify-end`,children:(0,O.jsx)(s,{label:u(`common.close`),onClick:t,children:(0,O.jsx)(a,{className:`size-4`})})}),(0,O.jsx)(R,{me:n,active:e})]})}export{z as AboutDialog,R as AboutPanel};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{$t as r,Bt as i,Jt as a,Ut as o,Vt as s,on as c}from"./ui-s39eGOtW.js";import{t as l}from"./preload-helper-CNEI7N0N.js";var u=e(t(),1),d=e(n(),1);function f(e){switch(e.group){case`Added`:return{label:`NEW`,dot:`bg-moss`};case`Fixed`:return{label:`FIXED`,dot:`bg-amber`};case`Changed`:return{label:`CHANGED`,dot:`bg-cobalt`};case`Performance`:return{label:`PERFORMANCE`,dot:`bg-ember`};case`Deploy`:return{label:`DEPLOY`,dot:`bg-ink-4`};case`Docs`:return{label:`DOCS`,dot:`bg-ink-4`};default:return{label:`OTHER`,dot:`bg-ink-4`}}}var p=e=>e.version?e.version.replace(/^v/,``):c(`about.unreleased`),m=e=>e.timestamp?new Date(e.timestamp*1e3).toISOString().slice(0,10):``,h=e=>e.charAt(0).toUpperCase()+e.slice(1);function g(e,t){let n=t.trim().toLowerCase();if(!n)return e;let r=[];for(let t of e){if(`${p(t)} ${m(t)}`.toLowerCase().includes(n)){r.push(t);continue}let e=t.commits.filter(e=>`${f(e).label} ${e.scope??``} ${e.message}`.toLowerCase().includes(n));e.length>0&&r.push({...t,commits:e})}return r}async function _(e){if(e)try{let t=await fetch(`https://raw.githubusercontent.com/engenty/wizards/v${e}/apps/web/src/about/changelog.json`,{signal:AbortSignal.timeout(5e3)});if(t.ok)return await t.json()}catch{}return(await l(async()=>{let{default:e}=await import(`./changelog-DBEwyB1f.js`);return{default:e}},[])).default}function v({release:e}){return(0,d.jsx)(`ul`,{className:`flex flex-col gap-2`,children:e.commits.map(e=>{let t=f(e);return(0,d.jsxs)(`li`,{className:`flex items-start gap-2.5 text-[0.875rem]`,children:[(0,d.jsx)(`span`,{className:r(`mt-[7px] size-1.5 shrink-0 rounded-full`,t.dot)}),(0,d.jsxs)(`span`,{className:`min-w-0 text-ink-2`,children:[(0,d.jsxs)(`span`,{className:`font-semibold text-[0.75rem] text-ink tracking-wide`,children:[t.label,e.scope?` [${e.scope}]`:``]}),` `,h(e.message),e.breaking?(0,d.jsx)(`span`,{className:`ml-1.5 rounded-full bg-rose-tint px-1.5 py-0.5 font-medium text-[0.75rem] text-rose`,children:c(`about.breaking`)}):null]})]},e.id)})})}function y({open:e,onClose:t,version:n}){let[r,l]=(0,u.useState)(null),[f,h]=(0,u.useState)(``);(0,u.useEffect)(()=>{if(!e||r)return;let t=!1;return _(n).then(e=>{t||l(e)}),()=>{t=!0}},[e,r,n]),(0,u.useEffect)(()=>{e||h(``)},[e]);let y=r?g(r,f):[];return(0,d.jsxs)(i,{open:e,onClose:t,title:c(`about.changelog`),wide:!0,height:`tall`,children:[(0,d.jsx)(`p`,{className:`-mt-3 mb-4 text-[0.875rem] text-ink-3`,children:c(`about.changelogHint`)}),r===null?(0,d.jsx)(`div`,{className:`flex justify-center py-10 text-ink-3`,children:(0,d.jsx)(a,{})}):r.length===0?(0,d.jsx)(s,{children:c(`about.changelogEmpty`)}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o,{type:`search`,value:f,placeholder:c(`about.search`),onChange:e=>h(e.target.value)}),y.length===0?(0,d.jsx)(s,{children:c(`about.noMatches`)}):null,y.map(e=>(0,d.jsxs)(`section`,{className:`mt-6`,children:[(0,d.jsxs)(`h3`,{className:`flex items-baseline gap-3 border-border-soft border-b pb-2 font-display font-semibold text-[1rem]`,children:[p(e),(0,d.jsx)(`span`,{className:`font-normal font-sans text-[0.8125rem] text-ink-3 tabular-nums`,children:m(e)})]}),(0,d.jsx)(`div`,{className:`mt-3`,children:(0,d.jsx)(v,{release:e})})]},e.version??`unreleased`))]})]})}export{y as ChangelogDialog,v as ReleaseNotes,_ as loadReleases,m as releaseDate,p as releaseLabel};
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{Ft as r,Ht as i,Lt as a,Pt as o,en as s,qt as c}from"./ui-Cdv3QUOd.js";import{t as l}from"./preload-helper-CNEI7N0N.js";var u=e(t(),1),d=e(n(),1);function f(e){switch(e.group){case`Added`:return{label:`NEW`,dot:`bg-moss`};case`Fixed`:return{label:`FIXED`,dot:`bg-amber`};case`Changed`:return{label:`CHANGED`,dot:`bg-cobalt`};case`Performance`:return{label:`PERFORMANCE`,dot:`bg-ember`};case`Deploy`:return{label:`DEPLOY`,dot:`bg-ink-4`};case`Docs`:return{label:`DOCS`,dot:`bg-ink-4`};default:return{label:`OTHER`,dot:`bg-ink-4`}}}var p=e=>e.version?e.version.replace(/^v/,``):s(`about.unreleased`),m=e=>e.timestamp?new Date(e.timestamp*1e3).toISOString().slice(0,10):``,h=e=>e.charAt(0).toUpperCase()+e.slice(1);function g(e,t){let n=t.trim().toLowerCase();if(!n)return e;let r=[];for(let t of e){if(`${p(t)} ${m(t)}`.toLowerCase().includes(n)){r.push(t);continue}let e=t.commits.filter(e=>`${f(e).label} ${e.scope??``} ${e.message}`.toLowerCase().includes(n));e.length>0&&r.push({...t,commits:e})}return r}async function _(e){if(e)try{let t=await fetch(`https://raw.githubusercontent.com/engenty/wizards/v${e}/apps/web/src/about/changelog.json`,{signal:AbortSignal.timeout(5e3)});if(t.ok)return await t.json()}catch{}return(await l(async()=>{let{default:e}=await import(`./changelog-BcW79fHm.js`);return{default:e}},[])).default}function v({release:e}){return(0,d.jsx)(`ul`,{className:`flex flex-col gap-2`,children:e.commits.map(e=>{let t=f(e);return(0,d.jsxs)(`li`,{className:`flex items-start gap-2.5 text-[0.875rem]`,children:[(0,d.jsx)(`span`,{className:c(`mt-[7px] size-1.5 shrink-0 rounded-full`,t.dot)}),(0,d.jsxs)(`span`,{className:`min-w-0 text-ink-2`,children:[(0,d.jsxs)(`span`,{className:`font-semibold text-[0.75rem] text-ink tracking-wide`,children:[t.label,e.scope?` [${e.scope}]`:``]}),` `,h(e.message),e.breaking?(0,d.jsx)(`span`,{className:`ml-1.5 rounded-full bg-rose-tint px-1.5 py-0.5 font-medium text-[0.75rem] text-rose`,children:s(`about.breaking`)}):null]})]},e.id)})})}function y({open:e,onClose:t,version:n}){let[c,l]=(0,u.useState)(null),[f,h]=(0,u.useState)(``);(0,u.useEffect)(()=>{if(!e||c)return;let t=!1;return _(n).then(e=>{t||l(e)}),()=>{t=!0}},[e,c,n]),(0,u.useEffect)(()=>{e||h(``)},[e]);let y=c?g(c,f):[];return(0,d.jsxs)(o,{open:e,onClose:t,title:s(`about.changelog`),wide:!0,height:`tall`,children:[(0,d.jsx)(`p`,{className:`-mt-3 mb-4 text-[0.875rem] text-ink-3`,children:s(`about.changelogHint`)}),c===null?(0,d.jsx)(`div`,{className:`flex justify-center py-10 text-ink-3`,children:(0,d.jsx)(i,{})}):c.length===0?(0,d.jsx)(r,{children:s(`about.changelogEmpty`)}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(a,{type:`search`,value:f,placeholder:s(`about.search`),onChange:e=>h(e.target.value)}),y.length===0?(0,d.jsx)(r,{children:s(`about.noMatches`)}):null,y.map(e=>(0,d.jsxs)(`section`,{className:`mt-6`,children:[(0,d.jsxs)(`h3`,{className:`flex items-baseline gap-3 border-border-soft border-b pb-2 font-display font-semibold text-[1rem]`,children:[p(e),(0,d.jsx)(`span`,{className:`font-normal font-sans text-[0.8125rem] text-ink-3 tabular-nums`,children:m(e)})]}),(0,d.jsx)(`div`,{className:`mt-3`,children:(0,d.jsx)(v,{release:e})})]},e.version??`unreleased`))]})]})}export{y as ChangelogDialog,v as ReleaseNotes,_ as loadReleases,m as releaseDate,p as releaseLabel};