@basetenlabs/sandbox - v0.3.0
    Preparing search index...

    Type Alias SandboxProcessExecEvent

    SandboxProcessExecEvent:
        | { stream: "stdout"
        | "stderr"; text: string; type: "output" }
        | { process: SandboxProcessInfo; type: "exit" }

    Type Declaration

    • { stream: "stdout" | "stderr"; text: string; type: "output" }
      • stream: "stdout" | "stderr"
      • text: string
      • type: "output"

        Output as the process wrote it, which may hold several lines, part of one, or text with no newline at all, such as a prompt. If the process finished before streaming started, each line instead arrives as its own event, without its newline.

    • { process: SandboxProcessInfo; type: "exit" }