@rynx-ai/daemon 0.1.0 → 0.1.10-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/dist/app-browser-host-supervisor.d.ts +97 -0
- package/dist/app-browser-host-supervisor.js +529 -0
- package/dist/browser-artifact-management.d.ts +20 -0
- package/dist/browser-artifact-management.js +61 -0
- package/dist/browser-cli-args.d.ts +20 -0
- package/dist/browser-cli-args.js +100 -0
- package/dist/browser-runner-session-context.d.ts +24 -0
- package/dist/browser-runner-session-context.js +113 -0
- package/dist/cdp-keyboard-input.d.ts +6 -0
- package/dist/cdp-keyboard-input.js +209 -0
- package/dist/channel-store.d.ts +0 -6
- package/dist/channel-store.js +2 -18
- package/dist/chrome-for-testing-release-resolver.d.ts +34 -0
- package/dist/chrome-for-testing-release-resolver.js +214 -0
- package/dist/chrome-for-testing-store.d.ts +85 -0
- package/dist/chrome-for-testing-store.js +836 -0
- package/dist/chrome-inspection-gateway.d.ts +58 -0
- package/dist/chrome-inspection-gateway.js +806 -0
- package/dist/chrome-inspection-manager.d.ts +94 -0
- package/dist/chrome-inspection-manager.js +573 -0
- package/dist/cli.js +478 -30
- package/dist/control-client.d.ts +122 -0
- package/dist/control-client.js +855 -0
- package/dist/control-deps.js +37 -6
- package/dist/control-endpoint.d.ts +14 -0
- package/dist/control-endpoint.js +124 -0
- package/dist/control-link-store.d.ts +16 -0
- package/dist/control-link-store.js +53 -0
- package/dist/daemon-build-status.d.ts +8 -0
- package/dist/daemon-build-status.js +18 -0
- package/dist/daemon-owner.d.ts +14 -0
- package/dist/daemon-owner.js +104 -0
- package/dist/daemon-server.d.ts +29 -2
- package/dist/daemon-server.js +1113 -26
- package/dist/db.js +196 -10
- package/dist/desktop-browser-host-client.d.ts +35 -0
- package/dist/desktop-browser-host-client.js +415 -0
- package/dist/direct-runtime-authenticator.d.ts +13 -0
- package/dist/direct-runtime-authenticator.js +132 -0
- package/dist/direct-runtime-config.d.ts +20 -0
- package/dist/direct-runtime-config.js +101 -0
- package/dist/embedded-browser-profile-cleanup.d.ts +58 -0
- package/dist/embedded-browser-profile-cleanup.js +338 -0
- package/dist/headless-browser-host.d.ts +14 -0
- package/dist/headless-browser-host.js +2173 -0
- package/dist/index-daemon.js +55 -5
- package/dist/installation-id.d.ts +33 -0
- package/dist/installation-id.js +692 -0
- package/dist/maintenance-management.d.ts +11 -0
- package/dist/maintenance-management.js +13 -0
- package/dist/migrations/cleanup-legacy-sessions.d.ts +0 -3
- package/dist/migrations/cleanup-legacy-sessions.js +10 -28
- package/dist/plugin-cli.d.ts +30 -0
- package/dist/plugin-cli.js +270 -0
- package/dist/plugin-host-rpc.d.ts +85 -0
- package/dist/plugin-host-rpc.js +878 -0
- package/dist/plugin-install-restart.d.ts +13 -0
- package/dist/plugin-install-restart.js +24 -0
- package/dist/plugin-installer.d.ts +71 -15
- package/dist/plugin-installer.js +521 -155
- package/dist/plugin-management-service.d.ts +58 -0
- package/dist/plugin-management-service.js +240 -0
- package/dist/plugin-package.d.ts +61 -0
- package/dist/plugin-package.js +732 -0
- package/dist/plugin-runtime-control.d.ts +2 -0
- package/dist/plugin-runtime-control.js +37 -0
- package/dist/plugin-store.d.ts +37 -8
- package/dist/plugin-store.js +80 -15
- package/dist/plugin-supervisor.d.ts +160 -0
- package/dist/plugin-supervisor.js +1143 -0
- package/dist/pm2.d.ts +3 -1
- package/dist/pm2.js +92 -18
- package/dist/provider-cli-service.d.ts +46 -0
- package/dist/provider-cli-service.js +510 -0
- package/dist/registry.d.ts +6 -19
- package/dist/registry.js +22 -87
- package/dist/remote-runtime-access-store.d.ts +62 -0
- package/dist/remote-runtime-access-store.js +393 -0
- package/dist/remote-runtime-admin.d.ts +35 -0
- package/dist/remote-runtime-admin.js +110 -0
- package/dist/remote-runtime-connection-manager.d.ts +103 -0
- package/dist/remote-runtime-connection-manager.js +1575 -0
- package/dist/remote-runtime-credential-store.d.ts +45 -0
- package/dist/remote-runtime-credential-store.js +639 -0
- package/dist/remote-runtime-target-control.d.ts +51 -0
- package/dist/remote-runtime-target-control.js +488 -0
- package/dist/remote-runtime-target-store.d.ts +56 -0
- package/dist/remote-runtime-target-store.js +326 -0
- package/dist/runtime-share-addresses.d.ts +21 -0
- package/dist/runtime-share-addresses.js +50 -0
- package/dist/session-browser-capability-store.d.ts +13 -0
- package/dist/session-browser-capability-store.js +58 -0
- package/dist/session-emulator-binding-store.d.ts +10 -0
- package/dist/session-emulator-binding-store.js +61 -0
- package/dist/session-launch-operations.d.ts +41 -0
- package/dist/session-launch-operations.js +124 -0
- package/dist/session-log-store.js +29 -0
- package/dist/session-meta-store.d.ts +3 -2
- package/dist/session-meta-store.js +59 -7
- package/dist/session-pending-message-store.d.ts +2 -0
- package/dist/session-pending-message-store.js +41 -0
- package/dist/session-resource-store.d.ts +32 -0
- package/dist/session-resource-store.js +700 -0
- package/dist/setup.d.ts +16 -0
- package/dist/setup.js +144 -5
- package/dist/skills-catalog.js +8 -4
- package/dist/update.d.ts +11 -2
- package/dist/update.js +0 -27
- package/package.json +23 -10
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { type RuntimeBrowserInspectTarget } from "@rynx-ai/protocol/runtime-browser-inspect";
|
|
2
|
+
import { type RuntimeBrowserSurfaceOpenFrame } from "@rynx-ai/protocol/runtime-browser-surface";
|
|
3
|
+
import { type DirectRuntimeConnection, type DirectRuntimeBrowserInspectConnection, type DirectRuntimeBrowserSurfaceConnection, type DirectRuntimeCredential } from "@rynx-ai/remote-runtime-client";
|
|
4
|
+
import type { DirectRuntimeBrowserSurfaceHost, DirectRuntimeEmulatorSurfaceHost, RemoteRuntimeDispatcher, RuntimeConnectionLease, RuntimeConnectionResolverHost } from "@rynx-ai/server";
|
|
5
|
+
import { type FileRemoteRuntimeCredentialStore, type RemoteRuntimeClientCredential } from "./remote-runtime-credential-store.js";
|
|
6
|
+
import { type RemoteRuntimeTarget, type RemoteRuntimeTargetStore } from "./remote-runtime-target-store.js";
|
|
7
|
+
export type RuntimeConnectionManagerErrorCode = "invalid_target" | "not_found" | "authentication_failed" | "identity_mismatch" | "incompatible" | "protocol_error" | "deadline_exceeded" | "outcome_unknown" | "closed" | "cancelled";
|
|
8
|
+
export declare class RuntimeConnectionManagerError extends Error {
|
|
9
|
+
readonly code: RuntimeConnectionManagerErrorCode;
|
|
10
|
+
readonly outcome: "not_started" | "unknown" | undefined;
|
|
11
|
+
constructor(code: RuntimeConnectionManagerErrorCode, message: string, options?: ErrorOptions & {
|
|
12
|
+
outcome?: "not_started" | "unknown";
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
interface RuntimeTargetReader {
|
|
16
|
+
get(selector: string): RemoteRuntimeTarget | undefined;
|
|
17
|
+
}
|
|
18
|
+
interface RuntimeCredentialReader {
|
|
19
|
+
load(credentialRef: string): Promise<RemoteRuntimeClientCredential>;
|
|
20
|
+
}
|
|
21
|
+
interface RuntimeClientAdapter {
|
|
22
|
+
connect(credential: DirectRuntimeCredential): Promise<DirectRuntimeConnection>;
|
|
23
|
+
openBrowserInspect?(credential: DirectRuntimeCredential, target: RuntimeBrowserInspectTarget, options?: {
|
|
24
|
+
timeoutMs?: number;
|
|
25
|
+
signal?: AbortSignal;
|
|
26
|
+
}): Promise<DirectRuntimeBrowserInspectConnection>;
|
|
27
|
+
openBrowserSurface?(credential: DirectRuntimeCredential, frame: RuntimeBrowserSurfaceOpenFrame, options?: {
|
|
28
|
+
timeoutMs?: number;
|
|
29
|
+
signal?: AbortSignal;
|
|
30
|
+
}): Promise<DirectRuntimeBrowserSurfaceConnection>;
|
|
31
|
+
}
|
|
32
|
+
export interface DaemonRuntimeConnectionManagerOptions {
|
|
33
|
+
localDaemonId: string;
|
|
34
|
+
dispatcher: Pick<RemoteRuntimeDispatcher, "dispatch" | "openSessionEvents" | "openSessionTerminal">;
|
|
35
|
+
localBrowserSurface?: DirectRuntimeBrowserSurfaceHost;
|
|
36
|
+
localEmulatorSurface?: DirectRuntimeEmulatorSurfaceHost;
|
|
37
|
+
targets: Pick<RemoteRuntimeTargetStore, "get"> | RuntimeTargetReader;
|
|
38
|
+
credentials: Pick<FileRemoteRuntimeCredentialStore, "load"> | RuntimeCredentialReader;
|
|
39
|
+
client?: RuntimeClientAdapter;
|
|
40
|
+
idleTtlMs?: number;
|
|
41
|
+
maxIdleConnections?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Daemon-owned Local/Direct Runtime resolver.
|
|
45
|
+
*
|
|
46
|
+
* Application callers receive only a logical target and a typed call surface;
|
|
47
|
+
* target routes and client credentials never cross this boundary. Direct
|
|
48
|
+
* connections are reused while healthy, but a failed call is never retried.
|
|
49
|
+
*/
|
|
50
|
+
export declare class DaemonRuntimeConnectionManager implements RuntimeConnectionResolverHost {
|
|
51
|
+
private readonly options;
|
|
52
|
+
private readonly client;
|
|
53
|
+
private readonly idleTtlMs;
|
|
54
|
+
private readonly maxIdleConnections;
|
|
55
|
+
private readonly slots;
|
|
56
|
+
private readonly generations;
|
|
57
|
+
/** Independent inspect sockets must outlive shared control-channel eviction. */
|
|
58
|
+
private readonly browserInspectClosers;
|
|
59
|
+
private localStatusSnapshot?;
|
|
60
|
+
private closed;
|
|
61
|
+
private managerClosePromise?;
|
|
62
|
+
constructor(options: DaemonRuntimeConnectionManagerOptions);
|
|
63
|
+
acquire(selector: string, options?: {
|
|
64
|
+
signal?: AbortSignal;
|
|
65
|
+
}): Promise<RuntimeConnectionLease>;
|
|
66
|
+
/** Synchronously detaches the generation, then closes it asynchronously. */
|
|
67
|
+
invalidate(daemonId: string): Promise<void>;
|
|
68
|
+
close(): Promise<void>;
|
|
69
|
+
private localLease;
|
|
70
|
+
private callLocal;
|
|
71
|
+
private readLocalStatus;
|
|
72
|
+
private dispatchLocalRequest;
|
|
73
|
+
private rememberLocalStatus;
|
|
74
|
+
private assertMethodSupported;
|
|
75
|
+
private assertSessionEventsSupported;
|
|
76
|
+
private assertSessionTerminalSupported;
|
|
77
|
+
private directLease;
|
|
78
|
+
private wrapDirectSessionSubscription;
|
|
79
|
+
private openDedicatedDirectTerminal;
|
|
80
|
+
private openDedicatedDirectBrowserSurface;
|
|
81
|
+
private openDedicatedDirectBrowserInspect;
|
|
82
|
+
private openDedicatedDirectEmulatorSurface;
|
|
83
|
+
private slotFor;
|
|
84
|
+
private openDirectConnection;
|
|
85
|
+
private evict;
|
|
86
|
+
private closeSlot;
|
|
87
|
+
private trackDedicatedTerminal;
|
|
88
|
+
private trackDedicatedBrowserSurface;
|
|
89
|
+
private trackDedicatedBrowserInspect;
|
|
90
|
+
private registerBrowserInspectCloser;
|
|
91
|
+
private closeBrowserInspects;
|
|
92
|
+
private trackDedicatedEmulatorSurface;
|
|
93
|
+
private registerDedicatedCloser;
|
|
94
|
+
private scheduleIdleClose;
|
|
95
|
+
private pruneIdleConnections;
|
|
96
|
+
private cancelIdleTimer;
|
|
97
|
+
private assertOpen;
|
|
98
|
+
private assertSlotCurrent;
|
|
99
|
+
private isSlotCurrent;
|
|
100
|
+
private generation;
|
|
101
|
+
private bumpGeneration;
|
|
102
|
+
}
|
|
103
|
+
export {};
|