mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-28 12:36:55 +02:00
* fix(runtime): harden dependency surfaces * fix(runtime): harden dependency install surfaces * fix(runtime): address dependency surface review * fix(runtime): address dependency surface review * fix(channels): avoid read-only plugin loader cycle * fix(channels): allow optional read-only loader workspace * test(commands): refresh current main checks * test(commands): keep provider metadata mock unique * test(commands): keep doctor security read-only mock unique
39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
export function runWatchMain(params?: {
|
|
spawn?: (
|
|
cmd: string,
|
|
args: string[],
|
|
options: unknown,
|
|
) => {
|
|
kill?: (signal?: NodeJS.Signals | number) => void;
|
|
on: (event: "exit", cb: (code: number | null, signal: string | null) => void) => void;
|
|
};
|
|
createWatcher?: (
|
|
paths: string[],
|
|
options: {
|
|
ignoreInitial: boolean;
|
|
ignored: (watchPath: string) => boolean;
|
|
},
|
|
) => {
|
|
on: (event: "add" | "change" | "unlink" | "error", cb: (arg?: unknown) => void) => void;
|
|
close?: () => Promise<void> | void;
|
|
};
|
|
loadChokidar?: () => Promise<{
|
|
watch: (
|
|
paths: string[],
|
|
options: {
|
|
ignoreInitial: boolean;
|
|
ignored: (watchPath: string) => boolean;
|
|
},
|
|
) => {
|
|
on: (event: "add" | "change" | "unlink" | "error", cb: (arg?: unknown) => void) => void;
|
|
close?: () => Promise<void> | void;
|
|
};
|
|
}>;
|
|
watchPaths?: string[];
|
|
process?: NodeJS.Process;
|
|
cwd?: string;
|
|
args?: string[];
|
|
env?: NodeJS.ProcessEnv;
|
|
now?: () => number;
|
|
}): Promise<number>;
|