List running processes
ProcessInfo includes pid, command, and running. The list endpoint is
useful for reconnecting to background work after a client restart.
Send stdin
send_stdin writes text to the process stdin stream. Use it for interactive
programs that are not full terminal sessions; use PTY sessions
when terminal behavior, resize, or shell line editing matters.
Logs
stdout and stderr are split streams. output is the interleaved stream when
the backend has it. exit_code is None while the process is still running and
an integer after it exits.
Kill
REST and CLI map
Most CLI process commands accept
--json for automation. stdin --json
returns the PID and bytes_sent; attach --json returns a CommandResult.