reporters/console¶
Source: src/reporters/console.ts
A plain console reporter: one line per event that matters.
Deliberately dumb - it is the proof that the event stream carries enough on its own, before any TUI or herdr integration gets involved.
consoleReporter¶
function
export function consoleReporter(options: ConsoleReporterOptions = {}): EventListener { /* … */ }
Builds a console reporter.
ConsoleReporterOptions¶
type
export type ConsoleReporterOptions = {
/** Where to write. Defaults to `console.log`, but tests pass a recorder. */
write?: (line: string) => void;
/** Show streamed assistant text as it arrives. Off by default: it is noisy. */
text?: boolean;
};
How much the console reporter says, and where it says it.