@engenty/wizards-runtime 0.11.0 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -6
- package/apps/runtime/dist/app.js +5 -0
- package/apps/runtime/dist/authoring/guide.js +19 -19
- package/apps/runtime/dist/docs/dev/index.md +1 -0
- package/apps/runtime/dist/docs/dev/licensing.md +60 -0
- package/apps/runtime/dist/docs/dev/meta.json +2 -1
- package/apps/runtime/dist/docs/dev/plugins/runners.md +2 -2
- package/apps/runtime/dist/docs/dev/wizard-format/index.md +4 -4
- package/apps/runtime/dist/docs/dev/wizard-format/meta.json +1 -1
- package/apps/runtime/dist/docs/dev/wizard-format/motion-graphics-steps.md +47 -0
- package/apps/runtime/dist/docs/dev/wizard-format/review-and-result.md +2 -2
- package/apps/runtime/dist/docs/dev/wizard-format/views-and-widgets.md +2 -2
- package/apps/runtime/dist/docs/dev/wizard-format/wizard-file.md +4 -4
- package/apps/runtime/dist/docs/user-guide/space.md +5 -1
- package/apps/runtime/dist/docs/user-guide/steps.md +12 -12
- package/apps/runtime/dist/engine/requirements.js +7 -7
- package/apps/runtime/dist/engine/runner.js +8 -1
- package/apps/runtime/dist/engine/steps.js +3 -3
- package/apps/runtime/dist/files/storage.js +3 -3
- package/apps/runtime/dist/index.js +3 -0
- package/apps/runtime/dist/limits.js +16 -0
- package/apps/runtime/dist/manage.js +19 -0
- package/apps/runtime/dist/models.js +8 -8
- package/apps/runtime/dist/{film → motion-graphics}/project.js +54 -54
- package/apps/runtime/dist/{film → motion-graphics}/sounds.js +3 -3
- package/apps/runtime/dist/{film → motion-graphics}/step.js +37 -37
- package/apps/runtime/dist/{film → motion-graphics}/tools.js +1 -1
- package/apps/runtime/dist/render/downloads.js +2 -2
- package/apps/runtime/dist/render/guard.js +1 -1
- package/apps/runtime/dist/routes/delivery.js +1 -1
- package/apps/runtime/dist/routes/internal.js +1 -1
- package/apps/runtime/dist/routes/marketplace.js +4 -3
- package/apps/runtime/dist/routes/reports.js +80 -0
- package/apps/runtime/dist/routes/runs.js +25 -1
- package/apps/runtime/dist/services/brand.js +1 -1
- package/apps/runtime/dist/services/manage-reports.js +190 -0
- package/apps/runtime/dist/services/marketplace.js +33 -1
- package/apps/runtime/dist/services/pages.js +1 -1
- package/apps/runtime/dist/services/shipped-fonts.js +2 -1
- package/apps/runtime/dist/services/wizards.js +7 -0
- package/apps/runtime/dist/widgets/render.js +9 -9
- package/apps/runtime/dist/widgets/runtime.js +3 -3
- package/apps/runtime/dist/widgets/step.js +20 -20
- package/apps/web/dist/assets/AboutDialog-Bx6j5lZO.js +1 -0
- package/apps/web/dist/assets/ChangelogDialog-C620Sw_A.js +1 -0
- package/apps/web/dist/assets/CodeEditor-DifBNaqQ.js +2 -0
- package/apps/web/dist/assets/EditorPage-DWf9QG-U.js +3 -0
- package/apps/web/dist/assets/{FlowPreview-BV1NJ0rF.js → FlowPreview-ucwQ_dTr.js} +1 -1
- package/apps/web/dist/assets/{Harness-DYviBlHB.js → Harness-Br0Z_anI.js} +2 -2
- package/apps/web/dist/assets/Marketplace-CFDpVMWM.js +2 -0
- package/apps/web/dist/assets/NewWizardChannels-Cau6XSbl.js +1 -0
- package/apps/web/dist/assets/NewWizardPage-CrFqInHR.js +7 -0
- package/apps/web/dist/assets/OnboardingPage-BZk42_R7.js +1 -0
- package/apps/web/dist/assets/PreviewPane-D9n6tylf.js +10 -0
- package/apps/web/dist/assets/ProjectPage-CteRfxpz.js +1 -0
- package/apps/web/dist/assets/PublicRunner-CNanj6-w.js +1 -0
- package/apps/web/dist/assets/ReadOnly-DGBDtXFP.js +1 -0
- package/apps/web/dist/assets/SettingsPage-ClFQewEL.js +2 -0
- package/apps/web/dist/assets/SetupPage-k9gyFvow.js +1 -0
- package/apps/web/dist/assets/SharePage-BhWeqF3w.js +1 -0
- package/apps/web/dist/assets/changelog-BrhGlZT6.js +1 -0
- package/apps/web/dist/assets/{coins-DQ91VJAB.js → coins-CwURUZyt.js} +1 -1
- package/apps/web/dist/assets/dist-BwhPmMDu.js +1 -0
- package/apps/web/dist/assets/dist-DVpDdhG9.js +1 -0
- package/apps/web/dist/assets/dist-DzdNG7Sf.js +10 -0
- package/apps/web/dist/assets/i18n-DEmaSTJV.js +55 -0
- package/apps/web/dist/assets/index-ClNm5JaU.js +34 -0
- package/apps/web/dist/assets/index-DImS12WR.css +1 -0
- package/apps/web/dist/assets/json-D2GVvTXK.js +1 -0
- package/apps/web/dist/assets/markdown-DwdMW7q0.js +29 -0
- package/apps/web/dist/assets/{oss-credits-C2JUsf2d.js → oss-credits-C6bPkfSE.js} +1 -1
- package/apps/web/dist/assets/{phone-jIuRIwyg.js → phone-DTxGRwhK.js} +1 -1
- package/apps/web/dist/assets/runners-BMOIT6Ze.js +1 -0
- package/apps/web/dist/assets/session-xJpGiTU_.js +2 -0
- package/apps/web/dist/assets/{settings-menu-CoLUNJGQ.js → settings-menu-DcPFhgGA.js} +1 -1
- package/apps/web/dist/assets/theme-DTi1Zdw8.js +11 -0
- package/apps/web/dist/assets/ui-gsqxnFnT.js +83 -0
- package/apps/web/dist/assets/{upload-BcOvBWHS.js → upload-BkwjFS-0.js} +1 -1
- package/apps/web/dist/assets/{useMutation-CD7HmAxR.js → useMutation-BS-U9g_a.js} +1 -1
- package/apps/web/dist/assets/{volume-2-D2To9w5D.js → volume-2-CYOgux-z.js} +1 -1
- package/apps/web/dist/assets/{wrench-B98ubRvB.js → wrench-DIfUvYPN.js} +1 -1
- package/apps/web/dist/index.html +9 -8
- package/apps/web/dist/mcp/flow.html +32 -32
- package/node_modules/@engenty/wizards/dist/plugin/index.d.ts +1 -1
- package/node_modules/@engenty/wizards-shared/dist/definition.d.ts +11 -11
- package/node_modules/@engenty/wizards-shared/dist/definition.js +24 -23
- package/node_modules/@engenty/wizards-shared/dist/engenty/data-tables/columns-value.js +1 -0
- package/node_modules/@engenty/wizards-shared/dist/fit.d.ts +7 -2
- package/node_modules/@engenty/wizards-shared/dist/fit.js +23 -6
- package/node_modules/@engenty/wizards-shared/dist/marketplace-entry.d.ts +1 -1
- package/node_modules/@engenty/wizards-shared/dist/marketplace-entry.js +1 -1
- package/node_modules/@engenty/wizards-shared/dist/marketplace.d.ts +9 -7
- package/node_modules/@engenty/wizards-shared/dist/marketplace.js +7 -23
- package/node_modules/@engenty/wizards-shared/dist/run.d.ts +15 -14
- package/node_modules/@engenty/wizards-shared/dist/run.js +30 -28
- package/node_modules/@engenty/wizards-shared/dist/runners.d.ts +1 -1
- package/node_modules/@engenty/wizards-shared/dist/runners.js +5 -5
- package/node_modules/@engenty/wizards-shared/dist/store.d.ts +1 -1
- package/node_modules/@engenty/wizards-shared/dist/store.js +1 -2
- package/node_modules/@engenty/wizards-shared/dist/theme-look.d.ts +39 -0
- package/node_modules/@engenty/wizards-shared/dist/theme-look.js +112 -0
- package/node_modules/@engenty/wizards-shared/dist/theme.d.ts +0 -38
- package/node_modules/@engenty/wizards-shared/dist/theme.js +1 -108
- package/node_modules/@engenty/wizards-shared/dist/wizard-package.js +1 -0
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/plugin.json +1 -1
- package/apps/runtime/dist/docs/dev/wizard-format/film-steps.md +0 -47
- package/apps/web/dist/assets/AboutDialog-9VcgySrQ.js +0 -1
- package/apps/web/dist/assets/ChangelogDialog-BXvT2VMU.js +0 -1
- package/apps/web/dist/assets/EditorPage-Cvzd0nah.js +0 -4
- package/apps/web/dist/assets/Marketplace-DTSg7_U7.js +0 -2
- package/apps/web/dist/assets/NewWizardChannels-DiujJzOR.js +0 -1
- package/apps/web/dist/assets/NewWizardPage-CngUh9g-.js +0 -7
- package/apps/web/dist/assets/OnboardingPage-DFKJnWtw.js +0 -1
- package/apps/web/dist/assets/PreviewPane-C0E9OLzB.js +0 -9
- package/apps/web/dist/assets/ProjectPage-CYDX-JYc.js +0 -1
- package/apps/web/dist/assets/PublicRunner-CkRO_Pw-.js +0 -1
- package/apps/web/dist/assets/ReadOnly-E-h9y_QO.js +0 -1
- package/apps/web/dist/assets/SettingsPage-BMgP3aRV.js +0 -2
- package/apps/web/dist/assets/SetupPage-DBO_rzj7.js +0 -1
- package/apps/web/dist/assets/SharePage-BvvmYB5N.js +0 -1
- package/apps/web/dist/assets/changelog-zllICQ4q.js +0 -1
- package/apps/web/dist/assets/index-Bjn557f1.js +0 -20
- package/apps/web/dist/assets/index-DN0VMwsS.css +0 -1
- package/apps/web/dist/assets/runners-DloOxEbh.js +0 -1
- package/apps/web/dist/assets/session-BpsCkDv6.js +0 -2
- package/apps/web/dist/assets/theme-2XjIQXH3.js +0 -11
- package/apps/web/dist/assets/ui-BIWmkPh6.js +0 -137
- /package/apps/runtime/dist/{film → motion-graphics}/skills.js +0 -0
package/README.md
CHANGED
|
@@ -39,6 +39,13 @@ waiting for developers. Host it in the cloud or inside your own walls, with any
|
|
|
39
39
|
<tr><td><strong>Integrate & Share</strong></td><td>Share a wizard as a link or an embed code, and send its results by email, to Drive or Slack, or through any connector.</td></tr>
|
|
40
40
|
</table>
|
|
41
41
|
|
|
42
|
+
## Open format
|
|
43
|
+
|
|
44
|
+
A wizard is one JSON document. Anyone may read, write and run wizards in their own tools. The
|
|
45
|
+
wizard format and the runner that shows a wizard to people are under the MIT licence. The studio,
|
|
46
|
+
the runtime and the rest are source available under FSL-1.1-MIT. Each release of them becomes
|
|
47
|
+
MIT two years after it is published. [License](#license) says which file is under which.
|
|
48
|
+
|
|
42
49
|
## How it looks
|
|
43
50
|
|
|
44
51
|
The studio: the conversation that changes a wizard, the preview of each page as people see it, and its steps as a flow with its branches.
|
|
@@ -220,9 +227,21 @@ and is a site of its own: `pnpm dev:docs`.
|
|
|
220
227
|
|
|
221
228
|
## License
|
|
222
229
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
230
|
+
The wizard format and the runner are MIT. The rest of the code is FSL-1.1-MIT.
|
|
231
|
+
|
|
232
|
+
| What | Licence |
|
|
233
|
+
|---|---|
|
|
234
|
+
| The wizard format: the sixteen files of `packages/shared` that define a wizard, read it and pack it as a `.wizard` file | MIT or FSL-1.1-MIT, your choice ([LICENSE-MIT](packages/shared/LICENSE-MIT)) |
|
|
235
|
+
| The runner, `packages/runner` | MIT ([LICENSE](packages/runner/LICENSE)) |
|
|
236
|
+
| The plugin for the AI apps, `plugin/`, without the engenty figures in it | MIT ([LICENSE](plugin/LICENSE)) |
|
|
237
|
+
| Everything else: the studio, the runtime, the `wizards` command, `@engenty/wizards` on npm | FSL-1.1-MIT ([LICENSE](LICENSE)) |
|
|
238
|
+
| The engenty figures as artwork | CC BY 4.0 ([LICENSE-FIGURES](LICENSE-FIGURES)) |
|
|
239
|
+
| The name and the figures as a brand | Trademarks ([TRADEMARKS.md](TRADEMARKS.md)) |
|
|
240
|
+
|
|
241
|
+
FSL-1.1-MIT is source available: use it for yourself and your company, run it, change it – just
|
|
242
|
+
don’t offer it to others as a competing product or service. Each release becomes MIT two years
|
|
243
|
+
after it is published. No licence grants rights to the name or the figures as a brand.
|
|
244
|
+
|
|
245
|
+
[COPYRIGHTS.md](COPYRIGHTS.md) lists the exact files under each licence. It also names the
|
|
246
|
+
owner, the marks, what is not ours and the third-party software with its licences. In the docs:
|
|
247
|
+
[Licensing](docs/content/dev/licensing.md).
|
package/apps/runtime/dist/app.js
CHANGED
|
@@ -29,6 +29,7 @@ import { liveRoutes } from "./routes/live.js";
|
|
|
29
29
|
import { marketplaceGuest, marketplaceStudio } from "./routes/marketplace.js";
|
|
30
30
|
import { publicPluginRoutes } from "./routes/plugin-public.js";
|
|
31
31
|
import { pluginRoutes } from "./routes/plugins.js";
|
|
32
|
+
import { reportRoutes } from "./routes/reports.js";
|
|
32
33
|
import { clientIp, connectCallback, publicRoutes, runRoutes, shareRoutes } from "./routes/runs.js";
|
|
33
34
|
import { studio } from "./routes/studio.js";
|
|
34
35
|
import { wizardStream } from "./routes/wizard-stream.js";
|
|
@@ -138,6 +139,8 @@ app.post("/api/log", bodyLimit({ maxSize: 8 * 1024 }), async (c) => {
|
|
|
138
139
|
}
|
|
139
140
|
return c.json({ ok: true });
|
|
140
141
|
});
|
|
142
|
+
// "Report a problem" from the run page and the studio (routes/reports.ts).
|
|
143
|
+
app.route("/api", reportRoutes);
|
|
141
144
|
if (serves.studio) {
|
|
142
145
|
app.route("/api", authRoutes);
|
|
143
146
|
}
|
|
@@ -150,6 +153,8 @@ app.get("/api/config", (c) => c.json({
|
|
|
150
153
|
publicUrl: env.publicUrl,
|
|
151
154
|
/** The feature switches before anyone is signed in: the code's, the environment's, the file's. */
|
|
152
155
|
features: features(),
|
|
156
|
+
/** The run page asks for feedback at the end and sends bug reports: they reach the Manage-App. */
|
|
157
|
+
reports: managed,
|
|
153
158
|
}));
|
|
154
159
|
if (serves.studio) {
|
|
155
160
|
// OAuth discovery for MCP clients (RFC 9728): the Manage-App is the authorization server.
|
|
@@ -260,11 +260,11 @@ type WidgetStep = {
|
|
|
260
260
|
entry: string // workspace path of the widget's HTML, e.g. "weather/index.html"
|
|
261
261
|
data: { [key]: string } // what the widget gets as wizard.data: key → fieldId | steps.stepId | steps.stepId.key | brand.name | facts.key | today
|
|
262
262
|
sample?: string // workspace path of example data (same shape as data) for previews
|
|
263
|
-
layout?: "fixed"|"page" // fixed (default): drawn at size and scaled to the page — maps, charts,
|
|
263
|
+
layout?: "fixed"|"page" // fixed (default): drawn at size and scaled to the page — maps, charts, videos.
|
|
264
264
|
// page: part of the run page, as wide as it and as tall as its content, never scaled —
|
|
265
265
|
// a result people scroll and use (a cook mode, a configurator, a planner)
|
|
266
266
|
size?: { width, height } // design size in px, default 1280×720 (9:16 → 1080×1920); exports render at it
|
|
267
|
-
video?: boolean // a
|
|
267
|
+
video?: boolean // a VIDEO: the timeline is rendered to an MP4 WITH SOUND when the step runs; the person sees and
|
|
268
268
|
// downloads that video. data may then name generate steps: "steps.<id>" of an image / video / voice
|
|
269
269
|
// step arrives as a URL (a list of URLs for a step with "each").
|
|
270
270
|
// "steps.<agentStepId>.assets" gives the pictures an agent step kept (browser screenshots
|
|
@@ -273,29 +273,29 @@ type WidgetStep = {
|
|
|
273
273
|
}
|
|
274
274
|
// an interactive HTML app written ONCE into the workspace; every run only brings new data (no model call, no cost)
|
|
275
275
|
|
|
276
|
-
type
|
|
277
|
-
type: "
|
|
278
|
-
brief: string // a template: what the
|
|
276
|
+
type MotionGraphicsStep = {
|
|
277
|
+
type: "motion-graphics"
|
|
278
|
+
brief: string // a template: what the video is — story, look, length, what to use. The kit carries the craft.
|
|
279
279
|
skills?: string[] // skill packages the client reads; default ["hyperframes"]. A workspace package: "skills/<name>" (has SKILL.md)
|
|
280
280
|
kit?: string // workspace path of a STYLE KIT (.zip): a showreel made once with its rules (frame.md),
|
|
281
|
-
// techniques (SHOWCASE.md), helpers and stills — the bar every
|
|
281
|
+
// techniques (SHOWCASE.md), helpers and stills — the bar every video of this wizard reaches.
|
|
282
282
|
// A kit with base/ (index.9x16.html, index.16x9.html, index.1x1.html, PARTS.md, BRAND.md,
|
|
283
|
-
// scene templates) is the project a
|
|
283
|
+
// scene templates) is the project a video starts from: the client composes instead of building
|
|
284
284
|
inputs?: { [name]: string } // name (lowercase, -) → fieldId | steps.stepId: voice lines, pictures, uploads become files in
|
|
285
285
|
// input/<name>/, text in input/<name>.md, json in input/<name>.json
|
|
286
286
|
format?: "16:9" | "9:16" | "1:1"
|
|
287
|
-
from?: string // "steps.<
|
|
288
|
-
// the second format of a
|
|
287
|
+
from?: string // "steps.<motionStepId>": start from that earlier video's code and lay it out for this format —
|
|
288
|
+
// the second format of a video in minutes; made from scratch when that step did not run
|
|
289
289
|
seconds?: number // about how long
|
|
290
290
|
model?: "low" | "standard" // the model class; default "low"
|
|
291
291
|
effort?: Effort
|
|
292
292
|
working?: string
|
|
293
293
|
}
|
|
294
|
-
// the AI client installed on the person's computer (Claude Code) writes the
|
|
294
|
+
// the AI client installed on the person's computer (Claude Code) writes the video as code in a folder of its own, with the
|
|
295
295
|
// skills, the kit, the space's brand (colours, logo, facts) and the inputs; it looks at its frames and fixes them; the
|
|
296
296
|
// runtime renders the MP4. It runs only where Claude Code is set up as the AI subscription — never on credits or in the
|
|
297
|
-
// cloud — and takes 5–40 minutes (less with a base kit; what a base
|
|
298
|
-
// next
|
|
297
|
+
// cloud — and takes 5–40 minutes (less with a base kit; what a base video makes from the space's brand is kept for the
|
|
298
|
+
// next videos there). Sounds come from a fixed catalog (CC0); voice comes from a generate voice step before it.
|
|
299
299
|
|
|
300
300
|
type ReviewStep = { type: "review", show: (stepId | "lists.<listId>")[], edit?: boolean, regenerate?: boolean }
|
|
301
301
|
// shows earlier outputs; the person accepts, edits text outputs (edit), or asks for a new version with a note (regenerate)
|
|
@@ -304,7 +304,7 @@ type ReviewStep = { type: "review", show: (stepId | "lists.<listId>")[], edit?:
|
|
|
304
304
|
type ResultStep = { type: "result", message?: string, deliverables: { from: stepId | "lists.<listId>", label?, formats: Format[] }[],
|
|
305
305
|
share?: { target: string, label?: string, values?: { [fieldId]: string } }[] }
|
|
306
306
|
// formats per source: image→png · video→mp4 (several results: zip) · voice→mp3 · document→pdf docx html md png · dashboard→html pdf png
|
|
307
|
-
//
|
|
307
|
+
// video widget (video: true)→mp4 png · video→mp4
|
|
308
308
|
// widget→html png pdf mp4 json (mp4 only when the widget registers a timeline)
|
|
309
309
|
// agent text/markdown→md txt docx pdf html · agent json→json csv xlsx md (xlsx: one sheet per table)
|
|
310
310
|
// agent json with schema→json csv xlsx md pdf
|
|
@@ -366,12 +366,12 @@ ${sandboxGuideLine()}
|
|
|
366
366
|
- Papers and scans: a "file" field with multiple and camera. Agent steps read uploads with read_document; for invoices and receipts scan_documents returns the fields (vendor, number, date, totals, currency) exactly as printed.
|
|
367
367
|
- Collecting documents (invoices from mail or portals): the step keeps each file with mail_save / browser_download under a dated path ("invoices/2026-09/2026-09-03_Notion_INV-123.pdf"); its deliverable offers "zip". Split a big job into steps (mail, then statements, then portals) — one step manages about 60 tool calls.
|
|
368
368
|
- Going through documents one by one (receipts against payments): never one model step per document. One step reads them in batches (scan_documents takes 30 at once) and writes rows into a list with "check"; the review shows that list split-screen — the person answers each row beside its file, without any model call.
|
|
369
|
-
- Video that convinces is built in stages, each with its own review: idea and script (agent, json with a table of shots) → one still per shot (generate image with "each", starting from the person's product photo) → one clip per still (generate video with "each" and referenceImage = the stills step) → a voice-over (generate voice) → a
|
|
370
|
-
- Motion-graphics
|
|
371
|
-
research and script (agent, standard) → the voice-over (one generate voice step for the whole script; the
|
|
372
|
-
word timings itself) →
|
|
369
|
+
- Video that convinces is built in stages, each with its own review: idea and script (agent, json with a table of shots) → one still per shot (generate image with "each", starting from the person's product photo) → one clip per still (generate video with "each" and referenceImage = the stills step) → a voice-over (generate voice) → a video widget (video: true) that cuts clips, captions, voice and a closing card with the call to action. The starters "facebook-video-ad" and "property-video" carry such a widget (video/video.js) to copy. Offer a cheaper path without clips: the video animates the stills.
|
|
370
|
+
- Motion-graphics videos (explainers, product spots, shorts) are a "motion-graphics" step after the preparation, each with a review:
|
|
371
|
+
research and script (agent, standard) → the voice-over (one generate voice step for the whole script; the motion-graphics step finds the
|
|
372
|
+
word timings itself) → video (inputs: the voice, pictures, the script). The look comes from a style kit in the workspace (kit), so the motion-graphics step stays on "low".
|
|
373
373
|
- Prices come from a file the admin keeps in the workspace (a CSV price list): the agent step looks them up with read_workspace_file and proposes positions as a table; the next page shows them in an "items" field with "prefill" for the person to correct; the runner computes the totals.
|
|
374
|
-
- AI media is marked for you (EU AI Act, Art. 50): images, clips, voice-overs and
|
|
374
|
+
- AI media is marked for you (EU AI Act, Art. 50): images, clips, voice-overs and videos carry the marking in their file metadata, and the pages lay the EU's "AI" label over them. Never ask an image step to draw such a label into the picture. A video is different — it leaves the page as a video file, so its widget shows the EU label in the picture: wizard.ai tells a widget whether the run's media in its data is "generated" or "edited" (video/video.js draws the matching icon).
|
|
375
375
|
- Every step a person sees later (review/result) must come from an earlier step id.
|
|
376
376
|
- Write all wizard texts in the admin's language.`;
|
|
377
377
|
export const WIDGET_GUIDE = `
|
|
@@ -397,7 +397,7 @@ one-off pages stay "generate" steps. A widget is code in the wizard's WORKSPACE
|
|
|
397
397
|
- Animation: call wizard.timeline({ duration: seconds, seek: t => draw(t) }) and drive your own
|
|
398
398
|
play/pause and <input type=range> scrubber from it. seek(t) must draw time t synchronously — the MP4
|
|
399
399
|
export steps through it frame by frame. In mode "export" hide all controls and do not autoplay.
|
|
400
|
-
- A
|
|
400
|
+
- A video (step.video): seek(t) may return a promise that resolves once the frame is drawn (set a clip's
|
|
401
401
|
currentTime, wait for "seeked", draw it to a canvas). Name the sound in the timeline:
|
|
402
402
|
audio: [{ src, start, duration?, from?, volume? }] with the URLs from wizard.data (the voice-over, the
|
|
403
403
|
clips themselves for their own sound; up to 48 tracks). "from" is the second of the source a track
|
|
@@ -18,6 +18,7 @@ its own page, on a website, in a chat or in your own app.
|
|
|
18
18
|
| [Your own UI](./integration/own-ui.md) | Your app draws the run with `@engenty/wizards-runner` |
|
|
19
19
|
| [Plugins](./plugins/index.md) | Tools for AI steps, routes with their own tables, pages in the studio |
|
|
20
20
|
| [The API](./api.md) | What a program may rely on, what is private, and how a client names itself |
|
|
21
|
+
| [Licensing](./licensing.md) | The wizard format and the runner are MIT, the rest is FSL-1.1-MIT |
|
|
21
22
|
|
|
22
23
|
## Wizards as files
|
|
23
24
|
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Licensing
|
|
3
|
+
description: Which parts of engenty wizards are MIT, which are FSL-1.1-MIT, and what that means for your tools.
|
|
4
|
+
version: 0.11.1
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
The wizard format and the runner are under the MIT licence. Anyone may read, write and run
|
|
8
|
+
wizards in their own tools, open or closed. The studio, the runtime and the rest of the code are
|
|
9
|
+
source available under FSL-1.1-MIT.
|
|
10
|
+
|
|
11
|
+
## Which part is under which licence
|
|
12
|
+
|
|
13
|
+
| What | Licence |
|
|
14
|
+
|---|---|
|
|
15
|
+
| The wizard format: the sixteen files of `packages/shared` that define a wizard, read it and pack it as a `.wizard` file | MIT or FSL-1.1-MIT, your choice ([LICENSE-MIT](https://github.com/engenty/wizards/blob/main/packages/shared/LICENSE-MIT)) |
|
|
16
|
+
| The runner, `@engenty/wizards-runner` in `packages/runner` | MIT ([LICENSE](https://github.com/engenty/wizards/blob/main/packages/runner/LICENSE)) |
|
|
17
|
+
| The plugin for the AI apps, `plugin/`, without the engenty figures in it | MIT ([LICENSE](https://github.com/engenty/wizards/blob/main/plugin/LICENSE)) |
|
|
18
|
+
| Everything else: the studio, the runtime, the `wizards` command, `@engenty/wizards` on npm | FSL-1.1-MIT ([LICENSE](https://github.com/engenty/wizards/blob/main/LICENSE)) |
|
|
19
|
+
| The engenty figures as artwork | CC BY 4.0 ([LICENSE-FIGURES](https://github.com/engenty/wizards/blob/main/LICENSE-FIGURES)) |
|
|
20
|
+
| The name and the figures as a brand | Trademarks ([TRADEMARKS.md](https://github.com/engenty/wizards/blob/main/TRADEMARKS.md)) |
|
|
21
|
+
|
|
22
|
+
[COPYRIGHTS.md](https://github.com/engenty/wizards/blob/main/COPYRIGHTS.md) lists the exact
|
|
23
|
+
files under each licence. Where it and this page differ, COPYRIGHTS.md and the licence files
|
|
24
|
+
count.
|
|
25
|
+
|
|
26
|
+
## The wizard format
|
|
27
|
+
|
|
28
|
+
These sixteen files in `packages/shared/src` define a wizard, read it and pack it as a
|
|
29
|
+
`.wizard` file:
|
|
30
|
+
|
|
31
|
+
- `definition.ts`, `fit.ts`, `numbers.ts`, `run.ts`, `runner-texts.ts`, `shape.ts`
|
|
32
|
+
- `sharing.ts`, `store.ts`, `surface.ts`, `texts.ts`, `translation.ts`
|
|
33
|
+
- `theme.ts`: a theme’s values, which a `.wizard` file carries
|
|
34
|
+
- `wizard-package.ts`: the `.wizard` file and its `wizard.json`
|
|
35
|
+
- `engenty/data-tables/columns.ts`, `columns-format.ts`, `columns-value.ts`
|
|
36
|
+
|
|
37
|
+
Each says `SPDX-License-Identifier: FSL-1.1-MIT OR MIT` in its first line. You choose which of
|
|
38
|
+
the two licences you take them under. Take MIT, and you can use the format in any tool: an
|
|
39
|
+
editor, a converter, your own runtime. These files import only each other and zod. The rest of
|
|
40
|
+
`packages/shared` is FSL-1.1-MIT. That includes `theme-look.ts`, which turns a theme into the
|
|
41
|
+
look of a run.
|
|
42
|
+
|
|
43
|
+
## The runner
|
|
44
|
+
|
|
45
|
+
`@engenty/wizards-runner` draws a wizard’s run: its pages, fields, reviews and results. It is
|
|
46
|
+
MIT, the format files it bundles included. Your own app can draw runs with it
|
|
47
|
+
([Your own UI](./integration/own-ui.md)).
|
|
48
|
+
|
|
49
|
+
## FSL-1.1-MIT
|
|
50
|
+
|
|
51
|
+
The Functional Source License lets you use the code for yourself and your company, run it and
|
|
52
|
+
change it. You may not offer it to others as a competing product or service. Each release
|
|
53
|
+
becomes MIT two years after it is published.
|
|
54
|
+
|
|
55
|
+
## The name and the figures
|
|
56
|
+
|
|
57
|
+
The engenty figures are free artwork under CC BY 4.0: use, change and share them, commercially
|
|
58
|
+
too, with credit. No licence grants rights to the name or the figures as a brand. Using them
|
|
59
|
+
as your own brand, logo or mascot needs permission
|
|
60
|
+
([TRADEMARKS.md](https://github.com/engenty/wizards/blob/main/TRADEMARKS.md)).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Runners
|
|
3
3
|
description: A door a wizard runs through, beside the page and the chat (a call, a messenger, a kiosk), and the run API that drives runs from it.
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.11.1
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
A runner is a way to run a wizard. The runtime has four: the stepped page at `/w/<token>`, the
|
|
@@ -55,7 +55,7 @@ not know throws when the runner is registered.
|
|
|
55
55
|
| Field | Says |
|
|
56
56
|
|---|---|
|
|
57
57
|
| `input` | The field kinds the runner asks itself. Any other field hands off to the run page |
|
|
58
|
-
| `output.shows` | What it shows as it is: `text`, `data`, `image`, `video`, `voice`, `document`, `dashboard`, `widget`, `
|
|
58
|
+
| `output.shows` | What it shows as it is: `text`, `data`, `image`, `video`, `voice`, `document`, `dashboard`, `widget`, `motion-graphics`, `surface` |
|
|
59
59
|
| `output.pictures` | What it shows as a picture with a link to the real thing. Anything else is a link |
|
|
60
60
|
| `asks` | `confirm` for a running step that asks before it changes something; `login` only where a browser types the sign-in |
|
|
61
61
|
| `review` | `accept`, `regenerate`, `edit` |
|
|
@@ -1,16 +1,16 @@
|
|
|
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.
|
|
4
|
+
version: 0.11.1
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
A wizard is one JSON document, its **definition**. The studio exports it as a `.wizard` file
|
|
8
8
|
and imports one back. You can write either by hand or with a tool, check it in your editor
|
|
9
9
|
against its [JSON Schema](#json-schema), and check it completely with `wizards validate`.
|
|
10
10
|
|
|
11
|
-
The code that defines
|
|
11
|
+
The wizard format is open: the code that defines it and checks it is under the
|
|
12
12
|
[MIT licence](https://github.com/engenty/wizards/blob/main/packages/shared/LICENSE-MIT), so any
|
|
13
|
-
tool may read and
|
|
13
|
+
tool may read, write and run wizards. [Licensing](../licensing.md) says which files that covers.
|
|
14
14
|
|
|
15
15
|
## The definition
|
|
16
16
|
|
|
@@ -145,7 +145,7 @@ always a `result` step.
|
|
|
145
145
|
| `generate` | Makes an image, a video, a voice-over, a document or a dashboard | [Images, video and documents](./generate-steps.md) |
|
|
146
146
|
| `surface` | Shows a view built from the surface catalog | [Views and widgets](./views-and-widgets.md) |
|
|
147
147
|
| `widget` | Shows an HTML app from the wizard’s workspace | [Views and widgets](./views-and-widgets.md) |
|
|
148
|
-
| `
|
|
148
|
+
| `motion-graphics` | Has the AI client on your computer make a motion-graphics video | [Motion graphics](./motion-graphics-steps.md) |
|
|
149
149
|
| `review` | Shows earlier results to check, change or make again | [Review and result](./review-and-result.md) |
|
|
150
150
|
| `result` | The last page: the message and the downloads | [Review and result](./review-and-result.md) |
|
|
151
151
|
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Motion graphics
|
|
3
|
+
description: A motion-graphics step has the AI client on your computer write a video as code, and the runtime renders it.
|
|
4
|
+
version: 0.11.1
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
A `motion-graphics` step makes a motion-graphics video: an explainer, a product spot, a short.
|
|
8
|
+
The AI client on your computer (Claude Code) writes the video as HTML, CSS and JavaScript in a folder of its own. It looks at its frames and fixes
|
|
9
|
+
them, and engenty wizards renders the MP4.
|
|
10
|
+
|
|
11
|
+
A motion-graphics step runs only where Claude Code is set up as your AI subscription. It never runs on
|
|
12
|
+
credits or in the cloud, and it takes 5 to 40 minutes.
|
|
13
|
+
|
|
14
|
+
```json
|
|
15
|
+
{
|
|
16
|
+
"id": "video", "type": "motion-graphics", "title": "Make the video",
|
|
17
|
+
"brief": "A 30-second explainer of {{product}}, calm and bright. Use the voice-over.",
|
|
18
|
+
"kit": "kits/explainer.zip",
|
|
19
|
+
"inputs": { "voice": "steps.voice", "script": "steps.script" },
|
|
20
|
+
"format": "16:9", "seconds": 30
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
| Key | What it does |
|
|
25
|
+
|---|---|
|
|
26
|
+
| `brief` | What the video is: story, look, what to use. A template |
|
|
27
|
+
| `skills` | Skill packages the client reads. The default is `["hyperframes"]`. A workspace package is `skills/<name>`, a folder with a `SKILL.md` |
|
|
28
|
+
| `kit` | A style kit in the workspace, as a `.zip`: a showreel made once with its rules, helpers and stills. Every video of the wizard is made to it |
|
|
29
|
+
| `inputs` | What the video is made from: a name (lowercase letters, digits, `-`) → a field id or `steps.<id>` |
|
|
30
|
+
| `format` | `16:9` (the default), `9:16` or `1:1` |
|
|
31
|
+
| `from` | `steps.<id>` of an earlier motion-graphics step. This video starts from that one’s code and lays it out for its own format |
|
|
32
|
+
| `seconds` | About how long the video runs, 3 to 600 |
|
|
33
|
+
| `model`, `effort` | The model class, `low` by default. The kit carries the craft |
|
|
34
|
+
|
|
35
|
+
Files among the inputs (uploads, voice lines, pictures) are copied into `input/<name>/`. Text is
|
|
36
|
+
written to `input/<name>.md`, JSON to `input/<name>.json`.
|
|
37
|
+
|
|
38
|
+
## A video in steps
|
|
39
|
+
|
|
40
|
+
A video that convinces is made in stages, each with its own review:
|
|
41
|
+
|
|
42
|
+
1. An agent step writes the research and the script.
|
|
43
|
+
2. A `generate` step with `asset` `voice` reads the whole script.
|
|
44
|
+
3. The motion-graphics step makes the video from the voice, the pictures and the script.
|
|
45
|
+
|
|
46
|
+
The motion-graphics step finds the word timings in the voice-over itself. Sounds come from a fixed catalog.
|
|
47
|
+
A video leaves the page as a video file, so it shows the EU’s “AI” label in the picture.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Review and result
|
|
3
3
|
description: A review step shows earlier results to check, the result step ends the run with its downloads.
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.11.1
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
## Review
|
|
@@ -57,7 +57,7 @@ Each deliverable names a step id or `lists.<id>` in `from`, an optional `label`
|
|
|
57
57
|
| `generate` dashboard | `html`, `pdf`, `png` |
|
|
58
58
|
| `widget` | `html`, `png`, `pdf`, `json`, and `mp4` when the widget has a timeline |
|
|
59
59
|
| `widget` with `video` | `mp4`, `png` |
|
|
60
|
-
| `
|
|
60
|
+
| `motion-graphics` | `mp4` |
|
|
61
61
|
| `agent` with `text` or `markdown` | `md`, `txt`, `docx`, `pdf`, `html` |
|
|
62
62
|
| `agent` with `json` | `json`, `csv`, `xlsx` (a sheet per table), `md`, and `pdf` with a `schema` |
|
|
63
63
|
| `agent`, any format | `zip`: the files the step kept |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Views and widgets
|
|
3
3
|
description: Surfaces built from the catalog, a view of an agent step's result, nested output, and HTML widgets.
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.11.1
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
A result can show as a view instead of a plain table. There are three ways:
|
|
@@ -96,7 +96,7 @@ only brings new data.
|
|
|
96
96
|
| `sample` | Example data in the same shape, for previews before any run |
|
|
97
97
|
| `layout` | `fixed` (the default): drawn at `size` and scaled to the page. `page`: part of the page, as tall as its content |
|
|
98
98
|
| `size` | The design size, 200 to 3840 px. The default is 1280 × 720. PNG, PDF and MP4 render at it |
|
|
99
|
-
| `video` | The result is a
|
|
99
|
+
| `video` | The result is a video: the timeline is rendered to an MP4 with sound |
|
|
100
100
|
|
|
101
101
|
The page loads nothing from the network when it runs. Libraries and reference data are files in
|
|
102
102
|
the workspace. It talks to the runner through `window.wizard`: `data`, `brand`, `ready()`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: The .wizard file
|
|
3
3
|
description: The zip a wizard travels in, its folders and manifest, how to make one by hand, and what the import does with it.
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.11.1
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
A `.wizard` file is a zip with the wizard’s definition and its workspace. The studio exports
|
|
@@ -22,8 +22,8 @@ create-an-invoice.wizard
|
|
|
22
22
|
├── lib/
|
|
23
23
|
│ └── chart.min.js libraries the widgets load
|
|
24
24
|
├── prices.csv reference data AI steps read
|
|
25
|
-
├── kits/explainer.zip a
|
|
26
|
-
├── skills/brand/SKILL.md a skill package a
|
|
25
|
+
├── kits/explainer.zip a motion-graphics step's style kit
|
|
26
|
+
├── skills/brand/SKILL.md a skill package a motion-graphics step reads
|
|
27
27
|
└── knowledge/ only in a website package
|
|
28
28
|
└── services/pricing.md
|
|
29
29
|
```
|
|
@@ -40,7 +40,7 @@ or none.
|
|
|
40
40
|
## The workspace
|
|
41
41
|
|
|
42
42
|
The paths under `files/` are the paths the definition uses. A widget step with
|
|
43
|
-
`"entry": "invoice/index.html"` reads `files/invoice/index.html`, and a
|
|
43
|
+
`"entry": "invoice/index.html"` reads `files/invoice/index.html`, and a motion-graphics step with
|
|
44
44
|
`"kit": "kits/explainer.zip"` reads `files/kits/explainer.zip`. Apart from `knowledge/`, no
|
|
45
45
|
folder has a fixed meaning. The ones above are what the studio and its assistant write.
|
|
46
46
|
|
|
@@ -90,7 +90,11 @@ wizard. The buttons “Table” and “Page” add one to a wizard.
|
|
|
90
90
|
marked and not saved. The heading of a column changes its name and type, and the plus beside
|
|
91
91
|
the headings adds a column.
|
|
92
92
|
- **Page**: a title and text in Markdown. “Write” edits it, and “Preview” shows it. It is saved
|
|
93
|
-
as you type.
|
|
93
|
+
as you type. While you write, headings show large and bold text bold, and the Markdown marks
|
|
94
|
+
stay visible in a lighter colour. ⌘/Ctrl+B and ⌘/Ctrl+I make bold and italic text, ⌘/Ctrl+K
|
|
95
|
+
makes a link, and ⌘/Ctrl+F searches the page. Enter continues a list, and Enter on an empty
|
|
96
|
+
item ends it. Inside a link’s address, after `](`, the editor offers the space’s pages, tables
|
|
97
|
+
and files by title. ⌘/Ctrl+click on a link opens what it names.
|
|
94
98
|
|
|
95
99
|
### On your computer and in the cloud
|
|
96
100
|
|
|
@@ -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.
|
|
4
|
+
version: 0.11.1
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
A wizard runs its steps from top to bottom. The last step is always the result.
|
|
@@ -11,9 +11,9 @@ A wizard runs its steps from top to bottom. The last step is always the result.
|
|
|
11
11
|
| Page | Asks the person: one field or more, five at most on a good page |
|
|
12
12
|
| AI step | Does a task with tools: research, read documents, call an API, work in a connected service |
|
|
13
13
|
| Generate | Makes one thing: an image, a video, a voice-over, a document or a dashboard |
|
|
14
|
-
| Widget | Shows an interactive view built once for this wizard: a map, a timeline, a calculator, a
|
|
14
|
+
| Widget | Shows an interactive view built once for this wizard: a map, a timeline, a calculator, a video |
|
|
15
15
|
| View | Shows the results in the wizard’s own look: key figures, facts, a list, a chart |
|
|
16
|
-
|
|
|
16
|
+
| Motion graphics | Has the AI client on your computer write a video as code, rendered to an MP4 |
|
|
17
17
|
| Review | Shows what earlier steps made. The person accepts it, edits it or asks for a new version |
|
|
18
18
|
| Result | The last page: what the person can download or share |
|
|
19
19
|
|
|
@@ -144,14 +144,14 @@ For anything the parts cannot show, such as a map or an animation, use a widget.
|
|
|
144
144
|
|
|
145
145
|
A widget is an interactive HTML view written once into the wizard’s files. Every run only brings
|
|
146
146
|
new data, so it costs nothing to show and looks the same every time. A widget can also be a
|
|
147
|
-
|
|
147
|
+
video: its timeline is then rendered to an MP4 with sound. Ask the assistant for one in the chat.
|
|
148
148
|
|
|
149
|
-
##
|
|
149
|
+
## Motion graphics
|
|
150
150
|
|
|
151
|
-
A
|
|
151
|
+
A motion-graphics step hands a brief, the run’s material (voice-overs, pictures, uploads, texts) and the
|
|
152
152
|
space’s brand to the AI client installed on your computer (Claude Code). The client writes the
|
|
153
|
-
|
|
154
|
-
9:16 or square. A
|
|
153
|
+
video as code, looks at its frames and fixes them. engenty wizards then renders the MP4: 16:9,
|
|
154
|
+
9:16 or square. A motion-graphics step runs only where Claude Code is set up with your subscription, never
|
|
155
155
|
on credits or in the cloud, and it takes 5 to 40 minutes. The voice comes from a generate step
|
|
156
156
|
before it.
|
|
157
157
|
|
|
@@ -173,9 +173,9 @@ Each entry of the result page names a step and the formats the person can downlo
|
|
|
173
173
|
| Voice | MP3 |
|
|
174
174
|
| Document | PDF, Word, HTML, Markdown, PNG |
|
|
175
175
|
| Dashboard | HTML, PDF, PNG |
|
|
176
|
-
| Widget | HTML, PNG, PDF, JSON; MP4 when it animates. As a
|
|
176
|
+
| Widget | HTML, PNG, PDF, JSON; MP4 when it animates. As a video: MP4, PNG |
|
|
177
177
|
| View | JSON |
|
|
178
|
-
|
|
|
178
|
+
| Motion graphics | MP4 |
|
|
179
179
|
| AI step, text | Markdown, text, Word, PDF, HTML |
|
|
180
180
|
| AI step, data | JSON, CSV, Excel, Markdown; nested data also PDF |
|
|
181
181
|
| AI step, collected files | ZIP |
|
|
@@ -227,7 +227,7 @@ The person sees and deletes all of it under “What this wizard remembers”. Se
|
|
|
227
227
|
|
|
228
228
|
## AI media
|
|
229
229
|
|
|
230
|
-
Images, clips, voice-overs and
|
|
230
|
+
Images, clips, voice-overs and videos a model made or changed carry a marking in their file, and
|
|
231
231
|
every page lays an “AI-generated” or “AI-modified” label over them (EU AI Act, Art. 50). Nothing
|
|
232
|
-
is drawn into an image. A
|
|
232
|
+
is drawn into an image. A video shows the label in the picture, since it leaves the page as a
|
|
233
233
|
video file.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { conditionMatches, conditionsOf, isDecidedField, isDecisionStep, isOtherwise, MODEL_CLASSES, } from "@engenty/wizards-shared/definition";
|
|
2
2
|
import { closedChoicesFor, openValue, otherwiseIndex, unavoidableFrom, unavoidableSteps, } from "@engenty/wizards-shared/fit";
|
|
3
3
|
import { note, saidText } from "@engenty/wizards-shared/run";
|
|
4
|
-
import { classProblem,
|
|
4
|
+
import { classProblem, motionClient } from "../models.js";
|
|
5
5
|
// The steps every run passes through, and the choices that lead around a missing model, are
|
|
6
6
|
// pure and shared (packages/shared/src/fit.ts): the standalone check uses the same.
|
|
7
7
|
export { openValue, unavoidableFrom, unavoidableSteps };
|
|
@@ -52,7 +52,7 @@ function ownClasses(step) {
|
|
|
52
52
|
default:
|
|
53
53
|
return [step.model ?? "standard"];
|
|
54
54
|
}
|
|
55
|
-
case "
|
|
55
|
+
case "motion-graphics":
|
|
56
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.
|
|
@@ -238,13 +238,13 @@ export async function missingModelsSaid(def) {
|
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
const missing = [];
|
|
241
|
-
// A
|
|
241
|
+
// A video runs on an installed client only, whatever serves its class otherwise.
|
|
242
242
|
for (const step of def.steps) {
|
|
243
|
-
if (step.type !== "
|
|
243
|
+
if (step.type !== "motion-graphics") {
|
|
244
244
|
continue;
|
|
245
245
|
}
|
|
246
246
|
const cls = step.model ?? "low";
|
|
247
|
-
const found = await
|
|
247
|
+
const found = await motionClient(cls);
|
|
248
248
|
if ("problem" in found) {
|
|
249
249
|
missing.push({
|
|
250
250
|
cls,
|
|
@@ -312,8 +312,8 @@ export async function missingCapabilities() {
|
|
|
312
312
|
missing.add(capability);
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
if ("problem" in (await
|
|
316
|
-
missing.add("
|
|
315
|
+
if ("problem" in (await motionClient("low"))) {
|
|
316
|
+
missing.add("motion-graphics");
|
|
317
317
|
}
|
|
318
318
|
return missing;
|
|
319
319
|
}
|
|
@@ -17,6 +17,7 @@ import { hasFfmpeg } from "../media/ffmpeg.js";
|
|
|
17
17
|
import { NotedError, noteOf, saidOf } from "../model-errors.js";
|
|
18
18
|
import { conversationAvailable, freeTierRefusal, freeTierText, ModelUnavailableError, noteFreeTierRefusal, } from "../models.js";
|
|
19
19
|
import { runEnded } from "../plugins/events.js";
|
|
20
|
+
import { reportRun } from "../services/manage-reports.js";
|
|
20
21
|
import { projectFiles } from "../services/project-files.js";
|
|
21
22
|
import { projectProfile } from "../services/projects.js";
|
|
22
23
|
import { switchedOffRunners } from "../services/runners.js";
|
|
@@ -107,6 +108,9 @@ async function updateRun(runId, patch) {
|
|
|
107
108
|
void pushRun(runId, patch.status);
|
|
108
109
|
}
|
|
109
110
|
}
|
|
111
|
+
if (patch.status) {
|
|
112
|
+
reportRun(runId, patch.status);
|
|
113
|
+
}
|
|
110
114
|
signalChanged(runId);
|
|
111
115
|
}
|
|
112
116
|
function stepOf(def, id) {
|
|
@@ -196,6 +200,7 @@ export async function createRun(input) {
|
|
|
196
200
|
: null,
|
|
197
201
|
});
|
|
198
202
|
await indexRun({ runId: id, visitorId: input.visitorId, ipHash: input.ipHash });
|
|
203
|
+
reportRun(id, first.type === "page" ? "waiting_input" : "running");
|
|
199
204
|
if (first.type !== "page") {
|
|
200
205
|
kick(id);
|
|
201
206
|
}
|
|
@@ -228,6 +233,8 @@ async function take(runId, tenant) {
|
|
|
228
233
|
// The heartbeat keeps the claim and hears of a cancel the web wrote while a step works.
|
|
229
234
|
const beat = setInterval(() => {
|
|
230
235
|
void heartbeatRuns([runId]).catch((err) => console.warn(`[run ${runId}] heartbeat:`, err));
|
|
236
|
+
// At work all along: the admin app hears it now and then, so a long step is not stuck.
|
|
237
|
+
void withTenant(tenant, () => reportRun(runId, "running")).catch(() => undefined);
|
|
231
238
|
void withTenant(tenant, () => loadRun(runId))
|
|
232
239
|
.then((run) => {
|
|
233
240
|
if (run && run.status !== "running") {
|
|
@@ -830,7 +837,7 @@ export async function availableFormats(step, run, wanted) {
|
|
|
830
837
|
let formats = wanted ? wanted.filter((f) => possible.includes(f)) : possible;
|
|
831
838
|
const output = run.state.outputs[step.id];
|
|
832
839
|
if (step.type === "widget" && formats.includes("mp4")) {
|
|
833
|
-
// A
|
|
840
|
+
// A video is rendered when its step runs; any other widget on demand.
|
|
834
841
|
const has = step.video
|
|
835
842
|
? output?.assets?.some((a) => a.kind === "video")
|
|
836
843
|
: output?.widget?.duration && (await hasFfmpeg());
|
|
@@ -8,10 +8,10 @@ import { Agent } from "@mastra/core/agent";
|
|
|
8
8
|
import { generateText, jsonSchema, Output, parsePartialJson } from "ai";
|
|
9
9
|
import { extFor, loadAsset, loadAssetText } from "../files/storage.js";
|
|
10
10
|
import { snapshotHtmlImages } from "../files/web-images.js";
|
|
11
|
-
import { runFilmStep } from "../film/step.js";
|
|
12
11
|
import { generateImageMedia, generateSpeechMedia, generateVideoMedia, } from "../media/generate.js";
|
|
13
12
|
import { markMedia } from "../media/marking.js";
|
|
14
13
|
import { agentModel, attachTools, costOf, isHarnessVendor, textModel, totalUsage, } from "../models.js";
|
|
14
|
+
import { runMotionGraphicsStep } from "../motion-graphics/step.js";
|
|
15
15
|
import { knowledgeBlock } from "../services/knowledge.js";
|
|
16
16
|
import { buildStepTools } from "../tools/index.js";
|
|
17
17
|
import { callPluginTool, spaceContextOf } from "../tools/plugin.js";
|
|
@@ -991,8 +991,8 @@ export async function runAutomaticStep(step, ctx) {
|
|
|
991
991
|
if (step.type === "widget") {
|
|
992
992
|
return runWidgetStep(step, ctx);
|
|
993
993
|
}
|
|
994
|
-
if (step.type === "
|
|
995
|
-
return
|
|
994
|
+
if (step.type === "motion-graphics") {
|
|
995
|
+
return runMotionGraphicsStep(step, ctx);
|
|
996
996
|
}
|
|
997
997
|
if (step.type === "surface") {
|
|
998
998
|
return runSurfaceStep(step, ctx);
|