@engenty/wizards-runtime 0.9.1 → 0.9.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 +24 -13
- package/apps/runtime/dist/docs/dev/plugins/runners.md +1 -1
- package/apps/runtime/dist/docs/dev/wizard-format/index.md +4 -53
- package/apps/runtime/dist/docs/dev/wizard-format/meta.json +1 -0
- package/apps/runtime/dist/docs/dev/wizard-format/pages-and-fields.md +17 -0
- package/apps/runtime/dist/docs/dev/wizard-format/themes.md +220 -0
- package/apps/runtime/dist/docs/dev/wizard-format/wizard-file.md +2 -0
- package/apps/runtime/dist/docs/user/run.md +15 -1
- package/apps/runtime/dist/docs/user/space.md +4 -0
- package/apps/runtime/dist/files/upload-check.js +622 -0
- package/apps/runtime/dist/harness/terminal.js +14 -7
- package/apps/runtime/dist/index.js +2 -0
- package/apps/runtime/dist/no-webstorage.js +6 -0
- package/apps/runtime/dist/plugins/runs.js +8 -5
- package/apps/runtime/dist/routes/runs.js +22 -6
- package/apps/runtime/dist/routes/studio.js +2 -2
- package/apps/runtime/dist/services/project-files.js +14 -6
- package/apps/web/dist/assets/{AboutDialog-DKfHXQUv.js → AboutDialog-BUdEn9X_.js} +1 -1
- package/apps/web/dist/assets/{ChangelogDialog-BsM9zGdh.js → ChangelogDialog-ClkjHGE_.js} +1 -1
- package/apps/web/dist/assets/{EditorPage-CRcgupmQ.js → EditorPage-j5HjqTMV.js} +2 -2
- package/apps/web/dist/assets/{FlowPreview-szPmsT2-.js → FlowPreview-DZRkWedM.js} +1 -1
- package/apps/web/dist/assets/{Harness-CXx-Js4U.js → Harness-FiDeF3LX.js} +1 -1
- package/apps/web/dist/assets/{NewWizardChannels-C6R1HV0I.js → NewWizardChannels-DeJP5h5I.js} +1 -1
- package/apps/web/dist/assets/{NewWizardPage-D6Z6DYeT.js → NewWizardPage-CIS3qNUz.js} +1 -1
- package/apps/web/dist/assets/{OnboardingPage-DrN26Afr.js → OnboardingPage-CoTYSubc.js} +1 -1
- package/apps/web/dist/assets/{ProjectPage-CNyhwfgz.js → ProjectPage-XVhe87S4.js} +1 -1
- package/apps/web/dist/assets/{PublicRunner-CREvMYW_.js → PublicRunner-Bc-3e7UU.js} +1 -1
- package/apps/web/dist/assets/{ReadOnly-BUyOPou5.js → ReadOnly-I-Lm7a8y.js} +1 -1
- package/apps/web/dist/assets/{RunDrawer-8iWXyXjL.js → RunDrawer-DXqyxTsm.js} +1 -1
- package/apps/web/dist/assets/{RunnerView-CufG6xDP.js → RunnerView-DeDApA-9.js} +1 -1
- package/apps/web/dist/assets/{SettingsPage-B4M4DrMS.js → SettingsPage-ChpDzJVn.js} +2 -2
- package/apps/web/dist/assets/{SetupPage-D-Op38jE.js → SetupPage-E5JoQMBM.js} +1 -1
- package/apps/web/dist/assets/{SharePage-BXYVZ3Fa.js → SharePage-DW1b2g9t.js} +1 -1
- package/apps/web/dist/assets/changelog-DuSV2HiU.js +1 -0
- package/apps/web/dist/assets/{esm-CetquljB.js → esm-yMT-rSPa.js} +1 -1
- package/apps/web/dist/assets/{index-C5Qmfm_0.css → index-D9oqYYa8.css} +1 -1
- package/apps/web/dist/assets/{index-TJhB4-x8.js → index-DfHH4icT.js} +4 -4
- package/apps/web/dist/assets/oss-credits-6A3pxilr.js +1 -0
- package/apps/web/dist/assets/{phone-CJVAobUx.js → phone-BprN_SDS.js} +1 -1
- package/apps/web/dist/assets/{settings-menu-DjgZMuyV.js → settings-menu-CVl54phq.js} +1 -1
- package/apps/web/dist/assets/{theme-BucH2rUv.js → theme-DZZXa238.js} +1 -1
- package/apps/web/dist/assets/{ui-LJgQlXbd.js → ui-kIzOrA_W.js} +1 -1
- package/apps/web/dist/assets/{upload-Dz86uI5u.js → upload-Cvztyjuj.js} +1 -1
- package/apps/web/dist/assets/{wrench-Dr5LakQv.js → wrench-CWT9IGKq.js} +1 -1
- package/apps/web/dist/index.html +3 -3
- package/apps/web/dist/install.sh +43 -3
- package/apps/web/dist/mcp/flow.html +2 -2
- package/node_modules/@engenty/wizards-shared/dist/run.d.ts +4 -0
- package/node_modules/@engenty/wizards-shared/dist/run.js +8 -0
- package/package.json +2 -4
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/plugin.json +1 -1
- package/apps/web/dist/assets/changelog-KvwOYLcI.js +0 -1
- package/apps/web/dist/assets/oss-credits-BvQGQEzd.js +0 -1
package/README.md
CHANGED
|
@@ -20,21 +20,22 @@
|
|
|
20
20
|
or a browser. Anything that changes an account asks first.
|
|
21
21
|
- **Share it with a link.** Anyone can run a wizard in the browser, on a phone too: camera,
|
|
22
22
|
code scan, voice notes, location and a drawn signature included. Results download as PDF,
|
|
23
|
-
Word, HTML, Markdown, PNG, MP4, MP3, CSV, Excel or JSON, or go out as a link.
|
|
23
|
+
Word, HTML, Markdown, PNG, MP4, MP3, CSV, Excel or JSON, or go out as a link. Each wizard
|
|
24
|
+
wears a theme of your space: its colours, fonts and effects.
|
|
24
25
|
- **Send the result on.** From the result, by email, into Google Drive, OneDrive or S3, to a
|
|
25
26
|
Slack channel, through any connected service, or onto a website the wizard opens in its
|
|
26
27
|
browser – you sign in yourself and confirm before anything goes public.
|
|
27
28
|
- **Runs on your machine, on your subscription.** It uses Codex, Claude Code, Antigravity
|
|
28
29
|
or Cursor Agent when one is installed and signed in, so no API key is needed. Or bring a key
|
|
29
|
-
(Vercel AI Gateway, OpenAI, Anthropic), or a local model through Ollama. Your wizards and
|
|
30
|
+
(Vercel AI Gateway, OpenAI, Anthropic, Google), or a local model through Ollama. Your wizards and
|
|
30
31
|
results stay in a folder on your machine.
|
|
31
32
|
|
|
32
33
|
## How it looks
|
|
33
34
|
|
|
34
|
-
The studio: a wizard
|
|
35
|
+
The studio: the conversation that changes a wizard, next to its steps as a flow with its branches.
|
|
35
36
|
|
|
36
37
|
<p align="center">
|
|
37
|
-
<img src="docs/assets/studio.png" alt="The studio of engenty wizards: the
|
|
38
|
+
<img src="docs/assets/studio.png" alt="The studio of engenty wizards: the assistant explains where a wizard that collects a month's receipts for bookkeeping looks for them; beside it the wizard's flow – two pages of questions, AI steps that branch to the mailbox and to customer portals, a review and the result">
|
|
38
39
|
</p>
|
|
39
40
|
|
|
40
41
|
A wizard in use: it asks on one page, then on the next, and ends with the result to download or share.
|
|
@@ -74,14 +75,14 @@ then walks you through the rest:
|
|
|
74
75
|
`--local` leaves the account out: nothing leaves the computer, links answer on it only
|
|
75
76
|
([local only](https://engenty.ai/docs/user/local-only)).
|
|
76
77
|
- **An AI client.** It looks for Codex, Claude Code, Antigravity and Cursor Agent and
|
|
77
|
-
offers to install the missing ones – first the one whose app (Claude, ChatGPT,
|
|
78
|
-
on your Mac, as its subscription is most likely yours already. The first page of the studio
|
|
78
|
+
offers to install the missing ones – first the one whose app (Claude, ChatGPT, Antigravity,
|
|
79
|
+
Cursor) is on your Mac, as its subscription is most likely yours already. The first page of the studio
|
|
79
80
|
installs them too. Or use your account’s credits, an API key, [Ollama](https://ollama.com) or,
|
|
80
81
|
on a Mac with Apple silicon and macOS 26, Apple Intelligence.
|
|
81
82
|
- **A browser and ffmpeg** (optional): Chrome, Edge or Chromium (on a Mac also Brave) for PDF
|
|
82
83
|
and PNG exports and for steps that use a browser, ffmpeg for MP4 videos of animated widgets.
|
|
83
84
|
- **Start at login** (optional): engenty wizards starts in the background when you log in (a
|
|
84
|
-
LaunchAgent on a Mac, a systemd user service on Linux). Links and AI clients then always
|
|
85
|
+
LaunchAgent on a Mac, a systemd user service on Linux, a scheduled task on Windows). Links and AI clients then always
|
|
85
86
|
reach it. `wizards autostart on` or `off` switches it later.
|
|
86
87
|
- **Your AI apps** (optional): adds your wizards to the AI apps it finds, such as Claude
|
|
87
88
|
Desktop, Cursor or Codex. `wizards connect` and `wizards disconnect` do it later.
|
|
@@ -103,7 +104,8 @@ icon at the right of the address bar.
|
|
|
103
104
|
|
|
104
105
|
### From source
|
|
105
106
|
|
|
106
|
-
You need Node.js 24.11 or newer and pnpm 10 (`corepack enable
|
|
107
|
+
You need Node.js 24.11 or newer and pnpm 10 (`corepack enable`; Node 25 and later ship without
|
|
108
|
+
corepack, so install it first with `npm install -g corepack`).
|
|
107
109
|
|
|
108
110
|
```bash
|
|
109
111
|
git clone https://github.com/engenty/wizards.git
|
|
@@ -115,8 +117,8 @@ pnpm wizards
|
|
|
115
117
|
|
|
116
118
|
pnpm may list “Ignored build scripts” – that’s expected, nothing to do.
|
|
117
119
|
|
|
118
|
-
Code steps (shell, Node, Python) run in a sandbox
|
|
119
|
-
|
|
120
|
+
Code steps (shell, Node, Python) run in a sandbox. `wizards sandbox add` installs one (about
|
|
121
|
+
340 MB, no Docker needed); a checkout also uses Docker when the sandbox image is on the machine.
|
|
120
122
|
|
|
121
123
|
## First start
|
|
122
124
|
|
|
@@ -133,17 +135,22 @@ Change it later under Settings → Models.
|
|
|
133
135
|
- **Make a wizard:** describe it in the studio’s chat, or start from one of the templates.
|
|
134
136
|
You see the steps as a diagram and can change any of them.
|
|
135
137
|
- **Run and share:** try it yourself, then share the link. Shared results are kept for 7 days
|
|
136
|
-
for people without an account. “
|
|
138
|
+
for people without an account. “Share” on a result also sends it by email, saves it to a
|
|
137
139
|
cloud folder or posts it: [Sharing a result](docs/development.md#sharing-a-result).
|
|
138
140
|
- **Connect services:** Gmail, Google Drive, Calendar, Contacts, Outlook, OneDrive, Slack,
|
|
139
141
|
GitHub, HubSpot and S3 are built in; any other service can be added from its API description
|
|
140
142
|
or MCP server through the [integrations.sh](https://integrations.sh) registry. Services that
|
|
141
143
|
sign in with OAuth need a few settings first: [Connectors](docs/development.md#connectors).
|
|
144
|
+
- **Give it a look:** under “Look” a wizard wears a theme of your space – colours, fonts and
|
|
145
|
+
effects – or ask the assistant, for example “Make it dark and spooky for Halloween.”
|
|
142
146
|
- **Build from Claude Code or Codex:** Settings → Integrate adds engenty wizards to your AI
|
|
143
147
|
apps (Claude Desktop, Claude Code, Codex, Cursor and others), or `wizards connect` from a
|
|
144
|
-
terminal.
|
|
148
|
+
terminal. In Claude Code, the plugin also lists your wizards beside the chat:
|
|
149
|
+
`claude plugin marketplace add engenty/wizards`, then `claude plugin install wizards@engenty`.
|
|
145
150
|
|
|
146
|
-
Your machine only answers on `localhost`. To let others open shared wizards,
|
|
151
|
+
Your machine only answers on `localhost`. To let others open shared wizards, sign in with your
|
|
152
|
+
account: every version that goes live also runs on engenty.ai, even while your computer is off.
|
|
153
|
+
Or run it on a server.
|
|
147
154
|
|
|
148
155
|
## Your data
|
|
149
156
|
|
|
@@ -156,6 +163,10 @@ Back up the folder; delete it to start over. Settings go into `~/.engenty/wizard
|
|
|
156
163
|
|
|
157
164
|
## Update
|
|
158
165
|
|
|
166
|
+
engenty wizards updates itself: it looks for a new version at start and once a day, downloads
|
|
167
|
+
it in the background and switches to it at the next start, never during a run.
|
|
168
|
+
`wizards autoupdate off` turns that off. To update now:
|
|
169
|
+
|
|
159
170
|
```bash
|
|
160
171
|
wizards update
|
|
161
172
|
```
|
|
@@ -99,7 +99,7 @@ server.registerPublicRoute({
|
|
|
99
99
|
| `runs.control(runId, "back" \| "retry" \| "cancel")` | |
|
|
100
100
|
| `runs.subscribe(runId, listener)` | Hears every change of the run: its events with their note in both languages, or a status change. Returns the function that stops it |
|
|
101
101
|
| `runs.handoffUrl(runId)` | The run page with the run’s ticket: the link to send for what the door cannot do. The person who opens it and the door’s person are one to the wizard |
|
|
102
|
-
| `runs.upload(runId, { data, mime, name })` | A file of the person; the asset id goes into an image or file field with `answerPage` |
|
|
102
|
+
| `runs.upload(runId, { data, mime, name })` | A file of the person, checked as an upload on the run page is ([Uploads](../wizard-format/pages-and-fields.md#uploads)); the asset id goes into an image or file field with `answerPage` |
|
|
103
103
|
| `runs.transcribe(runId, { data, mime })` | What is said in a recording of the person (a voice message), written down with the tenant’s audio model and charged to the run. Up to 10 MB |
|
|
104
104
|
|
|
105
105
|
A refused command throws an error with a `status` and a `code` (`not_found`, `invalid`,
|
|
@@ -37,7 +37,7 @@ tool may read and write wizards.
|
|
|
37
37
|
| `lang` | The language the wizard speaks, as a two-letter code. See [Languages](#languages) |
|
|
38
38
|
| `lists` | Tables the wizard keeps between runs. See [Lists and connections](./lists-and-connections.md) |
|
|
39
39
|
| `connections` | Accounts the person connects during a run. See [Lists and connections](./lists-and-connections.md) |
|
|
40
|
-
| `themes` | The space’s themes the wizard offers, in order. See [Themes](
|
|
40
|
+
| `themes` | The space’s themes the wizard offers, in order. See [Themes](./themes.md) |
|
|
41
41
|
| `steps` | What the run does, from top to bottom |
|
|
42
42
|
|
|
43
43
|
## JSON Schema
|
|
@@ -90,58 +90,9 @@ Using a figure or the name engenty as your own brand, logo or mascot needs permi
|
|
|
90
90
|
|
|
91
91
|
## Themes
|
|
92
92
|
|
|
93
|
-
`themes` names the looks the wizard offers, in
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
without any, the brand. A wizard file carries the themes its wizard names, in `wizard.json`
|
|
97
|
-
beside the definition.
|
|
98
|
-
|
|
99
|
-
A theme holds values only, no CSS and no files. Its JSON Schema is
|
|
100
|
-
`https://engenty.ai/schema/theme/v1/theme.json`.
|
|
101
|
-
|
|
102
|
-
| Key | What it holds |
|
|
103
|
-
|---|---|
|
|
104
|
-
| `id` | Lowercase letters, digits and dashes (`halloween`); `@owner/halloween` for a theme from the catalog. `brand`, `host`, `default`, `engenty`, `wizard` and `wizards` are reserved |
|
|
105
|
-
| `name` | Shown in the studio |
|
|
106
|
-
| `base` | `brand`, `host` or `default`: what the theme builds on. What it leaves out comes from there |
|
|
107
|
-
| `colors` | The colours of light and dark pages, in order: each entry has a `scheme` (`light` or `dark`) and `accent`, `background` and `text` as `#rrggbb`. The first shows until the person picks; with one entry the pages are always that scheme |
|
|
108
|
-
| `fonts` | `heading` and `text`: a font engenty wizards ships, or `brand` for the space’s |
|
|
109
|
-
| `shape` | `radius` (`sharp`, `soft`, `round`), `cards` (`solid`, `outline`, `glass`), `headings` (`normal`, `uppercase`) |
|
|
110
|
-
| `effects` | Effects from the runner’s library, each with its options. A runner that does not know an effect leaves it out |
|
|
111
|
-
|
|
112
|
-
| Effect | Options |
|
|
113
|
-
|---|---|
|
|
114
|
-
| `glow` | |
|
|
115
|
-
| `corners` | `kind`: `webs`, `frost` |
|
|
116
|
-
| `particles` | `kind`: `embers`, `snow`, `confetti`, `stars` |
|
|
117
|
-
| `figures` | `costume`: `witch`, `devil`, `bat`, `pumpkin`; `motion`: `fly`, `peek` |
|
|
118
|
-
| `fog` | |
|
|
119
|
-
| `pattern` | `kind`: `dots`, `grid` |
|
|
120
|
-
|
|
121
|
-
The fonts ship with engenty wizards, so a run page loads no font from another site: `Inter`,
|
|
122
|
-
`Figtree`, `DM Sans`, `Nunito`, `Fredoka`, `Bricolage Grotesque`, `Fraunces`,
|
|
123
|
-
`Playfair Display`, `Lora`, `Young Serif`, `Caveat`, `Creepster` and `Nosifer`. Creepster and
|
|
124
|
-
Nosifer are display fonts for headings.
|
|
125
|
-
|
|
126
|
-
```json
|
|
127
|
-
{
|
|
128
|
-
"id": "halloween",
|
|
129
|
-
"name": "Halloween",
|
|
130
|
-
"colors": [{ "scheme": "dark", "accent": "#ff7a1a", "background": "#140b1f" }],
|
|
131
|
-
"fonts": { "heading": "Creepster", "text": "Nunito" },
|
|
132
|
-
"effects": [
|
|
133
|
-
{ "id": "glow" },
|
|
134
|
-
{ "id": "corners", "kind": "webs" },
|
|
135
|
-
{ "id": "figures", "costume": "bat", "motion": "fly" },
|
|
136
|
-
{ "id": "particles", "kind": "embers" }
|
|
137
|
-
]
|
|
138
|
-
}
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
For hosts that style the runner around it, these names stay the same: `.wizard-page`,
|
|
142
|
-
`.wizard-title`, `.wizard-heading`, `.wizard-button`, `.wizard-field`, `.wizard-card`, and the
|
|
143
|
-
variables `--wizard-accent`, `--wizard-background`, `--wizard-text`, `--wizard-font-heading` and
|
|
144
|
-
`--wizard-font-text`.
|
|
93
|
+
`themes` names the looks the wizard offers, in order: ids of the space’s themes, or the built-in
|
|
94
|
+
`brand`, `host` and `default`. Without it the wizard wears its space’s brand. A theme holds
|
|
95
|
+
colours, fonts, shape and effects, values only. See [Themes](./themes.md).
|
|
145
96
|
|
|
146
97
|
## Languages
|
|
147
98
|
|
|
@@ -41,6 +41,23 @@ field has a `label` and a `kind`, and may have `required`, `placeholder`, `help`
|
|
|
41
41
|
| `connection` | Connects one of their accounts | `connection`: the id of a wizard connection |
|
|
42
42
|
| `list` | Checks and corrects a stored list | `list`: the id of a wizard list |
|
|
43
43
|
|
|
44
|
+
## Uploads
|
|
45
|
+
|
|
46
|
+
The runtime checks each file an `image` or `file` field receives, from the run page or a runner
|
|
47
|
+
plugin’s `runs.upload`, before it keeps it. A space’s files go through the same check. Up to
|
|
48
|
+
15 MB per file, 40 MB for a clip.
|
|
49
|
+
|
|
50
|
+
| Check | What happens |
|
|
51
|
+
|---|---|
|
|
52
|
+
| Name | Folders, control characters and direction overrides go. At most 120 characters |
|
|
53
|
+
| Type | The first bytes must fit the declared type: a picture, a recording or clip, a PDF, an Office file, a font, text. Otherwise the upload is refused with `400`. A picture is kept under the type its bytes show |
|
|
54
|
+
| Size | A picture of more than 50 megapixels or 16 384 pixels on a side is refused before it is decoded |
|
|
55
|
+
| Pictures | PNG, JPEG, WebP and AVIF are decoded and encoded again in their own format, in a separate process: no EXIF, XMP or GPS, nothing after the picture’s end, upright as the EXIF orientation said. Animated pictures, GIF, HEIC, BMP and ICO keep their bytes |
|
|
56
|
+
| SVG | Written again from an allowlist of drawing elements. Scripts, `foreignObject`, animations, event handlers and references that don’t start with `#` go. A DOCTYPE or entity declaration is refused |
|
|
57
|
+
|
|
58
|
+
A type the runtime doesn’t check (`application/octet-stream`, for example) is kept and served
|
|
59
|
+
only as a download. The plan with what comes next is [docs/plans/upload-checks.md](https://github.com/engenty/wizards/blob/main/docs/plans/upload-checks.md).
|
|
60
|
+
|
|
44
61
|
## Line items
|
|
45
62
|
|
|
46
63
|
An `items` field takes positions and computes the totals itself:
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Themes
|
|
3
|
+
description: How a wizard looks, from colours and fonts to shape and effects, kept as a theme in the space and carried in its wizard file.
|
|
4
|
+
version: 0.9.1
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
A theme is how a wizard’s pages look: the colours of light and dark pages, two fonts, the shape of
|
|
8
|
+
corners, cards and headings, and effects such as spider webs, embers or snow. A theme is a
|
|
9
|
+
document of its own. It lives in the space, several wizards can wear it, and a wizard file
|
|
10
|
+
carries the themes its wizard names.
|
|
11
|
+
|
|
12
|
+
A theme holds values only: no CSS, no files, no addresses. Everything a theme shows is drawn by
|
|
13
|
+
the runner’s own code. So a theme is checked completely by its schema, and it looks the same
|
|
14
|
+
wherever the wizard runs.
|
|
15
|
+
|
|
16
|
+
## The chain in the definition
|
|
17
|
+
|
|
18
|
+
`themes` in the definition names the looks the wizard offers, in order. Each entry is the id of
|
|
19
|
+
one of the space’s themes, or a built-in:
|
|
20
|
+
|
|
21
|
+
| Id | Look |
|
|
22
|
+
|---|---|
|
|
23
|
+
| `brand` | The space’s brand: its colours, fonts and logo |
|
|
24
|
+
| `host` | The look of the place the wizard runs in: the AI app, the website, your own page |
|
|
25
|
+
| `default` | engenty wizards’ own look |
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"version": 1,
|
|
30
|
+
"title": "Spukhaus-Exposé",
|
|
31
|
+
"themes": ["halloween", "halloween-calm", "brand"],
|
|
32
|
+
"steps": [ … ]
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Without `themes` the wizard wears its space’s brand. `themes` holds at most 8 ids, each once.
|
|
37
|
+
|
|
38
|
+
## Which theme shows where
|
|
39
|
+
|
|
40
|
+
The wizard offers its chain. The place that shows it chooses from it.
|
|
41
|
+
|
|
42
|
+
| Place | Shows |
|
|
43
|
+
|---|---|
|
|
44
|
+
| The wizard’s own page and share pages | The first theme of the chain the space has |
|
|
45
|
+
| A website, with `embed.js` | `data-theme`: an id of the chain, `brand` or `default`. Left out, the first. See [Embed](../integration/embed.md) |
|
|
46
|
+
| A link | `?theme=<id>` on the wizard’s address, chosen the same way |
|
|
47
|
+
| ChatGPT, Claude and other MCP Apps hosts | `host`: the app’s own look. The model passes `theme` to `run_wizard` when the person asks for the wizard’s look. See [MCP Apps](../integration/mcp-apps.md) |
|
|
48
|
+
| Your own page, with OpenUI | `theme`, `mode` and `effects` on the component. Your page decides how much shows. See [OpenUI](../integration/openui.md#the-wizards-look) |
|
|
49
|
+
|
|
50
|
+
An id outside the chain shows the first theme. A wizard can’t insist on its theme, but a place can
|
|
51
|
+
only choose among the themes the wizard offers.
|
|
52
|
+
|
|
53
|
+
## The theme
|
|
54
|
+
|
|
55
|
+
Its JSON Schema is `https://engenty.ai/schema/theme/v1/theme.json`.
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
{
|
|
59
|
+
"id": "halloween",
|
|
60
|
+
"name": "Halloween",
|
|
61
|
+
"version": "1.0.0",
|
|
62
|
+
"base": "brand",
|
|
63
|
+
"colors": [
|
|
64
|
+
{ "scheme": "dark", "accent": "#ff7a1a", "background": "#140b1f", "text": "#f3eaff" },
|
|
65
|
+
{ "scheme": "light", "accent": "#d9480f", "background": "#fff4e6" }
|
|
66
|
+
],
|
|
67
|
+
"fonts": { "heading": "Creepster", "text": "Nunito" },
|
|
68
|
+
"shape": { "radius": "round", "cards": "glass", "headings": "normal" },
|
|
69
|
+
"effects": [
|
|
70
|
+
{ "id": "glow" },
|
|
71
|
+
{ "id": "corners", "kind": "webs" },
|
|
72
|
+
{ "id": "figures", "costume": "bat", "motion": "fly" },
|
|
73
|
+
{ "id": "particles", "kind": "embers" }
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
| Key | What it holds |
|
|
79
|
+
|---|---|
|
|
80
|
+
| `id` | Lowercase letters, digits and dashes, up to 48: `halloween`. A theme from the catalog has a scope: `@owner/halloween`. See [Ids and scopes](#ids-and-scopes) |
|
|
81
|
+
| `name` | Shown in the studio |
|
|
82
|
+
| `version` | The theme’s own version, `1.0.0` unless given |
|
|
83
|
+
| `base` | `brand` (the default), `host` or `default`: what the theme builds on. Whatever the theme leaves out comes from there |
|
|
84
|
+
| `colors` | Light and dark pages, in order. See [Colours](#colours) |
|
|
85
|
+
| `fonts` | `heading` and `text`. See [Fonts](#fonts) |
|
|
86
|
+
| `shape` | `radius`: `sharp`, `soft`, `round`. `cards`: `solid`, `outline`, `glass`. `headings`: `normal`, `uppercase` |
|
|
87
|
+
| `effects` | Up to 8 effects of the runner’s library, each with its options. See [Effects](#effects) |
|
|
88
|
+
|
|
89
|
+
### Colours
|
|
90
|
+
|
|
91
|
+
`colors` holds one entry per scheme, `light` or `dark`, each once. Each entry has `accent`,
|
|
92
|
+
`background` and `text` as `#rrggbb`, and leaves out what comes from the base. Every other colour
|
|
93
|
+
of the page (buttons, fields, cards, borders) is worked out from these three.
|
|
94
|
+
|
|
95
|
+
| `colors` | The pages |
|
|
96
|
+
|---|---|
|
|
97
|
+
| Left out | As the base shows them, light or dark as the person chose |
|
|
98
|
+
| One entry | Always that scheme. The person can’t switch |
|
|
99
|
+
| Two entries | The first shows until the person switches |
|
|
100
|
+
|
|
101
|
+
### Fonts
|
|
102
|
+
|
|
103
|
+
`heading` and `text` each name a font that engenty wizards ships, or `brand` for the space’s own.
|
|
104
|
+
|
|
105
|
+
The shipped fonts load from engenty wizards itself, never from another site: `Inter`, `Figtree`,
|
|
106
|
+
`DM Sans`, `Nunito`, `Fredoka`, `Bricolage Grotesque`, `Fraunces`, `Playfair Display`, `Lora`,
|
|
107
|
+
`Young Serif`, `Caveat`, `Creepster` and `Nosifer`. Creepster and Nosifer are display fonts for
|
|
108
|
+
headings.
|
|
109
|
+
|
|
110
|
+
A space’s own font, for example the one its website uses, belongs to its brand, not to a theme:
|
|
111
|
+
uploaded as a file, or loaded from the website’s address after you confirm the licence (see
|
|
112
|
+
[Space](../../user/space.md#info--brand)). A theme only names it, with `brand`. A theme that goes
|
|
113
|
+
to another space shows that space’s brand font, or a shipped font of the same kind.
|
|
114
|
+
|
|
115
|
+
### Effects
|
|
116
|
+
|
|
117
|
+
| Effect | Options | Draws |
|
|
118
|
+
|---|---|---|
|
|
119
|
+
| `glow` | | Headings and the main button light up in the accent |
|
|
120
|
+
| `corners` | `kind`: `webs`, `frost` | Spider webs with a spider letting itself down, or frost in the top corners |
|
|
121
|
+
| `particles` | `kind`: `embers`, `snow`, `confetti`, `stars` | Rising embers, falling snow or confetti, twinkling stars |
|
|
122
|
+
| `figures` | `costume`: `witch`, `devil`, `bat`, `pumpkin`. `motion`: `fly`, `peek` | engenties in the costume fly past, or peek in from a bottom corner |
|
|
123
|
+
| `fog` | | Fog drifting along the bottom |
|
|
124
|
+
| `pattern` | `kind`: `dots`, `grid` | A quiet pattern on the ground |
|
|
125
|
+
|
|
126
|
+
- **One kind each.** `corners`, `particles` and `pattern` take one `kind`. In the studio, choosing
|
|
127
|
+
one switches the other off.
|
|
128
|
+
- **Never in the way.** Effects sit over or behind the page and never take a tap or a click.
|
|
129
|
+
- **Reduced motion.** For people who ask their device for less motion, nothing moves: flying
|
|
130
|
+
figures, particles and peeking figures go, the spider and the fog stand still.
|
|
131
|
+
- **New effects.** The library grows with runner releases. A runner that doesn’t know an effect
|
|
132
|
+
or an option leaves it out, so a theme stays valid on older installs.
|
|
133
|
+
|
|
134
|
+
## Ids and scopes
|
|
135
|
+
|
|
136
|
+
| Id | Who |
|
|
137
|
+
|---|---|
|
|
138
|
+
| `halloween` | A theme of the space. The studio and agents make these |
|
|
139
|
+
| `@owner/halloween` | A theme from the catalog, published by `owner` |
|
|
140
|
+
| `@wizards/…` | Themes engenty publishes, for example with templates |
|
|
141
|
+
| `brand`, `host`, `default` | The built-ins above |
|
|
142
|
+
|
|
143
|
+
`engenty`, `wizard` and `wizards` are reserved as ids, and `@engenty` and `@wizard` as scopes.
|
|
144
|
+
|
|
145
|
+
The catalog for themes isn’t open yet. Until then a theme reaches another space in a wizard file.
|
|
146
|
+
|
|
147
|
+
## In a wizard file
|
|
148
|
+
|
|
149
|
+
`wizard.json` carries the themes its wizard names, in full, beside the definition:
|
|
150
|
+
|
|
151
|
+
```json
|
|
152
|
+
{
|
|
153
|
+
"format": "engenty-wizard",
|
|
154
|
+
"version": 1,
|
|
155
|
+
"definition": { "themes": ["halloween"], … },
|
|
156
|
+
"themes": [{ "id": "halloween", "name": "Halloween", … }]
|
|
157
|
+
}
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
The import puts them into the space you import into:
|
|
161
|
+
|
|
162
|
+
- **The same theme is there.** Same id, same content: the space keeps its own, nothing doubles.
|
|
163
|
+
- **Another theme has the id.** The imported one comes in under a free id, `halloween-2`, and the
|
|
164
|
+
wizard’s `themes` names that one.
|
|
165
|
+
- **New.** It comes in as it is.
|
|
166
|
+
|
|
167
|
+
A space keeps at most 40 themes. A wizard sent from your computer to the cloud takes its themes
|
|
168
|
+
along, and they replace the cloud space’s themes with the same ids.
|
|
169
|
+
|
|
170
|
+
## From the studio and from agents
|
|
171
|
+
|
|
172
|
+
The studio’s “Look” section edits the theme a wizard wears (see
|
|
173
|
+
[Build a wizard](../../user/build-a-wizard.md)). The first change makes a theme named after the
|
|
174
|
+
wizard.
|
|
175
|
+
|
|
176
|
+
Agents and MCP clients use two operations of `edit_wizard`:
|
|
177
|
+
|
|
178
|
+
| Operation | Does |
|
|
179
|
+
|---|---|
|
|
180
|
+
| `set_theme` with `{ "theme": { … } }` | Saves the theme in the space, or replaces the one with its id, and puts it first in the wizard’s `themes` |
|
|
181
|
+
| `set_meta` with `{ "themes": [ … ] }` | Sets the chain, for example to offer a calmer theme second or the brand last |
|
|
182
|
+
|
|
183
|
+
A theme saved from the studio or an agent has no scope.
|
|
184
|
+
|
|
185
|
+
## Why no CSS
|
|
186
|
+
|
|
187
|
+
Free CSS and files would run in the run page itself, next to what people type. CSS can send
|
|
188
|
+
answers to another site, or hide and relabel what must stay as it is: the question before a
|
|
189
|
+
connector acts, a sign-in, the AI labels. A theme’s address for a font or a picture would send
|
|
190
|
+
every visitor’s IP address to that site. Values only avoid all of it, and a schema can check them.
|
|
191
|
+
The reasoning is in [docs/plans/themes.md](https://github.com/engenty/wizards/blob/main/docs/plans/themes.md).
|
|
192
|
+
|
|
193
|
+
## Styling around the runner
|
|
194
|
+
|
|
195
|
+
A page that shows the runner as a component (OpenUI) can style around it with these names. They
|
|
196
|
+
stay the same across releases. Anything else on the runner’s elements may change.
|
|
197
|
+
|
|
198
|
+
| Name | What it is |
|
|
199
|
+
|---|---|
|
|
200
|
+
| `.wizard-page` | The whole page |
|
|
201
|
+
| `.wizard-title` | A page’s title |
|
|
202
|
+
| `.wizard-heading` | Headings on a page |
|
|
203
|
+
| `.wizard-button` | The button that goes on |
|
|
204
|
+
| `.wizard-field` | Fields |
|
|
205
|
+
| `.wizard-card` | Cards on a page |
|
|
206
|
+
| `var(--wizard-accent)` | Accent colour |
|
|
207
|
+
| `var(--wizard-background)` | Background |
|
|
208
|
+
| `var(--wizard-text)` | Text colour |
|
|
209
|
+
| `var(--wizard-font-heading)` | Font for headings |
|
|
210
|
+
| `var(--wizard-font-text)` | Font for text |
|
|
211
|
+
|
|
212
|
+
The variables are for reading. The theme sets them.
|
|
213
|
+
|
|
214
|
+
```css
|
|
215
|
+
.wizard-title { letter-spacing: 0.04em; }
|
|
216
|
+
.wizard-button {
|
|
217
|
+
border-radius: 0.5rem;
|
|
218
|
+
outline: 2px solid var(--wizard-accent);
|
|
219
|
+
}
|
|
220
|
+
```
|
|
@@ -68,6 +68,7 @@ A path starts with a letter, a digit, `_` or `-`. So hidden files such as `.env`
|
|
|
68
68
|
{ "id": "billomat", "name": "Billomat", "domain": "billomat.com", "sourceKind": "openapi" }
|
|
69
69
|
],
|
|
70
70
|
"mcpServers": [{ "id": "notion", "name": "Notion" }],
|
|
71
|
+
"themes": [{ "id": "invoice-calm", "name": "Invoice, calm", "colors": [ … ] }],
|
|
71
72
|
"knowledge": { "pages": 12, "truncated": false }
|
|
72
73
|
}
|
|
73
74
|
```
|
|
@@ -81,6 +82,7 @@ A path starts with a letter, a digit, `_` or `-`. So hidden files such as `.env`
|
|
|
81
82
|
| `definition` | The wizard. See [The wizard format](./index.md) |
|
|
82
83
|
| `connectors` | Imported connectors the wizard’s connections name: `id`, `name`, `domain` and `sourceKind` (`openapi` or `mcp`), at most 50 |
|
|
83
84
|
| `mcpServers` | The space’s connected systems its agent steps name: `id` and `name`, at most 10 |
|
|
85
|
+
| `themes` | The space’s themes the definition names, in full, at most 8. See [Themes](./themes.md#in-a-wizard-file) |
|
|
84
86
|
| `knowledge` | Only with Knowledge: how many pages, and whether the cap left some out |
|
|
85
87
|
|
|
86
88
|
`connectors` and `mcpServers` hold names, never addresses, headers or credentials. They let the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Run a wizard
|
|
3
|
-
description: What you see when you open a wizard
|
|
3
|
+
description: What you see when you open a wizard’s link, on a computer or a phone.
|
|
4
4
|
version: 0.7.11
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -74,6 +74,20 @@ With “Tell me when it’s done” you can switch apps during a long step: a no
|
|
|
74
74
|
or a buzz brings you back. “Add to home screen” puts the wizard on your phone like an app. On a
|
|
75
75
|
computer, “Bookmark this wizard” shows how to keep it in your bookmarks.
|
|
76
76
|
|
|
77
|
+
## Photos and files you upload
|
|
78
|
+
|
|
79
|
+
engenty wizards checks each file before the wizard keeps it:
|
|
80
|
+
|
|
81
|
+
- **A photo is drawn again.** It looks the same and stays upright. It loses where it was taken,
|
|
82
|
+
the camera’s details and anything else hidden in the file.
|
|
83
|
+
- **A file must be what its type says.** A page that calls itself a photo is refused, and the
|
|
84
|
+
wizard says why.
|
|
85
|
+
- **A photo can have up to 50 megapixels.** Phones take smaller ones.
|
|
86
|
+
- **Some pictures are kept as they are:** moving GIFs and WebPs, and HEIC photos from an iPhone,
|
|
87
|
+
their location included. An iPhone usually sends a web page a JPEG instead.
|
|
88
|
+
|
|
89
|
+
The checks run where engenty wizards runs. Your files don’t go to another service for them.
|
|
90
|
+
|
|
77
91
|
## When the wizard needs you
|
|
78
92
|
|
|
79
93
|
| It shows | Because | You |
|
|
@@ -42,6 +42,10 @@ Logos, Colours and Brand assets each have an “Add” menu in their head.
|
|
|
42
42
|
| Brand assets | Images, videos, audio, PDFs, fonts, Lottie and 3D files, in tabs you can search | AI steps place pictures in documents and choose them by their description |
|
|
43
43
|
| Typography | Fonts, each with what it is for, its weights and its licence. “Add a source” says where wizard pages load a font from: a font file you upload, or its address on your website. engenty wizards tries the address and asks you to confirm the licence | Steps set documents in the brand’s fonts. Wizard pages show a font with a source to everyone. If your website does not answer, a shipped font of the same kind shows |
|
|
44
44
|
|
|
45
|
+
Pictures you add here are checked as a run’s uploads are (see [Run](./run.md#photos-and-files-you-upload)).
|
|
46
|
+
An SVG keeps its drawing and loses scripts, links and anything it would load from another site.
|
|
47
|
+
An SVG with a DOCTYPE is refused: save it again as a plain SVG.
|
|
48
|
+
|
|
45
49
|
## Knowledge
|
|
46
50
|
|
|
47
51
|
Knowledge is the ground truth your wizards’ steps look things up in: pages, tables and files. You
|