@engenty/wizards-runtime 0.9.7 → 0.9.8

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 (93) hide show
  1. package/apps/runtime/dist/agents/architect.js +4 -2
  2. package/apps/runtime/dist/agents/company.js +1 -1
  3. package/apps/runtime/dist/agents/studio-assistant.js +1 -1
  4. package/apps/runtime/dist/assistant/primer.js +1 -1
  5. package/apps/runtime/dist/authoring/example.js +2 -2
  6. package/apps/runtime/dist/authoring/guide.js +11 -11
  7. package/apps/runtime/dist/credits/estimate.js +5 -5
  8. package/apps/runtime/dist/db/adopt.js +4 -3
  9. package/apps/runtime/dist/db/migrations/control/0011_model_classes.sql +11 -0
  10. package/apps/runtime/dist/db/migrations/control/meta/0011_snapshot.json +600 -0
  11. package/apps/runtime/dist/db/migrations/control/meta/_journal.json +7 -0
  12. package/apps/runtime/dist/db/migrations/tenant/0021_model_classes.sql +41 -0
  13. package/apps/runtime/dist/db/migrations/tenant/meta/0021_snapshot.json +3475 -0
  14. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +7 -0
  15. package/apps/runtime/dist/docs/dev/plugins/quick-start.md +2 -2
  16. package/apps/runtime/dist/docs/dev/plugins/server.md +2 -2
  17. package/apps/runtime/dist/docs/dev/wizard-format/agent-steps.md +9 -5
  18. package/apps/runtime/dist/docs/dev/wizard-format/film-steps.md +2 -2
  19. package/apps/runtime/dist/docs/dev/wizard-format/index.md +14 -8
  20. package/apps/runtime/dist/docs/user-guide/models.md +22 -13
  21. package/apps/runtime/dist/docs/user-guide/steps.md +6 -6
  22. package/apps/runtime/dist/documents/parse.js +1 -1
  23. package/apps/runtime/dist/engine/requirements.js +11 -11
  24. package/apps/runtime/dist/engine/steps.js +4 -4
  25. package/apps/runtime/dist/env.js +4 -4
  26. package/apps/runtime/dist/film/step.js +1 -1
  27. package/apps/runtime/dist/harness/antigravity.js +3 -3
  28. package/apps/runtime/dist/harness/apple.js +1 -1
  29. package/apps/runtime/dist/harness/claude.js +2 -2
  30. package/apps/runtime/dist/harness/codex.js +3 -3
  31. package/apps/runtime/dist/harness/cursor.js +1 -1
  32. package/apps/runtime/dist/mcp/tools.js +6 -3
  33. package/apps/runtime/dist/models.js +64 -10
  34. package/apps/runtime/dist/plugins/loader.js +1 -1
  35. package/apps/runtime/dist/routes/studio.js +16 -5
  36. package/apps/runtime/dist/services/assistant-chats.js +1 -1
  37. package/apps/runtime/dist/services/brand.js +1 -1
  38. package/apps/runtime/dist/services/knowledge-model.js +1 -1
  39. package/apps/runtime/dist/services/marketplace.js +3 -1
  40. package/apps/runtime/dist/services/project-files.js +1 -1
  41. package/apps/runtime/dist/services/translations.js +2 -2
  42. package/apps/runtime/dist/services/wizards.js +2 -2
  43. package/apps/runtime/dist/sharing/agent.js +1 -1
  44. package/apps/runtime/dist/texts.js +12 -0
  45. package/apps/web/dist/assets/{AboutDialog-B3tljxg5.js → AboutDialog-B_Ixp_Tb.js} +1 -1
  46. package/apps/web/dist/assets/{ChangelogDialog-DfWTNzyl.js → ChangelogDialog-BpEIbAZ8.js} +1 -1
  47. package/apps/web/dist/assets/{EditorPage-XDdz2UM4.js → EditorPage-CKHY4hn4.js} +4 -4
  48. package/apps/web/dist/assets/{FlowPreview-CKNVCFbp.js → FlowPreview-APXdRflR.js} +1 -1
  49. package/apps/web/dist/assets/{Harness-BCec49Cq.js → Harness-BsGXMlLg.js} +1 -1
  50. package/apps/web/dist/assets/{Marketplace-BuYeaxK2.js → Marketplace-Dr-Qnb-F.js} +2 -2
  51. package/apps/web/dist/assets/{NewWizardChannels-DRNji-bk.js → NewWizardChannels-0JrRdUFd.js} +1 -1
  52. package/apps/web/dist/assets/{NewWizardPage-4TpgYOaI.js → NewWizardPage-9igFL5O8.js} +1 -1
  53. package/apps/web/dist/assets/{OnboardingPage-Cf52NOIt.js → OnboardingPage-BcK9FUnU.js} +1 -1
  54. package/apps/web/dist/assets/{PreviewPane-C4yMcZPM.js → PreviewPane-X4LBqA0D.js} +3 -3
  55. package/apps/web/dist/assets/ProjectPage-CG0i-KhR.js +1 -0
  56. package/apps/web/dist/assets/{PublicRunner-Bftc1c4m.js → PublicRunner-CZR1ziQ4.js} +1 -1
  57. package/apps/web/dist/assets/{ReadOnly-DVQm9IYx.js → ReadOnly-BraZbEG_.js} +1 -1
  58. package/apps/web/dist/assets/SettingsPage-Bw4tdoV7.js +2 -0
  59. package/apps/web/dist/assets/SetupPage-CvkE2aKx.js +1 -0
  60. package/apps/web/dist/assets/{SharePage-Cn-bqSyr.js → SharePage-Dk7zC5Zo.js} +1 -1
  61. package/apps/web/dist/assets/changelog-DDXnAaHm.js +1 -0
  62. package/apps/web/dist/assets/{coins-DgDTBbeg.js → coins-391m1e4_.js} +1 -1
  63. package/apps/web/dist/assets/index-BTUtot4r.js +14 -0
  64. package/apps/web/dist/assets/index-DcUL6teA.css +1 -0
  65. package/apps/web/dist/assets/{phone-D1Drdiio.js → phone-DvgrtyNO.js} +1 -1
  66. package/apps/web/dist/assets/{runners-CTd0YAiA.js → runners-4OBelIgF.js} +1 -1
  67. package/apps/web/dist/assets/{session-DX2BcTfz.js → session-DvnGHbDz.js} +1 -1
  68. package/apps/web/dist/assets/{settings-menu-ay9jNbQu.js → settings-menu-xK9A-gaP.js} +1 -1
  69. package/apps/web/dist/assets/theme-D3yDT4QT.js +11 -0
  70. package/apps/web/dist/assets/ui-BVQk2DtW.js +137 -0
  71. package/apps/web/dist/assets/{upload-Dj7KPL--.js → upload-BgXbzG6C.js} +1 -1
  72. package/apps/web/dist/assets/{useMutation-CUSQpD-i.js → useMutation-DkwSQWoD.js} +1 -1
  73. package/apps/web/dist/assets/{volume-2-CcHZOU2m.js → volume-2-DHGoe3Cg.js} +1 -1
  74. package/apps/web/dist/assets/{wrench-CfJTFnMJ.js → wrench-Cf_aE3O0.js} +1 -1
  75. package/apps/web/dist/index.html +8 -8
  76. package/apps/web/dist/mcp/flow.html +56 -56
  77. package/node_modules/@engenty/wizards/dist/plugin/index.d.ts +2 -2
  78. package/node_modules/@engenty/wizards-shared/dist/definition.d.ts +872 -18
  79. package/node_modules/@engenty/wizards-shared/dist/definition.js +52 -11
  80. package/node_modules/@engenty/wizards-shared/dist/json-schema.js +3 -3
  81. package/node_modules/@engenty/wizards-shared/dist/providers.d.ts +37 -0
  82. package/node_modules/@engenty/wizards-shared/dist/providers.js +64 -12
  83. package/package.json +1 -1
  84. package/plugin/.claude-plugin/plugin.json +1 -1
  85. package/plugin/plugin.json +1 -1
  86. package/apps/web/dist/assets/ProjectPage-D6Tah3QK.js +0 -1
  87. package/apps/web/dist/assets/SettingsPage-Cd-osLDu.js +0 -2
  88. package/apps/web/dist/assets/SetupPage-Dc8U5k5P.js +0 -1
  89. package/apps/web/dist/assets/changelog-CjSBB-a4.js +0 -1
  90. package/apps/web/dist/assets/index-DS3zUVw_.css +0 -1
  91. package/apps/web/dist/assets/index-Da7hPToW.js +0 -14
  92. package/apps/web/dist/assets/theme-DanjuO1H.js +0 -11
  93. package/apps/web/dist/assets/ui-CJCF3Mhe.js +0 -137
@@ -148,6 +148,13 @@
148
148
  "when": 1792407474301,
149
149
  "tag": "0020_project_page",
150
150
  "breakpoints": true
151
+ },
152
+ {
153
+ "idx": 21,
154
+ "version": "6",
155
+ "when": 1792568616734,
156
+ "tag": "0021_model_classes",
157
+ "breakpoints": true
151
158
  }
152
159
  ]
153
160
  }
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: Quick start
3
3
  description: A tool for AI steps in one file. No build, no restart.
4
- version: 0.5.0
4
+ version: 0.9.6
5
5
  ---
6
6
 
7
7
  You write one file. The running app finds it, and every AI step can use the tool in it.
@@ -72,7 +72,7 @@ In a wizard’s definition the step lists the tool by its full id:
72
72
  "title": "Count the working days",
73
73
  "instructions": "Count the working days from {{start}} to {{end}}.",
74
74
  "tools": ["workdays.count"],
75
- "model": "standard",
75
+ "model": "low",
76
76
  "output": { "format": "json", "fields": [{ "id": "days", "kind": "number", "description": "Working days" }] }
77
77
  }
78
78
  ```
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: The server half
3
3
  description: The function a plugin exports, what it is handed, and the rules it runs under.
4
- version: 0.5.0
4
+ version: 0.9.6
5
5
  ---
6
6
 
7
7
  The server half is a file whose default export is a function. The runtime calls it once when the
@@ -182,7 +182,7 @@ const { object } = await server.generate({
182
182
  | `prompt` | What the model is asked | required |
183
183
  | `system` | How it should answer | |
184
184
  | `schema` | A zod schema: `object` is the answer in that shape | text only |
185
- | `model` | `classifier` (fast, cheap), `standard`, `high`, `highest` | `standard` |
185
+ | `model` | The model class: `classifier` (fast, cheap), `low`, `standard`, `high` | `low` |
186
186
  | `maxOutputTokens` | A limit on the answer | the model’s |
187
187
  | `signal` | Aborts the call | two minutes |
188
188
  | `files` | Pictures (PNG, JPEG, WebP, GIF) and PDFs the model looks at with the prompt: `{ data, mediaType, name? }[]`, `data` a `Uint8Array` | none |
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: Agent steps
3
3
  description: An AI step's instructions, tools, output, model class, decisions, and one run per entry.
4
- version: 0.7.10
4
+ version: 0.9.6
5
5
  ---
6
6
 
7
7
  An `agent` step is an AI step. It reads its `instructions`, may call tools, and returns its
@@ -14,7 +14,7 @@ output.
14
14
  "instructions": "Find three current facts about {{topic}}, each with its source.",
15
15
  "tools": ["web_search", "web_fetch"],
16
16
  "output": { "format": "markdown" },
17
- "model": "high"
17
+ "model": "standard"
18
18
  }
19
19
  ```
20
20
 
@@ -74,13 +74,17 @@ outside the wizard.
74
74
  | `model` | For |
75
75
  |---|---|
76
76
  | `classifier` | Routing, yes or no, picking from options, a few values from a text |
77
- | `standard` | Short copy, calling an API, reformatting |
78
- | `high` | Research with tools, long documents, reasoning over many sources. The default |
79
- | `highest` | Hard reasoning or writing code. Several times the cost of `high` |
77
+ | `low` | Short copy, calling an API, reformatting |
78
+ | `standard` | Research with tools, long documents, reasoning over many sources. The default |
79
+ | `high` | Hard reasoning or writing code. Several times the cost of `standard` |
80
80
 
81
81
  `effort` (`low`, `medium`, `high`) tells the model how hard to think, where the bound model can be
82
82
  told. Leave it out unless a step is clearly simple or clearly hard.
83
83
 
84
+ Version 1 of the format named these classes one step lower: its `standard`, `high` and `highest`
85
+ are `low`, `standard` and `high` now. A file without `version`, or with `"version": 1`, is read
86
+ that way and saved as version 2.
87
+
84
88
  ## Decisions
85
89
 
86
90
  A `classifier` step with no tools whose `json` output holds only `yesno`, `choice` and `score`
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: Films
3
3
  description: A film step has the AI client on your computer write a film as code, and the runtime renders it.
4
- version: 0.7.10
4
+ version: 0.9.6
5
5
  ---
6
6
 
7
7
  A `film` step makes a motion-graphics film. The AI client on your computer (Claude Code) writes
@@ -30,7 +30,7 @@ credits or in the cloud, and it takes 5 to 40 minutes.
30
30
  | `format` | `16:9` (the default), `9:16` or `1:1` |
31
31
  | `from` | `steps.<id>` of an earlier film step. This film starts from that one’s code and lays it out for its own format |
32
32
  | `seconds` | About how long the film runs, 3 to 600 |
33
- | `model`, `effort` | The model class, `standard` by default. The kit carries the craft |
33
+ | `model`, `effort` | The model class, `low` by default. The kit carries the craft |
34
34
 
35
35
  Files among the inputs (uploads, voice lines, pictures) are copied into `input/<name>/`. Text is
36
36
  written to `input/<name>.md`, JSON to `input/<name>.json`.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: The wizard format
3
3
  description: A wizard as one JSON document, what its keys mean, and where each part is described.
4
- version: 0.9.0
4
+ version: 0.9.6
5
5
  ---
6
6
 
7
7
  A wizard is one JSON document, its **definition**. The studio exports it as a `.wizard` file
@@ -16,8 +16,8 @@ tool may read and write wizards.
16
16
 
17
17
  ```json
18
18
  {
19
- "$schema": "https://engenty.ai/schema/v1/wizard.json",
20
- "version": 1,
19
+ "$schema": "https://engenty.ai/schema/v2/wizard.json",
20
+ "version": 2,
21
21
  "title": "Create an invoice",
22
22
  "description": "A finished invoice from a few details.",
23
23
  "avatar": "round",
@@ -28,7 +28,7 @@ tool may read and write wizards.
28
28
 
29
29
  | Key | What it holds |
30
30
  |---|---|
31
- | `version` | The version of the format, `1`. See [Version](#version) |
31
+ | `version` | The version of the format, `2`. See [Version](#version) |
32
32
  | `title` | What people get, short. See [Title, description and intro](#title-description-and-intro) |
33
33
  | `description` | One sentence about the wizard |
34
34
  | `avatar` | The engenty shown to people. See [The avatar](#the-avatar) |
@@ -117,11 +117,17 @@ wizard, and each language can be edited line by line there.
117
117
  ## Version
118
118
 
119
119
  `version` is the version of the format the definition is written in, not of the wizard. It is
120
- `1` today, and `1` is the default when it is left out.
120
+ `2` today. Write it: a definition without it is read as version 1.
121
121
 
122
122
  It changes only with a breaking change to the format. The schemas of each version stay online in
123
123
  their own folder (`/schema/v1/`, `/schema/v2/`, …). An app reads only the versions it knows: it
124
- refuses a wizard of a newer version instead of running it the wrong way.
124
+ refuses a wizard of a newer version instead of running it the wrong way. An older version it
125
+ reads and saves in its own.
126
+
127
+ | Version | What changed |
128
+ |---|---|
129
+ | 2 | The text model classes are `classifier`, `low`, `standard`, `high`. Version 1’s `standard`, `high` and `highest` are read as `low`, `standard` and `high`. See [Agent steps](./agent-steps.md#model-class-and-effort) |
130
+ | 1 | The first version |
125
131
 
126
132
  The versions of a wizard itself, its drafts and what is published, are kept in the studio, not
127
133
  in the definition.
@@ -151,7 +157,7 @@ Steps run from top to bottom unless a step’s `next` sends the run elsewhere. S
151
157
 
152
158
  ```json
153
159
  {
154
- "version": 1,
160
+ "version": 2,
155
161
  "title": "X post with an image",
156
162
  "description": "Turns a topic into a finished post with an image.",
157
163
  "avatar": "flame",
@@ -166,7 +172,7 @@ Steps run from top to bottom unless a step’s `next` sends the run elsewhere. S
166
172
  ]
167
173
  },
168
174
  {
169
- "id": "post", "type": "agent", "title": "Write the post", "model": "standard",
175
+ "id": "post", "type": "agent", "title": "Write the post", "model": "low",
170
176
  "instructions": "Write a post for X on {{topic}}. Tone: {{tone}}. At most 270 characters.",
171
177
  "tools": [], "output": { "format": "text" }
172
178
  },
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: Models and account
3
3
  description: What runs the AI in your wizards – an AI client on your computer, your own API keys, a local model or credits.
4
- version: 0.9.3
4
+ version: 0.9.6
5
5
  ---
6
6
 
7
7
  Settings → Models decides what runs the AI in your wizards. On your computer you set it up
@@ -14,7 +14,7 @@ green on something of your own, amber on credits, hollow when nothing is set up.
14
14
 
15
15
  | Capability | Used for | Classes |
16
16
  |---|---|---|
17
- | Text & reasoning | Writing, research and decisions in the steps | Classifier, Standard, High, Highest |
17
+ | Text & reasoning | Writing, research and decisions in the steps | Classifier, Low, Standard, High |
18
18
  | Images | Logos, product shots, illustrations | Image |
19
19
  | Videos | Short clips from text or an image | Video |
20
20
  | Voice | Reading text aloud | Speech |
@@ -47,13 +47,13 @@ then, the choice says why it can’t be used yet: “switched off” or “Apple
47
47
  model”.
48
48
 
49
49
  The model is small. It reads at most 4,096 tokens for a prompt and its answer together, and it
50
- uses no tools. So it takes only the classes Classifier and Standard: decisions, picking values
50
+ uses no tools. So it takes only the classes Classifier and Low: decisions, picking values
51
51
  out of text and short copy. A step of these classes runs there without its tools (no API calls,
52
52
  no web, no lists or documents). A step whose text is too long fails with a note that says so.
53
- Give such a step the class High, or choose something else for the class.
53
+ Give such a step the class Standard, or choose something else for the class.
54
54
 
55
- High and Highest keep what they ran on before. The page names it under the choice. If you later
56
- choose something else for text, Classifier and Standard leave Apple Intelligence again.
55
+ Standard and High keep what they ran on before. The page names it under the choice. If you later
56
+ choose something else for text, Classifier and Low leave Apple Intelligence again.
57
57
 
58
58
  “Voice notes” offers Apple Intelligence on the same Macs, even with Apple Intelligence switched
59
59
  off. The Mac writes a recording down itself, in the language of the run, and it costs nothing. The
@@ -89,14 +89,23 @@ before a run say so, with a link to top up at Vercel.
89
89
 
90
90
  ## Model per class
91
91
 
92
- A step names a class, never a model. For text, “Adjust per class” sets the model of each class:
92
+ A step names a class, never a model. For text, “Adjust per class” sets the model of each class.
93
+ Under each class the page shows what its model needs at least, and warns when the chosen model
94
+ lacks some of it:
93
95
 
94
- | Class | Used for |
95
- |---|---|
96
- | Classifier | Decisions, picking values out of text |
97
- | Standard | Short copy, API calls |
98
- | High | Research, long documents |
99
- | Highest | Hard reasoning, code; the assistant in the editor |
96
+ | Class | Used for | Needs at least |
97
+ |---|---|---|
98
+ | Classifier | Decisions, picking values out of text | JSON output, 32k tokens of context |
99
+ | Low | Short copy, API calls | Tool calls, JSON output, image input, 64k tokens of context |
100
+ | Standard | Research, long documents; Goose | Tool calls, JSON output, image input, 128k tokens of context |
101
+ | High | Hard reasoning, code; the assistant in the editor | Tool calls, JSON output, image input, reasoning, 200k tokens of context |
102
+
103
+ What a model can do comes from the AI Gateway’s model list; a model that list doesn’t know isn’t
104
+ checked. Goose and the assistant in the editor can’t work without tool calls: the page doesn’t
105
+ save a model without them for Standard or High.
106
+
107
+ With an AI Gateway key, the classes start on low-cost models: DeepSeek V4.1 Flash for Classifier,
108
+ Low and Standard, Kimi K3 for High.
100
109
 
101
110
  You write a model as `vendor/model` for the AI Gateway, with the provider in front for the others
102
111
  (`openai:gpt-5.4-mini`, `fal:fal-ai/flux/schnell`, `ollama:qwen3`), or as `credits` /
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: Steps
3
3
  description: What a wizard is made of – pages, AI steps, generated media, widgets, reviews and the result.
4
- version: 0.9.3
4
+ version: 0.9.6
5
5
  ---
6
6
 
7
7
  A wizard runs its steps from top to bottom. The last step is always the result.
@@ -95,13 +95,13 @@ A step names the kind of model it needs, never a model:
95
95
  | Class | For |
96
96
  |---|---|
97
97
  | Classifier | Routing, yes/no, picking from options, pulling a few values out of text. Cheapest |
98
- | Standard | Short copy, calling an API, reformatting |
99
- | High | Research with tools, long documents, weighing many sources. The default |
100
- | Highest | Hard reasoning or code. Several times the cost of High |
98
+ | Low | Short copy, calling an API, reformatting |
99
+ | Standard | Research with tools, long documents, weighing many sources. The default |
100
+ | High | Hard reasoning or code. Several times the cost of Standard |
101
101
 
102
- On a Mac, Classifier and Standard can run on [Apple Intelligence](./models.md#apple-intelligence).
102
+ On a Mac, Classifier and Low can run on [Apple Intelligence](./models.md#apple-intelligence).
103
103
  It is free and stays on your computer, but it handles only short texts and no tools. There, give
104
- a step that calls an API or reads documents the class High.
104
+ a step that calls an API or reads documents the class Standard.
105
105
 
106
106
  Images, video, voice notes and voice-overs have classes of their own. You choose which model
107
107
  serves a class under [Models and account](./models.md). “Thinking effort” sets how much effort
@@ -87,7 +87,7 @@ class VisionProvider {
87
87
  }
88
88
  async convert(data, filename, mimeType, _options) {
89
89
  // Reads scans and photos: the class it runs on must take PDFs and images.
90
- const reader = await textModel("standard", this.call);
90
+ const reader = await textModel("low", this.call);
91
91
  const result = await generateText({
92
92
  model: reader.model,
93
93
  abortSignal: this.signal,
@@ -29,31 +29,31 @@ function ownClasses(step) {
29
29
  if (isDecisionStep(step)) {
30
30
  return ["classifier"];
31
31
  }
32
- const classes = [step.model ?? "high"];
32
+ const classes = [step.model ?? "standard"];
33
33
  if (step.tools.includes("image")) {
34
34
  classes.push("image");
35
35
  }
36
36
  if (step.output.format === "json") {
37
37
  classes.push("classifier");
38
38
  }
39
- if (step.output.surface === true && !classes.includes("standard")) {
40
- classes.push("standard");
39
+ if (step.output.surface === true && !classes.includes("low")) {
40
+ classes.push("low");
41
41
  }
42
42
  return classes;
43
43
  }
44
44
  case "generate":
45
45
  switch (step.asset) {
46
46
  case "image":
47
- return ["standard", "image"];
47
+ return ["low", "image"];
48
48
  case "video":
49
- return ["standard", "video"];
49
+ return ["low", "video"];
50
50
  case "voice":
51
51
  return ["speech"];
52
52
  default:
53
- return [step.model ?? "high"];
53
+ return [step.model ?? "standard"];
54
54
  }
55
55
  case "film":
56
- return [step.model ?? "standard"];
56
+ return [step.model ?? "low"];
57
57
  case "page":
58
58
  // A voice note the page asks for is listened to before the next step reads it.
59
59
  return step.fields.some((f) => f.kind === "audio" && f.required) ? ["audio"] : [];
@@ -243,7 +243,7 @@ export async function missingModelsSaid(def) {
243
243
  if (step.type !== "film") {
244
244
  continue;
245
245
  }
246
- const cls = step.model ?? "standard";
246
+ const cls = step.model ?? "low";
247
247
  const found = await filmClient(cls);
248
248
  if ("problem" in found) {
249
249
  missing.push({
@@ -297,8 +297,8 @@ export function blockingMessage(missing) {
297
297
  }
298
298
  /** The class a marketplace capability stands for; the rest need no model of their own. */
299
299
  const CAPABILITY_CLASS = {
300
- text: "standard",
301
- documents: "standard",
300
+ text: "low",
301
+ documents: "low",
302
302
  image: "image",
303
303
  video: "video",
304
304
  speech: "speech",
@@ -312,7 +312,7 @@ export async function missingCapabilities() {
312
312
  missing.add(capability);
313
313
  }
314
314
  }
315
- if ("problem" in (await filmClient("standard"))) {
315
+ if ("problem" in (await filmClient("low"))) {
316
316
  missing.add("film");
317
317
  }
318
318
  return missing;
@@ -334,7 +334,7 @@ async function composeSurface(step, json, ctx) {
334
334
  const fields = shapeLines(shape).join("\n");
335
335
  const sample = JSON.stringify(json).slice(0, 4000);
336
336
  try {
337
- const writer = await textModel("standard", ctx.call);
337
+ const writer = await textModel("low", ctx.call);
338
338
  let issues = [];
339
339
  for (let attempt = 0; attempt < 2; attempt++) {
340
340
  const result = await generateText({
@@ -481,7 +481,7 @@ export async function runAgentStep(step, ctx) {
481
481
  if (step.each) {
482
482
  return runAgentEach(step, ctx);
483
483
  }
484
- const resolved = await textModel(step.model ?? "high", { ...ctx.call, effort: step.effort });
484
+ const resolved = await textModel(step.model ?? "standard", { ...ctx.call, effort: step.effort });
485
485
  const uploads = await personUploads(ctx);
486
486
  const { tools, assets, instructions, close } = await buildStepTools(step, ctx, resolved, uploads);
487
487
  // A step without tools of its own and without uploads: the run's device may answer it alone.
@@ -785,7 +785,7 @@ async function writeHtml(step, ctx, kind) {
785
785
  ]
786
786
  .filter(Boolean)
787
787
  .join("\n\n");
788
- const writer = await textModel(step.model ?? "high", { ...ctx.call, effort: step.effort });
788
+ const writer = await textModel(step.model ?? "standard", { ...ctx.call, effort: step.effort });
789
789
  const result = await generateText({
790
790
  model: writer.model,
791
791
  system,
@@ -811,7 +811,7 @@ async function visualPrompt(step, ctx, entry) {
811
811
  const scope = { ...ctx.scope, entry };
812
812
  const brief = renderTemplate(step.prompt, scope);
813
813
  const note = ctx.state.notes[step.id];
814
- const prompter = await textModel("standard", ctx.call);
814
+ const prompter = await textModel("low", ctx.call);
815
815
  const from = entry.reference
816
816
  ? step.asset === "video"
817
817
  ? " The video STARTS FROM A GIVEN IMAGE: describe only what moves in it and how the camera moves; never re-describe or change what the image shows."
@@ -169,10 +169,10 @@ export const env = {
169
169
  ollamaUrl: str("OLLAMA_URL", "http://127.0.0.1:11434/v1"),
170
170
  /** What each model class runs on when this runtime resolves classes itself (own keys, Ollama). */
171
171
  models: {
172
- classifier: str("MODEL_CLASSIFIER", "anthropic/claude-haiku-4.5"),
173
- standard: str("MODEL_STANDARD", "anthropic/claude-haiku-4.5"),
174
- high: str("MODEL_HIGH", "anthropic/claude-sonnet-5.5"),
175
- highest: str("MODEL_HIGHEST", "anthropic/claude-sonnet-5.5"),
172
+ classifier: str("MODEL_CLASSIFIER", "deepseek/deepseek-v4.1-flash"),
173
+ low: str("MODEL_LOW", "deepseek/deepseek-v4.1-flash"),
174
+ standard: str("MODEL_STANDARD", "deepseek/deepseek-v4.1-flash"),
175
+ high: str("MODEL_HIGH", "moonshotai/kimi-k3"),
176
176
  image: str("MODEL_IMAGE", "google/gemini-3.1-flash-image"),
177
177
  video: str("MODEL_VIDEO", "google/veo-3.1-fast-generate-001"),
178
178
  audio: str("MODEL_AUDIO", "google/gemini-3.5-flash-lite"),
@@ -94,7 +94,7 @@ function renderProblem(out) {
94
94
  /** How many times a failed final render goes back to the client to be fixed. */
95
95
  const RENDER_FIXES = 2;
96
96
  export async function runFilmStep(step, ctx) {
97
- const found = await filmClient(step.model ?? "standard");
97
+ const found = await filmClient(step.model ?? "low");
98
98
  if ("problem" in found) {
99
99
  throw new StepError(found.problem);
100
100
  }
@@ -14,9 +14,9 @@ export const AGY_BIN = process.env.AGY_BIN?.trim() || "agy";
14
14
  /** The models carry their effort in the name: `gemini-3.8-flash-<low|medium|high>`. */
15
15
  const CLASSES = {
16
16
  classifier: "gemini-3.8-flash-low",
17
- standard: "gemini-3.8-flash-medium",
17
+ low: "gemini-3.8-flash-medium",
18
+ standard: "gemini-3.8-flash-high",
18
19
  high: "gemini-3.8-flash-high",
19
- highest: "gemini-3.8-flash-high",
20
20
  };
21
21
  /** The model of that name at the effort a step asks for, where the name carries one. */
22
22
  export function withEffort(model, effort) {
@@ -117,5 +117,5 @@ export const antigravity = {
117
117
  version: (env) => probeVersion(AGY_BIN, env, (stdout) => stdout.trim().split("\n").pop()?.trim() || null),
118
118
  // No login command: the client asks for the Google sign-in when it starts without one.
119
119
  login: { args: [], interactive: true },
120
- model: (alias, effort) => new AntigravityModel(antigravity, alias || CLASSES.standard, effort),
120
+ model: (alias, effort) => new AntigravityModel(antigravity, alias || CLASSES.low, effort),
121
121
  };
@@ -14,7 +14,7 @@ import { HarnessModel, lastJson, runClient, } from "./model.js";
14
14
  * installed AI client is run. Nothing leaves the machine and nothing is signed in. It is offered
15
15
  * where it can run: a Mac with Apple silicon on macOS 26 or later with the helper built, and it
16
16
  * answers once Apple Intelligence is switched on. The model is small (about 3B parameters,
17
- * 4,096 tokens for prompt and answer together): a way for the Classifier and Standard classes,
17
+ * 4,096 tokens for prompt and answer together): a way for the Classifier and Low classes,
18
18
  * not for research, long documents or code. `apple:default` is the model; `apple:tagging` is
19
19
  * Apple's adapter for tagging and extraction.
20
20
  */
@@ -9,9 +9,9 @@ import { failureOf, HarnessModel, lastJson, runClient, } from "./model.js";
9
9
  export const CLAUDE_BIN = process.env.CLAUDE_BIN?.trim() || "claude";
10
10
  const CLASSES = {
11
11
  classifier: "haiku",
12
- standard: "sonnet",
12
+ low: "sonnet",
13
+ standard: "opus",
13
14
  high: "opus",
14
- highest: "opus",
15
15
  };
16
16
  const spec = {
17
17
  id: "claude",
@@ -17,9 +17,9 @@ export const CODEX_BIN = process.env.CODEX_BIN?.trim() || "codex";
17
17
  */
18
18
  const CLASSES = {
19
19
  classifier: "gpt-6-luna",
20
+ low: "gpt-6.1-sol",
20
21
  standard: "gpt-6.1-sol",
21
- high: "gpt-6.1-sol",
22
- highest: "gpt-6-astra",
22
+ high: "gpt-6-astra",
23
23
  };
24
24
  const spec = {
25
25
  id: "codex",
@@ -173,7 +173,7 @@ class CodexImageModel extends HarnessImageModel {
173
173
  "-c",
174
174
  'web_search="disabled"',
175
175
  "-m",
176
- this.modelId === "image" ? CLASSES.standard : this.modelId,
176
+ this.modelId === "image" ? CLASSES.low : this.modelId,
177
177
  ];
178
178
  for (const file of call.files) {
179
179
  args.push("-i", file);
@@ -11,9 +11,9 @@ export const CURSOR_BIN = process.env.CURSOR_AGENT_BIN?.trim() || "cursor-agent"
11
11
  /** "auto" = the model the client picks itself; a binding `cursor/<model>` names one. */
12
12
  const CLASSES = {
13
13
  classifier: "auto",
14
+ low: "auto",
14
15
  standard: "auto",
15
16
  high: "auto",
16
- highest: "auto",
17
17
  };
18
18
  /** The escape sequences a terminal app draws with. */
19
19
  const ANSI = new RegExp(`${String.fromCharCode(27)}\\[[0-9;]*[A-Za-z]`, "g");
@@ -1,3 +1,4 @@
1
+ import { DEFINITION_VERSION, upgradeDefinition } from "@engenty/wizards-shared/definition";
1
2
  import { z } from "zod";
2
3
  import { authoringGuide } from "../authoring/guide.js";
3
4
  import { wizardOpSchema } from "../authoring/ops.js";
@@ -16,6 +17,8 @@ import { FLOW_VIEW_KEY, flowAppMeta, flowView } from "./flow-app.js";
16
17
  const definition = z
17
18
  .record(z.string(), z.unknown())
18
19
  .describe("The complete wizard JSON as described by get_authoring_guide.");
20
+ /** A wizard a model wrote from today's authoring guide is of today's version, said or not. */
21
+ const authored = (raw) => upgradeDefinition(raw, DEFINITION_VERSION);
19
22
  const note = z
20
23
  .string()
21
24
  .max(500)
@@ -244,7 +247,7 @@ export function registerTools(server, who) {
244
247
  readOnly: true,
245
248
  }, async (args) => {
246
249
  try {
247
- const { issues } = parseDraft(args.definition);
250
+ const { issues } = parseDraft(authored(args.definition));
248
251
  return { ok: issues.length === 0, issues };
249
252
  }
250
253
  catch (err) {
@@ -265,7 +268,7 @@ export function registerTools(server, who) {
265
268
  note,
266
269
  }),
267
270
  }, async (args) => {
268
- const created = await createWizard(who.userId, args, writer);
271
+ const created = await createWizard(who.userId, { ...args, definition: args.definition && authored(args.definition) }, writer);
269
272
  return {
270
273
  wizardId: created.id,
271
274
  revision: created.revision,
@@ -300,7 +303,7 @@ Returns the new revision and the issues.`,
300
303
  input: z.object({ wizardId: z.string(), baseRevision, definition, note }),
301
304
  destructive: true,
302
305
  }, async ({ wizardId, ...input }) => {
303
- const { revision, issues } = await writeDraft(who.userId, wizardId, input, writer);
306
+ const { revision, issues } = await writeDraft(who.userId, wizardId, { ...input, definition: authored(input.definition) }, writer);
304
307
  return { revision, issues };
305
308
  });
306
309
  // --- publish ---------------------------------------------------------------