firstrun

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 14 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 ApplyBuiltins

func ApplyBuiltins(cfg *config.Config) ([]string, bool)

ApplyBuiltins adds built-in registries to the config if not already present. firstRun is true only when the config had no prior builtins version.

func ApplyBuiltinsRemove

func ApplyBuiltinsRemove(cfg *config.Config, st *state.State, removed []string) ([]string, bool)

func ApplyBuiltinsRename

func ApplyBuiltinsRename(cfg *config.Config, st *state.State, renamed map[string]string) ([]string, bool)

func BuiltinRegistries

func BuiltinRegistries() []config.RegistryConfig

BuiltinRegistries returns RegistryConfig entries for built-in registries as declared in default_registries.yaml.

func IsFirstRun

func IsFirstRun() bool

IsFirstRun returns true if no config file exists yet.

func PromptAdoption

func PromptAdoption(cfg *config.Config, st *state.State, toolSet []tools.Tool, in io.Reader, out io.Writer) error

PromptAdoption runs a one-shot Y/n adoption prompt after first-run setup. It ignores cfg.Adoption.Mode — firstrun always prompts regardless of persisted config. If there are no candidates, it returns nil and writes nothing. Errors from candidate discovery or apply are logged to out (stderr channel) and do not fail firstrun.

func RemoveNaorayScribeRegistry

func RemoveNaorayScribeRegistry(cfg *config.Config, st *state.State) ([]string, bool)

RemoveNaorayScribeRegistry removes the Naoray/scribe built-in registry from the config on a one-shot migration. The entry is only removed if it carries Builtin: true — registries the user added manually are left untouched.

Background: scribe is now managed by the embedded binary (EnsureScribeAgent) rather than a registry sync, so the source repo no longer needs to be a connected registry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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