@engenty/wizards-runtime 0.11.4 → 0.11.6

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 (92) hide show
  1. package/apps/runtime/dist/agents/architect.js +6 -7
  2. package/apps/runtime/dist/agents/chat-clients.js +3 -0
  3. package/apps/runtime/dist/agents/studio-assistant.js +26 -7
  4. package/apps/runtime/dist/agents/subscription.js +24 -11
  5. package/apps/runtime/dist/assistant/knows.js +1 -1
  6. package/apps/runtime/dist/auth/index.js +15 -2
  7. package/apps/runtime/dist/authoring/guide.js +2 -8
  8. package/apps/runtime/dist/credits/estimate.js +1 -1
  9. package/apps/runtime/dist/data/chat-models.json +116 -0
  10. package/apps/runtime/dist/db/migrations/tenant/0025_drop_mcp_servers.sql +1 -0
  11. package/apps/runtime/dist/db/migrations/tenant/meta/0025_snapshot.json +3959 -0
  12. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +7 -0
  13. package/apps/runtime/dist/db/schema.js +0 -4
  14. package/apps/runtime/dist/docs/dev/plugins/events.md +2 -2
  15. package/apps/runtime/dist/docs/dev/wizard-format/agent-steps.md +1 -2
  16. package/apps/runtime/dist/docs/dev/wizard-format/wizard-file.md +6 -8
  17. package/apps/runtime/dist/docs/user-guide/cloud-sync.md +2 -2
  18. package/apps/runtime/dist/docs/user-guide/connectors.md +1 -10
  19. package/apps/runtime/dist/docs/user-guide/models.md +15 -5
  20. package/apps/runtime/dist/docs/user-guide/steps.md +2 -3
  21. package/apps/runtime/dist/engine/steps.js +126 -131
  22. package/apps/runtime/dist/env.js +5 -0
  23. package/apps/runtime/dist/live/views.js +1 -3
  24. package/apps/runtime/dist/mcp/tools.js +1 -1
  25. package/apps/runtime/dist/models.js +8 -9
  26. package/apps/runtime/dist/routes/studio.js +39 -6
  27. package/apps/runtime/dist/services/architect.js +5 -5
  28. package/apps/runtime/dist/services/chat-models.js +58 -0
  29. package/apps/runtime/dist/services/package-file.js +0 -1
  30. package/apps/runtime/dist/services/package.js +0 -10
  31. package/apps/runtime/dist/services/projects.js +1 -31
  32. package/apps/runtime/dist/services/spaces.js +5 -23
  33. package/apps/runtime/dist/services/wizards.js +8 -0
  34. package/apps/runtime/dist/sync/records.js +0 -9
  35. package/apps/runtime/dist/tools/index.js +0 -28
  36. package/apps/web/dist/assets/{AboutDialog-B7ThTqw4.js → AboutDialog-30Mc1_N_.js} +1 -1
  37. package/apps/web/dist/assets/{ChangelogDialog-DBpXTjxr.js → ChangelogDialog-Vjxg6JV8.js} +1 -1
  38. package/apps/web/dist/assets/{CodeEditor-BTcAUlGY.js → CodeEditor-CmMRfVhS.js} +1 -1
  39. package/apps/web/dist/assets/EditorPage-Di5KB-Ei.js +3 -0
  40. package/apps/web/dist/assets/{FlowPreview-Sjnlj0OO.js → FlowPreview-BkcO3iCf.js} +1 -1
  41. package/apps/web/dist/assets/{Harness-BKl73EG5.js → Harness-D_Hr80Fo.js} +1 -1
  42. package/apps/web/dist/assets/Marketplace-BxFBMUsi.js +2 -0
  43. package/apps/web/dist/assets/{NewWizardChannels-DarxdQRt.js → NewWizardChannels-BIzOtfc8.js} +1 -1
  44. package/apps/web/dist/assets/{NewWizardPage-BCoPZjp5.js → NewWizardPage-BenzMrPD.js} +1 -1
  45. package/apps/web/dist/assets/{OnboardingPage-qV_YA_mZ.js → OnboardingPage-DuckyzQr.js} +1 -1
  46. package/apps/web/dist/assets/{PreviewPane-B5_GY6Cv.js → PreviewPane-D9hmriSm.js} +2 -2
  47. package/apps/web/dist/assets/{ProjectPage-Bcc81_KO.js → ProjectPage-A8Z8cS1E.js} +1 -1
  48. package/apps/web/dist/assets/{PublicRunner-hlxaESAv.js → PublicRunner-QPvlEAxx.js} +1 -1
  49. package/apps/web/dist/assets/{ReadOnly-BUnTzhA3.js → ReadOnly-DFn32cvo.js} +1 -1
  50. package/apps/web/dist/assets/SettingsPage-ByP15ndy.js +2 -0
  51. package/apps/web/dist/assets/{SetupPage-DAgnVxDA.js → SetupPage-WNHH74hu.js} +1 -1
  52. package/apps/web/dist/assets/{SharePage-aKBNZDby.js → SharePage-Bw4TRWtv.js} +1 -1
  53. package/apps/web/dist/assets/changelog-Dr9tAFY9.js +1 -0
  54. package/apps/web/dist/assets/{coins-C8RAtYAu.js → coins-DTH3SKgZ.js} +1 -1
  55. package/apps/web/dist/assets/i18n-CLxuuhp_.js +55 -0
  56. package/apps/web/dist/assets/index-Bha72INy.css +1 -0
  57. package/apps/web/dist/assets/index-HhslPV6N.js +34 -0
  58. package/apps/web/dist/assets/oss-credits-CZT1KRIp.js +1 -0
  59. package/apps/web/dist/assets/{phone-DTuPPVhC.js → phone-DymZ7rLO.js} +1 -1
  60. package/apps/web/dist/assets/{runners-BcK_yEKU.js → runners-UfKeoOe4.js} +1 -1
  61. package/apps/web/dist/assets/{session-C7ciCzbV.js → session-COf_im0l.js} +1 -1
  62. package/apps/web/dist/assets/{settings-menu-b7am2SP5.js → settings-menu-mtOjI15L.js} +1 -1
  63. package/apps/web/dist/assets/{theme-BOAjs_xb.js → theme-DWoTWDAG.js} +1 -1
  64. package/apps/web/dist/assets/{ui-DKK_O65k.js → ui-D_0Xdrjh.js} +2 -2
  65. package/apps/web/dist/assets/{upload-Cbcw8l_0.js → upload-BizIzwxa.js} +1 -1
  66. package/apps/web/dist/assets/{useMutation-D8Bpwvs1.js → useMutation-BJfRETsQ.js} +1 -1
  67. package/apps/web/dist/assets/{volume-2-CgRP_A7r.js → volume-2-BGkyA8T9.js} +1 -1
  68. package/apps/web/dist/assets/{wrench-me5bf7bd.js → wrench-Be5zav03.js} +1 -1
  69. package/apps/web/dist/index.html +9 -9
  70. package/apps/web/dist/mcp/flow.html +3 -3
  71. package/node_modules/@engenty/wizards-shared/dist/assistant.d.ts +1 -0
  72. package/node_modules/@engenty/wizards-shared/dist/assistant.js +2 -0
  73. package/node_modules/@engenty/wizards-shared/dist/definition.d.ts +0 -4
  74. package/node_modules/@engenty/wizards-shared/dist/definition.js +0 -3
  75. package/node_modules/@engenty/wizards-shared/dist/fit.d.ts +1 -1
  76. package/node_modules/@engenty/wizards-shared/dist/fit.js +0 -4
  77. package/node_modules/@engenty/wizards-shared/dist/marketplace.js +2 -2
  78. package/node_modules/@engenty/wizards-shared/dist/run.d.ts +1 -2
  79. package/node_modules/@engenty/wizards-shared/dist/run.js +2 -4
  80. package/node_modules/@engenty/wizards-shared/dist/wizard-package.d.ts +0 -4
  81. package/node_modules/@engenty/wizards-shared/dist/wizard-package.js +0 -5
  82. package/package.json +1 -2
  83. package/plugin/.claude-plugin/plugin.json +1 -1
  84. package/plugin/plugin.json +1 -1
  85. package/apps/web/dist/assets/EditorPage-B_cFXR-B.js +0 -3
  86. package/apps/web/dist/assets/Marketplace-BNu-Hjzu.js +0 -2
  87. package/apps/web/dist/assets/SettingsPage-BoA-ykQU.js +0 -2
  88. package/apps/web/dist/assets/changelog-DwJOKc4z.js +0 -1
  89. package/apps/web/dist/assets/i18n-Bq6dt_qv.js +0 -55
  90. package/apps/web/dist/assets/index-BdwA-8jc.js +0 -34
  91. package/apps/web/dist/assets/index-DQc1EITf.css +0 -1
  92. package/apps/web/dist/assets/oss-credits-C6bPkfSE.js +0 -1
@@ -64,6 +64,7 @@ export declare const assistantTurnSchema: z.ZodObject<{
64
64
  parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
65
65
  }, z.core.$strip>>>;
66
66
  debug: z.ZodOptional<z.ZodBoolean>;
67
+ extra: z.ZodOptional<z.ZodBoolean>;
67
68
  }, z.core.$strip>;
68
69
  export type AssistantTurn = z.input<typeof assistantTurnSchema>;
69
70
  /**
@@ -52,6 +52,8 @@ export const assistantTurnSchema = z.object({
52
52
  tools: z.array(browserToolSchema).max(40).default([]),
53
53
  /** Developer mode: the turn also sends its prompt and each step (`prompt`, `step`). */
54
54
  debug: z.boolean().optional(),
55
+ /** Extra effort: the chat works with its more capable model. Off where the field is left out. */
56
+ extra: z.boolean().optional(),
55
57
  });
56
58
  /**
57
59
  * A message the person writes while a turn runs (POST /api/studio/assistant/run/:runId/signal):
@@ -550,7 +550,6 @@ export declare const agentStepSchema: z.ZodObject<{
550
550
  web_fetch: "web_fetch";
551
551
  web_search: "web_search";
552
552
  }>, z.ZodTemplateLiteral<`${string}.${string}`>]>>>;
553
- mcp: z.ZodOptional<z.ZodArray<z.ZodString>>;
554
553
  connections: z.ZodOptional<z.ZodArray<z.ZodString>>;
555
554
  output: z.ZodDefault<z.ZodObject<{
556
555
  format: z.ZodEnum<{
@@ -1310,7 +1309,6 @@ export declare const stepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1310
1309
  web_fetch: "web_fetch";
1311
1310
  web_search: "web_search";
1312
1311
  }>, z.ZodTemplateLiteral<`${string}.${string}`>]>>>;
1313
- mcp: z.ZodOptional<z.ZodArray<z.ZodString>>;
1314
1312
  connections: z.ZodOptional<z.ZodArray<z.ZodString>>;
1315
1313
  output: z.ZodDefault<z.ZodObject<{
1316
1314
  format: z.ZodEnum<{
@@ -2334,7 +2332,6 @@ export declare const currentWizardSchema: z.ZodObject<{
2334
2332
  web_fetch: "web_fetch";
2335
2333
  web_search: "web_search";
2336
2334
  }>, z.ZodTemplateLiteral<`${string}.${string}`>]>>>;
2337
- mcp: z.ZodOptional<z.ZodArray<z.ZodString>>;
2338
2335
  connections: z.ZodOptional<z.ZodArray<z.ZodString>>;
2339
2336
  output: z.ZodDefault<z.ZodObject<{
2340
2337
  format: z.ZodEnum<{
@@ -3176,7 +3173,6 @@ export declare const wizardSchema: z.ZodPreprocess<z.ZodObject<{
3176
3173
  web_fetch: "web_fetch";
3177
3174
  web_search: "web_search";
3178
3175
  }>, z.ZodTemplateLiteral<`${string}.${string}`>]>>>;
3179
- mcp: z.ZodOptional<z.ZodArray<z.ZodString>>;
3180
3176
  connections: z.ZodOptional<z.ZodArray<z.ZodString>>;
3181
3177
  output: z.ZodDefault<z.ZodObject<{
3182
3178
  format: z.ZodEnum<{
@@ -546,8 +546,6 @@ export const agentStepSchema = z.object({
546
546
  })
547
547
  .optional(),
548
548
  tools: z.array(z.union([z.enum(TOOL_IDS), pluginToolIdSchema])).default([]),
549
- /** Ids of project MCP servers this step may use. */
550
- mcp: z.array(z.string()).optional(),
551
549
  /** Ids of wizard connections (the person's accounts) this step may use. */
552
550
  connections: z.array(z.string()).optional(),
553
551
  output: z
@@ -791,7 +789,6 @@ export function isDecisionStep(step) {
791
789
  fields.every((f) => f.kind === "yesno" || f.kind === "choice" || f.kind === "score") &&
792
790
  !step.each &&
793
791
  step.tools.length === 0 &&
794
- !step.mcp?.length &&
795
792
  !step.connections?.length);
796
793
  }
797
794
  /**
@@ -13,7 +13,7 @@ export type Capability = (typeof CAPABILITY_IDS)[number];
13
13
  * plugin and by the gallery, so every place gives the same answer.
14
14
  */
15
15
  /** Something a step wants beyond a text model, as a stable id every app can word. */
16
- export type Need = `tool:${ToolId}` | "mcp" | "connections" | `plugin:${string}` | `asset:${AssetKind}` | "motion-graphics"
16
+ export type Need = `tool:${ToolId}` | "connections" | `plugin:${string}` | `asset:${AssetKind}` | "motion-graphics"
17
17
  /** A widget runs in the runtime's widget host; the standalone runner has none yet. */
18
18
  | "widget" | "widget:video" | `field:${Extract<FieldKind, "audio" | "connection" | "slot" | "location" | "image" | "file">}`
19
19
  /** A file the person gives that a later thinking step reads: reading documents is the runtime's. */
@@ -131,9 +131,6 @@ export function needs(step, def) {
131
131
  add(`tool:${tool}`, false);
132
132
  }
133
133
  }
134
- if (step.mcp?.length) {
135
- add("mcp", true);
136
- }
137
134
  if (step.connections?.length) {
138
135
  add("connections", true);
139
136
  }
@@ -235,7 +232,6 @@ export function capabilityOf(need) {
235
232
  case "field:audio":
236
233
  return "listening";
237
234
  case "tool:http":
238
- case "mcp":
239
235
  case "connections":
240
236
  case "field:connection":
241
237
  return "connectors";
@@ -234,7 +234,7 @@ export function capabilitiesOf(def) {
234
234
  found.add("connectors");
235
235
  }
236
236
  }
237
- if (step.mcp?.length || step.connections?.length) {
237
+ if (step.connections?.length) {
238
238
  found.add("connectors");
239
239
  }
240
240
  }
@@ -300,7 +300,7 @@ export function effortOf(def) {
300
300
  else if (step.type === "agent") {
301
301
  seconds += step.tools.includes("browser")
302
302
  ? WORK_SECONDS.browser
303
- : step.tools.length || step.mcp?.length || step.connections?.length
303
+ : step.tools.length || step.connections?.length
304
304
  ? WORK_SECONDS.tools
305
305
  : WORK_SECONDS.agent;
306
306
  }
@@ -193,8 +193,6 @@ declare const NOTES_EN: {
193
193
  readonly motionProgress: "{pct} % rendered";
194
194
  readonly motionError: "The video reports: {detail}";
195
195
  readonly widgetError: "The widget reports an error: {detail}";
196
- readonly mcpConnected: "Connected to {names}";
197
- readonly mcpUnreachable: "MCP server unreachable: {detail}";
198
196
  readonly reads: "Reading {name}";
199
197
  readonly readsMany: {
200
198
  readonly one: "Reading {count} document";
@@ -460,6 +458,7 @@ declare const NOTES_EN: {
460
458
  readonly commandNotStarted: "The command couldn’t start: {detail}";
461
459
  readonly providerKeyMissing: "{provider} is chosen for {makes}, but no API key is set.";
462
460
  readonly noModelFor: "No model is set up for {makes}.";
461
+ readonly chatNoWay: "The chat has nothing to run on yet. Pick a subscription, a key or the credits under Settings › Models › Agent chat.";
463
462
  readonly noApiKeyFor: "No API key is set for {provider}.";
464
463
  readonly freeTier: "Your AI Gateway key is on Vercel’s free tier, which doesn’t include {model}. Top up at Vercel ({url}) or choose another model under Settings → Models.";
465
464
  readonly thisModel: "this model";
@@ -28,8 +28,6 @@ const NOTES_EN = {
28
28
  motionProgress: "{pct} % rendered",
29
29
  motionError: "The video reports: {detail}",
30
30
  widgetError: "The widget reports an error: {detail}",
31
- mcpConnected: "Connected to {names}",
32
- mcpUnreachable: "MCP server unreachable: {detail}",
33
31
  reads: "Reading {name}",
34
32
  readsMany: { one: "Reading {count} document", other: "Reading {count} documents" },
35
33
  opens: "Opening {name}",
@@ -289,6 +287,7 @@ const NOTES_EN = {
289
287
  commandNotStarted: "The command couldn’t start: {detail}",
290
288
  providerKeyMissing: "{provider} is chosen for {makes}, but no API key is set.",
291
289
  noModelFor: "No model is set up for {makes}.",
290
+ chatNoWay: "The chat has nothing to run on yet. Pick a subscription, a key or the credits under Settings › Models › Agent chat.",
292
291
  noApiKeyFor: "No API key is set for {provider}.",
293
292
  freeTier: "Your AI Gateway key is on Vercel’s free tier, which doesn’t include {model}. Top up at Vercel ({url}) or choose another model under Settings → Models.",
294
293
  thisModel: "this model",
@@ -339,8 +338,6 @@ const NOTES_DE = {
339
338
  motionProgress: "{pct} % gerendert",
340
339
  motionError: "Das Video meldet: {detail}",
341
340
  widgetError: "Das Widget meldet einen Fehler: {detail}",
342
- mcpConnected: "Verbunden mit {names}",
343
- mcpUnreachable: "MCP-Server nicht erreichbar: {detail}",
344
341
  reads: "Liest {name}",
345
342
  readsMany: { one: "Liest {count} Dokument", other: "Liest {count} Dokumente" },
346
343
  opens: "Öffnet {name}",
@@ -600,6 +597,7 @@ const NOTES_DE = {
600
597
  commandNotStarted: "Der Befehl konnte nicht starten: {detail}",
601
598
  providerKeyMissing: "Für {makes} ist {provider} gewählt, aber kein API-Key hinterlegt.",
602
599
  noModelFor: "Für {makes} ist kein Modell eingerichtet.",
600
+ chatNoWay: "Der Chat hat noch nichts, womit er arbeiten kann. Wähle unter Einstellungen › Modelle › Agent-Chat ein Abo, einen Key oder das Guthaben.",
603
601
  noApiKeyFor: "Für {provider} ist kein API-Key hinterlegt.",
604
602
  freeTier: "Dein AI-Gateway-Key nutzt bei Vercel die kostenlose Stufe, und die schließt {model} aus. Lade bei Vercel Guthaben auf ({url}) oder wähle unter Einstellungen → Modelle ein anderes Modell.",
605
603
  thisModel: "dieses Modell",
@@ -38,10 +38,6 @@ export declare const manifestSchema: z.ZodObject<{
38
38
  openapi: "openapi";
39
39
  }>>;
40
40
  }, z.core.$strip>>>;
41
- mcpServers: z.ZodDefault<z.ZodArray<z.ZodObject<{
42
- id: z.ZodString;
43
- name: z.ZodString;
44
- }, z.core.$strip>>>;
45
41
  themes: z.ZodDefault<z.ZodArray<z.ZodObject<{
46
42
  id: z.ZodString;
47
43
  name: z.ZodString;
@@ -43,11 +43,6 @@ export const manifestSchema = z.object({
43
43
  }))
44
44
  .max(50)
45
45
  .default([]),
46
- /** Project MCP servers the wizard's steps name — by name only, their address and headers are credentials. */
47
- mcpServers: z
48
- .array(z.object({ id: z.string().max(31), name: z.string().max(60) }))
49
- .max(10)
50
- .default([]),
51
46
  /** The space's themes the wizard names: a wizard file ships its looks with it. */
52
47
  themes: z.array(themeSchema).max(MAX_WIZARD_THEMES).default([]),
53
48
  /** The project's pages under `files/knowledge/`, when they were asked for: how many, and whether the cap cut some. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engenty/wizards-runtime",
3
- "version": "0.11.4",
3
+ "version": "0.11.6",
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",
@@ -53,7 +53,6 @@
53
53
  "@lydell/node-pty": "1.1.0",
54
54
  "@mastra/core": "1.77.0",
55
55
  "@mastra/docker": "0.8.0",
56
- "@mastra/mcp": "2.4.0",
57
56
  "@mastra/quickjs": "0.1.3",
58
57
  "@modelcontextprotocol/client": "2.3.0",
59
58
  "@modelcontextprotocol/ext-apps": "2.0.3",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wizards",
3
3
  "displayName": "engenty wizards",
4
- "version": "0.11.4",
4
+ "version": "0.11.6",
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.11.4",
4
+ "version": "0.11.6",
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",