installui

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelInstallMsg

type CancelInstallMsg struct{}

CancelInstallMsg asks the host to abort an in-flight install (second Esc).

type ClosedMsg

type ClosedMsg struct {
	Hint string
}

ClosedMsg means the user dismissed the wizard.

type Config

type Config struct {
	Styles    theme.Styles
	Provider  serviceinstall.Provider
	AgentIDs  []string
	CWD       string
	Home      string
	GetErrMsg func() string
	SetErrMsg func(string)
	ClearErr  func()
}

Config wires host dependencies into the install wizard.

type HintMsg

type HintMsg struct {
	Text string
}

HintMsg asks the host to show a transient footer hint without closing.

type InstallDoneMsg

type InstallDoneMsg struct {
	Name string
	Err  error
}

InstallDoneMsg is sent when an install command finishes.

type Model

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

Model is a composable Bubble Tea sub-model for search & install (skills.sh).

func New

func New(cfg Config) Model

New builds an install wizard focused on the search step.

func (*Model) ApplyTheme

func (m *Model) ApplyTheme(styles theme.Styles)

func (Model) FooterHint

func (m Model) FooterHint() string

func (Model) FullHelp added in v0.1.1

func (m Model) FullHelp() [][]key.Binding

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) OnPathsStep added in v0.1.1

func (m Model) OnPathsStep() bool

func (Model) PlaceInPane

func (m Model) PlaceInPane(paneWidth, paneHeight int) string

func (Model) Previewing added in v0.1.3

func (m Model) Previewing() bool

func (Model) Searching

func (m Model) Searching() bool

func (Model) Selected

func (m Model) Selected() domaininstall.Candidate

Selected returns the skill chosen for install.

func (*Model) SetSize

func (m *Model) SetSize(width, height int)

func (Model) ShortHelp

func (m Model) ShortHelp() []key.Binding

func (Model) Update

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

func (Model) View

func (m Model) View() string

func (Model) WithSelected

func (m Model) WithSelected(c domaininstall.Candidate) Model

WithSelected prepares the paths step for a chosen candidate (used by tests).

type PreviewDoneMsg added in v0.1.3

type PreviewDoneMsg struct {
	Source   string
	Markdown string
	Err      error
	Gen      int
}

PreviewDoneMsg is sent when the selected result preview finishes loading.

type ProgressTickMsg

type ProgressTickMsg struct{}

ProgressTickMsg drives the indeterminate progress bar while installing.

type RequestInstallMsg

type RequestInstallMsg struct {
	AgentIDs []string
	Scope    extension.Scope
}

RequestInstallMsg asks the host to run Install with a cancellable context.

type Row added in v0.1.1

type Row struct {
	Title       string
	Desc        string
	Meta        string
	DetailLines []string
}

Row is a list entry in the install wizard (no dependency on app/panel).

func (Row) FilterValue added in v0.1.1

func (r Row) FilterValue() string

type SearchDoneMsg

type SearchDoneMsg struct {
	Results []domaininstall.Candidate
	Err     error
}

SearchDoneMsg is sent when a registry search finishes.

Jump to

Keyboard shortcuts

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