tui

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(paths []AnnotatedPath, graph *trace.TraceGraph) error

Run starts the TUI program.

Types

type AnnotatedPath

type AnnotatedPath struct {
	Path       trace.HotPath
	Pattern    *trace.Pattern // parameterized version (nil if not yet parameterized)
	Labels     []string       // human-readable step labels
	Confidence float64
	Savings    int // estimated tokens saved per invocation
}

AnnotatedPath is a HotPath enriched with display metadata.

type Model

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

Model is the bubbletea model for the aj trace TUI.

func NewModel

func NewModel(paths []AnnotatedPath, graph *trace.TraceGraph) Model

NewModel creates a new TUI model.

func (Model) Init

func (m Model) Init() tea.Cmd

Init implements tea.Model.

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements tea.Model.

func (Model) View

func (m Model) View() string

View implements tea.Model.

Jump to

Keyboard shortcuts

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