@engenty/wizards-runtime 0.7.8 → 0.7.10

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 (113) hide show
  1. package/README.md +2 -1
  2. package/apps/runtime/dist/app.js +2 -2
  3. package/apps/runtime/dist/cli/autostart.js +90 -7
  4. package/apps/runtime/dist/cli/autoupdate.js +18 -5
  5. package/apps/runtime/dist/cli/clients.js +25 -6
  6. package/apps/runtime/dist/cli/connect.js +7 -2
  7. package/apps/runtime/dist/cli/environment.js +33 -2
  8. package/apps/runtime/dist/cli/exec.js +38 -1
  9. package/apps/runtime/dist/cli/home.js +15 -0
  10. package/apps/runtime/dist/cli/machine.js +18 -8
  11. package/apps/runtime/dist/cli/processes.js +23 -3
  12. package/apps/runtime/dist/cli/setup.js +11 -1
  13. package/apps/runtime/dist/cli/start.js +33 -7
  14. package/apps/runtime/dist/cli/uninstall.js +100 -6
  15. package/apps/runtime/dist/cli/update.js +28 -12
  16. package/apps/runtime/dist/cli/versions.js +16 -4
  17. package/apps/runtime/dist/clients.js +118 -0
  18. package/apps/runtime/dist/db/client.js +37 -3
  19. package/apps/runtime/dist/db/migrations/tenant/0017_run_client.sql +1 -0
  20. package/apps/runtime/dist/db/migrations/tenant/meta/0017_snapshot.json +3333 -0
  21. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +7 -0
  22. package/apps/runtime/dist/db/schema.js +2 -0
  23. package/apps/runtime/dist/docs/dev/api.md +39 -0
  24. package/apps/runtime/dist/docs/dev/index.md +1 -0
  25. package/apps/runtime/dist/docs/dev/integration/openui.md +5 -3
  26. package/apps/runtime/dist/docs/dev/meta.json +1 -1
  27. package/apps/runtime/dist/docs/user/ai-apps.md +14 -3
  28. package/apps/runtime/dist/docs/user/install.md +18 -8
  29. package/apps/runtime/dist/engine/runner.js +1 -0
  30. package/apps/runtime/dist/harness/env.js +41 -8
  31. package/apps/runtime/dist/harness/index.js +10 -1
  32. package/apps/runtime/dist/harness/model.js +1 -1
  33. package/apps/runtime/dist/index.js +13 -4
  34. package/apps/runtime/dist/plugin.js +24 -8
  35. package/apps/runtime/dist/render/browser-path.js +43 -11
  36. package/apps/runtime/dist/routes/runs.js +9 -0
  37. package/apps/runtime/dist/update.js +4 -0
  38. package/apps/web/dist/assets/AboutDialog-B2LuZ_mC.js +1 -0
  39. package/apps/web/dist/assets/ChangelogDialog-B0lS0BdL.js +1 -0
  40. package/apps/web/dist/assets/ChatView-BcPDcU2d.js +10 -0
  41. package/apps/web/dist/assets/EditorPage-erduYKNM.js +4 -0
  42. package/apps/web/dist/assets/{FlowPreview-Dx8AjXvE.js → FlowPreview-oX_Emm7u.js} +1 -1
  43. package/apps/web/dist/assets/{Harness-NvIb36TG.js → Harness-Dv9ln5xB.js} +2 -2
  44. package/apps/web/dist/assets/{NewWizardChannels-B2YgtJlt.js → NewWizardChannels-JveYyh-U.js} +1 -1
  45. package/apps/web/dist/assets/NewWizardPage-Dfk-WOhX.js +7 -0
  46. package/apps/web/dist/assets/OnboardingPage-CT9dL4ke.js +1 -0
  47. package/apps/web/dist/assets/ProjectPage-5_Wsk9Hv.js +1 -0
  48. package/apps/web/dist/assets/PublicRunner-Cw1WzTze.js +1 -0
  49. package/apps/web/dist/assets/{ReadOnly-CGNHlgUT.js → ReadOnly-S9vGVQHr.js} +1 -1
  50. package/apps/web/dist/assets/RunDrawer-O4rEFCL8.js +4 -0
  51. package/apps/web/dist/assets/RunnerView-BW1h4x63.js +1 -0
  52. package/apps/web/dist/assets/SettingsPage-DmhN7OTy.js +1 -0
  53. package/apps/web/dist/assets/SetupPage-BlWd7Uln.js +1 -0
  54. package/apps/web/dist/assets/{SharePage-hG7Z6SLy.js → SharePage-ktqm-jWI.js} +1 -1
  55. package/apps/web/dist/assets/changelog-FJJS0Tpt.js +1 -0
  56. package/apps/web/dist/assets/engenty-WpMi3xwq.js +1 -0
  57. package/apps/web/dist/assets/{esm-DVk3RJij.js → esm-C-ZWeuhU.js} +1 -1
  58. package/apps/web/dist/assets/{fluffy-engenty-ClRou7yu.js → fluffy-engenty-DPNHytrz.js} +135 -16
  59. package/apps/web/dist/assets/goose-helmet-Cvc7KjUg.bin +0 -0
  60. package/apps/web/dist/assets/goose-helmet-livery-CZD9u0XS.webp +0 -0
  61. package/apps/web/dist/assets/index-C4aHMcg9.css +1 -0
  62. package/apps/web/dist/assets/index-xH9uN8Nh.js +14 -0
  63. package/apps/web/dist/assets/oss-credits-Bc05Qv5H.js +1 -0
  64. package/apps/web/dist/assets/{phone-CXXHXYnA.js → phone-BjmhIKuT.js} +1 -1
  65. package/apps/web/dist/assets/{settings-menu-DXzZCIMx.js → settings-menu-Dpkp3f56.js} +1 -1
  66. package/apps/web/dist/assets/{ui-DQ4L2npj.js → ui-DMmT-cSO.js} +4 -4
  67. package/apps/web/dist/assets/{upload-BnYHIfu5.js → upload-JX9BcMTq.js} +1 -1
  68. package/apps/web/dist/assets/{wrench-BrUJ7SV6.js → wrench-BSxnPs2_.js} +1 -1
  69. package/apps/web/dist/index.html +4 -4
  70. package/apps/web/dist/install.ps1 +307 -0
  71. package/apps/web/dist/mcp/flow.html +141 -22
  72. package/bin/wizards.mjs +59 -35
  73. package/node_modules/@engenty/wizards/package.json +1 -4
  74. package/node_modules/@engenty-wizards/shared/dist/claude-plugin.d.ts +7 -0
  75. package/node_modules/@engenty-wizards/shared/dist/claude-plugin.js +10 -0
  76. package/node_modules/@engenty-wizards/shared/dist/run.d.ts +2 -0
  77. package/node_modules/@engenty-wizards/shared/dist/run.js +4 -0
  78. package/package.json +2 -5
  79. package/plugin/.claude-plugin/plugin.json +28 -6
  80. package/plugin/README.md +58 -0
  81. package/plugin/hooks/engenty.ts +140 -0
  82. package/plugin/hooks/hooks.json +1 -0
  83. package/plugin/hooks/pane.test.tsx +177 -0
  84. package/plugin/hooks/register.tsx +396 -0
  85. package/plugin/types/index.d.ts +44 -0
  86. package/apps/web/dist/assets/AboutDialog-ByZyHXDj.js +0 -1
  87. package/apps/web/dist/assets/ChangelogDialog-QHYP0jAv.js +0 -1
  88. package/apps/web/dist/assets/ChatView-DupTtI8K.js +0 -10
  89. package/apps/web/dist/assets/EditorPage-k6qouLeS.js +0 -4
  90. package/apps/web/dist/assets/NewWizardPage-BgLY6SL6.js +0 -7
  91. package/apps/web/dist/assets/OnboardingPage-CxhwefJU.js +0 -1
  92. package/apps/web/dist/assets/ProjectPage-6ceSSS7W.js +0 -1
  93. package/apps/web/dist/assets/PublicRunner-6lQvReDx.js +0 -1
  94. package/apps/web/dist/assets/RunDrawer-TVGNnWyx.js +0 -4
  95. package/apps/web/dist/assets/RunnerView-DInSK0VZ.js +0 -1
  96. package/apps/web/dist/assets/SettingsPage-D3k5pXN5.js +0 -1
  97. package/apps/web/dist/assets/SetupPage-Bj5frdzY.js +0 -1
  98. package/apps/web/dist/assets/changelog-CO9vKjV0.js +0 -1
  99. package/apps/web/dist/assets/engenty-eXZ-EAwd.js +0 -1
  100. package/apps/web/dist/assets/index-DfaoPjNW.css +0 -1
  101. package/apps/web/dist/assets/index-DlDsr9Lc.js +0 -14
  102. package/apps/web/dist/assets/oss-credits-X2JPiMOR.js +0 -1
  103. package/node_modules/@engenty/wizards/dist/openui/Wizard.d.ts +0 -20
  104. package/node_modules/@engenty/wizards/dist/openui/Wizard.js +0 -62
  105. package/node_modules/@engenty/wizards/dist/openui/index.d.ts +0 -9
  106. package/node_modules/@engenty/wizards/dist/openui/index.js +0 -9
  107. package/node_modules/@engenty/wizards/dist/openui/message.d.ts +0 -11
  108. package/node_modules/@engenty/wizards/dist/openui/message.js +0 -69
  109. package/node_modules/@engenty/wizards/dist/openui/run.d.ts +0 -8
  110. package/node_modules/@engenty/wizards/dist/openui/run.js +0 -137
  111. package/node_modules/@engenty/wizards/dist/openui/server.d.ts +0 -37
  112. package/node_modules/@engenty/wizards/dist/openui/server.js +0 -77
  113. package/plugin/.mcp.json +0 -8
package/bin/wizards.mjs CHANGED
@@ -4,8 +4,8 @@
4
4
  //
5
5
  // The same file is two things. In the npm package `wizards` (`npx wizards`, `npm install -g
6
6
  // wizards`) it is the launcher, with nothing beside it but the installer (install.sh) and no
7
- // dependencies: on macOS and Linux it installs engenty wizards into ~/.engenty/wizards with that
8
- // installer (its own Node, the runtime @engenty/wizards-runtime, the `wizards` command), brings an
7
+ // dependencies: it installs engenty wizards into ~/.engenty/wizards with that installer (on Windows
8
+ // install.ps1: its own Node, the runtime @engenty/wizards-runtime, the `wizards` command), brings an
9
9
  // older install there up to its own version, and hands the command to it. In the runtime, which
10
10
  // the installer puts there, it is the command itself.
11
11
  //
@@ -27,17 +27,24 @@ const home = join(
27
27
  "wizards",
28
28
  );
29
29
  const runtime = join(home, "runtime");
30
- const wrapper = join(home, "bin", "wizards");
30
+ const windows = process.platform === "win32";
31
+ const wrapper = join(home, "bin", windows ? "wizards.cmd" : "wizards");
31
32
  /** The runtime's npm package. Up to 0.7.4 it was `wizards` itself; that name is the launcher now. */
32
33
  const RUNTIME = "@engenty/wizards-runtime";
33
34
  /** Whether this copy is the runtime, or the launcher without it. */
34
35
  const hasRuntime = existsSync(join(root, "apps", "runtime", "dist", "cli", "main.js"));
35
36
  /** The installer: beside the launcher, or in the runtime's built SPA. */
36
- const installer = [join(root, "install.sh"), join(root, "apps", "web", "dist", "install.sh")].find(
37
- (file) => existsSync(file),
38
- );
37
+ const installerName = windows ? "install.ps1" : "install.sh";
38
+ const installer = [
39
+ join(root, installerName),
40
+ join(root, "apps", "web", "dist", installerName),
41
+ ].find((file) => existsSync(file));
39
42
  // uninstall: never installs or hands over first; the install it takes away may no longer run.
40
43
  const RUN_HERE = ["help", "validate", "mcp", "uninstall"];
44
+ /** The installer's line, as a person types it here. */
45
+ const installLine = windows
46
+ ? " irm https://engenty.ai/install.ps1 | iex\n"
47
+ : " curl -fsSL https://engenty.ai/install.sh | bash\n";
41
48
  const tilde = (path) =>
42
49
  path.startsWith(homedir() + sep) ? `~${path.slice(homedir().length)}` : path;
43
50
 
@@ -112,7 +119,12 @@ function isInstall() {
112
119
  function terminalEnv() {
113
120
  const env = {};
114
121
  for (const [key, value] of Object.entries(process.env)) {
115
- if (!key.startsWith("npm_") && !["INIT_CWD", "NODE", "COLOR"].includes(key)) {
122
+ // PATH comes after, once: Windows calls it Path, and two of them would leave one to chance.
123
+ if (
124
+ !key.startsWith("npm_") &&
125
+ !["INIT_CWD", "NODE", "COLOR"].includes(key) &&
126
+ key.toUpperCase() !== "PATH"
127
+ ) {
116
128
  env[key] = value;
117
129
  }
118
130
  }
@@ -128,7 +140,10 @@ function install(version, quiet) {
128
140
  if (!installer) {
129
141
  return false;
130
142
  }
131
- const result = spawnSync("bash", [installer, "--no-setup"], {
143
+ const [shell, ...shellArgs] = windows
144
+ ? ["powershell.exe", "-NoProfile", "-ExecutionPolicy", "Bypass", "-File", installer, "-NoSetup"]
145
+ : ["bash", installer, "--no-setup"];
146
+ const result = spawnSync(shell, shellArgs, {
132
147
  // A command whose output is read (validate --json, mcp) keeps its stdout to itself.
133
148
  stdio: ["ignore", quiet ? 2 : "inherit", "inherit"],
134
149
  env: {
@@ -161,10 +176,29 @@ function runs() {
161
176
  }
162
177
  }
163
178
 
179
+ /**
180
+ * The installed command with these arguments. On Windows its Node and script, which is what
181
+ * wizards.cmd runs: a .cmd file starts only through cmd.exe, which would read the arguments again.
182
+ */
183
+ function installedCommand(argv) {
184
+ if (!windows) {
185
+ return [wrapper, argv];
186
+ }
187
+ const script = join(runtime, "current", "node_modules", RUNTIME, "bin", "wizards.mjs");
188
+ return [join(home, "tools", "node", "node.exe"), [script, ...argv]];
189
+ }
190
+
191
+ /** Runs the installed command with these arguments, waiting for it. */
192
+ function installedRun(argv, quiet) {
193
+ const [file, all] = installedCommand(argv);
194
+ spawnSync(file, all, { stdio: ["ignore", quiet ? 2 : "inherit", "inherit"], env: terminalEnv() });
195
+ }
196
+
164
197
  /** Runs the installed command with these arguments; its exit code. */
165
198
  function handOver() {
166
199
  return new Promise((done) => {
167
- const child = spawn(wrapper, args, { stdio: "inherit", env: terminalEnv() });
200
+ const [file, argv] = installedCommand(args);
201
+ const child = spawn(file, argv, { stdio: "inherit", env: terminalEnv() });
168
202
  // Ctrl-C reaches the installed command as well (same terminal); this one waits for it.
169
203
  process.on("SIGINT", () => undefined);
170
204
  process.on("SIGTERM", () => child.kill("SIGTERM"));
@@ -184,19 +218,6 @@ if (command === "version") {
184
218
  const own = versionOf(root) || "0.0.0";
185
219
  const quiet = RUN_HERE.includes(command);
186
220
  const checkout = existsSync(join(root, "pnpm-workspace.yaml"));
187
- // Windows has no installer yet, and the setup, the service and the AI clients are written for
188
- // macOS and Linux: it says so instead of half working. What needs no install still runs.
189
- if (process.platform === "win32" && !checkout && !(hasRuntime && RUN_HERE.includes(command))) {
190
- console.error(
191
- "engenty wizards for Windows is coming soon.\n\n" +
192
- "Until then it runs in WSL (Windows Subsystem for Linux). In PowerShell:\n\n" +
193
- " wsl --install\n\n" +
194
- "then, in the Ubuntu terminal that opens:\n\n" +
195
- " curl -fsSL https://engenty.ai/install.sh | bash\n\n" +
196
- "https://engenty.ai/docs/user/install\n",
197
- );
198
- process.exit(1);
199
- }
200
221
  if (isInstall() && !hasRuntime) {
201
222
  // The launcher in the install's place: an update of 0.7.4 or older fetched `wizards`, the
202
223
  // runtime's name then, and its next start switched to it. The installer it carries brings the
@@ -217,7 +238,7 @@ if (isInstall() && !hasRuntime) {
217
238
  }
218
239
  process.exit(await handOver());
219
240
  }
220
- const fromNpm = process.platform !== "win32" && !checkout && !isInstall();
241
+ const fromNpm = !checkout && !isInstall();
221
242
  if (fromNpm && command === "uninstall" && !hasRuntime) {
222
243
  // The install's own uninstall takes it away; it never updates first. An install the update
223
244
  // left without its runtime gets it back (above, in the installed command) and then uninstalls.
@@ -235,15 +256,18 @@ if (
235
256
  const installed = installedVersion();
236
257
  if (!installed || older(installed, own)) {
237
258
  const running = installed && runs();
238
- if (install(own, quiet)) {
239
- // What runs is still the old version: it starts again as the new one.
240
- if (running) {
241
- spawnSync(wrapper, ["restart"], {
242
- stdio: ["ignore", quiet ? 2 : "inherit", "inherit"],
243
- env: terminalEnv(),
244
- });
245
- }
246
- } else if (hasRuntime && currentNode && !installed) {
259
+ // Windows keeps the files of a running program locked: the runtime stops for the update.
260
+ if (running && windows) {
261
+ installedRun(["stop"], quiet);
262
+ }
263
+ const done = install(own, quiet);
264
+ // What ran is still the old version: it starts again as the new one.
265
+ if (running && windows) {
266
+ installedRun(["start", "--background", "--no-open"], quiet);
267
+ } else if (running && done) {
268
+ installedRun(["restart"], quiet);
269
+ }
270
+ if (!done && hasRuntime && currentNode && !installed) {
247
271
  console.error(
248
272
  `The install into ${tilde(home)} failed; this time engenty wizards runs from npm.\n`,
249
273
  );
@@ -259,14 +283,14 @@ if (
259
283
  if (!hasRuntime) {
260
284
  console.error(
261
285
  `engenty wizards couldn’t be installed into ${tilde(home)}. The installer on its own:\n\n` +
262
- " curl -fsSL https://engenty.ai/install.sh | bash\n",
286
+ installLine,
263
287
  );
264
288
  process.exit(1);
265
289
  }
266
290
  }
267
291
  if (!currentNode && command === "uninstall") {
268
292
  // The install's own Node, if it is still there, runs this copy's uninstall.
269
- const node = join(home, "tools", "node", "bin", "node");
293
+ const node = join(home, "tools", "node", windows ? "node.exe" : "bin/node");
270
294
  const result = existsSync(node)
271
295
  ? spawnSync(node, [fileURLToPath(import.meta.url), ...args], { stdio: "inherit" })
272
296
  : null;
@@ -276,7 +300,7 @@ if (!currentNode) {
276
300
  console.error(
277
301
  `engenty wizards needs Node.js 24.11 or newer. This is ${process.version}.\n` +
278
302
  "The installer brings its own and leaves yours alone:\n\n" +
279
- " curl -fsSL https://engenty.ai/install.sh | bash\n",
303
+ installLine,
280
304
  );
281
305
  process.exit(1);
282
306
  }
@@ -6,9 +6,6 @@
6
6
  "exports": {
7
7
  "./plugin": "./dist/plugin/index.js",
8
8
  "./plugin/studio": "./dist/plugin/studio.js",
9
- "./plugin/thread": "./dist/plugin/thread.js",
10
- "./openui": "./dist/openui/index.js",
11
- "./openui/server": "./dist/openui/server.js",
12
- "./openui/styles.css": "./src/openui/styles.css"
9
+ "./plugin/thread": "./dist/plugin/thread.js"
13
10
  }
14
11
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The Claude Code plugin `wizards` comes from two marketplaces: `engenty`, the GitHub repository
3
+ * engenty/wizards, and one each deployment serves with its own server bundled. The served one is
4
+ * named after the deployment's host, so a person can add both: `wizards@engenty` and
5
+ * `wizards@wizards-example-com`.
6
+ */
7
+ export declare const marketplaceNameOf: (appUrl: string) => string;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The Claude Code plugin `wizards` comes from two marketplaces: `engenty`, the GitHub repository
3
+ * engenty/wizards, and one each deployment serves with its own server bundled. The served one is
4
+ * named after the deployment's host, so a person can add both: `wizards@engenty` and
5
+ * `wizards@wizards-example-com`.
6
+ */
7
+ export const marketplaceNameOf = (appUrl) => new URL(appUrl).host
8
+ .toLowerCase()
9
+ .replace(/[^a-z0-9]+/g, "-")
10
+ .replace(/^-+|-+$/g, "");
@@ -243,6 +243,8 @@ declare const NOTES_EN: {
243
243
  readonly wizardLimit: "This wizard has reached its limit for today. Try again tomorrow.";
244
244
  readonly confirmHuman: "Confirm that you’re a person.";
245
245
  readonly tooManyRuns: "You’ve started a lot of runs just now. Try again in an hour.";
246
+ readonly clientRefused: "This app may not start runs here.";
247
+ readonly clientLimit: "This app has started a lot of runs just now. Try again later.";
246
248
  readonly runOver: "The run is over.";
247
249
  readonly runBusy: "The wizard is working right now.";
248
250
  readonly pageOutdated: "This page is out of date.";
@@ -76,6 +76,8 @@ const NOTES_EN = {
76
76
  wizardLimit: "This wizard has reached its limit for today. Try again tomorrow.",
77
77
  confirmHuman: "Confirm that you’re a person.",
78
78
  tooManyRuns: "You’ve started a lot of runs just now. Try again in an hour.",
79
+ clientRefused: "This app may not start runs here.",
80
+ clientLimit: "This app has started a lot of runs just now. Try again later.",
79
81
  runOver: "The run is over.",
80
82
  runBusy: "The wizard is working right now.",
81
83
  pageOutdated: "This page is out of date.",
@@ -367,6 +369,8 @@ const NOTES_DE = {
367
369
  wizardLimit: "Für heute ist das Limit dieses Wizards erreicht. Versuch es morgen wieder.",
368
370
  confirmHuman: "Bestätige kurz, dass du ein Mensch bist.",
369
371
  tooManyRuns: "Du hast gerade viele Läufe gestartet. Versuch es in einer Stunde wieder.",
372
+ clientRefused: "Diese App darf hier keine Läufe starten.",
373
+ clientLimit: "Diese App hat gerade viele Läufe gestartet. Versuch es später wieder.",
370
374
  runOver: "Der Lauf ist beendet.",
371
375
  runBusy: "Der Wizard arbeitet gerade.",
372
376
  pageOutdated: "Diese Seite ist nicht mehr aktuell.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engenty/wizards-runtime",
3
- "version": "0.7.8",
3
+ "version": "0.7.10",
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",
6
6
  "homepage": "https://engenty.ai",
@@ -15,10 +15,6 @@
15
15
  "engines": {
16
16
  "node": ">=24.11"
17
17
  },
18
- "os": [
19
- "darwin",
20
- "linux"
21
- ],
22
18
  "files": [
23
19
  "apps",
24
20
  "bin",
@@ -50,6 +46,7 @@
50
46
  "@turbodocx/html-to-docx": "1.23.1",
51
47
  "ai": "7.0.102",
52
48
  "aws4fetch": "1.0.20",
49
+ "cross-spawn": "7.0.6",
53
50
  "drizzle-orm": "0.45.3",
54
51
  "effect": "4.0.0-beta.59",
55
52
  "exceljs": "4.4.0",
@@ -1,9 +1,31 @@
1
1
  {
2
- "name": "engenty-wizards",
2
+ "name": "wizards",
3
3
  "displayName": "engenty wizards",
4
- "version": "{{VERSION}}",
5
- "description": "Build page-by-page AI wizards that people open on a shared link — designed, tested and published from Claude Code — and run your published ones right in the chat.",
6
- "author": { "name": "engenty" },
7
- "homepage": "{{APP_URL}}",
8
- "keywords": ["wizards", "forms", "ai-workflows", "mcp"]
4
+ "version": "0.7.10",
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
+ "author": {
7
+ "name": "engenty"
8
+ },
9
+ "homepage": "https://engenty.ai",
10
+ "keywords": [
11
+ "wizards",
12
+ "forms",
13
+ "ai-workflows",
14
+ "mcp"
15
+ ],
16
+ "types": "./types/index.d.ts",
17
+ "userConfig": {
18
+ "server": {
19
+ "type": "string",
20
+ "title": "Wizards server",
21
+ "description": "The MCP server of the wizards runtime, as /mcp lists it. The plugin's own (engenty-wizards) when left as is.",
22
+ "default": "engenty-wizards"
23
+ },
24
+ "browser": {
25
+ "type": "string",
26
+ "title": "Browser pane",
27
+ "description": "The MCP server of the app's browser pane, whose navigate tool opens a wizard beside the chat.",
28
+ "default": "Claude_Browser"
29
+ }
30
+ }
9
31
  }
@@ -0,0 +1,58 @@
1
+ # wizards, the Claude Code plugin
2
+
3
+ The plugin a running engenty wizards serves at `<APP_URL>/api/claude-plugin/marketplace.json`,
4
+ with its own address filled in. It holds:
5
+
6
+ - **`/wizard <what it should do>`** builds a wizard from a description, with the `build-wizard`
7
+ skill: authoring guide, closest starter, issues fixed, one test run, the studio link.
8
+ - **`use-wizard`**, the skill that runs one of your published wizards here in the chat.
9
+ - **`/wizards`**, a pane beside the chat with your wizards: each one's engenty, name and
10
+ description. **Run** opens the wizard's own page in the app's browser pane, beside the chat,
11
+ where you fill it as any person would. **Edit** puts a change request into the chat for you to
12
+ finish. The pane opens by itself when the plugin loads; `/wizards close` closes it. A run the
13
+ model drives through the server's tools opens its page beside the chat once it waits for you.
14
+
15
+ The pane is a mod: a hooks module in `hooks/register.tsx` drawing with the engine's elements,
16
+ its state declared in `types/index.d.ts`. `claude plugin validate plugin` checks it,
17
+ `claude plugin test plugin` runs `hooks/pane.test.tsx` against the engine.
18
+
19
+ ## Install
20
+
21
+ From GitHub, for the `engenty-wizards` MCP server you already have (the local install writes it
22
+ into your AI apps; `claude mcp add --transport http engenty-wizards <APP_URL>/api/mcp` adds a
23
+ hosted one):
24
+
25
+ ```bash
26
+ claude plugin marketplace add engenty/wizards
27
+ claude plugin install wizards@engenty
28
+ ```
29
+
30
+ From a running engenty wizards with a public https address, which bundles its own server:
31
+
32
+ ```bash
33
+ claude plugin marketplace add <APP_URL>/api/claude-plugin/marketplace.json
34
+ claude plugin install wizards@<host-with-dashes> # wizards.example.com → wizards-example-com
35
+ ```
36
+
37
+ `claude plugin update wizards` brings the next version.
38
+
39
+ ## Permissions in auto mode
40
+
41
+ The pane calls the server itself, from a button press, not from a model request. In auto mode
42
+ such a call has no classifier verdict and is refused unless an allow rule names the tool. Put
43
+ these in `permissions.allow` of `.claude/settings.local.json` or your user settings:
44
+
45
+ ```json
46
+ ["mcp__plugin_wizards_engenty-wizards", "mcp__Claude_Browser__navigate"]
47
+ ```
48
+
49
+ A server you configured yourself under the name `engenty-wizards` is `mcp__engenty-wizards`
50
+ instead. The browser pane's `navigate` may still ask you; the pane then shows a plain link to
51
+ the same page.
52
+
53
+ ## Options
54
+
55
+ | Option | Default | What it names |
56
+ | --------- | ----------------- | ---------------------------------------------------------- |
57
+ | `server` | `engenty-wizards` | the wizards runtime's MCP server, as `/mcp` lists it |
58
+ | `browser` | `Claude_Browser` | the app's browser pane, whose `navigate` opens a page |
@@ -0,0 +1,140 @@
1
+ /**
2
+ * The flat engenties of the studio (apps/web/src/engenty/engenty.tsx) at rest, as one SVG
3
+ * string per kind: the same bodies, the one eye, no animation. The fills are the studio's
4
+ * defaults (ENGENTY_FILL in apps/web/src/engenty/colors.ts).
5
+ */
6
+
7
+ const FILL = {
8
+ cobalt: "oklch(60% 0.23 262)",
9
+ amber: "oklch(82% 0.17 78)",
10
+ moss: "oklch(72% 0.22 145)",
11
+ rose: "oklch(64% 0.25 18)",
12
+ ember: "oklch(70% 0.21 42)",
13
+ teal: "oklch(74% 0.16 192)",
14
+ violet: "oklch(60% 0.25 300)",
15
+ magenta: "oklch(65% 0.28 345)",
16
+ citron: "oklch(89% 0.2 118)",
17
+ slate: "oklch(66% 0.13 235)",
18
+ } as const;
19
+
20
+ type Eye = { ex: number; ey: number; r: number; ink: string };
21
+
22
+ type Kind = {
23
+ fill: string;
24
+ body: string;
25
+ eye: Eye;
26
+ shadow: { cy: number; rx: number };
27
+ /** Marks drawn before the body (a sprout's leaves). */
28
+ under?: string;
29
+ /** Marks drawn over the body, before the eye. */
30
+ over?: string;
31
+ /** Marks drawn after the eye (a mouth, a dot). */
32
+ after?: string;
33
+ };
34
+
35
+ const stroke = (d: string, color: string, width: number, opacity: number) =>
36
+ `<path d="${d}" fill="none" stroke="${color}" stroke-width="${width}" stroke-linecap="round" opacity="${opacity}"/>`;
37
+
38
+ const KINDS: Record<string, Kind> = {
39
+ round: {
40
+ fill: FILL.cobalt,
41
+ body: "M60 22 Q96 26 96 62 Q96 96 60 100 Q24 96 24 62 Q24 26 60 22 Z",
42
+ over: `<circle cx="97" cy="34" r="6" fill="${FILL.cobalt}" opacity="0.5"/><circle cx="106" cy="24" r="3.5" fill="${FILL.cobalt}" opacity="0.35"/>`,
43
+ eye: { ex: 68, ey: 58, r: 8, ink: "oklch(18% 0.08 260)" },
44
+ shadow: { cy: 108, rx: 26 },
45
+ },
46
+ drop: {
47
+ fill: FILL.amber,
48
+ body: "M60 16 Q90 34 90 66 Q90 96 60 98 Q30 96 30 66 Q30 34 60 16 Z",
49
+ eye: { ex: 60, ey: 56, r: 8, ink: "oklch(30% 0.10 60)" },
50
+ after: stroke("M48 76 Q54 72 60 76 Q66 80 72 76", "oklch(30% 0.10 55)", 2.6, 1),
51
+ shadow: { cy: 106, rx: 24 },
52
+ },
53
+ dome: {
54
+ fill: FILL.moss,
55
+ body: "M60 20 Q92 30 92 70 Q92 96 60 96 Q28 96 28 70 Q28 30 60 20 Z",
56
+ over: `${stroke("M46 90 L46 80 M60 92 L60 82 M74 90 L74 80", "oklch(28% 0.10 155)", 2.4, 0.5)}<circle cx="60" cy="6" r="3" fill="${FILL.moss}"/>`,
57
+ eye: { ex: 60, ey: 54, r: 8.5, ink: "oklch(16% 0.08 160)" },
58
+ shadow: { cy: 104, rx: 27 },
59
+ },
60
+ flame: {
61
+ fill: FILL.rose,
62
+ body: "M60 14 Q84 44 80 76 Q78 98 60 98 Q42 98 40 76 Q36 44 60 14 Z",
63
+ over: stroke("M40 20 Q60 6 80 20", FILL.rose, 3, 0.55),
64
+ eye: { ex: 60, ey: 62, r: 8, ink: "oklch(22% 0.10 18)" },
65
+ after: '<circle cx="60" cy="82" r="2.6" fill="oklch(22% 0.10 18)"/>',
66
+ shadow: { cy: 106, rx: 22 },
67
+ },
68
+ oval: {
69
+ fill: FILL.ember,
70
+ body: "M60 34 Q100 38 100 64 Q100 92 60 94 Q20 92 20 64 Q20 38 60 34 Z",
71
+ over:
72
+ stroke("M28 54 Q60 48 92 54", "oklch(40% 0.16 30)", 2.2, 0.45) +
73
+ stroke("M26 70 Q60 64 94 70", "oklch(40% 0.16 30)", 2.2, 0.45),
74
+ eye: { ex: 66, ey: 58, r: 8, ink: "oklch(24% 0.10 30)" },
75
+ shadow: { cy: 102, rx: 32 },
76
+ },
77
+ bean: {
78
+ fill: FILL.teal,
79
+ body: "M48 96 Q24 92 26 68 Q28 44 52 38 Q78 32 88 50 Q98 66 84 84 Q70 100 48 96 Z",
80
+ over: `<circle cx="32" cy="94" r="4" fill="${FILL.teal}" opacity="0.4"/>`,
81
+ eye: { ex: 70, ey: 58, r: 8, ink: "oklch(18% 0.08 200)" },
82
+ shadow: { cy: 102, rx: 26 },
83
+ },
84
+ pebble: {
85
+ fill: FILL.slate,
86
+ body: "M60 96 Q20 96 18 78 Q16 60 46 56 Q78 52 98 62 Q110 72 104 86 Q98 96 60 96 Z",
87
+ over: '<g fill="oklch(30% 0.05 244)" opacity="0.32"><circle cx="42" cy="76" r="3"/><circle cx="56" cy="86" r="2.2"/><circle cx="86" cy="80" r="2.6"/></g>',
88
+ eye: { ex: 68, ey: 72, r: 7.5, ink: "oklch(20% 0.06 244)" },
89
+ shadow: { cy: 102, rx: 34 },
90
+ },
91
+ sprout: {
92
+ fill: FILL.citron,
93
+ under: `<g fill="${FILL.citron}"><ellipse cx="48" cy="34" rx="6" ry="10"/><ellipse cx="72" cy="32" rx="5.5" ry="9"/></g>`,
94
+ body: "M60 100 Q28 98 28 72 Q28 46 60 44 Q92 46 92 72 Q92 98 60 100 Z",
95
+ eye: { ex: 60, ey: 68, r: 8.5, ink: "oklch(24% 0.09 108)" },
96
+ shadow: { cy: 106, rx: 26 },
97
+ },
98
+ tower: {
99
+ fill: FILL.violet,
100
+ body: "M60 102 Q36 100 38 78 Q40 58 42 44 Q44 26 60 24 Q76 26 78 44 Q80 58 82 78 Q84 100 60 102 Z",
101
+ over:
102
+ stroke("M42 74 Q60 70 78 74", "oklch(28% 0.10 308)", 2.2, 0.4) +
103
+ stroke("M40 88 Q60 84 80 88", "oklch(28% 0.10 308)", 2.2, 0.4),
104
+ eye: { ex: 60, ey: 52, r: 8, ink: "oklch(20% 0.09 308)" },
105
+ shadow: { cy: 108, rx: 20 },
106
+ },
107
+ wedge: {
108
+ fill: FILL.magenta,
109
+ body: "M60 30 Q74 40 86 70 Q96 92 78 98 Q60 102 42 98 Q24 92 34 70 Q46 40 60 30 Z",
110
+ over: stroke("M52 22 Q60 14 68 22", FILL.magenta, 3, 0.5),
111
+ eye: { ex: 60, ey: 70, r: 8, ink: "oklch(22% 0.10 345)" },
112
+ shadow: { cy: 106, rx: 28 },
113
+ },
114
+ };
115
+
116
+ const kindOf = (kind: string | undefined): Kind => KINDS[kind ?? "round"] ?? KINDS.round!;
117
+
118
+ /** The one eye: white, a pupil, a glint. */
119
+ const eye = ({ ex, ey, r, ink }: Eye) =>
120
+ `<ellipse cx="${ex}" cy="${ey}" rx="${r}" ry="${r * 1.15}" fill="#fff"/>` +
121
+ `<circle cx="${ex}" cy="${ey + 1}" r="${r * 0.48}" fill="${ink}"/>` +
122
+ `<circle cx="${ex - r * 0.25}" cy="${ey - r * 0.3}" r="${r * 0.18}" fill="#fff"/>`;
123
+
124
+ /** The engenty of a kind at rest, `size` pixels square. */
125
+ export function engentySvg(kind: string | undefined, size: number): string {
126
+ const k = kindOf(kind);
127
+ return (
128
+ `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" width="${size}" height="${size}" overflow="visible">` +
129
+ `<ellipse cx="60" cy="${k.shadow.cy}" rx="${k.shadow.rx}" ry="4.5" fill="#000" opacity="0.14"/>` +
130
+ (k.under ?? "") +
131
+ `<path d="${k.body}" fill="${k.fill}"/>` +
132
+ (k.over ?? "") +
133
+ eye(k.eye) +
134
+ (k.after ?? "") +
135
+ "</svg>"
136
+ );
137
+ }
138
+
139
+ /** The body colour of a kind, for a surface that draws no SVG. */
140
+ export const engentyColor = (kind: string | undefined) => kindOf(kind).fill;
@@ -0,0 +1 @@
1
+ { "modules": ["./register.tsx"] }