Documentation
¶
Overview ¶
Package cli is a reference egress implementation of the transport seam: a channel.Publisher that renders a turn's stream events to a writer (e.g. stdout). Pair it with a stdin REPL that calls turn.Runner.Run directly — the idiomatic CLI shape — rather than the poll-based runtime loop.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
Publisher renders stream events to w. It prints streamed token deltas inline; if a turn produces no deltas (non-streaming provider), it prints the finalized message text instead, so output is correct in both modes.
func NewPublisher ¶
NewPublisher returns a Publisher writing to w.
Click to show internal directories.
Click to hide internal directories.