@rynx-ai/daemon 0.1.11-beta.14 → 0.1.11-beta.15
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/plugin-cli.d.ts
CHANGED
|
@@ -20,6 +20,16 @@ export interface PluginCliCommandResult {
|
|
|
20
20
|
stderrTruncated: boolean;
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
+
export interface InstalledPluginListItem {
|
|
24
|
+
id: string;
|
|
25
|
+
version: string;
|
|
26
|
+
source: "local" | "git";
|
|
27
|
+
state: "enabled" | "disabled";
|
|
28
|
+
}
|
|
29
|
+
/** Read the durable installed-plugin inventory without contacting the daemon. */
|
|
30
|
+
export declare function listInstalledPlugins(): InstalledPluginListItem[];
|
|
31
|
+
/** Render manifest-declared command help without executing plugin code. */
|
|
32
|
+
export declare function installedPluginCommandUsage(pluginId: string): string;
|
|
23
33
|
/** Execute one statically declared, language-neutral plugin command. */
|
|
24
34
|
export declare function runPluginCliCommand(pluginId: string, args: readonly string[], options?: RunPluginCliOptions): Promise<PluginCliCommandResult>;
|
|
25
35
|
export declare function pluginCommandUsage(record: RunnablePluginRecord): string;
|
package/dist/plugin-cli.js
CHANGED
|
@@ -6,10 +6,26 @@ import { db } from "./db.js";
|
|
|
6
6
|
import { transaction } from "./sqlite.js";
|
|
7
7
|
import { pluginDataDir, pluginRuntimeCacheDir } from "./plugin-installer.js";
|
|
8
8
|
import { validatePluginPackageSnapshot } from "./plugin-package.js";
|
|
9
|
-
import { getPlugin } from "./plugin-store.js";
|
|
9
|
+
import { getPlugin, listPlugins, } from "./plugin-store.js";
|
|
10
10
|
import { loadOrCreateDaemonInstallationIdentitySync } from "./installation-id.js";
|
|
11
11
|
const DEFAULT_TERMINATION_GRACE_MS = 2_000;
|
|
12
12
|
const MAX_TERMINATION_GRACE_MS = 30_000;
|
|
13
|
+
/** Read the durable installed-plugin inventory without contacting the daemon. */
|
|
14
|
+
export function listInstalledPlugins() {
|
|
15
|
+
return listPlugins().map((record) => ({
|
|
16
|
+
id: record.canonicalId,
|
|
17
|
+
version: record.version,
|
|
18
|
+
source: record.source,
|
|
19
|
+
state: record.enabled ? "enabled" : "disabled",
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
/** Render manifest-declared command help without executing plugin code. */
|
|
23
|
+
export function installedPluginCommandUsage(pluginId) {
|
|
24
|
+
const record = getPlugin(pluginId);
|
|
25
|
+
if (!record)
|
|
26
|
+
throw new Error(`plugin "${pluginId}" is not installed`);
|
|
27
|
+
return pluginCommandUsage(record);
|
|
28
|
+
}
|
|
13
29
|
/** Execute one statically declared, language-neutral plugin command. */
|
|
14
30
|
export async function runPluginCliCommand(pluginId, args, options = {}) {
|
|
15
31
|
const hostEnv = options.env ?? process.env;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rynx-ai/daemon",
|
|
3
|
-
"version": "0.1.11-beta.
|
|
3
|
+
"version": "0.1.11-beta.15",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/rynx-ai/rynx.git",
|
|
@@ -36,6 +36,10 @@
|
|
|
36
36
|
"types": "./dist/setup-service.d.ts",
|
|
37
37
|
"default": "./dist/setup-service.js"
|
|
38
38
|
},
|
|
39
|
+
"./plugin-cli": {
|
|
40
|
+
"types": "./dist/plugin-cli.d.ts",
|
|
41
|
+
"default": "./dist/plugin-cli.js"
|
|
42
|
+
},
|
|
39
43
|
"./internal/process": {
|
|
40
44
|
"types": "./dist/process.d.ts",
|
|
41
45
|
"default": "./dist/process.js"
|
|
@@ -46,17 +50,17 @@
|
|
|
46
50
|
"pm2": "^6.0.0",
|
|
47
51
|
"tar": "^7.5.19",
|
|
48
52
|
"ws": "^8.21.0",
|
|
49
|
-
"@rynx-ai/
|
|
50
|
-
"@rynx-ai/
|
|
51
|
-
"@rynx-ai/plugin-runner": "0.1.11-beta.
|
|
52
|
-
"@rynx-ai/plugin-sdk": "0.1.11-beta.
|
|
53
|
-
"@rynx-ai/protocol": "0.1.11-beta.
|
|
54
|
-
"@rynx-ai/remote-runtime-client": "0.1.11-beta.
|
|
55
|
-
"@rynx-ai/server": "0.1.11-beta.
|
|
53
|
+
"@rynx-ai/emulator": "0.1.11-beta.15",
|
|
54
|
+
"@rynx-ai/core": "0.1.11-beta.15",
|
|
55
|
+
"@rynx-ai/plugin-runner": "0.1.11-beta.15",
|
|
56
|
+
"@rynx-ai/plugin-sdk": "0.1.11-beta.15",
|
|
57
|
+
"@rynx-ai/protocol": "0.1.11-beta.15",
|
|
58
|
+
"@rynx-ai/remote-runtime-client": "0.1.11-beta.15",
|
|
59
|
+
"@rynx-ai/server": "0.1.11-beta.15"
|
|
56
60
|
},
|
|
57
61
|
"devDependencies": {
|
|
58
62
|
"@types/ws": "^8.18.1",
|
|
59
|
-
"@rynx-ai/plugin-channel-lark": "0.1.11-beta.
|
|
63
|
+
"@rynx-ai/plugin-channel-lark": "0.1.11-beta.15"
|
|
60
64
|
},
|
|
61
65
|
"scripts": {
|
|
62
66
|
"build": "rm -rf dist bundled-plugins && tsc -p tsconfig.json && chmod +x dist/index-daemon.js && node ../../scripts/stage-bundled-plugins.mjs",
|