@acryldev/launcher-desktop 0.1.7 → 0.1.9
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/README.md +3 -0
- package/lib/client.js +66 -38
- package/lib/client.js.map +1 -1
- package/lib/index.js +5 -996
- package/lib/index.js.map +1 -1
- package/lib/node-DxDbk2F0.js +1062 -0
- package/lib/node-DxDbk2F0.js.map +1 -0
- package/lib/node.js +2 -0
- package/lib/page.js +9 -9
- package/lib/types/contract.d.ts +9 -0
- package/lib/types/index.d.ts +5 -0
- package/lib/types/node.d.ts +7 -0
- package/lib/types/runner.d.ts +3 -0
- package/lib/types/service.d.ts +5 -1
- package/package.json +7 -3
package/lib/types/contract.d.ts
CHANGED
|
@@ -54,6 +54,15 @@ export interface AppView {
|
|
|
54
54
|
}
|
|
55
55
|
/** WebBoxes.ai's New WebBox form, opened with the app's repository filled in (the person signs in and presses Create there). */
|
|
56
56
|
export declare function webboxesDeployUrl(github: string, name: string): string;
|
|
57
|
+
/**
|
|
58
|
+
* WebBoxes.ai's New WebBox form for a store Blend: with `?blend=<id>` the form opens on that registry Blend (the person signs in and presses
|
|
59
|
+
* Create there). A community Blend that lives on GitHub rather than in the registry (`source` is `github:owner/repo#tag`) deploys from its
|
|
60
|
+
* repository, as a shared app does.
|
|
61
|
+
*/
|
|
62
|
+
export declare function webboxesDeployBlendUrl(blend: {
|
|
63
|
+
readonly id: string;
|
|
64
|
+
readonly source?: string | undefined;
|
|
65
|
+
}): string;
|
|
57
66
|
export interface StarterView {
|
|
58
67
|
readonly value: string;
|
|
59
68
|
readonly label: string;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cordis Host plugin: the routes behind the ACRYL screen, the first screen of the desktop app (spec 050 T012). It lists the apps in the ACRYL home's
|
|
3
|
+
* `apps.json`, adds, removes, makes, starts and stops them, and stops everything it started when it unloads.
|
|
4
|
+
* Capability boundary: the list and what runs on this machine (one service, `LauncherService`); the drawing is the Client half.
|
|
5
|
+
*/
|
|
1
6
|
import type { Context } from '@deepseek-ai/cordis';
|
|
2
7
|
export declare const name = "acryl-launcher-desktop";
|
|
3
8
|
/** The part of the runtime's `appInstance` service ACRYL plugins read (every plugin declares exactly this shape, so the augmentations agree). */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LauncherService } from './service.ts';
|
|
2
|
+
/** `home` is ACRYL's home (`~/.acryl`); new apps are suggested in the visible folder beside it (`~/ACRYL`): the home's parent, never a looked-up user folder. */
|
|
3
|
+
export declare function createNodeLauncher(home: string, environment?: () => Readonly<Record<string, string | undefined>>): LauncherService;
|
|
4
|
+
export { LauncherRefusal, LauncherService } from './service.ts';
|
|
5
|
+
export { readBlends, RegistryUnavailable } from './registry.ts';
|
|
6
|
+
export { webboxesDeployUrl } from './contract.ts';
|
|
7
|
+
export type { AppView, BlendView, GithubPollView, GithubStartView, JobView, PluginView, StateResponse, Surface } from './contract.ts';
|
package/lib/types/runner.d.ts
CHANGED
|
@@ -14,6 +14,9 @@ export interface Command {
|
|
|
14
14
|
readonly args: readonly string[];
|
|
15
15
|
readonly cwd: string;
|
|
16
16
|
readonly env: Readonly<Record<string, string | undefined>>;
|
|
17
|
+
/** A file for the command's output instead of a pipe into this process: a command that may outlive this process (a Desktop app's window) needs it,
|
|
18
|
+
* since a write into a pipe whose reader has gone kills the writer (EPIPE). Its output still reaches `onOutput`, read from the file as it grows. */
|
|
19
|
+
readonly log?: string;
|
|
17
20
|
}
|
|
18
21
|
export type Runner = (command: Command) => Run;
|
|
19
22
|
/** The environment a started app gets: this process's, without the keys above, plus the places Node usually lives (a Dock launch has a short PATH). */
|
package/lib/types/service.d.ts
CHANGED
|
@@ -48,7 +48,11 @@ export declare class LauncherService {
|
|
|
48
48
|
* install). A running app is stopped first and started again after.
|
|
49
49
|
*/
|
|
50
50
|
update(id: string): void;
|
|
51
|
-
|
|
51
|
+
/**
|
|
52
|
+
* When this app quits (or the plugin unloads): stop everything it started, except a Desktop app whose window is open. That window is the person's
|
|
53
|
+
* own, and closing it stops the app; a Web app has no window, so it would run on unseen. Returns the names of the apps left open.
|
|
54
|
+
*/
|
|
55
|
+
stopAll(): string[];
|
|
52
56
|
/**
|
|
53
57
|
* Make an app: the same `acryl new <name> <starter>` the terminal runs, in the folder the person chose. `acryl new` goes on to install and start the app,
|
|
54
58
|
* so the process it began is the app's running process: when its blend.yaml appears the app is listed and that process is adopted as the app's.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acryldev/launcher-desktop",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "The ACRYL screen of the desktop app (spec 050): every app made with ACRYL on this machine, the surface of each (Web, Desktop, CLI/TUI), and New app, Add a folder, Start and Stop. The Host half serves the list and runs the commands; the Client half draws the Control Center design as the first screen",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
"types": "./lib/types/index.d.ts",
|
|
21
21
|
"default": "./lib/index.js"
|
|
22
22
|
},
|
|
23
|
+
"./node": {
|
|
24
|
+
"types": "./lib/types/node.d.ts",
|
|
25
|
+
"default": "./lib/node.js"
|
|
26
|
+
},
|
|
23
27
|
"./client": {
|
|
24
28
|
"types": "./lib/types/client/index.d.ts",
|
|
25
29
|
"default": "./lib/client.js"
|
|
@@ -44,7 +48,7 @@
|
|
|
44
48
|
"node": "^22.19.0 || >=24.0.0"
|
|
45
49
|
},
|
|
46
50
|
"dependencies": {
|
|
47
|
-
"@acryldev/blends": "^1.7.
|
|
51
|
+
"@acryldev/blends": "^1.7.21",
|
|
48
52
|
"@acryldev/control": "0.3.0",
|
|
49
53
|
"@acryldev/launcher": "0.1.4",
|
|
50
54
|
"@acryldev/loopback-http": "0.2.1"
|
|
@@ -55,7 +59,7 @@
|
|
|
55
59
|
"react": "18.3.1"
|
|
56
60
|
},
|
|
57
61
|
"devDependencies": {
|
|
58
|
-
"@acryldev/blends": "^1.7.
|
|
62
|
+
"@acryldev/blends": "^1.7.21",
|
|
59
63
|
"@acryldev/ui": "0.4.0",
|
|
60
64
|
"@deepseek-ai/cordis": "4.0.4",
|
|
61
65
|
"@deepseek-ai/dsh-client-modules": "0.2.0-rc.2",
|