Functions

f
streamConsole(
stdout: { write(text: string): unknown; },
stderr?: { write(text: string): unknown; }
): Console

Adapts anything with a write(string) — a node:fs stream, a socket, an array-backed fake — into a Console. stderr defaults to stdout, so one stream collects the whole run.

Interfaces

I
Console

Where a run's text goes: console, made injectable.

Variables

v
processConsole: Console

The CLI's: the real process streams. .write is looked up per call, so the daemon's stdout interception still reaches it.

v
silentConsole: Console

Discards everything. The JS API's default, so a programmatic run prints nothing unless it was asked to.