Files
openclaw/scripts/run-node.d.mts
Peter Steinberger a6225060f1 fix(memory): abort timed-out embedding requests (#82770)
* fix(memory): abort timed-out embedding requests

* test: stabilize gateway ci shards

* test: pin control ui origin fixture

* test: stabilize gateway ci fixtures

* test: isolate forged origin fixture

* test: decouple setup code from gateway net mocks

* test: repair run-node and config preaction CI

* test: fix run-node progress fixture typing

* test: remove unused pairing setup helper

* fix: stabilize embedding timeout errors
2026-05-17 02:04:17 +01:00

60 lines
1.6 KiB
TypeScript

export const runNodeWatchedPaths: string[];
export function isBuildRelevantRunNodePath(repoPath: string): boolean;
export function isRestartRelevantRunNodePath(repoPath: string): boolean;
export function resolveBuildRequirement(deps: {
cwd: string;
env: NodeJS.ProcessEnv;
fs: unknown;
spawnSync: unknown;
distRoot: string;
distEntry: string;
buildStampPath: string;
sourceRoots: Array<{ name: string; path: string }>;
configFiles: string[];
}): { shouldBuild: boolean; reason: string };
export function resolveRuntimePostBuildRequirement(deps: {
cwd: string;
env: NodeJS.ProcessEnv;
fs: unknown;
spawnSync: unknown;
buildStampPath: string;
runtimePostBuildStampPath: string;
}): { shouldSync: boolean; reason: string };
export function acquireRunNodeBuildLock(deps: {
cwd: string;
args: readonly string[];
env: NodeJS.ProcessEnv;
fs: unknown;
process: NodeJS.Process;
stderr: { write: (value: string) => void };
}): Promise<() => void>;
export function runNodeMain(params?: {
spawn?: (
cmd: string,
args: string[],
options: unknown,
) => {
kill?: (signal?: string) => boolean | void;
on: (
event: "exit",
cb: (code: number | null, signal: string | null) => void,
) => void | undefined;
};
spawnSync?: unknown;
fs?: unknown;
stderr?: { write: (value: string) => void };
process?: NodeJS.Process;
execPath?: string;
cwd?: string;
args?: string[];
env?: NodeJS.ProcessEnv;
runRuntimePostBuild?: (params?: {
cwd?: string;
env?: Record<string, string | undefined>;
}) => void | Promise<void>;
platform?: NodeJS.Platform;
}): Promise<number>;