@engenty/wizards-runtime 0.11.2 → 0.11.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.
Files changed (89) hide show
  1. package/apps/runtime/dist/agents/studio-assistant.js +2 -2
  2. package/apps/runtime/dist/app.js +4 -0
  3. package/apps/runtime/dist/assistant/primer.js +2 -2
  4. package/apps/runtime/dist/auth/index.js +32 -7
  5. package/apps/runtime/dist/docs/dev/licensing.md +53 -28
  6. package/apps/runtime/dist/docs/dev/plugins/events.md +1 -1
  7. package/apps/runtime/dist/docs/dev/plugins/index.md +1 -1
  8. package/apps/runtime/dist/docs/dev/plugins/space.md +1 -1
  9. package/apps/runtime/dist/docs/dev/plugins/studio.md +5 -4
  10. package/apps/runtime/dist/docs/dev/wizard-format/index.md +5 -5
  11. package/apps/runtime/dist/docs/dev/wizard-format/motion-graphics-steps.md +17 -9
  12. package/apps/runtime/dist/docs/dev/wizard-format/themes.md +1 -1
  13. package/apps/runtime/dist/docs/user-guide/create-account.md +11 -4
  14. package/apps/runtime/dist/docs/user-guide/first-start.md +10 -2
  15. package/apps/runtime/dist/docs/user-guide/plugins.md +1 -1
  16. package/apps/runtime/dist/docs/user-guide/space.md +15 -7
  17. package/apps/runtime/dist/docs/user-guide/steps.md +10 -9
  18. package/apps/runtime/dist/docs/user-guide/troubleshooting.md +3 -3
  19. package/apps/runtime/dist/manage.js +60 -2
  20. package/apps/runtime/dist/routes/marketplace.js +26 -2
  21. package/apps/runtime/dist/routes/organization.js +114 -0
  22. package/apps/runtime/dist/routes/person.js +45 -0
  23. package/apps/runtime/dist/routes/studio.js +63 -7
  24. package/apps/runtime/dist/services/onboarding-find.js +123 -0
  25. package/apps/runtime/dist/services/onboarding.js +77 -16
  26. package/apps/runtime/dist/services/organization-context.js +40 -0
  27. package/apps/runtime/dist/texts.js +12 -1
  28. package/apps/web/dist/assets/{AboutDialog-Bx6j5lZO.js → AboutDialog-B7ThTqw4.js} +1 -1
  29. package/apps/web/dist/assets/{ChangelogDialog-C620Sw_A.js → ChangelogDialog-DBpXTjxr.js} +1 -1
  30. package/apps/web/dist/assets/{CodeEditor-DifBNaqQ.js → CodeEditor-BTcAUlGY.js} +1 -1
  31. package/apps/web/dist/assets/EditorPage-B_cFXR-B.js +3 -0
  32. package/apps/web/dist/assets/{FlowPreview-ucwQ_dTr.js → FlowPreview-Sjnlj0OO.js} +1 -1
  33. package/apps/web/dist/assets/{Harness-Br0Z_anI.js → Harness-BKl73EG5.js} +2 -2
  34. package/apps/web/dist/assets/Marketplace-BNu-Hjzu.js +2 -0
  35. package/apps/web/dist/assets/{NewWizardChannels-Cau6XSbl.js → NewWizardChannels-DarxdQRt.js} +1 -1
  36. package/apps/web/dist/assets/NewWizardPage-BCoPZjp5.js +7 -0
  37. package/apps/web/dist/assets/OnboardingPage-qV_YA_mZ.js +1 -0
  38. package/apps/web/dist/assets/PreviewPane-B5_GY6Cv.js +10 -0
  39. package/apps/web/dist/assets/ProjectPage-Bcc81_KO.js +1 -0
  40. package/apps/web/dist/assets/PublicRunner-hlxaESAv.js +1 -0
  41. package/apps/web/dist/assets/{ReadOnly-DGBDtXFP.js → ReadOnly-BUnTzhA3.js} +1 -1
  42. package/apps/web/dist/assets/SettingsPage-BoA-ykQU.js +2 -0
  43. package/apps/web/dist/assets/SetupPage-DAgnVxDA.js +1 -0
  44. package/apps/web/dist/assets/{SharePage-BhWeqF3w.js → SharePage-aKBNZDby.js} +1 -1
  45. package/apps/web/dist/assets/changelog-DwJOKc4z.js +1 -0
  46. package/apps/web/dist/assets/{coins-CwURUZyt.js → coins-C8RAtYAu.js} +1 -1
  47. package/apps/web/dist/assets/i18n-Bq6dt_qv.js +55 -0
  48. package/apps/web/dist/assets/index-BdwA-8jc.js +34 -0
  49. package/apps/web/dist/assets/index-DQc1EITf.css +1 -0
  50. package/apps/web/dist/assets/{phone-DTxGRwhK.js → phone-DTuPPVhC.js} +1 -1
  51. package/apps/web/dist/assets/{runners-BMOIT6Ze.js → runners-BcK_yEKU.js} +1 -1
  52. package/apps/web/dist/assets/session-C7ciCzbV.js +2 -0
  53. package/apps/web/dist/assets/settings-menu-b7am2SP5.js +1 -0
  54. package/apps/web/dist/assets/theme-BOAjs_xb.js +11 -0
  55. package/apps/web/dist/assets/{ui-gsqxnFnT.js → ui-DKK_O65k.js} +4 -4
  56. package/apps/web/dist/assets/{upload-BkwjFS-0.js → upload-Cbcw8l_0.js} +1 -1
  57. package/apps/web/dist/assets/{useMutation-BS-U9g_a.js → useMutation-D8Bpwvs1.js} +1 -1
  58. package/apps/web/dist/assets/{volume-2-CYOgux-z.js → volume-2-CgRP_A7r.js} +1 -1
  59. package/apps/web/dist/assets/{wrench-DIfUvYPN.js → wrench-me5bf7bd.js} +1 -1
  60. package/apps/web/dist/index.html +9 -9
  61. package/apps/web/dist/mcp/flow.html +2 -2
  62. package/node_modules/@engenty/wizards/dist/plugin/index.d.ts +1 -1
  63. package/node_modules/@engenty/wizards/dist/plugin/studio.d.ts +5 -5
  64. package/node_modules/@engenty/wizards-shared/dist/addresses.d.ts +17 -0
  65. package/node_modules/@engenty/wizards-shared/dist/addresses.js +97 -0
  66. package/node_modules/@engenty/wizards-shared/dist/feature-flags.d.ts +9 -3
  67. package/node_modules/@engenty/wizards-shared/dist/feature-flags.js +9 -3
  68. package/node_modules/@engenty/wizards-shared/dist/marketplace.d.ts +7 -0
  69. package/node_modules/@engenty/wizards-shared/dist/sectors.d.ts +24 -0
  70. package/node_modules/@engenty/wizards-shared/dist/sectors.js +319 -0
  71. package/package.json +1 -1
  72. package/plugin/.claude-plugin/plugin.json +1 -1
  73. package/plugin/plugin.json +1 -1
  74. package/apps/web/dist/assets/EditorPage-DWf9QG-U.js +0 -3
  75. package/apps/web/dist/assets/Marketplace-CFDpVMWM.js +0 -2
  76. package/apps/web/dist/assets/NewWizardPage-CrFqInHR.js +0 -7
  77. package/apps/web/dist/assets/OnboardingPage-BZk42_R7.js +0 -1
  78. package/apps/web/dist/assets/PreviewPane-D9n6tylf.js +0 -10
  79. package/apps/web/dist/assets/ProjectPage-CteRfxpz.js +0 -1
  80. package/apps/web/dist/assets/PublicRunner-CNanj6-w.js +0 -1
  81. package/apps/web/dist/assets/SettingsPage-ClFQewEL.js +0 -2
  82. package/apps/web/dist/assets/SetupPage-k9gyFvow.js +0 -1
  83. package/apps/web/dist/assets/changelog-BrhGlZT6.js +0 -1
  84. package/apps/web/dist/assets/i18n-DEmaSTJV.js +0 -55
  85. package/apps/web/dist/assets/index-ClNm5JaU.js +0 -34
  86. package/apps/web/dist/assets/index-DImS12WR.css +0 -1
  87. package/apps/web/dist/assets/session-xJpGiTU_.js +0 -2
  88. package/apps/web/dist/assets/settings-menu-DcPFhgGA.js +0 -1
  89. package/apps/web/dist/assets/theme-DTi1Zdw8.js +0 -11
@@ -197,7 +197,7 @@ export interface PluginSpaceContext {
197
197
  */
198
198
  steps?: ("agent" | "html")[];
199
199
  }
200
- /** A space's brand as the studio's Info & brand has it: what a plugin draws or writes in its look. */
200
+ /** A space's brand as the studio's Info and Brand have it: what a plugin draws or writes in its look. */
201
201
  export interface PluginBrand {
202
202
  /** The title end users see. */
203
203
  name: string;
@@ -36,11 +36,11 @@ export interface StudioSettingsSection {
36
36
  menu?: boolean;
37
37
  }
38
38
  /**
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), `page`
39
+ * The parts of the space page: `info` (who the space is: its title, what it does, its facts),
40
+ * `brand` (how it looks: its logos, colours, type and assets), `knowledge` (its documents and what its steps search), `data` (what its wizards keep), `page`
41
41
  * (its public page at `<organization>.wizards.page/<slug>`) and `results` (what its runs produced).
42
42
  */
43
- export type StudioSpaceGroup = "info" | "knowledge" | "data" | "page" | "results";
43
+ export type StudioSpaceGroup = "info" | "brand" | "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;
@@ -57,7 +57,7 @@ export interface StudioSpaceSection {
57
57
  component: ComponentType;
58
58
  }
59
59
  /**
60
- * A part of the space page of the plugin's own, beside Info & brand, Knowledge, Data and
60
+ * A part of the space page of the plugin's own, beside Info, Brand, Knowledge, Data and
61
61
  * Results: an entry in the parts' menu and a page at `/space/<id>`. The component draws the
62
62
  * whole part; `useSpaceMenu` fills the part's menu with what it draws.
63
63
  */
@@ -159,7 +159,7 @@ export interface StudioAssistantCard {
159
159
  tool: string;
160
160
  component: ComponentType<StudioAssistantCardProps<any>>;
161
161
  }
162
- /** A space's brand as Info & brand has it: what a plugin draws in its look. */
162
+ /** A space's brand as Info and Brand have it: what a plugin draws in its look. */
163
163
  export interface StudioBrand {
164
164
  /** The title end users see. */
165
165
  name: string;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The addresses an organization or a person is found under on the web: a website, a blog, its
3
+ * profiles on social networks. The studio's first visit offers them to tick and reads them into
4
+ * the space.
5
+ */
6
+ /** Addresses anyone can have: they say nothing about a business. */
7
+ export declare const FREE_MAIL: Set<string>;
8
+ /** The domain of an e-mail address that belongs to an organization; null for free mail. */
9
+ export declare function organizationDomain(email: string): string | null;
10
+ export declare const ADDRESS_KINDS: readonly ["website", "blog", "linkedin", "instagram", "facebook", "youtube", "x", "xing", "tiktok"];
11
+ export type AddressKind = (typeof ADDRESS_KINDS)[number];
12
+ /** How a kind of address is called, the same in both languages. */
13
+ export declare const ADDRESS_NAMES: Record<AddressKind, string>;
14
+ /** An address as a full URL: `baeckerei-huber.at` becomes `https://baeckerei-huber.at/`; null when it is none. */
15
+ export declare function addressUrl(raw: string): string | null;
16
+ /** What an address is, by its host: a network's profile, a blog, else a website. */
17
+ export declare function addressKind(raw: string): AddressKind;
@@ -0,0 +1,97 @@
1
+ /**
2
+ * The addresses an organization or a person is found under on the web: a website, a blog, its
3
+ * profiles on social networks. The studio's first visit offers them to tick and reads them into
4
+ * the space.
5
+ */
6
+ /** Addresses anyone can have: they say nothing about a business. */
7
+ export const FREE_MAIL = new Set([
8
+ "gmail.com",
9
+ "googlemail.com",
10
+ "gmx.at",
11
+ "gmx.de",
12
+ "gmx.net",
13
+ "web.de",
14
+ "outlook.com",
15
+ "hotmail.com",
16
+ "live.com",
17
+ "icloud.com",
18
+ "me.com",
19
+ "yahoo.com",
20
+ "yahoo.de",
21
+ "aon.at",
22
+ "a1.net",
23
+ "chello.at",
24
+ "t-online.de",
25
+ "proton.me",
26
+ "protonmail.com",
27
+ ]);
28
+ /** The domain of an e-mail address that belongs to an organization; null for free mail. */
29
+ export function organizationDomain(email) {
30
+ const domain = (email.split("@")[1] ?? "").trim().toLowerCase();
31
+ return domain.includes(".") && !FREE_MAIL.has(domain) ? domain : null;
32
+ }
33
+ export const ADDRESS_KINDS = [
34
+ "website",
35
+ "blog",
36
+ "linkedin",
37
+ "instagram",
38
+ "facebook",
39
+ "youtube",
40
+ "x",
41
+ "xing",
42
+ "tiktok",
43
+ ];
44
+ /** How a kind of address is called, the same in both languages. */
45
+ export const ADDRESS_NAMES = {
46
+ website: "Website",
47
+ blog: "Blog",
48
+ linkedin: "LinkedIn",
49
+ instagram: "Instagram",
50
+ facebook: "Facebook",
51
+ youtube: "YouTube",
52
+ x: "X",
53
+ xing: "XING",
54
+ tiktok: "TikTok",
55
+ };
56
+ const NETWORKS = [
57
+ ["linkedin", /(^|\.)linkedin\.com$/],
58
+ ["instagram", /(^|\.)instagram\.com$/],
59
+ ["facebook", /(^|\.)(facebook|fb)\.com$/],
60
+ ["youtube", /(^|\.)(youtube\.com|youtu\.be)$/],
61
+ ["x", /(^|\.)(x|twitter)\.com$/],
62
+ ["xing", /(^|\.)xing\.com$/],
63
+ ["tiktok", /(^|\.)tiktok\.com$/],
64
+ ];
65
+ /** An address as a full URL: `baeckerei-huber.at` becomes `https://baeckerei-huber.at/`; null when it is none. */
66
+ export function addressUrl(raw) {
67
+ const text = raw.trim();
68
+ if (!text || /\s/.test(text)) {
69
+ return null;
70
+ }
71
+ try {
72
+ const url = new URL(/^https?:\/\//i.test(text) ? text : `https://${text}`);
73
+ return url.hostname.includes(".") ? url.href : null;
74
+ }
75
+ catch {
76
+ return null;
77
+ }
78
+ }
79
+ /** What an address is, by its host: a network's profile, a blog, else a website. */
80
+ export function addressKind(raw) {
81
+ const url = addressUrl(raw);
82
+ if (!url) {
83
+ return "website";
84
+ }
85
+ const { hostname, pathname } = new URL(url);
86
+ const host = hostname.toLowerCase().replace(/^www\./, "");
87
+ for (const [kind, pattern] of NETWORKS) {
88
+ if (pattern.test(host)) {
89
+ return kind;
90
+ }
91
+ }
92
+ return /^blog\./.test(host) ||
93
+ /^\/blog(\/|$)/.test(pathname) ||
94
+ /(^|\.)(medium|substack)\.com$/.test(host)
95
+ ? "blog"
96
+ : "website";
97
+ }
@@ -57,22 +57,28 @@ export declare const FEATURES: {
57
57
  readonly label: "Organization plans";
58
58
  readonly hint: "The organization page in the cloud studio, and plans that carry this switch on the account pages.";
59
59
  };
60
+ readonly organizationSettings: {
61
+ readonly kind: "release";
62
+ readonly default: false;
63
+ readonly label: "Organization settings in the studio";
64
+ readonly hint: "Settings › Organisation in the cloud studio: the organization's name, its members and invitations, changed there instead of on the account pages.";
65
+ };
60
66
  readonly brandSections: {
61
67
  readonly kind: "release";
62
68
  readonly default: false;
63
- readonly label: "Sections in Info & brand";
69
+ readonly label: "Sections in Brand";
64
70
  readonly hint: "Sections of logos and of colours, gradients and patterns among them.";
65
71
  };
66
72
  readonly brandRules: {
67
73
  readonly kind: "release";
68
74
  readonly default: false;
69
- readonly label: "Rules in Info & brand";
75
+ readonly label: "Rules in Brand";
70
76
  readonly hint: "Rules for how the logos, the colours and the type may be used.";
71
77
  };
72
78
  readonly typography: {
73
79
  readonly kind: "release";
74
80
  readonly default: false;
75
- readonly label: "Typography in Info & brand";
81
+ readonly label: "Typography in Brand";
76
82
  readonly hint: "The brand's fonts, their licences and a type scale.";
77
83
  };
78
84
  readonly channelVoice: {
@@ -49,22 +49,28 @@ export const FEATURES = {
49
49
  label: "Organization plans",
50
50
  hint: "The organization page in the cloud studio, and plans that carry this switch on the account pages.",
51
51
  },
52
+ organizationSettings: {
53
+ kind: "release",
54
+ default: false,
55
+ label: "Organization settings in the studio",
56
+ hint: "Settings › Organisation in the cloud studio: the organization's name, its members and invitations, changed there instead of on the account pages.",
57
+ },
52
58
  brandSections: {
53
59
  kind: "release",
54
60
  default: false,
55
- label: "Sections in Info & brand",
61
+ label: "Sections in Brand",
56
62
  hint: "Sections of logos and of colours, gradients and patterns among them.",
57
63
  },
58
64
  brandRules: {
59
65
  kind: "release",
60
66
  default: false,
61
- label: "Rules in Info & brand",
67
+ label: "Rules in Brand",
62
68
  hint: "Rules for how the logos, the colours and the type may be used.",
63
69
  },
64
70
  typography: {
65
71
  kind: "release",
66
72
  default: false,
67
- label: "Typography in Info & brand",
73
+ label: "Typography in Brand",
68
74
  hint: "The brand's fonts, their licences and a type scale.",
69
75
  },
70
76
  channelVoice: {
@@ -132,6 +132,8 @@ export interface MarketplaceSummary {
132
132
  costume?: EngentyCostume;
133
133
  formats: ItemFormat[];
134
134
  industries: Industry[];
135
+ /** The catalog sectors it is made for (`bakeries`, `lawFirms`, sectors.ts); left out: none in particular. */
136
+ sectors?: string[];
135
137
  useCases: UseCase[];
136
138
  capabilities: Capability[];
137
139
  effort: Effort;
@@ -226,5 +228,10 @@ export interface MarketplaceEntry extends MarketplaceSummary {
226
228
  };
227
229
  /** The plugins it needs that this app does not have: a wizard made from it would not run. */
228
230
  needs?: string[];
231
+ /**
232
+ * Why it stands where it does in the list for an organization (the new-wizard page): its
233
+ * sector, the industry of its sector, words of its wishes, or its kind.
234
+ */
235
+ fit?: "sector" | "industry" | "wish" | "kind";
229
236
  }
230
237
  export {};
@@ -0,0 +1,24 @@
1
+ import type { Industry } from "./marketplace.js";
2
+ /**
3
+ * The sectors the template catalogs are built for: “Wizards für Bäckereien”, “Wizards für
4
+ * Kanzleien”. The studio's first visit picks one for the organization, and the new-wizard page
5
+ * puts the templates of its sector first. Each belongs to one of the catalog's broad industries.
6
+ */
7
+ export interface Sector {
8
+ id: string;
9
+ industry: Industry;
10
+ /** The plural, as a catalog names its people: “Bäckereien”, “Bakeries”. */
11
+ name: {
12
+ de: string;
13
+ en: string;
14
+ };
15
+ /** Words that point to it, lower case, in both languages: a site's text, the answers. */
16
+ words: string[];
17
+ }
18
+ export declare const SECTORS: Sector[];
19
+ export declare const sectorOf: (id: string | null | undefined) => Sector | null;
20
+ /**
21
+ * The sectors a text points to, the best first: each word of a sector found in the text counts,
22
+ * a longer word more. Nothing where no word is found.
23
+ */
24
+ export declare function matchSectors(text: string, most?: number): string[];
@@ -0,0 +1,319 @@
1
+ export const SECTORS = [
2
+ {
3
+ id: "bakeries",
4
+ industry: "gastronomy",
5
+ name: { de: "Bäckereien", en: "Bakeries" },
6
+ words: [
7
+ "bäckerei",
8
+ "bäcker",
9
+ "backstube",
10
+ "brot",
11
+ "gebäck",
12
+ "konditorei",
13
+ "bakery",
14
+ "bread",
15
+ "pastry",
16
+ ],
17
+ },
18
+ {
19
+ id: "cafes",
20
+ industry: "gastronomy",
21
+ name: { de: "Cafés", en: "Cafés" },
22
+ words: ["café", "cafe", "kaffeehaus", "kaffee", "coffee", "espresso"],
23
+ },
24
+ {
25
+ id: "restaurants",
26
+ industry: "gastronomy",
27
+ name: { de: "Restaurants", en: "Restaurants" },
28
+ words: [
29
+ "restaurant",
30
+ "gasthaus",
31
+ "gasthof",
32
+ "wirtshaus",
33
+ "pizzeria",
34
+ "küche",
35
+ "speisekarte",
36
+ "menu",
37
+ "bistro",
38
+ ],
39
+ },
40
+ {
41
+ id: "hotels",
42
+ industry: "hospitality",
43
+ name: { de: "Hotels und Pensionen", en: "Hotels and guesthouses" },
44
+ words: [
45
+ "hotel",
46
+ "pension",
47
+ "zimmer",
48
+ "übernachtung",
49
+ "ferienwohnung",
50
+ "guesthouse",
51
+ "booking",
52
+ "rooms",
53
+ ],
54
+ },
55
+ {
56
+ id: "architects",
57
+ industry: "professional",
58
+ name: { de: "Architekturbüros", en: "Architects" },
59
+ words: ["architekt", "architektur", "planung", "entwurf", "architect", "architecture"],
60
+ },
61
+ {
62
+ id: "lawFirms",
63
+ industry: "professional",
64
+ name: { de: "Kanzleien", en: "Law firms" },
65
+ words: [
66
+ "rechtsanwalt",
67
+ "anwalt",
68
+ "kanzlei",
69
+ "recht",
70
+ "notar",
71
+ "law firm",
72
+ "lawyer",
73
+ "attorney",
74
+ "legal",
75
+ ],
76
+ },
77
+ {
78
+ id: "taxAdvisors",
79
+ industry: "professional",
80
+ name: { de: "Steuerberatung", en: "Tax advisors" },
81
+ words: [
82
+ "steuerberatung",
83
+ "steuerberater",
84
+ "steuer",
85
+ "buchhaltung",
86
+ "lohnverrechnung",
87
+ "bilanz",
88
+ "tax",
89
+ "accounting",
90
+ "bookkeeping",
91
+ ],
92
+ },
93
+ {
94
+ id: "consultants",
95
+ industry: "professional",
96
+ name: { de: "Beratung", en: "Consultants" },
97
+ words: ["beratung", "berater", "consulting", "coaching", "consultant"],
98
+ },
99
+ {
100
+ id: "physiotherapy",
101
+ industry: "health",
102
+ name: { de: "Physiotherapie", en: "Physiotherapy" },
103
+ words: ["physiotherapie", "physio", "massage", "therapie", "physiotherapy"],
104
+ },
105
+ {
106
+ id: "practices",
107
+ industry: "health",
108
+ name: { de: "Arztpraxen", en: "Doctors’ practices" },
109
+ words: ["arzt", "ärztin", "praxis", "ordination", "zahnarzt", "doctor", "clinic", "dentist"],
110
+ },
111
+ {
112
+ id: "hairdressers",
113
+ industry: "retail",
114
+ name: { de: "Friseur und Kosmetik", en: "Hair and beauty" },
115
+ words: ["friseur", "frisör", "kosmetik", "nagelstudio", "beauty", "hairdresser", "salon"],
116
+ },
117
+ {
118
+ id: "joiners",
119
+ industry: "trades",
120
+ name: { de: "Tischlereien", en: "Joiners" },
121
+ words: [
122
+ "tischlerei",
123
+ "tischler",
124
+ "schreiner",
125
+ "möbel",
126
+ "holz",
127
+ "joinery",
128
+ "carpenter",
129
+ "furniture",
130
+ ],
131
+ },
132
+ {
133
+ id: "electricians",
134
+ industry: "trades",
135
+ name: { de: "Elektrotechnik", en: "Electricians" },
136
+ words: ["elektriker", "elektro", "elektrotechnik", "photovoltaik", "electrician", "electrical"],
137
+ },
138
+ {
139
+ id: "plumbing",
140
+ industry: "trades",
141
+ name: { de: "Installateure", en: "Plumbing and heating" },
142
+ words: ["installateur", "sanitär", "heizung", "klima", "plumber", "plumbing", "heating"],
143
+ },
144
+ {
145
+ id: "windows",
146
+ industry: "trades",
147
+ name: { de: "Fensterbau", en: "Window makers" },
148
+ words: ["fenster", "türen", "fensterbau", "sonnenschutz", "windows", "doors"],
149
+ },
150
+ {
151
+ id: "construction",
152
+ industry: "trades",
153
+ name: { de: "Bau und Handwerk", en: "Building and trades" },
154
+ words: [
155
+ "bau",
156
+ "baumeister",
157
+ "maler",
158
+ "dachdecker",
159
+ "handwerk",
160
+ "construction",
161
+ "builder",
162
+ "painter",
163
+ "roofer",
164
+ ],
165
+ },
166
+ {
167
+ id: "realEstate",
168
+ industry: "realEstate",
169
+ name: { de: "Immobilien", en: "Real estate" },
170
+ words: [
171
+ "immobilien",
172
+ "makler",
173
+ "wohnung",
174
+ "miete",
175
+ "hausverwaltung",
176
+ "real estate",
177
+ "property",
178
+ "estate agent",
179
+ ],
180
+ },
181
+ {
182
+ id: "onlineShops",
183
+ industry: "retail",
184
+ name: { de: "Online-Shops", en: "Online shops" },
185
+ words: [
186
+ "online-shop",
187
+ "onlineshop",
188
+ "shop",
189
+ "versand",
190
+ "e-commerce",
191
+ "webshop",
192
+ "online store",
193
+ ],
194
+ },
195
+ {
196
+ id: "retail",
197
+ industry: "retail",
198
+ name: { de: "Handel", en: "Retail" },
199
+ words: ["geschäft", "handel", "laden", "boutique", "retail", "store"],
200
+ },
201
+ {
202
+ id: "agencies",
203
+ industry: "agency",
204
+ name: { de: "Agenturen", en: "Agencies" },
205
+ words: [
206
+ "agentur",
207
+ "werbung",
208
+ "marketing",
209
+ "design",
210
+ "kommunikation",
211
+ "agency",
212
+ "advertising",
213
+ "branding",
214
+ ],
215
+ },
216
+ {
217
+ id: "photographers",
218
+ industry: "agency",
219
+ name: { de: "Fotografie", en: "Photographers" },
220
+ words: ["fotograf", "fotografie", "foto", "photographer", "photography"],
221
+ },
222
+ {
223
+ id: "events",
224
+ industry: "events",
225
+ name: { de: "Veranstaltungen", en: "Events" },
226
+ words: ["event", "veranstaltung", "hochzeit", "catering", "konferenz", "wedding", "conference"],
227
+ },
228
+ {
229
+ id: "itServices",
230
+ industry: "professional",
231
+ name: { de: "IT-Dienstleister", en: "IT services" },
232
+ words: [
233
+ "it-dienstleister",
234
+ "it-service",
235
+ "software",
236
+ "webentwicklung",
237
+ "hosting",
238
+ "netzwerk",
239
+ "development",
240
+ "web design",
241
+ ],
242
+ },
243
+ {
244
+ id: "cleaning",
245
+ industry: "trades",
246
+ name: { de: "Reinigung", en: "Cleaning" },
247
+ words: ["reinigung", "gebäudereinigung", "putz", "cleaning", "janitorial"],
248
+ },
249
+ {
250
+ id: "footballClubs",
251
+ industry: "any",
252
+ name: { de: "Fußballvereine", en: "Football clubs" },
253
+ words: ["fußball", "fussball", "fc", "sv", "kicker", "football", "soccer"],
254
+ },
255
+ {
256
+ id: "sportsClubs",
257
+ industry: "any",
258
+ name: { de: "Sportvereine", en: "Sports clubs" },
259
+ words: ["sportverein", "verein", "turnen", "tennis", "laufen", "sport", "club"],
260
+ },
261
+ {
262
+ id: "musicClubs",
263
+ industry: "events",
264
+ name: { de: "Musikvereine und Chöre", en: "Music clubs and choirs" },
265
+ words: ["musikverein", "blasmusik", "chor", "kapelle", "orchester", "band", "choir", "music"],
266
+ },
267
+ {
268
+ id: "fireBrigades",
269
+ industry: "publicSector",
270
+ name: { de: "Feuerwehren", en: "Fire brigades" },
271
+ words: ["feuerwehr", "rettung", "rotes kreuz", "fire brigade", "rescue"],
272
+ },
273
+ {
274
+ id: "schools",
275
+ industry: "publicSector",
276
+ name: { de: "Schulen und Bildung", en: "Schools and education" },
277
+ words: [
278
+ "schule",
279
+ "kurs",
280
+ "weiterbildung",
281
+ "akademie",
282
+ "nachhilfe",
283
+ "school",
284
+ "course",
285
+ "training",
286
+ ],
287
+ },
288
+ {
289
+ id: "municipalities",
290
+ industry: "publicSector",
291
+ name: { de: "Gemeinden", en: "Municipalities" },
292
+ words: ["gemeinde", "stadt", "bürgerservice", "amt", "municipality", "council", "town"],
293
+ },
294
+ {
295
+ id: "associations",
296
+ industry: "any",
297
+ name: { de: "Vereine und Initiativen", en: "Associations" },
298
+ words: ["verein", "initiative", "ehrenamt", "verband", "association", "nonprofit", "charity"],
299
+ },
300
+ ];
301
+ export const sectorOf = (id) => SECTORS.find((s) => s.id === id) ?? null;
302
+ /**
303
+ * The sectors a text points to, the best first: each word of a sector found in the text counts,
304
+ * a longer word more. Nothing where no word is found.
305
+ */
306
+ export function matchSectors(text, most = 3) {
307
+ const hay = ` ${text
308
+ .toLowerCase()
309
+ .normalize("NFC")
310
+ .replace(/[^\p{L}\p{N}-]+/gu, " ")} `;
311
+ return SECTORS.map((s) => ({
312
+ id: s.id,
313
+ score: s.words.reduce((sum, w) => sum + (hay.includes(` ${w}`) ? Math.min(3, w.length / 4) : 0), 0),
314
+ }))
315
+ .filter((x) => x.score > 0)
316
+ .sort((a, b) => b.score - a.score)
317
+ .slice(0, most)
318
+ .map((x) => x.id);
319
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engenty/wizards-runtime",
3
- "version": "0.11.2",
3
+ "version": "0.11.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",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wizards",
3
3
  "displayName": "engenty wizards",
4
- "version": "0.11.2",
4
+ "version": "0.11.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"
@@ -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.11.2",
4
+ "version": "0.11.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",