terminal

package
v0.0.0-...-820128f Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 43 Imported by: 0

Documentation

Overview

Package terminal implements a librecode-style interactive terminal UI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, options *RunOptions) error

Run starts an interactive tcell chat loop.

Types

type App

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

App is the terminal chat UI.

type RunOptions

type RunOptions struct {
	Extensions extension.TerminalEventRunner `json:"-"`
	Resources  *core.ResourceSnapshot        `json:"resources"`
	Runtime    *assistant.Runtime            `json:"-"`
	Workflows  workflowInspector             `json:"-"`
	Settings   *database.DocumentRepository  `json:"-"`
	Models     *model.Registry               `json:"-"`
	Auth       *auth.Storage                 `json:"-"`
	Config     *config.Config                `json:"-"`
	CWD        string                        `json:"cwd"`
	SessionID  string                        `json:"session_id"`
}

RunOptions configures the terminal app.

Directories

Path Synopsis
Package extui contains the terminal-side extension UI bridge state.
Package extui contains the terminal-side extension UI bridge state.
Package panel adapts the reusable TUI list component to app-specific panel kinds.
Package panel adapts the reusable TUI list component to app-specific panel kinds.

Jump to

Keyboard shortcuts

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