@engenty/wizards-runtime 0.11.1 → 0.11.3
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/agents/studio-assistant.js +2 -2
- package/apps/runtime/dist/app.js +9 -0
- package/apps/runtime/dist/assistant/primer.js +2 -2
- package/apps/runtime/dist/auth/index.js +32 -7
- 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 +85 -0
- package/apps/runtime/dist/docs/dev/meta.json +2 -1
- package/apps/runtime/dist/docs/dev/plugins/events.md +1 -1
- package/apps/runtime/dist/docs/dev/plugins/index.md +1 -1
- package/apps/runtime/dist/docs/dev/plugins/runners.md +2 -2
- package/apps/runtime/dist/docs/dev/plugins/space.md +1 -1
- package/apps/runtime/dist/docs/dev/plugins/studio.md +5 -4
- package/apps/runtime/dist/docs/dev/wizard-format/index.md +5 -5
- package/apps/runtime/dist/docs/dev/wizard-format/meta.json +1 -1
- package/apps/runtime/dist/docs/dev/wizard-format/motion-graphics-steps.md +55 -0
- package/apps/runtime/dist/docs/dev/wizard-format/review-and-result.md +2 -2
- package/apps/runtime/dist/docs/dev/wizard-format/themes.md +1 -1
- 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/create-account.md +11 -4
- package/apps/runtime/dist/docs/user-guide/first-start.md +10 -2
- package/apps/runtime/dist/docs/user-guide/plugins.md +1 -1
- package/apps/runtime/dist/docs/user-guide/space.md +15 -7
- package/apps/runtime/dist/docs/user-guide/steps.md +17 -16
- package/apps/runtime/dist/docs/user-guide/troubleshooting.md +3 -3
- 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 +79 -2
- 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 +29 -4
- package/apps/runtime/dist/routes/organization.js +114 -0
- package/apps/runtime/dist/routes/person.js +45 -0
- package/apps/runtime/dist/routes/reports.js +80 -0
- package/apps/runtime/dist/routes/runs.js +25 -1
- package/apps/runtime/dist/routes/studio.js +63 -7
- 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/onboarding-find.js +123 -0
- package/apps/runtime/dist/services/onboarding.js +77 -16
- package/apps/runtime/dist/services/organization-context.js +40 -0
- 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/texts.js +12 -1
- 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-D2r8kBfV.js → AboutDialog-DlbfynVv.js} +1 -1
- package/apps/web/dist/assets/{ChangelogDialog-j7Z1YhNv.js → ChangelogDialog-DciD55wO.js} +1 -1
- package/apps/web/dist/assets/{CodeEditor-BTCMfVFJ.js → CodeEditor-9kXX-juf.js} +1 -1
- package/apps/web/dist/assets/EditorPage-ovstPrvJ.js +3 -0
- package/apps/web/dist/assets/{FlowPreview-BtVgtW7P.js → FlowPreview-BY3kJO9l.js} +1 -1
- package/apps/web/dist/assets/{Harness-H4Ue1HOd.js → Harness-BqcSaPmJ.js} +2 -2
- package/apps/web/dist/assets/Marketplace-DxcNtFdJ.js +2 -0
- package/apps/web/dist/assets/{NewWizardChannels-K1HOzkXf.js → NewWizardChannels-CmeAOy0q.js} +1 -1
- package/apps/web/dist/assets/NewWizardPage-C2Ne-QFZ.js +7 -0
- package/apps/web/dist/assets/OnboardingPage-CGEgLpx0.js +1 -0
- package/apps/web/dist/assets/PreviewPane-VnxYvrbF.js +10 -0
- package/apps/web/dist/assets/ProjectPage-CGpsFPJ4.js +1 -0
- package/apps/web/dist/assets/PublicRunner-b4vSNmVB.js +1 -0
- package/apps/web/dist/assets/{ReadOnly-Duk1YpNM.js → ReadOnly-C7Kk-1Vg.js} +1 -1
- package/apps/web/dist/assets/SettingsPage-Cgt3zVu5.js +2 -0
- package/apps/web/dist/assets/SetupPage-DmYnhiMq.js +1 -0
- package/apps/web/dist/assets/{SharePage-DvAUwrOl.js → SharePage-DMgm31Y_.js} +1 -1
- package/apps/web/dist/assets/changelog-CJYpF3Mx.js +1 -0
- package/apps/web/dist/assets/{coins-DSvwvqtQ.js → coins-Dd9IUAaR.js} +1 -1
- package/apps/web/dist/assets/i18n-QZC6TtrB.js +55 -0
- package/apps/web/dist/assets/index-Cfn8Jnfl.js +34 -0
- package/apps/web/dist/assets/index-DQc1EITf.css +1 -0
- package/apps/web/dist/assets/{oss-credits-BLVLXRzs.js → oss-credits-C6bPkfSE.js} +1 -1
- package/apps/web/dist/assets/{phone-xIUU1ZFn.js → phone-DKeaGjd9.js} +1 -1
- package/apps/web/dist/assets/runners-D2_oJdgS.js +1 -0
- package/apps/web/dist/assets/session-DBNhp6sF.js +2 -0
- package/apps/web/dist/assets/settings-menu-B09fSEin.js +1 -0
- package/apps/web/dist/assets/theme-CdWeSjNs.js +11 -0
- package/apps/web/dist/assets/{ui-6AgUKJhQ.js → ui-BPfapiMz.js} +6 -6
- package/apps/web/dist/assets/{upload-C8WgcG1g.js → upload-DCYRRi4d.js} +1 -1
- package/apps/web/dist/assets/{useMutation-BdCg6qrc.js → useMutation-BGqWiJkl.js} +1 -1
- package/apps/web/dist/assets/{volume-2-jlgQapiz.js → volume-2-D_FTVDPk.js} +1 -1
- package/apps/web/dist/assets/{wrench-Ca_TrBQk.js → wrench-BYwez0dN.js} +1 -1
- package/apps/web/dist/index.html +9 -9
- package/apps/web/dist/mcp/flow.html +32 -32
- package/node_modules/@engenty/wizards/dist/plugin/index.d.ts +2 -2
- package/node_modules/@engenty/wizards/dist/plugin/studio.d.ts +5 -5
- package/node_modules/@engenty/wizards-shared/dist/addresses.d.ts +17 -0
- package/node_modules/@engenty/wizards-shared/dist/addresses.js +97 -0
- 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/feature-flags.d.ts +9 -3
- package/node_modules/@engenty/wizards-shared/dist/feature-flags.js +9 -3
- 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 +16 -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/sectors.d.ts +24 -0
- package/node_modules/@engenty/wizards-shared/dist/sectors.js +319 -0
- 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/EditorPage-mx6XuEIw.js +0 -3
- package/apps/web/dist/assets/Marketplace-YEZDpGm9.js +0 -2
- package/apps/web/dist/assets/NewWizardPage-DSHVwwnU.js +0 -7
- package/apps/web/dist/assets/OnboardingPage-CoBNtV_1.js +0 -1
- package/apps/web/dist/assets/PreviewPane-z0-Glj7p.js +0 -10
- package/apps/web/dist/assets/ProjectPage-DFaPSeda.js +0 -1
- package/apps/web/dist/assets/PublicRunner-DgT4CApp.js +0 -1
- package/apps/web/dist/assets/SettingsPage-FimvOhQq.js +0 -2
- package/apps/web/dist/assets/SetupPage-BxEMrMtA.js +0 -1
- package/apps/web/dist/assets/changelog-CS9GmnXd.js +0 -1
- package/apps/web/dist/assets/i18n-UTsgNY5M.js +0 -55
- package/apps/web/dist/assets/index-DHIXX69l.js +0 -20
- package/apps/web/dist/assets/index-Mt1sNdPx.css +0 -1
- package/apps/web/dist/assets/runners-CrSLA6HI.js +0 -1
- package/apps/web/dist/assets/session-CbWzkHl0.js +0 -2
- package/apps/web/dist/assets/settings-menu-DoRItnPf.js +0 -1
- package/apps/web/dist/assets/theme-znovbShL.js +0 -11
- /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).
|
|
@@ -56,7 +56,7 @@ THE SPACE
|
|
|
56
56
|
- Asset sections are optional too: tabs of one kind each ("Icons", "Background images"), made with set_asset_sections only when the space holds enough assets of clearly different kinds or the person asks; a handful of pictures stay in the general tab.
|
|
57
57
|
- Files the person attached are stored already; the message names them. look_at_file shows you a picture or a document's text. Give a file a description with describe_file when it has none or the person says what it is. Take facts from a document when asked.
|
|
58
58
|
- Knowledge is what the wizards' steps look things up in: pages, tables and files, kept apart by typed categories. Documents the person attaches are read into Knowledge by themselves: say so; do not copy their text into facts unless asked. A website, a sitemap or a folder whose entries should go into Knowledge is a source: where a tool proposes sources, use it (the person takes the proposal on its card); where there is none, say that sources need the Sources plugin.
|
|
59
|
-
- Talking from another page than Info
|
|
59
|
+
- Talking from another page than Info or Brand, change title, about, logos, colours and facts only when the person asks.
|
|
60
60
|
- A space that is read-only (synced from a local install, or an organization that builds elsewhere) has no tools: say where it is changed.
|
|
61
61
|
|
|
62
62
|
HOW YOU WORK
|
|
@@ -656,7 +656,7 @@ function traced(tools, input, record) {
|
|
|
656
656
|
}
|
|
657
657
|
/** The part of the space page a route stands on. */
|
|
658
658
|
function partOf(route) {
|
|
659
|
-
const m = route.match(/^\/space\/(info|knowledge|data|results)/);
|
|
659
|
+
const m = route.match(/^\/space\/(info|brand|knowledge|data|results)/);
|
|
660
660
|
return m ? m[1] : route === "/space" ? "info" : null;
|
|
661
661
|
}
|
|
662
662
|
/** How large each tool is in the prompt: its description and its schema, in characters. */
|
package/apps/runtime/dist/app.js
CHANGED
|
@@ -27,8 +27,11 @@ import { internalRoutes } from "./routes/internal.js";
|
|
|
27
27
|
import { notFoundAnswer, requestLang, say, spelledFor } from "./routes/lang.js";
|
|
28
28
|
import { liveRoutes } from "./routes/live.js";
|
|
29
29
|
import { marketplaceGuest, marketplaceStudio } from "./routes/marketplace.js";
|
|
30
|
+
import { organizationRoutes } from "./routes/organization.js";
|
|
31
|
+
import { personRoutes } from "./routes/person.js";
|
|
30
32
|
import { publicPluginRoutes } from "./routes/plugin-public.js";
|
|
31
33
|
import { pluginRoutes } from "./routes/plugins.js";
|
|
34
|
+
import { reportRoutes } from "./routes/reports.js";
|
|
32
35
|
import { clientIp, connectCallback, publicRoutes, runRoutes, shareRoutes } from "./routes/runs.js";
|
|
33
36
|
import { studio } from "./routes/studio.js";
|
|
34
37
|
import { wizardStream } from "./routes/wizard-stream.js";
|
|
@@ -138,6 +141,8 @@ app.post("/api/log", bodyLimit({ maxSize: 8 * 1024 }), async (c) => {
|
|
|
138
141
|
}
|
|
139
142
|
return c.json({ ok: true });
|
|
140
143
|
});
|
|
144
|
+
// "Report a problem" from the run page and the studio (routes/reports.ts).
|
|
145
|
+
app.route("/api", reportRoutes);
|
|
141
146
|
if (serves.studio) {
|
|
142
147
|
app.route("/api", authRoutes);
|
|
143
148
|
}
|
|
@@ -150,6 +155,8 @@ app.get("/api/config", (c) => c.json({
|
|
|
150
155
|
publicUrl: env.publicUrl,
|
|
151
156
|
/** The feature switches before anyone is signed in: the code's, the environment's, the file's. */
|
|
152
157
|
features: features(),
|
|
158
|
+
/** The run page asks for feedback at the end and sends bug reports: they reach the Manage-App. */
|
|
159
|
+
reports: managed,
|
|
153
160
|
}));
|
|
154
161
|
if (serves.studio) {
|
|
155
162
|
// OAuth discovery for MCP clients (RFC 9728): the Manage-App is the authorization server.
|
|
@@ -276,6 +283,8 @@ if (serves.studio) {
|
|
|
276
283
|
// The same gallery for someone not signed in: the studio's start page for guests.
|
|
277
284
|
app.route("/api/guest/marketplace", marketplaceGuest);
|
|
278
285
|
app.route("/api/studio/plugins", pluginRoutes);
|
|
286
|
+
app.route("/api/studio/organization", organizationRoutes);
|
|
287
|
+
app.route("/api/studio/person", personRoutes);
|
|
279
288
|
app.route("/api/studio", studio);
|
|
280
289
|
app.route("/api/v1", apiRoutes);
|
|
281
290
|
app.route("/api/local/debug", localDebugRoutes);
|
|
@@ -10,7 +10,7 @@ Words
|
|
|
10
10
|
- Studio: where wizards are built. Home lists the space's wizards; the editor (/edit/<id>) has its own chat (the architect) that builds and changes the wizard, a preview of each step as people see it with the steps in a row above it, and beside it the flow as a diagram and the editor of the step chosen.
|
|
11
11
|
- Wizard: a flow of steps a person walks through on a link. Step kinds: a page (fields to fill in), an AI step (an agent with tools: web search, reading files, writing documents, images, video, pages, other services), a review, and the result.
|
|
12
12
|
- Run: one person going through a wizard once. Results lists every run that reached its result.
|
|
13
|
-
- Space: what all wizards of an organization know. Its page has
|
|
13
|
+
- Space: what all wizards of an organization know. Its sources page (Quellen in German, the app bar's second place: where the wizards get what they know) has five parts: Info (title, about, facts, with the main logo to see), Brand (logos, colours, type, assets), Knowledge (pages, tables and files the AI steps look things up in, kept apart by typed categories), Data (tables and pages the wizards keep) and Results (finished runs).
|
|
14
14
|
- Model class: the kind of model a step needs (Classifier, Low, Standard, High for text; Image, Video, Speech, Audio). Which model serves a class is a setting (Settings › Models), not part of the wizard.
|
|
15
15
|
|
|
16
16
|
Thinking: an installed AI client on the person's subscription (Claude Code, Codex, Antigravity, Cursor Agent), own API keys (OpenAI, Anthropic, Google, fal.ai, ElevenLabs, Replicate, Vercel AI Gateway), a local model (Ollama), or engenty credits from an account. Settings › Models shows which way serves each class and what is missing.
|
|
@@ -23,4 +23,4 @@ Plugins add pages to the studio (a Shop, a Termin-Planer), settings sections, se
|
|
|
23
23
|
|
|
24
24
|
Account and plans: an account is optional on a local install; it brings credits, cloud publishing, sync and Pro modules. In the cloud, organizations are on a plan (Free, Pro, Team) with monthly credits; credits can be topped up on the account's billing page. Plans, prices and the balance come from the account (tools: plans, account, usage), never from memory.
|
|
25
25
|
|
|
26
|
-
Studio addresses: / (home), /new (a new wizard), /edit/<id> (the editor), /space/info, /space/knowledge, /space/data, /space/results, /settings/account, /settings/organization (cloud), /settings/connectors, /settings/models, /settings/integrate (AI apps), /settings/plugins, and the pages plugins add.`;
|
|
26
|
+
Studio addresses: / (home), /new (a new wizard), /edit/<id> (the editor), /space/info, /space/brand, /space/knowledge, /space/data, /space/results, /settings/account, /settings/organization (cloud), /settings/connectors, /settings/models, /settings/integrate (AI apps), /settings/plugins, and the pages plugins add.`;
|
|
@@ -8,6 +8,7 @@ import { control, controlDb, withTenant } from "../db/client.js";
|
|
|
8
8
|
import { basePath, env } from "../env.js";
|
|
9
9
|
import { discovery, managed, tokenRequest, verifyToken, } from "../manage.js";
|
|
10
10
|
import { refreshPro } from "../plugins/pro.js";
|
|
11
|
+
import { requestLang, say } from "../routes/lang.js";
|
|
11
12
|
import { seal, unseal } from "../secrets/crypto.js";
|
|
12
13
|
import { LOCAL_TENANT } from "../tenants/tenant.js";
|
|
13
14
|
import { finishLink } from "./account.js";
|
|
@@ -88,8 +89,16 @@ const cookiePath = basePath || "/";
|
|
|
88
89
|
/** Where a sign-in and the local link lead: the studio. */
|
|
89
90
|
const home = `${basePath}/studio/`;
|
|
90
91
|
const callbackUrl = () => `${env.appUrl}/api/auth/callback`;
|
|
92
|
+
/** A sign-in returns into the studio or to a public wizard; any other address goes to the studio. */
|
|
93
|
+
const RETURN_INTO = [`${basePath}/studio`, `${basePath}/w/`, `${basePath}/s/`];
|
|
91
94
|
function safeReturn(path) {
|
|
92
|
-
|
|
95
|
+
if (!path || path.startsWith("//") || path.includes("\\")) {
|
|
96
|
+
return home;
|
|
97
|
+
}
|
|
98
|
+
const into = RETURN_INTO.some((start) => start.endsWith("/")
|
|
99
|
+
? path.startsWith(start)
|
|
100
|
+
: path === start || path.startsWith(`${start}/`) || path.startsWith(`${start}?`));
|
|
101
|
+
return into ? path : home;
|
|
93
102
|
}
|
|
94
103
|
function setSessionCookie(c, id) {
|
|
95
104
|
setCookie(c, SESSION_COOKIE, id, {
|
|
@@ -160,6 +169,15 @@ async function sessionPrincipal(id) {
|
|
|
160
169
|
image: row.image,
|
|
161
170
|
};
|
|
162
171
|
}
|
|
172
|
+
/** A new name for the person in every session of theirs here: the menu shows it at the next read. */
|
|
173
|
+
export async function renameSessions(userId, name) {
|
|
174
|
+
await controlDb.update(control.session).set({ name }).where(eq(control.session.userId, userId));
|
|
175
|
+
for (const [id, hit] of sessions) {
|
|
176
|
+
if (hit.row.userId === userId) {
|
|
177
|
+
sessions.delete(id);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
163
181
|
/** Sessions that ran out go once an hour, with the retention job. */
|
|
164
182
|
export async function purgeSessions() {
|
|
165
183
|
await controlDb.delete(control.session).where(lt(control.session.expiresAt, new Date()));
|
|
@@ -173,7 +191,8 @@ export async function principalOf(c) {
|
|
|
173
191
|
const id = getCookie(c, SESSION_COOKIE);
|
|
174
192
|
return id ? sessionPrincipal(id) : null;
|
|
175
193
|
}
|
|
176
|
-
|
|
194
|
+
/** One line on a page of its own, in the language the browser asks for. */
|
|
195
|
+
const closePage = (c, message) => `<!doctype html><html lang="${requestLang(c)}"><meta charset="utf-8"><title>engenty wizards</title>
|
|
177
196
|
<body style="font:16px system-ui;display:grid;place-items:center;height:100vh;margin:0;color:#333">
|
|
178
197
|
<p>${message}</p>`;
|
|
179
198
|
export const authRoutes = new Hono()
|
|
@@ -195,7 +214,7 @@ export const authRoutes = new Hono()
|
|
|
195
214
|
usedTickets.set(ticket, expires);
|
|
196
215
|
}
|
|
197
216
|
else if (managed || !accessKey || !sameValue(given, accessKey)) {
|
|
198
|
-
return c.
|
|
217
|
+
return c.html(closePage(c, say(c, "localLinkUsed")), 403);
|
|
199
218
|
}
|
|
200
219
|
else {
|
|
201
220
|
accessKey = null;
|
|
@@ -276,6 +295,12 @@ export const authRoutes = new Hono()
|
|
|
276
295
|
code_challenge_method: "S256",
|
|
277
296
|
state: state.nonce,
|
|
278
297
|
}).toString();
|
|
298
|
+
// The organization the sign-in is for (the studio's switcher): a member gets its token
|
|
299
|
+
// without the picker. Its id or address, nothing else.
|
|
300
|
+
const organization = c.req.query("organization") ?? "";
|
|
301
|
+
if (/^[A-Za-z0-9_-]{1,100}$/.test(organization)) {
|
|
302
|
+
url.searchParams.set("organization", organization);
|
|
303
|
+
}
|
|
279
304
|
// What the person wants built (the studio's start page): the account's sign-in page shows it.
|
|
280
305
|
const wish = (c.req.query("wish") ?? "").trim().slice(0, WISH_MAX);
|
|
281
306
|
if (wish) {
|
|
@@ -289,7 +314,7 @@ export const authRoutes = new Hono()
|
|
|
289
314
|
if (!managed) {
|
|
290
315
|
// The linked account of a runtime that runs alone: the system browser lands here.
|
|
291
316
|
if (!code) {
|
|
292
|
-
return c.html(closePage(
|
|
317
|
+
return c.html(closePage(c, say(c, "accountSignInCancelled")), 400);
|
|
293
318
|
}
|
|
294
319
|
try {
|
|
295
320
|
await finishLink(code, rawState);
|
|
@@ -297,11 +322,11 @@ export const authRoutes = new Hono()
|
|
|
297
322
|
void firstSync();
|
|
298
323
|
// The Pro modules the account's plan includes.
|
|
299
324
|
void refreshPro();
|
|
300
|
-
return c.html(closePage(
|
|
325
|
+
return c.html(closePage(c, say(c, "accountSignedIn")));
|
|
301
326
|
}
|
|
302
327
|
catch (err) {
|
|
303
328
|
console.error("[account]", err);
|
|
304
|
-
return c.html(closePage(
|
|
329
|
+
return c.html(closePage(c, say(c, "accountSignInFailed")), 400);
|
|
305
330
|
}
|
|
306
331
|
}
|
|
307
332
|
const state = unseal(getCookie(c, STATE_COOKIE) ?? "");
|
|
@@ -338,7 +363,7 @@ export const authRoutes = new Hono()
|
|
|
338
363
|
exp: Date.now() + 2 * 60_000,
|
|
339
364
|
});
|
|
340
365
|
const link = `engenty-wizards://signin?code=${encodeURIComponent(code)}`;
|
|
341
|
-
return c.html(`${closePage(
|
|
366
|
+
return c.html(`${closePage(c, say(c, "desktopSignedIn"))}
|
|
342
367
|
<script>location.href = ${JSON.stringify(link)};</script>`);
|
|
343
368
|
}
|
|
344
369
|
setSessionCookie(c, id);
|
|
@@ -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,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Licensing
|
|
3
|
+
description: How we handle sharing the source and enable your usage.
|
|
4
|
+
version: 0.11.2
|
|
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
|
+
## MIT
|
|
12
|
+
|
|
13
|
+
Use it, change it and share it in any app, open or closed. Keep the licence text with it.
|
|
14
|
+
|
|
15
|
+
| Part | Where | Licence |
|
|
16
|
+
|---|---|---|
|
|
17
|
+
| The wizard format | sixteen files in `packages/shared/src` | MIT or FSL-1.1-MIT, your choice ([LICENSE-MIT](https://github.com/engenty/wizards/blob/main/packages/shared/LICENSE-MIT)) |
|
|
18
|
+
| The runner | `@engenty/wizards-runner` in `packages/runner` | MIT ([LICENSE](https://github.com/engenty/wizards/blob/main/packages/runner/LICENSE)) |
|
|
19
|
+
| The plugin for the AI apps | `plugin/`, without the engenty figures in it | MIT ([LICENSE](https://github.com/engenty/wizards/blob/main/plugin/LICENSE)) |
|
|
20
|
+
|
|
21
|
+
### The wizard format
|
|
22
|
+
|
|
23
|
+
These sixteen files define a wizard, read it and pack it as a `.wizard` file:
|
|
24
|
+
|
|
25
|
+
- `definition.ts`, `fit.ts`, `numbers.ts`, `run.ts`, `runner-texts.ts`, `shape.ts`
|
|
26
|
+
- `sharing.ts`, `store.ts`, `surface.ts`, `texts.ts`, `translation.ts`
|
|
27
|
+
- `theme.ts`: a theme’s values, which a `.wizard` file carries
|
|
28
|
+
- `wizard-package.ts`: the `.wizard` file and its `wizard.json`
|
|
29
|
+
- `engenty/data-tables/columns.ts`, `columns-format.ts`, `columns-value.ts`
|
|
30
|
+
|
|
31
|
+
Each says `SPDX-License-Identifier: FSL-1.1-MIT OR MIT` in its first line, and you choose which
|
|
32
|
+
of the two licences you take them under. Take MIT, and you can use the format in any tool: an
|
|
33
|
+
editor, a converter, your own runtime. The files import only each other and zod, so they work
|
|
34
|
+
without the rest of engenty wizards.
|
|
35
|
+
|
|
36
|
+
### The runner
|
|
37
|
+
|
|
38
|
+
`@engenty/wizards-runner` draws a wizard’s run: its pages, fields, reviews and results. It is
|
|
39
|
+
MIT, the format files it bundles included. Your own app can draw runs with it
|
|
40
|
+
([Your own UI](./integration/own-ui.md)).
|
|
41
|
+
|
|
42
|
+
## FSL-1.1-MIT
|
|
43
|
+
|
|
44
|
+
The Functional Source License lets you use the code for yourself and your company, run it and
|
|
45
|
+
change it. You may not offer it to others as a competing product or service. Each release
|
|
46
|
+
becomes MIT two years after it is published.
|
|
47
|
+
|
|
48
|
+
| Part | Where |
|
|
49
|
+
|---|---|
|
|
50
|
+
| The studio | `apps/web` |
|
|
51
|
+
| The runtime and the `wizards` command | `apps/runtime`, `bin/` |
|
|
52
|
+
| What your code imports, `@engenty/wizards` on npm | `packages/wizards` |
|
|
53
|
+
| The rest of `packages/shared` | including `theme-look.ts`, which turns a theme into the look of a run |
|
|
54
|
+
| Everything else in the repository | unless COPYRIGHTS.md names another licence |
|
|
55
|
+
|
|
56
|
+
The licence: [LICENSE](https://github.com/engenty/wizards/blob/main/LICENSE).
|
|
57
|
+
|
|
58
|
+
## CC BY 4.0
|
|
59
|
+
|
|
60
|
+
The engenty figures are free artwork. Use, change and share them, commercially too, with
|
|
61
|
+
credit.
|
|
62
|
+
|
|
63
|
+
| Part | Where |
|
|
64
|
+
|---|---|
|
|
65
|
+
| The engenty figures as artwork | the files that describe how they look, and their pictures |
|
|
66
|
+
|
|
67
|
+
The licence: [LICENSE-FIGURES](https://github.com/engenty/wizards/blob/main/LICENSE-FIGURES).
|
|
68
|
+
|
|
69
|
+
## Trademarks
|
|
70
|
+
|
|
71
|
+
No licence grants rights to the name or the figures as a brand. Using them as your own brand,
|
|
72
|
+
logo or mascot needs permission.
|
|
73
|
+
|
|
74
|
+
| Part | Where |
|
|
75
|
+
|---|---|
|
|
76
|
+
| “engenty”, “engenty wizards” and the wordmark | everywhere they appear |
|
|
77
|
+
| The engenty figures as a brand | everywhere they appear |
|
|
78
|
+
|
|
79
|
+
The rules: [TRADEMARKS.md](https://github.com/engenty/wizards/blob/main/TRADEMARKS.md).
|
|
80
|
+
|
|
81
|
+
## The exact files
|
|
82
|
+
|
|
83
|
+
[COPYRIGHTS.md](https://github.com/engenty/wizards/blob/main/COPYRIGHTS.md) lists the exact
|
|
84
|
+
files under each licence. Where it and this page differ, COPYRIGHTS.md and the licence files
|
|
85
|
+
count.
|
|
@@ -36,7 +36,7 @@ server.on("run.done", async ({ run, wizard, values }) => {
|
|
|
36
36
|
| Event | A space | Gets |
|
|
37
37
|
|---|---|---|
|
|
38
38
|
| `space.created` | was made here, or arrived from engenty wizards on someone’s computer | `{ space: { id } }` |
|
|
39
|
-
| `space.updated` | changed its name, its brand (Info
|
|
39
|
+
| `space.updated` | changed its name, its brand (Info and Brand), its facts or its connected systems, or arrived again from a computer | `{ space: { id } }` |
|
|
40
40
|
| `space.deleted` | was deleted | `{ space: { id } }` |
|
|
41
41
|
| `space.file.ready` | has a file that was read: a document is in the index now | `{ space: { id }, file: { id, name, kind, mime } }` |
|
|
42
42
|
| `space.file.removed` | lost a file | `{ space: { id }, file: { id, name, kind, mime } }` |
|
|
@@ -28,7 +28,7 @@ loads them from their files and loads a plugin again when its files change.
|
|
|
28
28
|
| A page of the studio | Behind an icon in the app bar, or at its address | [The studio half](./studio.md) |
|
|
29
29
|
| A section of the settings | In the settings’ list | [The studio half](./studio.md) |
|
|
30
30
|
| A section of the space page | In one of its parts, below the part’s own sections | [The studio half](./studio.md#the-space) |
|
|
31
|
-
| A part of the space page | In the space’s menu, beside Info
|
|
31
|
+
| A part of the space page | In the space’s menu, beside Info, Brand, Knowledge, Data and Results | [The studio half](./studio.md#a-part-of-the-plugins-own) |
|
|
32
32
|
|
|
33
33
|
## Two halves
|
|
34
34
|
|
|
@@ -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` |
|
|
@@ -99,7 +99,7 @@ server.registerSpaceContext({
|
|
|
99
99
|
|
|
100
100
|
## The space’s brand
|
|
101
101
|
|
|
102
|
-
`server.spaces.brand(space)` reads what Info
|
|
102
|
+
`server.spaces.brand(space)` reads what Info and Brand hold of the space’s look, for a block, a
|
|
103
103
|
page or a model call in it:
|
|
104
104
|
|
|
105
105
|
```ts
|
|
@@ -123,11 +123,12 @@ studio.registerSettingsSection({
|
|
|
123
123
|
## The space
|
|
124
124
|
|
|
125
125
|
A space holds what all its wizards share: a title, logos, colours, facts and Knowledge. The
|
|
126
|
-
space page, behind the
|
|
126
|
+
space page, behind the layers icon (Sources) in the app bar, shows them in five parts:
|
|
127
127
|
|
|
128
128
|
| Part | `group` | Holds |
|
|
129
129
|
|---|---|---|
|
|
130
|
-
| Info
|
|
130
|
+
| Info | `info` | Basics, Facts |
|
|
131
|
+
| Brand | `brand` | Logos, Colours, Typography, Brand assets |
|
|
131
132
|
| Knowledge | `knowledge` | Documents, pages, tables and files with their categories: what every AI step looks things up in |
|
|
132
133
|
| Data | `data` | What the wizards keep |
|
|
133
134
|
| Results | `results` | The runs that reached their result |
|
|
@@ -166,8 +167,8 @@ studio.registerSpaceSection({
|
|
|
166
167
|
- `studio.useSpace()` is a hook: `{ id, name, readOnly, brand }`, or `null` while there is none.
|
|
167
168
|
A component that calls it draws again when the person picks another space, or changes its
|
|
168
169
|
brand. `readOnly`: the space is edited in engenty wizards on a computer and only shown here,
|
|
169
|
-
or nothing is built on this runtime. Show it, but change nothing. `brand` is what Info
|
|
170
|
-
|
|
170
|
+
or nothing is built on this runtime. Show it, but change nothing. `brand` is what Info and Brand
|
|
171
|
+
hold of the look: `name`, `colors` (`{ name, value }`, the first is the accent) and `fonts`
|
|
171
172
|
(`{ family, role, weights }`).
|
|
172
173
|
- Every wizard belongs to a space: a [run event](./events.md) names it as
|
|
173
174
|
`wizard.projectId`. Keep it with what the plugin stores to show a space’s part of it.
|
|
@@ -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.2
|
|
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
|
|
12
|
-
[MIT licence](https://github.com/engenty/wizards/blob/main/packages/shared/LICENSE-MIT),
|
|
13
|
-
tool may read and
|
|
11
|
+
The wizard format is open. The code that defines a wizard, checks it and packs it as a `.wizard`
|
|
12
|
+
file is under the [MIT licence](https://github.com/engenty/wizards/blob/main/packages/shared/LICENSE-MIT),
|
|
13
|
+
so any tool may read, write and run wizards. [Licensing](../licensing.md) lists the files.
|
|
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` | Makes an animated video as code: an explainer, a product spot, a short | [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,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Motion graphics
|
|
3
|
+
description: A motion-graphics step has an AI client write an animated video as code, and the runtime renders it to MP4.
|
|
4
|
+
version: 0.11.2
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
A `motion-graphics` step makes an animated video: an explainer, a product spot, a short. An AI
|
|
8
|
+
client writes the video as a web page (HTML, CSS and JavaScript) in a folder of its own. It looks
|
|
9
|
+
at the frames and fixes them. The runtime then renders the page to an MP4.
|
|
10
|
+
|
|
11
|
+
The format names no AI client. In engenty wizards, the step runs on your computer where Claude
|
|
12
|
+
Code is set up as your AI subscription. It never runs on credits or in the cloud. A video takes 5
|
|
13
|
+
to 40 minutes.
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"id": "video", "type": "motion-graphics", "title": "Make the video",
|
|
18
|
+
"brief": "A 30-second explainer of {{product}}, calm and bright. Use the voice-over.",
|
|
19
|
+
"kit": "kits/explainer.zip",
|
|
20
|
+
"inputs": { "voice": "steps.voice", "script": "steps.script" },
|
|
21
|
+
"format": "16:9", "seconds": 30
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
| Key | What it does |
|
|
26
|
+
|---|---|
|
|
27
|
+
| `brief` | What the video is: story, look, what to use. A template |
|
|
28
|
+
| `skills` | Skill packages the client reads. The default is `["hyperframes"]`. A workspace package is `skills/<name>`, a folder with a `SKILL.md` |
|
|
29
|
+
| `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 |
|
|
30
|
+
| `inputs` | What the video is made from: a name (lowercase letters, digits, `-`) → a field id or `steps.<id>` |
|
|
31
|
+
| `format` | `16:9` (the default), `9:16` or `1:1` |
|
|
32
|
+
| `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 |
|
|
33
|
+
| `seconds` | About how long the video runs, 3 to 600 |
|
|
34
|
+
| `model`, `effort` | The model class, `low` by default. The kit carries the craft |
|
|
35
|
+
|
|
36
|
+
Files among the inputs (uploads, voice lines, pictures) are copied into `input/<name>/`. Text is
|
|
37
|
+
written to `input/<name>.md`, JSON to `input/<name>.json`.
|
|
38
|
+
|
|
39
|
+
## What it can draw
|
|
40
|
+
|
|
41
|
+
Anything a browser draws: type, shapes, your pictures, SVG and its animations, Lottie, and 3D
|
|
42
|
+
with Three.js. The skill packages say how. The default, `hyperframes`, brings CSS, SVG, GSAP,
|
|
43
|
+
Lottie and Three.js. Whatever the page uses, the result is an MP4 with sound.
|
|
44
|
+
|
|
45
|
+
## A video in steps
|
|
46
|
+
|
|
47
|
+
A video that convinces is made in stages, each with its own review:
|
|
48
|
+
|
|
49
|
+
1. An agent step writes the research and the script.
|
|
50
|
+
2. A `generate` step with `asset` `voice` reads the whole script.
|
|
51
|
+
3. The motion-graphics step makes the video from the voice, the pictures and the script.
|
|
52
|
+
|
|
53
|
+
The motion-graphics step finds the word timings in the voice-over itself. Sounds come from a
|
|
54
|
+
fixed catalog. The MP4 is a file that leaves the page, so the EU’s “AI” label is drawn into the
|
|
55
|
+
picture itself.
|
|
@@ -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 |
|