Help us shape the future of Go! Take the 2026 Go Developer Survey

tui

package
v0.0.0-...-f5b2db5 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package tui implements the Oculo terminal user interface.

This is a professional AI debugging instrument built with Charmbracelet's BubbleTea, Lipgloss, and Bubbles libraries.

Component architecture:

model.go     — root model, message routing, Init/Update
theme.go     — centralized color + style definitions
header.go    — top bar with trace context
timeline.go  — span tree with depth-aware rendering
detail.go    — span metadata + token usage bars
diffview.go  — unified memory mutation diff viewer
footer.go    — status line + keyboard hints
tracelist.go — trace selector (initial screen)
helpers.go   — span tree building, truncation, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model is the root BubbleTea model for the Oculo TUI. State is organized by concern; rendering is delegated to component functions in separate files.

func NewModel

func NewModel(store database.Store) Model

NewModel creates a new TUI model backed by the given store.

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

type Pane

type Pane int

Pane represents which UI pane currently has keyboard focus.

const (
	PaneTimeline Pane = iota
	PaneDetail
	PaneMemoryDiff
)

Jump to

Keyboard shortcuts

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