@engenty/wizards-runtime 0.9.2 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -39
- package/apps/runtime/dist/assistant/docs.js +1 -1
- package/apps/runtime/dist/assistant/primer.js +2 -2
- package/apps/runtime/dist/db/migrations/tenant/0020_project_page.sql +1 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0020_snapshot.json +3475 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +7 -0
- package/apps/runtime/dist/db/schema.js +2 -0
- package/apps/runtime/dist/docs/dev/api.md +1 -1
- package/apps/runtime/dist/docs/dev/integration/channels.md +4 -4
- package/apps/runtime/dist/docs/dev/integration/claude-code-plugin.md +1 -1
- package/apps/runtime/dist/docs/dev/integration/embed.md +1 -1
- package/apps/runtime/dist/docs/dev/integration/index.md +2 -3
- package/apps/runtime/dist/docs/dev/integration/link-and-share.md +1 -1
- package/apps/runtime/dist/docs/dev/integration/mcp-apps.md +1 -1
- package/apps/runtime/dist/docs/dev/integration/mcp.md +1 -1
- package/apps/runtime/dist/docs/dev/integration/meta.json +0 -1
- package/apps/runtime/dist/docs/dev/integration/openui.md +7 -3
- package/apps/runtime/dist/docs/dev/integration/results.md +1 -3
- package/apps/runtime/dist/docs/dev/plugins/routes.md +1 -1
- package/apps/runtime/dist/docs/dev/wizard-format/themes.md +2 -2
- package/apps/runtime/dist/docs/dev/wizard-format/validate.md +1 -1
- package/apps/runtime/dist/docs/meta.json +1 -1
- package/apps/runtime/dist/docs/{user → user-guide}/ai-apps.md +4 -5
- package/apps/runtime/dist/docs/{user → user-guide}/build-a-wizard.md +42 -37
- package/apps/runtime/dist/docs/{user → user-guide}/command-line.md +9 -8
- package/apps/runtime/dist/docs/{user → user-guide}/connectors.md +6 -6
- package/apps/runtime/dist/docs/{user → user-guide}/create-account.md +10 -11
- package/apps/runtime/dist/docs/{user → user-guide}/data.md +5 -5
- package/apps/runtime/dist/docs/{user → user-guide}/first-start.md +5 -5
- package/apps/runtime/dist/docs/{user → user-guide}/index.md +3 -3
- package/apps/runtime/dist/docs/{user → user-guide}/install.md +21 -25
- package/apps/runtime/dist/docs/{user → user-guide}/local-only.md +5 -6
- package/apps/runtime/dist/docs/{user → user-guide}/meta.json +0 -2
- package/apps/runtime/dist/docs/{user → user-guide}/models.md +13 -22
- package/apps/runtime/dist/docs/{user → user-guide}/plugins.md +2 -2
- package/apps/runtime/dist/docs/{user → user-guide}/run.md +21 -36
- package/apps/runtime/dist/docs/{user → user-guide}/server.md +1 -1
- package/apps/runtime/dist/docs/{user → user-guide}/space.md +17 -27
- package/apps/runtime/dist/docs/{user → user-guide}/steps.md +22 -34
- package/apps/runtime/dist/docs/{user → user-guide}/test-and-share.md +35 -76
- package/apps/runtime/dist/docs/{user → user-guide}/troubleshooting.md +3 -4
- package/apps/runtime/dist/engine/runner.js +7 -4
- package/apps/runtime/dist/manage.js +7 -0
- package/apps/runtime/dist/routes/runs.js +26 -0
- package/apps/runtime/dist/routes/studio.js +21 -2
- package/apps/runtime/dist/services/brand.js +20 -0
- package/apps/runtime/dist/services/errors.js +1 -0
- package/apps/runtime/dist/services/pages.js +262 -0
- package/apps/runtime/dist/services/projects.js +73 -2
- package/apps/runtime/dist/services/runners.js +12 -2
- package/apps/runtime/dist/services/runs.js +75 -1
- package/apps/runtime/dist/services/shipped-fonts.js +33 -0
- package/apps/runtime/dist/services/wizards.js +30 -1
- package/apps/web/dist/assets/AboutDialog-CsqUDxPv.js +1 -0
- package/apps/web/dist/assets/{ChangelogDialog-ClkjHGE_.js → ChangelogDialog-vV9nXOBV.js} +1 -1
- package/apps/web/dist/assets/EditorPage-CfmubDLB.js +4 -0
- package/apps/web/dist/assets/{FlowPreview-DZRkWedM.js → FlowPreview-DoBlokAp.js} +1 -1
- package/apps/web/dist/assets/{Harness-FiDeF3LX.js → Harness-GnlSI4-P.js} +2 -2
- package/apps/web/dist/assets/Marketplace-CYsq0K7A.js +2 -0
- package/apps/web/dist/assets/NewWizardChannels-DUS3dRCj.js +1 -0
- package/apps/web/dist/assets/NewWizardPage-Cm9ydfUW.js +7 -0
- package/apps/web/dist/assets/OnboardingPage-xI83C1V1.js +1 -0
- package/apps/web/dist/assets/PreviewPane-B-X0rChi.js +4 -0
- package/apps/web/dist/assets/ProjectPage-Bu6uD-Kb.js +1 -0
- package/apps/web/dist/assets/PublicRunner-BWBE74Kn.js +1 -0
- package/apps/web/dist/assets/{ReadOnly-I-Lm7a8y.js → ReadOnly-DKgWZ_1q.js} +1 -1
- package/apps/web/dist/assets/SettingsPage-B9euFl71.js +2 -0
- package/apps/web/dist/assets/SetupPage-C3XLbBTO.js +1 -0
- package/apps/web/dist/assets/SharePage-CSj1sAVS.js +1 -0
- package/apps/web/dist/assets/changelog-pnMcOVO_.js +1 -0
- package/apps/web/dist/assets/coins-D0MI0EKw.js +1 -0
- package/apps/web/dist/assets/esm-BdxDT9Km.js +7 -0
- package/apps/web/dist/assets/index-DtjKnB3s.css +1 -0
- package/apps/web/dist/assets/index-qc7o4bkp.js +14 -0
- package/apps/web/dist/assets/logo-CGNoptDg.js +1 -0
- package/apps/web/dist/assets/media-Cej-H610.js +1 -0
- package/apps/web/dist/assets/oss-credits-D7izqI_0.js +1 -0
- package/apps/web/dist/assets/{phone-BprN_SDS.js → phone-BZ-sPZr6.js} +1 -1
- package/apps/web/dist/assets/react-dom-hf6EcyAr.js +1 -0
- package/apps/web/dist/assets/runners-CED2yPuf.js +1 -0
- package/apps/web/dist/assets/session-DyndueX0.js +2 -0
- package/apps/web/dist/assets/settings-menu-C960R1kx.js +1 -0
- package/apps/web/dist/assets/theme-Zp5g-teI.js +11 -0
- package/apps/web/dist/assets/ui-DVkIZqDg.js +137 -0
- package/apps/web/dist/assets/{upload-Cvztyjuj.js → upload-HFTtsOaE.js} +1 -1
- package/apps/web/dist/assets/useMutation-D3zIOVOt.js +1 -0
- package/apps/web/dist/assets/volume-2-DazUIp6w.js +1 -0
- package/apps/web/dist/assets/{wrench-CWT9IGKq.js → wrench-BHe19Ol_.js} +1 -1
- package/apps/web/dist/index.html +11 -3
- package/apps/web/dist/mcp/flow.html +54 -54
- package/node_modules/@engenty/wizards/dist/plugin/studio.d.ts +3 -3
- package/node_modules/@engenty/wizards-shared/dist/feature-flags.d.ts +24 -0
- package/node_modules/@engenty/wizards-shared/dist/feature-flags.js +24 -0
- package/node_modules/@engenty/wizards-shared/dist/projects.d.ts +36 -0
- package/node_modules/@engenty/wizards-shared/dist/projects.js +25 -0
- package/node_modules/@engenty/wizards-shared/dist/run.d.ts +3 -0
- package/node_modules/@engenty/wizards-shared/dist/run.js +6 -0
- package/node_modules/@engenty/wizards-shared/dist/theme.d.ts +7 -0
- package/node_modules/@engenty/wizards-shared/dist/theme.js +11 -0
- package/package.json +16 -3
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/plugin.json +2 -2
- package/apps/runtime/dist/docs/dev/integration/wordpress.md +0 -10
- package/apps/runtime/dist/docs/user/assistant.md +0 -77
- package/apps/runtime/dist/docs/user/wordpress.md +0 -121
- package/apps/web/dist/assets/AboutDialog-BUdEn9X_.js +0 -1
- package/apps/web/dist/assets/EditorPage-j5HjqTMV.js +0 -4
- package/apps/web/dist/assets/NewWizardChannels-DeJP5h5I.js +0 -1
- package/apps/web/dist/assets/NewWizardPage-CIS3qNUz.js +0 -7
- package/apps/web/dist/assets/OnboardingPage-CoTYSubc.js +0 -1
- package/apps/web/dist/assets/ProjectPage-XVhe87S4.js +0 -1
- package/apps/web/dist/assets/PublicRunner-Bc-3e7UU.js +0 -1
- package/apps/web/dist/assets/RunDrawer-DXqyxTsm.js +0 -4
- package/apps/web/dist/assets/RunnerView-DeDApA-9.js +0 -1
- package/apps/web/dist/assets/SettingsPage-ChpDzJVn.js +0 -2
- package/apps/web/dist/assets/SetupPage-E5JoQMBM.js +0 -1
- package/apps/web/dist/assets/SharePage-DW1b2g9t.js +0 -1
- package/apps/web/dist/assets/changelog-DuSV2HiU.js +0 -1
- package/apps/web/dist/assets/esm-yMT-rSPa.js +0 -7
- package/apps/web/dist/assets/index-D9oqYYa8.css +0 -1
- package/apps/web/dist/assets/index-DfHH4icT.js +0 -14
- package/apps/web/dist/assets/oss-credits-6A3pxilr.js +0 -1
- package/apps/web/dist/assets/settings-menu-CVl54phq.js +0 -1
- package/apps/web/dist/assets/theme-DZZXa238.js +0 -11
- package/apps/web/dist/assets/ui-kIzOrA_W.js +0 -137
|
@@ -37,10 +37,10 @@ export interface StudioSettingsSection {
|
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* The parts of the space page: `info` (who the space is, its logos, colours, assets and facts),
|
|
40
|
-
* `knowledge` (its documents and what its steps search), `data` (what its wizards keep)
|
|
41
|
-
* `results` (what its runs produced).
|
|
40
|
+
* `knowledge` (its documents and what its steps search), `data` (what its wizards keep), `page`
|
|
41
|
+
* (its public page at `<team>.wizards.page/<slug>`) and `results` (what its runs produced).
|
|
42
42
|
*/
|
|
43
|
-
export type StudioSpaceGroup = "info" | "knowledge" | "data" | "results";
|
|
43
|
+
export type StudioSpaceGroup = "info" | "knowledge" | "data" | "page" | "results";
|
|
44
44
|
/**
|
|
45
45
|
* A section of the space page, in one of its parts, below the part's own sections. The studio
|
|
46
46
|
* draws its heading and hint above it, and its entry in the part's menu under the plugin's name;
|
|
@@ -63,6 +63,30 @@ export declare const FEATURES: {
|
|
|
63
63
|
readonly label: "Typography in Info & brand";
|
|
64
64
|
readonly hint: "The brand's fonts, their licences and a type scale.";
|
|
65
65
|
};
|
|
66
|
+
readonly channelVoice: {
|
|
67
|
+
readonly kind: "release";
|
|
68
|
+
readonly default: false;
|
|
69
|
+
readonly label: "Live voice";
|
|
70
|
+
readonly hint: "Wizards run as a spoken conversation in the browser: offered when building and sharing.";
|
|
71
|
+
};
|
|
72
|
+
readonly channelVideo: {
|
|
73
|
+
readonly kind: "release";
|
|
74
|
+
readonly default: false;
|
|
75
|
+
readonly label: "Video call";
|
|
76
|
+
readonly hint: "Wizards run as a video call in the browser: offered when building and sharing.";
|
|
77
|
+
};
|
|
78
|
+
readonly pages: {
|
|
79
|
+
readonly kind: "release";
|
|
80
|
+
readonly default: false;
|
|
81
|
+
readonly label: "Public page";
|
|
82
|
+
readonly hint: "A space's page at the team's address on wizards.page: its part in the space, the share dialog's switch.";
|
|
83
|
+
};
|
|
84
|
+
readonly wordpress: {
|
|
85
|
+
readonly kind: "release";
|
|
86
|
+
readonly default: false;
|
|
87
|
+
readonly label: "WordPress plugin";
|
|
88
|
+
readonly hint: "The plugin for WordPress sites, and a wizard as a package for one: offered in the share dialog and under Settings → Integrate.";
|
|
89
|
+
};
|
|
66
90
|
readonly goose: {
|
|
67
91
|
readonly kind: "release";
|
|
68
92
|
readonly default: false;
|
|
@@ -55,6 +55,30 @@ export const FEATURES = {
|
|
|
55
55
|
label: "Typography in Info & brand",
|
|
56
56
|
hint: "The brand's fonts, their licences and a type scale.",
|
|
57
57
|
},
|
|
58
|
+
channelVoice: {
|
|
59
|
+
kind: "release",
|
|
60
|
+
default: false,
|
|
61
|
+
label: "Live voice",
|
|
62
|
+
hint: "Wizards run as a spoken conversation in the browser: offered when building and sharing.",
|
|
63
|
+
},
|
|
64
|
+
channelVideo: {
|
|
65
|
+
kind: "release",
|
|
66
|
+
default: false,
|
|
67
|
+
label: "Video call",
|
|
68
|
+
hint: "Wizards run as a video call in the browser: offered when building and sharing.",
|
|
69
|
+
},
|
|
70
|
+
pages: {
|
|
71
|
+
kind: "release",
|
|
72
|
+
default: false,
|
|
73
|
+
label: "Public page",
|
|
74
|
+
hint: "A space's page at the team's address on wizards.page: its part in the space, the share dialog's switch.",
|
|
75
|
+
},
|
|
76
|
+
wordpress: {
|
|
77
|
+
kind: "release",
|
|
78
|
+
default: false,
|
|
79
|
+
label: "WordPress plugin",
|
|
80
|
+
hint: "The plugin for WordPress sites, and a wizard as a package for one: offered in the share dialog and under Settings → Integrate.",
|
|
81
|
+
},
|
|
58
82
|
goose: {
|
|
59
83
|
kind: "release",
|
|
60
84
|
default: false,
|
|
@@ -17,6 +17,42 @@ export declare function factKey(label: string, taken?: string[]): string;
|
|
|
17
17
|
/** Facts most projects have, by key; offered as empty rows to fill in (labels: `fact.<key>`). */
|
|
18
18
|
export declare const BASIC_FACTS: readonly ["adresse", "plz", "ort", "uid", "telefon", "e_mail", "website", "iban"];
|
|
19
19
|
export type BasicFact = (typeof BASIC_FACTS)[number];
|
|
20
|
+
export declare const PAGE_LANGS: readonly ["de", "en"];
|
|
21
|
+
export type PageLang = (typeof PAGE_LANGS)[number];
|
|
22
|
+
/** How a German page addresses its readers. */
|
|
23
|
+
export type PageForm = "du" | "sie";
|
|
24
|
+
export interface ProjectPage {
|
|
25
|
+
on: boolean;
|
|
26
|
+
/** Its address under the team's: `<team>.wizards.page/<slug>`. */
|
|
27
|
+
slug: string;
|
|
28
|
+
/** The name on the page; the space's own name never shows. */
|
|
29
|
+
title: string;
|
|
30
|
+
headline?: string;
|
|
31
|
+
intro?: string;
|
|
32
|
+
lang: PageLang;
|
|
33
|
+
/** German only: du or Sie in the page's own words. */
|
|
34
|
+
form?: PageForm;
|
|
35
|
+
/** The wizards shown, by id, in order; the first is shown large. */
|
|
36
|
+
wizards: string[];
|
|
37
|
+
/** A run the owner shared (`/s/<token>`) as a wizard's example on the page, by wizard id. */
|
|
38
|
+
examples: Record<string, string>;
|
|
39
|
+
/**
|
|
40
|
+
* Each listed wizard's address on the page (`…/<space>/<slug>`), by wizard id: made from the
|
|
41
|
+
* title when the wizard first goes on the page, kept once made, so links hold when a title
|
|
42
|
+
* changes. The runtime writes it; the studio sends it back as it is.
|
|
43
|
+
*/
|
|
44
|
+
slugs?: Record<string, string>;
|
|
45
|
+
}
|
|
46
|
+
export declare const PAGE_LIMITS: {
|
|
47
|
+
readonly slug: 48;
|
|
48
|
+
readonly title: 80;
|
|
49
|
+
readonly headline: 160;
|
|
50
|
+
readonly intro: 600;
|
|
51
|
+
};
|
|
52
|
+
/** A page's address: lower-case letters a–z, digits and hyphens, not at the start or end. */
|
|
53
|
+
export declare const PAGE_SLUG: RegExp;
|
|
54
|
+
/** A name as a page address: `Müller & Söhne GmbH` → `mueller-soehne-gmbh`. */
|
|
55
|
+
export declare function pageSlugOf(name: string): string;
|
|
20
56
|
export interface BrandColor {
|
|
21
57
|
/** What the colour is for and how to use it, in the admin's words: "Primär – Buttons und Überschriften". */
|
|
22
58
|
name: string;
|
|
@@ -79,6 +79,31 @@ export const BASIC_FACTS = [
|
|
|
79
79
|
"website",
|
|
80
80
|
"iban",
|
|
81
81
|
];
|
|
82
|
+
// --- the public page -----------------------------------------------------------------
|
|
83
|
+
// A space's page at `<team>.wizards.page/<slug>` (docs/plans/wizards-page-launch.md in the
|
|
84
|
+
// Manage repository): what the space says there and which of its wizards it lists. One space per
|
|
85
|
+
// team has it on. Nothing of it sits on a wizard; the teasers come from the published definitions.
|
|
86
|
+
export const PAGE_LANGS = ["de", "en"];
|
|
87
|
+
export const PAGE_LIMITS = { slug: 48, title: 80, headline: 160, intro: 600 };
|
|
88
|
+
/** A page's address: lower-case letters a–z, digits and hyphens, not at the start or end. */
|
|
89
|
+
export const PAGE_SLUG = /^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$/;
|
|
90
|
+
/** A name as a page address: `Müller & Söhne GmbH` → `mueller-soehne-gmbh`. */
|
|
91
|
+
export function pageSlugOf(name) {
|
|
92
|
+
return (name
|
|
93
|
+
.toLowerCase()
|
|
94
|
+
// "Anna’s team" is anna-s-team otherwise.
|
|
95
|
+
.replace(/['’]/g, "")
|
|
96
|
+
.replace(/ä/g, "ae")
|
|
97
|
+
.replace(/ö/g, "oe")
|
|
98
|
+
.replace(/ü/g, "ue")
|
|
99
|
+
.replace(/ß/g, "ss")
|
|
100
|
+
.normalize("NFKD")
|
|
101
|
+
.replace(/[\u0300-\u036f]/g, "")
|
|
102
|
+
.replace(/[^a-z0-9]+/g, "-")
|
|
103
|
+
.replace(/^-+|-+$/g, "")
|
|
104
|
+
.slice(0, PAGE_LIMITS.slug)
|
|
105
|
+
.replace(/-+$/, ""));
|
|
106
|
+
}
|
|
82
107
|
export const COLOR_SECTION_KINDS = ["colors", "gradients", "patterns"];
|
|
83
108
|
export const GRADIENT_TYPES = ["linear", "radial", "conic"];
|
|
84
109
|
/** The gradient as CSS. */
|
|
@@ -356,6 +356,9 @@ declare const NOTES_EN: {
|
|
|
356
356
|
readonly other: "You can have at most {count} spaces here.";
|
|
357
357
|
};
|
|
358
358
|
readonly twoEntriesSameKey: "Two entries have the same key.";
|
|
359
|
+
readonly pageSlugInvalid: "A page address holds lower-case letters a–z, digits and hyphens.";
|
|
360
|
+
readonly pageSlugTaken: "Another space of your team has this address.";
|
|
361
|
+
readonly pageTaken: "The page is already at “{space}”.";
|
|
359
362
|
readonly notDeleteLastSpace: "You can’t delete the last space.";
|
|
360
363
|
readonly notFound: "This doesn’t exist or was deleted.";
|
|
361
364
|
readonly categoryNeedsName: "A category needs a name.";
|
|
@@ -185,6 +185,9 @@ const NOTES_EN = {
|
|
|
185
185
|
other: "You can have at most {count} spaces here.",
|
|
186
186
|
},
|
|
187
187
|
twoEntriesSameKey: "Two entries have the same key.",
|
|
188
|
+
pageSlugInvalid: "A page address holds lower-case letters a–z, digits and hyphens.",
|
|
189
|
+
pageSlugTaken: "Another space of your team has this address.",
|
|
190
|
+
pageTaken: "The page is already at “{space}”.",
|
|
188
191
|
notDeleteLastSpace: "You can’t delete the last space.",
|
|
189
192
|
notFound: "This doesn’t exist or was deleted.",
|
|
190
193
|
categoryNeedsName: "A category needs a name.",
|
|
@@ -484,6 +487,9 @@ const NOTES_DE = {
|
|
|
484
487
|
other: "Hier sind höchstens {count} Spaces möglich.",
|
|
485
488
|
},
|
|
486
489
|
twoEntriesSameKey: "Zwei Einträge haben denselben Schlüssel.",
|
|
490
|
+
pageSlugInvalid: "Eine Seitenadresse besteht aus Kleinbuchstaben a–z, Ziffern und Bindestrichen.",
|
|
491
|
+
pageSlugTaken: "Ein anderer Space deines Teams hat diese Adresse.",
|
|
492
|
+
pageTaken: "Die Seite ist schon bei „{space}“.",
|
|
487
493
|
notDeleteLastSpace: "Der letzte Space lässt sich nicht löschen.",
|
|
488
494
|
notFound: "Das gibt es nicht oder nicht mehr.",
|
|
489
495
|
categoryNeedsName: "Eine Kategorie braucht einen Namen.",
|
|
@@ -153,6 +153,13 @@ export declare function themedLook(brand: RunTheme, theme: Theme | BuiltInTheme
|
|
|
153
153
|
export declare const serifFamily: (family: string) => boolean;
|
|
154
154
|
/** The shipped font that shows where a brand font does not load: one of its kind. */
|
|
155
155
|
export declare const shippedLike: (family: string) => ShippedFont;
|
|
156
|
+
/** A shipped font's name in its package and its files: "Bricolage Grotesque" → bricolage-grotesque. */
|
|
157
|
+
export declare const shippedFontSlug: (family: ShippedFont) => string;
|
|
158
|
+
/**
|
|
159
|
+
* Where the runtime serves a shipped font's stylesheet, for pages that are not its own (a host's
|
|
160
|
+
* OpenUI chat); null for a family that is not one of ours. Its files sit next to it.
|
|
161
|
+
*/
|
|
162
|
+
export declare function shippedFontStylesheet(family: string): string | null;
|
|
156
163
|
/**
|
|
157
164
|
* A family as CSS takes it, with a fallback of its kind while it loads or where it is missing. A
|
|
158
165
|
* brand font with a source (`faces`) names the shipped font of its kind next: it shows if the
|
|
@@ -242,6 +242,17 @@ const SERIFS = /serif|fraunces|playfair|lora|garamond|antiqua|baskerville|caslon
|
|
|
242
242
|
export const serifFamily = (family) => SERIFS.test(family) && !/sans/i.test(family);
|
|
243
243
|
/** The shipped font that shows where a brand font does not load: one of its kind. */
|
|
244
244
|
export const shippedLike = (family) => serifFamily(family) ? "Lora" : "Inter";
|
|
245
|
+
/** A shipped font's name in its package and its files: "Bricolage Grotesque" → bricolage-grotesque. */
|
|
246
|
+
export const shippedFontSlug = (family) => family.toLowerCase().replace(/ /g, "-");
|
|
247
|
+
/**
|
|
248
|
+
* Where the runtime serves a shipped font's stylesheet, for pages that are not its own (a host's
|
|
249
|
+
* OpenUI chat); null for a family that is not one of ours. Its files sit next to it.
|
|
250
|
+
*/
|
|
251
|
+
export function shippedFontStylesheet(family) {
|
|
252
|
+
return SHIPPED_FONTS.includes(family)
|
|
253
|
+
? `/api/public/fonts/shipped/${shippedFontSlug(family)}.css`
|
|
254
|
+
: null;
|
|
255
|
+
}
|
|
245
256
|
/**
|
|
246
257
|
* A family as CSS takes it, with a fallback of its kind while it loads or where it is missing. A
|
|
247
258
|
* brand font with a source (`faces`) names the shipped font of its kind next: it shows if the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@engenty/wizards-runtime",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"description": "Make a wish. Get your wizard. It guides you step by step. Let AI do the work. Runs on your machine, on the AI subscription you already have. The runtime, which `npx wizards` installs.",
|
|
5
5
|
"license": "FSL-1.1-MIT AND CC-BY-4.0",
|
|
6
6
|
"homepage": "https://engenty.ai",
|
|
@@ -35,6 +35,19 @@
|
|
|
35
35
|
"@engenty/wizards": "0.1.0",
|
|
36
36
|
"@engenty/wizards-shared": "0.1.0",
|
|
37
37
|
"@executor-js/plugin-openapi": "1.6.10",
|
|
38
|
+
"@fontsource/bricolage-grotesque": "5.3.0",
|
|
39
|
+
"@fontsource/caveat": "5.3.0",
|
|
40
|
+
"@fontsource/creepster": "5.3.0",
|
|
41
|
+
"@fontsource/dm-sans": "5.3.0",
|
|
42
|
+
"@fontsource/figtree": "5.3.0",
|
|
43
|
+
"@fontsource/fraunces": "5.3.0",
|
|
44
|
+
"@fontsource/fredoka": "5.3.0",
|
|
45
|
+
"@fontsource/inter": "5.3.0",
|
|
46
|
+
"@fontsource/lora": "5.3.0",
|
|
47
|
+
"@fontsource/nosifer": "5.3.0",
|
|
48
|
+
"@fontsource/nunito": "5.3.0",
|
|
49
|
+
"@fontsource/playfair-display": "5.3.0",
|
|
50
|
+
"@fontsource/young-serif": "5.3.0",
|
|
38
51
|
"@hono/node-server": "2.1.3",
|
|
39
52
|
"@libsql/client": "0.18.0",
|
|
40
53
|
"@lydell/node-pty": "1.1.0",
|
|
@@ -72,7 +85,7 @@
|
|
|
72
85
|
"zod": "4.6.5"
|
|
73
86
|
},
|
|
74
87
|
"bundleDependencies": [
|
|
75
|
-
"@engenty/wizards
|
|
76
|
-
"@engenty/wizards"
|
|
88
|
+
"@engenty/wizards",
|
|
89
|
+
"@engenty/wizards-shared"
|
|
77
90
|
]
|
|
78
91
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wizards",
|
|
3
3
|
"displayName": "engenty wizards",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.4",
|
|
5
5
|
"description": "Build page-by-page AI wizards that people open on a shared link — designed, tested and published from Claude Code — run your published ones in the chat, and keep them in a pane beside it.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "engenty"
|
package/plugin/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "engenty-wizards",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.4",
|
|
5
5
|
"description": "Build page-by-page AI wizards that people open on a shared link, test and publish them from the chat, and run your published ones here.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "engenty",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"Write"
|
|
30
30
|
],
|
|
31
31
|
"websiteURL": "https://engenty.ai",
|
|
32
|
-
"supportURL": "https://engenty.ai/docs/user/ai-apps",
|
|
32
|
+
"supportURL": "https://engenty.ai/docs/user-guide/ai-apps",
|
|
33
33
|
"privacyPolicyURL": "https://engenty.ai/privacy",
|
|
34
34
|
"termsOfServiceURL": "https://engenty.ai/terms",
|
|
35
35
|
"defaultPrompt": [
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: WordPress
|
|
3
|
-
description: Put published wizards on a WordPress site with the plugin “engenty wizards”.
|
|
4
|
-
version: 0.7.4
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
This page is not written yet.
|
|
8
|
-
|
|
9
|
-
Until then, [WordPress](../../user/wordpress.md) in the user guide shows how you connect a site,
|
|
10
|
-
place a wizard and read its results in the admin.
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Goose, the help assistant
|
|
3
|
-
description: The chat at the bottom of every studio page. Goose knows engenty wizards, sees the page you are on, shows you where things are and fills in the space.
|
|
4
|
-
version: 0.5.0
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Goose is still being tried out and doesn’t show in every studio yet. Where it is switched on, it
|
|
8
|
-
works as described here.
|
|
9
|
-
|
|
10
|
-
Goose stands at the bottom of every page of the studio except the editor, which has a chat of its
|
|
11
|
-
own: the assistant that builds your wizard. Goose runs on the High class of Text & reasoning:
|
|
12
|
-
your subscription, your own API keys or your credits ([Models and account](./models.md)).
|
|
13
|
-
|
|
14
|
-
| Ask it | Goose |
|
|
15
|
-
|---|---|
|
|
16
|
-
| How something works | Reads this guide (the version you installed) and links the page |
|
|
17
|
-
| Where something is | Opens the page and points at the place |
|
|
18
|
-
| About your account | Looks up your plan, credits and what you used. It never buys or upgrades anything |
|
|
19
|
-
| About templates | Searches the templates and shows the ones it recommends as cards under its answer. A card opens the template, and you start a wizard from it there |
|
|
20
|
-
| About your wizards | Looks at their runs, the failed ones too |
|
|
21
|
-
| About models | Says which models are set up here, and what is missing |
|
|
22
|
-
| To fill in the space | Reads a website or your files ([Space](./space.md#have-it-filled-in)) |
|
|
23
|
-
|
|
24
|
-
Goose sees the page you write from: where you are, what is open and what the page shows. It may
|
|
25
|
-
put a value into a field for you; you check it and save. It doesn’t click buttons.
|
|
26
|
-
|
|
27
|
-
## Where it stands
|
|
28
|
-
|
|
29
|
-
| | |
|
|
30
|
-
|---|---|
|
|
31
|
-
| At the bottom | The default. Click the field, and the chat rises above it |
|
|
32
|
-
| Closed | ✕ in the header closes it to “Ask Goose” at the lower right. A click opens the chat where it last stood. On Data and Results it starts there |
|
|
33
|
-
| Sidebar | Beside the page, in a window 1,520 pixels wide or more |
|
|
34
|
-
|
|
35
|
-
The buttons in the chat’s header (“As a sidebar”, “Dock at the bottom”) switch between them. The
|
|
36
|
-
studio remembers your choice.
|
|
37
|
-
|
|
38
|
-
At the bottom, you can move the chat out of the way of what it covers: drag it by its grip, or by
|
|
39
|
-
Goose sitting on top of it. It stays where you put it. Near the bottom it snaps to the middle or
|
|
40
|
-
the right. Near the right side, higher up, it becomes the sidebar, and the sidebar’s grip pulls it
|
|
41
|
-
out again. A dashed outline shows where it will snap. The handle on top of the chat sets how tall
|
|
42
|
-
the chat history is; a click on it folds the history away.
|
|
43
|
-
|
|
44
|
-
## Writing while it works
|
|
45
|
-
|
|
46
|
-
You can keep writing while Goose answers. What you send waits above the field:
|
|
47
|
-
|
|
48
|
-
| | |
|
|
49
|
-
|---|---|
|
|
50
|
-
| Enter | Goose reads it before its next step. It keeps to what you asked before unless the new message changes it |
|
|
51
|
-
| ⌘↩ (Ctrl+↩) | It goes out as the next question once the answer is done |
|
|
52
|
-
| “Send now” | Stops Goose and sends it at once |
|
|
53
|
-
|
|
54
|
-
While Goose answers and the field is empty, the stop button stands where “Send” does.
|
|
55
|
-
|
|
56
|
-
## One chat
|
|
57
|
-
|
|
58
|
-
You have one chat. It is the same on every page and in every space, after a reload and on another
|
|
59
|
-
device. Nobody else in the team sees it.
|
|
60
|
-
|
|
61
|
-
- **“New chat”** (the pen in the header, or the menu at the chat’s name) clears the chat at once
|
|
62
|
-
and summarises the old one in the background. Goose keeps the summaries of your last chats in
|
|
63
|
-
mind.
|
|
64
|
-
- **“Earlier chats”** lists the closed ones, for you to read. Ask about something you discussed
|
|
65
|
-
before, and Goose searches them.
|
|
66
|
-
|
|
67
|
-
## Live chat
|
|
68
|
-
|
|
69
|
-
**“Talk”** stands where “Send” does while the field is empty. The chat becomes a call: you speak,
|
|
70
|
-
a pause sends what you said, and Goose reads its answer aloud. Then it listens again. If you talk
|
|
71
|
-
over it, it stops speaking.
|
|
72
|
-
|
|
73
|
-
- Chrome and Safari turn your speech into text themselves. Other browsers record it, and your
|
|
74
|
-
model for voice notes writes it down.
|
|
75
|
-
- Goose reads its answers with your computer’s voices, or with the speech model where one is set
|
|
76
|
-
up (the speaker button in the call).
|
|
77
|
-
- Everything said stays in the chat as messages.
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: WordPress
|
|
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.5.0
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
The plugin **engenty wizards** puts the wizards of an engenty.ai account on a WordPress site and
|
|
8
|
-
shows what visitors left in the WordPress admin. The wizards run on engenty.ai: WordPress keeps
|
|
9
|
-
the plugin’s settings and the connection, but no answers. On WordPress 7.0 a wizard can also run
|
|
10
|
-
on the site itself, with the site’s own AI provider and no account ([below](#without-an-account)).
|
|
11
|
-
|
|
12
|
-
| | |
|
|
13
|
-
|---|---|
|
|
14
|
-
| WordPress | 6.6 or newer; 7.0 or newer for wizards without an account |
|
|
15
|
-
| PHP | 8.1 or newer, nothing else on the host |
|
|
16
|
-
| Site address | https, so you can sign in to engenty.ai from the admin |
|
|
17
|
-
| Account | Free or above on engenty.ai; Contacts and Appointments need Pro |
|
|
18
|
-
|
|
19
|
-
## Install
|
|
20
|
-
|
|
21
|
-
Download `engenty-wizards.zip`, either in the studio under Settings → Integrate → WordPress
|
|
22
|
-
(“Download engenty-wizards.zip”) or from the
|
|
23
|
-
[releases](https://github.com/engenty/engenty-wizards-wp-plugin/releases/latest). Upload it in
|
|
24
|
-
WordPress under **Plugins → Add New → Upload Plugin** and activate it. The menu **engenty** then
|
|
25
|
-
opens.
|
|
26
|
-
|
|
27
|
-
## Connect
|
|
28
|
-
|
|
29
|
-
On **engenty → Overview** you have two ways in:
|
|
30
|
-
|
|
31
|
-
- **Create your own AI** offers a free account on engenty.ai: **Create a free account**.
|
|
32
|
-
- **Sign in**, under “Already have an engenty account?”, uses an account you already have.
|
|
33
|
-
|
|
34
|
-
engenty.ai asks you to allow the site access and sends you back. Your WordPress email address
|
|
35
|
-
goes along as a suggestion. The site is then connected as you: **Settings → Connection** shows
|
|
36
|
-
the account, team and plan, and **Disconnect** ends the connection and revokes the access.
|
|
37
|
-
|
|
38
|
-
**By hand:** for your own engenty server, or where signing in through the browser doesn’t work,
|
|
39
|
-
enter an **Address** and an **API key** under **Settings → Connect by hand**. On engenty.ai you
|
|
40
|
-
create the key under Account. On your own server you create it under Settings → Integrate, with
|
|
41
|
-
an app’s “Connect with the address and an API key” (see
|
|
42
|
-
[AI apps](./ai-apps.md#an-app-on-another-computer)).
|
|
43
|
-
|
|
44
|
-
The plugin connects to an account on engenty.ai, not to engenty wizards on your computer. If you
|
|
45
|
-
build on your computer, sign in to your account there and publish your wizards. You then choose
|
|
46
|
-
them in WordPress.
|
|
47
|
-
|
|
48
|
-
## Set up
|
|
49
|
-
|
|
50
|
-
After you connect, the overview walks you through three steps.
|
|
51
|
-
|
|
52
|
-
| Step | What happens |
|
|
53
|
-
|---|---|
|
|
54
|
-
| Read the website | The plugin reads the site from inside WordPress: name, tagline, logo, the theme’s colours, email and phone from the imprint and contact pages, the shop’s address with WooCommerce, and the published pages as text. You untick what shouldn’t go. The rest fills in the space’s details where they are empty and goes into its [knowledge](./space.md#knowledge) as pages. engenty then reads the imprint and contact pages for the address, VAT ID, opening hours and who runs the business |
|
|
55
|
-
| Create the first wizard | A template becomes a wizard and goes live in one click |
|
|
56
|
-
| 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 by you (see below) |
|
|
57
|
-
|
|
58
|
-
Reading the site and making wizards in WordPress needs Pro. On Free you build in
|
|
59
|
-
[engenty wizards on your computer](./install.md) and publish to your account. The wizards then
|
|
60
|
-
show up in WordPress.
|
|
61
|
-
|
|
62
|
-
## Put a wizard on a page
|
|
63
|
-
|
|
64
|
-
| Way | |
|
|
65
|
-
|---|---|
|
|
66
|
-
| Block **engenty Wizard** | Choose 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. With “In the text”, the editor shows a wizard from the account itself |
|
|
67
|
-
| 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` work as in the block |
|
|
68
|
-
| Elementor | The widget **engenty Wizard**, with the block’s choices |
|
|
69
|
-
| PHP | `<?php engenty_wizard( 'ID', [ 'mode' => 'inline' ] ); ?>` in a theme template |
|
|
70
|
-
| Bubble | **Settings → Bubble on every page**: one wizard at the bottom right of every page except the ones you leave out, with an optional line beside it and your colour |
|
|
71
|
-
|
|
72
|
-
A wizard’s drawer under **Wizards** has the shortcode and the PHP line ready to copy. For a wizard
|
|
73
|
-
from the account, each way writes the share dialog’s
|
|
74
|
-
[website code](./test-and-share.md#embed-in-a-website) with the page’s address, so a result says
|
|
75
|
-
which page it was started on.
|
|
76
|
-
|
|
77
|
-
## Results, contacts, appointments
|
|
78
|
-
|
|
79
|
-
| Page | Shows | Plan |
|
|
80
|
-
|---|---|---|
|
|
81
|
-
| Results | What visitors left: when, which wizard, the email address and first answers, the page. A result opens with all answers, what the wizard made and its downloads | every plan |
|
|
82
|
-
| Contacts | The leads your wizards collected, with search and the wizard they came through | Pro, Team |
|
|
83
|
-
| Appointments | Upcoming, past and cancelled bookings in the space’s calendar | Pro, Team |
|
|
84
|
-
|
|
85
|
-
You set who sees these pages under **Settings → Access to results, contacts and appointments**.
|
|
86
|
-
Administrators always see them, and editors do from the start. engenty.ai keeps a visitor’s
|
|
87
|
-
result for 7 days.
|
|
88
|
-
|
|
89
|
-
## Without an account
|
|
90
|
-
|
|
91
|
-
A WordPress 7.0 site with its own AI provider (WordPress → **Settings → Connectors**: OpenAI,
|
|
92
|
-
Anthropic, Google, or Ollama through its provider plugin) runs wizards by itself. It needs no
|
|
93
|
-
account and no credits: the provider bills the site’s key. On **engenty → Overview**, **Create
|
|
94
|
-
your own AI** offers the account first and, below it, **Local, with your own AI provider**.
|
|
95
|
-
**Set up locally** then takes you through three steps: the provider (with a test), the wizards
|
|
96
|
-
and the website.
|
|
97
|
-
|
|
98
|
-
| | |
|
|
99
|
-
|---|---|
|
|
100
|
-
| Wizards | The templates that come with the plugin, chosen from the gallery, or a wizard file (`.wizard`) from a wizard’s share dialog in the studio (“Website” → “Without an account: as a package”). You take it in with **Import** on the **Wizards** page |
|
|
101
|
-
| What runs | Pages and their fields; photos go to the provider where it takes images. AI steps, which can also 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 views. 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 comes from the browser’s print |
|
|
102
|
-
| What doesn’t | Voice notes, sign-ins to connected accounts, choosing an appointment time, list fields, and a file a later step reads. Web search, the browser, code and image tools, connected systems (MCP servers) and plugin steps (Contacts, Appointments and the like). Widgets, films, and images, video and voice made by a model. Lists and the wizard’s memory. Word, Excel and other downloads |
|
|
103
|
-
| The check | The share dialog’s package view and, in the plugin, the gallery, the **Wizards** page and the import say for each wizard whether it “Runs there as is”, “Runs with less” or “Needs an account”. They 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”), and a format falls away. The import refuses only a wizard that needs an account. A wizard that needs a plugin only behind a choice runs with less, with that choice closed |
|
|
104
|
-
| Knowledge | In the package view, **Take the knowledge along** puts the space’s pages into the package as files (up to 2 MB, each page up to 60,000 characters). It is a snapshot of the day it was packed. On the site, an AI step first gets the wizard’s own text files, then the pages that match the step best (its instructions and the answers so far), up to 60,000 characters in all |
|
|
105
|
-
| 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, and **Reload** fetches the published version again |
|
|
106
|
-
| Results | Kept in WordPress under **Results**, for 90 days unless **Keep results** says otherwise. Nothing goes to engenty.ai |
|
|
107
|
-
| Limits | 6 runs an hour per visitor and 50 a day per wizard, plus a honeypot. 60 seconds per AI step, up to 600 for a slow local model (the setting also raises the Ollama provider plugin’s own limit) |
|
|
108
|
-
|
|
109
|
-
The settings for all of this are under **Settings → Standalone wizards**: the limits, how long
|
|
110
|
-
results are kept, whether photos go to the provider, and the switch that lets wizards read web
|
|
111
|
-
pages and call public APIs. The visitor’s browser follows the wizard’s flow and draws every page.
|
|
112
|
-
WordPress keeps the wizard’s prompts and the run, and asks the provider for each AI step through
|
|
113
|
-
its AI Client. Both kinds can be on one site: under **Wizards**, the ones that run on the site
|
|
114
|
-
are marked **Local**.
|
|
115
|
-
|
|
116
|
-
## Privacy
|
|
117
|
-
|
|
118
|
-
Visitors talk to engenty.ai directly from the frame the wizard runs in. Name engenty in your
|
|
119
|
-
privacy statement: **Settings → Privacy** has a sentence to start from. Wizards that run on the
|
|
120
|
-
site send the visitors’ answers to the site’s AI provider instead. For those, the settings give
|
|
121
|
-
a sentence that names the provider.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{Bt as r,Gt as i,Jt as a,Lt as o,Rt as s,Tr as c,Xt as l,er as u,jr as d,rn as f,zt as p}from"./ui-kIzOrA_W.js";import{t as m}from"./preload-helper-CNEI7N0N.js";import{Rt as h,dt as g,ft as _,tt as v}from"./index-DfHH4icT.js";import{c as y,f as b}from"./settings-menu-CVl54phq.js";import{ReleaseNotes as x,loadReleases as S,releaseDate as C,releaseLabel as w}from"./ChangelogDialog-ClkjHGE_.js";var T=e(t(),1),E=[{name:`engenty wizards`,description:`credit.engenty-wizards`,homepage:`https://github.com/engenty/wizards`,license:`FSL-1.1-MIT`},{name:`engenty`,description:`credit.engenty`,homepage:`https://github.com/engenty/engenty`,license:`FSL-1.1-MIT`}],D=[{name:`Mastra`,description:`credit.mastra`,homepage:`https://github.com/mastra-ai/mastra`,license:`Apache-2.0`},{name:`AI SDK`,description:`credit.ai-sdk`,homepage:`https://github.com/vercel/ai`,license:`Apache-2.0`},{name:`Model Context Protocol`,description:`credit.model-context-protocol`,homepage:`https://github.com/modelcontextprotocol/typescript-sdk`,license:`MIT`},{name:`Hono`,description:`credit.hono`,homepage:`https://github.com/honojs/hono`,license:`MIT`},{name:`Drizzle ORM`,description:`credit.drizzle-orm`,homepage:`https://github.com/drizzle-team/drizzle-orm`,license:`Apache-2.0`},{name:`libSQL`,description:`credit.libsql`,homepage:`https://github.com/tursodatabase/libsql`,license:`MIT`},{name:`Playwright`,description:`credit.playwright`,homepage:`https://github.com/microsoft/playwright`,license:`Apache-2.0`},{name:`React`,description:`credit.react`,homepage:`https://github.com/facebook/react`,license:`MIT`},{name:`Vite`,description:`credit.vite`,homepage:`https://github.com/vitejs/vite`,license:`MIT`},{name:`Tailwind CSS`,description:`credit.tailwind-css`,homepage:`https://github.com/tailwindlabs/tailwindcss`,license:`MIT`},{name:`React Flow`,description:`credit.react-flow`,homepage:`https://github.com/xyflow/xyflow`,license:`MIT`},{name:`TanStack Query`,description:`credit.tanstack-query`,homepage:`https://github.com/TanStack/query`,license:`MIT`},{name:`xterm.js`,description:`credit.xterm-js`,homepage:`https://github.com/xtermjs/xterm.js`,license:`MIT`},{name:`Lucide`,description:`credit.lucide`,homepage:`https://github.com/lucide-icons/lucide`,license:`ISC`},{name:`Geist & Geist Mono`,description:`credit.geist-geist-mono`,homepage:`https://github.com/vercel/geist-font`,license:`OFL-1.1`},{name:`Space Grotesk`,description:`credit.space-grotesk`,homepage:`https://github.com/floriankarsten/space-grotesk`,license:`OFL-1.1`},{name:`git-cliff`,description:`credit.git-cliff`,homepage:`https://github.com/orhun/git-cliff`,license:`MIT OR Apache-2.0`}],O=e(n(),1),k=(e,...t)=>t.some(t=>t?.toLowerCase().includes(e));function A({name:e,homepage:t,version:n,license:r,description:i}){return(0,O.jsxs)(`li`,{className:`py-2.5`,children:[(0,O.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-2.5 gap-y-0.5`,children:[t?(0,O.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,O.jsx)(c,{"aria-hidden":!0,className:`size-3 text-ink-4`})]}):(0,O.jsx)(`span`,{className:`font-medium text-[0.875rem] text-ink`,children:e}),n?(0,O.jsx)(`span`,{className:`text-[0.75rem] text-ink-3 tabular-nums`,children:n}):null,(0,O.jsx)(`span`,{className:`text-[0.75rem] text-ink-3`,children:r})]}),i?(0,O.jsx)(`p`,{className:`mt-0.5 text-[0.8125rem] text-ink-3`,children:i}):null]})}function j({title:e,hint:t,children:n}){return(0,O.jsxs)(`section`,{className:`mt-6`,children:[(0,O.jsx)(`h3`,{className:`border-border-soft border-b pb-2 font-display font-semibold text-[1rem]`,children:e}),t?(0,O.jsx)(`p`,{className:`mt-2 text-[0.8125rem] text-ink-3`,children:t}):null,n]})}function M({credits:e}){return(0,O.jsx)(`ul`,{className:`divide-y divide-border-soft`,children:e.map(e=>(0,O.jsx)(A,{name:e.name,homepage:e.homepage,license:e.license,description:f(e.description)},e.name))})}function N({label:e,packages:t}){return(0,O.jsxs)(`div`,{className:`mt-4`,children:[(0,O.jsx)(`h4`,{className:`font-medium text-[0.75rem] text-ink-3 tracking-wide`,children:e}),(0,O.jsx)(`ul`,{className:`divide-y divide-border-soft`,children:t.map(e=>(0,O.jsx)(A,{...e},e.name))})]})}function P({active:e}){let[t,n]=(0,T.useState)(null),[a,o]=(0,T.useState)(``);(0,T.useEffect)(()=>{if(!e||t)return;let r=!1;return m(()=>import(`./oss-credits-6A3pxilr.js`).then(e=>{r||n(e.default)}),[]),()=>{r=!0}},[e,t]),(0,T.useEffect)(()=>{e||o(``)},[e]);let c=a.trim().toLowerCase(),l=e=>c?e.filter(e=>k(c,e.name,e.license,f(e.description))):e,u=e=>c?e.filter(e=>k(c,e.name,e.license,e.version)):e,d=l(E),p=l(D),h=t?[{id:`shared`,label:f(`about.creditsShared`),packages:u(t.shared)},...t.groups.map(e=>({id:e.id,label:e.label,packages:u(e.packages)}))].filter(e=>e.packages.length>0):[],g=d.length===0&&p.length===0&&h.length===0;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`p`,{className:`mb-4 text-[0.875rem] text-ink-3`,children:f(`about.creditsHint`)}),(0,O.jsx)(r,{type:`search`,value:a,placeholder:f(`about.search`),onChange:e=>o(e.target.value)}),d.length>0?(0,O.jsx)(j,{title:f(`about.creditsProduct`),children:(0,O.jsx)(M,{credits:d})}):null,p.length>0?(0,O.jsx)(j,{title:f(`about.creditsBuiltWith`),children:(0,O.jsx)(M,{credits:p})}):null,t===null?(0,O.jsx)(`div`,{className:`flex justify-center py-10 text-ink-3`,children:(0,O.jsx)(i,{})}):h.length>0?(0,O.jsx)(j,{title:f(`about.creditsDeps`),hint:c?void 0:f(`about.creditsDepsHint`),children:h.map(e=>(0,O.jsx)(N,{label:e.label,packages:e.packages},e.id))}):null,t!==null&&g?(0,O.jsx)(s,{children:f(`about.noMatches`)}):null]})}var F=[`new`,`earlier`,`credits`],I=e=>f(e===`new`?`about.tab.new`:e===`earlier`?`about.tab.earlier`:`about.credits`),L=e=>e===1?f(`about.change`):f(`about.changes`,{n:e});function R({me:e,active:t,initialTab:n=`new`}){let r=e?.mode===`local`,{data:o,latest:s}=g(r&&t),[c,u]=(0,T.useState)(null),[p,m]=(0,T.useState)(n);(0,T.useEffect)(()=>m(n),[n]);let E=b(F.indexOf(p)),D=o?.newer&&s?s:_;(0,T.useEffect)(()=>{if(!t)return;let e=!1;return u(null),S(D===`0.9.2`?void 0:D).then(t=>{e||u(t)}),()=>{e=!0}},[t,D]);let k=c?.find(e=>e.version===`v${D}`)??c?.[0]??null,A=c?.filter(e=>e!==k)??[],j=r?o?.kind??null:`cloud`;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(`div`,{className:`flex flex-col items-center pt-4 text-center`,children:[(0,O.jsx)(h,{size:96}),(0,O.jsxs)(`div`,{className:`mt-4 font-display font-semibold text-[1.5rem] tracking-tight`,children:[`engenty`,(0,O.jsx)(`span`,{className:`text-ember`,children:`.`}),(0,O.jsx)(`span`,{className:`ml-1.5 font-normal text-ink-3`,children:`wizards`})]}),(0,O.jsxs)(`div`,{className:`mt-1 text-[0.9375rem] text-ink-3 tabular-nums`,children:[f(`about.version`,{v:_}),j?` · ${f(`about.kind.${j}`)}`:``]})]}),r?(0,O.jsx)(`div`,{className:`mt-5`,children:(0,O.jsx)(v,{enabled:t})}):null,(0,O.jsx)(`div`,{className:`mt-6 flex justify-center`,children:(0,O.jsx)(a,{value:p,onChange:m,options:F.map(e=>({id:e,label:I(e)})),label:f(`about.title`)})}),(0,O.jsxs)(`div`,{className:l(`mt-5`,y(E)),children:[p===`new`?c===null?(0,O.jsx)(`div`,{className:`flex justify-center py-6 text-ink-3`,children:(0,O.jsx)(i,{})}):k?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(`h3`,{className:`flex items-baseline gap-3 border-border-soft border-b pb-2 font-display font-semibold text-[1rem]`,children:[w(k),(0,O.jsx)(`span`,{className:`font-normal font-sans text-[0.8125rem] text-ink-3 tabular-nums`,children:C(k)})]}),(0,O.jsx)(`div`,{className:`mt-3`,children:(0,O.jsx)(x,{release:k})})]}):(0,O.jsx)(`p`,{className:`text-[0.875rem] text-ink-3`,children:f(`about.changelogEmpty`)}):null,p===`earlier`?(0,O.jsx)(`div`,{className:`flex flex-col divide-y divide-border-soft`,children:A.map(e=>(0,O.jsxs)(`details`,{className:`group/r py-2`,children:[(0,O.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-baseline gap-3 text-[0.875rem] [&::-webkit-details-marker]:hidden`,children:[(0,O.jsx)(d,{className:`size-3.5 shrink-0 self-center text-ink-4 transition group-open/r:rotate-90`}),(0,O.jsx)(`span`,{className:`font-medium text-ink tabular-nums`,children:w(e)}),(0,O.jsx)(`span`,{className:`text-[0.8125rem] text-ink-3 tabular-nums`,children:C(e)}),(0,O.jsx)(`span`,{className:`ml-auto text-[0.8125rem] text-ink-4`,children:L(e.commits.length)})]}),(0,O.jsx)(`div`,{className:`mt-2 pl-6`,children:(0,O.jsx)(x,{release:e})})]},e.version??`unreleased`))}):null,p===`credits`?(0,O.jsx)(P,{active:!0}):null]},p)]})}function z({open:e,onClose:t,me:n}){return(0,O.jsxs)(o,{open:e,onClose:t,wide:!0,height:`tall`,children:[(0,O.jsx)(`div`,{className:`-mt-2 -mr-2 sticky top-0 z-10 flex h-0 justify-end`,children:(0,O.jsx)(p,{label:f(`common.close`),onClick:t,children:(0,O.jsx)(u,{className:`size-4`})})}),(0,O.jsx)(R,{me:n,active:e})]})}export{z as AboutDialog,R as AboutPanel};
|