app

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, cfg *config.Config, ag *agent.Agent) *App

func (*App) Run

func (a *App) Run() error

type AppPhase

type AppPhase int

AppPhase represents the current operational phase of the application

const (
	PhaseIdle AppPhase = iota
	PhaseThinking
	PhaseStreaming
	PhaseToolRunning
	PhaseCompacting
)

type Mode

type Mode int

Mode represents the operational mode

const (
	ModeAgent Mode = iota
	ModePlan
)

type PhaseConfig

type PhaseConfig struct {
	Message  string
	Color    string
	Animated bool
}

PhaseConfig holds display configuration for each phase

func GetPhaseConfig

func GetPhaseConfig(phase AppPhase, toolName string) PhaseConfig

GetPhaseConfig returns the display configuration for a given phase

type PickerItem

type PickerItem struct {
	ID   string
	Text string
}

type Spinner

type Spinner struct {
	// contains filtered or unexported fields
}

Spinner provides an animated status indicator

func NewSpinner

func NewSpinner(app *tview.Application, view *tview.TextView, onStop func()) *Spinner

NewSpinner creates a new spinner component that renders to the given view

func (*Spinner) IsActive

func (s *Spinner) IsActive() bool

IsActive returns whether the spinner is currently animating

func (*Spinner) SetPhase

func (s *Spinner) SetPhase(phase AppPhase, toolName string)

SetPhase updates the spinner phase without restarting

func (*Spinner) Start

func (s *Spinner) Start(phase AppPhase, toolName string)

Start begins the spinner animation with the given phase

func (*Spinner) Stop

func (s *Spinner) Stop()

Stop halts the spinner animation

Jump to

Keyboard shortcuts

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