Member Junction
    Preparing search index...

    Options for configuring child process execution.

    ProcessRunner.Run

    interface ProcessOptions {
        Cwd?: string;
        Env?: Record<string, string>;
        OnSpawn?: (pid: number) => void;
        OnStderr?: (line: string) => void;
        OnStdout?: (line: string) => void;
        TimeoutMs?: number;
    }
    Index

    Properties

    Cwd?: string

    Working directory for the child process (defaults to process.cwd()).

    Env?: Record<string, string>

    Additional environment variables (merged with process.env).

    OnSpawn?: (pid: number) => void

    Callback invoked once the child process has spawned, providing the PID. Useful when the caller needs to kill the process tree externally (e.g., service log capture after detecting readiness).

    OnStderr?: (line: string) => void

    Streaming callback invoked with each line of stderr. Used by phases to emit verbose log events for diagnostic output.

    OnStdout?: (line: string) => void

    Streaming callback invoked with each line of stdout. Used by phases to emit step:progress events for real-time output.

    TimeoutMs?: number

    Maximum execution time in milliseconds. Process tree is killed on timeout.