tui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

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

Run starts the TUI application.

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 RunWithOutput

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

RunWithOutput starts the TUI and prints final output info.

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