Documentation
¶
Index ¶
- func CredentialsPath() string
- func GlobalDir() string
- func GlobalPath() string
- func RepoPath(repoRoot string) string
- func Save(cfg *Config, path string) error
- func SaveCredentials(c *Credentials) error
- type ApprovalConfig
- type Config
- type Credentials
- type GuardrailsConfig
- type Models
- type PrivacyConfig
- type ScheduleConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CredentialsPath ¶ added in v0.2.3
func CredentialsPath() string
func GlobalPath ¶
func GlobalPath() string
func SaveCredentials ¶ added in v0.2.3
func SaveCredentials(c *Credentials) error
Types ¶
type ApprovalConfig ¶
type Config ¶
type Config struct {
DefaultBase string `json:"defaultBase"`
SyncMode string `json:"syncMode"`
AutoStash bool `json:"autoStash"`
Provider string `json:"provider"`
Models Models `json:"models"`
TestCommand string `json:"testCommand"`
LintCommand string `json:"lintCommand"`
Approval ApprovalConfig `json:"approval"`
Guardrails GuardrailsConfig `json:"guardrails"`
Privacy PrivacyConfig `json:"privacy"`
Schedule ScheduleConfig `json:"schedule"`
}
func (*Config) IsHighRiskFile ¶
type Credentials ¶ added in v0.2.3
type Credentials struct {
Anthropic string `json:"anthropic_api_key,omitempty"`
OpenAI string `json:"openai_api_key,omitempty"`
Groq string `json:"groq_api_key,omitempty"`
}
func LoadCredentials ¶ added in v0.2.3
func LoadCredentials() (*Credentials, error)
func (*Credentials) Set ¶ added in v0.2.3
func (c *Credentials) Set(provider, key string)
type GuardrailsConfig ¶
type GuardrailsConfig struct {
MaxLoopSteps int `json:"maxLoopSteps"`
MinConfidenceToApply float64 `json:"minConfidenceToApply"`
AlwaysRunTestsAfterConflict bool `json:"alwaysRunTestsAfterConflict"`
WarnOnHighRiskFiles bool `json:"warnOnHighRiskFiles"`
HighRiskPatterns []string `json:"highRiskPatterns"`
}
type PrivacyConfig ¶
Click to show internal directories.
Click to hide internal directories.