tui

package
v0.21.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package tui — multi-pane dashboard for clawtool's runtime surface. Bubble Tea-based, deferred from the v0.19 sketch and resurrected for the operator's "I want to see what every agent is doing" directive.

v1.1 fixes (operator feedback): the tick chain was breaking after the first refresh because tickCmd only fired AFTER a successful refresh. Now the tick runs on its own cadence independent of refresh completion, so the dashboard stays live even during transient SQLite hiccups. Plus: every pane respects the terminal viewport — rows beyond the visible area are truncated with a "(…N more)" tail line, and the layout adapts to the operator's terminal height instead of overflowing the scrollback.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(store *biam.Store, sup agents.Supervisor) error

Types

type Model

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

Model is the Bubble Tea state.

func New

func New(store *biam.Store, sup agents.Supervisor) Model

func (Model) Init

func (m Model) Init() tea.Cmd

Init kicks off the FIRST refresh AND starts the tick loop. Both are independent commands so the tick stays alive even if a refresh fails.

func (Model) Update

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

func (Model) View

func (m Model) View() string

View renders the model. Layout is height-aware: each pane gets a budget so the total fits the terminal viewport.

Jump to

Keyboard shortcuts

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