* exec: clean up PTY resources on timeout and exit * cli: harden resume cleanup and watchdog stalled runs * cli: productionize PTY and resume reliability paths * docs: add PTY process supervision architecture plan * docs: rewrite PTY supervision plan as pre-rewrite baseline * docs: switch PTY supervision plan to one-go execution * docs: add one-line root cause to PTY supervision plan * docs: add OS contracts and test matrix to PTY supervision plan * docs: define process-supervisor package placement and scope * docs: tie supervisor plan to existing CI lanes * docs: place PTY supervisor plan under src/process * refactor(process): route exec and cli runs through supervisor * docs(process): refresh PTY supervision plan * wip * fix(process): harden supervisor timeout and PTY termination * fix(process): harden supervisor adapters env and wait handling * ci: avoid failing formal conformance on comment permissions * test(ui): fix cron request mock argument typing * fix(ui): remove leftover conflict marker * fix: supervise PTY processes (#14257) (openclaw#14257) (thanks @onutc)
25 lines
544 B
TypeScript
25 lines
544 B
TypeScript
import type { ProcessSupervisor } from "./types.js";
|
|
import { createProcessSupervisor } from "./supervisor.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";
|