openclaw/cli-invocation.d.mts
Peter Steinberger 71fac53596
fix: preserve standalone CLI commands across startup respawns (#174545)
* fix: preserve standalone CLI commands across startup respawns

Resolve launcher-bound runtime arguments at the CLI invocation owner. Consume a one-child parent PID signal in compiled runtimes while preserving the loose preload and detached worker lifetimes.

* test: keep respawn transport guard independent of local names

* test: include respawn owner dependencies in CLI fixtures
2026-10-16 12:34:54 -07:00

34 lines
1.3 KiB
TypeScript

export type StandaloneRuntimeManifest = {
schemaVersion: 1;
mode: "jit" | "bytecode" | "aot";
executable: { path: string; sha256?: string };
runtime: { path: string; sha256?: string };
openclaw: { version: string; commit?: string };
bun: { version: string };
};
export function readStandaloneRuntimeManifest(
executable?: string,
): StandaloneRuntimeManifest | undefined;
export function readStandaloneRuntimeManifestForRoot(
runtimeRoot: string,
): StandaloneRuntimeManifest | undefined;
export function isStandaloneRuntimeExecutable(executable?: string): boolean;
export function getEmbeddedStandaloneRuntimeRoot(): string | undefined;
export function resolveStandaloneNpmCliPath(): string | undefined;
export function resolveRuntimeScriptEnv(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
export function resolveOpenClawCliInvocation(params?: {
execPath?: string;
/** Null selects an executable CLI command without inheriting the current script. */
entryPath?: string | null;
args?: readonly string[];
execArgv?: readonly string[];
}): { command: string; args: string[] };
export function resolveOpenClawCliRespawn(params?: {
execPath?: string;
entryPath?: string | null;
args?: readonly string[];
execArgv?: readonly string[];
env?: NodeJS.ProcessEnv;
}): { command: string; args: string[]; env: NodeJS.ProcessEnv };