steps

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NavigationHelp() string

NavigationHelp returns standard navigation help text

func NavigationHelpWithInput() string

NavigationHelpWithInput returns navigation help for steps with text input

Types

type APIKeyStep

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

APIKeyStep handles Claude API key configuration

func NewAPIKeyStep

func NewAPIKeyStep() *APIKeyStep

NewAPIKeyStep creates a new API key configuration step

func (*APIKeyStep) Apply

func (s *APIKeyStep) Apply(cfg *config.Config) error

Apply applies the step values to config

func (*APIKeyStep) Init

func (s *APIKeyStep) Init(cfg *config.Config) tea.Cmd

Init initializes the step

func (*APIKeyStep) Title

func (s *APIKeyStep) Title() string

Title returns the step title

func (*APIKeyStep) Update

func (s *APIKeyStep) Update(msg tea.Msg) (tea.Cmd, StepResult)

Update handles input

func (*APIKeyStep) Validate

func (s *APIKeyStep) Validate() error

Validate validates the step

func (*APIKeyStep) View

func (s *APIKeyStep) View() string

View renders the step

type ConfirmStep

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

ConfirmStep shows a summary and asks for confirmation

func NewConfirmStep

func NewConfirmStep() *ConfirmStep

NewConfirmStep creates a new confirmation step

func (*ConfirmStep) Apply

func (s *ConfirmStep) Apply(cfg *config.Config) error

Apply applies the step values to config

func (*ConfirmStep) Init

func (s *ConfirmStep) Init(cfg *config.Config) tea.Cmd

Init initializes the step

func (*ConfirmStep) InitWithIntegrations added in v0.14.0

func (s *ConfirmStep) InitWithIntegrations(cfg *config.Config, selectedIntegrations []string) tea.Cmd

InitWithIntegrations initializes with explicit integration list

func (*ConfirmStep) IsConfirmed

func (s *ConfirmStep) IsConfirmed() bool

IsConfirmed returns true if user selected "Yes"

func (*ConfirmStep) Title

func (s *ConfirmStep) Title() string

Title returns the step title

func (*ConfirmStep) Update

func (s *ConfirmStep) Update(msg tea.Msg) (tea.Cmd, StepResult)

Update handles input

func (*ConfirmStep) Validate

func (s *ConfirmStep) Validate() error

Validate validates the step

func (*ConfirmStep) View

func (s *ConfirmStep) View() string

View renders the step

type EmbeddingsModelInfo added in v0.14.0

type EmbeddingsModelInfo struct {
	ID          string
	DisplayName string
	Description string
	Dimensions  int
}

EmbeddingsModelInfo holds embeddings model configuration details

type EmbeddingsProviderInfo added in v0.14.0

type EmbeddingsProviderInfo struct {
	Name        string
	DisplayName string
	EnvVar      string
	KeyDetected bool
	Models      []EmbeddingsModelInfo
}

EmbeddingsProviderInfo holds embeddings provider configuration details

type EmbeddingsStep

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

EmbeddingsStep handles embeddings provider selection and configuration

func NewEmbeddingsStep

func NewEmbeddingsStep() *EmbeddingsStep

NewEmbeddingsStep creates a new embeddings configuration step

func (*EmbeddingsStep) Apply

func (s *EmbeddingsStep) Apply(cfg *config.Config) error

Apply applies the step values to config

func (*EmbeddingsStep) Init

func (s *EmbeddingsStep) Init(cfg *config.Config) tea.Cmd

Init initializes the step

func (*EmbeddingsStep) Title

func (s *EmbeddingsStep) Title() string

Title returns the step title

func (*EmbeddingsStep) Update

func (s *EmbeddingsStep) Update(msg tea.Msg) (tea.Cmd, StepResult)

Update handles input

func (*EmbeddingsStep) Validate

func (s *EmbeddingsStep) Validate() error

Validate validates the step

func (*EmbeddingsStep) View

func (s *EmbeddingsStep) View() string

View renders the step

type FalkorDBStep

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

FalkorDBStep handles FalkorDB configuration

func NewFalkorDBStep

func NewFalkorDBStep() *FalkorDBStep

NewFalkorDBStep creates a new FalkorDB configuration step

func (*FalkorDBStep) Apply

func (s *FalkorDBStep) Apply(cfg *config.Config) error

Apply applies the step values to config

func (*FalkorDBStep) Init

func (s *FalkorDBStep) Init(cfg *config.Config) tea.Cmd

Init initializes the step

func (*FalkorDBStep) Title

func (s *FalkorDBStep) Title() string

Title returns the step title

func (*FalkorDBStep) Update

func (s *FalkorDBStep) Update(msg tea.Msg) (tea.Cmd, StepResult)

Update handles input

func (*FalkorDBStep) Validate

func (s *FalkorDBStep) Validate() error

Validate validates the step

func (*FalkorDBStep) View

func (s *FalkorDBStep) View() string

View renders the step

type HTTPPortStep

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

HTTPPortStep handles HTTP API port configuration

func NewHTTPPortStep

func NewHTTPPortStep() *HTTPPortStep

NewHTTPPortStep creates a new HTTP port configuration step

func (*HTTPPortStep) Apply

func (s *HTTPPortStep) Apply(cfg *config.Config) error

Apply applies the step values to config

func (*HTTPPortStep) Init

func (s *HTTPPortStep) Init(cfg *config.Config) tea.Cmd

Init initializes the step

func (*HTTPPortStep) Title

func (s *HTTPPortStep) Title() string

Title returns the step title

func (*HTTPPortStep) Update

func (s *HTTPPortStep) Update(msg tea.Msg) (tea.Cmd, StepResult)

Update handles input

func (*HTTPPortStep) Validate

func (s *HTTPPortStep) Validate() error

Validate validates the step

func (*HTTPPortStep) View

func (s *HTTPPortStep) View() string

View renders the step

type InstallChoice

type InstallChoice int

InstallChoice represents the user's choice for service installation

const (
	InstallUser   InstallChoice = iota // Auto-install user-level
	InstallSystem                      // Show manual commands for system-level
	InstallSkip                        // Skip service setup
)

type IntegrationsStep

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

IntegrationsStep handles integration selection

func NewIntegrationsStep

func NewIntegrationsStep() *IntegrationsStep

NewIntegrationsStep creates a new integrations selection step

func (*IntegrationsStep) Apply

func (s *IntegrationsStep) Apply(cfg *config.Config) error

Apply applies the step values to config

func (*IntegrationsStep) Init

func (s *IntegrationsStep) Init(cfg *config.Config) tea.Cmd

Init initializes the step

func (*IntegrationsStep) SelectedIntegrations

func (s *IntegrationsStep) SelectedIntegrations() []string

SelectedIntegrations returns the list of selected integration names

func (*IntegrationsStep) Title

func (s *IntegrationsStep) Title() string

Title returns the step title

func (*IntegrationsStep) Update

func (s *IntegrationsStep) Update(msg tea.Msg) (tea.Cmd, StepResult)

Update handles input

func (*IntegrationsStep) Validate

func (s *IntegrationsStep) Validate() error

Validate validates the step

func (*IntegrationsStep) View

func (s *IntegrationsStep) View() string

View renders the step

type ModelInfo added in v0.14.0

type ModelInfo struct {
	ID          string
	DisplayName string
	Description string
	InputCost   string
	OutputCost  string
}

ModelInfo holds model configuration details

type ProviderInfo added in v0.14.0

type ProviderInfo struct {
	Name        string
	DisplayName string
	EnvVar      string
	KeyDetected bool
	Models      []ModelInfo
	DefaultRate int
}

ProviderInfo holds provider configuration details

type SemanticProviderStep added in v0.14.0

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

SemanticProviderStep handles semantic provider selection and configuration

func NewSemanticProviderStep added in v0.14.0

func NewSemanticProviderStep() *SemanticProviderStep

NewSemanticProviderStep creates a new semantic provider configuration step

func (*SemanticProviderStep) Apply added in v0.14.0

func (s *SemanticProviderStep) Apply(cfg *config.Config) error

Apply applies the step values to config

func (*SemanticProviderStep) Init added in v0.14.0

func (s *SemanticProviderStep) Init(cfg *config.Config) tea.Cmd

Init initializes the step

func (*SemanticProviderStep) Title added in v0.14.0

func (s *SemanticProviderStep) Title() string

Title returns the step title

func (*SemanticProviderStep) Update added in v0.14.0

func (s *SemanticProviderStep) Update(msg tea.Msg) (tea.Cmd, StepResult)

Update handles input

func (*SemanticProviderStep) Validate added in v0.14.0

func (s *SemanticProviderStep) Validate() error

Validate validates the step

func (*SemanticProviderStep) View added in v0.14.0

func (s *SemanticProviderStep) View() string

View renders the step

type StartChoice

type StartChoice int

StartChoice represents whether to start the daemon now or later

const (
	StartNow   StartChoice = iota // Start daemon immediately
	StartLater                    // Show start instructions for later
)

type StartupStep

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

StartupStep handles service manager configuration

func NewStartupStep

func NewStartupStep() *StartupStep

NewStartupStep creates a new startup configuration step

func (*StartupStep) Apply

func (s *StartupStep) Apply(cfg *config.Config) error

Apply applies the step values to config

func (*StartupStep) GetInstallChoice

func (s *StartupStep) GetInstallChoice() InstallChoice

GetInstallChoice returns the user's installation choice

func (*StartupStep) GetInstallPath

func (s *StartupStep) GetInstallPath() string

GetInstallPath returns the path where the service was installed

func (*StartupStep) GetStartChoice

func (s *StartupStep) GetStartChoice() StartChoice

GetStartChoice returns the user's daemon start choice

func (*StartupStep) GetSystemInstructions

func (s *StartupStep) GetSystemInstructions() string

GetSystemInstructions returns the system-level installation instructions

func (*StartupStep) Init

func (s *StartupStep) Init(cfg *config.Config) tea.Cmd

Init initializes the step

func (*StartupStep) Title

func (s *StartupStep) Title() string

Title returns the step title

func (*StartupStep) Update

func (s *StartupStep) Update(msg tea.Msg) (tea.Cmd, StepResult)

Update handles input

func (*StartupStep) Validate

func (s *StartupStep) Validate() error

Validate validates the step

func (*StartupStep) View

func (s *StartupStep) View() string

View renders the step

type Step

type Step interface {
	// Init initializes the step with the current config state
	// Called when the step becomes active
	Init(cfg *config.Config) tea.Cmd

	// Update handles messages for this step
	// Returns a command and a boolean indicating if the step is complete
	Update(msg tea.Msg) (tea.Cmd, StepResult)

	// View renders the step content (not including progress bar)
	View() string

	// Title returns the step title for the progress indicator
	Title() string

	// Validate checks if current values are valid
	// Returns nil if valid, error message otherwise
	Validate() error

	// Apply writes the step's values to the config
	// Called after successful validation when moving to next step
	Apply(cfg *config.Config) error
}

Step represents a single wizard step

type StepResult

type StepResult int

StepResult indicates what should happen after Update

const (
	// StepContinue means stay on current step
	StepContinue StepResult = iota
	// StepNext means move to next step
	StepNext
	// StepPrev means move to previous step
	StepPrev
)

Jump to

Keyboard shortcuts

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