wizards 0.2.54 → 0.2.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/README.md +2 -2
  2. package/apps/runtime/dist/cli/autostart.js +1 -1
  3. package/apps/runtime/dist/cli/machine.js +5 -48
  4. package/apps/runtime/dist/cli/report.js +1 -1
  5. package/apps/runtime/dist/docs/dev/index.md +4 -4
  6. package/apps/runtime/dist/docs/dev/plugins/connections.md +4 -3
  7. package/apps/runtime/dist/docs/dev/plugins/events.md +1 -0
  8. package/apps/runtime/dist/docs/dev/plugins/examples.md +10 -9
  9. package/apps/runtime/dist/docs/dev/plugins/index.md +4 -3
  10. package/apps/runtime/dist/docs/dev/plugins/layout.md +2 -1
  11. package/apps/runtime/dist/docs/dev/plugins/meta.json +0 -1
  12. package/apps/runtime/dist/docs/dev/plugins/quick-start.md +4 -3
  13. package/apps/runtime/dist/docs/dev/plugins/reference.md +36 -14
  14. package/apps/runtime/dist/docs/dev/plugins/reloading.md +5 -5
  15. package/apps/runtime/dist/docs/dev/plugins/routes.md +30 -6
  16. package/apps/runtime/dist/docs/dev/plugins/runners.md +15 -10
  17. package/apps/runtime/dist/docs/dev/plugins/server.md +16 -7
  18. package/apps/runtime/dist/docs/dev/plugins/shipping.md +4 -26
  19. package/apps/runtime/dist/docs/dev/plugins/space.md +66 -53
  20. package/apps/runtime/dist/docs/dev/plugins/starters.md +10 -7
  21. package/apps/runtime/dist/docs/dev/plugins/studio.md +33 -12
  22. package/apps/runtime/dist/docs/dev/plugins/styling.md +19 -9
  23. package/apps/runtime/dist/docs/dev/plugins/tables.md +6 -4
  24. package/apps/runtime/dist/docs/dev/plugins/tools.md +22 -12
  25. package/apps/runtime/dist/docs/dev/wizard-format.md +3 -2
  26. package/apps/runtime/dist/docs/user/ai-apps.md +3 -1
  27. package/apps/runtime/dist/docs/user/assistant.md +5 -3
  28. package/apps/runtime/dist/docs/user/build-a-wizard.md +14 -2
  29. package/apps/runtime/dist/docs/user/command-line.md +16 -14
  30. package/apps/runtime/dist/docs/user/connectors.md +17 -12
  31. package/apps/runtime/dist/docs/user/data.md +14 -9
  32. package/apps/runtime/dist/docs/user/first-start.md +13 -6
  33. package/apps/runtime/dist/docs/user/index.md +2 -1
  34. package/apps/runtime/dist/docs/user/install.md +19 -11
  35. package/apps/runtime/dist/docs/user/models.md +44 -22
  36. package/apps/runtime/dist/docs/user/plugins.md +9 -4
  37. package/apps/runtime/dist/docs/user/run.md +14 -9
  38. package/apps/runtime/dist/docs/user/server.md +7 -5
  39. package/apps/runtime/dist/docs/user/space.md +15 -8
  40. package/apps/runtime/dist/docs/user/steps.md +33 -13
  41. package/apps/runtime/dist/docs/user/test-and-share.md +41 -25
  42. package/apps/runtime/dist/docs/user/troubleshooting.md +15 -7
  43. package/apps/runtime/dist/docs/user/wordpress.md +59 -49
  44. package/apps/runtime/dist/engine/runner.js +40 -18
  45. package/apps/runtime/dist/env.js +6 -3
  46. package/apps/runtime/dist/harness/apple.js +36 -21
  47. package/apps/runtime/dist/harness/claude.js +1 -1
  48. package/apps/runtime/dist/harness/model.js +2 -2
  49. package/apps/runtime/dist/limits.js +7 -4
  50. package/apps/runtime/dist/mcp/handler.js +2 -1
  51. package/apps/runtime/dist/mcp/tools.js +24 -11
  52. package/apps/runtime/dist/media/conversation.js +6 -5
  53. package/apps/runtime/dist/model-errors.js +22 -1
  54. package/apps/runtime/dist/models.js +30 -7
  55. package/apps/runtime/dist/plugins/pro-keys.js +1 -1
  56. package/apps/runtime/dist/plugins/pro-state.js +1 -1
  57. package/apps/runtime/dist/plugins/pro.js +1 -1
  58. package/apps/runtime/dist/plugins/runs.js +14 -10
  59. package/apps/runtime/dist/render/browser-path.js +54 -0
  60. package/apps/runtime/dist/routes/runs.js +51 -31
  61. package/apps/runtime/dist/routes/studio.js +7 -3
  62. package/apps/runtime/dist/services/api.js +3 -1
  63. package/apps/runtime/dist/services/package-file.js +8 -8
  64. package/apps/runtime/dist/update.js +1 -1
  65. package/apps/web/dist/assets/AboutDialog-Bv7p9iGr.js +1 -0
  66. package/apps/web/dist/assets/{ChangelogDialog-Da3M36M6.js → ChangelogDialog-D4sBrhi-.js} +1 -1
  67. package/apps/web/dist/assets/{ChatView-BGpIFoML.js → ChatView-Bntm0u8V.js} +1 -1
  68. package/apps/web/dist/assets/{EditorPage-DH6SrKPQ.js → EditorPage-DaVeNzHU.js} +2 -2
  69. package/apps/web/dist/assets/{FlowPreview-Cy_oSpCG.js → FlowPreview-C0tTz51A.js} +1 -1
  70. package/apps/web/dist/assets/{Harness-0TcBTo1Z.js → Harness-De-PsLFA.js} +1 -1
  71. package/apps/web/dist/assets/{Marketplace-D1iet5FD.js → Marketplace-7Bdv7Gd5.js} +2 -2
  72. package/apps/web/dist/assets/{NewWizardPage-CsuU51QL.js → NewWizardPage-CV7jrSkz.js} +1 -1
  73. package/apps/web/dist/assets/{ProjectPage-DCPKr4sC.js → ProjectPage-CBCd24oM.js} +1 -1
  74. package/apps/web/dist/assets/{PublicRunner-B6Er82D3.js → PublicRunner-CVmkHSnC.js} +1 -1
  75. package/apps/web/dist/assets/{ReadOnly-DiOfNtVr.js → ReadOnly-zQecD9OB.js} +1 -1
  76. package/apps/web/dist/assets/{RunDrawer-BbyQVQLN.js → RunDrawer-CvzuYc0d.js} +1 -1
  77. package/apps/web/dist/assets/{RunnerView-DdEKXIDX.js → RunnerView-BtZp1FD6.js} +1 -1
  78. package/apps/web/dist/assets/SettingsPage--Zj2pTgf.js +1 -0
  79. package/apps/web/dist/assets/SetupPage-F_e8f1to.js +1 -0
  80. package/apps/web/dist/assets/{SharePage-Bxnu_cet.js → SharePage-DLivbYu6.js} +1 -1
  81. package/apps/web/dist/assets/{brand-CwLcF9JR.js → brand-DIKyySmf.js} +1 -1
  82. package/apps/web/dist/assets/changelog-CWualFcc.js +1 -0
  83. package/apps/web/dist/assets/{circle-alert-BEDKtkJy.js → circle-alert-B9b9Vb9k.js} +1 -1
  84. package/apps/web/dist/assets/{esm-D2JnXDyS.js → esm-BMtXxAe0.js} +1 -1
  85. package/apps/web/dist/assets/{index-Cl4LqF22.js → index-MlQy_Qoy.js} +4 -4
  86. package/apps/web/dist/assets/{lock-Ce2ofIWG.js → lock-BNvsUKTg.js} +1 -1
  87. package/apps/web/dist/assets/session-CSbo-pmx.js +1 -0
  88. package/apps/web/dist/assets/{settings-menu-BT8cRZym.js → settings-menu-JtMfy9en.js} +1 -1
  89. package/apps/web/dist/assets/{ui-mkL5nF_f.js → ui-FW7ypPI6.js} +1 -1
  90. package/apps/web/dist/assets/{upload-BfrqabpO.js → upload-MQ_24gSb.js} +1 -1
  91. package/apps/web/dist/assets/{volume-2-C3GeMqc-.js → volume-2-B1mj20eS.js} +1 -1
  92. package/apps/web/dist/index.html +6 -6
  93. package/apps/web/dist/install.sh +2 -2
  94. package/apps/web/dist/mcp/flow.html +1 -1
  95. package/modules/calls/dist/client.css +1 -1
  96. package/modules/sms/dist/client.css +1 -1
  97. package/modules/whatsapp/dist/client.css +1 -1
  98. package/node_modules/@engenty-wizards/shared/dist/run.d.ts +152 -2
  99. package/node_modules/@engenty-wizards/shared/dist/run.js +135 -1
  100. package/package.json +2 -2
  101. package/apps/runtime/dist/docs/dev/plugins/pro-modules.md +0 -59
  102. package/apps/web/dist/assets/AboutDialog-BXpMzzUl.js +0 -1
  103. package/apps/web/dist/assets/SettingsPage-D6KuKcBL.js +0 -1
  104. package/apps/web/dist/assets/SetupPage-DuD0AD0f.js +0 -1
  105. package/apps/web/dist/assets/changelog-Cu_CVR3H.js +0 -1
  106. package/apps/web/dist/assets/session-BuVghS-e.js +0 -1
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: Troubleshooting
3
3
  description: What to do when a link is no longer valid, a client shows as not signed in, or an export fails.
4
+ version: 0.2.56
4
5
  ---
5
6
 
6
7
  `wizards doctor` checks the install and says what is wrong. Start there.
@@ -10,9 +11,10 @@ description: What to do when a link is no longer valid, a client shows as not si
10
11
  | What you see | Do |
11
12
  |---|---|
12
13
  | "This link is no longer valid" | The link works once. `wizards open` gives this browser a new one |
14
+ | "The app is not answering" | It stopped or is restarting. `wizards status` says whether it runs; `wizards start` starts it |
13
15
  | `wizards`: command not found | Open a new terminal, or run `~/.local/bin/wizards` |
14
- | The sign-in page instead of the studio | This browser is not signed in to the install. Run `wizards open` |
15
- | You open it under another address | Set `APP_URL` in `~/.engenty/wizards/.env` to the address you open |
16
+ | "This browser is not signed in" | The browser has no sign-in for the install, for example after clearing cookies. Run `wizards open` |
17
+ | "The studio runs at another address" | Open the address the page names, or set `APP_URL` in `~/.engenty/wizards/.env` to the address you open |
16
18
  | Port 24368 is taken | The next free port is used. To fix one, set `API_PORT` in `~/.engenty/wizards/.env` |
17
19
 
18
20
  ## Models
@@ -24,17 +26,22 @@ description: What to do when a link is no longer valid, a client shows as not si
24
26
  | The test does not work | The message names the reason. Check the key, or sign the client in again |
25
27
  | "Models are missing" in the editor | A step needs a model this install has no way to, often video or audio. Add a key under Settings → Models |
26
28
  | A template says "Not set up here" | The same: it needs a model that is not set up |
29
+ | No Apple Intelligence in the setup or under Models | It needs a Mac with Apple silicon on macOS 26 or later, and is offered on your computer only, not on engenty.ai |
30
+ | Apple Intelligence "switched off" or "Apple is still loading the model" | Switch it on under System Settings → Apple Intelligence & Siri, or wait until the Mac has the model. The studio asks again after a minute |
31
+ | A step on Apple Intelligence fails: the text is too long | The model takes 4,096 tokens for prompt and answer. Give the step the class High, or bind its class elsewhere under Settings → Models. See [Apple Intelligence](./models.md#apple-intelligence) |
32
+ | A voice note the Mac writes down fails in Chrome or Firefox | Their recordings need ffmpeg on the Mac: install it, or set `FFMPEG_PATH` |
27
33
 
28
34
  ## Running wizards
29
35
 
30
36
  | What you see | Do |
31
37
  |---|---|
32
- | PDF or PNG export fails | Install Google Chrome, or set `CHROME_PATH` to Chrome or Chromium |
38
+ | PDF or PNG export, or a step on a website, fails | `wizards doctor` names the browser the app uses. Install Chrome, Edge or Chromium (on a Mac also Brave), or set `CHROME_PATH` to one; see [Settings](./command-line.md#settings) |
33
39
  | A widget offers no video | Install ffmpeg, or set `FFMPEG_PATH` |
34
40
  | "This wizard is not available right now" | The link is switched off, or the account the wizard runs on has no credits left. See [Test and share](./test-and-share.md) |
35
- | The wizard says its limit is reached for today | The link's runs for the day are used up. Raise "Runs per day" in the share dialog |
41
+ | The wizard says its limit is reached for today | The link's runs for the day are used up; the day starts at midnight UTC. Raise "Runs per day" in the share dialog |
36
42
  | "This wizard does not exist (anymore)" | It is not published, or its link was replaced by a new one |
37
43
  | Others cannot open the link | An install on your computer answers on `localhost` only. See [who can open the link](./test-and-share.md#who-can-open-the-link) |
44
+ | The chat has no phone button, or "Join" stays grey | A live conversation needs "Live voice" or "Video call" switched on for the wizard (see [Channels](./test-and-share.md#channels); your own test run always has it) and an OpenAI API key under Settings → Models |
38
45
  | The camera, microphone or location does not work | Allow it in the browser's site settings (the lock icon in the address bar) |
39
46
  | A connector says "not set up" | The install needs an OAuth client for it. See [Connectors](./connectors.md) |
40
47
  | A step stops at a plugin's tool | That plugin is not installed here. See [Plugins](./plugins.md) |
@@ -49,9 +56,10 @@ description: What to do when a link is no longer valid, a client shows as not si
49
56
  ## Still stuck
50
57
 
51
58
  `wizards logs` shows the last lines the install printed; keys and tokens are taken out. Open an
52
- issue at [github.com/engenty/engenty-wizards](https://github.com/engenty/engenty-wizards/issues)
59
+ issue at [github.com/engenty/wizards](https://github.com/engenty/wizards/issues)
53
60
  with what `wizards doctor` prints and the lines that matter.
54
61
 
55
- With a [linked account](./models.md), `wizards report` sends the status, the model settings
62
+ With a [linked account](./models.md#account), `wizards report` sends the status, the model settings
56
63
  (never a key) and the last 500 log lines to engenty, and names the report's id: give that id when
57
- you ask for help. Nothing is sent unless you run the command.
64
+ you ask for help. Nothing is sent unless you run the command. Without a linked account it says
65
+ so: link one under Settings → Account.
@@ -1,38 +1,43 @@
1
1
  ---
2
2
  title: WordPress
3
3
  description: Put wizards on a WordPress site with the plugin "engenty wizards" — connect, read the site in, place a wizard, read results in the admin.
4
+ version: 0.2.56
4
5
  ---
5
6
 
6
7
  The plugin **engenty wizards** puts the wizards of an engenty.ai account on a WordPress site and
7
8
  shows what visitors left in the WordPress admin. The wizards run on engenty.ai: WordPress keeps
8
- its settings and the connection, no answers.
9
+ its settings and the connection, no answers. On WordPress 7.0 a wizard can also run on the site
10
+ itself, with the site's own AI provider and no account ([below](#without-an-account)).
9
11
 
10
12
  | | |
11
13
  |---|---|
12
- | WordPress | 6.6 or newer |
14
+ | WordPress | 6.6 or newer; 7.0 or newer for wizards without an account |
13
15
  | PHP | 8.1 or newer, nothing else on the host |
14
- | Account | Free or above on engenty.ai; Kontakte and Termine need Pro |
16
+ | Site address | https, to sign in to engenty.ai from the admin |
17
+ | Account | Free or above on engenty.ai; Contacts and Appointments need Pro |
15
18
 
16
19
  ## Install
17
20
 
18
- Download `engenty-wizards.zip` (Settings → Integrate → WordPress, or the
19
- [releases](https://github.com/engenty/engenty-wizards-wordpress/releases/latest)) and upload it in
21
+ Download `engenty-wizards.zip` (in the studio under Settings → Integrate → WordPress, or from the
22
+ [releases](https://github.com/engenty/engenty-wizards-wp-plugin/releases/latest)) and upload it in
20
23
  WordPress under **Plugins → Add New → Upload Plugin**. After activating it the menu **engenty**
21
24
  opens.
22
25
 
23
26
  ## Connect
24
27
 
25
- On **engenty → Übersicht**:
28
+ On **engenty → Overview**:
26
29
 
27
- - **Eigene KI erstellen** makes a free account on engenty.ai, with the admin's e-mail filled in.
28
- - **Anmelden** uses an account you have.
30
+ - **Create your own AI** offers a free account on engenty.ai: **Create a free account**.
31
+ - **Sign in**, under "Already have an engenty account?", uses an account you have.
29
32
 
30
- engenty.ai asks you to allow the site access and sends you back. The site is connected as you,
31
- in the team you picked; **Einstellungen → Trennen** ends it and revokes the access.
33
+ engenty.ai asks you to allow the site access and sends you back; your WordPress e-mail goes along
34
+ as a suggestion. The site is then connected as you: **Settings → Connection** shows the account,
35
+ team and plan, and **Disconnect** ends the connection and revokes the access.
32
36
 
33
- **By hand:** for your own engenty server, or where signing in through the browser is not possible,
34
- enter an address and an API Key under **Einstellungen → Von Hand verbinden**. On engenty.ai the key
35
- is made under Konto, on your own server in the studio under Einbinden.
37
+ **By hand:** for your own engenty server, or where signing in through the browser does not work,
38
+ enter an **Address** and an **API key** under **Settings → Connect by hand**. On engenty.ai the key
39
+ is made under Account; on your own server under Settings → Integrate, with an app's "Connect
40
+ with the address and an API key" (see [AI apps](./ai-apps.md#an-app-on-another-computer)).
36
41
 
37
42
  ## Set up
38
43
 
@@ -40,64 +45,69 @@ After connecting, the overview walks through three steps.
40
45
 
41
46
  | Step | What happens |
42
47
  |---|---|
43
- | Website einlesen | The plugin reads the site from inside WordPress: name, tagline, logo, the theme's colours, e-mail and phone from the imprint and contact pages, the shop's address with WooCommerce, and the published pages as text. You untick what should not go; the rest fills the space's details where they are empty and goes into its Wissen as pages. The space assistant then reads the imprint for address, VAT id and who runs the business |
44
- | Ersten Wizard anlegen | A template becomes a wizard and goes live in one click |
45
- | Auf die Website bringen | The bubble on every page, a new draft page with the wizard, or by hand (below) |
48
+ | Read the website | The plugin reads the site from inside WordPress: name, tagline, logo, the theme's colours, e-mail and phone from the imprint and contact pages, the shop's address with WooCommerce, and the published pages as text. You untick what should not go; the rest fills the space's details where they are empty and goes into its [Knowledge](./space.md#knowledge) as pages. The space assistant then reads the imprint and contact pages for the address, VAT ID, opening hours and who runs the business |
49
+ | Create the first wizard | A template becomes a wizard and goes live in one click |
50
+ | Put on the website | As a bubble on every page, on a new page (a draft with the wizard's block, for you to publish), or placed yourself (below) |
46
51
 
47
- Reading the site and making wizards here needs a plan that builds on engenty.ai (Pro). On Free
48
- you build in the [app on your computer](./install.md) and publish; the wizards then show in
52
+ Reading the site and making wizards here needs Pro. On Free you build in the
53
+ [app on your computer](./install.md) and publish to your account; the wizards then show in
49
54
  WordPress.
50
55
 
51
56
  ## Put a wizard on a page
52
57
 
53
58
  | Way | |
54
59
  |---|---|
55
- | Block **engenty Wizard** | Pick the wizard and how it shows: in the text, button + window, bubble. The editor shows the wizard itself |
56
- | Shortcode | `[engenty_wizard id="ID" mode="modal" label="Anfrage starten"]` — `id` is the wizard's ID or the token of its link; `mode` is `inline`, `modal` or `bubble` |
60
+ | Block **engenty Wizard** | Pick the wizard and how it shows: **In the text**, **Button + window** or **Bubble bottom right**, with a label, a line beside the bubble and a colour. In the text, the editor shows a wizard from the account itself |
61
+ | Shortcode | `[engenty_wizard id="ID" mode="modal" label="Start a request"]` — `id` is the wizard's ID or the token of its link; `mode` is `inline`, `modal` or `bubble`; `text` and `color` as in the block |
57
62
  | Elementor | The widget **engenty Wizard** with the block's choices |
58
63
  | PHP | `<?php engenty_wizard( 'ID', [ 'mode' => 'inline' ] ); ?>` in a theme template |
59
- | Bubble | **Einstellungen → Blase auf jeder Seite**: one wizard at the bottom right of every page but the ones you leave out, with an optional line beside it and your colour |
64
+ | Bubble | **Settings → Bubble on every page**: one wizard at the bottom right of every page but the ones you leave out, with an optional line beside it and your colour |
60
65
 
61
- Each way writes the same tag as the share dialog's [website snippet](./test-and-share.md#embed-in-a-website),
62
- with the page's address: a result says which page it was started on.
66
+ A wizard's drawer under **Wizards** has the shortcode and the PHP line ready to copy. For a wizard
67
+ from the account, each way writes the share dialog's
68
+ [website tag](./test-and-share.md#embed-in-a-website) with the page's address: a result says
69
+ which page it was started on.
63
70
 
64
- ## Results, contacts, bookings
71
+ ## Results, contacts, appointments
65
72
 
66
73
  | Page | Shows | Plan |
67
74
  |---|---|---|
68
- | Ergebnisse | What visitors left: when, which wizard, the e-mail and first answers, the page; a result opens with all answers, what the wizard made and its downloads | every plan |
69
- | Kontakte | The leads your wizards collected, with search and the wizard they came through | Pro, Team |
70
- | Termine | Coming, past and cancelled bookings of the space's calendar | Pro, Team |
75
+ | Results | What visitors left: when, which wizard, the e-mail and first answers, the page; a result opens with all answers, what the wizard made and its downloads | every plan |
76
+ | Contacts | The leads your wizards collected, with search and the wizard they came through | Pro, Team |
77
+ | Appointments | Upcoming, past and cancelled bookings of the space's calendar | Pro, Team |
71
78
 
72
- Who sees these pages is set under **Einstellungen → Zugriff** (administrators always, editors at
73
- the start). Results of runs without an account are kept 7 days.
79
+ Who sees these pages is set under **Settings → Access to results, contacts and appointments**
80
+ (administrators always, editors from the start). engenty.ai keeps a visitor's result 7 days.
74
81
 
75
82
  ## Without an account
76
83
 
77
- A WordPress 7.0 site with its own AI provider (WordPress → **Einstellungen → Connectors**: OpenAI,
78
- Anthropic, Google, or Ollama through a provider plugin) runs wizards by itself: no account, no
79
- credits, the provider bills the site's key. On **engenty → Übersicht**, "Eigene KI erstellen"
80
- offers the account first and, below it, **Lokal, mit eigenem KI-Anbieter**.
84
+ A WordPress 7.0 site with its own AI provider (WordPress → **Settings → Connectors**: OpenAI,
85
+ Anthropic, Google, or Ollama through its provider plugin) runs wizards by itself: no account, no
86
+ credits, the provider bills the site's key. On **engenty → Overview**, **Create your own AI**
87
+ offers the account first and, below it, **Local, with your own AI provider**. **Set up locally**
88
+ then goes through three steps: the provider (with a test), the wizards, the website.
81
89
 
82
90
  | | |
83
91
  |---|---|
84
- | Wizards | The templates that ship with the plugin, picked from the gallery on the local setup's second step; or a package (`.wizard`) imported under **Wizards → Importieren**, downloaded from a wizard's share dialog in the studio |
85
- | What runs | Pages with every field but voice notes, accounts and appointment times; thinking steps, with a web page or a public API as their tools where the step names `web_fetch` or `http` (WordPress abilities the site runs itself; off under **Einstellungen → Eigenständige Wizards**); decisions, branches and surfaces; reviews; documents and dashboards as HTML; results as HTML, Markdown, text, CSV or JSON, a PDF as the browser's print. Photos go to the provider where it takes images |
86
- | What does not | Web search, the browser and code tools, connected accounts, the Pro plugins, films, images, video and voice made by a model, lists and memory, Word and Excel downloads |
87
- | The check | The share dialog's WordPress section and the plugin's import say per wizard whether it runs there as is, with less or only with an account, in the gallery's words ("nicht eingerichtet", "geht auch ohne"). With less: a choice on a page that leads to something the site lacks is closed there ("Hier gerade nicht verfügbar"), a format falls away |
88
- | Knowledge | The share dialog's **Wissen mitnehmen** puts the project's pages into the package as files (up to 2 MB); on the site the wizard reads them as it reads its own files, a snapshot of the day it was packed |
89
- | From the account | On a connected site with a provider, a published wizard's drawer offers **Hier laufen lassen**: the package comes over with the site's key and runs on the site without credits; **Über engenty.ai laufen lassen** switches back, **Neu laden** fetches the published version again |
90
- | Results | Kept in WordPress under **Ergebnisse** for as long as the settings say; nothing goes to engenty.ai |
91
- | Limits | 6 runs an hour per visitor and 50 a day per wizard (**Einstellungen → Eigenständige Wizards**), a honeypot; 60 seconds per thinking step, more for a local model (the setting reaches the Ollama provider plugin's own limit too) |
92
-
93
- The browser follows the wizard's flow and draws every page; WordPress keeps the wizard's
94
- prompts and the run and asks the provider once per thinking step through the AI Client. Both
95
- kinds can be on one site: a connected site keeps contacts, bookings and files, a site without an
96
- account still runs the simple ones.
92
+ | Wizards | The templates that ship with the plugin, picked from the gallery; or a package (`.wizard`) from a wizard's share dialog in the studio, taken in with **Import** on the **Wizards** page |
93
+ | What runs | Pages and their fields; photos go to the provider where it takes images. Thinking steps, which read a web page or call a public API where the step names `web_fetch` or `http` (the site does that itself). Decisions, branches, reviews and surfaces. Documents and dashboards as HTML. Results as Markdown, text, CSV or JSON, HTML as a page to print, and a PDF of a written text made in the visitor's browser; a document's PDF is the browser's print |
94
+ | What does not | Voice notes, sign-ins to connected accounts, picking an appointment time, list fields, a file a later step reads; web search, the browser, code and image tools, MCP servers and plugin steps (Contacts, Appointments and the like); widgets, films, images, video and voice made by a model; lists and the wizard's memory; Word, Excel and other downloads |
95
+ | The check | The share dialog's WordPress section and, in the plugin, the gallery, the **Wizards** page and the import say per wizard whether it runs there as is, with less, or only with an account, and list what it lacks in the gallery's words ("not set up", "works without"). With less: a choice on a page that leads to something the site lacks is closed there ("Not available here right now"), a format falls away. The import refuses only a wizard that needs an account; one that needs a plugin only behind a choice runs with less, that choice closed |
96
+ | Knowledge | The share dialog's **Take the knowledge along** puts the space's pages into the package as files (up to 2 MB, a page up to 60 000 characters): a snapshot of the day it was packed. On the site a thinking step gets the wizard's own text files first, then the pages that match the step best (its instructions and the answers so far), up to 60 000 characters in all |
97
+ | From the account | On a connected site with a provider, a published wizard's drawer offers **Run here**: its published version comes over and runs on the site with the site's provider, without credits, and its results stay in WordPress. **Run through engenty.ai** switches back, **Reload** fetches the published version again |
98
+ | Results | Kept in WordPress under **Results**, 90 days unless **Keep results** says otherwise; nothing goes to engenty.ai |
99
+ | Limits | 6 runs an hour per visitor and 50 a day per wizard, a honeypot; 60 seconds per thinking step, up to 600 for a slow local model (the setting reaches the Ollama provider plugin's own limit too) |
100
+
101
+ The settings for all of this are under **Settings → Standalone wizards**: the limits, how long
102
+ results are kept, photos to the provider, and the switch that lets wizards read web pages and call
103
+ public APIs. The browser follows the wizard's flow and draws every page; WordPress keeps the
104
+ wizard's prompts and the run and asks the provider for each thinking step through its AI Client.
105
+ Both kinds can be on one site: under **Wizards** the ones that run on the site are marked
106
+ **Local**.
97
107
 
98
108
  ## Privacy
99
109
 
100
110
  Visitors talk to engenty.ai directly from the frame the wizard runs in. Name engenty in your
101
- privacy statement; **Einstellungen → Datenschutz** has a sentence to start from. Standalone
102
- wizards send the visitors' answers to the site's AI provider instead: the settings name it in
103
- the sentence.
111
+ privacy statement; **Settings → Privacy** has a sentence to start from. Wizards that run on the
112
+ site send the visitors' answers to the site's AI provider instead: the settings give a sentence
113
+ that names it.
@@ -1,5 +1,7 @@
1
1
  import { marginOf, } from "@engenty-wizards/shared/decision";
2
2
  import { branchValues, cardsFromData, conditionsOf, dataRef, followRules, formatsFor, isDecidedField, LIST_FORMATS, listRef, loopKey, MAX_SHOWN_FIELDS, optionsFromData, otherwiseOf, pageNeeds, whenHolds, wizardLang, } from "@engenty-wizards/shared/definition";
3
+ import { noteText, } from "@engenty-wizards/shared/run";
4
+ import { CONVERSATION_RUNNERS, DEFAULT_RUNNER_SETTINGS } from "@engenty-wizards/shared/runners";
3
5
  import { eq } from "drizzle-orm";
4
6
  import { nanoid } from "nanoid";
5
7
  import { connectionViews } from "../connectors/index.js";
@@ -10,6 +12,7 @@ import { env } from "../env.js";
10
12
  import { saveAsset } from "../files/storage.js";
11
13
  import { managed, tenantInfo } from "../manage.js";
12
14
  import { hasFfmpeg } from "../media/ffmpeg.js";
15
+ import { NotedError, noteOf } from "../model-errors.js";
13
16
  import { conversationAvailable, freeTierRefusal, freeTierText, ModelUnavailableError, noteFreeTierRefusal, } from "../models.js";
14
17
  import { runEnded } from "../plugins/events.js";
15
18
  import { projectFiles } from "../services/project-files.js";
@@ -27,13 +30,13 @@ import { releaseResources, resourcesFor } from "./resources.js";
27
30
  import { runAutomaticStep } from "./steps.js";
28
31
  import { answersAsText, resolveRef } from "./template.js";
29
32
  import { StepError } from "./types.js";
30
- /** A command the run cannot take in its current state. */
31
- export class RunConflict extends Error {
33
+ /** A command the run cannot take in its current state; a note where the person may read it. */
34
+ export class RunConflict extends NotedError {
32
35
  }
33
- export class RunInputError extends Error {
36
+ export class RunInputError extends NotedError {
34
37
  errors;
35
38
  constructor(errors) {
36
- super("Bitte die markierten Felder prüfen.");
39
+ super({ code: "checkFields" });
37
40
  this.errors = errors;
38
41
  }
39
42
  }
@@ -157,6 +160,16 @@ function friendly(err) {
157
160
  }
158
161
  return `Dieser Schritt ist fehlgeschlagen: ${msg.slice(0, 300)}`;
159
162
  }
163
+ /**
164
+ * A step that failed ends the run. A failure with a note (Apple Intelligence's) goes into the log
165
+ * as that note, so a runner shows it in its language; the run's error is in the wizard's.
166
+ */
167
+ async function failRun(run, stepId, err) {
168
+ const note = noteOf(err);
169
+ const message = note ? noteText(note, wizardLang(run.definition)) : friendly(err);
170
+ await emitEvent(run.id, stepId, "error", note ?? message);
171
+ await updateRun(run.id, { status: "failed", error: message });
172
+ }
160
173
  // --- creating & driving ------------------------------------------------------
161
174
  export async function createRun(input) {
162
175
  const id = nanoid(18);
@@ -487,9 +500,7 @@ async function drive(runId, signal) {
487
500
  return;
488
501
  }
489
502
  console.error(`[run ${runId} deciding ${deciding.id}]`, err);
490
- const message = friendly(err);
491
- await emitEvent(runId, deciding.id, "error", message);
492
- await updateRun(runId, { status: "failed", error: message });
503
+ await failRun(run, deciding.id, err);
493
504
  return;
494
505
  }
495
506
  continue;
@@ -516,9 +527,7 @@ async function drive(runId, signal) {
516
527
  return;
517
528
  }
518
529
  console.error(`[run ${runId} fields of ${step.id}]`, err);
519
- const message = friendly(err);
520
- await emitEvent(runId, step.id, "error", message);
521
- await updateRun(runId, { status: "failed", error: message });
530
+ await failRun(run, step.id, err);
522
531
  return;
523
532
  }
524
533
  continue;
@@ -561,9 +570,7 @@ async function drive(runId, signal) {
561
570
  }
562
571
  console.error(`[run ${runId} step ${step.id}]`, err);
563
572
  await noteFreeTierRefusal(err);
564
- const message = friendly(err);
565
- await emitEvent(runId, step.id, "error", message);
566
- await updateRun(runId, { status: "failed", error: message });
573
+ await failRun(run, step.id, err);
567
574
  return;
568
575
  }
569
576
  }
@@ -589,10 +596,10 @@ async function requireWaiting(runId, stepId) {
589
596
  throw new RunConflict("Run not found");
590
597
  }
591
598
  if (run.status !== "waiting_input" && run.status !== "done") {
592
- throw new RunConflict("Der Wizard arbeitet gerade.");
599
+ throw new RunConflict({ code: "runBusy" });
593
600
  }
594
601
  if (run.cursor !== stepId) {
595
- throw new RunConflict("Diese Seite ist nicht mehr aktuell.");
602
+ throw new RunConflict({ code: "pageOutdated" });
596
603
  }
597
604
  return run;
598
605
  }
@@ -695,12 +702,12 @@ export async function goBack(runId) {
695
702
  const run = await loadRun(runId);
696
703
  if (!run ||
697
704
  (run.status !== "waiting_input" && run.status !== "done" && run.status !== "failed")) {
698
- throw new RunConflict("Der Wizard arbeitet gerade.");
705
+ throw new RunConflict({ code: "runBusy" });
699
706
  }
700
707
  const state = structuredClone(run.state);
701
708
  const previous = state.history.pop();
702
709
  if (!previous) {
703
- throw new RunConflict("Kein vorheriger Schritt.");
710
+ throw new RunConflict({ code: "noStepBefore" });
704
711
  }
705
712
  // A decision that failed belongs to the step left behind.
706
713
  delete state.deciding;
@@ -769,6 +776,21 @@ function prefillOf(step, run, closed) {
769
776
  }
770
777
  return out;
771
778
  }
779
+ /**
780
+ * Whether a run may hold a live conversation: a speech model is set up, and the wizard has live
781
+ * voice or video switched on. Its owner's test run always may.
782
+ */
783
+ export async function talkAllowed(run) {
784
+ if (!(await conversationAvailable())) {
785
+ return false;
786
+ }
787
+ if (run.mode === "test") {
788
+ return true;
789
+ }
790
+ const w = await db.query.wizard.findFirst({ where: eq(schema.wizard.id, run.wizardId) });
791
+ const { enabled } = w?.runners ?? DEFAULT_RUNNER_SETTINGS;
792
+ return enabled.some((id) => CONVERSATION_RUNNERS.includes(id));
793
+ }
772
794
  export async function runView(run, brand) {
773
795
  const def = run.definition;
774
796
  const step = stepOf(def, run.cursor) ?? null;
@@ -822,7 +844,7 @@ export async function runView(run, brand) {
822
844
  intro: def.intro,
823
845
  },
824
846
  lang: wizardLang(def),
825
- talk: await conversationAvailable(),
847
+ talk: await talkAllowed(run),
826
848
  step,
827
849
  answered: run.state.history.map((id) => stepOf(def, id)).filter((s) => Boolean(s)),
828
850
  values: run.state.values,
@@ -2,6 +2,7 @@ import { execFileSync } from "node:child_process";
2
2
  import { randomBytes } from "node:crypto";
3
3
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
4
4
  import { join, resolve } from "node:path";
5
+ import { findChrome } from "./render/browser-path.js";
5
6
  /** Load `.env.local` then `.env` without overriding the real environment. */
6
7
  function loadEnvFiles() {
7
8
  for (const name of [".env.local", ".env"]) {
@@ -185,9 +186,11 @@ export const env = {
185
186
  geocoderUrl: str("GEOCODER_URL"),
186
187
  /** CDP endpoint of a Chromium (the engenty-browser image); else a local Chrome is launched. */
187
188
  browserCdpUrl: str("BROWSER_CDP_URL"),
188
- chromePath: str("CHROME_PATH", process.platform === "darwin"
189
- ? "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
190
- : "/usr/bin/chromium"),
189
+ /** The browser the setup and `wizards doctor` found (render/browser-path.ts). */
190
+ chromePath: str("CHROME_PATH", findChrome({ PATH: process.env.PATH }) ??
191
+ (process.platform === "darwin"
192
+ ? "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
193
+ : "/usr/bin/chromium")),
191
194
  /** Encodes widget animations to MP4; without it widgets offer no video. */
192
195
  ffmpegPath: str("FFMPEG_PATH", "ffmpeg"),
193
196
  /** What runs an agent's shell and code: a Docker container, an agentOS VM, or nothing. */
@@ -2,10 +2,11 @@ import { existsSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
2
2
  import { release } from "node:os";
3
3
  import { dirname, join, resolve } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
+ import { noteText } from "@engenty-wizards/shared/run";
5
6
  import { nanoid } from "nanoid";
6
7
  import { env } from "../env.js";
7
8
  import { ffmpeg, hasFfmpeg } from "../media/ffmpeg.js";
8
- import { ModelUnavailableError } from "../model-errors.js";
9
+ import { ModelUnavailableError, NotedError } from "../model-errors.js";
9
10
  import { HarnessModel, lastJson, runClient, } from "./model.js";
10
11
  /**
11
12
  * Apple Intelligence on this Mac as a model: the on-device foundation model of macOS 26, run
@@ -87,45 +88,56 @@ async function detectApple() {
87
88
  return { supported: true, available: false, reason: "missing" };
88
89
  }
89
90
  }
90
- /** What to tell the person when Apple Intelligence cannot answer. */
91
- export function appleUnavailable(status) {
91
+ /** What to tell the person when Apple Intelligence cannot answer, as a note of `RUN_NOTES`. */
92
+ export function appleUnavailableNote(status) {
92
93
  switch (status.reason) {
93
94
  case "off":
94
- return "Apple Intelligence ist auf diesem Mac ausgeschaltet. Einschalten unter Systemeinstellungen → Apple Intelligence & Siri.";
95
+ return { code: "appleOff" };
95
96
  case "loading":
96
- return "Apple lädt das Modell für Apple Intelligence noch auf diesen Mac. Gleich noch einmal versuchen.";
97
+ return { code: "appleLoading" };
97
98
  case "missing":
98
- return "Der Helfer für Apple Intelligence (wizards-apple) fehlt in dieser Installation.";
99
+ return { code: "appleMissing" };
99
100
  case "os":
100
- return "Apple Intelligence braucht macOS 26 oder neuer.";
101
+ return { code: "appleOs" };
101
102
  default:
102
- return "Apple Intelligence gibt es nur auf einem Mac mit Apple Silicon.";
103
+ return { code: "appleDevice" };
103
104
  }
104
105
  }
105
- /** The failure the helper reports, as the person should read it. */
106
+ /** What to tell the person when Apple Intelligence cannot answer, in German (the settings). */
107
+ export function appleUnavailable(status) {
108
+ return noteText(appleUnavailableNote(status), "de");
109
+ }
110
+ /**
111
+ * The failure the helper reports, as the person should read it: a note, so a run shows it in the
112
+ * wizard's language.
113
+ */
106
114
  export function appleFailure(error) {
107
115
  switch (error.kind) {
108
116
  case "unavailable":
109
- return new ModelUnavailableError(appleUnavailable({
117
+ return new ModelUnavailableError(appleUnavailableNote({
110
118
  supported: true,
111
119
  available: false,
112
120
  reason: appleReasonOf(error.message),
113
121
  }));
114
122
  case "rateLimited":
115
- return new ModelUnavailableError("Apple Intelligence nimmt gerade keine weiteren Anfragen an. Gleich noch einmal versuchen.");
123
+ return new ModelUnavailableError({ code: "appleBusy" });
116
124
  case "contextWindow":
117
- return new Error("Apple Intelligence: Der Text ist zu lang für das Modell auf diesem Mac (4.096 Tokens für Frage und Antwort). Diese Klasse in den Einstellungen unter „Modelle & Konto“ auf ein anderes Modell legen.");
125
+ return new NotedError({ code: "appleTooLong" });
118
126
  case "guardrail":
119
127
  case "refusal":
120
- return new Error("Apple Intelligence hat die Anfrage abgelehnt: Apples Inhaltsregeln lassen sie nicht zu.");
128
+ return new NotedError({ code: "appleRefused" });
121
129
  case "language":
122
- return new Error("Apple Intelligence versteht die Sprache dieser Anfrage nicht.");
130
+ return new NotedError({ code: "appleLanguage" });
123
131
  case "schema":
124
- return new Error(`Apple Intelligence kann dieses Antwortformat nicht liefern: ${error.message}`);
132
+ return new NotedError({ code: "appleFormat", params: { detail: error.message } });
125
133
  default:
126
- return new Error(`Apple Intelligence: ${error.message}`.slice(0, 500));
134
+ return appleFailed(error.message);
127
135
  }
128
136
  }
137
+ /** Anything else the helper says, in its own words. */
138
+ function appleFailed(detail) {
139
+ return new NotedError({ code: "appleFailed", params: { detail: detail.slice(0, 480) } });
140
+ }
129
141
  class AppleModel extends HarnessModel {
130
142
  provider = "apple";
131
143
  /** The model keeps to the schema itself (guided generation). */
@@ -146,7 +158,7 @@ class AppleModel extends HarnessModel {
146
158
  });
147
159
  const answer = lastJson(stdout);
148
160
  if (!answer) {
149
- throw new Error(`Apple Intelligence: ${stderr.trim() || `exit ${code}`}`.slice(0, 500));
161
+ throw appleFailed(stderr.trim() || `exit ${code}`);
150
162
  }
151
163
  if (answer.error) {
152
164
  throw appleFailure(answer.error);
@@ -204,7 +216,7 @@ class AppleTranscriptionModel {
204
216
  let path = given;
205
217
  if (!native) {
206
218
  if (!(await hasFfmpeg())) {
207
- throw new Error(`Apple Intelligence liest ${options.mediaType} nicht; ohne ffmpeg bleibt die Aufnahme so. ffmpeg installieren oder im Browser als MP4 aufnehmen.`);
219
+ throw new NotedError({ code: "appleNoFfmpeg", params: { type: options.mediaType } });
208
220
  }
209
221
  path = join(dir, "note.wav");
210
222
  const { code, stderr } = await ffmpeg([
@@ -218,7 +230,10 @@ class AppleTranscriptionModel {
218
230
  path,
219
231
  ]);
220
232
  if (code !== 0) {
221
- throw new Error(`Apple Intelligence: die Aufnahme ließ sich nicht wandeln: ${stderr.slice(-300)}`);
233
+ throw new NotedError({
234
+ code: "appleNotConverted",
235
+ params: { detail: stderr.slice(-300) },
236
+ });
222
237
  }
223
238
  }
224
239
  const { stdout, stderr, code } = await runClient(APPLE_BIN, ["transcribe", path, locale], {
@@ -228,7 +243,7 @@ class AppleTranscriptionModel {
228
243
  });
229
244
  const answer = lastJson(stdout);
230
245
  if (!answer) {
231
- throw new Error(`Apple Intelligence: ${stderr.trim() || `exit ${code}`}`.slice(0, 500));
246
+ throw appleFailed(stderr.trim() || `exit ${code}`);
232
247
  }
233
248
  if (answer.error) {
234
249
  throw appleFailure(answer.error);
@@ -244,7 +259,7 @@ class AppleTranscriptionModel {
244
259
  }
245
260
  catch (err) {
246
261
  if (err.code === "ENOENT") {
247
- throw new ModelUnavailableError(appleUnavailable({ supported: false, available: false, reason: "missing" }));
262
+ throw new ModelUnavailableError(appleUnavailableNote({ supported: false, available: false, reason: "missing" }));
248
263
  }
249
264
  throw err;
250
265
  }
@@ -142,5 +142,5 @@ export const claude = {
142
142
  },
143
143
  login: { args: ["auth", "login"], interactive: false },
144
144
  model: (alias, effort) => new ClaudeCodeModel(claude, alias || "sonnet", effort),
145
- exhausted: "Das Anthropic-Konto, mit dem Claude Code angemeldet ist, hat kein Guthaben. Melde Claude Code mit deinem Abo an: in den Einstellungen unter „Modelle & Konto“.",
145
+ exhausted: "Das Anthropic-Konto, mit dem Claude Code angemeldet ist, hat kein Guthaben. Melde Claude Code mit deinem Abo an: in den Einstellungen unter „Modelle“.",
146
146
  };
@@ -7,8 +7,8 @@ import { openBridge } from "../mcp/bridge.js";
7
7
  import { ModelUnavailableError } from "../model-errors.js";
8
8
  import { extensionOf, jsonInstruction, parseJsonAnswer, renderPrompt } from "./prompt.js";
9
9
  const workDir = join(env.dataDir, "harness");
10
- export const signedOut = (h) => `${h.name} ist auf diesem Gerät nicht angemeldet. Melde dich in den Einstellungen unter „Modelle & Konto“ an.`;
11
- export const notInstalled = (h) => `${h.name} ist auf diesem Gerät nicht installiert. Installiere es in den Einstellungen unter „Modelle & Konto“.`;
10
+ export const signedOut = (h) => `${h.name} ist auf diesem Gerät nicht angemeldet. Melde dich in den Einstellungen unter „Modelle“ an.`;
11
+ export const notInstalled = (h) => `${h.name} ist auf diesem Gerät nicht installiert. Installiere es in den Einstellungen unter „Modelle“.`;
12
12
  export const exhausted = (h) => h.exhausted ??
13
13
  `Das Konto, mit dem ${h.name} angemeldet ist, hat kein Guthaben oder Kontingent mehr.`;
14
14
  /** The failure a client reports, as the person should read it. */
@@ -14,20 +14,23 @@ function startOfDay() {
14
14
  d.setUTCHours(0, 0, 0, 0);
15
15
  return d;
16
16
  }
17
- /** Why a shared wizard cannot start a run right now, or null when it can. */
17
+ /**
18
+ * Why a shared wizard cannot start a run right now, or null when it can: a note, to answer in the
19
+ * wizard's language (`noteText(reason, wizardLang(def))`).
20
+ */
18
21
  export async function wizardUnavailable(w) {
19
22
  if (!w.shareEnabled || w.publishedVersion === null) {
20
- return "Dieser Wizard ist gerade nicht verfügbar.";
23
+ return { code: "wizardUnavailable" };
21
24
  }
22
25
  const [{ n }] = await db
23
26
  .select({ n: count() })
24
27
  .from(schema.run)
25
28
  .where(and(eq(schema.run.wizardId, w.id), eq(schema.run.mode, "live"), gte(schema.run.createdAt, startOfDay())));
26
29
  if (n >= w.dailyRunLimit) {
27
- return "Für heute ist das Limit dieses Wizards erreicht. Bitte morgen wieder versuchen.";
30
+ return { code: "wizardLimit" };
28
31
  }
29
32
  if (!(await canSpend())) {
30
- return "Dieser Wizard ist gerade nicht verfügbar.";
33
+ return { code: "wizardUnavailable" };
31
34
  }
32
35
  return null;
33
36
  }
@@ -10,7 +10,8 @@ import { registerPrompts, registerTools } from "./tools.js";
10
10
  const INSTRUCTIONS = `engenty wizards: page-by-page AI wizards — the person answers pages, AI steps write, research and make images or videos, the person reviews, the result is files.
11
11
  Use one: list_wizards, then run_wizard straight away — its widget shows the wizard itself (show_wizard only when the person wants to see a wizard before running it), then follow waitingFor (answer_page, review_step, answer_ask, get_run with waitSeconds). Runs spend credits.
12
12
  Build one: get_authoring_guide (schema + design rules), a close starter with get_starter, create_wizard, edit_wizard until "issues" is empty, check with start_test_run + get_test_run. Publish only when the admin asks.
13
- When a run needs the browser, hand over its browserUrl, the wizard's own run page. The studioUrl is for building only: never send someone who uses a wizard to the studio.`;
13
+ When a run needs the browser, hand over its browserUrl, the wizard's own run page. The studioUrl is for building only: never send someone who uses a wizard to the studio.
14
+ Projects are called spaces in the studio. Ids are for the tools only: name wizards and spaces by their titles and names, and where two spaces share a name, by where each comes from.`;
14
15
  /** A wizard definition is a few KB; this leaves room and refuses anything far beyond it. */
15
16
  const MAX_BODY_BYTES = 300_000;
16
17
  /**