@acryldev/blends 1.7.2 → 1.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +6 -6
  2. package/dist/index.js +34 -18
  3. package/dist/index.js.map +1 -1
  4. package/docs/framework/README.md +1 -1
  5. package/docs/framework/cordis/migration-to-1-0.md +4 -4
  6. package/docs/framework/getting-started/basic.md +4 -4
  7. package/docs/framework/getting-started/bun.md +2 -2
  8. package/docs/framework/getting-started/nodejs.md +3 -3
  9. package/docs/framework/guides/create-acrylblends.md +5 -5
  10. package/docs/framework/helpers/streaming.md +1 -1
  11. package/docs/framework/workshop/README.md +3 -3
  12. package/docs/framework/workshop/facilitator.md +3 -3
  13. package/package.json +1 -1
  14. package/plugins/agent/README.md +15 -0
  15. package/plugins/agent/package.json +1 -1
  16. package/plugins/agent-panel/README.md +15 -0
  17. package/plugins/agent-panel/package.json +1 -1
  18. package/plugins/app-settings/README.md +15 -0
  19. package/plugins/app-settings/package.json +1 -1
  20. package/plugins/builder/README.md +15 -0
  21. package/plugins/builder/package.json +1 -1
  22. package/plugins/desktop-shell/README.md +17 -0
  23. package/plugins/desktop-shell/package.json +3 -2
  24. package/plugins/desktop-web/README.md +15 -0
  25. package/plugins/desktop-web/package.json +1 -1
  26. package/plugins/driver-pty/README.md +15 -0
  27. package/plugins/driver-pty/package.json +1 -1
  28. package/plugins/drivers/README.md +13 -0
  29. package/plugins/drivers/package.json +1 -1
  30. package/plugins/extensions/README.md +15 -0
  31. package/plugins/extensions/package.json +1 -1
  32. package/plugins/feedback/README.md +15 -0
  33. package/plugins/feedback/package.json +1 -1
  34. package/plugins/home/README.md +15 -0
  35. package/plugins/home/package.json +1 -1
  36. package/plugins/instance/README.md +15 -0
  37. package/plugins/instance/package.json +3 -2
  38. package/plugins/manifest/README.md +15 -0
  39. package/plugins/manifest/package.json +1 -1
  40. package/plugins/openai/README.md +15 -0
  41. package/plugins/openai/package.json +1 -1
  42. package/plugins/page/LICENSE +21 -0
  43. package/plugins/page/package.json +4 -2
  44. package/plugins/plugin-share/plugin.json +1 -1
  45. package/plugins/sandbox/README.md +15 -0
  46. package/plugins/sandbox/package.json +1 -1
  47. package/plugins/save/README.md +15 -0
  48. package/plugins/save/package.json +1 -1
  49. package/plugins/save/plugin.json +1 -1
  50. package/plugins/save/share-cli.ts +22 -3
  51. package/plugins/save/share.ts +16 -5
  52. package/plugins/showcase/README.md +15 -0
  53. package/plugins/showcase/package.json +1 -1
  54. package/plugins/tasks/README.md +15 -0
  55. package/plugins/tasks/package.json +1 -1
package/README.md CHANGED
@@ -113,7 +113,7 @@ npm install
113
113
  npm run dev
114
114
  ```
115
115
 
116
- The other starters in the registry (`acryl.gtd`, `acryl.blank`, ...) are for the ACRYL app: `create-acrylblends` refuses them with a line that
116
+ The other starters in the registry (`acryl.gtd`, `acryl.blank`, ...) are for the ACRYL app: `@acryldev/create-blends` refuses them with a line that
117
117
  says so. A repository with an `acryl.template.json` works the same way (`-- --from github:you/starter`), and a team's own registry is the same
118
118
  layout in its own repository (`-- --from you.thing --registry github:you/registry`).
119
119
 
@@ -128,7 +128,7 @@ Before an app goes on a server: with `NODE_ENV=production` the door, the agent p
128
128
 
129
129
  **A starter** other people can pull is a pull request to the registry repository: add `registry/blends/<id>/` with your app as it stands (without `node_modules/`
130
130
  and `dist/`), its `blend.yaml` made public (`id`, a licence, a category and a one-line description) and an `acryl.template.json`, which is what marks it as an
131
- app for acrylblends. CI validates every entry, makes the app with `create-acrylblends`, and fails when `index.json` is stale, so what the site lists is what
131
+ app for acrylblends. CI validates every entry, makes the app with `@acryldev/create-blends`, and fails when `index.json` is stale, so what the site lists is what
132
132
  passed. The layout, and how to keep a starter private without a registry at all, is in
133
133
  [the registry README](https://github.com/acrylblends/acrylblends.github.io/tree/main/registry).
134
134
 
@@ -137,8 +137,8 @@ passed. The layout, and how to keep a starter private without a registry at all,
137
137
  An app carries its framework plugins as source, so a new release moves them in place and leaves your own code alone:
138
138
 
139
139
  ```sh
140
- npx acrylblends@latest upgrade --dry-run # the plan: what would be replaced
141
- npx acrylblends@latest upgrade # an edited file stops it with the diff, unless --force
140
+ npx @acryldev/blends@latest upgrade --dry-run # the plan: what would be replaced
141
+ npx @acryldev/blends@latest upgrade # an edited file stops it with the diff, unless --force
142
142
  ```
143
143
 
144
144
  Write `@latest`: a bare `npx acrylblends upgrade` runs the copy the app has installed, and an app made before 1.0 has an old one with no `upgrade` verb (it prints its help and exits 0, so it looks as if it worked, or answers "unknown command" and exits 2).
@@ -151,7 +151,7 @@ An Acryl app is also a plain function from `Request` to `Response`, which needs
151
151
  mkdir my-app && cd my-app
152
152
  npm init -y
153
153
  npm pkg set type=module
154
- npm install acrylblends
154
+ npm install @acryldev/blends
155
155
  ```
156
156
 
157
157
  Write the app in `index.ts`:
@@ -397,7 +397,7 @@ plugins installed while the app runs, an agent that builds plugins, durable task
397
397
  secrets):
398
398
 
399
399
  ```sh
400
- npx acrylblends@latest init my-app -y
400
+ npx @acryldev/blends@latest init my-app -y
401
401
  cd my-app && npm install && npm run dev # the app in the ACRYL frame: chat, agents, branches, versions, Settings
402
402
  npm run desktop # the same in its own window
403
403
  ```
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ var pnpm = {
23
23
  };
24
24
  var omit = {
25
25
  "//": "What the frame inherits from DSH but does not install: DSH's web app composes the Office-to-PDF converter, whose LibreOffice engine is 153 MB per OS (measured 2026-11-18, about a third of a frame app's packages). Every app gets an npm override that swaps each engine package for `placeholder` (an empty package), and the converter's row is switched off; the document preview's Office part then waits for the converter and every other preview works. The Office preview plugin in the plugin registry brings the engine back on demand. packages/cli/src/frame-omit.ts reads this.",
26
- "placeholder": "@acryldev/absent@1.0.0",
26
+ "placeholder": "@acryldev/absent@1.0.1",
27
27
  "rows": ["office-to-pdf"],
28
28
  "packages": [
29
29
  "@deepseek-ai/libreoffice-kit-darwin-arm64",
@@ -39,19 +39,19 @@ var packages = {
39
39
  "path": "../plugins/ui"
40
40
  },
41
41
  "@acryldev/brand-client": {
42
- "version": "0.2.0",
42
+ "version": "0.2.1",
43
43
  "path": "../plugins/brand-client"
44
44
  },
45
45
  "@acryldev/app-shell": {
46
- "version": "0.2.0",
46
+ "version": "0.2.1",
47
47
  "path": "../plugins/app-shell"
48
48
  },
49
49
  "@acryldev/workspace": {
50
- "version": "0.2.0",
50
+ "version": "0.2.1",
51
51
  "path": "../plugins/workspace"
52
52
  },
53
53
  "@acryldev/settings": {
54
- "version": "0.2.0",
54
+ "version": "0.2.1",
55
55
  "path": "../plugins/settings"
56
56
  },
57
57
  "@acryldev/sign-in": {
@@ -67,11 +67,11 @@ var packages = {
67
67
  "path": "../runtime/diagnostics"
68
68
  },
69
69
  "@acryldev/plugin-admin": {
70
- "version": "0.2.0",
70
+ "version": "0.2.1",
71
71
  "path": "../plugins/plugin-admin"
72
72
  },
73
73
  "@acryldev/support": {
74
- "version": "0.2.0",
74
+ "version": "0.2.1",
75
75
  "path": "../plugins/support"
76
76
  },
77
77
  "@acryldev/loopback-http": {
@@ -79,7 +79,7 @@ var packages = {
79
79
  "path": "../runtime/loopback-http"
80
80
  },
81
81
  "@acryldev/web": {
82
- "version": "0.3.0",
82
+ "version": "0.3.1",
83
83
  "path": "../runtime/web"
84
84
  },
85
85
  "@acryldev/system-prompt": {
@@ -95,7 +95,7 @@ var packages = {
95
95
  "path": "../plugins/versions"
96
96
  },
97
97
  "@acryldev/blends-frame": {
98
- "version": "0.2.0",
98
+ "version": "0.2.1",
99
99
  "path": "../plugins/blends-frame"
100
100
  }
101
101
  };
@@ -723,6 +723,8 @@ function hostScriptOf(profile, frameModule) {
723
723
  "const chosen = selectInstance({ projectRoot: frameworkRoot, env: process.env })",
724
724
  "const appRoot = chosen.root",
725
725
  "const home = chosen.home",
726
+ "// A host plugin's folder as the app has it: plugins/<id>, or plugins/acryl-<id> in an app made before the folders were renamed (registry Blueprints).",
727
+ "const hostPlugin = (id) => (existsSync(join(appRoot, 'plugins', id)) ? id : `acryl-${id}`)",
726
728
  `const profileName = '${profile}'`,
727
729
  "// The page and its tab are named for the app: the package's name, as the frame's header says it, else the folder's.",
728
730
  "const appTitle = (() => {",
@@ -815,9 +817,9 @@ function hostScriptOf(profile, frameModule) {
815
817
  `agentRows.find((row) => row.id === 'preset-${AGENT_PRESET_ID}').config.plugins.push(...DSH_STANDARD_PLUGINS.map(dshStandardPlugin))`,
816
818
  "const hostLayer = anchorRows([{",
817
819
  " insert: [",
818
- " { id: 'node-server', name: './plugins/node-server/src/index.ts', config: { hostname: chosen.host ?? '127.0.0.1', port: Number(port), scan: Number(port) === 0 ? 0 : 20 } },",
819
- " { id: 'web-server', name: './plugins/web-server/src/index.ts' },",
820
- " { id: 'page', name: './plugins/page/src/index.ts', config: { title: appTitle } },",
820
+ " { id: 'node-server', name: `./plugins/${hostPlugin('node-server')}/src/index.ts`, config: { hostname: chosen.host ?? '127.0.0.1', port: Number(port), scan: Number(port) === 0 ? 0 : 20 } },",
821
+ " { id: 'web-server', name: `./plugins/${hostPlugin('web-server')}/src/index.ts` },",
822
+ " { id: 'page', name: `./plugins/${hostPlugin('page')}/src/index.ts`, config: { title: appTitle } },",
821
823
  " ...clientRows,",
822
824
  " ...agentRows,",
823
825
  " ],",
@@ -1025,7 +1027,7 @@ function profileNameFor(appName) {
1025
1027
  }
1026
1028
  /** A package name as a YAML scalar: a scoped name starts with `@`, which YAML reserves at the start of a scalar, so it is quoted. */
1027
1029
  const yamlName = (name) => name.startsWith("@") ? `'${name}'` : name;
1028
- function overlayOf(packages, door = false, root = "frame", appRows = []) {
1030
+ function overlayOf(packages, door = void 0, root = "frame", appRows = []) {
1029
1031
  const rows = packages;
1030
1032
  const disabled = /* @__PURE__ */ new Set([...packages.flatMap((entry) => entry.disables ?? []), ...OMITTED_ROWS]);
1031
1033
  const lines = [
@@ -1033,9 +1035,9 @@ function overlayOf(packages, door = false, root = "frame", appRows = []) {
1033
1035
  "- insert:",
1034
1036
  " - id: app-instance",
1035
1037
  " name: ./app/runtime.mjs",
1036
- ...door ? [
1038
+ ...door !== void 0 ? [
1037
1039
  " - id: acryl-door",
1038
- " name: ./plugins/door/src/index.ts",
1040
+ ` name: ./plugins/${door}/src/index.ts`,
1039
1041
  ...root === "workspace" ? [] : [
1040
1042
  " config:",
1041
1043
  " hostIndex: false",
@@ -1091,7 +1093,7 @@ function ideProfilePlan(input, existing) {
1091
1093
  } : JSON.parse(existing);
1092
1094
  return {
1093
1095
  profile,
1094
- overlay: overlayOf(packages, input.door === true, input.root, input.rows ?? []),
1096
+ overlay: overlayOf(packages, input.door === true ? input.doorFolder ?? "door" : void 0, input.root, input.rows ?? []),
1095
1097
  packageJson: `${JSON.stringify(mergeManifest(manifest, dependencies), null, 2)}\n`,
1096
1098
  rootConfig: "[]\n",
1097
1099
  hostScript: hostScriptOf(profile, frameModuleOf(packages))
@@ -1148,13 +1150,20 @@ const GENERATED_FILES = [
1148
1150
  ];
1149
1151
  /** The door is app source, not a registry package: the row exists when the app carries it, and nothing fails when it does not. */
1150
1152
  /** What the app's own files say about its profile: whether it carries the door, and what roots its page (`acrylblends.root` in package.json). */
1153
+ function doorOf(root) {
1154
+ for (const folder of ["door", "acryl-door"]) if (existsSync(join(root, "plugins", folder, "src", "index.ts"))) return folder === "door" ? { door: true } : {
1155
+ door: true,
1156
+ doorFolder: folder
1157
+ };
1158
+ return { door: false };
1159
+ }
1151
1160
  function withAppFacts(root, input) {
1152
1161
  const manifest = join(root, "package.json");
1153
1162
  const declared = existsSync(manifest) ? JSON.parse(readFileSync(manifest, "utf8")).acrylblends?.root : void 0;
1154
1163
  if (declared !== void 0 && declared !== "frame" && declared !== "workspace") throw new Error(`${manifest}: acrylblends.root is ${JSON.stringify(declared)}; it is "frame" or "workspace"`);
1155
1164
  return {
1156
1165
  ...input,
1157
- door: existsSync(join(root, "plugins", "door", "src", "index.ts")),
1166
+ ...doorOf(root),
1158
1167
  ...declared === void 0 ? {} : { root: declared }
1159
1168
  };
1160
1169
  }
@@ -1325,7 +1334,14 @@ function frameProfileForApp(root) {
1325
1334
  if (fromEnv !== void 0) return fromEnv;
1326
1335
  const fromApp = frameProfileOfManifest(root);
1327
1336
  if (fromApp !== void 0) return fromApp;
1328
- return findDesktopShell(root) !== void 0 ? publishedFrameProfile() : void 0;
1337
+ return findDesktopShell(root) !== void 0 || dependsOn(root, "@acryldev/desktop-shell") ? publishedFrameProfile() : void 0;
1338
+ }
1339
+ function dependsOn(root, name) {
1340
+ try {
1341
+ return typeof JSON.parse(readFileSync(join(root, "package.json"), "utf8")).dependencies?.[name] === "string";
1342
+ } catch {
1343
+ return false;
1344
+ }
1329
1345
  }
1330
1346
  function frameProfileOfManifest(root) {
1331
1347
  const manifestFile = join(root, "package.json");