Streaming bash execution using osproc.startProcess.
Runs a shell command with stdout piped for line-by-line reading. stderr is merged into stdout (2>&1) so it appears inline as it would in a real terminal. Each complete line is forwarded to the onLine callback for live display. Returns the raw merged output and the exit code — clipping and post-processing live in actions.nim.
Procs
proc cancelActiveTool() {....gcsafe, raises: [], tags: [], forbids: [].}
proc runStreamingBash(act: Action; cache: ReadCache; onLine: proc (line: string) = nil): tuple[rawOut: string, code: int, cap: int] {....raises: [KeyError, OSError, IOError, ResourceExhaustedError, Exception, OSError, ValueError], tags: [ReadEnvEffect, ReadIOEffect, ReadDirEffect, TimeEffect, WriteDirEffect, WriteIOEffect, ExecIOEffect, RootEffect], forbids: [].}
proc setToolStdinWatcherEnabled(enabled: bool) {....gcsafe, raises: [], tags: [], forbids: [].}