@engenty/wizards-runtime 0.17.1 → 0.17.2

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 (72) hide show
  1. package/apps/runtime/dist/bundles/discover.js +133 -0
  2. package/apps/runtime/dist/connectors/external.js +8 -0
  3. package/apps/runtime/dist/docs/dev/broker.md +62 -2
  4. package/apps/runtime/dist/docs/dev/skills.md +8 -1
  5. package/apps/runtime/dist/docs/user-guide/capabilities.md +5 -1
  6. package/apps/runtime/dist/docs/user-guide/connectors.md +53 -2
  7. package/apps/runtime/dist/docs/user-guide/skills.md +11 -1
  8. package/apps/runtime/dist/routes/discover.js +1 -0
  9. package/apps/runtime/dist/services/discover.js +9 -3
  10. package/apps/runtime/dist/services/space-index.js +15 -5
  11. package/apps/web/dist/assets/{AboutDialog-mZCBU7KF.js → AboutDialog-NzB-GEj_.js} +1 -1
  12. package/apps/web/dist/assets/{BlockEditor-Dk0QwLSU.js → BlockEditor-HyDf8fOb.js} +1 -1
  13. package/apps/web/dist/assets/Bundle-B0Bhs0By.js +1 -0
  14. package/apps/web/dist/assets/CapabilitiesPage-CQSaMsWK.js +2 -0
  15. package/apps/web/dist/assets/{ChangelogDialog-BhyilZWA.js → ChangelogDialog-Ngxuqubx.js} +1 -1
  16. package/apps/web/dist/assets/{CodeEditor-DULYZbuE.js → CodeEditor-C2LBf4pS.js} +1 -1
  17. package/apps/web/dist/assets/EditorPage-Dysvvadu.js +3 -0
  18. package/apps/web/dist/assets/{FlowPreview-ykxZxWnk.js → FlowPreview-CGfSaeYu.js} +1 -1
  19. package/apps/web/dist/assets/LangSwitch-B7UQlGh5.js +1 -0
  20. package/apps/web/dist/assets/Marketplace-BkIxd1PW.js +2 -0
  21. package/apps/web/dist/assets/{NewWizardChannels-CsSV7sm2.js → NewWizardChannels-BWLaVFld.js} +1 -1
  22. package/apps/web/dist/assets/NewWizardPage-BpRd8tDF.js +7 -0
  23. package/apps/web/dist/assets/OnboardingPage-ScEcQcR0.js +1 -0
  24. package/apps/web/dist/assets/{PreviewPane-CJuqY5uA.js → PreviewPane-CaC1FYxZ.js} +4 -4
  25. package/apps/web/dist/assets/ProtocolSection-CILRCYLD.js +1 -0
  26. package/apps/web/dist/assets/PublicRunner-DHX431Pr.js +1 -0
  27. package/apps/web/dist/assets/{ReadOnly-CXQ41R9Q.js → ReadOnly-DqS1UDQs.js} +1 -1
  28. package/apps/web/dist/assets/SettingsPage-Dp2-rHXu.js +2 -0
  29. package/apps/web/dist/assets/SetupPage-mzMLQcD5.js +1 -0
  30. package/apps/web/dist/assets/SharePage-CBDgqEH7.js +1 -0
  31. package/apps/web/dist/assets/SkillEditor-Cf6FqkkU.js +1 -0
  32. package/apps/web/dist/assets/{Skills-D7V_9_xo.js → Skills-DqV5Oqqu.js} +5 -5
  33. package/apps/web/dist/assets/SpacePage-C3SXe2hs.js +2 -0
  34. package/apps/web/dist/assets/{UpdateCheck-DVgAJmy8.js → UpdateCheck-B51jMIhp.js} +2 -2
  35. package/apps/web/dist/assets/brand-CG35IRgr.js +2 -0
  36. package/apps/web/dist/assets/changelog-DN6sziTl.js +1 -0
  37. package/apps/web/dist/assets/{code-editor-5T7ilBjd.js → code-editor-Bsyy7cuT.js} +2 -2
  38. package/apps/web/dist/assets/{host-CCijW1hj.js → host-DaDyLfqT.js} +16 -16
  39. package/apps/web/dist/assets/{i18n-DCPDesT-.js → i18n-CyrHWeGk.js} +1 -1
  40. package/apps/web/dist/assets/{index-zcPlodHx.css → index-Db9JthZr.css} +1 -1
  41. package/apps/web/dist/assets/index-LjwVRoki.js +10 -0
  42. package/apps/web/dist/assets/plug-De3mHDFV.js +1 -0
  43. package/apps/web/dist/assets/{read-aloud-Qb719not.js → read-aloud-DCTouK7J.js} +1 -1
  44. package/apps/web/dist/assets/{runners-BeZ84YH_.js → runners-DtiBHvG7.js} +1 -1
  45. package/apps/web/dist/assets/session-DKGZUy6h.js +1 -0
  46. package/apps/web/dist/assets/{theme-y_owNosi.js → theme-Bcj8TXQr.js} +2 -2
  47. package/apps/web/dist/assets/{ui-BacfkQ7Q.js → ui-C6vSmisV.js} +1 -1
  48. package/apps/web/dist/assets/{useMutation-CgzFr4qH.js → useMutation-B8hJ5Z6N.js} +1 -1
  49. package/apps/web/dist/assets/{viewers-CkyHAjnk.js → viewers-b9FdC42r.js} +2 -2
  50. package/apps/web/dist/assets/{volume-2-BqlBtCIJ.js → volume-2-B1roRk6x.js} +1 -1
  51. package/apps/web/dist/index.html +15 -13
  52. package/apps/web/dist/mcp/flow.html +2 -2
  53. package/node_modules/@engenty/wizards-shared/dist/discover.d.ts +28 -1
  54. package/package.json +1 -1
  55. package/plugin/.claude-plugin/plugin.json +1 -1
  56. package/plugin/plugin.json +1 -1
  57. package/apps/web/dist/assets/CapabilitiesPage-GkpgF-wZ.js +0 -2
  58. package/apps/web/dist/assets/EditorPage-D_mCdYdZ.js +0 -3
  59. package/apps/web/dist/assets/LangSwitch-iO54w9AP.js +0 -1
  60. package/apps/web/dist/assets/Marketplace-C97fH7UC.js +0 -2
  61. package/apps/web/dist/assets/NewWizardPage-Ebgw-Vf_.js +0 -7
  62. package/apps/web/dist/assets/OnboardingPage-BZlloT7v.js +0 -1
  63. package/apps/web/dist/assets/ProtocolSection-CPaDKVpZ.js +0 -1
  64. package/apps/web/dist/assets/PublicRunner-4Lf4SnwB.js +0 -1
  65. package/apps/web/dist/assets/SettingsPage-C-8BgK9O.js +0 -2
  66. package/apps/web/dist/assets/SetupPage-4_K083Wl.js +0 -1
  67. package/apps/web/dist/assets/SharePage-CQjgMcDI.js +0 -1
  68. package/apps/web/dist/assets/SkillEditor-DT5hQwbg.js +0 -1
  69. package/apps/web/dist/assets/SpacePage-D3rYS1bA.js +0 -2
  70. package/apps/web/dist/assets/changelog-DzQCUSsx.js +0 -1
  71. package/apps/web/dist/assets/index-C_iWl8iS.js +0 -10
  72. package/apps/web/dist/assets/session-CEJRkSP5.js +0 -2
@@ -0,0 +1,133 @@
1
+ import { officialSkill } from "@engenty/wizards-shared/skills";
2
+ import { eq } from "drizzle-orm";
3
+ import { strToU8, zipSync } from "fflate";
4
+ import { db, schema } from "../db/client.js";
5
+ import { createGuardedFetch } from "../engenty/connections-external/net/guarded-fetch.js";
6
+ import { Archive, readPlugin } from "./read.js";
7
+ /**
8
+ * Entdecken's one hit for a Connector that brings skills (docs/plans/capabilities-next.md,
9
+ * piece 4). skills.sh names the repository each skill lives in. A repository whose root is a
10
+ * plugin for Claude Code or Cursor with an MCP server over http holds both: its skills and the
11
+ * service's connector are one thing to set up, not two. Only the plugin's manifest and MCP file
12
+ * are read, from GitHub's raw host through the guarded fetch, and kept for an hour.
13
+ *
14
+ * Not found this way: a plugin in a folder of its repository, and one whose manifest keeps its
15
+ * MCP servers in another file.
16
+ */
17
+ const RAW = (process.env.GITHUB_RAW_URL ?? "https://raw.githubusercontent.com").replace(/\/+$/, "");
18
+ /** The files that tell a plugin with a server, at a repository's root. */
19
+ const FILES = [
20
+ ".claude-plugin/plugin.json",
21
+ ".cursor-plugin/plugin.json",
22
+ ".mcp.json",
23
+ "mcp.json",
24
+ ];
25
+ /** How many repositories one search looks into. */
26
+ const REPOS = 6;
27
+ const WAIT_MS = 4000;
28
+ const KEEP_MS = 60 * 60_000;
29
+ const MAX_BYTES = 300_000;
30
+ const known = new Map();
31
+ async function fileOf(guarded, repo, path) {
32
+ try {
33
+ const res = await guarded(`${RAW}/${repo}/HEAD/${path}`, {
34
+ headers: { "user-agent": "engenty-wizards" },
35
+ signal: AbortSignal.timeout(WAIT_MS),
36
+ });
37
+ if (!res.ok) {
38
+ return null;
39
+ }
40
+ const text = await res.text();
41
+ return text.length > MAX_BYTES ? null : text;
42
+ }
43
+ catch {
44
+ return null;
45
+ }
46
+ }
47
+ /** The plugin at a repository's root, as far as its manifest and MCP file tell; null: none. */
48
+ async function repoPlugin(repo) {
49
+ const key = repo.toLowerCase();
50
+ const hit = known.get(key);
51
+ if (hit && Date.now() - hit.at < KEEP_MS) {
52
+ return hit.plugin;
53
+ }
54
+ const guarded = createGuardedFetch();
55
+ const texts = await Promise.all(FILES.map((path) => fileOf(guarded, repo, path)));
56
+ const files = {};
57
+ FILES.forEach((path, i) => {
58
+ const text = texts[i];
59
+ if (text !== null) {
60
+ files[path] = strToU8(text);
61
+ }
62
+ });
63
+ let plugin = null;
64
+ if (Object.keys(files).length) {
65
+ try {
66
+ const read = readPlugin(new Archive(zipSync(files)), {
67
+ fallbackName: repo.split("/")[1] ?? repo,
68
+ say: () => "",
69
+ });
70
+ plugin = "plugin" in read ? read.plugin : null;
71
+ }
72
+ catch {
73
+ // A manifest nobody can read is no plugin to offer.
74
+ }
75
+ }
76
+ if (known.size > 500) {
77
+ known.clear();
78
+ }
79
+ known.set(key, { at: Date.now(), plugin });
80
+ return plugin;
81
+ }
82
+ /** `owner/name` of a skill's address on skills.sh (`owner/name/skill`). */
83
+ const repoOf = (ref) => ref.split("/").slice(0, 2).join("/");
84
+ /**
85
+ * The repositories among a search's skills that are a plugin with a server over http, each with
86
+ * the hits it stands for: its skills, and the connectors of the service its server belongs to.
87
+ */
88
+ export async function discoverBundles(spaceId, skills, connectors) {
89
+ const repos = [...new Set(skills.map((s) => repoOf(s.ref)))]
90
+ .filter((r) => /^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(r))
91
+ .slice(0, REPOS);
92
+ if (!repos.length) {
93
+ return [];
94
+ }
95
+ const [plugins, have] = await Promise.all([
96
+ Promise.all(repos.map(repoPlugin)),
97
+ db
98
+ .select({ origin: schema.spaceBundle.origin })
99
+ .from(schema.spaceBundle)
100
+ .where(eq(schema.spaceBundle.spaceId, spaceId)),
101
+ ]);
102
+ const added = new Set(have.flatMap((b) => (b.origin.kind === "github" ? [b.origin.repo.toLowerCase()] : [])));
103
+ const found = [];
104
+ repos.forEach((repo, i) => {
105
+ const plugin = plugins[i];
106
+ if (!plugin?.servers.length) {
107
+ return;
108
+ }
109
+ const hosts = [...new Set(plugin.servers.map((s) => new URL(s.url).hostname.toLowerCase()))];
110
+ found.push({
111
+ repo,
112
+ name: plugin.name,
113
+ description: plugin.description,
114
+ format: plugin.format,
115
+ hosts,
116
+ official: officialSkill(`${repo}/x`),
117
+ added: added.has(repo.toLowerCase()),
118
+ covers: {
119
+ skills: skills.filter((s) => repoOf(s.ref) === repo).map((s) => s.ref),
120
+ connectors: connectors
121
+ .map((c) => c.domain)
122
+ .filter((domain) => {
123
+ const d = domain
124
+ .trim()
125
+ .toLowerCase()
126
+ .replace(/^www\./, "");
127
+ return hosts.some((host) => host === d || host.endsWith(`.${d}`));
128
+ }),
129
+ },
130
+ });
131
+ });
132
+ return found;
133
+ }
@@ -416,6 +416,14 @@ async function prepare(input) {
416
416
  let prepared = await prepareSource({
417
417
  ...source,
418
418
  deferMcpTools: input.sourceKind === "mcp" && surfaceRequiresAuth(surface),
419
+ }).catch(async (err) => {
420
+ // A server that answers 401 to streamable HTTP and does not speak SSE fails on the second
421
+ // try, and the 401 is lost. Its own OAuth documents say what it was: it wants a sign-in,
422
+ // and its tools come once an account is connected.
423
+ if (pasted && input.sourceKind === "mcp" && (await probeOAuth(input.sourceUrl, fetchImpl))) {
424
+ return prepareSource({ ...source, deferMcpTools: true });
425
+ }
426
+ throw err;
419
427
  });
420
428
  if (surface) {
421
429
  const mapped = mapAuth({
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: The broker
3
3
  description: The one path every connector call takes in engenty wizards – who calls, what decides, what a run may reach, what is logged and heard, the RWX rules and the routes the studio uses.
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  ---
6
6
 
7
7
  Every call a wizard step, a Work chat, Goose, a share target or a plugin makes to a connected
@@ -516,11 +516,16 @@ All under `/api/studio`, for a signed-in person of the organization.
516
516
  | `GET /spaces/:id/broker/log/:line` | One line, with the run’s grant and status. The Audit’s “Stop run” reads the status and calls `POST /api/runs/:id/cancel` | Admins. A member: their own line; 404 for another person’s |
517
517
  | `GET /spaces/:id/broker/ask?who=&for=&resource=&action=&in=` | „Was darf …?“: `decide`’s outcome, rule and reason. A guest’s post to a channel is answered as the call is: a fixed step gets the connection’s rule and the condition in its reason, any other caller `deny` by `guest_send`. Nothing runs and nothing is logged | Admins (403 for a member) |
518
518
  | `GET /spaces/:id/broker/choices` | The people and the space’s connections with their actions, for the question | Admins (403 for a member) |
519
- | `GET /spaces/:id/discover?q=` | Skills from skills.sh and connectors from integrations.sh, marked where the space has them | Everyone; 404 while `capabilities` is off |
519
+ | `GET /spaces/:id/discover?q=` | Skills from skills.sh and connectors from integrations.sh, marked where the space has them. `bundles` names each repository among the skills that is a plugin with a server over http, with the hits it stands for (`covers`) | Everyone; 404 while `capabilities` is off |
520
520
  | `POST /spaces/:id/connectors/preview` | Reads an address before it is imported: `{ sourceUrl, sourceKind?, signIn? }`. Answers what is there (`mcp` or `openapi`), each action with its guessed kind and input fields, the sign-in the source describes, the id and tool prefix its host suggests, and `privateAddress` | Admins of a space that can be changed here |
521
521
  | `POST /spaces/:id/connectors` | Imports a connector. For a pasted address `domain`, `id` and `toolPrefix` may be left out, `signIn` is the admin’s choice (`described`, `header` with a name, `none`) and `actionKinds` what single actions do | Admins |
522
522
  | `POST /spaces/:id/connectors/:connectorId/refresh` | „Aktionen neu laden“: reads the source again, with the sign-in of a signed-in connection on that connector. The broker reads the sign-in, so it is logged as `list_tools` | Admins |
523
523
  | `PATCH /spaces/:id/connectors/:connectorId/actions` | What single actions do: `{ actions: { <id>: { kind, recipientField? } \| null } }`; `null` takes one back to the guess | Admins |
524
+ | `POST /spaces/:id/bundles/preview` | Reads a plugin for Claude Code or Cursor: `{ address, path?, servers? }`, or a form with `file` and the rest as JSON in `options`. Answers `{ preview, plugins }`: the name and version, each server over http as an address is read, the skills, what is left out, and a `hash`; `plugins` where the repository holds several | Admins of a space that can be changed here |
525
+ | `POST /spaces/:id/bundles` | Takes it: the same source, `hash`, `servers` (per server’s name: `take`, `id`, `toolPrefix`, `name`, `signIn`, `actionKinds`), `skills` (the folders to take). Answers the bundle, the connectors and warnings | Admins |
526
+ | `GET /spaces/:id/bundles` | What came together, each with its connectors, connections and skills | Admins |
527
+ | `GET /bundles/:id/update`, `POST /bundles/:id/update` | What the origin has now (`update`, or `upload: true` for one from a file), and taking it: `{ hash }`, or a form with the new `file` | Admins |
528
+ | `GET /bundles/:id/removal`, `DELETE /bundles/:id` | What removing takes and the wizards that use its connections, and removing all of it | Admins |
524
529
 
525
530
  ### A connector from an address
526
531
 
@@ -541,6 +546,61 @@ a new connection on it defaults to the audience `admins`.
541
546
  the preview and the import refuse a private address with `connectorPrivateAddress`.
542
547
  - **Token calls.** An imported connector’s code exchange, refresh and client registration go
543
548
  through the same guarded fetch (`ConnectorOAuth2Config.fetchImpl`).
549
+ - **A server without SSE.** A server that answers 401 to streamable HTTP and 405 to the SSE try
550
+ loses its 401 on the way. Where its own OAuth documents are there, it is read as one that wants
551
+ a sign-in: its tools come once an account is connected.
552
+
553
+ ### A connector that brings skills
554
+
555
+ A plugin for Claude Code or Cursor, taken into a space (`apps/runtime/src/bundles/`). The studio
556
+ has no word for it: it shows a connector with its skills. The record is a `space_bundle`.
557
+
558
+ - **Reading** (`read.ts`). The source is a zip: a public repository’s archive from
559
+ `codeload.github.com` through the guarded fetch (`fetch.ts`), or an uploaded `.zip` or `.plugin`.
560
+ At most 60 MB and 50,000 files; a manifest or MCP file at most 1 MB; a skill’s files under the
561
+ limits of an uploaded skill. Read are `.claude-plugin/plugin.json` (optional), `.mcp.json` and
562
+ the manifest’s `mcpServers`, `skills/` and the manifest’s `skills`; for Cursor
563
+ `.cursor-plugin/plugin.json`, `mcp.json`, and a `plugin.json` at the root. A `marketplace.json`
564
+ lists the plugins of a repository that holds several: the preview answers with them, and `path`
565
+ or `…/tree/<branch>/<folder>` names one.
566
+ - **Taken.** Each server over http (`type` `http`, `streamable-http`, `sse`, or a `url` without a
567
+ type) goes through `importConnector` with the bundle’s id. Its headers with a fixed value are
568
+ kept as the record’s `required_headers`. A header that holds a key (`Bearer ${TOKEN}`) becomes
569
+ the sign-in where the server describes none. The connector is from an address: „nicht geprüft“,
570
+ admins first, a private address only on a runtime that is not managed. Each skill becomes a
571
+ `space_skill` with `source: "plugin"`, `origin` its folder in the plugin, `mode: "demand"`,
572
+ scripts off.
573
+ - **Left out, and named** (`leftOut`): commands, agents, hooks, Cursor rules, and servers with a
574
+ `reason`: `stdio`, `socket`, `noAddress`, `variable` (an address with `${…}` and no default),
575
+ `file` (an MCP bundle), `address`, `refused` (with the words in `detail`), `count`. A skill
576
+ whose `SKILL.md` cannot be read is left out as `invalid`.
577
+ - **The record.** `space_bundle` holds the name, version, format, origin (`github` with
578
+ repository, branch and folder, or `upload` with the file’s name), a hash of what was taken, and
579
+ what was left out. `bundle_id` is on `space_skill`, `space_connector` and `space_connection`; a
580
+ connection gets it from its connector when it is set up. `space_connection.plugin` is something
581
+ else: an engenty plugin that set a connection up.
582
+ - **Skills and no server, a server and no skills.** Skills alone come as skills with a bundle that
583
+ has no connector. A server alone comes as a connector with a bundle. Neither is refused.
584
+ - **Read only.** `PATCH /skills/:id` refuses a change to the content of a bundle’s skill, and
585
+ `DELETE` refuses it. `mode` and `runScripts` change. A copy is `own` and has no bundle.
586
+ - **The link.** A skill’s view names its bundle and the bundle’s connectors (`SkillSummary.bundle`),
587
+ a connector’s view its bundle (`ConnectorView.bundle`). `skill_load` tells the step which
588
+ connector the skill came with and what its tools’ names start with. `allowed-tools` is not read.
589
+ - **Update.** The origin is read again and its hash compared. Taken are skills that are new,
590
+ changed or gone, and new servers. A skill that changed keeps its name, `mode` and `runScripts`.
591
+ Connectors, connections and sign-ins are not touched. A connector whose server the origin no
592
+ longer names leaves the bundle (`bundle_id` null) and stays: no sign-in is sent to an address
593
+ that changed. A new server that cannot be imported as it stands is named in `notTaken`.
594
+ - **Removal.** `DELETE /bundles/:id` removes the connections on the bundle’s connectors, the
595
+ connectors, the skills and the record in one transaction.
596
+ - **Entdecken.** For up to six repositories among a search’s skills, the manifest and the MCP file
597
+ at the root are read from `raw.githubusercontent.com` (`bundles/discover.ts`,
598
+ `GITHUB_RAW_URL` for tests) and kept for an hour.
599
+
600
+ Not built: private repositories and hosts other than github.com; npm, archive and command
601
+ sources of a marketplace; a plugin’s `userConfig` and its `oauth.clientId`; moving a connector to
602
+ a changed address; a branch name with a slash in `…/tree/<branch>/<folder>`; the bundle’s record
603
+ in the sync of a local space.
544
604
 
545
605
  ## Not built
546
606
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: Skills
3
3
  description: The skills of a space – the SKILL.md engenty wizards reads, its limits, the studio’s routes, the two tools a step reads skills with and how their scripts run in the sandbox.
4
- version: 0.13.0
4
+ version: 0.17.1
5
5
  ---
6
6
 
7
7
  A space’s skills are instructions in the Agent Skills format that its AI steps follow. They sit
@@ -114,6 +114,13 @@ Under `/api/studio`, signed in as for the studio:
114
114
  `mode` is `always`, `demand` or `off`. A skill from skills.sh changes its `mode` and
115
115
  `runScripts` only. Its content changes with an update. An upload takes up to 32 MB.
116
116
 
117
+ `source` is `own`, `upload`, `skills.sh` or `plugin`. A skill with the source `plugin` came with
118
+ a connector, from a plugin for Claude Code or Cursor
119
+ ([A connector that brings skills](./broker.md#a-connector-that-brings-skills)). Its view names
120
+ what it came with (`bundle`: the plugin’s name and its connectors). It changes its `mode` and
121
+ `runScripts` only, `DELETE` refuses it, and `skill_load` answers with a `connector` line: which
122
+ connector it came with and what that connector’s tools start with.
123
+
117
124
  ## skills.sh
118
125
 
119
126
  The runtime searches `https://skills.sh/api/search` and reads a skill from
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: Capabilities
3
3
  description: One place for what your wizards, Work chats and Goose may use – skills, the space’s connections to other services, the audit of every call, who may read, change and run what, and a search for more.
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  ---
6
6
 
7
7
  **Capabilities** in the app bar, after Resources, holds what a space’s wizards, Work chats and
@@ -258,6 +258,10 @@ and [what the run may reach](./protocol.md), not these rights.
258
258
 
259
259
  ## Discover
260
260
 
261
+ A repository that holds a plugin with an MCP server and skills shows as one result, “Connector
262
+ with skills”, in place of its skills and its service’s connector. An admin sets it up with
263
+ [its address](./connectors.md#a-connector-that-brings-skills).
264
+
261
265
  Discover searches skills.sh for skills and integrations.sh for connectors at once. You view a skill
262
266
  whole and add it right in the results. A connector’s result has “Set up” for the admins, which
263
267
  starts a connection with it. What the space already has shows “In this space”.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: Connectors
3
- description: Services a wizard works in for the person who runs it – built in, from the registry or by their address.
4
- version: 0.17.0
3
+ description: Services a wizard works in for the person who runs it – built in, from the registry, by their address or brought by a plugin with its skills.
4
+ version: 0.17.1
5
5
  ---
6
6
 
7
7
  **[Capabilities](./capabilities.md) › Connectors** lists the services the space’s wizards, Work
@@ -109,6 +109,57 @@ address reaches such addresses. In the cloud a private address is refused.
109
109
  connection, sign in, then choose “Reload actions” on the connector. It asks the server with that
110
110
  sign-in, and what you set for each action stays. Only admins check an address and reload actions.
111
111
 
112
+ ## A connector that brings skills
113
+
114
+ A plugin for Claude Code or Cursor often holds two things that belong together: an MCP server for
115
+ a service, and [skills](./skills.md) that say how to work with it. engenty wizards takes both
116
+ into a space. There is no extra name for the result: it is a connector with its skills, and
117
+ “plugin” only says where it came from.
118
+
119
+ Admins add one under “More connectors”, with “By address”:
120
+
121
+ 1. Paste the address of the plugin’s repository on GitHub, such as
122
+ `https://github.com/makenotion/claude-code-notion-plugin`, and choose “Check”. A plugin in a
123
+ folder of a repository has the folder in its address: `…/tree/main/customer-support`. “Upload a
124
+ zip” takes a plugin as a `.zip` or `.plugin` file.
125
+ 2. A repository that holds several plugins lists them. Choose one.
126
+ 3. Read what engenty wizards found: the plugin’s name and version, each MCP server over http, the
127
+ skills, and what it doesn’t take.
128
+ 4. Each server becomes a connector. Correct its name, its sign-in and what each action does, as
129
+ for [an address](#by-its-address). With several servers, untick the ones you don’t want.
130
+ 5. Untick the skills you don’t want. “Import” adds the rest and opens “Add connection” with the
131
+ first connector.
132
+
133
+ **What comes along, and what doesn’t.**
134
+
135
+ | In the plugin | In the space |
136
+ |---|---|
137
+ | MCP servers over http (streamable HTTP, SSE) | A connector each, marked “not checked”. A new connection on it is for admins only at first |
138
+ | Skills (`skills/<name>/SKILL.md`, and the folders the plugin’s manifest names) | Skills, “on demand”. Their scripts stay off until you switch them on |
139
+ | Commands, agents, hooks, Cursor rules | Not taken. The form names them |
140
+ | MCP servers started on the command line | Not taken. engenty wizards reaches a server by its address only |
141
+ | A server whose address needs a value from you | Not taken. Paste the finished address under “By address” |
142
+
143
+ A plugin with skills and no server over http brings its skills alone. One with a server and no
144
+ skills brings its connector alone.
145
+
146
+ **On the connector’s page.** A connection on such a connector says where it came from: the plugin,
147
+ its repository and version, and what it brought. Below the connection’s settings the page lists
148
+ the skills, each with when it applies. They are listed under Skills too, with the connector’s
149
+ name.
150
+
151
+ **Update.** When the repository has changed, the page offers “Update” and says what is new:
152
+ skills added, changed or gone, and new servers. The connection and its sign-in stay as they are.
153
+ A server the plugin no longer names stays in the space as a connector of its own. A plugin from
154
+ a file updates with “Upload a new file”.
155
+
156
+ **Remove.** “Remove connector, connection and skills” takes everything the plugin brought at
157
+ once. Before it does, it names the wizards that use the connection. They won’t run through after
158
+ that.
159
+
160
+ The **Discover** tab shows such a plugin as one result, “Connector with skills”, where a
161
+ repository on skills.sh holds an MCP server too. “Set up” opens this form with its address.
162
+
112
163
  ## What a wizard may do
113
164
 
114
165
  A wizard names the actions it uses. Without a list, it uses only the actions that read. What a run
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: Skills
3
3
  description: Instructions your wizards work by – always, or when a wizard needs one. Add them from skills.sh, upload them or write your own.
4
- version: 0.13.0
4
+ version: 0.17.1
5
5
  ---
6
6
 
7
7
  A skill is a set of instructions your wizards work by: how you write, what a quote must hold, how
@@ -50,6 +50,11 @@ comes as a zip upload.
50
50
  The **Discover** tab of Capabilities › Overview searches skills.sh and integrations.sh at once: you view or add a
51
51
  skill right in the results, marked “In this space” once the space has it.
52
52
 
53
+ **With a connector.** A plugin for Claude Code or Cursor can bring skills together with a
54
+ connector: see [A connector that brings skills](./connectors.md#a-connector-that-brings-skills).
55
+ Such a skill shows its connector’s name in the list. A wizard that loads it is told which
56
+ connector it came with.
57
+
53
58
  ## Run a skill’s scripts
54
59
 
55
60
  Some skills bring scripts in Python or JavaScript, such as one that fills a PDF form. A script
@@ -73,6 +78,11 @@ A skill from skills.sh stays as it came. When skills.sh has a newer version, the
73
78
  says so, and you see the changes before you take them (“View changes”). To change it yourself,
74
79
  copy it as your own skill.
75
80
 
81
+ A skill that came with a connector stays as it came too. You set when it applies and whether its
82
+ scripts run. To change its text, choose “Copy as your own skill”: the copy is yours. You can’t
83
+ delete it by itself. Switch it off, or remove the connector with everything it brought. Its
84
+ page says where it came from, and admins take an update there when the plugin has changed.
85
+
76
86
  “Download as .zip” gives you the skill’s folder, for another tool or another space.
77
87
 
78
88
  ## Limits
@@ -8,6 +8,7 @@ export const discoverRoutes = new Hono().get("/spaces/:id/discover", async (c) =
8
8
  const answer = {
9
9
  skills: found.skills,
10
10
  connectors: found.connectors,
11
+ bundles: found.bundles,
11
12
  errors: {
12
13
  ...(found.errors.skills ? { skills: say(c, found.errors.skills) } : {}),
13
14
  ...(found.errors.connectors ? { connectors: say(c, found.errors.connectors) } : {}),
@@ -1,5 +1,6 @@
1
1
  import { featureOn } from "@engenty/wizards-shared/features";
2
2
  import { eq } from "drizzle-orm";
3
+ import { discoverBundles } from "../bundles/discover.js";
3
4
  import { searchRegistry } from "../connectors/external.js";
4
5
  import { db, schema } from "../db/client.js";
5
6
  import { currentFeatures } from "../features.js";
@@ -11,6 +12,8 @@ import { ownedSpace } from "./spaces.js";
11
12
  * Fähigkeiten › Entdecken (docs/plans/capabilities.md, part B6): one search over skills.sh and
12
13
  * integrations.sh. Both are asked at once, each with its own time to answer; one that fails or
13
14
  * takes too long leaves its list empty and says so, and the other still shows what it found.
15
+ * A repository among the skills that is a plugin with a server over http is named as one hit
16
+ * (`bundles/discover.ts`); where GitHub does not answer in time, the lists stand as they are.
14
17
  */
15
18
  /** How long one directory may take before the search goes on without it. */
16
19
  const WAIT_MS = 10_000;
@@ -63,7 +66,7 @@ export async function discover(userId, spaceId, query) {
63
66
  const space = await ownedSpace(userId, spaceId);
64
67
  const q = query.trim().slice(0, 100);
65
68
  if (q.length < 2) {
66
- return { skills: [], connectors: [], errors: {} };
69
+ return { skills: [], connectors: [], bundles: [], errors: {} };
67
70
  }
68
71
  const [skills, connectors] = await Promise.allSettled([
69
72
  // Skills stay out while their own switch is off.
@@ -77,9 +80,12 @@ export async function discover(userId, spaceId, query) {
77
80
  if (connectors.status === "rejected") {
78
81
  errors.connectors = "connectorsRegistryDown";
79
82
  }
83
+ const foundSkills = skills.status === "fulfilled" ? skills.value : [];
84
+ const foundConnectors = connectors.status === "fulfilled" ? connectors.value : [];
80
85
  return {
81
- skills: skills.status === "fulfilled" ? skills.value : [],
82
- connectors: connectors.status === "fulfilled" ? connectors.value : [],
86
+ skills: foundSkills,
87
+ connectors: foundConnectors,
88
+ bundles: await within(discoverBundles(space.id, foundSkills, foundConnectors)).catch(() => []),
83
89
  errors,
84
90
  };
85
91
  }
@@ -535,10 +535,20 @@ export function queueVectors() {
535
535
  /** Texts sent at once: a search's question waits behind them in a busy Ollama. */
536
536
  const TEXT_BATCH = 32;
537
537
  /**
538
- * And their characters: 32 long units are about 60,000 tokens, while the gateway's Ollama on four
539
- * cores makes some 400 a second and gives a call up after 120 s.
538
+ * And their characters. At 16,000 the gateway's Ollama on four cores took minutes over a call, and
539
+ * a search's question sent meanwhile took 45 s: it waits 15 s at most, then finds words only.
540
540
  */
541
- const TEXT_BATCH_CHARS = 16_000;
541
+ const TEXT_BATCH_CHARS = 4000;
542
+ /** Leaves the model free as long as `work` held it: the sweep takes half its time at most. */
543
+ async function leavingRoom(work) {
544
+ const started = Date.now();
545
+ try {
546
+ return await work();
547
+ }
548
+ finally {
549
+ await new Promise((rest) => setTimeout(rest, Date.now() - started));
550
+ }
551
+ }
542
552
  /** As many of `units` as go in one call: one at least, however long. */
543
553
  function textBatch(units) {
544
554
  let chars = 0;
@@ -577,7 +587,7 @@ async function embedTexts() {
577
587
  after = todo[todo.length - 1].id;
578
588
  try {
579
589
  // No retries: a call that timed out still holds the model, and the next round comes anyway.
580
- const embedded = await embed(todo.map((u) => u.text), 0);
590
+ const embedded = await leavingRoom(() => embed(todo.map((u) => u.text), 0));
581
591
  if (!embedded) {
582
592
  break;
583
593
  }
@@ -661,7 +671,7 @@ async function embedPictures() {
661
671
  continue;
662
672
  }
663
673
  await searchesFirst();
664
- const vector = await embedImage(jpeg);
674
+ const vector = await leavingRoom(() => embedImage(jpeg));
665
675
  await db
666
676
  .update(schema.spaceChunk)
667
677
  .set({ embedding: vectorBytes(vector), model: resolved.ref })
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{Yn as r,an as i,hn as a,in as o,nn as s,pn as c,rn as l,un as u}from"./ui-BacfkQ7Q.js";import{t as d}from"./preload-helper-DpV6A1kQ.js";import{c as f,n as p}from"./marked.esm-DQ7XA7AC.js";import{t as m}from"./logo-BpnjXTRy.js";import{s as h}from"./i18n-DCPDesT-.js";import{g,h as _,m as v,t as y,u as b}from"./UpdateCheck-DVgAJmy8.js";import{ReleaseNotes as x,loadReleases as S,releaseDate as C,releaseLabel as w}from"./ChangelogDialog-BhyilZWA.js";var T=e(t(),1),E=[{name:`engenty wizards`,description:`credit.engenty-wizards`,homepage:`https://github.com/engenty/wizards`,license:`FSL-1.1-MIT`},{name:`engenty`,description:`credit.engenty`,homepage:`https://github.com/engenty/engenty`,license:`FSL-1.1-MIT`}],D=[{name:`Mastra`,description:`credit.mastra`,homepage:`https://github.com/mastra-ai/mastra`,license:`Apache-2.0`},{name:`AI SDK`,description:`credit.ai-sdk`,homepage:`https://github.com/vercel/ai`,license:`Apache-2.0`},{name:`Model Context Protocol`,description:`credit.model-context-protocol`,homepage:`https://github.com/modelcontextprotocol/typescript-sdk`,license:`MIT`},{name:`Hono`,description:`credit.hono`,homepage:`https://github.com/honojs/hono`,license:`MIT`},{name:`Drizzle ORM`,description:`credit.drizzle-orm`,homepage:`https://github.com/drizzle-team/drizzle-orm`,license:`Apache-2.0`},{name:`libSQL`,description:`credit.libsql`,homepage:`https://github.com/tursodatabase/libsql`,license:`MIT`},{name:`Playwright`,description:`credit.playwright`,homepage:`https://github.com/microsoft/playwright`,license:`Apache-2.0`},{name:`React`,description:`credit.react`,homepage:`https://github.com/facebook/react`,license:`MIT`},{name:`Vite`,description:`credit.vite`,homepage:`https://github.com/vitejs/vite`,license:`MIT`},{name:`Tailwind CSS`,description:`credit.tailwind-css`,homepage:`https://github.com/tailwindlabs/tailwindcss`,license:`MIT`},{name:`React Flow`,description:`credit.react-flow`,homepage:`https://github.com/xyflow/xyflow`,license:`MIT`},{name:`TanStack Query`,description:`credit.tanstack-query`,homepage:`https://github.com/TanStack/query`,license:`MIT`},{name:`xterm.js`,description:`credit.xterm-js`,homepage:`https://github.com/xtermjs/xterm.js`,license:`MIT`},{name:`Lucide`,description:`credit.lucide`,homepage:`https://github.com/lucide-icons/lucide`,license:`ISC`},{name:`Geist & Geist Mono`,description:`credit.geist-geist-mono`,homepage:`https://github.com/vercel/geist-font`,license:`OFL-1.1`},{name:`Space Grotesk`,description:`credit.space-grotesk`,homepage:`https://github.com/floriankarsten/space-grotesk`,license:`OFL-1.1`},{name:`git-cliff`,description:`credit.git-cliff`,homepage:`https://github.com/orhun/git-cliff`,license:`MIT OR Apache-2.0`}],O=e(n(),1),k=(e,...t)=>t.some(t=>t?.toLowerCase().includes(e));function A({name:e,homepage:t,version:n,license:r,description:i}){return(0,O.jsxs)(`li`,{className:`py-2.5`,children:[(0,O.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-2.5 gap-y-0.5`,children:[t?(0,O.jsxs)(`a`,{href:t,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1 font-medium text-[0.875rem] text-ink underline-offset-4 hover:underline`,children:[e,(0,O.jsx)(f,{"aria-hidden":!0,className:`size-3 text-ink-4`})]}):(0,O.jsx)(`span`,{className:`font-medium text-[0.875rem] text-ink`,children:e}),n?(0,O.jsx)(`span`,{className:`text-[0.75rem] text-ink-3 tabular-nums`,children:n}):null,(0,O.jsx)(`span`,{className:`text-[0.75rem] text-ink-3`,children:r})]}),i?(0,O.jsx)(`p`,{className:`mt-0.5 text-[0.8125rem] text-ink-3`,children:i}):null]})}function j({title:e,hint:t,children:n}){return(0,O.jsxs)(`section`,{className:`mt-6`,children:[(0,O.jsx)(`h3`,{className:`border-border-soft border-b pb-2 font-display font-semibold text-[1rem]`,children:e}),t?(0,O.jsx)(`p`,{className:`mt-2 text-[0.8125rem] text-ink-3`,children:t}):null,n]})}function M({credits:e}){return(0,O.jsx)(`ul`,{className:`divide-y divide-border-soft`,children:e.map(e=>(0,O.jsx)(A,{name:e.name,homepage:e.homepage,license:e.license,description:h(e.description)},e.name))})}function N({label:e,packages:t}){return(0,O.jsxs)(`div`,{className:`mt-4`,children:[(0,O.jsx)(`h4`,{className:`font-medium text-[0.75rem] text-ink-3 tracking-wide`,children:e}),(0,O.jsx)(`ul`,{className:`divide-y divide-border-soft`,children:t.map(e=>(0,O.jsx)(A,{...e},e.name))})]})}function P({active:e}){let[t,n]=(0,T.useState)(null),[r,a]=(0,T.useState)(``);(0,T.useEffect)(()=>{if(!e||t)return;let r=!1;return d(()=>import(`./oss-credits-BrwV0a4F.js`).then(e=>{r||n(e.default)}),[]),()=>{r=!0}},[e,t]),(0,T.useEffect)(()=>{e||a(``)},[e]);let o=r.trim().toLowerCase(),s=e=>o?e.filter(e=>k(o,e.name,e.license,h(e.description))):e,c=e=>o?e.filter(e=>k(o,e.name,e.license,e.version)):e,f=s(E),p=s(D),m=t?[{id:`shared`,label:h(`about.creditsShared`),packages:c(t.shared)},...t.groups.map(e=>({id:e.id,label:e.label,packages:c(e.packages)}))].filter(e=>e.packages.length>0):[],g=f.length===0&&p.length===0&&m.length===0;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`p`,{className:`mb-4 text-[0.875rem] text-ink-3`,children:h(`about.creditsHint`)}),(0,O.jsx)(i,{type:`search`,value:r,placeholder:h(`about.search`),onChange:e=>a(e.target.value)}),f.length>0?(0,O.jsx)(j,{title:h(`about.creditsProduct`),children:(0,O.jsx)(M,{credits:f})}):null,p.length>0?(0,O.jsx)(j,{title:h(`about.creditsBuiltWith`),children:(0,O.jsx)(M,{credits:p})}):null,t===null?(0,O.jsx)(`div`,{className:`flex justify-center py-10 text-ink-3`,children:(0,O.jsx)(u,{})}):m.length>0?(0,O.jsx)(j,{title:h(`about.creditsDeps`),hint:o?void 0:h(`about.creditsDepsHint`),children:m.map(e=>(0,O.jsx)(N,{label:e.label,packages:e.packages},e.id))}):null,t!==null&&g?(0,O.jsx)(l,{children:h(`about.noMatches`)}):null]})}var F=[`new`,`earlier`,`credits`],I=e=>h(e===`new`?`about.tab.new`:e===`earlier`?`about.tab.earlier`:`about.credits`),L=e=>e===1?h(`about.change`):h(`about.changes`,{n:e});function R({me:e,active:t,initialTab:n=`new`}){let i=e?.mode===`local`,{data:o,latest:s}=_(i&&t),[l,d]=(0,T.useState)(null),[f,p]=(0,T.useState)(n);(0,T.useEffect)(()=>p(n),[n]);let E=v(F.indexOf(f)),D=o?.newer&&s?s:g;(0,T.useEffect)(()=>{if(!t)return;let e=!1;return d(null),S(D===`0.17.1`?void 0:D).then(t=>{e||d(t)}),()=>{e=!0}},[t,D]);let k=l?.find(e=>e.version===`v${D}`)??l?.[0]??null,A=l?.filter(e=>e!==k)??[],j=i?o?.kind??null:`cloud`;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(`div`,{className:`flex flex-col items-center pt-4 text-center`,children:[(0,O.jsx)(m,{size:96}),(0,O.jsxs)(`div`,{className:`mt-4 font-display font-semibold text-[1.5rem] tracking-tight`,children:[`engenty`,(0,O.jsx)(`span`,{className:`text-ember`,children:`.`}),(0,O.jsx)(`span`,{className:`ml-1.5 font-normal text-ink-3`,children:`wizards`})]}),(0,O.jsxs)(`div`,{className:`mt-1 text-[0.9375rem] text-ink-3 tabular-nums`,children:[h(`about.version`,{v:g}),j?` · ${h(`about.kind.${j}`)}`:``]})]}),i?(0,O.jsx)(`div`,{className:`mt-5`,children:(0,O.jsx)(y,{enabled:t})}):null,(0,O.jsx)(`div`,{className:`mt-6 flex justify-center`,children:(0,O.jsx)(c,{value:f,onChange:p,options:F.map(e=>({id:e,label:I(e)})),label:h(`about.title`)})}),(0,O.jsxs)(`div`,{className:a(`mt-5`,b(E)),children:[f===`new`?l===null?(0,O.jsx)(`div`,{className:`flex justify-center py-6 text-ink-3`,children:(0,O.jsx)(u,{})}):k?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(`h3`,{className:`flex items-baseline gap-3 border-border-soft border-b pb-2 font-display font-semibold text-[1rem]`,children:[w(k),(0,O.jsx)(`span`,{className:`font-normal font-sans text-[0.8125rem] text-ink-3 tabular-nums`,children:C(k)})]}),(0,O.jsx)(`div`,{className:`mt-3`,children:(0,O.jsx)(x,{release:k})})]}):(0,O.jsx)(`p`,{className:`text-[0.875rem] text-ink-3`,children:h(`about.changelogEmpty`)}):null,f===`earlier`?(0,O.jsx)(`div`,{className:`flex flex-col divide-y divide-border-soft`,children:A.map(e=>(0,O.jsxs)(`details`,{className:`group/r py-2`,children:[(0,O.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-baseline gap-3 text-[0.875rem] [&::-webkit-details-marker]:hidden`,children:[(0,O.jsx)(r,{className:`size-3.5 shrink-0 self-center text-ink-4 transition group-open/r:rotate-90`}),(0,O.jsx)(`span`,{className:`font-medium text-ink tabular-nums`,children:w(e)}),(0,O.jsx)(`span`,{className:`text-[0.8125rem] text-ink-3 tabular-nums`,children:C(e)}),(0,O.jsx)(`span`,{className:`ml-auto text-[0.8125rem] text-ink-4`,children:L(e.commits.length)})]}),(0,O.jsx)(`div`,{className:`mt-2 pl-6`,children:(0,O.jsx)(x,{release:e})})]},e.version??`unreleased`))}):null,f===`credits`?(0,O.jsx)(P,{active:!0}):null]},f)]})}function z({open:e,onClose:t,me:n}){return(0,O.jsxs)(s,{open:e,onClose:t,wide:!0,height:`tall`,children:[(0,O.jsx)(`div`,{className:`-mt-2 -mr-2 sticky top-0 z-10 flex h-0 justify-end`,children:(0,O.jsx)(o,{label:h(`common.close`),onClick:t,children:(0,O.jsx)(p,{className:`size-4`})})}),(0,O.jsx)(R,{me:n,active:e})]})}export{z as AboutDialog,R as AboutPanel};
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{Yn as r,an as i,hn as a,in as o,nn as s,pn as c,rn as l,un as u}from"./ui-C6vSmisV.js";import{t as d}from"./preload-helper-DpV6A1kQ.js";import{c as f,n as p}from"./marked.esm-DQ7XA7AC.js";import{t as m}from"./logo-BpnjXTRy.js";import{s as h}from"./i18n-CyrHWeGk.js";import{g,h as _,m as v,t as y,u as b}from"./UpdateCheck-B51jMIhp.js";import{ReleaseNotes as x,loadReleases as S,releaseDate as C,releaseLabel as w}from"./ChangelogDialog-Ngxuqubx.js";var T=e(t(),1),E=[{name:`engenty wizards`,description:`credit.engenty-wizards`,homepage:`https://github.com/engenty/wizards`,license:`FSL-1.1-MIT`},{name:`engenty`,description:`credit.engenty`,homepage:`https://github.com/engenty/engenty`,license:`FSL-1.1-MIT`}],D=[{name:`Mastra`,description:`credit.mastra`,homepage:`https://github.com/mastra-ai/mastra`,license:`Apache-2.0`},{name:`AI SDK`,description:`credit.ai-sdk`,homepage:`https://github.com/vercel/ai`,license:`Apache-2.0`},{name:`Model Context Protocol`,description:`credit.model-context-protocol`,homepage:`https://github.com/modelcontextprotocol/typescript-sdk`,license:`MIT`},{name:`Hono`,description:`credit.hono`,homepage:`https://github.com/honojs/hono`,license:`MIT`},{name:`Drizzle ORM`,description:`credit.drizzle-orm`,homepage:`https://github.com/drizzle-team/drizzle-orm`,license:`Apache-2.0`},{name:`libSQL`,description:`credit.libsql`,homepage:`https://github.com/tursodatabase/libsql`,license:`MIT`},{name:`Playwright`,description:`credit.playwright`,homepage:`https://github.com/microsoft/playwright`,license:`Apache-2.0`},{name:`React`,description:`credit.react`,homepage:`https://github.com/facebook/react`,license:`MIT`},{name:`Vite`,description:`credit.vite`,homepage:`https://github.com/vitejs/vite`,license:`MIT`},{name:`Tailwind CSS`,description:`credit.tailwind-css`,homepage:`https://github.com/tailwindlabs/tailwindcss`,license:`MIT`},{name:`React Flow`,description:`credit.react-flow`,homepage:`https://github.com/xyflow/xyflow`,license:`MIT`},{name:`TanStack Query`,description:`credit.tanstack-query`,homepage:`https://github.com/TanStack/query`,license:`MIT`},{name:`xterm.js`,description:`credit.xterm-js`,homepage:`https://github.com/xtermjs/xterm.js`,license:`MIT`},{name:`Lucide`,description:`credit.lucide`,homepage:`https://github.com/lucide-icons/lucide`,license:`ISC`},{name:`Geist & Geist Mono`,description:`credit.geist-geist-mono`,homepage:`https://github.com/vercel/geist-font`,license:`OFL-1.1`},{name:`Space Grotesk`,description:`credit.space-grotesk`,homepage:`https://github.com/floriankarsten/space-grotesk`,license:`OFL-1.1`},{name:`git-cliff`,description:`credit.git-cliff`,homepage:`https://github.com/orhun/git-cliff`,license:`MIT OR Apache-2.0`}],O=e(n(),1),k=(e,...t)=>t.some(t=>t?.toLowerCase().includes(e));function A({name:e,homepage:t,version:n,license:r,description:i}){return(0,O.jsxs)(`li`,{className:`py-2.5`,children:[(0,O.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-2.5 gap-y-0.5`,children:[t?(0,O.jsxs)(`a`,{href:t,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1 font-medium text-[0.875rem] text-ink underline-offset-4 hover:underline`,children:[e,(0,O.jsx)(f,{"aria-hidden":!0,className:`size-3 text-ink-4`})]}):(0,O.jsx)(`span`,{className:`font-medium text-[0.875rem] text-ink`,children:e}),n?(0,O.jsx)(`span`,{className:`text-[0.75rem] text-ink-3 tabular-nums`,children:n}):null,(0,O.jsx)(`span`,{className:`text-[0.75rem] text-ink-3`,children:r})]}),i?(0,O.jsx)(`p`,{className:`mt-0.5 text-[0.8125rem] text-ink-3`,children:i}):null]})}function j({title:e,hint:t,children:n}){return(0,O.jsxs)(`section`,{className:`mt-6`,children:[(0,O.jsx)(`h3`,{className:`border-border-soft border-b pb-2 font-display font-semibold text-[1rem]`,children:e}),t?(0,O.jsx)(`p`,{className:`mt-2 text-[0.8125rem] text-ink-3`,children:t}):null,n]})}function M({credits:e}){return(0,O.jsx)(`ul`,{className:`divide-y divide-border-soft`,children:e.map(e=>(0,O.jsx)(A,{name:e.name,homepage:e.homepage,license:e.license,description:h(e.description)},e.name))})}function N({label:e,packages:t}){return(0,O.jsxs)(`div`,{className:`mt-4`,children:[(0,O.jsx)(`h4`,{className:`font-medium text-[0.75rem] text-ink-3 tracking-wide`,children:e}),(0,O.jsx)(`ul`,{className:`divide-y divide-border-soft`,children:t.map(e=>(0,O.jsx)(A,{...e},e.name))})]})}function P({active:e}){let[t,n]=(0,T.useState)(null),[r,a]=(0,T.useState)(``);(0,T.useEffect)(()=>{if(!e||t)return;let r=!1;return d(()=>import(`./oss-credits-BrwV0a4F.js`).then(e=>{r||n(e.default)}),[]),()=>{r=!0}},[e,t]),(0,T.useEffect)(()=>{e||a(``)},[e]);let o=r.trim().toLowerCase(),s=e=>o?e.filter(e=>k(o,e.name,e.license,h(e.description))):e,c=e=>o?e.filter(e=>k(o,e.name,e.license,e.version)):e,f=s(E),p=s(D),m=t?[{id:`shared`,label:h(`about.creditsShared`),packages:c(t.shared)},...t.groups.map(e=>({id:e.id,label:e.label,packages:c(e.packages)}))].filter(e=>e.packages.length>0):[],g=f.length===0&&p.length===0&&m.length===0;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`p`,{className:`mb-4 text-[0.875rem] text-ink-3`,children:h(`about.creditsHint`)}),(0,O.jsx)(i,{type:`search`,value:r,placeholder:h(`about.search`),onChange:e=>a(e.target.value)}),f.length>0?(0,O.jsx)(j,{title:h(`about.creditsProduct`),children:(0,O.jsx)(M,{credits:f})}):null,p.length>0?(0,O.jsx)(j,{title:h(`about.creditsBuiltWith`),children:(0,O.jsx)(M,{credits:p})}):null,t===null?(0,O.jsx)(`div`,{className:`flex justify-center py-10 text-ink-3`,children:(0,O.jsx)(u,{})}):m.length>0?(0,O.jsx)(j,{title:h(`about.creditsDeps`),hint:o?void 0:h(`about.creditsDepsHint`),children:m.map(e=>(0,O.jsx)(N,{label:e.label,packages:e.packages},e.id))}):null,t!==null&&g?(0,O.jsx)(l,{children:h(`about.noMatches`)}):null]})}var F=[`new`,`earlier`,`credits`],I=e=>h(e===`new`?`about.tab.new`:e===`earlier`?`about.tab.earlier`:`about.credits`),L=e=>e===1?h(`about.change`):h(`about.changes`,{n:e});function R({me:e,active:t,initialTab:n=`new`}){let i=e?.mode===`local`,{data:o,latest:s}=_(i&&t),[l,d]=(0,T.useState)(null),[f,p]=(0,T.useState)(n);(0,T.useEffect)(()=>p(n),[n]);let E=v(F.indexOf(f)),D=o?.newer&&s?s:g;(0,T.useEffect)(()=>{if(!t)return;let e=!1;return d(null),S(D===`0.17.2`?void 0:D).then(t=>{e||d(t)}),()=>{e=!0}},[t,D]);let k=l?.find(e=>e.version===`v${D}`)??l?.[0]??null,A=l?.filter(e=>e!==k)??[],j=i?o?.kind??null:`cloud`;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(`div`,{className:`flex flex-col items-center pt-4 text-center`,children:[(0,O.jsx)(m,{size:96}),(0,O.jsxs)(`div`,{className:`mt-4 font-display font-semibold text-[1.5rem] tracking-tight`,children:[`engenty`,(0,O.jsx)(`span`,{className:`text-ember`,children:`.`}),(0,O.jsx)(`span`,{className:`ml-1.5 font-normal text-ink-3`,children:`wizards`})]}),(0,O.jsxs)(`div`,{className:`mt-1 text-[0.9375rem] text-ink-3 tabular-nums`,children:[h(`about.version`,{v:g}),j?` · ${h(`about.kind.${j}`)}`:``]})]}),i?(0,O.jsx)(`div`,{className:`mt-5`,children:(0,O.jsx)(y,{enabled:t})}):null,(0,O.jsx)(`div`,{className:`mt-6 flex justify-center`,children:(0,O.jsx)(c,{value:f,onChange:p,options:F.map(e=>({id:e,label:I(e)})),label:h(`about.title`)})}),(0,O.jsxs)(`div`,{className:a(`mt-5`,b(E)),children:[f===`new`?l===null?(0,O.jsx)(`div`,{className:`flex justify-center py-6 text-ink-3`,children:(0,O.jsx)(u,{})}):k?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(`h3`,{className:`flex items-baseline gap-3 border-border-soft border-b pb-2 font-display font-semibold text-[1rem]`,children:[w(k),(0,O.jsx)(`span`,{className:`font-normal font-sans text-[0.8125rem] text-ink-3 tabular-nums`,children:C(k)})]}),(0,O.jsx)(`div`,{className:`mt-3`,children:(0,O.jsx)(x,{release:k})})]}):(0,O.jsx)(`p`,{className:`text-[0.875rem] text-ink-3`,children:h(`about.changelogEmpty`)}):null,f===`earlier`?(0,O.jsx)(`div`,{className:`flex flex-col divide-y divide-border-soft`,children:A.map(e=>(0,O.jsxs)(`details`,{className:`group/r py-2`,children:[(0,O.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-baseline gap-3 text-[0.875rem] [&::-webkit-details-marker]:hidden`,children:[(0,O.jsx)(r,{className:`size-3.5 shrink-0 self-center text-ink-4 transition group-open/r:rotate-90`}),(0,O.jsx)(`span`,{className:`font-medium text-ink tabular-nums`,children:w(e)}),(0,O.jsx)(`span`,{className:`text-[0.8125rem] text-ink-3 tabular-nums`,children:C(e)}),(0,O.jsx)(`span`,{className:`ml-auto text-[0.8125rem] text-ink-4`,children:L(e.commits.length)})]}),(0,O.jsx)(`div`,{className:`mt-2 pl-6`,children:(0,O.jsx)(x,{release:e})})]},e.version??`unreleased`))}):null,f===`credits`?(0,O.jsx)(P,{active:!0}):null]},f)]})}function z({open:e,onClose:t,me:n}){return(0,O.jsxs)(s,{open:e,onClose:t,wide:!0,height:`tall`,children:[(0,O.jsx)(`div`,{className:`-mt-2 -mr-2 sticky top-0 z-10 flex h-0 justify-end`,children:(0,O.jsx)(o,{label:h(`common.close`),onClick:t,children:(0,O.jsx)(p,{className:`size-4`})})}),(0,O.jsx)(R,{me:n,active:e})]})}export{z as AboutDialog,R as AboutPanel};