CoAgent8 - Source API
    Preparing search index...

    Interface RunCommandOptions

    Options configuring subprocess execution in runCommand.

    interface RunCommandOptions {
        abortSignal?: AbortSignal | null;
        cwd?: string;
        env?: ProcessEnv;
        interruptGraceMs?: number;
        maxBufferBytes?: number;
        maxInputBytes?: number;
        maxLineBytes?: number;
        onProgress?:
            | ((info: { message?: string; percent?: number }) => void)
            | null;
        onStderrLine?: ((line: string) => void) | null;
        onStdoutLine?: ((line: string) => void) | null;
        session?: StdinSession | null;
        signalGraceMs?: number;
        stdinInput?: string | null;
        timeoutMs?: number | null;
    }
    Index
    abortSignal?: AbortSignal | null
    cwd?: string
    env?: ProcessEnv
    interruptGraceMs?: number

    Milliseconds a session CLI has to exit after an interrupt (default INTERRUPT_GRACE_MS).

    maxBufferBytes?: number
    maxInputBytes?: number
    maxLineBytes?: number
    onProgress?: ((info: { message?: string; percent?: number }) => void) | null
    onStderrLine?: ((line: string) => void) | null
    onStdoutLine?: ((line: string) => void) | null
    session?: StdinSession | null

    Keeps stdin open as a protocol channel that supports graceful interrupts.

    signalGraceMs?: number

    POSIX milliseconds between SIGTERM and SIGKILL for the process group (default SIGNAL_GRACE_MS).

    stdinInput?: string | null

    Prompt payload. Written to stdin and closed, or handed to session.start.

    timeoutMs?: number | null