Documentation
¶
Overview ¶
Package tui implements the Bubbletea terminal UI for Engram.
Following the Gentleman Bubbletea patterns: - Screen constants as iota - Single Model struct holds ALL state - Update() with type switch - Per-screen key handlers returning (tea.Model, tea.Cmd) - Vim keys (j/k) for navigation - PrevScreen for back navigation
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
Version string
Screen Screen
PrevScreen Screen
Width int
Height int
Cursor int
Scroll int
// Error display
ErrorMsg string
// Dashboard
Stats *store.Stats
// Search
SearchInput textinput.Model
SearchQuery string
SearchResults []store.SearchResult
// Recent observations
RecentObservations []store.Observation
// Observation detail
SelectedObservation *store.Observation
DetailScroll int
// Timeline
Timeline *store.TimelineResult
// Sessions
Sessions []store.SessionSummary
SelectedSessionIdx int
SessionObservations []store.Observation
SessionDetailScroll int
// Setup
SetupAgents []setup.Agent
SetupResult *setup.Result
SetupError string
SetupDone bool
SetupInstalling bool
SetupInstallingName string // agent name being installed (for display)
SetupAllowlistPrompt bool // true = showing y/n prompt for allowlist
SetupAllowlistApplied bool // true = allowlist was added successfully
SetupAllowlistError string // error message if allowlist injection failed
SetupSpinner spinner.Model
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.