Repository navigation
Expand file tree
/
Copy pathcli-invocation.d.mts
More file actions
57 lines (53 loc) 路 2.05 KB
/
Copy pathcli-invocation.d.mts
File metadata and controls
57 lines (53 loc) 路 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
export type StandaloneBuildInfo = {
mode: "jit" | "bytecode" | "aot";
openclaw: { version: string; commit?: string };
bun: { version: string; revision?: string; commit?: string; executableSha256?: string };
target?: { platform: string; arch: string };
build?: {
id: string;
flavor: "standard" | "support";
pluginSetSha256: string;
moduleGraphSha256: string;
debugEntry?: string;
};
plugins?: { embedded: string[]; omitted: string[] };
nativeModules?: {
name: string;
version: string;
artifacts: string[];
qualification: "unverified";
backend: string;
}[];
};
export type StandaloneRuntimeManifest = StandaloneBuildInfo & {
schemaVersion: 1;
executable: { path: string; sha256?: string };
runtime: { path: string; sha256?: string };
};
export function getStandaloneRuntimeBuild(executable?: string): StandaloneBuildInfo | undefined;
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 isEmbeddedStandaloneModule(modulePath: string): boolean;
export function runtimeHasSourceLoader(): boolean;
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 };