code

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

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, agent *coder.Agent, sessionID string) *App

func (*App) Ask

func (a *App) Ask(ctx context.Context, question string) (string, error)

func (*App) Confirm

func (a *App) Confirm(ctx context.Context, message string) (bool, error)

func (*App) Run

func (a *App) Run() error

func (*App) SetSessionID

func (a *App) SetSessionID(id string)

type AppPhase

type AppPhase int
const (
	PhaseIdle AppPhase = iota
	PhasePreparing
	PhaseThinking
	PhaseStreaming
	PhaseToolRunning
)
type Modal string
const (
	ModalNone        Modal = ""
	ModalPicker      Modal = "picker"
	ModalFilePicker  Modal = "file-picker"
	ModalDiff        Modal = "diff"
	ModalDiagnostics Modal = "diagnostics"
)

type Mode

type Mode int
const (
	ModeAgent Mode = iota
	ModePlan
)

type PhaseConfig

type PhaseConfig struct {
	Message string
	Color   string
}

func GetPhaseConfig

func GetPhaseConfig(phase AppPhase) PhaseConfig

type PickerItem

type PickerItem struct {
	ID   string
	Text string
}

type Spinner

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

func NewSpinner

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

func (*Spinner) Start

func (s *Spinner) Start(phase AppPhase)

func (*Spinner) Stop

func (s *Spinner) Stop()

Jump to

Keyboard shortcuts

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