Skip to content

emitToolOutput

emitToolOutput(chunk): void

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolOutputChannel.ts:108

Emit one piece of live tool output. Routed to the active subscriber when present (the Ink TUI), otherwise to the DEFAULT SINK, which reproduces the pre-TUI-C17 behaviour exactly: the notice via displayInfo with its historical leading newline, chunks via stdout.write, a warning via displayWarning and an error via displayError (TUI-C31 a). While the TUI is mounted but no subscriber is attached (between turns), a no-subscriber emit is SUPPRESSED rather than written raw over the managed frame (TUI-C31 d).

GthToolOutputChunk

void