setup

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectAgents

func DetectAgents(homeDir string) []enum.AgentTarget

Types

type Choice

type Choice struct {
	Label   string
	Detail  string
	Checked bool
}

type GrillPlan added in v0.2.0

type GrillPlan struct {
	Agent     enum.AgentTarget
	Perms     enum.PermMode
	Model     string
	Effort    string
	PrintOnly bool
}

func RunGrillWizard added in v0.2.0

func RunGrillWizard(in io.Reader, out io.Writer, opts GrillWizardOpts) (GrillPlan, error)

type GrillTargetChoice added in v0.2.0

type GrillTargetChoice struct {
	DomainID string
	Custom   string
}

func SelectGrillTarget added in v0.2.0

func SelectGrillTarget(in io.Reader, out io.Writer, lang enum.Lang, domains []config.DomainConfig) (GrillTargetChoice, error)

type GrillWizardOpts added in v0.2.0

type GrillWizardOpts struct {
	Language      enum.Lang
	TargetLabel   string
	AvailableCLIs []enum.AgentTarget
	PresetAgent   enum.AgentTarget
	PresetPerms   enum.PermMode
	PresetModel   string
	PresetEffort  string
	CanonCount    int
	SubCount      int
	EstTokens     int
}

type OnboardChoice

type OnboardChoice struct {
	Agent     enum.AgentTarget
	PrintOnly bool
}

func SelectOnboardAction

func SelectOnboardAction(in io.Reader, out io.Writer, lang enum.Lang, availableCLIs []enum.AgentTarget) (OnboardChoice, error)

type OnboardPlan

type OnboardPlan struct {
	Agent     enum.AgentTarget
	Mode      enum.OnboardMode
	Perms     enum.PermMode
	Model     string
	Effort    string
	PrintOnly bool
}

func RunOnboardWizard

func RunOnboardWizard(in io.Reader, out io.Writer, opts OnboardWizardOpts) (OnboardPlan, error)

type OnboardWizardOpts

type OnboardWizardOpts struct {
	Language      enum.Lang
	AvailableCLIs []enum.AgentTarget
	PresetAgent   enum.AgentTarget
	PresetMode    enum.OnboardMode
	PresetPerms   enum.PermMode
	PresetModel   string
	PresetEffort  string
	DocCount      int
	SubCount      int
	TotalBytes    int64
	EstTokens     int
}

type Options

type Options struct {
	HomeDir       string
	BinDir        string
	SourceBinPath string
	InstallBinary bool
	Language      enum.Lang
	Agents        []enum.AgentTarget
	PathEnv       string
}

type Result

type Result struct {
	BinaryPath     string
	InstalledFiles []string
	BinInPath      bool
}

func Install

func Install(opts Options) (Result, error)

func RunWizard

func RunWizard(in io.Reader, out io.Writer, cfg WizardInput) (Result, error)

type WizardInput

type WizardInput struct {
	HomeDir        string
	BinDir         string
	SourceBinPath  string
	ProjectDir     string
	PathEnv        string
	PresetLang     enum.Lang
	PresetAgents   []enum.AgentTarget
	SkipBinary     bool
	InitProject    bool
	NonInteractive bool
	InteractiveIO  bool
}

Jump to

Keyboard shortcuts

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