Documentation
¶
Index ¶
- func ApplyBuiltins(cfg *config.Config) ([]string, bool)
- func ApplyBuiltinsRemove(cfg *config.Config, st *state.State, removed []string) ([]string, bool)
- func ApplyBuiltinsRename(cfg *config.Config, st *state.State, renamed map[string]string) ([]string, bool)
- func BuiltinRegistries() []config.RegistryConfig
- func IsFirstRun() bool
- func PromptAdoption(cfg *config.Config, st *state.State, toolSet []tools.Tool, in io.Reader, ...) error
- func RemoveNaorayScribeRegistry(cfg *config.Config, st *state.State) ([]string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyBuiltins ¶
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 ApplyBuiltinsRename ¶
func BuiltinRegistries ¶
func BuiltinRegistries() []config.RegistryConfig
BuiltinRegistries returns RegistryConfig entries for built-in registries as declared in default_registries.yaml.
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 ¶
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.