@rynx-ai/daemon 0.1.10 → 0.1.11-beta.2
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/bundled-plugins/.rynx-plugin/marketplace.json +10 -0
- package/bundled-plugins/plugins/lark/.rynx-plugin/plugin.json +37 -0
- package/bundled-plugins/plugins/lark/dist/cli-mirror/mirror-index.d.ts +48 -0
- package/bundled-plugins/plugins/lark/dist/cli-mirror/mirror-index.js +54 -0
- package/bundled-plugins/plugins/lark/dist/cli-mirror/rollout-mirror.d.ts +85 -0
- package/bundled-plugins/plugins/lark/dist/cli-mirror/rollout-mirror.js +333 -0
- package/bundled-plugins/plugins/lark/dist/cli-mirror/rollout-watcher.d.ts +109 -0
- package/bundled-plugins/plugins/lark/dist/cli-mirror/rollout-watcher.js +347 -0
- package/bundled-plugins/plugins/lark/dist/host-adapters.d.ts +95 -0
- package/bundled-plugins/plugins/lark/dist/host-adapters.js +504 -0
- package/bundled-plugins/plugins/lark/dist/index.d.ts +7 -0
- package/bundled-plugins/plugins/lark/dist/index.js +7 -0
- package/bundled-plugins/plugins/lark/dist/lark-card-stream.d.ts +363 -0
- package/bundled-plugins/plugins/lark/dist/lark-card-stream.js +1335 -0
- package/bundled-plugins/plugins/lark/dist/lark-config-store.d.ts +30 -0
- package/bundled-plugins/plugins/lark/dist/lark-config-store.js +135 -0
- package/bundled-plugins/plugins/lark/dist/lark-content.d.ts +30 -0
- package/bundled-plugins/plugins/lark/dist/lark-content.js +138 -0
- package/bundled-plugins/plugins/lark/dist/lark-conversation-directory.d.ts +65 -0
- package/bundled-plugins/plugins/lark/dist/lark-conversation-directory.js +106 -0
- package/bundled-plugins/plugins/lark/dist/lark-diff-card.d.ts +25 -0
- package/bundled-plugins/plugins/lark/dist/lark-diff-card.js +58 -0
- package/bundled-plugins/plugins/lark/dist/lark-fork-transcript.d.ts +16 -0
- package/bundled-plugins/plugins/lark/dist/lark-fork-transcript.js +141 -0
- package/bundled-plugins/plugins/lark/dist/lark-resume-card.d.ts +31 -0
- package/bundled-plugins/plugins/lark/dist/lark-resume-card.js +105 -0
- package/bundled-plugins/plugins/lark/dist/lark-runtime-state-store.d.ts +18 -0
- package/bundled-plugins/plugins/lark/dist/lark-runtime-state-store.js +95 -0
- package/bundled-plugins/plugins/lark/dist/lark-sdk/client.d.ts +8 -0
- package/bundled-plugins/plugins/lark/dist/lark-sdk/client.js +32 -0
- package/bundled-plugins/plugins/lark/dist/lark-sdk/index.d.ts +1 -0
- package/bundled-plugins/plugins/lark/dist/lark-sdk/index.js +1 -0
- package/bundled-plugins/plugins/lark/dist/lark-sender.d.ts +114 -0
- package/bundled-plugins/plugins/lark/dist/lark-sender.js +323 -0
- package/bundled-plugins/plugins/lark/dist/lark-session-store.d.ts +13 -0
- package/bundled-plugins/plugins/lark/dist/lark-session-store.js +14 -0
- package/bundled-plugins/plugins/lark/dist/lark-settings-card.d.ts +55 -0
- package/bundled-plugins/plugins/lark/dist/lark-settings-card.js +158 -0
- package/bundled-plugins/plugins/lark/dist/lark-setup.d.ts +39 -0
- package/bundled-plugins/plugins/lark/dist/lark-setup.js +103 -0
- package/bundled-plugins/plugins/lark/dist/lark.d.ts +507 -0
- package/bundled-plugins/plugins/lark/dist/lark.js +1977 -0
- package/bundled-plugins/plugins/lark/dist/runtime.d.ts +13 -0
- package/bundled-plugins/plugins/lark/dist/runtime.js +131316 -0
- package/bundled-plugins/plugins/lark/dist/settings.d.ts +7 -0
- package/bundled-plugins/plugins/lark/dist/settings.js +126958 -0
- package/bundled-plugins/plugins/lark/package.json +57 -0
- package/bundled-plugins/plugins/lark/ui/assets/index-B2dhMlMU.css +1 -0
- package/bundled-plugins/plugins/lark/ui/assets/index-D9N-AkLX.js +201 -0
- package/bundled-plugins/plugins/lark/ui/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/bundled-plugins/plugins/lark/ui/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/bundled-plugins/plugins/lark/ui/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/bundled-plugins/plugins/lark/ui/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/bundled-plugins/plugins/lark/ui/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/bundled-plugins/plugins/lark/ui/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/bundled-plugins/plugins/lark/ui/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/bundled-plugins/plugins/lark/ui/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/bundled-plugins/plugins/lark/ui/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/bundled-plugins/plugins/lark/ui/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/bundled-plugins/plugins/lark/ui/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/bundled-plugins/plugins/lark/ui/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/bundled-plugins/plugins/lark/ui/index.html +13 -0
- package/dist/bundled-plugins.d.ts +15 -0
- package/dist/bundled-plugins.js +134 -0
- package/dist/cli.js +26 -208
- package/dist/control-deps.js +2 -79
- package/dist/daemon-server.d.ts +4 -1
- package/dist/daemon-server.js +167 -57
- package/dist/db.js +145 -124
- package/dist/index-daemon.js +25 -4
- package/dist/migrations/cleanup-legacy-sessions.d.ts +1 -1
- package/dist/migrations/cleanup-legacy-sessions.js +33 -15
- package/dist/official-plugins.d.ts +2 -0
- package/dist/official-plugins.js +2 -0
- package/dist/plugin-cli.d.ts +1 -3
- package/dist/plugin-cli.js +56 -45
- package/dist/plugin-host-leases.d.ts +4 -0
- package/dist/plugin-host-leases.js +7 -0
- package/dist/plugin-host-rpc.d.ts +42 -4
- package/dist/plugin-host-rpc.js +144 -34
- package/dist/plugin-installer.d.ts +24 -55
- package/dist/plugin-installer.js +202 -415
- package/dist/plugin-management-service.d.ts +30 -23
- package/dist/plugin-management-service.js +290 -105
- package/dist/plugin-marketplace.d.ts +35 -0
- package/dist/plugin-marketplace.js +299 -0
- package/dist/plugin-package.d.ts +22 -24
- package/dist/plugin-package.js +520 -571
- package/dist/plugin-skill-context.d.ts +4 -0
- package/dist/plugin-skill-context.js +35 -0
- package/dist/plugin-store.d.ts +36 -37
- package/dist/plugin-store.js +140 -92
- package/dist/plugin-supervisor.d.ts +45 -125
- package/dist/plugin-supervisor.js +516 -1053
- package/dist/pm2.js +15 -10
- package/dist/runtime-project-store.d.ts +9 -0
- package/dist/runtime-project-store.js +83 -0
- package/dist/session-fallback-workspace.d.ts +22 -0
- package/dist/session-fallback-workspace.js +120 -0
- package/dist/session-fork-store.d.ts +41 -0
- package/dist/session-fork-store.js +288 -0
- package/dist/session-launch-operations.d.ts +14 -2
- package/dist/session-launch-operations.js +34 -2
- package/dist/session-meta-store.d.ts +7 -9
- package/dist/session-meta-store.js +28 -49
- package/dist/setup.js +26 -14
- package/package.json +14 -11
- package/dist/channel-store.d.ts +0 -22
- package/dist/channel-store.js +0 -65
- package/dist/instance-store.d.ts +0 -38
- package/dist/instance-store.js +0 -85
- package/dist/plugin-install-restart.d.ts +0 -13
- package/dist/plugin-install-restart.js +0 -24
- package/dist/plugin-runtime-control.d.ts +0 -2
- package/dist/plugin-runtime-control.js +0 -37
- package/dist/registry.d.ts +0 -10
- package/dist/registry.js +0 -52
|
@@ -1,83 +1,52 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type PluginRecord, type PluginSource } from "./plugin-store.js";
|
|
1
|
+
import { type PluginManifestV1, type PluginPackageSourceV1 } from "@rynx-ai/plugin-sdk";
|
|
3
2
|
import { type PluginPackageMaterializer } from "./plugin-package.js";
|
|
3
|
+
import { type PluginRecord, type PluginSource } from "./plugin-store.js";
|
|
4
4
|
export interface InstallResult {
|
|
5
5
|
name: string;
|
|
6
|
+
canonicalId: string;
|
|
7
|
+
marketplaceId: string;
|
|
8
|
+
pluginId: string;
|
|
6
9
|
source: PluginSource;
|
|
7
|
-
version
|
|
8
|
-
/** True when an existing same-named plugin was kept. */
|
|
10
|
+
version: string;
|
|
9
11
|
skipped?: boolean;
|
|
10
12
|
}
|
|
11
13
|
export interface InstallPluginOptions {
|
|
12
14
|
signal?: AbortSignal;
|
|
13
15
|
onConflict?: (existing: PluginRecord) => boolean | Promise<boolean>;
|
|
14
|
-
/** Pre-approved subset for non-interactive/programmatic callers. */
|
|
15
|
-
grants?: readonly PluginCapability[];
|
|
16
|
-
/** Resolve the approved subset after static inspection and before promotion. */
|
|
17
|
-
approveCapabilities?: (manifest: PluginManifestV1, existing: PluginRecord | undefined) => readonly PluginCapability[] | Promise<readonly PluginCapability[]>;
|
|
18
|
-
/** Dependency injection for offline tests and alternate package fetchers. */
|
|
19
16
|
materializer?: PluginPackageMaterializer;
|
|
20
|
-
/** Require the inspected manifest to retain this id (used by update). */
|
|
21
17
|
expectedId?: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
expectedIdentity?: string;
|
|
19
|
+
/** Named catalog id. Omit for a source-fingerprinted direct install. */
|
|
20
|
+
marketplaceId?: string;
|
|
25
21
|
expectedDigest?: string;
|
|
26
22
|
}
|
|
27
|
-
export
|
|
28
|
-
signal?: AbortSignal;
|
|
29
|
-
/** Dependency injection for offline tests and alternate package fetchers. */
|
|
30
|
-
materializer?: PluginPackageMaterializer;
|
|
31
|
-
/** Require the inspected manifest to retain this id (used by update). */
|
|
32
|
-
expectedId?: string;
|
|
33
|
-
/** Explicitly allow package/dependency lifecycle build scripts in staging. */
|
|
34
|
-
allowScripts?: boolean;
|
|
35
|
-
}
|
|
23
|
+
export type PreparePluginInstallationOptions = Pick<InstallPluginOptions, "signal" | "materializer" | "expectedId" | "expectedIdentity" | "marketplaceId">;
|
|
36
24
|
export interface CommitPreparedPluginInstallationOptions {
|
|
37
|
-
grants: readonly PluginCapability[];
|
|
38
25
|
expectedDigest: string;
|
|
39
26
|
signal?: AbortSignal;
|
|
40
27
|
}
|
|
41
|
-
/**
|
|
42
|
-
* One daemon-owned, already materialized artifact. The handle is process-local
|
|
43
|
-
* and one-shot: commit or discard consumes it.
|
|
44
|
-
*/
|
|
45
28
|
export interface PreparedPluginInstallation {
|
|
46
29
|
readonly name: string;
|
|
30
|
+
readonly canonicalId: string;
|
|
31
|
+
readonly marketplaceId: string;
|
|
32
|
+
readonly pluginId: string;
|
|
47
33
|
readonly source: PluginSource;
|
|
48
|
-
readonly version
|
|
34
|
+
readonly version: string;
|
|
49
35
|
readonly manifest: PluginManifestV1;
|
|
50
36
|
readonly integrity: string;
|
|
37
|
+
readonly requestedSource: PluginPackageSourceV1;
|
|
38
|
+
readonly resolvedRevision: string;
|
|
39
|
+
readonly sourceFingerprint: string;
|
|
51
40
|
readonly existing?: PluginRecord;
|
|
52
41
|
commit(options: CommitPreparedPluginInstallationOptions): Promise<InstallResult>;
|
|
53
42
|
discard(): void;
|
|
54
43
|
}
|
|
55
|
-
/**
|
|
56
|
-
* Install or replace one arbitrary npm/local/git/URL plugin package.
|
|
57
|
-
*
|
|
58
|
-
* A failed validation, materialization, atomic move, or registry update leaves
|
|
59
|
-
* the previously registered installation untouched.
|
|
60
|
-
*/
|
|
61
44
|
export declare function installPlugin(spec: string, onProgress?: (line: string) => void, opts?: InstallPluginOptions): Promise<InstallResult>;
|
|
62
|
-
/**
|
|
63
|
-
* Materialize, build (only when explicitly allowed), inspect, and hash one
|
|
64
|
-
* plugin into host-owned staging without mutating the registry.
|
|
65
|
-
*/
|
|
66
45
|
export declare function preparePluginInstallation(spec: string, onProgress?: (line: string) => void, opts?: PreparePluginInstallationOptions): Promise<PreparedPluginInstallation>;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
export declare function
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
*
|
|
75
|
-
* A short grace window prevents a concurrently materializing install (renamed
|
|
76
|
-
* just before its registry transaction) from being mistaken for an orphan.
|
|
77
|
-
*/
|
|
78
|
-
export declare function pruneInactivePluginInstallations({ minAgeMs, stagingMinAgeMs, now, }?: {
|
|
79
|
-
minAgeMs?: number;
|
|
80
|
-
stagingMinAgeMs?: number;
|
|
81
|
-
now?: number;
|
|
82
|
-
}): string[];
|
|
83
|
-
export type { PluginRecord };
|
|
46
|
+
export declare function uninstallPlugin(identity: string, onProgress?: (line: string) => void, options?: {
|
|
47
|
+
purgeData?: boolean;
|
|
48
|
+
}): Promise<boolean>;
|
|
49
|
+
export declare function pruneInactivePluginInstallations(): string[];
|
|
50
|
+
export declare function pluginDataDir(marketplaceId: string, pluginId: string): string;
|
|
51
|
+
export declare function pluginRuntimeCacheDir(marketplaceId: string, pluginId: string, integrity: string): string;
|
|
52
|
+
export declare function marketplaceStorageSegment(marketplaceId: string): string;
|