Documentation
¶
Overview ¶
Package defaults holds the shipped configuration: file patterns, skipped folders, the data store table, heuristics, reserved domains, and the provider and agent catalogues. Everything that differs from repo to repo but has a sensible default lives here, as data, not in the plugins' code. See https://cernly.dev/how/config/.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Agents []byte
var Providers []byte
Providers and Agents are the catalogues, versioned on their own; their packages parse them.
Functions ¶
func Engine ¶
Engine returns the data store engine of an image repository: the full path (mssql/server) first, then its last segment (postgres).
func IsCaddyfile ¶
IsCaddyfile reports whether a path (or base name) is a Caddyfile.
Types ¶
type AgentConfig ¶
type AgentConfig struct {
Tool string `yaml:"tool"`
Name string `yaml:"name"`
Paths []string `yaml:"paths"`
}
AgentConfig maps the files an AI coding tool leaves in a repo to the tool.
type Config ¶
type Config struct {
Version string `yaml:"version"`
MaxFileBytes int64 `yaml:"max_file_bytes"`
Files Files `yaml:"files"`
Engines map[string]string `yaml:"engines"`
Drivers map[string]map[string]string `yaml:"drivers"` // ecosystem -> package -> engine
Outbound Outbound `yaml:"outbound"`
Domains Domains `yaml:"domains"`
AgentConfigs []AgentConfig `yaml:"agent_configs"`
}
func Get ¶
func Get() *Config
Get returns the shipped defaults. A broken embedded file is a programming error that any test run catches.
func (*Config) ConfigName ¶
ConfigName reports a const or var name that holds a configured URL.
type Files ¶
type Files struct {
Compose []string `yaml:"compose"`
Dockerfile []string `yaml:"dockerfile"`
Caddyfile []string `yaml:"caddyfile"`
Prisma []string `yaml:"prisma"`
Nginx []string `yaml:"nginx"`
Traefik []string `yaml:"traefik"`
SQLMigrations SQLMigrations `yaml:"sql_migrations"`
EnvExamples []string `yaml:"env_examples"`
EnvExamplesByContent []string `yaml:"env_examples_by_content"`
Hooks Hooks `yaml:"hooks"`
SkipDirs []string `yaml:"skip_dirs"`
}