cli

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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

func NewPublisher(w io.Writer) *Publisher

NewPublisher returns a Publisher writing to w.

func (*Publisher) PublishEvent

func (p *Publisher) PublishEvent(_ context.Context, e channel.Event) error

PublishEvent implements channel.Publisher.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL