tui

package
v0.0.0-...-deae803 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package tui 提供 GoCoder 的终端用户界面。

Index

Constants

This section is empty.

Variables

View Source
var (
	UserMsgStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("75")).
					Bold(true)

	SystemMsgStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("240")).
					Italic(true)

	ToolExecutingStyle = lipgloss.NewStyle().
						Foreground(lipgloss.Color("11")).
						Italic(true)

	ToolCompletedStyle = lipgloss.NewStyle().
						Foreground(lipgloss.Color("2"))

	PermissionStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("11")).
					Bold(true)

	ErrorStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("9")).
				Bold(true)

	HelpStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("244"))

	SpinnerStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("205"))

	InputStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("15"))
)

Functions

func NewModel

func NewModel(appConfig types.AppConfig, modelConfig types.ModelConfig) *model

func Run

func Run(appConfig types.AppConfig, modelConfig types.ModelConfig) error

Types

type State

type State int

Jump to

Keyboard shortcuts

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