config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package config manages MAXAM configuration in ~/.maxam/

Index

Constants

This section is empty.

Variables

View Source
var DefaultAgents = []string{"mei", "yuki", "rin", "shiori", "priya", "amara"}

DefaultAgents is the list of default agents to install

Functions

func AgentsDir

func AgentsDir() (string, error)

AgentsDir returns the path to ~/.maxam/agents/

func ConfigDir

func ConfigDir() (string, error)

ConfigDir returns the path to ~/.maxam/

func EnsureInitialized

func EnsureInitialized(embeddedAgents map[string]string) error

EnsureInitialized sets up ~/.maxam/ if not present and copies default agents from the embedded data

func GetAgentClaudeMD

func GetAgentClaudeMD(name string) (string, error)

GetAgentClaudeMD returns the path to an agent's CLAUDE.md

func GetAgentDir

func GetAgentDir(name string) (string, error)

GetAgentDir returns the directory for an agent

func GetEmbeddedAgents

func GetEmbeddedAgents() (map[string]string, error)

GetEmbeddedAgents returns a map of agent name to CLAUDE.md content

func ListAgents

func ListAgents() ([]string, error)

ListAgents returns agent names from ~/.maxam/agents/

func Save

func Save(cfg *Config) error

Save writes configuration to ~/.maxam/config.yaml

Types

type AgentConfig

type AgentConfig struct {
	Name     string `yaml:"name"`
	FullName string `yaml:"full_name"`
	Role     string `yaml:"role"`
}

AgentConfig represents an agent configuration

type Config

type Config struct {
	Version string        `yaml:"version"`
	Agents  []AgentConfig `yaml:"agents"`
}

Config represents the MAXAM configuration

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns the default configuration

func Load

func Load() (*Config, error)

Load reads configuration from ~/.maxam/config.yaml

Jump to

Keyboard shortcuts

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