wizards 0.3.4 → 0.3.5
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/apps/runtime/dist/docs/dev/plugins/reference.md +10 -2
- package/apps/runtime/dist/docs/dev/plugins/runners.md +11 -8
- package/apps/runtime/dist/docs/dev/plugins/studio.md +2 -2
- package/apps/runtime/dist/docs/user/build-a-wizard.md +4 -4
- package/apps/runtime/dist/docs/user/plugins.md +2 -2
- package/apps/runtime/dist/docs/user/test-and-share.md +38 -42
- package/apps/runtime/dist/docs/user/troubleshooting.md +2 -2
- package/apps/runtime/dist/docs/user/wordpress.md +4 -4
- package/apps/runtime/dist/plugins/loader.js +6 -1
- package/apps/runtime/dist/services/runners.js +27 -3
- package/apps/web/dist/assets/AboutDialog-D1N4-3FE.js +1 -0
- package/apps/web/dist/assets/{ChangelogDialog-CnCeRFkR.js → ChangelogDialog-VEBTlC3f.js} +1 -1
- package/apps/web/dist/assets/{ChatView-_k7wJYub.js → ChatView-DSRUEpb6.js} +4 -4
- package/apps/web/dist/assets/EditorPage-UkaHDklX.js +3 -0
- package/apps/web/dist/assets/{FlowPreview-BlaTL3Q5.js → FlowPreview-86xWWfdk.js} +1 -1
- package/apps/web/dist/assets/{Harness-DfwXxN7O.js → Harness-CF6H2TYJ.js} +1 -1
- package/apps/web/dist/assets/{Marketplace-Cm0GtMfe.js → Marketplace-C-Vz3yEk.js} +2 -2
- package/apps/web/dist/assets/NewWizardChannels-Cc7gDitg.js +1 -0
- package/apps/web/dist/assets/NewWizardPage-sY5q-l99.js +7 -0
- package/apps/web/dist/assets/ProjectPage-iSdpJAZS.js +2 -0
- package/apps/web/dist/assets/PublicRunner-BgRXMUxS.js +1 -0
- package/apps/web/dist/assets/{ReadOnly-D5yjDrcZ.js → ReadOnly-mhKW496R.js} +1 -1
- package/apps/web/dist/assets/RunDrawer-B0gJzdxH.js +4 -0
- package/apps/web/dist/assets/{RunnerView-5vuR0e1A.js → RunnerView-CTRFgyu5.js} +1 -1
- package/apps/web/dist/assets/SettingsPage-CBF8i6j6.js +1 -0
- package/apps/web/dist/assets/SetupPage-Fpz9aSLN.js +1 -0
- package/apps/web/dist/assets/{SharePage-CC7bLW3F.js → SharePage-Dv3Csh4A.js} +1 -1
- package/apps/web/dist/assets/{brand-DWV3he4_.js → brand-BamUjXVr.js} +1 -1
- package/apps/web/dist/assets/changelog-ViHoNW7e.js +1 -0
- package/apps/web/dist/assets/{circle-alert-DbM8qXuP.js → circle-alert-CYs622_r.js} +1 -1
- package/apps/web/dist/assets/{esm-CUTQmLIn.js → esm-B52LIMhP.js} +1 -1
- package/apps/web/dist/assets/index-Bdx1Qity.js +11 -0
- package/apps/web/dist/assets/index-CDdJDojq.css +1 -0
- package/apps/web/dist/assets/{lock-DtzL98Xo.js → lock-BvSWZOin.js} +1 -1
- package/apps/web/dist/assets/{phone-CwgJEPhS.js → phone-CI2Flerg.js} +1 -1
- package/apps/web/dist/assets/{session-Cv1rnTuW.js → session-BEHF6g4Y.js} +1 -1
- package/apps/web/dist/assets/{settings-menu-ByDquXGe.js → settings-menu-BOOPxcJH.js} +1 -1
- package/apps/web/dist/assets/{ui-DvVx6UaI.js → ui-CMdSOoUZ.js} +2 -2
- package/apps/web/dist/assets/{upload-C5dPn7iT.js → upload-Cz9HgBT9.js} +1 -1
- package/apps/web/dist/assets/{volume-2-BYk2L8r1.js → volume-2-CyQuz1nn.js} +1 -1
- package/apps/web/dist/index.html +7 -7
- package/apps/web/dist/mcp/flow.html +2 -2
- package/modules/sms/dist/client.css +1 -1
- package/modules/sms/dist/client.js +1 -1
- package/modules/sms/package.json +0 -1
- package/modules/sms/src/plugin.ts +5 -0
- package/modules/sms/ui/Share.tsx +26 -44
- package/modules/sms/ui/messages.ts +0 -2
- package/modules/whatsapp/dist/client.css +1 -1
- package/modules/whatsapp/dist/client.js +1 -1
- package/modules/whatsapp/package.json +0 -1
- package/modules/whatsapp/src/plugin.ts +5 -0
- package/modules/whatsapp/ui/Share.tsx +26 -44
- package/modules/whatsapp/ui/messages.ts +0 -2
- package/node_modules/@engenty-wizards/plugin-sdk/dist/index.d.ts +22 -0
- package/node_modules/@engenty-wizards/plugin-sdk/dist/studio.d.ts +3 -2
- package/package.json +1 -1
- package/apps/web/dist/assets/AboutDialog-Dns0PM5q.js +0 -1
- package/apps/web/dist/assets/EditorPage-B6dB3kY9.js +0 -3
- package/apps/web/dist/assets/NewWizardPage-0_ri8UDV.js +0 -7
- package/apps/web/dist/assets/ProjectPage-DYTyw26k.js +0 -2
- package/apps/web/dist/assets/PublicRunner-BNqXEj7z.js +0 -1
- package/apps/web/dist/assets/RunDrawer-CjqXvRGl.js +0 -4
- package/apps/web/dist/assets/SettingsPage-CLqZCmvY.js +0 -1
- package/apps/web/dist/assets/SetupPage-C7ke4Bwb.js +0 -1
- package/apps/web/dist/assets/changelog-BXmIXuLq.js +0 -1
- package/apps/web/dist/assets/index-CfPcXmew.css +0 -1
- package/apps/web/dist/assets/index-el4ca54i.js +0 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Reference
|
|
3
3
|
description: Every call, type, address and setting of the plugin framework on one page.
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
## Server half
|
|
@@ -93,6 +93,14 @@ interface PluginRunner {
|
|
|
93
93
|
};
|
|
94
94
|
page?(request: PluginRunnerRequest): Response | Promise<Response>;
|
|
95
95
|
problem?(): string | null | Promise<string | null>; // why not usable in this tenant right now
|
|
96
|
+
address?(wizard: { id: string; title: string; token: string }):
|
|
97
|
+
| PluginRunnerAddress | null | Promise<PluginRunnerAddress | null>; // where a person reaches the wizard
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
interface PluginRunnerAddress {
|
|
101
|
+
number?: string | null; // the number people write to or call, with the country code
|
|
102
|
+
keyword?: string | null; // the word that picks this wizard on that number
|
|
103
|
+
link?: string | null; // opens the channel with the keyword written: copied, and as a QR code
|
|
96
104
|
}
|
|
97
105
|
|
|
98
106
|
interface PluginRunnerRequest {
|
|
@@ -229,7 +237,7 @@ The default export is a `StudioPlugin`: `(studio: StudioPluginContext) => void`.
|
|
|
229
237
|
| `studio.registerPage({ path, component, wide? })` | A page at `/studio<path>` |
|
|
230
238
|
| `studio.registerNav({ to, label, icon })` | An icon in the app bar. `label: () => string` |
|
|
231
239
|
| `studio.registerSettingsSection({ id, label, icon, component, menu? })` | A section at `/studio/settings/<id>` |
|
|
232
|
-
| `studio.registerShareSection({ runner, component })` | [Runners](./runners.md#the-runners-part-of-the-share-dialog). The runner's own
|
|
240
|
+
| `studio.registerShareSection({ runner, component })` | [Runners](./runners.md#the-runners-part-of-the-share-dialog). The runner's own settings for a wizard (a keyword), under the share dialog's gear once it is switched on and set up. `component` gets `{ wizard: { id, title } }` |
|
|
233
241
|
| `studio.registerAssistantCard({ tool, component })` | Draws a tool's result in the space assistant's chat. `component` gets `{ data, send }` |
|
|
234
242
|
| `studio.registerSpaceSection({ id, group?, label, hint?, component })` | A section of a part of the space page at `/studio/space/<group>#<id>`; `group`: `info`, `knowledge` (default), `data` or `results` |
|
|
235
243
|
| `studio.useCrumbs(items)` | A hook: the trail in the top bar for the page shown, `{ label, to? }[]`, instead of a heading of the page's own |
|
|
@@ -1,14 +1,15 @@
|
|
|
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.3.
|
|
4
|
+
version: 0.3.4
|
|
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
|
|
8
8
|
chat at `/w/<token>/chat`, live voice at `/w/<token>/talk` and the video call at
|
|
9
9
|
`/w/<token>/video`; the last two only where a speech model is set up. A plugin adds more. The
|
|
10
|
-
owner
|
|
11
|
-
answer under their own address or from
|
|
10
|
+
owner picks them per wizard when it is made, and later under "Change" in the share dialog; the
|
|
11
|
+
link opens the first page runner that is on, the others answer under their own address or from
|
|
12
|
+
their own channel.
|
|
12
13
|
|
|
13
14
|
## Register a runner
|
|
14
15
|
|
|
@@ -36,7 +37,8 @@ server.registerRunner({
|
|
|
36
37
|
| `kind` | `page`: the person opens an address. `channel`: the runner has an address of its own (a number, a bot) and drives runs from its webhooks |
|
|
37
38
|
| `capabilities` | What the runner takes in and shows; see below |
|
|
38
39
|
| `page` | A page runner's handler: what `/w/<token>/<id>` answers with. Nobody is signed in. A page runner without one throws when it is registered |
|
|
39
|
-
| `problem` | `() => string \| null`, may be async: why the runner cannot be used in the current tenant right now ("Not connected: Settings → WhatsApp"), asked inside the tenant whenever the studio lists the runners.
|
|
40
|
+
| `problem` | `() => string \| null`, may be async: why the runner cannot be used in the current tenant right now ("Not connected: Settings → WhatsApp"), asked inside the tenant whenever the studio lists the runners. The share dialog shows a runner with a problem as not set up yet, with a way to its settings |
|
|
41
|
+
| `address` | A channel runner: `(wizard: { id, title, token }) => { number?, keyword?, link? } \| null`, may be async. Where a person reaches that wizard: the number, the keyword that picks it there, and a link that opens the channel with the keyword written (`sms:…`, `https://wa.me/…`). The share dialog shows the keyword and number under the runner's name, copies the link (else the number) and offers the link as a QR code. Asked for each wizard that has the runner on; null while it is not set up |
|
|
40
42
|
|
|
41
43
|
A page runner is served at `/w/<token>/<id>` for every wizard that switched it on. From
|
|
42
44
|
source, where Vite serves the pages, the same handler answers at
|
|
@@ -112,9 +114,9 @@ A refused command throws an error with a `status` and a `code` (`not_found`, `in
|
|
|
112
114
|
|
|
113
115
|
## The runner's part of the share dialog
|
|
114
116
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
117
|
+
The row of a channel runner, with its number, keyword, link and QR code, comes from its
|
|
118
|
+
`address`. What the owner changes per wizard, such as the keyword, the studio half registers as
|
|
119
|
+
a section, and the share dialog draws it under its gear while the runner is on and set up:
|
|
118
120
|
|
|
119
121
|
```tsx
|
|
120
122
|
studio.registerShareSection({ runner: "whatsapp", component: ShareSection });
|
|
@@ -124,7 +126,8 @@ function ShareSection({ wizard }: StudioShareSectionProps) {
|
|
|
124
126
|
}
|
|
125
127
|
```
|
|
126
128
|
|
|
127
|
-
One section per runner.
|
|
129
|
+
One section per runner. After a change, invalidating the query `["wizard-runners", wizard.id]`
|
|
130
|
+
redraws the row. The settings a channel needs once per tenant (the number, the token)
|
|
128
131
|
go into a [settings section](./studio.md).
|
|
129
132
|
|
|
130
133
|
## A thread door from the SDK
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: The studio half
|
|
3
3
|
description: Pages, icons in the app bar, sections of the settings and of the space page — written in React, built once, drawn inside the studio.
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
The studio half is `ui/plugin.tsx`. Its default export is a function; the studio calls it after
|
|
@@ -88,7 +88,7 @@ export default defineStudioPlugin((studio) => {
|
|
|
88
88
|
| `studio.registerNav({ to, label, icon })` | An icon in the app bar that opens a page |
|
|
89
89
|
| `studio.registerSettingsSection({ id, label, icon, component, menu? })` | A section of the settings at `/studio/settings/<id>`. `menu`: the user menu links to it directly |
|
|
90
90
|
| `studio.registerSpaceSection({ id, group?, label, hint?, component })` | A section of a part of the space page at `/studio/space/<group>#<id>`, below the part's own. See [The space](#the-space) |
|
|
91
|
-
| `studio.registerShareSection({ runner, component })` | A runner's own
|
|
91
|
+
| `studio.registerShareSection({ runner, component })` | A runner's own settings for a wizard (a keyword), under the share dialog's gear once the runner is on and set up. See [Runners](./runners.md#the-runners-part-of-the-share-dialog) |
|
|
92
92
|
| `studio.registerAssistantCard({ tool, component })` | A card in the assistant's chat for what a tool of the server half returned. See [The space](./space.md#a-card-in-the-chat) |
|
|
93
93
|
|
|
94
94
|
- The studio's own addresses are taken: `/new`, `/edit`, `/settings`, `/space`, `/setup`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Build a wizard
|
|
3
3
|
description: Describe what the wizard should do, or start from a template. Then change it in the conversation or step by step.
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
## Start one
|
|
@@ -85,7 +85,7 @@ path needs it cannot start; if only one branch needs it, choose another path whe
|
|
|
85
85
|
The download icon in the editor's top bar exports the wizard as a package (`.wizard`): its steps
|
|
86
86
|
and its files. "Import a wizard package" on the "New wizard" page of any studio takes it in.
|
|
87
87
|
|
|
88
|
-
The share dialog
|
|
89
|
-
while there is none), for a WordPress site that runs it
|
|
90
|
-
knowledge along" the space's pages go with it as files. See
|
|
88
|
+
The share dialog downloads a package too, under Website → "Without an account: as a package":
|
|
89
|
+
the published version (the draft while there is none), for a WordPress site that runs it
|
|
90
|
+
without an account; with "Take the knowledge along" the space's pages go with it as files. See
|
|
91
91
|
[WordPress](./wordpress.md#without-an-account).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Plugins
|
|
3
3
|
description: Add pages, settings and tools for steps to your install. What a plugin may do, and how to install one.
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
A plugin adds to engenty wizards without changing it:
|
|
@@ -13,7 +13,7 @@ A plugin adds to engenty wizards without changing it:
|
|
|
13
13
|
| A settings section | In the settings |
|
|
14
14
|
| A section of the space page | In one of the space page's parts |
|
|
15
15
|
| A template | First among the templates of a new wizard |
|
|
16
|
-
| A channel a wizard runs through | In the share dialog's
|
|
16
|
+
| A channel a wizard runs through | In the channels of a new wizard, and in the share dialog's ways in |
|
|
17
17
|
| Something that happens when a run ends, or again and again | Nowhere: it works in the background, for example posts a message |
|
|
18
18
|
|
|
19
19
|
> A plugin runs with the app's full rights: it reads your wizards, your results, your settings
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Test and share
|
|
3
3
|
description: Try the wizard, publish it, and hand out its link or put it on a website.
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
## Test
|
|
@@ -34,21 +34,20 @@ gives it one, and the arrow opens it here.
|
|
|
34
34
|
|
|
35
35
|
## Share
|
|
36
36
|
|
|
37
|
-
"Share" says
|
|
37
|
+
"Share" is its own step beside "Publish": it says who may open the wizard and how others reach
|
|
38
|
+
it, and copies the link.
|
|
38
39
|
|
|
39
40
|
| Part | Does |
|
|
40
41
|
|---|---|
|
|
41
|
-
|
|
|
42
|
-
|
|
|
43
|
-
| QR code |
|
|
44
|
-
|
|
|
45
|
-
|
|
|
46
|
-
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
Where the draft is not published as it is, the dialog says so first and publishes from there.
|
|
42
|
+
| Access | "Anyone with the link" can open and fill it in, up to the runs a day set under the gear. "Only you" switches the link off: everyone else sees a notice, you test in the studio |
|
|
43
|
+
| How others reach it | The channels the wizard runs as (see below), by kind: in the browser, on the phone, by message. A browser channel has its own link, a message channel its keyword and number; each row copies its own. "Change" picks the channels, with the same list as a new wizard |
|
|
44
|
+
| QR code | One of the links as a QR code, to download or print, and the wizard's ID for the mobile app |
|
|
45
|
+
| Website | The tag for a website (see below), and for WordPress the plugin or the wizard as a package that runs without an account, with what it lacks there: see [WordPress](./wordpress.md#without-an-account) |
|
|
46
|
+
| Copy link | The link people open. It opens the first browser channel, and the wizard offers the others on its first page |
|
|
47
|
+
| The gear | Runs a day (50 unless you change it, with what that costs at most), each message channel's keyword, and "Create a new link": the old link and its QR code stop working, in the cloud too |
|
|
48
|
+
|
|
49
|
+
Where the wizard is not published yet, or the draft has changes, the dialog says so on top and
|
|
50
|
+
publishes from there.
|
|
52
51
|
|
|
53
52
|
One visitor can start 6 runs an hour.
|
|
54
53
|
|
|
@@ -58,22 +57,19 @@ A wizard runs page by page, as a chat, as a live conversation on top of the chat
|
|
|
58
57
|
call on a stage with the chat beside it (the person talks, the wizard talks back and sees the
|
|
59
58
|
camera; both need an OpenAI API key under Models for now); a plugin can add further ways, a
|
|
60
59
|
kiosk page or a messenger. A new wizard has the page and the chat switched on; the others are
|
|
61
|
-
switched on
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
| Hands off to the page at: … | At those steps the person gets a link to the wizard's page, for a photo, a signature or a sign-in, and comes back after |
|
|
67
|
-
| Not possible: … | A step nobody can hand off, for example one that takes minutes on a channel that cannot wait |
|
|
60
|
+
switched on when the wizard is made, or later under "Change" in the share dialog. Where a channel
|
|
61
|
+
cannot take a step, the step goes to the wizard's page: the person gets a link for a photo, a
|
|
62
|
+
signature or a sign-in, and comes back after. A step nobody can hand off, for example one that
|
|
63
|
+
takes minutes on a channel that cannot wait, shows "Not possible: …" under the channel's name.
|
|
64
|
+
A channel that is not set up says "Not set up yet", with "Set up" to its settings.
|
|
68
65
|
|
|
69
66
|
The home's cards show the channels that are on as small icons, the link's door first. A row of
|
|
70
67
|
pills above the cards narrows them to one status (Draft, Local, Live, Not in the cloud) once
|
|
71
68
|
two statuses are in play.
|
|
72
69
|
|
|
73
|
-
The link opens the
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
instead.
|
|
70
|
+
The link opens the first browser channel that is on. The others answer under their own address
|
|
71
|
+
(`/steps`, `/chat`, `/talk` for live voice, `/video` for the video call) and are offered on the
|
|
72
|
+
wizard's first page: "Or: Chat". A switched-off address sends people to the link instead.
|
|
77
73
|
|
|
78
74
|
### WhatsApp
|
|
79
75
|
|
|
@@ -83,9 +79,10 @@ from your Meta app, then the webhook address and the verify token the page shows
|
|
|
83
79
|
Meta app's WhatsApp configuration. Until a number is connected, the channel shows "not set up"
|
|
84
80
|
in the list.
|
|
85
81
|
|
|
86
|
-
Switch WhatsApp on for a wizard and its row
|
|
87
|
-
(`wa.me/<number>?text=<keyword>`) and the
|
|
88
|
-
|
|
82
|
+
Switch WhatsApp on for a wizard and its row in the share dialog shows its **keyword** and the
|
|
83
|
+
number; "Link" copies the link that writes it (`wa.me/<number>?text=<keyword>`), and the QR code
|
|
84
|
+
view draws it. The keyword is changed under the gear. Whoever sends the keyword to the number
|
|
85
|
+
starts the wizard; without a keyword, the number offers the wizards that are on.
|
|
89
86
|
|
|
90
87
|
In the thread the wizard asks one field per message: buttons for up to three choices, a list
|
|
91
88
|
for more, yes/no as buttons, a photo or a file sent in the chat, "send location" for a place, a
|
|
@@ -105,7 +102,8 @@ the person's next message.
|
|
|
105
102
|
With the SMS module a wizard runs by text message, through a Twilio account and number of your
|
|
106
103
|
own. Settings → SMS takes the Account SID, the auth token and the number; the webhook address
|
|
107
104
|
the page shows goes into the number's "A message comes in" field in Twilio. Switch SMS on for a
|
|
108
|
-
wizard and its row
|
|
105
|
+
wizard and its row shows the keyword and the number; "Link" copies an `sms:` link that types it,
|
|
106
|
+
and the QR code view draws it. The keyword is changed under the gear.
|
|
109
107
|
|
|
110
108
|
Text only: one field per text, choices as numbered lines answered with the number (several
|
|
111
109
|
numbers with commas for a multiple choice), yes or no, a place as a typed address. A page with
|
|
@@ -148,19 +146,17 @@ for anyone else. To let others run the wizard:
|
|
|
148
146
|
Once an account is signed in under Settings → Account, every "Publish" sends the published
|
|
149
147
|
version to engenty.ai. The avatar then carries a small cloud, and its menu says "Connected to
|
|
150
148
|
engenty.ai" with the credits. The share dialog gives the wizard's address at engenty.ai, which
|
|
151
|
-
stays the same when you publish again
|
|
152
|
-
|
|
149
|
+
stays the same when you publish again. Where the cloud does not run this version, the dialog
|
|
150
|
+
says so on top:
|
|
153
151
|
|
|
154
152
|
| It shows | Means |
|
|
155
153
|
|---|---|
|
|
156
|
-
| "Live on engenty.ai · version 3" | The cloud runs this version |
|
|
157
154
|
| "Version 3 does not run in the cloud" | Something the wizard needs is missing there. The list says what; the version before keeps running |
|
|
158
|
-
| "What runs differently in the cloud" | A step works there with less, for example without a machine for code |
|
|
159
155
|
| "Send again" | The last sending did not arrive, or the space changed. When engenty.ai was the trouble, the studio tries again by itself and says when |
|
|
160
156
|
|
|
161
|
-
Without an account the dialog says that the wizard runs only on this computer
|
|
162
|
-
|
|
163
|
-
|
|
157
|
+
Without an account the dialog says that the wizard runs only on this computer ("Only on this
|
|
158
|
+
computer" under Access), greys out the ways in and offers to sign in or create an account.
|
|
159
|
+
"Website" still gives the WordPress package.
|
|
164
160
|
|
|
165
161
|
What goes and what stays:
|
|
166
162
|
|
|
@@ -182,17 +178,17 @@ Deleting a wizard here removes its copy; switching its link off here switches it
|
|
|
182
178
|
|
|
183
179
|
The share dialog gives a tag to paste into a page's HTML:
|
|
184
180
|
|
|
185
|
-
|
|
|
181
|
+
| What the website shows | Shows |
|
|
186
182
|
|---|---|
|
|
187
|
-
|
|
|
183
|
+
| Step-by-step wizard | The wizard page by page |
|
|
188
184
|
| Chat | The wizard as a chat, 640 px high (`data-height` changes that) |
|
|
189
185
|
|
|
190
|
-
|
|
|
186
|
+
| Where on the page | Shows |
|
|
191
187
|
|---|---|
|
|
192
|
-
|
|
|
193
|
-
|
|
|
194
|
-
|
|
|
195
|
-
|
|
|
188
|
+
| In the page | The wizard in that place of the page, as tall as its content |
|
|
189
|
+
| Behind a button | A button in that place that opens the wizard in a window over the page |
|
|
190
|
+
| As a chat button | The wizard's engenty in the lower right corner; the chat opens above it |
|
|
191
|
+
| As a bubble | Steps only: a round button at the bottom right of the page that opens the wizard in a window over the page, best put in the site's footer |
|
|
196
192
|
|
|
197
193
|
```html
|
|
198
194
|
<script async src="https://example.com/embed.js" data-wizard="TOKEN"></script>
|
|
@@ -1,7 +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.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
`wizards doctor` checks the install and says what is wrong. Start there.
|
|
@@ -38,7 +38,7 @@ version: 0.3.2
|
|
|
38
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) |
|
|
39
39
|
| A widget offers no video | Install ffmpeg, or set `FFMPEG_PATH` |
|
|
40
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) |
|
|
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
|
|
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 the runs a day under the share dialog's gear |
|
|
42
42
|
| "This wizard does not exist (anymore)" | It is not published, or its link was replaced by a new one |
|
|
43
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
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 |
|
|
@@ -1,7 +1,7 @@
|
|
|
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.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
The plugin **engenty wizards** puts the wizards of an engenty.ai account on a WordPress site and
|
|
@@ -89,11 +89,11 @@ then goes through three steps: the provider (with a test), the wizards, the webs
|
|
|
89
89
|
|
|
90
90
|
| | |
|
|
91
91
|
|---|---|
|
|
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 |
|
|
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 (Website → "Without an account: as a package"), taken in with **Import** on the **Wizards** page |
|
|
93
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
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
|
|
96
|
-
| Knowledge | The
|
|
95
|
+
| The check | The share dialog's package view 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 package view'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
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
98
|
| Results | Kept in WordPress under **Results**, 90 days unless **Keep results** says otherwise; nothing goes to engenty.ai |
|
|
99
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) |
|
|
@@ -150,7 +150,12 @@ function apiFor(record) {
|
|
|
150
150
|
if (info.kind === "page" && typeof runner.page !== "function") {
|
|
151
151
|
throw new Error(`Runner "${info.id}": a page runner needs a page.`);
|
|
152
152
|
}
|
|
153
|
-
record.runners.set(info.id, {
|
|
153
|
+
record.runners.set(info.id, {
|
|
154
|
+
info,
|
|
155
|
+
page: runner.page,
|
|
156
|
+
problem: runner.problem,
|
|
157
|
+
address: runner.address,
|
|
158
|
+
});
|
|
154
159
|
},
|
|
155
160
|
publicUrl: (path) => publicUrlOf(source.id, path),
|
|
156
161
|
runs: runsApiFor(source.id),
|
|
@@ -67,12 +67,36 @@ export async function checkRunnerSettings(settings) {
|
|
|
67
67
|
}
|
|
68
68
|
return { default: settings.default, enabled };
|
|
69
69
|
}
|
|
70
|
-
/**
|
|
70
|
+
/**
|
|
71
|
+
* Where a person reaches the wizard through each channel that is on, by runner id: the number,
|
|
72
|
+
* the keyword and the link, as the runner's plugin knows them. A runner that cannot say is left
|
|
73
|
+
* out.
|
|
74
|
+
*/
|
|
75
|
+
async function addressesOf(w, enabled) {
|
|
76
|
+
const wizard = { id: w.id, title: w.draft.title, token: w.shareToken };
|
|
77
|
+
const runners = (await pluginsOf(currentTenant())).flatMap((p) => [...p.runners.values()]);
|
|
78
|
+
const found = await Promise.all(runners
|
|
79
|
+
.filter((r) => r.address && enabled.includes(r.info.id))
|
|
80
|
+
.map(async (r) => {
|
|
81
|
+
const address = await Promise.resolve()
|
|
82
|
+
.then(() => r.address?.(wizard) ?? null)
|
|
83
|
+
.catch(() => null);
|
|
84
|
+
return address ? [r.info.id, address] : null;
|
|
85
|
+
}));
|
|
86
|
+
return new Map(found.filter((entry) => entry !== null));
|
|
87
|
+
}
|
|
88
|
+
/** The runners with how each fits the draft and where it is reached, and how the wizard is offered. */
|
|
71
89
|
export async function wizardRunners(w) {
|
|
72
90
|
const available = await runnersOf();
|
|
91
|
+
const settings = runnerSettingsOf(w, available);
|
|
92
|
+
const addresses = await addressesOf(w, settings.enabled);
|
|
73
93
|
return {
|
|
74
|
-
runners: available.map((r) => ({
|
|
75
|
-
|
|
94
|
+
runners: available.map((r) => ({
|
|
95
|
+
...r,
|
|
96
|
+
fit: runnerFit(w.draft, r),
|
|
97
|
+
address: addresses.get(r.id) ?? null,
|
|
98
|
+
})),
|
|
99
|
+
settings,
|
|
76
100
|
};
|
|
77
101
|
}
|
|
78
102
|
/** The address a runner opens the wizard at: the link itself for the default, else its sub-path. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{t as r}from"./logo-C4V2_3Ar.js";import{t as i}from"./preload-helper-CNEI7N0N.js";import{Ct as a,Dt as o,Tt as s,Zt as c,bt as l,ft as u,ht as d,jt as f,kt as p,mt as m,nn as h,pt as g}from"./ui-CMdSOoUZ.js";import{B as _,Q as v,V as y}from"./index-Bdx1Qity.js";import{c as b,f as x}from"./settings-menu-BOOPxcJH.js";import{ReleaseNotes as S,loadReleases as C,releaseDate as w,releaseLabel as T}from"./ChangelogDialog-VEBTlC3f.js";var E=e(t(),1),D=[{name:`engenty wizards`,description:{de:`KI-Wizards aus einer Beschreibung, mit einem Link geteilt.`,en:`AI wizards built from a description, shared with a link.`},homepage:`https://github.com/engenty/wizards`,license:`FSL-1.1-MIT`},{name:`engenty`,description:{de:`Konnektoren, Datentabellen, Suche und die Engenties stammen aus dem engenty-Framework.`,en:`Connectors, data tables, search and the engenties come from the engenty framework.`},homepage:`https://github.com/engenty/engenty`,license:`FSL-1.1-MIT`}],O=[{name:`Mastra`,description:{de:`Agent-Framework hinter den KI-Schritten.`,en:`Agent framework behind the AI steps.`},homepage:`https://github.com/mastra-ai/mastra`,license:`Apache-2.0`},{name:`AI SDK`,description:{de:`Modell-Aufrufe für Text, Bild, Video und Sprache.`,en:`Model calls for text, image, video and speech.`},homepage:`https://github.com/vercel/ai`,license:`Apache-2.0`},{name:`Model Context Protocol`,description:{de:`MCP-Server zum Bauen von Wizards, MCP-Client für Werkzeuge der Schritte.`,en:`MCP server for building wizards, MCP client for the steps' tools.`},homepage:`https://github.com/modelcontextprotocol/typescript-sdk`,license:`MIT`},{name:`Hono`,description:{de:`HTTP-API der Runtime.`,en:`The runtime's HTTP API.`},homepage:`https://github.com/honojs/hono`,license:`MIT`},{name:`Drizzle ORM`,description:{de:`Schema und Migrationen der Datenbanken.`,en:`Schema and migrations of the databases.`},homepage:`https://github.com/drizzle-team/drizzle-orm`,license:`Apache-2.0`},{name:`libSQL`,description:{de:`Eine Datenbank je Mandant, lokal als Datei oder bei Turso.`,en:`One database per tenant, a local file or at Turso.`},homepage:`https://github.com/tursodatabase/libsql`,license:`MIT`},{name:`Playwright`,description:{de:`Browser-Schritte sowie PDF- und PNG-Export.`,en:`Browser steps and the PDF and PNG export.`},homepage:`https://github.com/microsoft/playwright`,license:`Apache-2.0`},{name:`agentOS`,description:{de:`Sandbox für Code-Schritte ohne Docker.`,en:`Sandbox for code steps without Docker.`},homepage:`https://github.com/rivet-dev/agentos`,license:`Apache-2.0`},{name:`React`,description:{de:`UI-Bibliothek der Web-App.`,en:`UI library of the web app.`},homepage:`https://github.com/facebook/react`,license:`MIT`},{name:`Vite`,description:{de:`Build-Werkzeug der Web-App.`,en:`Build tool of the web app.`},homepage:`https://github.com/vitejs/vite`,license:`MIT`},{name:`Tailwind CSS`,description:{de:`Styling der Oberfläche.`,en:`Styling of the interface.`},homepage:`https://github.com/tailwindlabs/tailwindcss`,license:`MIT`},{name:`React Flow`,description:{de:`Das Diagramm der Schritte im Editor.`,en:`The diagram of steps in the editor.`},homepage:`https://github.com/xyflow/xyflow`,license:`MIT`},{name:`TanStack Query`,description:{de:`Server-Daten in der Web-App.`,en:`Server data in the web app.`},homepage:`https://github.com/TanStack/query`,license:`MIT`},{name:`xterm.js`,description:{de:`Das Terminal auf der Seite, in dem sich KI-Clients anmelden.`,en:`The terminal on the page where AI clients sign in.`},homepage:`https://github.com/xtermjs/xterm.js`,license:`MIT`},{name:`Lucide`,description:{de:`Icons.`,en:`Icons.`},homepage:`https://github.com/lucide-icons/lucide`,license:`ISC`},{name:`Geist & Geist Mono`,description:{de:`Schrift der Oberfläche.`,en:`Typeface of the interface.`},homepage:`https://github.com/vercel/geist-font`,license:`OFL-1.1`},{name:`Space Grotesk`,description:{de:`Schrift der Überschriften.`,en:`Typeface of the headings.`},homepage:`https://github.com/floriankarsten/space-grotesk`,license:`OFL-1.1`},{name:`git-cliff`,description:{de:`Erzeugt den Changelog aus den Commits.`,en:`Generates the changelog from the commits.`},homepage:`https://github.com/orhun/git-cliff`,license:`MIT OR Apache-2.0`}],k=e(n(),1),A=(e,...t)=>t.some(t=>t?.toLowerCase().includes(e));function j({name:e,homepage:t,version:n,license:r,description:i}){return(0,k.jsxs)(`li`,{className:`py-2.5`,children:[(0,k.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-2.5 gap-y-0.5`,children:[t?(0,k.jsxs)(`a`,{href:t,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1 font-medium text-[0.875rem] text-ink underline-offset-4 hover:underline`,children:[e,(0,k.jsx)(c,{"aria-hidden":!0,className:`size-3 text-ink-4`})]}):(0,k.jsx)(`span`,{className:`font-medium text-[0.875rem] text-ink`,children:e}),n?(0,k.jsx)(`span`,{className:`text-[0.75rem] text-ink-3 tabular-nums`,children:n}):null,(0,k.jsx)(`span`,{className:`text-[0.75rem] text-ink-3`,children:r})]}),i?(0,k.jsx)(`p`,{className:`mt-0.5 text-[0.8125rem] text-ink-3`,children:i}):null]})}function M({title:e,hint:t,children:n}){return(0,k.jsxs)(`section`,{className:`mt-6`,children:[(0,k.jsx)(`h3`,{className:`border-border-soft border-b pb-2 font-display font-semibold text-[1rem]`,children:e}),t?(0,k.jsx)(`p`,{className:`mt-2 text-[0.8125rem] text-ink-3`,children:t}):null,n]})}function N({credits:e}){return(0,k.jsx)(`ul`,{className:`divide-y divide-border-soft`,children:e.map(e=>(0,k.jsx)(j,{name:e.name,homepage:e.homepage,license:e.license,description:e.description[o]},e.name))})}function P({label:e,packages:t}){return(0,k.jsxs)(`div`,{className:`mt-4`,children:[(0,k.jsx)(`h4`,{className:`font-medium text-[0.75rem] text-ink-3 tracking-wide`,children:e}),(0,k.jsx)(`ul`,{className:`divide-y divide-border-soft`,children:t.map(e=>(0,k.jsx)(j,{...e},e.name))})]})}function F({active:e}){let[t,n]=(0,E.useState)(null),[r,a]=(0,E.useState)(``);(0,E.useEffect)(()=>{if(!e||t)return;let r=!1;return i(()=>import(`./oss-credits-BQQX0kvk.js`).then(e=>{r||n(e.default)}),[]),()=>{r=!0}},[e,t]),(0,E.useEffect)(()=>{e||a(``)},[e]);let o=r.trim().toLowerCase(),s=e=>o?e.filter(e=>A(o,e.name,e.license,e.description.de,e.description.en)):e,c=e=>o?e.filter(e=>A(o,e.name,e.license,e.version)):e,u=s(D),f=s(O),m=t?[{id:`shared`,label:p(`about.creditsShared`),packages:c(t.shared)},...t.groups.map(e=>({id:e.id,label:e.label,packages:c(e.packages)}))].filter(e=>e.packages.length>0):[],h=u.length===0&&f.length===0&&m.length===0;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`p`,{className:`mb-4 text-[0.875rem] text-ink-3`,children:p(`about.creditsHint`)}),(0,k.jsx)(d,{type:`search`,value:r,placeholder:p(`about.search`),onChange:e=>a(e.target.value)}),u.length>0?(0,k.jsx)(M,{title:p(`about.creditsProduct`),children:(0,k.jsx)(N,{credits:u})}):null,f.length>0?(0,k.jsx)(M,{title:p(`about.creditsBuiltWith`),children:(0,k.jsx)(N,{credits:f})}):null,t===null?(0,k.jsx)(`div`,{className:`flex justify-center py-10 text-ink-3`,children:(0,k.jsx)(l,{})}):m.length>0?(0,k.jsx)(M,{title:p(`about.creditsDeps`),hint:o?void 0:p(`about.creditsDepsHint`),children:m.map(e=>(0,k.jsx)(P,{label:e.label,packages:e.packages},e.id))}):null,t!==null&&h?(0,k.jsx)(g,{children:p(`about.noMatches`)}):null]})}var I=[`new`,`earlier`,`credits`],L=e=>p(e===`new`?`about.tab.new`:e===`earlier`?`about.tab.earlier`:`about.credits`),R=e=>e===1?p(`about.change`):p(`about.changes`,{n:e});function z({open:e,onClose:t,me:n}){let i=n?.mode===`local`,{data:o,latest:c}=y(i&&e),[d,g]=(0,E.useState)(null),[D,O]=(0,E.useState)(`new`),A=x(I.indexOf(D)),j=o?.newer&&c?c:v;(0,E.useEffect)(()=>{if(!e)return;let t=!1;return g(null),C(j===`0.3.5`?void 0:j).then(e=>{t||g(e)}),()=>{t=!0}},[e,j]);let M=d?.find(e=>e.version===`v${j}`)??d?.[0]??null,N=d?.filter(e=>e!==M)??[],P=i?o?.kind??null:`cloud`;return(0,k.jsxs)(u,{open:e,onClose:t,wide:!0,height:`tall`,children:[(0,k.jsx)(`div`,{className:`-mt-2 -mr-2 sticky top-0 z-10 flex h-0 justify-end`,children:(0,k.jsx)(m,{label:p(`common.close`),onClick:t,children:(0,k.jsx)(f,{className:`size-4`})})}),(0,k.jsxs)(`div`,{className:`flex flex-col items-center pt-4 text-center`,children:[(0,k.jsx)(r,{size:96}),(0,k.jsxs)(`div`,{className:`mt-4 font-display font-semibold text-[1.5rem] tracking-tight`,children:[`engenty`,(0,k.jsx)(`span`,{className:`text-ember`,children:`.`}),(0,k.jsx)(`span`,{className:`ml-1.5 font-normal text-ink-3`,children:`wizards`})]}),(0,k.jsxs)(`div`,{className:`mt-1 text-[0.9375rem] text-ink-3 tabular-nums`,children:[p(`about.version`,{v}),P?` · ${p(`about.kind.${P}`)}`:``]})]}),i?(0,k.jsx)(`div`,{className:`mt-5`,children:(0,k.jsx)(_,{enabled:e})}):null,(0,k.jsx)(`div`,{className:`mt-6 flex justify-center`,children:(0,k.jsx)(a,{value:D,onChange:O,options:I.map(e=>({id:e,label:L(e)})),label:p(`about.title`)})}),(0,k.jsxs)(`div`,{className:s(`mt-5`,b(A)),children:[D===`new`?d===null?(0,k.jsx)(`div`,{className:`flex justify-center py-6 text-ink-3`,children:(0,k.jsx)(l,{})}):M?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(`h3`,{className:`flex items-baseline gap-3 border-border-soft border-b pb-2 font-display font-semibold text-[1rem]`,children:[T(M),(0,k.jsx)(`span`,{className:`font-normal font-sans text-[0.8125rem] text-ink-3 tabular-nums`,children:w(M)})]}),(0,k.jsx)(`div`,{className:`mt-3`,children:(0,k.jsx)(S,{release:M})})]}):(0,k.jsx)(`p`,{className:`text-[0.875rem] text-ink-3`,children:p(`about.changelogEmpty`)}):null,D===`earlier`?(0,k.jsx)(`div`,{className:`flex flex-col divide-y divide-border-soft`,children:N.map(e=>(0,k.jsxs)(`details`,{className:`group/r py-2`,children:[(0,k.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-baseline gap-3 text-[0.875rem] [&::-webkit-details-marker]:hidden`,children:[(0,k.jsx)(h,{className:`size-3.5 shrink-0 self-center text-ink-4 transition group-open/r:rotate-90`}),(0,k.jsx)(`span`,{className:`font-medium text-ink tabular-nums`,children:T(e)}),(0,k.jsx)(`span`,{className:`text-[0.8125rem] text-ink-3 tabular-nums`,children:w(e)}),(0,k.jsx)(`span`,{className:`ml-auto text-[0.8125rem] text-ink-4`,children:R(e.commits.length)})]}),(0,k.jsx)(`div`,{className:`mt-2 pl-6`,children:(0,k.jsx)(S,{release:e})})]},e.version??`unreleased`))}):null,D===`credits`?(0,k.jsx)(F,{active:!0}):null]},D)]})}export{z as AboutDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{t as r}from"./preload-helper-CNEI7N0N.js";import{Tt as i,bt as a,ft as o,ht as s,kt as c,pt as l}from"./ui-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{t as r}from"./preload-helper-CNEI7N0N.js";import{Tt as i,bt as a,ft as o,ht as s,kt as c,pt as l}from"./ui-CMdSOoUZ.js";var u=e(t(),1),d=e(n(),1);function f(e){switch(e.group){case`Added`:return{label:`NEW`,dot:`bg-moss`};case`Fixed`:return{label:`FIXED`,dot:`bg-amber`};case`Changed`:return{label:`CHANGED`,dot:`bg-cobalt`};case`Performance`:return{label:`PERFORMANCE`,dot:`bg-ember`};case`Deploy`:return{label:`DEPLOY`,dot:`bg-ink-4`};case`Docs`:return{label:`DOCS`,dot:`bg-ink-4`};default:return{label:`OTHER`,dot:`bg-ink-4`}}}var p=e=>e.version?e.version.replace(/^v/,``):c(`about.unreleased`),m=e=>e.timestamp?new Date(e.timestamp*1e3).toISOString().slice(0,10):``,h=e=>e.charAt(0).toUpperCase()+e.slice(1);function g(e,t){let n=t.trim().toLowerCase();if(!n)return e;let r=[];for(let t of e){if(`${p(t)} ${m(t)}`.toLowerCase().includes(n)){r.push(t);continue}let e=t.commits.filter(e=>`${f(e).label} ${e.scope??``} ${e.message}`.toLowerCase().includes(n));e.length>0&&r.push({...t,commits:e})}return r}async function _(e){if(e)try{let t=await fetch(`https://raw.githubusercontent.com/engenty/engenty-wizards/v${e}/apps/web/src/about/changelog.json`,{signal:AbortSignal.timeout(5e3)});if(t.ok)return await t.json()}catch{}return(await r(async()=>{let{default:e}=await import(`./changelog-ViHoNW7e.js`);return{default:e}},[])).default}function v({release:e}){return(0,d.jsx)(`ul`,{className:`flex flex-col gap-2`,children:e.commits.map(e=>{let t=f(e);return(0,d.jsxs)(`li`,{className:`flex items-start gap-2.5 text-[0.875rem]`,children:[(0,d.jsx)(`span`,{className:i(`mt-[7px] size-1.5 shrink-0 rounded-full`,t.dot)}),(0,d.jsxs)(`span`,{className:`min-w-0 text-ink-2`,children:[(0,d.jsxs)(`span`,{className:`font-semibold text-[0.75rem] text-ink tracking-wide`,children:[t.label,e.scope?` [${e.scope}]`:``]}),` `,h(e.message),e.breaking?(0,d.jsx)(`span`,{className:`ml-1.5 rounded-full bg-rose-tint px-1.5 py-0.5 font-medium text-[0.75rem] text-rose`,children:c(`about.breaking`)}):null]})]},e.id)})})}function y({open:e,onClose:t,version:n}){let[r,i]=(0,u.useState)(null),[f,h]=(0,u.useState)(``);(0,u.useEffect)(()=>{if(!e||r)return;let t=!1;return _(n).then(e=>{t||i(e)}),()=>{t=!0}},[e,r,n]),(0,u.useEffect)(()=>{e||h(``)},[e]);let y=r?g(r,f):[];return(0,d.jsxs)(o,{open:e,onClose:t,title:c(`about.changelog`),wide:!0,height:`tall`,children:[(0,d.jsx)(`p`,{className:`-mt-3 mb-4 text-[0.875rem] text-ink-3`,children:c(`about.changelogHint`)}),r===null?(0,d.jsx)(`div`,{className:`flex justify-center py-10 text-ink-3`,children:(0,d.jsx)(a,{})}):r.length===0?(0,d.jsx)(l,{children:c(`about.changelogEmpty`)}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s,{type:`search`,value:f,placeholder:c(`about.search`),onChange:e=>h(e.target.value)}),y.length===0?(0,d.jsx)(l,{children:c(`about.noMatches`)}):null,y.map(e=>(0,d.jsxs)(`section`,{className:`mt-6`,children:[(0,d.jsxs)(`h3`,{className:`flex items-baseline gap-3 border-border-soft border-b pb-2 font-display font-semibold text-[1rem]`,children:[p(e),(0,d.jsx)(`span`,{className:`font-normal font-sans text-[0.8125rem] text-ink-3 tabular-nums`,children:m(e)})]}),(0,d.jsx)(`div`,{className:`mt-3`,children:(0,d.jsx)(v,{release:e})})]},e.version??`unreleased`))]})]})}export{y as ChangelogDialog,v as ReleaseNotes,_ as loadReleases,m as releaseDate,p as releaseLabel};
|