app

package
v1.22.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package app provides the main TUI application.

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 root application model.

func New

func New(
	ctx context.Context,
	cfg *config.CLIConfig,
	theme styles.Theme,
	version string,
	services api.APIServices,
	authService auth.Auth,
	userPrefs preferences.UserPreferences,
	orgPrefs preferences.OrgPreferences,
	storage sqlite.Storage,
	syncer powersync.Syncer,
	scope log.Scope,
) *Model

New creates a new app model.

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init initializes the app.

func (*Model) Update

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

Update handles messages.

func (*Model) View

func (m *Model) View() tea.View

View renders the app.

Directories

Path Synopsis
messagelist/block
Package block defines the shared interface for all visual blocks in the message list viewport.
Package block defines the shared interface for all visual blocks in the message list viewport.
messagelist/messagelisttest
Package messagelisttest provides test helpers for the messagelist package.
Package messagelisttest provides test helpers for the messagelist package.
messagelist/round/turn/assistant/blocks/tools/action
Package action provides a generic tool UI model for simple tools that accumulate input, execute, and show status — with no custom body.
Package action provides a generic tool UI model for simple tools that accumulate input, execute, and show status — with no custom body.
messagelist/round/turn/assistant/blocks/tools/show
Package show renders entity cards inside tool chrome.
Package show renders entity cards inside tool chrome.
Package keybar renders keybinding hints at the bottom of the app.
Package keybar renders keybinding hints at the bottom of the app.
Package onboarding provides the onboarding flow for new users.
Package onboarding provides the onboarding flow for new users.
accounts
Package accounts provides account selection and creation steps.
Package accounts provides account selection and creation steps.
auth
Package auth provides authentication steps for onboarding.
Package auth provides authentication steps for onboarding.
datadog
Package datadog provides Datadog configuration steps.
Package datadog provides Datadog configuration steps.
msgs
Package msgs defines the messages emitted by onboarding steps.
Package msgs defines the messages emitted by onboarding steps.
organizations
Package organizations provides organization selection and creation steps.
Package organizations provides organization selection and creation steps.
role
Package role provides the role selection step for onboarding.
Package role provides the role selection step for onboarding.
sync
Package sync provides the sync step for onboarding.
Package sync provides the sync step for onboarding.
workspaces
Package workspaces provides workspace selection steps.
Package workspaces provides workspace selection steps.
Package palette provides a command palette overlay for the TUI.
Package palette provides a command palette overlay for the TUI.
Package statusbar renders the persistent top bar for the Tero app.
Package statusbar renders the persistent top bar for the Tero app.
compliance
Package compliance renders the compliance indicator in the status bar.
Package compliance renders the compliance indicator in the status bar.
quality
Package quality renders the quality indicator in the status bar.
Package quality renders the quality indicator in the status bar.
services
Package services renders the services health indicator in the status bar.
Package services renders the services health indicator in the status bar.
syncstatus
Package syncstatus renders sync connection status.
Package syncstatus renders sync connection status.
waste
Package waste renders the waste indicator in the status bar.
Package waste renders the waste indicator in the status bar.
Package toast provides a toast notification component for the app.
Package toast provides a toast notification component for the app.

Jump to

Keyboard shortcuts

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