Help us shape the future of Go! Take the 2026 Go Developer Survey

setup

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMCPInstalled

func CheckMCPInstalled() bool

CheckMCPInstalled checks if vela is configured in OpenCode or Claude Desktop MCP settings.

func CheckOllama

func CheckOllama() (installed bool, running bool, path string, err error)

CheckOllama checks if Ollama is installed and running.

func GetOllamaModels

func GetOllamaModels() ([]string, error)

GetOllamaModels returns list of installed Ollama models.

func InstallOllama

func InstallOllama() error

InstallOllama guides installation of Ollama based on platform.

func PullModel

func PullModel(model string) error

PullModel downloads an Ollama model.

func PullModelSilent

func PullModelSilent(model string) error

PullModelSilent downloads an Ollama model without output (for TUI mode).

func StartOllama

func StartOllama() error

StartOllama attempts to start the Ollama service.

Types

type HardwareInfo

type HardwareInfo struct {
	OS         string
	Arch       string
	CPUModel   string
	CPUCores   int
	TotalRAMGB int
	FreeRAMGB  int
	DiskFreeGB int
}

HardwareInfo represents detected system hardware

func DetectHardware

func DetectHardware() (*HardwareInfo, error)

DetectHardware detects system hardware specs

func (*HardwareInfo) CanRunLocalLLM

func (h *HardwareInfo) CanRunLocalLLM() bool

CanRunLocalLLM checks if system meets minimum requirements for local LLM

func (*HardwareInfo) Format

func (h *HardwareInfo) Format() string

Format returns human-readable hardware summary

func (*HardwareInfo) RecommendedModel

func (h *HardwareInfo) RecommendedModel() string

RecommendedModel returns recommended model based on available RAM

type RecommendedModel

type RecommendedModel struct {
	Name              string
	DisplayName       string
	Description       string
	Size              string
	ParameterCount    string
	QuantizationLevel string // Q4_K_M, Q5_K_M, etc.

	// Syfra/Ancora ecosystem compatibility
	SyfraCompatible   bool     // Works with Syfra ecosystem
	AncoraEmbedCompat bool     // Compatible with Ancora's embedding approach
	EmbedDimensions   int      // Embedding dimensions (768 for nomic-embed-text)
	RecommendedFor    []string // ["extraction", "reasoning", "embedding"]

	// Performance characteristics
	MinRAM             string // "4GB", "8GB", "16GB"
	AvgTokensPerSecond int    // Approximate on consumer hardware
	ContextWindow      int    // Token context window

	// Model-specific notes
	Notes         string
	SyfraVerified bool // Tested and verified by Syfra team
}

RecommendedModel represents a tested Ollama model with compatibility metadata

func FilterByRAM

func FilterByRAM(models []RecommendedModel, availableGB int) []RecommendedModel

FilterByRAM returns models that fit in available RAM

func FilterBySyfraVerified

func FilterBySyfraVerified(models []RecommendedModel) []RecommendedModel

FilterBySyfraVerified returns only Syfra-tested models

func GetDefaultModel

func GetDefaultModel() RecommendedModel

GetDefaultModel returns the recommended default (llama3)

func GetEmbeddingCompatibleModels

func GetEmbeddingCompatibleModels() []RecommendedModel

GetEmbeddingCompatibleModels returns models that work with Ancora's embedding system NOTE: Currently Ancora uses nomic-embed-text (768-dim) via llama.cpp, NOT Ollama models Vela extraction and Ancora embeddings are separate concerns

func GetRecommendedModels

func GetRecommendedModels() []RecommendedModel

GetRecommendedModels returns curated list of models for Vela/Syfra ecosystem

func (RecommendedModel) FormatModelChoice

func (m RecommendedModel) FormatModelChoice() string

FormatModelChoice formats a model for display in TUI

type RequirementCheck

type RequirementCheck struct {
	Name        string
	Description string
	Status      string // "checking", "pass", "fail", "warning"
	Message     string
	Required    bool
}

RequirementCheck represents a single system requirement validation

type WizardModel

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

func NewWizard

func NewWizard() WizardModel

func (WizardModel) FooterHelp

func (m WizardModel) FooterHelp() string

func (WizardModel) Init

func (m WizardModel) Init() tea.Cmd

func (WizardModel) Quitting

func (m WizardModel) Quitting() bool

func (WizardModel) Update

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

func (WizardModel) View

func (m WizardModel) View() string

func (WizardModel) ViewContent

func (m WizardModel) ViewContent() string

type WizardStep

type WizardStep int
const (
	StepWelcome WizardStep = iota
	StepSystemCheck
	StepProviderChoice
	StepLocalSetup  // Install Ollama + start + pull model
	StepRemoteSetup // Configure API keys
	StepMCPConfig
	StepValidation
	StepComplete
	StepError
)

Jump to

Keyboard shortcuts

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