config

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package config loads Fuse configuration from fuse.yaml + env overrides.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LocateConfig

func LocateConfig(cwd string) string

LocateConfig returns the first existing fuse.yaml walking up from cwd. Returns "" if nothing found.

Types

type Config

type Config struct {
	Version     int           `yaml:"version"`
	GroveURL    string        `yaml:"grove_url"`
	GroveBinary string        `yaml:"grove_binary"`
	Merge       MergeConfig   `yaml:"merge"`
	Git         GitConfig     `yaml:"git"`
	Resolve     ResolveConfig `yaml:"resolve"`
}

func Default

func Default() *Config

Default returns the baseline configuration used when no file is found.

func Load

func Load(path string) (*Config, error)

Load reads fuse.yaml from path (or returns defaults if not present) and applies environment overrides (GROVE_URL, FUSE_HANDOFF_THRESHOLD, FUSE_GROVE_REQUIRED).

type GitConfig

type GitConfig struct {
	AutoInstall     bool   `yaml:"auto_install"`
	AttributesScope string `yaml:"attributes_scope"`
}

type MergeConfig

type MergeConfig struct {
	ConfidenceMode       string  `yaml:"confidence_mode"`
	HandoffThreshold     float64 `yaml:"handoff_threshold"`
	EnableBreakingChange bool    `yaml:"enable_breaking_change"`
	EnableContext        bool    `yaml:"enable_context"`
	// EnableDrift records the structural code-graph delta of each merge to
	// .git/fuse/drift.json (advisory, fail-open). Requires Grove.
	EnableDrift   bool `yaml:"enable_drift"`
	GroveRequired bool `yaml:"grove_required"`
	AutoIndex     bool `yaml:"auto_index"`
}

type ResolveConfig added in v0.5.0

type ResolveConfig struct {
	// AgentCmd is a shell command that reads a conflict prompt on stdin and
	// writes the complete resolved file to stdout (e.g. "claude -p").
	AgentCmd string `yaml:"agent_cmd"`
}

ResolveConfig controls `fuse resolve` agent integration.

Jump to

Keyboard shortcuts

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