instances

package
v0.411.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package instances provides a Bubble Tea component for browsing and interacting with remote Pando instances in a two-panel layout:

  • Left panel: instances list (top) + sessions list for the selected instance (bottom)
  • Right panel: live chat view with message history and an input box

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 main Bubble Tea model for the instances browser.

func New

func New() Model

New returns a new instances browser model.

func (Model) Height

func (m Model) Height() int

Height returns the current height of the model.

func (Model) Init

func (m Model) Init() tea.Cmd

Init starts the polling ticker and performs the first instances fetch.

func (*Model) SetSize

func (m *Model) SetSize(w, h int)

SetSize sets the width and height of the model.

func (Model) Update

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

Update handles all incoming messages for the instances browser.

func (Model) View

func (m Model) View() string

View renders the two-panel instances browser. Left column: instances list (top) + sessions list (bottom), each scrollable. Right column: live chat view with message history + input at bottom.

Height accounting (lipgloss Border adds 2 rows to total rendered height):

terminal = m.height
header   = 1 row
panels   = m.height - 1  (leftH)
Each panel is rendered with Height(h - 2) so that bordered total == h.

func (Model) Width

func (m Model) Width() int

Width returns the current width of the model.

Jump to

Keyboard shortcuts

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