app

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: MIT Imports: 26 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
	PhasePreparing
	PhaseThinking
	PhaseStreaming
	PhaseToolRunning
)
type Modal string

Modal represents the currently active modal type

const (
	ModalNone       Modal = ""
	ModalPicker     Modal = "picker"
	ModalFilePicker Modal = "file-picker"
	ModalDiff       Modal = "diff"
	ModalPlan       Modal = "plan"
	ModalReview     Modal = "review"
)

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) *Spinner

NewSpinner creates a new spinner component

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