@acryldev/blends 1.7.28 → 1.7.29
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.
- package/dist/index.js +2 -8
- package/dist/index.js.map +1 -1
- package/docs/framework/guides/share-plugins.md +52 -14
- package/package.json +1 -1
- package/plugins/agent-panel/package.json +1 -1
- package/plugins/app-settings/package.json +1 -1
- package/plugins/builder/package.json +1 -1
- package/plugins/desktop-shell/package.json +1 -1
- package/plugins/desktop-web/package.json +1 -1
- package/plugins/driver-acp/package.json +1 -1
- package/plugins/driver-pty/package.json +1 -1
- package/plugins/extensions/package.json +1 -1
- package/plugins/feedback/package.json +1 -1
- package/plugins/instance/index.ts +14 -1
- package/plugins/instance/package.json +1 -1
- package/plugins/plugin-share/package.json +1 -1
- package/plugins/showcase/package.json +1 -1
- package/plugins/tasks/package.json +1 -1
|
@@ -4,8 +4,7 @@ A plugin is a folder in `plugins/`. Another person's app takes it from a GitHub
|
|
|
4
4
|
[cordisplugins.github.io](https://cordisplugins.github.io), from npm, or from a list your group keeps. To share a whole app instead, see [Share a Blend](share-blends.md).
|
|
5
5
|
|
|
6
6
|
Every command and every output below was run on 2026-11-21 as two people, Ana (publishes) and Ben (pulls), each with an app and a home folder of their own, made with
|
|
7
|
-
`@acryldev/blends` 1.7.21, against the GitHub organization `inboxxobni`. Outputs are pasted as they came, with the `npm run` banner lines left out. The npm steps
|
|
8
|
-
ran in npm's own dry run (see "To npm"), so nothing was published to npm. Commands run in the app's folder with the app running (`npm run dev`, or the desktop
|
|
7
|
+
`@acryldev/blends` 1.7.21, against the GitHub organization `inboxxobni`. Outputs are pasted as they came, with the `npm run` banner lines left out. The npm steps (see "To npm") were a real publish to npm on 2026-11-22 of a throwaway package. Commands run in the app's folder with the app running (`npm run dev`, or the desktop
|
|
9
8
|
app): a pull installs into the running app. You need `gh` signed in (`gh auth login`) to publish; pulling a public plugin needs no login.
|
|
10
9
|
|
|
11
10
|
## 1. Make the plugin
|
|
@@ -182,23 +181,61 @@ the same as the command.
|
|
|
182
181
|
## To npm
|
|
183
182
|
|
|
184
183
|
```sh
|
|
185
|
-
npm run acryl -- plugin publish sh-guide-clock --to npm --scope
|
|
184
|
+
npm run acryl -- plugin publish sh-guide-clock --to npm --scope <your-npm-account>
|
|
186
185
|
```
|
|
187
186
|
|
|
188
|
-
It uses **your own** npm login and nothing else: it asks `npm whoami`. The scope is the account of that login,
|
|
189
|
-
|
|
187
|
+
It uses **your own** npm login and nothing else: it asks `npm whoami`. The package is named `@<scope>/<plugin folder>`: the scope is the account of that login,
|
|
188
|
+
or `--scope`. (The door publishes scoped names only; `plugin pull` also takes an unscoped package.) `--registry <address>` names another registry. A version npm
|
|
189
|
+
already has makes it the next patch. The plan and the `yes` are the same as for GitHub. This is the real run of 2026-11-22, a throwaway plugin
|
|
190
|
+
`acryl-share-proof-1122` published by the npm account `webboxescom` (nothing was simulated; the package was deprecated afterwards):
|
|
190
191
|
|
|
191
192
|
```
|
|
192
|
-
Publish to npm as @
|
|
193
|
+
Publish to npm as @webboxescom/acryl-share-proof-1122 (registry https://registry.npmjs.org/, signed in as the account of your own npm login), public, version 0.1.0, license MIT.
|
|
193
194
|
Files: README.md, index.ts, package.json.
|
|
194
|
-
A friend gets exactly these bytes with: npm run acryl -- plugin pull npm:@
|
|
195
|
-
Publish @
|
|
196
|
-
Published: https://www.npmjs.com/package/@
|
|
195
|
+
A friend gets exactly these bytes with: npm run acryl -- plugin pull npm:@webboxescom/acryl-share-proof-1122@0.1.0@sha256:1e09c3ba3253cb78ac8457c75e5ec417a9fbddb30a2b84140f0e3a4daf42c6ec
|
|
196
|
+
Publish @webboxescom/acryl-share-proof-1122 v0.1.0 under MIT? Type yes to send it: yes
|
|
197
|
+
Published: https://www.npmjs.com/package/@webboxescom/acryl-share-proof-1122
|
|
197
198
|
```
|
|
198
199
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
npm answered the upload with `202` ("your package is being processed and may take a few minutes to become available"): the package was listed about five minutes
|
|
201
|
+
later (0.1.1 about three minutes later), and until then `npm view` and a pull say `404` / "npm has no ...". Wait, then pull. Ben, in his own app with no npm login:
|
|
202
|
+
|
|
203
|
+
```sh
|
|
204
|
+
npm run acryl -- plugin pull npm:@webboxescom/acryl-share-proof-1122
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
```
|
|
208
|
+
{
|
|
209
|
+
"ok": true,
|
|
210
|
+
"name": "acryl-share-proof-1122",
|
|
211
|
+
"version": "0.1.0",
|
|
212
|
+
"integrity": "sha512-2UZh8hxoOnZoordA3z3/CgDv/S85t0VMfpo308q77ztkSiqOtPFDCXC7vXPqPqks1GctZ3uAC4JkEgAE1OzIwA==",
|
|
213
|
+
"digest": "1e09c3ba3253cb78ac8457c75e5ec417a9fbddb30a2b84140f0e3a4daf42c6ec",
|
|
214
|
+
"action": "installed",
|
|
215
|
+
"state": "active",
|
|
216
|
+
"remembered": true
|
|
217
|
+
}
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
The digest is the one the publisher's plan printed, and the plugin answered at once (`{"text":"proof, v0.1.0"}`). An update works as for GitHub: Ana published 0.1.1 (the
|
|
221
|
+
plan named the next patch itself); Ben, who had added `BEN.md` and a comment line to `index.ts`, pulled again and kept both:
|
|
222
|
+
|
|
223
|
+
```
|
|
224
|
+
{
|
|
225
|
+
"ok": true,
|
|
226
|
+
"name": "acryl-share-proof-1122",
|
|
227
|
+
"version": "0.1.1",
|
|
228
|
+
"integrity": "sha512-QGHk5W2SUip3AUGBO9UbI7kzMlJsLwLJvUoQtCICgVIJiV01rSA/6JCA7RILxiey1ddcHMemkbcOnd+Iz9oo0A==",
|
|
229
|
+
"digest": "0f4385f83e9efaa80430762ca89b6248a38fdff9bdd11f4243d3202f4c14fedd",
|
|
230
|
+
"action": "updated",
|
|
231
|
+
"state": "active",
|
|
232
|
+
"remembered": true,
|
|
233
|
+
"kept": [
|
|
234
|
+
"BEN.md",
|
|
235
|
+
"index.ts"
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
```
|
|
202
239
|
|
|
203
240
|
Signed out, the plan is refused and says how to sign in:
|
|
204
241
|
|
|
@@ -207,8 +244,9 @@ refused: npm whoami failed: you are not signed in to npm on https://registry.npm
|
|
|
207
244
|
```
|
|
208
245
|
|
|
209
246
|
In the app, Settings > Plugins > **Share...** > **Publish to npm** does the same (the account field is the scope), and the card then reads "Shared on npm" with a
|
|
210
|
-
copyable pull line.
|
|
211
|
-
|
|
247
|
+
copyable pull line. Taking a package back: `npm unpublish <package> --force` works within 72 hours, but npm refuses it for an access token that skips two-factor
|
|
248
|
+
(`403 ... Granular access tokens that bypass two-factor authentication may not perform this action`), so run it signed in with two-factor, or use
|
|
249
|
+
`npm deprecate <package> "<message>"`, which that token may do.
|
|
212
250
|
|
|
213
251
|
## Try it without touching your own account
|
|
214
252
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acryldev/agent-panel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "A chat panel inside the running app: the person writes what they want, the app's own agent (or Claude Code, Codex or pi started in the app folder) builds it through the same door, and the page reloads when a plugin was installed, with no restart. Development only; opt-in with acrylblends add agent-panel.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acryldev/desktop-shell",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Run the app as a desktop app: an Electron window on the app's own server. `npm run desktop`; the app's code never imports electron.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acryldev/desktop-web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Run a plain Acryl app (`export default app`) as a desktop app: an Electron window on the app's own server. `npm run desktop`; the app's code never imports electron. `acrylblends add desktop` picks this one for an app without the Blend plugins.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acryldev/driver-acp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Any agent that speaks the Agent Client Protocol (ACP) as a chat in the agent panel, started in the app folder: DeepSeek Harness (dsh --profile acp) is the first preset, other ACP agents are added by config. Development only; needs the agent panel; opt-in with acrylblends add driver-acp.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acryldev/driver-pty",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "A coding agent (claude, codex, pi, any program) in a real terminal inside the running app: the panel gets a terminal tab, the agent builds through the door in its own interactive mode. Development only; needs the agent panel; opt-in with acrylblends add driver-pty.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acryldev/extensions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Install, update, remove and reload plugins while the app runs; a failed update brings the previous version back; a ledger of every change.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acryldev/feedback",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Feedback from the people who use the app: a Feedback button on every page, in production too, that lets them pinpoint the element they mean (or choose \"Nothing specific\") and send a note; the ACRYL frame shows the notes in the builder's left panel.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -11,6 +11,7 @@ import { createHash } from 'node:crypto'
|
|
|
11
11
|
import { readFileSync } from 'node:fs'
|
|
12
12
|
import { basename, join, resolve } from 'node:path'
|
|
13
13
|
import type { Context } from '@deepseek-ai/cordis'
|
|
14
|
+
import { parse } from 'yaml'
|
|
14
15
|
import {
|
|
15
16
|
AppInstanceError,
|
|
16
17
|
appDataHome,
|
|
@@ -95,8 +96,20 @@ const plainName = (folder: string) =>
|
|
|
95
96
|
.replace(/[^a-z0-9]+/g, '-')
|
|
96
97
|
.replace(/^-+|-+$/g, '') || 'app'
|
|
97
98
|
|
|
98
|
-
/**
|
|
99
|
+
/**
|
|
100
|
+
* The name the person sees for the app (the window's title, the About panel, the Dock): its Blend's name when its `blend.yaml` has one ("ACRYL Control Center", made in a folder
|
|
101
|
+
* called `control-center`), else the name the app was made with (`init --name`, kept as package.json's name), or undefined when it has neither.
|
|
102
|
+
*/
|
|
99
103
|
function declaredName(root: string): string | undefined {
|
|
104
|
+
try {
|
|
105
|
+
const manifest = parse(readFileSync(join(root, 'blend.yaml'), 'utf8')) as {
|
|
106
|
+
metadata?: { name?: unknown }
|
|
107
|
+
} | null
|
|
108
|
+
const blend = manifest?.metadata?.name
|
|
109
|
+
if (typeof blend === 'string' && blend.trim() !== '') return blend.trim()
|
|
110
|
+
} catch {
|
|
111
|
+
// No blend.yaml, or one that cannot be read: the package names the app.
|
|
112
|
+
}
|
|
100
113
|
try {
|
|
101
114
|
const name = (
|
|
102
115
|
JSON.parse(readFileSync(join(root, 'package.json'), 'utf8')) as { name?: unknown }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acryldev/plugin-share",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Share plugins between people. Pull one someone released into the running app: fetched without running anything, checked by digest and for every OS, then installed live. Publish one, only as a plan a person confirmed.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acryldev/showcase",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "The collective app's showcase: a page at /showcase with a card for every plugin in the app (name, author, version, where it came from, its state, and links to its pages, its home widget and its tool), updated live as plugins are pulled and removed.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|