@engenty/wizards-runtime 0.20.5 → 0.21.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 (363) hide show
  1. package/README.md +3 -3
  2. package/apps/runtime/dist/agents/studio-assistant.js +7 -3
  3. package/apps/runtime/dist/agents/subscription.js +20 -25
  4. package/apps/runtime/dist/app.js +4 -1
  5. package/apps/runtime/dist/cli/clients.js +6 -24
  6. package/apps/runtime/dist/cli/connect.js +2 -1
  7. package/apps/runtime/dist/cli/environment.js +3 -0
  8. package/apps/runtime/dist/cli/machine.js +1 -70
  9. package/apps/runtime/dist/cli/main.js +2 -1
  10. package/apps/runtime/dist/cli/ollama.js +7 -254
  11. package/apps/runtime/dist/cli/setup.js +12 -9
  12. package/apps/runtime/dist/decision-model.js +1 -4
  13. package/apps/runtime/dist/docs/dev/licensing.md +20 -9
  14. package/apps/runtime/dist/docs/user-guide/command-line.md +5 -2
  15. package/apps/runtime/dist/elements/outside.js +2 -1
  16. package/apps/runtime/dist/engine/code-step.js +1 -1
  17. package/apps/runtime/dist/engine/decide.js +2 -2
  18. package/apps/runtime/dist/engine/device.js +3 -2
  19. package/apps/runtime/dist/engine/input.js +1 -1
  20. package/apps/runtime/dist/engine/runner.js +1 -1
  21. package/apps/runtime/dist/engine/steps.js +27 -8
  22. package/apps/runtime/dist/engine/surface.js +1 -1
  23. package/apps/runtime/dist/engine/template.js +1 -1
  24. package/apps/runtime/dist/env.js +1 -0
  25. package/apps/runtime/dist/harness/apple.js +4 -3
  26. package/apps/runtime/dist/harness/clients.js +117 -0
  27. package/apps/runtime/dist/harness/index.js +32 -87
  28. package/apps/runtime/dist/harness/model.js +32 -270
  29. package/apps/runtime/dist/harness/prompt.js +6 -120
  30. package/apps/runtime/dist/harness/types.js +5 -3
  31. package/apps/runtime/dist/local-call.js +6 -0
  32. package/apps/runtime/dist/local-models.js +53 -177
  33. package/apps/runtime/dist/mcp/bridge.js +12 -55
  34. package/apps/runtime/dist/mcp/elements.js +39 -4
  35. package/apps/runtime/dist/mcp/handler.js +12 -0
  36. package/apps/runtime/dist/mcp/run-pages.js +238 -0
  37. package/apps/runtime/dist/mcp/run-tasks.js +157 -0
  38. package/apps/runtime/dist/mcp/runs.js +129 -0
  39. package/apps/runtime/dist/mcp/tools.js +4 -95
  40. package/apps/runtime/dist/models.js +82 -32
  41. package/apps/runtime/dist/motion-graphics/step.js +2 -2
  42. package/apps/runtime/dist/prompts/mcp.md +4 -1
  43. package/apps/runtime/dist/render/downloads.js +1 -1
  44. package/apps/runtime/dist/render/shaped.js +1 -1
  45. package/apps/runtime/dist/routes/model-setup.js +77 -0
  46. package/apps/runtime/dist/routes/studio.js +8 -251
  47. package/apps/runtime/dist/services/space-categories.js +1 -1
  48. package/apps/runtime/dist/services/work-ai.js +11 -5
  49. package/apps/runtime/dist/texts.js +4 -6
  50. package/apps/runtime/dist/tools/connections.js +3 -0
  51. package/apps/runtime/dist/tools/harness.js +124 -0
  52. package/apps/web/dist/assets/AboutDialog-BSdAA4Wi.js +1 -0
  53. package/apps/web/dist/assets/{BlockEditor-CgjXTWly.js → BlockEditor-0noqMcAl.js} +1 -1
  54. package/apps/web/dist/assets/Bundle-Ctrq7lHH.js +1 -0
  55. package/apps/web/dist/assets/CapabilitiesPage-CZlVhBmU.js +2 -0
  56. package/apps/web/dist/assets/ChangelogDialog-BLCYV4jT.js +1 -0
  57. package/apps/web/dist/assets/{CodeEditor-2LyHbSre.js → CodeEditor-CpRn9BZq.js} +1 -1
  58. package/apps/web/dist/assets/ConnectorsSection-B4rRDlFo.js +1 -0
  59. package/apps/web/dist/assets/EditorPage-CXN-_zzG.js +3 -0
  60. package/apps/web/dist/assets/FlowPreview-DjQvcWxs.js +1 -0
  61. package/apps/web/dist/assets/LangSwitch-BuzsLp16.js +1 -0
  62. package/apps/web/dist/assets/LocalModels-BDfP2v5-.js +1 -0
  63. package/apps/web/dist/assets/Marketplace-4baBNzEc.js +2 -0
  64. package/apps/web/dist/assets/NewWizardChannels-B_xHm-bI.js +1 -0
  65. package/apps/web/dist/assets/NewWizardPage-BmZAY4zi.js +7 -0
  66. package/apps/web/dist/assets/OnboardingPage-fZq3WiTk.js +1 -0
  67. package/apps/web/dist/assets/ProtocolSection-v9wIxisg.js +1 -0
  68. package/apps/web/dist/assets/PublicRunner-BCh0VzAT.js +1 -0
  69. package/apps/web/dist/assets/{ReadOnly-CbvEK0rz.js → ReadOnly-13stkvNz.js} +1 -1
  70. package/apps/web/dist/assets/Results-4gmguYzH.js +1 -0
  71. package/apps/web/dist/assets/RunDrawer-CeEldWRn.js +1 -0
  72. package/apps/web/dist/assets/SettingsPage-BsKRRlfP.js +2 -0
  73. package/apps/web/dist/assets/SetupPage-FgA5Kl8z.js +1 -0
  74. package/apps/web/dist/assets/SharePage-BlBW4oxl.js +1 -0
  75. package/apps/web/dist/assets/SkillEditor-9QSskfmY.js +1 -0
  76. package/apps/web/dist/assets/Skills-DdUAyNhR.js +9 -0
  77. package/apps/web/dist/assets/SpacePage-CHkNPuqt.js +2 -0
  78. package/apps/web/dist/assets/StudioHome-BwPD-inc.js +1 -0
  79. package/apps/web/dist/assets/TableEditor-Du1DhbEC.js +7 -0
  80. package/apps/web/dist/assets/UpdateCheck-DPr9NXq_.js +2 -0
  81. package/apps/web/dist/assets/brand-DY3lzrOd.js +2 -0
  82. package/apps/web/dist/assets/changelog-BSdb22c3.js +1 -0
  83. package/apps/web/dist/assets/code-editor-Bep_LzQ5.js +2 -0
  84. package/apps/web/dist/assets/host-DiZQ_uws.js +1 -0
  85. package/apps/web/dist/assets/host-Dw-sMUSd.js +54 -0
  86. package/apps/web/dist/assets/i18n-DVrYWJaj.js +55 -0
  87. package/apps/web/dist/assets/index-C2gxK14s.css +1 -0
  88. package/apps/web/dist/assets/index-lQ4JYHYQ.js +102 -0
  89. package/apps/web/dist/assets/oss-credits-BHy69wkx.js +1 -0
  90. package/apps/web/dist/assets/{read-aloud-CRFt5q6k.js → read-aloud-CBycd8TA.js} +1 -1
  91. package/apps/web/dist/assets/{session-RDdtfee2.js → session-BYLtgklo.js} +1 -1
  92. package/apps/web/dist/assets/terminal-DmGdMags.js +16 -0
  93. package/apps/web/dist/assets/texts-ClKS2xhh.js +1 -0
  94. package/apps/web/dist/assets/theme-DFDOMsVo.js +14 -0
  95. package/apps/web/dist/assets/ui-CW2I3ecu.js +1 -0
  96. package/apps/web/dist/assets/ui-DfVpZYIW.js +16 -0
  97. package/apps/web/dist/assets/{useMutation-BSffqL6W.js → useMutation-BnkuLlQC.js} +1 -1
  98. package/apps/web/dist/assets/viewers-C6FfRwG1.js +2 -0
  99. package/apps/web/dist/index.html +18 -16
  100. package/apps/web/dist/mcp/flow.html +129 -129
  101. package/bin/bot-tunnel.mjs +375 -0
  102. package/bin/bot.mjs +494 -69
  103. package/node_modules/@engenty/{wizards-shared → chatviews}/dist/calc.js +1 -1
  104. package/node_modules/@engenty/chatviews/dist/chat/a2ui.d.ts +48 -0
  105. package/node_modules/@engenty/chatviews/dist/chat/a2ui.js +514 -0
  106. package/node_modules/@engenty/chatviews/dist/chat/check.d.ts +18 -0
  107. package/node_modules/@engenty/chatviews/dist/chat/check.js +97 -0
  108. package/node_modules/@engenty/chatviews/dist/chat/index.d.ts +3 -0
  109. package/node_modules/@engenty/chatviews/dist/chat/index.js +4 -0
  110. package/node_modules/@engenty/chatviews/dist/chat/library.d.ts +39 -0
  111. package/node_modules/@engenty/chatviews/dist/chat/library.js +314 -0
  112. package/node_modules/@engenty/{wizards-shared → chatviews}/dist/numbers.js +1 -1
  113. package/node_modules/@engenty/chatviews/dist/react/chat.d.ts +33 -0
  114. package/node_modules/@engenty/chatviews/dist/react/chat.js +150 -0
  115. package/node_modules/@engenty/chatviews/dist/react/field-looks.d.ts +39 -0
  116. package/node_modules/@engenty/chatviews/dist/react/field-looks.js +47 -0
  117. package/node_modules/@engenty/chatviews/dist/react/markdown.d.ts +5 -0
  118. package/node_modules/@engenty/chatviews/dist/react/markdown.js +11 -0
  119. package/node_modules/@engenty/chatviews/dist/react/no-devtools.d.ts +0 -0
  120. package/node_modules/@engenty/chatviews/dist/react/no-devtools.js +8 -0
  121. package/node_modules/@engenty/chatviews/dist/react/surface.d.ts +39 -0
  122. package/node_modules/@engenty/chatviews/dist/react/surface.js +552 -0
  123. package/node_modules/@engenty/chatviews/dist/react/texts.d.ts +39 -0
  124. package/node_modules/@engenty/chatviews/dist/react/texts.js +42 -0
  125. package/node_modules/@engenty/chatviews/dist/react/ui.d.ts +112 -0
  126. package/node_modules/@engenty/chatviews/dist/react/ui.js +212 -0
  127. package/node_modules/@engenty/{wizards-shared → chatviews}/dist/shape.js +1 -1
  128. package/node_modules/@engenty/{wizards-shared → chatviews}/dist/surface.js +1 -1
  129. package/node_modules/@engenty/chatviews/package.json +19 -0
  130. package/node_modules/@engenty/decision-model/dist/client.d.ts +76 -0
  131. package/node_modules/@engenty/decision-model/dist/client.js +188 -0
  132. package/node_modules/@engenty/decision-model/dist/index.d.ts +6 -0
  133. package/node_modules/@engenty/decision-model/dist/index.js +5 -0
  134. package/node_modules/@engenty/decision-model/dist/local.d.ts +11 -0
  135. package/node_modules/@engenty/decision-model/dist/local.js +116 -0
  136. package/node_modules/@engenty/decision-model/dist/resolve.d.ts +26 -0
  137. package/node_modules/@engenty/decision-model/dist/resolve.js +53 -0
  138. package/node_modules/@engenty/decision-model/dist/types.d.ts +80 -0
  139. package/node_modules/@engenty/decision-model/dist/types.js +6 -0
  140. package/node_modules/@engenty/decision-model/dist/validate.d.ts +9 -0
  141. package/node_modules/@engenty/decision-model/dist/validate.js +50 -0
  142. package/node_modules/@engenty/decision-model/dist/ways.d.ts +42 -0
  143. package/node_modules/@engenty/decision-model/dist/ways.js +72 -0
  144. package/node_modules/@engenty/decision-model/package.json +9 -0
  145. package/node_modules/@engenty/local-models/dist/bridge/index.d.ts +54 -0
  146. package/node_modules/@engenty/local-models/dist/bridge/index.js +117 -0
  147. package/node_modules/@engenty/local-models/dist/clients/antigravity.d.ts +37 -0
  148. package/{apps/runtime/dist/harness → node_modules/@engenty/local-models/dist/clients}/antigravity.js +72 -17
  149. package/node_modules/@engenty/local-models/dist/clients/chat.d.ts +89 -0
  150. package/node_modules/@engenty/local-models/dist/clients/chat.js +22 -0
  151. package/node_modules/@engenty/local-models/dist/clients/claude.d.ts +32 -0
  152. package/node_modules/@engenty/local-models/dist/clients/claude.js +239 -0
  153. package/node_modules/@engenty/local-models/dist/clients/client.d.ts +31 -0
  154. package/node_modules/@engenty/local-models/dist/clients/client.js +2 -0
  155. package/node_modules/@engenty/local-models/dist/clients/codex.d.ts +35 -0
  156. package/node_modules/@engenty/local-models/dist/clients/codex.js +254 -0
  157. package/node_modules/@engenty/local-models/dist/clients/cursor.d.ts +35 -0
  158. package/node_modules/@engenty/local-models/dist/clients/cursor.js +192 -0
  159. package/node_modules/@engenty/local-models/dist/clients/detect.d.ts +18 -0
  160. package/node_modules/@engenty/local-models/dist/clients/detect.js +34 -0
  161. package/node_modules/@engenty/local-models/dist/clients/env.d.ts +66 -0
  162. package/{apps/runtime/dist/harness → node_modules/@engenty/local-models/dist/clients}/env.js +62 -31
  163. package/node_modules/@engenty/local-models/dist/clients/failure.d.ts +26 -0
  164. package/node_modules/@engenty/local-models/dist/clients/failure.js +35 -0
  165. package/node_modules/@engenty/local-models/dist/clients/index.d.ts +15 -0
  166. package/node_modules/@engenty/local-models/dist/clients/index.js +18 -0
  167. package/node_modules/@engenty/local-models/dist/clients/model.d.ts +129 -0
  168. package/node_modules/@engenty/local-models/dist/clients/model.js +225 -0
  169. package/node_modules/@engenty/local-models/dist/clients/prompt.d.ts +36 -0
  170. package/node_modules/@engenty/local-models/dist/clients/prompt.js +123 -0
  171. package/node_modules/@engenty/local-models/dist/clients/run.d.ts +15 -0
  172. package/node_modules/@engenty/local-models/dist/clients/run.js +41 -0
  173. package/node_modules/@engenty/local-models/dist/index.d.ts +4 -0
  174. package/node_modules/@engenty/local-models/dist/index.js +4 -0
  175. package/node_modules/@engenty/local-models/dist/lmstudio/api.d.ts +49 -0
  176. package/node_modules/@engenty/local-models/dist/lmstudio/api.js +101 -0
  177. package/node_modules/@engenty/local-models/dist/lmstudio/index.d.ts +3 -0
  178. package/node_modules/@engenty/local-models/dist/lmstudio/index.js +3 -0
  179. package/node_modules/@engenty/local-models/dist/lmstudio/load.d.ts +12 -0
  180. package/node_modules/@engenty/local-models/dist/lmstudio/load.js +100 -0
  181. package/node_modules/@engenty/local-models/dist/lmstudio/server.d.ts +3 -0
  182. package/node_modules/@engenty/local-models/dist/lmstudio/server.js +29 -0
  183. package/node_modules/@engenty/local-models/dist/mlx/helper.d.ts +54 -0
  184. package/node_modules/@engenty/local-models/dist/mlx/helper.js +149 -0
  185. package/node_modules/@engenty/local-models/dist/mlx/index.d.ts +3 -0
  186. package/node_modules/@engenty/local-models/dist/mlx/index.js +3 -0
  187. package/node_modules/@engenty/local-models/dist/mlx/server.d.ts +19 -0
  188. package/node_modules/@engenty/local-models/dist/mlx/server.js +82 -0
  189. package/node_modules/@engenty/local-models/dist/mlx/store.d.ts +16 -0
  190. package/node_modules/@engenty/local-models/dist/mlx/store.js +153 -0
  191. package/node_modules/@engenty/local-models/dist/ollama/api.d.ts +37 -0
  192. package/node_modules/@engenty/local-models/dist/ollama/api.js +147 -0
  193. package/node_modules/@engenty/local-models/dist/ollama/index.d.ts +3 -0
  194. package/node_modules/@engenty/local-models/dist/ollama/index.js +3 -0
  195. package/node_modules/@engenty/local-models/dist/ollama/model.d.ts +54 -0
  196. package/node_modules/@engenty/local-models/dist/ollama/model.js +302 -0
  197. package/node_modules/@engenty/local-models/dist/ollama/server.d.ts +3 -0
  198. package/node_modules/@engenty/local-models/dist/ollama/server.js +45 -0
  199. package/node_modules/@engenty/local-models/dist/probe.d.ts +57 -0
  200. package/node_modules/@engenty/local-models/dist/probe.js +174 -0
  201. package/node_modules/@engenty/local-models/dist/servers/index.d.ts +6 -0
  202. package/node_modules/@engenty/local-models/dist/servers/index.js +12 -0
  203. package/node_modules/@engenty/local-models/dist/servers/server.d.ts +84 -0
  204. package/node_modules/@engenty/local-models/dist/servers/server.js +38 -0
  205. package/node_modules/@engenty/local-models/package.json +16 -0
  206. package/node_modules/@engenty/model-setup/dist/catalog.d.ts +36 -0
  207. package/node_modules/@engenty/model-setup/dist/catalog.js +81 -0
  208. package/node_modules/@engenty/model-setup/dist/index.d.ts +3 -0
  209. package/node_modules/@engenty/model-setup/dist/index.js +3 -0
  210. package/node_modules/@engenty/model-setup/dist/offered.d.ts +7 -0
  211. package/node_modules/@engenty/model-setup/dist/offered.js +64 -0
  212. package/node_modules/@engenty/model-setup/dist/react/client.d.ts +46 -0
  213. package/node_modules/@engenty/model-setup/dist/react/client.js +147 -0
  214. package/node_modules/@engenty/model-setup/dist/react/columns.d.ts +78 -0
  215. package/node_modules/@engenty/model-setup/dist/react/columns.js +99 -0
  216. package/node_modules/@engenty/model-setup/dist/react/host.d.ts +31 -0
  217. package/node_modules/@engenty/model-setup/dist/react/host.js +48 -0
  218. package/node_modules/@engenty/model-setup/dist/react/index.d.ts +7 -0
  219. package/node_modules/@engenty/model-setup/dist/react/index.js +7 -0
  220. package/node_modules/@engenty/model-setup/dist/react/keys.d.ts +48 -0
  221. package/node_modules/@engenty/model-setup/dist/react/keys.js +74 -0
  222. package/node_modules/@engenty/model-setup/dist/react/local-models.d.ts +23 -0
  223. package/node_modules/@engenty/model-setup/dist/react/local-models.js +134 -0
  224. package/node_modules/@engenty/model-setup/dist/react/servers.d.ts +4 -0
  225. package/node_modules/@engenty/model-setup/dist/react/servers.js +13 -0
  226. package/node_modules/@engenty/model-setup/dist/react/terminal.d.ts +13 -0
  227. package/node_modules/@engenty/model-setup/dist/react/terminal.js +79 -0
  228. package/node_modules/@engenty/model-setup/dist/react/tone.d.ts +13 -0
  229. package/node_modules/@engenty/model-setup/dist/react/tone.js +66 -0
  230. package/node_modules/@engenty/model-setup/dist/server/apps.d.ts +12 -0
  231. package/node_modules/@engenty/model-setup/dist/server/apps.js +22 -0
  232. package/node_modules/@engenty/model-setup/dist/server/clients.d.ts +55 -0
  233. package/node_modules/@engenty/model-setup/dist/server/clients.js +96 -0
  234. package/node_modules/@engenty/model-setup/dist/server/index.d.ts +8 -0
  235. package/node_modules/@engenty/model-setup/dist/server/index.js +8 -0
  236. package/node_modules/@engenty/model-setup/dist/server/install.d.ts +24 -0
  237. package/node_modules/@engenty/model-setup/dist/server/install.js +68 -0
  238. package/node_modules/@engenty/model-setup/dist/server/lmstudio.d.ts +9 -0
  239. package/node_modules/@engenty/model-setup/dist/server/lmstudio.js +52 -0
  240. package/node_modules/@engenty/model-setup/dist/server/local-models.d.ts +47 -0
  241. package/node_modules/@engenty/model-setup/dist/server/local-models.js +164 -0
  242. package/node_modules/@engenty/model-setup/dist/server/models.d.ts +12 -0
  243. package/node_modules/@engenty/model-setup/dist/server/models.js +16 -0
  244. package/node_modules/@engenty/model-setup/dist/server/ollama.d.ts +22 -0
  245. package/node_modules/@engenty/model-setup/dist/server/ollama.js +146 -0
  246. package/node_modules/@engenty/model-setup/dist/server/routes.d.ts +51 -0
  247. package/node_modules/@engenty/model-setup/dist/server/routes.js +211 -0
  248. package/node_modules/@engenty/model-setup/dist/server/server-apps.d.ts +14 -0
  249. package/node_modules/@engenty/model-setup/dist/server/server-apps.js +24 -0
  250. package/node_modules/@engenty/model-setup/dist/server/terminal.d.ts +43 -0
  251. package/node_modules/@engenty/model-setup/dist/server/terminal.js +222 -0
  252. package/node_modules/@engenty/model-setup/dist/texts.d.ts +222 -0
  253. package/node_modules/@engenty/model-setup/dist/texts.js +222 -0
  254. package/node_modules/@engenty/model-setup/dist/types.d.ts +111 -0
  255. package/node_modules/@engenty/model-setup/dist/types.js +2 -0
  256. package/node_modules/@engenty/model-setup/package.json +12 -0
  257. package/node_modules/@engenty/search-index/dist/catalog-lexical.d.ts +14 -0
  258. package/node_modules/@engenty/search-index/dist/catalog-lexical.js +165 -0
  259. package/node_modules/@engenty/search-index/dist/catalog-rank.d.ts +33 -0
  260. package/node_modules/@engenty/search-index/dist/catalog-rank.js +99 -0
  261. package/node_modules/@engenty/search-index/dist/catalog-search.d.ts +40 -0
  262. package/node_modules/@engenty/search-index/dist/catalog-search.js +161 -0
  263. package/node_modules/@engenty/search-index/dist/chunks.d.ts +17 -0
  264. package/node_modules/@engenty/search-index/dist/chunks.js +164 -0
  265. package/node_modules/@engenty/search-index/dist/contracts.d.ts +135 -0
  266. package/node_modules/@engenty/search-index/dist/contracts.js +9 -0
  267. package/node_modules/@engenty/search-index/dist/embedder.d.ts +31 -0
  268. package/node_modules/@engenty/search-index/dist/embedder.js +82 -0
  269. package/node_modules/@engenty/search-index/dist/embedders/gemini.d.ts +11 -0
  270. package/node_modules/@engenty/search-index/dist/embedders/gemini.js +54 -0
  271. package/node_modules/@engenty/search-index/dist/embedders/index.d.ts +5 -0
  272. package/node_modules/@engenty/search-index/dist/embedders/index.js +5 -0
  273. package/node_modules/@engenty/search-index/dist/embedders/ollama.d.ts +12 -0
  274. package/node_modules/@engenty/search-index/dist/embedders/ollama.js +43 -0
  275. package/node_modules/@engenty/search-index/dist/embedders/openai.d.ts +11 -0
  276. package/node_modules/@engenty/search-index/dist/embedders/openai.js +36 -0
  277. package/node_modules/@engenty/search-index/dist/embedders/shared.d.ts +5 -0
  278. package/node_modules/@engenty/search-index/dist/embedders/shared.js +26 -0
  279. package/node_modules/@engenty/search-index/dist/embedders/ways.d.ts +16 -0
  280. package/node_modules/@engenty/search-index/dist/embedders/ways.js +90 -0
  281. package/node_modules/@engenty/search-index/dist/index.d.ts +10 -0
  282. package/node_modules/@engenty/search-index/dist/index.js +10 -0
  283. package/node_modules/@engenty/search-index/dist/payload.d.ts +13 -0
  284. package/node_modules/@engenty/search-index/dist/payload.js +51 -0
  285. package/node_modules/@engenty/search-index/dist/registry.d.ts +25 -0
  286. package/node_modules/@engenty/search-index/dist/registry.js +56 -0
  287. package/node_modules/@engenty/search-index/dist/scoring.d.ts +10 -0
  288. package/node_modules/@engenty/search-index/dist/scoring.js +45 -0
  289. package/node_modules/@engenty/search-index/dist/strategy.d.ts +6 -0
  290. package/node_modules/@engenty/search-index/dist/strategy.js +25 -0
  291. package/node_modules/@engenty/search-index/package.json +10 -0
  292. package/node_modules/@engenty/tool-harness/dist/harness.d.ts +70 -0
  293. package/node_modules/@engenty/tool-harness/dist/harness.js +170 -0
  294. package/node_modules/@engenty/tool-harness/dist/index.d.ts +5 -0
  295. package/node_modules/@engenty/tool-harness/dist/index.js +5 -0
  296. package/node_modules/@engenty/tool-harness/dist/judge.d.ts +8 -0
  297. package/node_modules/@engenty/tool-harness/dist/judge.js +39 -0
  298. package/node_modules/@engenty/tool-harness/dist/levels.d.ts +18 -0
  299. package/node_modules/@engenty/tool-harness/dist/levels.js +47 -0
  300. package/node_modules/@engenty/tool-harness/dist/model.d.ts +6 -0
  301. package/node_modules/@engenty/tool-harness/dist/model.js +60 -0
  302. package/node_modules/@engenty/tool-harness/dist/schema.d.ts +26 -0
  303. package/node_modules/@engenty/tool-harness/dist/schema.js +57 -0
  304. package/node_modules/@engenty/tool-harness/package.json +9 -0
  305. package/node_modules/@engenty/wizards-shared/dist/catalog-prompt.js +2 -1
  306. package/node_modules/@engenty/wizards-shared/dist/definition.d.ts +10 -10
  307. package/node_modules/@engenty/wizards-shared/dist/definition.js +4 -4
  308. package/node_modules/@engenty/wizards-shared/dist/run-schema.js +1 -1
  309. package/node_modules/@engenty/wizards-shared/dist/run.d.ts +3 -1
  310. package/node_modules/@engenty/wizards-shared/dist/run.js +4 -0
  311. package/node_modules/@engenty/wizards-shared/dist/store.js +2 -1
  312. package/node_modules/@engenty/wizards-shared/dist/wizard-agents.d.ts +1 -1
  313. package/node_modules/@engenty/wizards-shared/dist/wizard-agents.js +1 -1
  314. package/node_modules/@engenty/wizards-shared/dist/wizard-text.js +2 -2
  315. package/package.json +13 -1
  316. package/plugin/.claude-plugin/plugin.json +1 -1
  317. package/plugin/plugin.json +1 -1
  318. package/apps/runtime/dist/agents/chat-clients.js +0 -344
  319. package/apps/runtime/dist/harness/claude.js +0 -141
  320. package/apps/runtime/dist/harness/codex.js +0 -222
  321. package/apps/runtime/dist/harness/cursor.js +0 -89
  322. package/apps/runtime/dist/harness/terminal.js +0 -201
  323. package/apps/web/dist/assets/AboutDialog-DM_2-iLP.js +0 -1
  324. package/apps/web/dist/assets/Bundle-C0u5HUZL.js +0 -1
  325. package/apps/web/dist/assets/CapabilitiesPage-DxRUERr-.js +0 -2
  326. package/apps/web/dist/assets/ChangelogDialog-Cyn3LAch.js +0 -1
  327. package/apps/web/dist/assets/ConnectorsSection-BYOrwccO.js +0 -1
  328. package/apps/web/dist/assets/EditorPage-BFUQzJpN.js +0 -3
  329. package/apps/web/dist/assets/FlowPreview-BXf4EKjU.js +0 -1
  330. package/apps/web/dist/assets/LangSwitch-BLB7dDce.js +0 -1
  331. package/apps/web/dist/assets/Marketplace-B3NoH5Va.js +0 -2
  332. package/apps/web/dist/assets/NewWizardChannels-DhmYe2C8.js +0 -1
  333. package/apps/web/dist/assets/NewWizardPage-MGKJVDp2.js +0 -7
  334. package/apps/web/dist/assets/OnboardingPage-RawpCO9J.js +0 -1
  335. package/apps/web/dist/assets/ProtocolSection-B1MshkAx.js +0 -1
  336. package/apps/web/dist/assets/PublicRunner-COatyxMi.js +0 -1
  337. package/apps/web/dist/assets/Results-DI4EHtkh.js +0 -1
  338. package/apps/web/dist/assets/RunDrawer-xXcbQ9wP.js +0 -1
  339. package/apps/web/dist/assets/SettingsPage-BcqqYDqw.js +0 -2
  340. package/apps/web/dist/assets/SetupPage-DG3fJ6fk.js +0 -1
  341. package/apps/web/dist/assets/SharePage-Drntg_oj.js +0 -1
  342. package/apps/web/dist/assets/SkillEditor-Ca_bzmjD.js +0 -1
  343. package/apps/web/dist/assets/Skills-BcgxuD15.js +0 -9
  344. package/apps/web/dist/assets/SpacePage-CzQAEQj8.js +0 -2
  345. package/apps/web/dist/assets/StudioHome-DWTDTslp.js +0 -1
  346. package/apps/web/dist/assets/TableEditor-DirMDIGk.js +0 -7
  347. package/apps/web/dist/assets/UpdateCheck-C6GlE6Am.js +0 -2
  348. package/apps/web/dist/assets/brand-BIT7AumL.js +0 -2
  349. package/apps/web/dist/assets/changelog-CMovB3yB.js +0 -1
  350. package/apps/web/dist/assets/code-editor-CufyaUFC.js +0 -2
  351. package/apps/web/dist/assets/host-DNvnJXoi.js +0 -69
  352. package/apps/web/dist/assets/i18n-WXeVnv7i.js +0 -55
  353. package/apps/web/dist/assets/index-D1iL3986.css +0 -1
  354. package/apps/web/dist/assets/index-DOq0CvXM.js +0 -102
  355. package/apps/web/dist/assets/oss-credits-C4SGbRkz.js +0 -1
  356. package/apps/web/dist/assets/theme-23bNrOQh.js +0 -14
  357. package/apps/web/dist/assets/ui-DkEhb2Rt.js +0 -16
  358. package/apps/web/dist/assets/viewers-CmGDpBjn.js +0 -2
  359. /package/apps/web/dist/assets/{host-BrP-ENHg.css → terminal-BrP-ENHg.css} +0 -0
  360. /package/node_modules/@engenty/{wizards-shared → chatviews}/dist/calc.d.ts +0 -0
  361. /package/node_modules/@engenty/{wizards-shared → chatviews}/dist/numbers.d.ts +0 -0
  362. /package/node_modules/@engenty/{wizards-shared → chatviews}/dist/shape.d.ts +0 -0
  363. /package/node_modules/@engenty/{wizards-shared → chatviews}/dist/surface.d.ts +0 -0
@@ -0,0 +1,18 @@
1
+ /**
2
+ * What a model can be trusted with. `basic`: short answers and simple calls; it fills in a wrong
3
+ * input, or makes up what it does not know, and does not notice. `standard`: several steps and
4
+ * inputs with parts. `high`: plans, code, conditions, work over many steps.
5
+ */
6
+ export declare const LEVELS: readonly ["basic", "standard", "high"];
7
+ export type Level = (typeof LEVELS)[number];
8
+ export declare const reaches: (has: Level, needs: Level) => boolean;
9
+ export interface ModelFacts {
10
+ /** The model's name, as its source spells it. */
11
+ model: string;
12
+ /** It runs on the person's own computer: its size tells more than its name. */
13
+ local?: boolean;
14
+ /** Bytes of its weights. */
15
+ size?: number;
16
+ }
17
+ /** The level of a model, as far as its name and size say. Unknown is `basic`. */
18
+ export declare function levelOf(facts: ModelFacts): Level;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * What a model can be trusted with. `basic`: short answers and simple calls; it fills in a wrong
3
+ * input, or makes up what it does not know, and does not notice. `standard`: several steps and
4
+ * inputs with parts. `high`: plans, code, conditions, work over many steps.
5
+ */
6
+ export const LEVELS = ["basic", "standard", "high"];
7
+ export const reaches = (has, needs) => LEVELS.indexOf(has) >= LEVELS.indexOf(needs);
8
+ /** The smaller models of the large vendors, by what their names say. */
9
+ const SMALL = /(?:^|[^a-z])(?:mini|nano|lite|flash|haiku|small|tiny|fast|instant|air)(?:[^a-z]|$)/i;
10
+ const LARGE = /claude|opus|sonnet|gpt-[5-9]|(?:^|[^a-z])o[3-9](?:[^a-z]|$)|gemini|kimi|deepseek|grok|glm|minimax|mistral-(?:large|medium)|qwen[\d.]*-max/i;
11
+ /** Billions of parameters from which a local model is `standard`, and `high`. */
12
+ const STANDARD_PARAMETERS = 12;
13
+ const HIGH_PARAMETERS = 100;
14
+ /** Bytes a billion parameters takes at the four bits most local models have. */
15
+ const BYTES_PER_BILLION = 0.6e9;
16
+ /** Billions of parameters: as the name says ("27b"), else by the weights. */
17
+ function parametersOf({ model, size }) {
18
+ // "30b-a3b": a mixture of experts thinks with the active part.
19
+ const active = model.match(/-a(\d+(?:\.\d+)?)b(?![a-z])/i);
20
+ const named = active ?? model.match(/(?:^|[^a-z\d.])(\d+(?:\.\d+)?)b(?![a-z])/i);
21
+ if (named?.[1]) {
22
+ return Number(named[1]);
23
+ }
24
+ return size ? size / BYTES_PER_BILLION : null;
25
+ }
26
+ /** The level of a model, as far as its name and size say. Unknown is `basic`. */
27
+ export function levelOf(facts) {
28
+ if (facts.local) {
29
+ const parameters = parametersOf(facts);
30
+ if (parameters === null || parameters < STANDARD_PARAMETERS) {
31
+ return "basic";
32
+ }
33
+ return parameters < HIGH_PARAMETERS ? "standard" : "high";
34
+ }
35
+ if (LARGE.test(facts.model)) {
36
+ return SMALL.test(facts.model) ? "standard" : "high";
37
+ }
38
+ const parameters = parametersOf(facts);
39
+ if (parameters !== null) {
40
+ return parameters < STANDARD_PARAMETERS
41
+ ? "basic"
42
+ : parameters < HIGH_PARAMETERS
43
+ ? "standard"
44
+ : "high";
45
+ }
46
+ return "basic";
47
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A model whose direct calls of tools outside the prompt go through the harness. A model that read
3
+ * of a tool in the conversation calls it by its name; without this the call goes nowhere and the
4
+ * answer is empty. The harness decides what runs: a name it does not know runs nothing.
5
+ */
6
+ export declare function throughHarness<M extends object>(model: M): M;
@@ -0,0 +1,60 @@
1
+ import { TOOL_CALL } from "./harness.js";
2
+ const meant = (shown, name) => name !== undefined && shown.has(TOOL_CALL) && !shown.has(name);
3
+ /** A call of a tool that is not in the prompt, as the `tool_call` it means. */
4
+ function rewritten(shown, part) {
5
+ if (part.type === "tool-call" && meant(shown, part.toolName)) {
6
+ let input = part.input ?? {};
7
+ if (typeof input === "string") {
8
+ try {
9
+ input = JSON.parse(input || "{}");
10
+ }
11
+ catch {
12
+ // It stays the text it is: the harness says what is missing.
13
+ }
14
+ }
15
+ const call = JSON.stringify({ name: part.toolName, input });
16
+ return { ...part, toolName: TOOL_CALL, input: call };
17
+ }
18
+ if (part.type === "tool-input-start" && meant(shown, part.toolName)) {
19
+ return { ...part, toolName: TOOL_CALL };
20
+ }
21
+ return part;
22
+ }
23
+ /**
24
+ * A model whose direct calls of tools outside the prompt go through the harness. A model that read
25
+ * of a tool in the conversation calls it by its name; without this the call goes nowhere and the
26
+ * answer is empty. The harness decides what runs: a name it does not know runs nothing.
27
+ */
28
+ export function throughHarness(model) {
29
+ return new Proxy(model, {
30
+ get(target, key) {
31
+ const value = Reflect.get(target, key, target);
32
+ if (typeof value !== "function") {
33
+ return value;
34
+ }
35
+ if (key !== "doStream" && key !== "doGenerate") {
36
+ return value.bind(target);
37
+ }
38
+ return async (options) => {
39
+ const shown = new Set((options.tools ?? []).map((tool) => tool.name));
40
+ const result = (await value.call(target, options));
41
+ if (!shown.has(TOOL_CALL)) {
42
+ return result;
43
+ }
44
+ return {
45
+ ...result,
46
+ ...(result.content
47
+ ? { content: result.content.map((part) => rewritten(shown, part)) }
48
+ : {}),
49
+ ...(result.stream
50
+ ? {
51
+ stream: result.stream.pipeThrough(new TransformStream({
52
+ transform: (part, controller) => controller.enqueue(rewritten(shown, part)),
53
+ })),
54
+ }
55
+ : {}),
56
+ };
57
+ };
58
+ },
59
+ });
60
+ }
@@ -0,0 +1,26 @@
1
+ /** A tool's input as JSON schema, as far as the harness reads it. */
2
+ export interface InputSchema {
3
+ type?: string;
4
+ properties?: Record<string, {
5
+ description?: string;
6
+ [key: string]: unknown;
7
+ }>;
8
+ required?: string[];
9
+ [key: string]: unknown;
10
+ }
11
+ /** The schema's properties as a model reads them. */
12
+ export declare const inputText: (input: InputSchema) => string;
13
+ /** Only the names: enough to know what a call is made of. */
14
+ export declare const inputNames: (input: InputSchema) => string;
15
+ /** The names and what each is for, for the search: the schema's own words only blur it. */
16
+ export declare const inputWords: (input: InputSchema) => string;
17
+ /**
18
+ * What a model meant to call. Some models put the input into a JSON text, some beside the name
19
+ * instead of under `input`: both are read as they were meant, nothing is guessed.
20
+ */
21
+ export declare function callOf(raw: unknown): {
22
+ name: string;
23
+ input: Record<string, unknown>;
24
+ };
25
+ /** The required properties a call leaves out. */
26
+ export declare const missing: (schema: InputSchema, input: Record<string, unknown>) => string[];
@@ -0,0 +1,57 @@
1
+ /** Not needed to call a tool. */
2
+ const NOISE = new Set(["$schema", "additionalProperties", "title", "examples", "pattern"]);
3
+ function slim(value) {
4
+ if (Array.isArray(value)) {
5
+ return value.map(slim);
6
+ }
7
+ if (typeof value !== "object" || value === null) {
8
+ return value;
9
+ }
10
+ return Object.fromEntries(Object.entries(value)
11
+ .filter(([key, part]) => !(NOISE.has(key) && typeof part !== "object") && key !== "$schema")
12
+ .map(([key, part]) => [key, slim(part)]));
13
+ }
14
+ /** The schema's properties as a model reads them. */
15
+ export const inputText = (input) => JSON.stringify({
16
+ ...slim(input.properties ?? {}),
17
+ ...(input.required?.length ? { required: input.required } : {}),
18
+ });
19
+ /** Only the names: enough to know what a call is made of. */
20
+ export const inputNames = (input) => Object.keys(input.properties ?? {})
21
+ .map((name) => (input.required?.includes(name) ? name : `${name}?`))
22
+ .join(", ") || "none";
23
+ /** The names and what each is for, for the search: the schema's own words only blur it. */
24
+ export const inputWords = (input) => Object.entries(input.properties ?? {})
25
+ .map(([name, property]) => `${name.replaceAll("_", " ")} ${property.description ?? ""}`.trim())
26
+ .join("\n");
27
+ const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
28
+ function parsed(value) {
29
+ if (isRecord(value)) {
30
+ return value;
31
+ }
32
+ if (typeof value !== "string" || !value.trim()) {
33
+ return null;
34
+ }
35
+ try {
36
+ const read = JSON.parse(value);
37
+ return isRecord(read) ? read : null;
38
+ }
39
+ catch {
40
+ return null;
41
+ }
42
+ }
43
+ /**
44
+ * What a model meant to call. Some models put the input into a JSON text, some beside the name
45
+ * instead of under `input`: both are read as they were meant, nothing is guessed.
46
+ */
47
+ export function callOf(raw) {
48
+ const record = parsed(raw) ?? {};
49
+ const { name, input, arguments: args, ...beside } = record;
50
+ const under = parsed(input) ?? parsed(args);
51
+ return {
52
+ name: typeof name === "string" ? name.trim() : "",
53
+ input: under && Object.keys(under).length ? under : beside,
54
+ };
55
+ }
56
+ /** The required properties a call leaves out. */
57
+ export const missing = (schema, input) => (schema.required ?? []).filter((name) => input[name] === undefined || input[name] === null);
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@engenty/tool-harness",
3
+ "version": "0.1.0",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": "./dist/index.js"
8
+ }
9
+ }
@@ -1,5 +1,6 @@
1
+ // SPDX-License-Identifier: FSL-1.1-MIT OR MIT
2
+ import { SURFACE_COMPONENTS, SURFACE_REQUIRED } from "@engenty/chatviews/surface";
1
3
  import { fieldSchema, nextRuleSchema, outputFieldSchema, stepSchema, wizardShapeSchema, } from "./definition.js";
2
- import { SURFACE_COMPONENTS, SURFACE_REQUIRED } from "./surface.js";
3
4
  import { OUTPUT_TAGS, STEP_TAGS, STEP_TEXT } from "./wizard-text.js";
4
5
  /**
5
6
  * The tags of the text form (wizard-text.ts) as a model reads them: each tag with its attributes,
@@ -1,6 +1,6 @@
1
+ import { type ObjectShape } from "@engenty/chatviews/shape";
2
+ import { type SurfaceComponent } from "@engenty/chatviews/surface";
1
3
  import { z } from "zod";
2
- import { type ObjectShape } from "./shape.js";
3
- import { type SurfaceComponent } from "./surface.js";
4
4
  /** The engenty avatars a wizard can wear. Same cast as engenty's ui-core. */
5
5
  export declare const ENGENTY_KINDS: readonly ["round", "drop", "dome", "flame", "oval", "bean", "pebble", "sprout", "tower", "wedge"];
6
6
  export type EngentyKind = (typeof ENGENTY_KINDS)[number];
@@ -5687,7 +5687,7 @@ export declare const agentStepSchema: z.ZodObject<{
5687
5687
  columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
5688
5688
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
5689
5689
  }, z.core.$strip>>>;
5690
- schema: z.ZodOptional<z.ZodType<import("./shape.js").ObjectSchema, unknown, z.core.$ZodTypeInternals<import("./shape.js").ObjectSchema, unknown>>>;
5690
+ schema: z.ZodOptional<z.ZodType<import("@engenty/chatviews/shape").ObjectSchema, unknown, z.core.$ZodTypeInternals<import("@engenty/chatviews/shape").ObjectSchema, unknown>>>;
5691
5691
  surface: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodObject<{
5692
5692
  id: z.ZodString;
5693
5693
  component: z.ZodEnum<{
@@ -7402,7 +7402,7 @@ export declare const codeStepSchema: z.ZodObject<{
7402
7402
  componentId: z.ZodString;
7403
7403
  }, z.core.$strip>]>>;
7404
7404
  }, z.core.$loose>>>;
7405
- schema: z.ZodOptional<z.ZodType<import("./shape.js").ObjectSchema, unknown, z.core.$ZodTypeInternals<import("./shape.js").ObjectSchema, unknown>>>;
7405
+ schema: z.ZodOptional<z.ZodType<import("@engenty/chatviews/shape").ObjectSchema, unknown, z.core.$ZodTypeInternals<import("@engenty/chatviews/shape").ObjectSchema, unknown>>>;
7406
7406
  }, z.core.$strip>;
7407
7407
  working: z.ZodOptional<z.ZodString>;
7408
7408
  }, z.core.$strip>;
@@ -15934,7 +15934,7 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
15934
15934
  columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
15935
15935
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
15936
15936
  }, z.core.$strip>>>;
15937
- schema: z.ZodOptional<z.ZodType<import("./shape.js").ObjectSchema, unknown, z.core.$ZodTypeInternals<import("./shape.js").ObjectSchema, unknown>>>;
15937
+ schema: z.ZodOptional<z.ZodType<import("@engenty/chatviews/shape").ObjectSchema, unknown, z.core.$ZodTypeInternals<import("@engenty/chatviews/shape").ObjectSchema, unknown>>>;
15938
15938
  surface: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodObject<{
15939
15939
  id: z.ZodString;
15940
15940
  component: z.ZodEnum<{
@@ -18344,7 +18344,7 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
18344
18344
  componentId: z.ZodString;
18345
18345
  }, z.core.$strip>]>>;
18346
18346
  }, z.core.$loose>>>;
18347
- schema: z.ZodOptional<z.ZodType<import("./shape.js").ObjectSchema, unknown, z.core.$ZodTypeInternals<import("./shape.js").ObjectSchema, unknown>>>;
18347
+ schema: z.ZodOptional<z.ZodType<import("@engenty/chatviews/shape").ObjectSchema, unknown, z.core.$ZodTypeInternals<import("@engenty/chatviews/shape").ObjectSchema, unknown>>>;
18348
18348
  }, z.core.$strip>;
18349
18349
  working: z.ZodOptional<z.ZodString>;
18350
18350
  }, z.core.$strip>, z.ZodObject<{
@@ -26513,7 +26513,7 @@ export declare const wizardShapeSchema: z.ZodObject<{
26513
26513
  columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
26514
26514
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
26515
26515
  }, z.core.$strip>>>;
26516
- schema: z.ZodOptional<z.ZodType<import("./shape.js").ObjectSchema, unknown, z.core.$ZodTypeInternals<import("./shape.js").ObjectSchema, unknown>>>;
26516
+ schema: z.ZodOptional<z.ZodType<import("@engenty/chatviews/shape").ObjectSchema, unknown, z.core.$ZodTypeInternals<import("@engenty/chatviews/shape").ObjectSchema, unknown>>>;
26517
26517
  surface: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodObject<{
26518
26518
  id: z.ZodString;
26519
26519
  component: z.ZodEnum<{
@@ -28923,7 +28923,7 @@ export declare const wizardShapeSchema: z.ZodObject<{
28923
28923
  componentId: z.ZodString;
28924
28924
  }, z.core.$strip>]>>;
28925
28925
  }, z.core.$loose>>>;
28926
- schema: z.ZodOptional<z.ZodType<import("./shape.js").ObjectSchema, unknown, z.core.$ZodTypeInternals<import("./shape.js").ObjectSchema, unknown>>>;
28926
+ schema: z.ZodOptional<z.ZodType<import("@engenty/chatviews/shape").ObjectSchema, unknown, z.core.$ZodTypeInternals<import("@engenty/chatviews/shape").ObjectSchema, unknown>>>;
28927
28927
  }, z.core.$strip>;
28928
28928
  working: z.ZodOptional<z.ZodString>;
28929
28929
  }, z.core.$strip>, z.ZodObject<{
@@ -36815,7 +36815,7 @@ export declare const wizardSchema: z.ZodPreprocess<z.ZodObject<{
36815
36815
  columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
36816
36816
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
36817
36817
  }, z.core.$strip>>>;
36818
- schema: z.ZodOptional<z.ZodType<import("./shape.js").ObjectSchema, unknown, z.core.$ZodTypeInternals<import("./shape.js").ObjectSchema, unknown>>>;
36818
+ schema: z.ZodOptional<z.ZodType<import("@engenty/chatviews/shape").ObjectSchema, unknown, z.core.$ZodTypeInternals<import("@engenty/chatviews/shape").ObjectSchema, unknown>>>;
36819
36819
  surface: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodObject<{
36820
36820
  id: z.ZodString;
36821
36821
  component: z.ZodEnum<{
@@ -39225,7 +39225,7 @@ export declare const wizardSchema: z.ZodPreprocess<z.ZodObject<{
39225
39225
  componentId: z.ZodString;
39226
39226
  }, z.core.$strip>]>>;
39227
39227
  }, z.core.$loose>>>;
39228
- schema: z.ZodOptional<z.ZodType<import("./shape.js").ObjectSchema, unknown, z.core.$ZodTypeInternals<import("./shape.js").ObjectSchema, unknown>>>;
39228
+ schema: z.ZodOptional<z.ZodType<import("@engenty/chatviews/shape").ObjectSchema, unknown, z.core.$ZodTypeInternals<import("@engenty/chatviews/shape").ObjectSchema, unknown>>>;
39229
39229
  }, z.core.$strip>;
39230
39230
  working: z.ZodOptional<z.ZodString>;
39231
39231
  }, z.core.$strip>, z.ZodObject<{
@@ -1,12 +1,12 @@
1
1
  // SPDX-License-Identifier: FSL-1.1-MIT OR MIT
2
+ import { calcNames, calcSchema, calcScope, calcTruthy, calcValue, parsedCalc, } from "@engenty/chatviews/calc";
3
+ import { readNumber } from "@engenty/chatviews/numbers";
4
+ import { outputSchemaSchema, shapeOfFields, shapeOfSchema, } from "@engenty/chatviews/shape";
5
+ import { surfaceComponentsSchema, validateSurface, } from "@engenty/chatviews/surface";
2
6
  import { z } from "zod";
3
- import { calcNames, calcSchema, calcScope, calcTruthy, calcValue, parsedCalc } from "./calc.js";
4
7
  import { tableColumnsSchema } from "./engenty/data-tables/columns.js";
5
- import { readNumber } from "./numbers.js";
6
- import { outputSchemaSchema, shapeOfFields, shapeOfSchema } from "./shape.js";
7
8
  import { isShareTargetId } from "./sharing.js";
8
9
  import { CONNECTION_KINDS } from "./store.js";
9
- import { surfaceComponentsSchema, validateSurface } from "./surface.js";
10
10
  import { hasWizardCodePrefix, WIZARD_CODE_NAME, WIZARD_CODE_PREFIXES, wizardAgentPath, wizardAgentsIn, wizardCodeOf, wizardToolsIn, wizardToolsUsed, } from "./wizard-code.js";
11
11
  import { sqlParams, sqlRefusal } from "./wizard-data.js";
12
12
  /** The engenty avatars a wizard can wear. Same cast as engenty's ui-core. */
@@ -1,7 +1,7 @@
1
1
  // SPDX-License-Identifier: FSL-1.1-MIT OR MIT
2
+ import { shapeJsonSchema, shapeZod, } from "@engenty/chatviews/shape";
2
3
  import { z } from "zod";
3
4
  import { dataRef, declaredShape, isDataStep, isDecidedField, listRef, outputOf, stepShape, } from "./definition.js";
4
- import { shapeJsonSchema, shapeZod } from "./shape.js";
5
5
  const DIALECT = "https://json-schema.org/draft/2020-12/schema";
6
6
  /** Where every run ends up: past the last step, at `end` or at a result. */
7
7
  const END = "\u0000end";
@@ -1,8 +1,8 @@
1
+ import type { Surface } from "@engenty/chatviews/surface";
1
2
  import { type AheadForm, type CardOption, type EngentyCostume, type Format, type Lang, type ModelClass, type Step, type WizardDefinition } from "./definition.js";
2
3
  import type { ShareJobView } from "./sharing.js";
3
4
  import type { StartEvent } from "./starts.js";
4
5
  import type { ConnectionKind, ConnectionView, ListDef, ListRow } from "./store.js";
5
- import type { Surface } from "./surface.js";
6
6
  import { type Gap, type Texts, type TextTable } from "./texts.js";
7
7
  import type { ThemeColours, ThemeEffect, ThemeShape } from "./theme.js";
8
8
  export type RunStatus = "waiting_input" | "sleeping" | "waiting_signal" | "running" | "done" | "failed" | "cancelled";
@@ -344,6 +344,8 @@ declare const NOTES_EN: {
344
344
  readonly noSandbox: "Working without the sandbox – this run can’t run code";
345
345
  readonly noDurable: "This step starts over after an interruption: its model can’t go on where it stopped";
346
346
  readonly turnWentOn: "Went on after an interruption";
347
+ readonly loadsModel: "Loading the model";
348
+ readonly modelReads: "The model reads what the step holds";
347
349
  readonly turnAsked: "Asks you: {question}";
348
350
  readonly turnAnswered: "Goes on with your answer";
349
351
  readonly grant: "This run may: {what}";
@@ -55,6 +55,8 @@ const NOTES_EN = {
55
55
  noSandbox: "Working without the sandbox – this run can’t run code",
56
56
  noDurable: "This step starts over after an interruption: its model can’t go on where it stopped",
57
57
  turnWentOn: "Went on after an interruption",
58
+ loadsModel: "Loading the model",
59
+ modelReads: "The model reads what the step holds",
58
60
  turnAsked: "Asks you: {question}",
59
61
  turnAnswered: "Goes on with your answer",
60
62
  // What the run may reach outside, from its grant (broker/grant.ts), as its log opens.
@@ -527,6 +529,8 @@ const NOTES_DE = {
527
529
  noSandbox: "Arbeitet ohne Sandbox – dieser Lauf kann keinen Code ausführen",
528
530
  noDurable: "Dieser Schritt beginnt nach einer Unterbrechung neu: sein Modell kann nicht dort weitermachen",
529
531
  turnWentOn: "Nach einer Unterbrechung weitergemacht",
532
+ loadsModel: "Lädt das Modell",
533
+ modelReads: "Das Modell liest, was der Schritt enthält",
530
534
  turnAsked: "Fragt dich: {question}",
531
535
  turnAnswered: "Macht mit deiner Antwort weiter",
532
536
  grant: "Dieser Lauf darf: {what}",
@@ -1,5 +1,6 @@
1
+ // SPDX-License-Identifier: FSL-1.1-MIT OR MIT
2
+ import { readNumber } from "@engenty/chatviews/numbers";
1
3
  import { coerceRowValues, mergeRowValues } from "./engenty/data-tables/columns-value.js";
2
- import { readNumber } from "./numbers.js";
3
4
  export const STORE_LIMITS = {
4
5
  fileBytes: 15_000_000,
5
6
  totalBytes: 200_000_000,
@@ -1,5 +1,5 @@
1
+ import { type ObjectSchema } from "@engenty/chatviews/shape";
1
2
  import { type AgentStep, type StepClass } from "./definition.js";
2
- import { type ObjectSchema } from "./shape.js";
3
3
  /**
4
4
  * Agents a wizard brings in its workspace (docs/plans/wizard-code.md): `agents/<name>.md`,
5
5
  * Markdown with front matter, in the shape Claude Code's agents have.
@@ -1,5 +1,5 @@
1
+ import { outputSchemaSchema } from "@engenty/chatviews/shape";
1
2
  import { pluginToolOf, STEP_CLASSES, TOOL_IDS, } from "./definition.js";
2
- import { outputSchemaSchema } from "./shape.js";
3
3
  import { stepAgents, wizardAgentPath, wizardCodeOf, wizardToolsIn } from "./wizard-code.js";
4
4
  /** Instructions an agent has at most, in characters. */
5
5
  export const WIZARD_AGENT_MAX_CHARS = 20_000;
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: FSL-1.1-MIT OR MIT
2
- import { parseCalc } from "./calc.js";
3
- import { SURFACE_COMPONENTS } from "./surface.js";
2
+ import { parseCalc } from "@engenty/chatviews/calc";
3
+ import { SURFACE_COMPONENTS } from "@engenty/chatviews/surface";
4
4
  export const STEP_TAGS = {
5
5
  form: "Page",
6
6
  agent: "Agent",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engenty/wizards-runtime",
3
- "version": "0.20.5",
3
+ "version": "0.21.0",
4
4
  "description": "Make a wish. Get your wizard. It guides you step by step. Let AI do the work. Runs on your machine, on the AI subscription you already have. The runtime, which `npx wizards` installs.",
5
5
  "license": "FSL-1.1-MIT AND CC-BY-4.0",
6
6
  "homepage": "https://engenty.ai",
@@ -33,6 +33,12 @@
33
33
  "@ai-sdk/replicate": "3.0.76",
34
34
  "@clack/prompts": "1.8.1",
35
35
  "@effect/platform-node": "4.0.0-beta.59",
36
+ "@engenty/chatviews": "0.1.0",
37
+ "@engenty/decision-model": "0.1.0",
38
+ "@engenty/local-models": "0.1.0",
39
+ "@engenty/model-setup": "0.1.0",
40
+ "@engenty/search-index": "0.1.0",
41
+ "@engenty/tool-harness": "0.1.0",
36
42
  "@engenty/wizards": "0.1.0",
37
43
  "@engenty/wizards-shared": "0.1.0",
38
44
  "@executor-js/config": "1.6.11",
@@ -115,6 +121,12 @@
115
121
  }
116
122
  },
117
123
  "bundleDependencies": [
124
+ "@engenty/chatviews",
125
+ "@engenty/local-models",
126
+ "@engenty/model-setup",
127
+ "@engenty/search-index",
128
+ "@engenty/tool-harness",
129
+ "@engenty/decision-model",
118
130
  "@engenty/wizards",
119
131
  "@engenty/wizards-shared",
120
132
  "pdfjs-dist",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wizards",
3
3
  "displayName": "engenty wizards",
4
- "version": "0.20.5",
4
+ "version": "0.21.0",
5
5
  "description": "Build page-by-page AI wizards that people open on a shared link — designed, tested and published from Claude Code — run your published ones in the chat, and keep them in a pane beside it.",
6
6
  "author": {
7
7
  "name": "engenty"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "engenty-wizards",
4
- "version": "0.20.5",
4
+ "version": "0.21.0",
5
5
  "description": "Build page-by-page AI wizards that people open on a shared link, test and publish them from the chat, and run your published ones here.",
6
6
  "author": {
7
7
  "name": "engenty",