Files
Moltbot/src/process/supervisor/index.ts
2026-02-18 01:34:35 +00:00

25 lines
544 B
TypeScript

import { createProcessSupervisor } from "./supervisor.js";
import type { ProcessSupervisor } from "./types.js";
let singleton: ProcessSupervisor | null = null;
export function getProcessSupervisor(): ProcessSupervisor {
if (singleton) {
return singleton;
}
singleton = createProcessSupervisor();
return singleton;
}
export { createProcessSupervisor } from "./supervisor.js";
export type {
ManagedRun,
ProcessSupervisor,
RunExit,
RunRecord,
RunState,
SpawnInput,
SpawnMode,
TerminationReason,
} from "./types.js";