openmixer — generated API reference
    Preparing search index...

    Interface ExecRunnerOptions

    Tuning for createExecRunner (all optional; the defaults are production-safe).

    interface ExecRunnerOptions {
        isBenign?: (err: unknown) => boolean;
        maxBufferBytes?: number;
        onRetry?: (
            argv: readonly string[],
            err: unknown,
            nextAttempt: number,
        ) => void;
        retries?: number;
        retryBackoffMs?: number;
        timeoutMs?: number;
    }
    Index
    isBenign?: (err: unknown) => boolean

    Errors to treat as neither retriable nor a real failure — the command still rejects, but the runner does not burn a retry on it. Used for a pw-link "already linked" result, which the caller reads as an idempotent success.

    maxBufferBytes?: number

    stdout cap in bytes. Default 64 MiB (a big/dirty pw-dump cannot overflow it).

    onRetry?: (argv: readonly string[], err: unknown, nextAttempt: number) => void

    Called before each backoff+retry (diagnostics / tests).

    retries?: number

    How many extra attempts after the first on a transient failure. Default 2.

    retryBackoffMs?: number

    Backoff between attempts, in ms. Default 100.

    timeoutMs?: number

    Kill the child (SIGKILL) and reject if it has not exited within this many ms. Default 10000.