tui

package
v1.1.57 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App is the main TUI application.

func NewApp

func NewApp(p provider.Provider, model *provider.Model, settings *config.Settings, sess *session.Manager, registry *tools.Registry, sandboxInfo string, extraContext string, skillsMgr *skills.Manager, initialMode string, multiAgent bool, delegateMode bool, agentMgr *agent.AgentManager, cronStore cron.CronStore, scheduler *cron.Scheduler) *App

NewApp creates a new TUI application.

func NewAppWithWorkflows

func NewAppWithWorkflows(p provider.Provider, model *provider.Model, settings *config.Settings, sess *session.Manager, registry *tools.Registry, sandboxInfo string, extraContext string, skillsMgr *skills.Manager, initialMode string, multiAgent bool, delegateMode bool, workflows bool, agentMgr *agent.AgentManager, cronStore cron.CronStore, scheduler *cron.Scheduler) *App

func NewAppWithWorkflowsAndAllow

func NewAppWithWorkflowsAndAllow(p provider.Provider, model *provider.Model, settings *config.Settings, sess *session.Manager, registry *tools.Registry, sandboxInfo string, extraContext string, skillsMgr *skills.Manager, initialMode string, multiAgent bool, delegateMode bool, workflows bool, agentMgr *agent.AgentManager, cronStore cron.CronStore, scheduler *cron.Scheduler, providerKey string, allow *config.AllowConfig) *App

NewAppWithWorkflowsAndAllow creates a new TUI application. providerKey is the user-configured settings.json provider key (e.g. "xiaomi", "doubao"); when empty the resolved vendor name from p.Name() is used as a fallback.

func (*App) Init

func (a *App) Init() tea.Cmd

Init implements tea.Model.

func (*App) LoadHistoryMessages

func (a *App) LoadHistoryMessages()

LoadHistoryMessages loads messages from session history into TUI display.

func (*App) ReloadRequested

func (a *App) ReloadRequested() bool

ReloadRequested reports whether the user asked to reload via /reload.

func (*App) SetAutoOpenAuthDialog

func (a *App) SetAutoOpenAuthDialog(v bool)

SetAutoOpenAuthDialog tells the TUI to open the /auth dialog automatically on startup. This is used when settings.json was just created.

func (*App) SetBrowserEnabled

func (a *App) SetBrowserEnabled(enabled bool, skillInBase bool)

SetBrowserEnabled records browser-tool startup state. skillInBase is true when the browser skill context has already been included in baseExtraContext.

func (*App) SetInitialMessage

func (a *App) SetInitialMessage(msg string)

SetInitialMessage sets an initial message to display when the TUI starts.

func (*App) SetProgram

func (a *App) SetProgram(p *tea.Program)

SetProgram stores the Bubble Tea program used for deferred UI updates.

func (*App) ShowUpdateNotice

func (a *App) ShowUpdateNotice(notice string)

ShowUpdateNotice displays an update notification from a background check.

func (*App) Update

func (a *App) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements tea.Model.

func (*App) View

func (a *App) View() string

View implements tea.Model.

type ClipboardImageSaver

type ClipboardImageSaver interface {
	SaveImage(ctx context.Context, projectDir string) (path string, ok bool, err error)
}

type FileOpener

type FileOpener interface {
	Open(path string) error
}

type InputEvent

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

InputEvent represents a queued input event

Directories

Path Synopsis
components

Jump to

Keyboard shortcuts

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