Documentation
¶
Index ¶
- type PageID
- type UIState
- func (s *UIState) EndExecution()
- func (s *UIState) GoBack()
- func (s *UIState) IsPageLoaded(pageID PageID) bool
- func (s *UIState) MarkPageLoaded(pageID PageID)
- func (s *UIState) SetDimensions(width, height int)
- func (s *UIState) SetPage(pageID PageID)
- func (s *UIState) StartExecution(agent, tool string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PageID ¶
type PageID string
Define the Page IDs here so everything can share them without cycles
type UIState ¶
type UIState struct {
// Window dimensions
Width int
Height int
// Page navigation state
CurrentPage PageID
PreviousPage PageID
// Layout engine for responsive dimensions
LayoutEngine *layout.LayoutEngine
// Focus state
InputFocused bool
// AI execution state
IsExecuting bool
ExecutingTool string
ExecutingAgent string
}
UIState represents the shared application state across all TUI components.
func (*UIState) EndExecution ¶
func (s *UIState) EndExecution()
EndExecution marks the end of AI tool execution.
func (*UIState) IsPageLoaded ¶
IsPageLoaded checks if a page has been initialized.
func (*UIState) MarkPageLoaded ¶
MarkPageLoaded marks a page as initialized.
func (*UIState) SetDimensions ¶
SetDimensions updates window dimensions and recalculates layout.
func (*UIState) StartExecution ¶
StartExecution marks the start of AI tool execution.
Click to show internal directories.
Click to hide internal directories.