tui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintBanner added in v0.2.0

func PrintBanner(servers []string)

PrintBanner displays the startup banner with server information. This is called before entering the REPL loop.

func Run

func Run(mcpConfigPath, workDir string, servers []string) error

Run starts the TUI application in REPL mode (terminal-native scrolling).

func RunAltScreen added in v0.2.0

func RunAltScreen(mcpConfigPath, workDir string, servers []string) error

RunAltScreen starts the TUI in full-screen alt-screen mode (legacy).

func RunQuery

func RunQuery(ctx context.Context, prompt, sessionID, mcpConfigPath, workDir string) (<-chan StreamEvent, error)

RunQuery runs a Claude query and streams events back on a channel. sessionID can be empty for a new session, or a prior session ID to resume.

func RunREPL added in v0.2.0

func RunREPL(mcpConfigPath, workDir string, servers []string) error

RunREPL starts an interactive REPL that streams Claude responses inline. This matches the terminal-native scrolling style (no alt-screen).

Types

type StreamEvent

type StreamEvent struct {
	Type      string
	Content   string
	Tool      string
	Input     string
	SessionID string
}

StreamEvent represents a single streamed event from the Claude process.

Jump to

Keyboard shortcuts

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