setup

package
v0.4.1-0...-f3557d3 Latest Latest
Warning

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

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

Documentation

Overview

Package setup provides the interactive setup wizard for the agent.

Index

Constants

View Source
const (
	ScenarioLocal      = "local"      // Personal machine, experimenting
	ScenarioDev        = "dev"        // Development/testing
	ScenarioTeam       = "team"       // Small team, shared configs
	ScenarioProduction = "production" // Production deployment
	ScenarioEnterprise = "enterprise" // Large-scale enterprise
	ScenarioDocker     = "docker"     // Container deployment
	ScenarioK8s        = "kubernetes" // Kubernetes deployment
)

Deployment scenarios

View Source
const (
	ProviderAnthropic  = "anthropic"
	ProviderOpenAI     = "openai"
	ProviderGoogle     = "google"
	ProviderGroq       = "groq"
	ProviderMistral    = "mistral"
	ProviderOpenRouter = "openrouter"
	ProviderOllama     = "ollama"
	ProviderLiteLLM    = "litellm"
	ProviderLMStudio   = "lmstudio"
	ProviderCustom     = "custom"
)

Provider options

Variables

This section is empty.

Functions

func Run

func Run() error

Run starts the setup wizard

Types

type Config

type Config struct {
	// Deployment
	Scenario  string
	Workspace string
	ConfigDir string

	// LLM
	Provider string
	Model    string
	APIKey   string
	BaseURL  string

	// Profiles
	UseProfiles bool
	Profiles    map[string]ProfileConfig

	// Security
	DefaultDeny bool
	AllowBash   bool
	AllowWeb    bool

	// Features
	EnableMCP       bool
	EnableTelemetry bool
	EnableMemory    bool

	// Credentials
	CredentialMethod string // "file", "env", "vault", "k8s-secret"
}

Config holds the setup configuration

type Model

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

Model is the bubbletea model for the setup wizard

func New

func New() Model

New creates a new setup model

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the model

func (Model) Update

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

Update handles messages

func (Model) View

func (m Model) View() string

View renders the UI

type ProfileConfig

type ProfileConfig struct {
	Provider string
	Model    string
	BaseURL  string
}

ProfileConfig holds a capability profile configuration

type Step

type Step int

Step represents a setup wizard step

const (
	StepWelcome Step = iota
	StepScenario
	StepProvider
	StepModel
	StepAPIKey
	StepBaseURL
	StepWorkspace
	StepSecurity
	StepProfiles
	StepCredentialMethod
	StepFeatures
	StepConfirm
	StepWriteFiles
	StepComplete
)

Jump to

Keyboard shortcuts

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