Versions in this module Expand all Collapse all v0 v0.0.4 Nov 26, 2026 Changes in this version + const ExitCanceled + const ExitError + const ExitNeedsInput + const ExitOK + const ExitUsage + func ExitCode(err error) int + func Run(ctx context.Context, opts Options) error + type ExitCodeError struct + Code int + Err error + func (e *ExitCodeError) Error() string + func (e *ExitCodeError) Unwrap() error + type InputFormat string + const InputJSONL + const InputText + func ParseInputFormat(raw string) (InputFormat, error) + type Options struct + Config api.SessionConfig + Continue bool + Ephemeral bool + Force bool + Fork bool + InputFormat InputFormat + MaxTurns int + OutputFormat OutputFormat + Prompt string + SessionID string + Socket string + Stderr io.Writer + Stdin io.Reader + StdinText string + Stdout io.Writer + Title string + Workspace string + func (o *Options) Interactive() bool + type OutputFormat string + const OutputJSON + const OutputJSONL + const OutputText + func ParseOutputFormat(raw string) (OutputFormat, error)