Documentation
¶
Overview ¶
Package project provides per-project configuration management
Index ¶
- type ByteSize
- type Config
- func (c *Config) ConfigPath() string
- func (c *Config) GetGuidelines() string
- func (c *Config) GetLabels() []string
- func (c *Config) HasLabels() bool
- func (c *Config) MergeWithGlobal(agent string, workers int, timeout time.Duration, maxAttempts int)
- func (c *Config) Save() error
- func (c *Config) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteSize ¶
type ByteSize int64
ByteSize represents a size in bytes (supports KB, MB, GB suffixes in TOML)
func (*ByteSize) UnmarshalText ¶
UnmarshalText parses byte sizes from TOML (e.g., "250KB", "1MB")
type Config ¶
type Config struct {
// Agent configuration
Agent string `toml:"agent"`
MaxWorkers int `toml:"max_workers"`
TaskTimeout time.Duration `toml:"task_timeout"`
MaxAttempts int `toml:"max_attempts"`
// Context settings
TaskContextCount int `toml:"task_context_count"`
TaskContextMaxAge time.Duration `toml:"task_context_max_age"`
// Size thresholds
MaxDescriptionSize ByteSize `toml:"max_description_size"`
MaxDiffSize ByteSize `toml:"max_diff_size"`
MaxFileSize ByteSize `toml:"max_file_size"`
// Project-specific guidelines
Guidelines string `toml:"guidelines"`
// Labels to apply to all tasks
DefaultLabels []string `toml:"default_labels"`
// contains filtered or unexported fields
}
Config holds per-project Drover configuration
func Load ¶
Load loads the project configuration from the project directory If no .drover.toml exists, returns a default config
func (*Config) ConfigPath ¶
ConfigPath returns the path to the config file
func (*Config) GetGuidelines ¶
GetGuidelines returns the project guidelines formatted for prompt inclusion
func (*Config) MergeWithGlobal ¶
MergeWith merges project config with global config values Global config takes precedence for values not set in project config
Click to show internal directories.
Click to hide internal directories.