Documentation
¶
Overview ¶
Package config manages MAXAM configuration in ~/.maxam/
Index ¶
- Constants
- Variables
- func AgentsDir() (string, error)
- func ConfigDir() (string, error)
- func EnsureInitialized(embeddedAgents map[string]string) error
- func GetAgentClaudeMD(name string) (string, error)
- func GetAgentDir(name string) (string, error)
- func GetEmbeddedAgents() (map[string]string, error)
- func ListAgents() ([]string, error)
- func Save(cfg *Config) error
- type AgentConfig
- type Config
- type ContextMode
Constants ¶
const DefaultAnalysisMinMessages = 10
DefaultAnalysisMinMessages is the default minimum message count for analysis
Variables ¶
var DefaultAgents = []string{"mei", "yuki", "rin", "shiori", "priya", "amara"}
DefaultAgents is the list of default agents to install
Functions ¶
func EnsureInitialized ¶
EnsureInitialized sets up ~/.maxam/ if not present and copies default agents from the embedded data
func GetAgentClaudeMD ¶
GetAgentClaudeMD returns the path to an agent's CLAUDE.md
func GetAgentDir ¶
GetAgentDir returns the directory for an agent
func GetEmbeddedAgents ¶
GetEmbeddedAgents returns a map of agent name to CLAUDE.md content
func ListAgents ¶
ListAgents returns agent names from ~/.maxam/agents/
Types ¶
type AgentConfig ¶
type AgentConfig struct {
Name string `yaml:"name"`
FullName string `yaml:"full_name"`
Role string `yaml:"role"`
Model string `yaml:"model,omitempty"` // opus, sonnet, haiku
}
AgentConfig represents an agent configuration
type Config ¶
type Config struct {
Version string `yaml:"version"`
DefaultAgent string `yaml:"default_agent,omitempty"`
Agents []AgentConfig `yaml:"agents"`
AnalysisMinMessages int `yaml:"analysis_min_messages,omitempty"`
ContextMode ContextMode `yaml:"context_mode,omitempty"`
YOLOMode bool `yaml:"yolo_mode,omitempty"`
}
Config represents the MAXAM configuration
func (*Config) GetAnalysisMinMessages ¶ added in v0.3.0
GetAnalysisMinMessages returns the analysis minimum messages with default fallback
func (*Config) GetContextMode ¶ added in v0.3.0
func (c *Config) GetContextMode() ContextMode
GetContextMode returns the context mode with default fallback
func (*Config) IsSummaryMode ¶ added in v0.3.0
IsSummaryMode returns true if context mode is summary
type ContextMode ¶ added in v0.3.0
type ContextMode string
ContextMode represents the context mode for system prompts
const ( ContextModeFull ContextMode = "full" ContextModeSummary ContextMode = "summary" )