ui

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TabMCP     = 0
	TabSkills  = 1
	TabPlugins = 2
	TabAgents  = 3
)
View Source
const (
	MinWidth        = 80
	MinHeight       = 24
	HeaderHeight    = 1
	TabBarHeight    = 1
	FooterHeight    = 1
	SidebarMinWidth = 28
	SidebarRatio    = 0.28 // 28% of width for sidebar
)

Variables

This section is empty.

Functions

func Run

func Run() error

Run starts the TUI application

Types

type AgentStatus

type AgentStatus struct {
	Agent     agent.Agent
	Installed bool
	Exists    bool
	Error     error
}

AgentStatus represents the status of an agent

type AppModel

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

AppModel is the main TUI application model

func NewAppModel

func NewAppModel() AppModel

NewAppModel creates a new TUI application model

func (AppModel) Init

func (m AppModel) Init() tea.Cmd

Init implements tea.Model

func (AppModel) Update

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

Update implements tea.Model

func (AppModel) View

func (m AppModel) View() string

View implements tea.Model

type Layout

type Layout struct {
	// Total dimensions
	Width  int
	Height int

	// Header
	HeaderHeight int

	// Tab bar
	TabBarHeight int

	// Main content area
	MainWidth  int
	MainHeight int

	// Sidebar
	SidebarWidth  int
	SidebarHeight int

	// Footer
	FooterHeight int
}

Layout contains calculated dimensions for UI components

func CalculateLayout

func CalculateLayout(width, height int) Layout

CalculateLayout computes the layout based on terminal size

type Model

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

Model is the TUI state model

func NewModel

func NewModel() Model

NewModel creates a new TUI model

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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