@acryldev/blends-frame 0.2.6 → 0.2.8
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/lib/app-plugins.d.ts +3 -3
- package/lib/client.js +39 -18
- package/lib/client.js.map +1 -1
- package/lib/contract.d.ts +10 -0
- package/lib/index.d.ts +2 -2
- package/lib/index.js +46 -15
- package/lib/index.js.map +1 -1
- package/lib/types/client/plugins-navigator.d.ts +5 -4
- package/lib/types/contract.d.ts +10 -0
- package/package.json +3 -3
|
@@ -8,8 +8,9 @@ import { type AppPluginKind, type AppPluginsView, type AppPluginView, type Frame
|
|
|
8
8
|
export type ShareTarget = ShareVisibility | 'registry';
|
|
9
9
|
/** Sharing a local plugin: first what it would do, then, on the person's yes, exactly that. */
|
|
10
10
|
export interface PluginShare {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
/** `owner`: the GitHub account or organization to share to; absent means the person's own. */
|
|
12
|
+
plan(target?: ShareTarget, owner?: string): Promise<SharePlan>;
|
|
13
|
+
publish(confirmed: SharePlan, owner?: string): Promise<SharedPluginView>;
|
|
13
14
|
}
|
|
14
15
|
/** What the person can do with one local plugin besides sharing it: keep a packed copy on this machine, and look at its code. */
|
|
15
16
|
export interface PluginActions {
|
|
@@ -71,9 +72,9 @@ export interface AppPluginsApi {
|
|
|
71
72
|
read(): Promise<AppPluginsView>;
|
|
72
73
|
switch(kind: AppPluginKind, name: string, on: boolean): Promise<void>;
|
|
73
74
|
/** What sharing one local plugin would do (private unless `visibility` says public); nothing is sent. */
|
|
74
|
-
planShare(name: string, target?: ShareTarget): Promise<SharePlan>;
|
|
75
|
+
planShare(name: string, target?: ShareTarget, owner?: string): Promise<SharePlan>;
|
|
75
76
|
/** Share one local plugin as the person confirmed it; answers where it went. */
|
|
76
|
-
share(name: string, confirmed: SharePlan): Promise<SharedPluginView>;
|
|
77
|
+
share(name: string, confirmed: SharePlan, owner?: string): Promise<SharedPluginView>;
|
|
77
78
|
/** Keep a packed copy of one local plugin on this machine. */
|
|
78
79
|
save(name: string): Promise<SavedPluginResult>;
|
|
79
80
|
}
|
package/lib/types/contract.d.ts
CHANGED
|
@@ -195,6 +195,11 @@ export interface AppSharedView {
|
|
|
195
195
|
}
|
|
196
196
|
export declare function parseAppSharePlan(value: unknown): AppSharePlanView;
|
|
197
197
|
export declare function parseAppShared(value: unknown): AppSharedView;
|
|
198
|
+
/**
|
|
199
|
+
* The GitHub account or organization a person typed to share a plugin to (blank: theirs). `undefined` when none was asked, `null` when what came is not a GitHub name
|
|
200
|
+
* (it goes to a command line: only a name that cannot start with a dash or hold a space or a slash).
|
|
201
|
+
*/
|
|
202
|
+
export declare function parseShareOwner(value: unknown): string | undefined | null;
|
|
198
203
|
export declare function parseAppShareRequest(value: unknown): AppShareRequest | undefined;
|
|
199
204
|
export declare const FRAME_PLUGINS_SHARE_PLAN_PATH = "/api/acryl-blends-frame/plugins/share-plan";
|
|
200
205
|
/** POST `{ name, confirm }`: publish it, only when `confirm` is the plan the person said yes to and it still holds. */
|
|
@@ -247,6 +252,11 @@ export interface SharePlan {
|
|
|
247
252
|
readonly license?: string;
|
|
248
253
|
/** The public registry (cordisplugins.github.io) lists it: the share sets the `cordis-plugin` topic. Only a public share can be listed. */
|
|
249
254
|
readonly registry?: boolean;
|
|
255
|
+
/** Where the registry lists it (category slugs of acrylblends.github.io/blends): the app's own store place, written as package.json keywords. */
|
|
256
|
+
readonly placement?: {
|
|
257
|
+
readonly category: string;
|
|
258
|
+
readonly subcategory?: string;
|
|
259
|
+
};
|
|
250
260
|
}
|
|
251
261
|
/** @throws when the value is not a share plan. */
|
|
252
262
|
export declare function parseSharePlan(value: unknown): SharePlan;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acryldev/blends-frame",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "ACRYL Blends frame: the workbench around an app being built - a top bar, the branches and versions on the left, the app alone in the centre, and the agents on the right - as one Cordis plugin with a Host and a client half",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@acryldev/app-shell": "0.2.1",
|
|
56
56
|
"@acryldev/blends-core": "^0.6.0",
|
|
57
57
|
"@acryldev/loopback-http": "0.2.0",
|
|
58
|
-
"@acryldev/plugin-hub-core": "^0.2.
|
|
58
|
+
"@acryldev/plugin-hub-core": "^0.2.3",
|
|
59
59
|
"@acryldev/versions": "0.2.0",
|
|
60
60
|
"@acryldev/workspace": "0.2.2",
|
|
61
61
|
"yaml": "2.9.0"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"react-dom": "18.3.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@acryldev/blends": "1.7.
|
|
73
|
+
"@acryldev/blends": "1.7.9",
|
|
74
74
|
"@acryldev/ui": "0.4.0",
|
|
75
75
|
"@deepseek-ai/cordis": "4.0.4",
|
|
76
76
|
"@deepseek-ai/cordis-plugin-loader": "1.0.5",
|