interactive

package
v0.0.0-...-cc74e3f Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchModels

func FetchModels(copilotURL string) []huh.Option[string]

FetchModels connects to Copilot CLI via CLIUrl and returns available models (legacy).

func FetchModelsWithAuth

func FetchModelsWithAuth(authMethod string, copilotURL string, githubToken string) ([]huh.Option[string], bool, string)

FetchModelsWithAuth creates a temporary client using the selected auth method to get models. For Auto/CLIUrl modes, auto-starts a headless CLI server if needed. Returns the model list, whether it succeeded, and the resolved copilot URL.

Types

type RunConfig

type RunConfig struct {
	URLs         []string
	StorageMode  string // "local" or "github"
	GitHubRepo   string
	GitHubToken  string
	CreateRepo   bool // true if user chose to create a new repo
	OutputDir    string
	Model        string
	ExtractModel string
	CurateModel  string
	BuildModel   string
	Confirmed    bool

	// Auth
	AuthMethod         string                  // config.Auth* constant
	CopilotURL         string                  // for AuthCLIUrl
	GitHubCopilotToken string                  // for AuthGitHubToken
	BYOKProvider       *copilot.ProviderConfig // for AuthBYOK

	// Skill mode
	SkillMode   string // "new" or "evolve"
	EvolveSkill string // name of skill to evolve
}

RunConfig holds the collected configuration from the interactive wizard.

func RunWizard

func RunWizard(savedGitHubRepo string, modelOptions []huh.Option[string]) (*RunConfig, error)

RunWizard launches the interactive configuration wizard.

Jump to

Keyboard shortcuts

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