@engenty/wizards-runtime 0.9.5 → 0.9.7

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 (108) hide show
  1. package/apps/runtime/dist/agents/architect.js +2 -2
  2. package/apps/runtime/dist/agents/chat-clients.js +299 -0
  3. package/apps/runtime/dist/agents/company.js +111 -0
  4. package/apps/runtime/dist/agents/studio-assistant.js +8 -4
  5. package/apps/runtime/dist/agents/subscription.js +163 -134
  6. package/apps/runtime/dist/agents/website.js +571 -53
  7. package/apps/runtime/dist/app.js +6 -3
  8. package/apps/runtime/dist/assistant/knows.js +5 -5
  9. package/apps/runtime/dist/assistant/primer.js +3 -3
  10. package/apps/runtime/dist/auth/account.js +12 -12
  11. package/apps/runtime/dist/auth/keys.js +18 -8
  12. package/apps/runtime/dist/cli/account.js +20 -18
  13. package/apps/runtime/dist/cli/features.js +3 -3
  14. package/apps/runtime/dist/cli/ui.js +6 -0
  15. package/apps/runtime/dist/db/schema.js +1 -1
  16. package/apps/runtime/dist/docs/dev/plugins/index.md +1 -1
  17. package/apps/runtime/dist/docs/dev/plugins/server.md +2 -2
  18. package/apps/runtime/dist/docs/dev/plugins/studio.md +1 -1
  19. package/apps/runtime/dist/docs/user-guide/ai-apps.md +1 -1
  20. package/apps/runtime/dist/docs/user-guide/command-line.md +1 -1
  21. package/apps/runtime/dist/docs/user-guide/create-account.md +6 -6
  22. package/apps/runtime/dist/docs/user-guide/first-start.md +1 -1
  23. package/apps/runtime/dist/docs/user-guide/index.md +5 -5
  24. package/apps/runtime/dist/docs/user-guide/models.md +14 -8
  25. package/apps/runtime/dist/docs/user-guide/space.md +1 -1
  26. package/apps/runtime/dist/features.js +4 -4
  27. package/apps/runtime/dist/harness/cursor.js +4 -0
  28. package/apps/runtime/dist/manage.js +4 -4
  29. package/apps/runtime/dist/mcp/auth.js +1 -1
  30. package/apps/runtime/dist/models.js +75 -5
  31. package/apps/runtime/dist/routes/lang.js +13 -4
  32. package/apps/runtime/dist/routes/runs.js +1 -1
  33. package/apps/runtime/dist/routes/studio.js +66 -37
  34. package/apps/runtime/dist/services/access.js +3 -3
  35. package/apps/runtime/dist/services/architect.js +4 -2
  36. package/apps/runtime/dist/services/assistant-chats.js +10 -1
  37. package/apps/runtime/dist/services/onboarding.js +268 -48
  38. package/apps/runtime/dist/services/pages.js +17 -15
  39. package/apps/runtime/dist/services/wizards.js +2 -2
  40. package/apps/runtime/dist/texts.js +42 -8
  41. package/apps/web/dist/assets/{AboutDialog-lUBGgvKu.js → AboutDialog-B3tljxg5.js} +1 -1
  42. package/apps/web/dist/assets/{ChangelogDialog-B2IJbKX8.js → ChangelogDialog-DfWTNzyl.js} +1 -1
  43. package/apps/web/dist/assets/EditorPage-XDdz2UM4.js +4 -0
  44. package/apps/web/dist/assets/{FlowPreview-BUKI8h6o.js → FlowPreview-CKNVCFbp.js} +1 -1
  45. package/apps/web/dist/assets/{Harness-D35I3Jlp.js → Harness-BCec49Cq.js} +2 -2
  46. package/apps/web/dist/assets/Marketplace-BuYeaxK2.js +2 -0
  47. package/apps/web/dist/assets/{NewWizardChannels-PDeL4f5D.js → NewWizardChannels-DRNji-bk.js} +1 -1
  48. package/apps/web/dist/assets/NewWizardPage-4TpgYOaI.js +7 -0
  49. package/apps/web/dist/assets/OnboardingPage-Cf52NOIt.js +1 -0
  50. package/apps/web/dist/assets/PreviewPane-C4yMcZPM.js +4 -0
  51. package/apps/web/dist/assets/ProjectPage-D6Tah3QK.js +1 -0
  52. package/apps/web/dist/assets/{PublicRunner-BnT-zZrI.js → PublicRunner-Bftc1c4m.js} +1 -1
  53. package/apps/web/dist/assets/{ReadOnly-C5fdw_kg.js → ReadOnly-DVQm9IYx.js} +1 -1
  54. package/apps/web/dist/assets/SettingsPage-Cd-osLDu.js +2 -0
  55. package/apps/web/dist/assets/SetupPage-Dc8U5k5P.js +1 -0
  56. package/apps/web/dist/assets/{SharePage-BiPJsotS.js → SharePage-Cn-bqSyr.js} +1 -1
  57. package/apps/web/dist/assets/changelog-CjSBB-a4.js +1 -0
  58. package/apps/web/dist/assets/{coins-DVGgwSrK.js → coins-DgDTBbeg.js} +1 -1
  59. package/apps/web/dist/assets/index-DS3zUVw_.css +1 -0
  60. package/apps/web/dist/assets/index-Da7hPToW.js +14 -0
  61. package/apps/web/dist/assets/oss-credits-C2JUsf2d.js +1 -0
  62. package/apps/web/dist/assets/{phone-DD2g0U0Q.js → phone-D1Drdiio.js} +1 -1
  63. package/apps/web/dist/assets/preload-helper-DpV6A1kQ.js +1 -0
  64. package/apps/web/dist/assets/{qr-scanner.min-C_UI0gH-.js → qr-scanner.min-BGqShvxG.js} +1 -1
  65. package/apps/web/dist/assets/{runners-D6mK0B73.js → runners-CTd0YAiA.js} +1 -1
  66. package/apps/web/dist/assets/{session-BHCBxqVb.js → session-DX2BcTfz.js} +1 -1
  67. package/apps/web/dist/assets/{settings-menu-DGDn2688.js → settings-menu-ay9jNbQu.js} +1 -1
  68. package/apps/web/dist/assets/theme-DanjuO1H.js +11 -0
  69. package/apps/web/dist/assets/ui-CJCF3Mhe.js +137 -0
  70. package/apps/web/dist/assets/{upload-uc9uftDy.js → upload-Dj7KPL--.js} +1 -1
  71. package/apps/web/dist/assets/{useMutation-BfQIRblT.js → useMutation-CUSQpD-i.js} +1 -1
  72. package/apps/web/dist/assets/{volume-2-BlaOos9n.js → volume-2-CcHZOU2m.js} +1 -1
  73. package/apps/web/dist/assets/{wrench-Cfpkphyw.js → wrench-CfJTFnMJ.js} +1 -1
  74. package/apps/web/dist/index.html +9 -9
  75. package/apps/web/dist/mcp/flow.html +56 -56
  76. package/node_modules/@engenty/wizards/dist/plugin/studio.d.ts +1 -1
  77. package/node_modules/@engenty/wizards-shared/dist/assistant.d.ts +6 -0
  78. package/node_modules/@engenty/wizards-shared/dist/assistant.js +2 -0
  79. package/node_modules/@engenty/wizards-shared/dist/definition.d.ts +4 -0
  80. package/node_modules/@engenty/wizards-shared/dist/definition.js +9 -0
  81. package/node_modules/@engenty/wizards-shared/dist/feature-flags.d.ts +5 -5
  82. package/node_modules/@engenty/wizards-shared/dist/feature-flags.js +5 -5
  83. package/node_modules/@engenty/wizards-shared/dist/features.d.ts +1 -1
  84. package/node_modules/@engenty/wizards-shared/dist/features.js +1 -1
  85. package/node_modules/@engenty/wizards-shared/dist/projects.d.ts +1 -1
  86. package/node_modules/@engenty/wizards-shared/dist/projects.js +2 -2
  87. package/node_modules/@engenty/wizards-shared/dist/providers.d.ts +1 -1
  88. package/node_modules/@engenty/wizards-shared/dist/providers.js +1 -1
  89. package/node_modules/@engenty/wizards-shared/dist/run.d.ts +2 -2
  90. package/node_modules/@engenty/wizards-shared/dist/run.js +4 -4
  91. package/package.json +3 -3
  92. package/plugin/.claude-plugin/plugin.json +1 -1
  93. package/plugin/plugin.json +1 -1
  94. package/apps/web/dist/assets/EditorPage-B1syriTz.js +0 -4
  95. package/apps/web/dist/assets/Marketplace-C-ft5u_6.js +0 -2
  96. package/apps/web/dist/assets/NewWizardPage-BHw086HN.js +0 -7
  97. package/apps/web/dist/assets/OnboardingPage-BYa8Xekc.js +0 -1
  98. package/apps/web/dist/assets/PreviewPane-Cuatuhi-.js +0 -4
  99. package/apps/web/dist/assets/ProjectPage-DTbTN9rE.js +0 -1
  100. package/apps/web/dist/assets/SettingsPage-Bkd5LuRn.js +0 -2
  101. package/apps/web/dist/assets/SetupPage-CHnbGccO.js +0 -1
  102. package/apps/web/dist/assets/changelog-Do_saoEi.js +0 -1
  103. package/apps/web/dist/assets/index-C-u3ZXBZ.js +0 -14
  104. package/apps/web/dist/assets/index-DtjKnB3s.css +0 -1
  105. package/apps/web/dist/assets/oss-credits-D7izqI_0.js +0 -1
  106. package/apps/web/dist/assets/preload-helper-CNEI7N0N.js +0 -1
  107. package/apps/web/dist/assets/theme-DQ10nO_L.js +0 -11
  108. package/apps/web/dist/assets/ui-BV4KP5n2.js +0 -137
@@ -23,7 +23,7 @@ import { PLUGIN_NAME, pluginArchive, pluginMarketplace } from "./plugin.js";
23
23
  import { apiRoutes } from "./routes/api.js";
24
24
  import { browserReport, localDebugRoutes } from "./routes/debug.js";
25
25
  import { internalRoutes } from "./routes/internal.js";
26
- import { notFoundAnswer, requestLang, say } from "./routes/lang.js";
26
+ import { notFoundAnswer, requestLang, say, spelledFor } from "./routes/lang.js";
27
27
  import { marketplaceGuest, marketplaceStudio } from "./routes/marketplace.js";
28
28
  import { publicPluginRoutes } from "./routes/plugin-public.js";
29
29
  import { pluginRoutes } from "./routes/plugins.js";
@@ -41,7 +41,8 @@ const app = new Hono();
41
41
  const { serves } = env;
42
42
  app.onError((err, c) => {
43
43
  if (err instanceof ServiceError) {
44
- return c.json(err.toJSON(requestLang(c)), err.status);
44
+ const body = err.toJSON(requestLang(c));
45
+ return c.json({ ...body, error: spelledFor(c, body.error) }, err.status);
45
46
  }
46
47
  if (err instanceof ZodError) {
47
48
  return c.json({ error: say(c, "invalidInput"), issues: err.issues }, 400);
@@ -338,7 +339,9 @@ if (existsSync(webDir)) {
338
339
  app.all("/w/:token/:runner", (c, next) => pluginRunnerPage(c, next));
339
340
  }
340
341
  app.get("*", async (c) => {
341
- if (!PAGES.test(c.req.path)) {
342
+ // A build's file that is not there (a page loaded before a deploy asks for the old build's)
343
+ // is a 404, never the start page: the app then sees the failed import and loads anew.
344
+ if (!PAGES.test(c.req.path) || c.req.path.startsWith("/studio/assets/")) {
342
345
  return c.text("Not found", 404);
343
346
  }
344
347
  const html = await readFile(join(webDir, "index.html"), "utf8");
@@ -144,7 +144,7 @@ export function knowsTools(ctx) {
144
144
  }),
145
145
  plans: createTool({
146
146
  id: "plans",
147
- description: "The plans teams can be on (Free, Pro, Team): price a month, monthly credits, limits, and the credit packages to buy on top. Live from the account service.",
147
+ description: "The plans organizations can be on (Free, Pro, Team): price a month, monthly credits, limits, and the credit packages to buy on top. Live from the account service.",
148
148
  inputSchema: z.object({}),
149
149
  execute: () => attempt(async () => {
150
150
  ctx.doing(serverText(ctx.lang, "doingPlans"));
@@ -154,7 +154,7 @@ export function knowsTools(ctx) {
154
154
  }),
155
155
  account: createTool({
156
156
  id: "account",
157
- description: "The person, their team, their role, the team's plan, the credit balance and credits that end on a date.",
157
+ description: "The person, their organization, their role, the organization's plan, the credit balance and credits that end on a date.",
158
158
  inputSchema: z.object({}),
159
159
  execute: () => attempt(async () => {
160
160
  ctx.doing(serverText(ctx.lang, "doingAccount"));
@@ -162,7 +162,7 @@ export function knowsTools(ctx) {
162
162
  const info = await tenantInfo(user.tenantId, true);
163
163
  return {
164
164
  person: { name: user.name, email: user.email, role: user.role },
165
- team: { name: info.name, plan: info.plan?.name ?? null, status: info.status },
165
+ organization: { name: info.name, plan: info.plan?.name ?? null, status: info.status },
166
166
  balanceCredits: Math.floor(info.balanceCredits),
167
167
  limits: info.limits,
168
168
  billingPage: `${env.manage.url}/billing`,
@@ -182,7 +182,7 @@ export function knowsTools(ctx) {
182
182
  return {
183
183
  linked: true,
184
184
  person: overview.user,
185
- team: { name: overview.tenant.name, role: overview.tenant.role },
185
+ organization: { name: overview.tenant.name, role: overview.tenant.role },
186
186
  plan: overview.tenant.plan?.name ?? null,
187
187
  balanceCredits: Math.floor(overview.tenant.balanceCredits),
188
188
  expiring: overview.tenant.expiring ?? [],
@@ -192,7 +192,7 @@ export function knowsTools(ctx) {
192
192
  }),
193
193
  usage: createTool({
194
194
  id: "usage",
195
- description: "Credits the team used per month (the last three), and the runs and wizards that cost the most.",
195
+ description: "Credits the organization used per month (the last three), and the runs and wizards that cost the most.",
196
196
  inputSchema: z.object({}),
197
197
  execute: () => attempt(async () => {
198
198
  ctx.doing(serverText(ctx.lang, "doingUsage"));
@@ -10,7 +10,7 @@ Words
10
10
  - Studio: where wizards are built. Home lists the space's wizards; the editor (/edit/<id>) has its own chat (the architect) that builds and changes the wizard, a preview of each step as people see it with the steps in a row above it, and beside it the flow as a diagram and the editor of the step chosen.
11
11
  - Wizard: a flow of steps a person walks through on a link. Step kinds: a page (fields to fill in), an AI step (an agent with tools: web search, reading files, writing documents, images, video, pages, other services), a review, and the result.
12
12
  - Run: one person going through a wizard once. Results lists every run that reached its result.
13
- - Space: what all wizards of a team know. Its page has four parts: Info & brand (title, about, logos, colours, assets, facts), Knowledge (pages, tables and files the AI steps look things up in, kept apart by typed categories), Data (tables and pages the wizards keep) and Results (finished runs).
13
+ - Space: what all wizards of an organization know. Its page has four parts: Info & brand (title, about, logos, colours, assets, facts), Knowledge (pages, tables and files the AI steps look things up in, kept apart by typed categories), Data (tables and pages the wizards keep) and Results (finished runs).
14
14
  - Model class: the kind of model a step needs (Classifier, Standard, High, Highest for text; Image, Video, Speech, Audio). Which model serves a class is a setting (Settings › Models), not part of the wizard.
15
15
 
16
16
  Thinking: an installed AI client on the person's subscription (Claude Code, Codex, Antigravity, Cursor Agent), own API keys (OpenAI, Anthropic, Google, fal.ai, ElevenLabs, Replicate, Vercel AI Gateway), a local model (Ollama), or engenty credits from an account. Settings › Models shows which way serves each class and what is missing.
@@ -21,6 +21,6 @@ AI apps: the install is an MCP server; Claude Desktop, Cursor, Codex and others
21
21
 
22
22
  Plugins add pages to the studio (a Shop, a Termin-Planer), settings sections, sections of the space page, tools for AI steps and for this assistant, and channels. Settings › Plugins lists what is installed.
23
23
 
24
- Account and plans: an account is optional on a local install; it brings credits, cloud publishing, sync and Pro modules. In the cloud, teams are on a plan (Free, Pro, Team) with monthly credits; credits can be topped up on the account's billing page. Plans, prices and the balance come from the account (tools: plans, account, usage), never from memory.
24
+ Account and plans: an account is optional on a local install; it brings credits, cloud publishing, sync and Pro modules. In the cloud, organizations are on a plan (Free, Pro, Team) with monthly credits; credits can be topped up on the account's billing page. Plans, prices and the balance come from the account (tools: plans, account, usage), never from memory.
25
25
 
26
- Studio addresses: / (home), /new (a new wizard), /edit/<id> (the editor), /space/info, /space/knowledge, /space/data, /space/results, /settings/account, /settings/team (cloud), /settings/connectors, /settings/models, /settings/integrate (AI apps), /settings/plugins, and the pages plugins add.`;
26
+ Studio addresses: / (home), /new (a new wizard), /edit/<id> (the editor), /space/info, /space/knowledge, /space/data, /space/results, /settings/account, /settings/organization (cloud), /settings/connectors, /settings/models, /settings/integrate (AI apps), /settings/plugins, and the pages plugins add.`;
@@ -12,8 +12,8 @@ import { deleteSetting, readSetting, writeSetting } from "../settings.js";
12
12
  export const CLIENT = { id: "wizards-desktop" };
13
13
  const REFRESH = "account.refresh";
14
14
  export const SCOPE = "openid profile email offline_access wizards:read wizards:write wizards:publish";
15
- /** The team of the linked account as the Manage-App last named it, for lines that must not wait on it. */
16
- const TEAM = "account.team";
15
+ /** The organization of the linked account as the Manage-App last named it, for lines that must not wait on it. */
16
+ const ORGANIZATION = "account.organization";
17
17
  /** Loopback redirect on the port this server listens on (RFC 8252). */
18
18
  function redirectUri() {
19
19
  return `http://127.0.0.1:${env.port}/api/auth/callback`;
@@ -134,20 +134,20 @@ export async function unlink() {
134
134
  cached = null;
135
135
  await vaultDelete(REFRESH);
136
136
  await deleteSetting("account");
137
- await deleteSetting(TEAM);
137
+ await deleteSetting(ORGANIZATION);
138
138
  }
139
- /** The team as the Manage-App last named it: `wizards status` and the menu show it without a round trip. */
140
- export function knownTeam() {
141
- return readSetting(TEAM);
139
+ /** The organization as the Manage-App last named it: `wizards status` and the menu show it without a round trip. */
140
+ export function knownOrganization() {
141
+ return readSetting(ORGANIZATION);
142
142
  }
143
- let rememberedTeam = null;
144
- async function rememberTeam(tenant) {
143
+ let rememberedOrganization = null;
144
+ async function rememberOrganization(tenant) {
145
145
  const same = `${tenant.id}\n${tenant.name}\n${tenant.balanceCredits}`;
146
- if (same === rememberedTeam) {
146
+ if (same === rememberedOrganization) {
147
147
  return;
148
148
  }
149
- rememberedTeam = same;
150
- await writeSetting(TEAM, {
149
+ rememberedOrganization = same;
150
+ await writeSetting(ORGANIZATION, {
151
151
  tenantId: tenant.id,
152
152
  name: tenant.name,
153
153
  balanceCredits: tenant.balanceCredits,
@@ -169,7 +169,7 @@ export async function accountOverview() {
169
169
  }
170
170
  const overview = (await res.json());
171
171
  if (overview?.tenant) {
172
- await rememberTeam(overview.tenant).catch(() => undefined);
172
+ await rememberOrganization(overview.tenant).catch(() => undefined);
173
173
  }
174
174
  return overview;
175
175
  }
@@ -8,13 +8,22 @@ import { readSetting, writeSetting } from "../settings.js";
8
8
  */
9
9
  export const API_KEY_PREFIX = "wz_";
10
10
  const hashOf = (key) => createHash("sha256").update(key).digest("hex");
11
- /** A key that lives only as long as this process: the studio chat's own client signs in with it. */
12
- let internal = null;
13
- export function internalKey() {
14
- internal ??= `${API_KEY_PREFIX}${randomBytes(24).toString("base64url")}`;
15
- return internal;
11
+ /**
12
+ * Keys that live only as long as this process: the studio chat's own client signs in with one,
13
+ * named for that client ("Codex (Abo)"), so the changes it makes say who made them.
14
+ */
15
+ const internal = new Map();
16
+ export function internalKey(client) {
17
+ const name = `${client} (Abo)`;
18
+ for (const [key, known] of internal) {
19
+ if (known === name) {
20
+ return key;
21
+ }
22
+ }
23
+ const key = `${API_KEY_PREFIX}${randomBytes(24).toString("base64url")}`;
24
+ internal.set(key, name);
25
+ return key;
16
26
  }
17
- const INTERNAL_CLIENT = "Claude (Abo)";
18
27
  async function all() {
19
28
  return (await readSetting("apiKeys")) ?? [];
20
29
  }
@@ -38,8 +47,9 @@ export async function deleteLocalKey(id) {
38
47
  await writeSetting("apiKeys", (await all()).filter((k) => k.id !== id));
39
48
  }
40
49
  export async function verifyLocalKey(key) {
41
- if (internal && key === internal) {
42
- return { id: "internal", name: INTERNAL_CLIENT };
50
+ const own = internal.get(key);
51
+ if (own) {
52
+ return { id: "internal", name: own };
43
53
  }
44
54
  const keys = await all();
45
55
  const found = keys.find((k) => k.hash === hashOf(key));
@@ -1,12 +1,12 @@
1
1
  import * as p from "@clack/prompts";
2
- import { accountOverview, knownTeam, linkedAccount, unlink, } from "../auth/account.js";
2
+ import { accountOverview, knownOrganization, linkedAccount, unlink, } from "../auth/account.js";
3
3
  import { DeviceSignInError, requestDeviceCode, waitForDeviceSignIn } from "../auth/device.js";
4
4
  import { migrateControlDb } from "../db/client.js";
5
5
  import { env } from "../env.js";
6
6
  import { featuresFile, fileFeatures, writeFeature } from "../features.js";
7
7
  import { readInstallNote, writeInstallNote } from "./home.js";
8
8
  import { openBrowser, runningRuntime, settings } from "./start.js";
9
- import { bold, busy, cmd, cyan, dim, tilde } from "./ui.js";
9
+ import { bold, busy, cmd, cyan, dim, spelled, tilde } from "./ui.js";
10
10
  /**
11
11
  * The account of this install, from the terminal. `wizards account` says where it stands,
12
12
  * `sign-in` runs the device flow (auth/device.ts), `sign-out` ends the link the way the
@@ -19,7 +19,7 @@ import { bold, busy, cmd, cyan, dim, tilde } from "./ui.js";
19
19
  * runtime is). A runtime that runs reads the account from the settings as it goes; what it
20
20
  * holds from its start is brought in line by a restart, which is offered.
21
21
  */
22
- export const INTRO = "Your team, its space and your wizards live in the account. This computer joins the space.";
22
+ export const INTRO = "Your organization, its space and your wizards live in the account. This computer joins the space.";
23
23
  let prepared = null;
24
24
  /** The control database as the runtime keeps it: a fresh install has none until something opens it. */
25
25
  function ready() {
@@ -56,16 +56,18 @@ export async function accountState() {
56
56
  if (!account) {
57
57
  return { kind: "none" };
58
58
  }
59
- return { kind: "linked", account, team: await knownTeam() };
59
+ return { kind: "linked", account, organization: await knownOrganization() };
60
60
  }
61
- /** "Matthias · team Platzer Fenster & Türen · 120 credits", as far as it is known. */
62
- export function described(account, team, credits = true) {
61
+ /** "Matthias · organization Platzer Fenster & Türen · 120 credits", as far as it is known. */
62
+ export function described(account, organization, credits = true) {
63
63
  const parts = [account.name || account.email];
64
- if (team) {
65
- // "Team Anna" and "New team" say it themselves: not "team Team Anna".
66
- parts.push(/\bteam\b/i.test(team.name) ? team.name : `team ${team.name}`);
64
+ if (organization) {
65
+ // "Team Anna" and "New organization" say it themselves: not "organization Team Anna".
66
+ parts.push(/\b(team|organi[sz]ation)\b/i.test(organization.name)
67
+ ? organization.name
68
+ : `${spelled("organization")} ${organization.name}`);
67
69
  if (credits) {
68
- parts.push(`${team.balanceCredits} credits`);
70
+ parts.push(`${organization.balanceCredits} credits`);
69
71
  }
70
72
  }
71
73
  return parts.join(" · ");
@@ -78,7 +80,7 @@ export function describeAccount(state) {
78
80
  case "none":
79
81
  return "not signed in";
80
82
  default:
81
- return described(state.account, state.team, false);
83
+ return described(state.account, state.organization, false);
82
84
  }
83
85
  }
84
86
  /** The account's site, as people know it: engenty.ai for account.engenty.ai. */
@@ -95,10 +97,10 @@ async function status() {
95
97
  return 0;
96
98
  }
97
99
  const overview = await accountOverview();
98
- const team = overview?.tenant ?? state.team;
99
- console.log(`Signed in as ${described(state.account, team)} · ${host()}${overview
100
+ const organization = overview?.tenant ?? state.organization;
101
+ console.log(`Signed in as ${described(state.account, organization)} · ${host()}${overview
100
102
  ? ""
101
- : dim(` (${host()} didn’t respond${team ? ", so this is from last time" : ""})`)}`);
103
+ : dim(` (${host()} didn’t respond${organization ? ", so this is from last time" : ""})`)}`);
102
104
  return 0;
103
105
  }
104
106
  /** A code as people read it off a screen: ABCD-EFGH. */
@@ -230,12 +232,12 @@ async function signIn(paths, interactive) {
230
232
  if (linked && isLocalOnly()) {
231
233
  // Set up with --local by an older version, which kept the link: it only needs switching on.
232
234
  joinedAccount(paths);
233
- p.log.success(`Signed in as ${described(linked, await knownTeam(), false)} again.`);
235
+ p.log.success(`Signed in as ${described(linked, await knownOrganization(), false)} again.`);
234
236
  await pickUp(paths, interactive, SIGNED_IN);
235
237
  return 0;
236
238
  }
237
239
  if (linked) {
238
- p.log.info(`Already signed in as ${described(linked, await knownTeam(), false)}. ${dim(`To switch accounts, run ${cmd("account sign-out")} first.`)}`);
240
+ p.log.info(`Already signed in as ${described(linked, await knownOrganization(), false)}. ${dim(`To switch accounts, run ${cmd("account sign-out")} first.`)}`);
239
241
  return 0;
240
242
  }
241
243
  const account = await deviceSignIn(interactive);
@@ -354,10 +356,10 @@ export async function accountStep(paths, options, interactive) {
354
356
  }
355
357
  if (state.kind === "linked") {
356
358
  const overview = await accountOverview();
357
- p.log.success(`Signed in as ${described(state.account, overview?.tenant ?? state.team)}.`);
359
+ p.log.success(`Signed in as ${described(state.account, overview?.tenant ?? state.organization)}.`);
358
360
  return;
359
361
  }
360
- p.note(INTRO, "Your engenty account");
362
+ p.note(spelled(INTRO), "Your engenty account");
361
363
  if (!interactive) {
362
364
  p.log.info(dim(`To sign in later: ${cmd("account sign-in")}`));
363
365
  return;
@@ -3,7 +3,7 @@ import { declaredFeatures, featuresFile, fileFeatures, writeFeature } from "../f
3
3
  import { discoverPlugins } from "../plugins/discovery.js";
4
4
  import { pluginDirs } from "../plugins/loader.js";
5
5
  import { proModulesDir } from "../plugins/pro-state.js";
6
- import { cmd, tilde } from "./ui.js";
6
+ import { cmd, spelled, tilde } from "./ui.js";
7
7
  /**
8
8
  * `wizards features` — the feature switches of this install, from its `.features` file. Not in
9
9
  * the help: for whoever works on a part before it is on for everyone.
@@ -29,9 +29,9 @@ export function featuresCommand(args) {
29
29
  const source = n in fromFile ? "file" : n in fromEnv ? "FEATURES" : "default";
30
30
  const d = declared[n];
31
31
  const kind = d ? d.kind : "?";
32
- console.log(`${all[n] ? "on " : "off"} ${n.padEnd(28)} ${kind.padEnd(8)} ${source.padEnd(9)} ${d?.label ?? ""}`);
32
+ console.log(`${all[n] ? "on " : "off"} ${n.padEnd(28)} ${kind.padEnd(8)} ${source.padEnd(9)} ${spelled(d?.label ?? "")}`);
33
33
  }
34
- console.log(`\nFile: ${tilde(file)}\nWhile engenty wizards runs, account and team switches apply on top of these.`);
34
+ console.log(spelled(`\nFile: ${tilde(file)}\nWhile engenty wizards runs, account and organization switches apply on top of these.`));
35
35
  return 0;
36
36
  }
37
37
  if (!FEATURE_NAME.test(name)) {
@@ -2,6 +2,7 @@ import { homedir } from "node:os";
2
2
  import { emitKeypressEvents } from "node:readline";
3
3
  import { styleText } from "node:util";
4
4
  import * as p from "@clack/prompts";
5
+ import { britishEnglish, britishSpelling } from "@engenty/wizards-shared/definition";
5
6
  import { command } from "./home.js";
6
7
  const colours = Boolean(process.stdout.isTTY) && !process.env.NO_COLOR;
7
8
  /** The name on engenty's orange. */
@@ -9,6 +10,11 @@ export const badge = (text) => colours ? `\x1b[48;2;224;83;27m\x1b[97m\x1b[1m ${
9
10
  export const dim = (text) => styleText("dim", text);
10
11
  export const bold = (text) => styleText("bold", text);
11
12
  export const cyan = (text) => styleText("cyan", text);
13
+ /** English as this shell's reader spells it: British where its locale is en_GB. */
14
+ export function spelled(text) {
15
+ const locale = process.env.LC_ALL || process.env.LC_MESSAGES || process.env.LANG || "";
16
+ return britishEnglish([locale]) ? britishSpelling(text) : text;
17
+ }
12
18
  export const ok = styleText("green", "✓");
13
19
  export const no = styleText("yellow", "–");
14
20
  export const bad = styleText("red", "✗");
@@ -11,7 +11,7 @@ export const project = sqliteTable("project", {
11
11
  facts: text("facts", { mode: "json" }).$type().notNull().default([]),
12
12
  /** The space's themes: values only (docs/plans/themes.md). Wizards name them in `themes`. */
13
13
  themes: text("themes", { mode: "json" }).$type().notNull().default([]),
14
- /** The space's public page at `<team>.wizards.page/<slug>`; null until it is set up. */
14
+ /** The space's public page at `<organization>.wizards.page/<slug>`; null until it is set up. */
15
15
  page: text("page", { mode: "json" }).$type(),
16
16
  mcpServers: text("mcp_servers", { mode: "json" })
17
17
  .$type()
@@ -22,7 +22,7 @@ loads them from their files and loads a plugin again when its files change.
22
22
  | Tables | In every tenant’s database | [Tables](./tables.md) |
23
23
  | A listener on runs that end and spaces that change | Nowhere: it works in the background | [Events](./events.md) |
24
24
  | A job, again and again | Nowhere: it works in the background | [The server half](./server.md#jobs) |
25
- | The team’s own number for texts and calls, on engenty.ai | Where the plugin’s runner and pages use it | [The server half](./server.md#numbers-of-the-manage-app) |
25
+ | The organization’s own number for texts and calls, on engenty.ai | Where the plugin’s runner and pages use it | [The server half](./server.md#numbers-of-the-manage-app) |
26
26
  | An account of a space (a calendar, a mailbox), signed in through a built-in connector | Where the plugin’s own pages offer it | [Accounts](./connections.md) |
27
27
  | A wizard as a template | First among the templates of a new wizard, and in the MCP `list_starters` | [Starters](./starters.md) |
28
28
  | A page of the studio | Behind an icon in the app bar, or at its address | [The studio half](./studio.md) |
@@ -109,7 +109,7 @@ never names a tenant:
109
109
 
110
110
  ## Numbers of the Manage-App
111
111
 
112
- On engenty.ai a team gets its number for texts and calls from engenty: it asks for one, an
112
+ On engenty.ai an organization gets its number for texts and calls from engenty: it asks for one, an
113
113
  admin assigns it. `server.channels` reads it for the current tenant and books what it carries;
114
114
  the prices are the Manage-App’s ([manage contract](https://github.com/engenty/wizards/blob/main/docs/manage-contract.md#numbers-of-a-tenant)).
115
115
 
@@ -126,7 +126,7 @@ await server.channels.book({ kind: "sms", quantity: segments, key: messageSid, r
126
126
 
127
127
  - `get` is kept for a minute; `request` and `withdraw` forget it.
128
128
  - `request` throws `403` / `plan` on a plan without a number and `409` / `has_number` when
129
- the team has one. Asking again gives the open request.
129
+ the organization has one. Asking again gives the open request.
130
130
  - `book`: `sms` by segment, sent or received, `call` by started minute, `whatsapp` by
131
131
  message sent. The same `key` books once.
132
132
  - A runtime without a Manage-App has no numbers: `get` gives `null`, `request` and `withdraw`
@@ -95,7 +95,7 @@ export default defineStudioPlugin((studio) => {
95
95
 
96
96
  - The studio’s own addresses are taken: `/new`, `/edit`, `/settings`, `/space`, `/setup`,
97
97
  `/sign-in`.
98
- - The settings’ own sections are taken as ids: `account`, `team`, `connectors`, `models`,
98
+ - The settings’ own sections are taken as ids: `account`, `organization`, `connectors`, `models`,
99
99
  `integrate` and `plugins`.
100
100
  - `label` is a function, since the language can change while the studio is open.
101
101
  - `icon` is a component that takes `className`: any icon of `lucide-react`.
@@ -94,7 +94,7 @@ connectors. They can’t reach your computer, so for them your wizards run on en
94
94
  you publish then go to engenty.ai, and claude.ai connects there. If you’d rather not use an
95
95
  account, use Claude Desktop on this computer.
96
96
 
97
- The consent page names the team the access is for and the address it goes back to. An app that
97
+ The consent page names the organization the access is for and the address it goes back to. An app that
98
98
  only named itself is marked “Name given by the app itself”.
99
99
 
100
100
  You disconnect an app at engenty.ai under Account → Connected apps. Its access ends within half
@@ -12,7 +12,7 @@ version: 0.9.3
12
12
  | `wizards start` | Starts it and opens the studio. It runs in that terminal, and Ctrl-C stops it. The first time, the setup runs first |
13
13
  | `wizards studio` | Opens the studio in your browser. If it isn’t running, it starts in the background first |
14
14
  | `wizards setup` | Runs the guided setup again: your account, an AI client, the browser and ffmpeg, a decision model, start at login, your AI apps. `--local` leaves the account out ([Local only](./local-only.md)) |
15
- | `wizards account` | Shows the account this computer is signed in to: who, which team, the credits. `sign-in` shows a link and a code and opens your browser; `sign-out` disconnects this computer |
15
+ | `wizards account` | Shows the account this computer is signed in to: who, which organization, the credits. `sign-in` shows a link and a code and opens your browser; `sign-out` disconnects this computer |
16
16
  | `wizards open` | Signs this browser in to the running studio. `--print` only prints the link; it works once, within a minute |
17
17
  | `wizards status` | Shows what is installed and running, with the browser it uses for PDF, PNG and websites |
18
18
  | `wizards doctor` | Shows the status and checks for problems |
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Create an account
3
- description: Your team, its space and your wizards live in your account at engenty.ai. Sign up with an invitation code, answer four questions, build.
3
+ description: Your organization, its space and your wizards live in your account at engenty.ai. Sign up with an invitation code, answer four questions, build.
4
4
  version: 0.9.3
5
5
  ---
6
6
 
@@ -15,7 +15,7 @@ email as soon as a seat is free. Once you have a code, the same button opens the
15
15
  2. Sign in with Google, GitHub or a link by email. There is no password.
16
16
  3. The studio opens at [engenty.ai/studio](https://engenty.ai/studio).
17
17
 
18
- Your account is a **team**: it holds your credits and your spaces. It starts with credits, and some
18
+ Your account is an **organization**: it holds your credits and your spaces. It starts with credits, and some
19
19
  of them expire on a set date. The account pages at [account.engenty.ai](https://account.engenty.ai)
20
20
  show them.
21
21
 
@@ -26,8 +26,8 @@ changed later.
26
26
 
27
27
  | Page | Asks | Goes to |
28
28
  |---|---|---|
29
- | Welcome | “What will you use engenty for?” (Just me, Club, Small business, Company), a few details, then “What’s your team called?” (not asked for Just me) | Your team at account.engenty.ai |
30
- | About you | “Where can the wizards read about you?”: your website. engenty reads your name, what you do, your logo and colours from it, or you write a line about yourself | [Space → Info & brand](./space.md#info--brand) |
29
+ | Welcome | “What will you use engenty for?” (Just me, Club, Small business, Company), a few details, then “What’s your organization called?” (not asked for Just me) | Your organization at account.engenty.ai |
30
+ | About you | “Where can the wizards read about you?”: your website. engenty reads your name, what you do, your logo, colours and fonts from it, and the facts your imprint states (address, VAT ID, company register, management, your profiles), or you write a line about yourself | [Space → Info & brand](./space.md#info--brand) |
31
31
  | Knowledge | “What should the wizards know?”: documents the wizards may look things up in, such as price lists, your terms or an FAQ | [Space → Knowledge](./space.md#knowledge) |
32
32
  | Your space | Nothing. It explains the space that holds all of this, “My wizards” (“Meine Wizards” in German) | – |
33
33
 
@@ -36,9 +36,9 @@ sentence, or start from a template. See [Build a wizard](./build-a-wizard.md).
36
36
 
37
37
  ## What the cloud does
38
38
 
39
- - Wizards you build here run behind a link that works day and night, on the team’s credits.
39
+ - Wizards you build here run behind a link that works day and night, on the organization’s credits.
40
40
  - Share links, the code for your website, QR codes and the chat of [Test and share](./test-and-share.md) work as they do on your computer.
41
- - The team decides what the wizards run on: see [Models and account](./models.md).
41
+ - The organization decides what the wizards run on: see [Models and account](./models.md).
42
42
 
43
43
  ## Also on your computer
44
44
 
@@ -10,7 +10,7 @@ one thing: what should engenty wizards run on?
10
10
  ## Your account
11
11
 
12
12
  Your account stands above the choices. If you signed in during the [install](./install.md), it
13
- shows your name, your team and your credits. If you aren’t signed in yet, “Your engenty account”
13
+ shows your name, your organization and your credits. If you aren’t signed in yet, “Your engenty account”
14
14
  has a “Sign in” button that opens your browser for it. If you set engenty wizards up
15
15
  [only for this computer](./local-only.md), the page shows nothing here.
16
16
 
@@ -15,7 +15,7 @@ briefing, an invoice, a quote, a damage report.
15
15
  | **Describe it** | You say in plain words what the wizard should do. The assistant builds it, and you see each page in a preview and the flow as a diagram, and can change any step. |
16
16
  | **Let AI steps work** | They research the web, write, draw images, render video, read PDFs, scans and emails, build documents and dashboards, and write into other services. Anything that changes an account asks first. |
17
17
  | **Share a link** | Anyone can run the wizard in a browser, on a phone too. Results download as PDF, Word, HTML, Markdown, PNG, MP4, MP3, CSV, Excel or JSON, or go out as a link. |
18
- | **In the cloud, or on your computer** | You sign up and build in the browser, and links run on your team’s credits. Or you install it on your computer: there it runs on Codex, Claude Code, Antigravity or Cursor Agent with your own subscription, on your own API keys or on a local model, and your files stay with you. |
18
+ | **In the cloud, or on your computer** | You sign up and build in the browser, and links run on your organization’s credits. Or you install it on your computer: there it runs on Codex, Claude Code, Antigravity or Cursor Agent with your own subscription, on your own API keys or on a local model, and your files stay with you. |
19
19
 
20
20
  ## Where to start
21
21
 
@@ -30,8 +30,8 @@ briefing, an invoice, a quote, a damage report.
30
30
  | Word | Means |
31
31
  |---|---|
32
32
  | Account | You, signed in at engenty.ai with Google, GitHub or a link by email |
33
- | Team | What the sign-up creates: it holds your credits and your spaces |
34
- | Space | What all your wizards know and produce: name, logo, colours, facts, documents, data, results. A team’s first one in the cloud is “My wizards”; on your computer it is “My computer” (in German: “Meine Wizards”, “Mein Computer”) |
33
+ | Organization | What the sign-up creates: it holds your credits and your spaces |
34
+ | Space | What all your wizards know and produce: name, logo, colours, facts, documents, data, results. An organization’s first one in the cloud is “My wizards”; on your computer it is “My computer” (in German: “Meine Wizards”, “Mein Computer”) |
35
35
  | Studio | Where you build wizards: engenty.ai/studio, or `/studio` on your computer |
36
36
  | Wizard | A flow of steps a person walks through on a link |
37
37
  | Step | One part of the flow: a page, an AI step, a review, the result |
@@ -40,8 +40,8 @@ briefing, an invoice, a quote, a damage report.
40
40
 
41
41
  ## Two places it runs
42
42
 
43
- Your team, its spaces and your wizards live in your account. engenty.ai is the cloud: you build
44
- there in the browser, and links run day and night on the team’s credits. Your computer can join:
43
+ Your organization, its spaces and your wizards live in your account. engenty.ai is the cloud: you build
44
+ there in the browser, and links run day and night on the organization’s credits. Your computer can join:
45
45
  you [install](./install.md) engenty wizards there and sign in to the same account. It then uses
46
46
  the AI clients and keys on that computer, and what you publish there runs in the cloud as well
47
47
  ([Test and share](./test-and-share.md#in-the-cloud)). In the cloud studio, that space is marked
@@ -14,7 +14,7 @@ green on something of your own, amber on credits, hollow when nothing is set up.
14
14
 
15
15
  | Capability | Used for | Classes |
16
16
  |---|---|---|
17
- | Text & reasoning | Writing, research and decisions; the assistant in the editor | Classifier, Standard, High, Highest |
17
+ | Text & reasoning | Writing, research and decisions in the steps | Classifier, Standard, High, Highest |
18
18
  | Images | Logos, product shots, illustrations | Image |
19
19
  | Videos | Short clips from text or an image | Video |
20
20
  | Voice | Reading text aloud | Speech |
@@ -65,13 +65,13 @@ need nothing. Without ffmpeg, the page “Voice notes” says so.
65
65
 
66
66
  engenty wizards checks a key with its provider before it stores it. On your computer, keys stay
67
67
  in the Keychain on a Mac and in an encrypted file in the data folder elsewhere. On engenty.ai
68
- they are kept encrypted for the team. They are never in the database, and nobody sees them again.
68
+ they are kept encrypted for the organization. They are never in the database, and nobody sees them again.
69
69
 
70
70
  Under “Access” you find the credits, the AI clients on this computer and each provider you gave
71
71
  a key. The other providers are under “More providers”. A provider’s page holds its key, what it
72
72
  is used for, and which of its models run on credits without your own API key.
73
73
 
74
- On engenty.ai, your own API keys come with the Pro plan. Without them, runs use the team’s
74
+ On engenty.ai, your own API keys come with the Pro plan. Without them, runs use the organization’s
75
75
  credits.
76
76
 
77
77
  Vercel refuses many models for an AI Gateway key on its free tier. The Models page and the check
@@ -108,15 +108,21 @@ a Knowledge search found. Jev is reached through an AI Gateway key, a TypeSafe k
108
108
  (`TYPESAFE_API_KEY` in the settings file), the Clef-flash model in Ollama on this computer, or
109
109
  your account. Without any of them, the Classifier class decides.
110
110
 
111
- ## The editor’s chat
111
+ ## Agent chat
112
112
 
113
- Where Claude Code is installed on this computer, “The studio chat uses” (on the page “Text &
114
- reasoning”) sets what builds your wizards in the editor’s chat:
113
+ Settings → Models has two groups. “In the studio” holds **Agent chat**: what answers Goose and the
114
+ editor’s chat that builds your wizards. “In runs” holds what your wizards’ steps use: text,
115
+ images, video, voice and voice notes.
115
116
 
116
117
  | Choice | Means |
117
118
  |---|---|
118
- | Model class Highest | The model set for that class |
119
- | Claude subscription (Claude Code) | Claude Code on this computer builds the wizard, using your sign-in there. Runs still use keys or credits |
119
+ | Your subscription: Claude Code, Codex, Cursor Agent | The program on this computer answers, using your sign-in there. It works only through the tools of engenty wizards: it runs no commands and changes no files of its own |
120
+ | Your own API key: OpenAI, Anthropic, Google Gemini, Vercel AI Gateway | A model of that provider answers, on your key |
121
+ | Same as Text & reasoning | The model set for Text & reasoning answers |
122
+ | engenty credits | The credits pay, through your account |
123
+
124
+ The list shows each program that is installed and signed in. Without a choice, the chat follows
125
+ Text & reasoning, or Claude Code where it is the source of your models.
120
126
 
121
127
  ## Account
122
128
 
@@ -110,7 +110,7 @@ with its files.
110
110
  ## One space
111
111
 
112
112
  engenty wizards on your computer has one space, called “My computer” at first (“Mein Computer” in
113
- German). On engenty.ai the team’s plan says how many spaces it may have. The space’s tile in the
113
+ German). On engenty.ai the organization’s plan says how many spaces it may have. The space’s tile in the
114
114
  app bar opens a menu: it switches between spaces, “Rename space” renames this one, and “Add space”
115
115
  adds one while the plan has room. Each space has its own wizards, Info & brand, Knowledge, Data,
116
116
  connectors and results. The account, the models and the plugins are the same for every space.
@@ -14,8 +14,8 @@ import { currentTenantOrNull } from "./tenants/tenant.js";
14
14
  * 1. the defaults the code declares: the core's (packages/shared/src/feature-flags.ts) and the
15
15
  * loaded plugins' (their manifests' `features`, under the plugin's id)
16
16
  * 2. the `FEATURES` environment variable (`teamPlans=on,site=off`): the cloud image, compose, dev
17
- * 3. what the Manage-App says — for the team of a cloud runtime, for the linked account of a
18
- * local one; a plan's switches and what an admin set for the team or for everyone
17
+ * 3. what the Manage-App says — for the organization of a cloud runtime, for the linked account of a
18
+ * local one; a plan's switches and what an admin set for the organization or for everyone
19
19
  * 4. the `.features` file of this install (`~/.engenty/wizards/.features`; a checkout reads
20
20
  * the repo root's, a cloud runtime its data folder's) — this machine's word is the last
21
21
  *
@@ -56,7 +56,7 @@ export function declaredFeatures(sources = loadedPlugins().map((p) => p.source))
56
56
  }
57
57
  return out;
58
58
  }
59
- /** The switches, with what the Manage-App said for the team or account laid in. */
59
+ /** The switches, with what the Manage-App said for the organization or account laid in. */
60
60
  export function features(remote) {
61
61
  return resolveFeatures(defaultFeatures(declaredFeatures()), envFeatures(), remote, fileFeatures());
62
62
  }
@@ -65,7 +65,7 @@ export function feature(name, remote) {
65
65
  }
66
66
  let accountCache = null;
67
67
  /**
68
- * What the Manage-App says for the tenant at hand: the team's switches on a cloud runtime
68
+ * What the Manage-App says for the tenant at hand: the organization's switches on a cloud runtime
69
69
  * (cached a minute by `tenantInfo`), the linked account's on a local one (cached a minute
70
70
  * here). Null when nothing is linked or the Manage-App does not answer.
71
71
  */
@@ -45,6 +45,10 @@ class CursorModel extends HarnessModel {
45
45
  if (call.bridgeUrl) {
46
46
  mkdirSync(join(call.dir, ".cursor"), { recursive: true });
47
47
  writeFileSync(join(call.dir, ".cursor", "mcp.json"), JSON.stringify({ mcpServers: { step: { url: call.bridgeUrl } } }));
48
+ // The call's tools are all on the bridge: the client runs no commands and writes no files.
49
+ writeFileSync(join(call.dir, ".cursor", "cli.json"), JSON.stringify({
50
+ permissions: { allow: ["Mcp(step:*)"], deny: ["Shell(*)", "Write(**)"] },
51
+ }));
48
52
  }
49
53
  const args = ["-p", "--output-format", "json", "--workspace", call.dir, "--approve-mcps"];
50
54
  if (this.modelId !== "auto") {