leantui

package
v1.81.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package leantui implements a minimal, scrollback-friendly terminal UI used when docker-agent runs with --lean. Unlike the full bubbletea TUI it never switches to the alternate screen: finished conversation content is committed into the terminal's normal scrollback while a small live region (the input box and status footer) stays pinned to the bottom and is redrawn in place.

The package is intentionally self-contained. It builds on a handful of low-level Charmbracelet dependencies (lipgloss for styling, x/ansi for cell math and escape sequences) and implements its own input parser, differential renderer, and input editor rather than relying on a full TUI framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cfg Config) error

Run drives the lean TUI until the user exits. It owns the terminal (raw mode, no alternate screen) for its lifetime and restores it on return.

Types

type Config

type Config struct {
	App        *app.App
	WorkingDir string
	Cleanup    func()

	FirstMessage           *string
	FirstMessageAttachment string
	QueuedMessages         []string

	AppName          string
	DisabledCommands []string
}

Config wires the lean TUI to a prepared App and the initial run parameters.

Jump to

Keyboard shortcuts

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