config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package config provides configuration path resolution for agentx.

Index

Constants

This section is empty.

Variables

View Source
var AgentConfigPaths = map[agentx.AgentType]string{
	agentx.AgentTypeClaudeCode: ".claude",
	agentx.AgentTypeCursor:     ".cursor",
	agentx.AgentTypeWindsurf:   ".codeium",
	agentx.AgentTypeCopilot:    ".config/github-copilot",
	agentx.AgentTypeAider:      ".aider",
	agentx.AgentTypeCody:       ".config/cody",
	agentx.AgentTypeContinue:   ".continue",
	agentx.AgentTypeCodePuppy:  ".config/code-puppy",
	agentx.AgentTypeKiro:       ".kiro",
}

AgentConfigPaths maps agent types to their known config directories. These are the standard locations where each agent stores its configuration.

Functions

This section is empty.

Types

type Paths

type Paths struct {
	// contains filtered or unexported fields
}

Paths provides XDG-compliant path resolution for agent configuration.

func NewPaths

func NewPaths(env agentx.Environment) *Paths

NewPaths creates a new path resolver.

func (*Paths) AgentConfigPath

func (p *Paths) AgentConfigPath(agentType agentx.AgentType) (string, error)

AgentConfigPath returns the config path for a specific agent type.

func (*Paths) AppCache

func (p *Paths) AppCache(appName string) (string, error)

AppCache returns the cache path for a specific application.

func (*Paths) AppConfig

func (p *Paths) AppConfig(appName string) (string, error)

AppConfig returns the config path for a specific application.

func (*Paths) AppData

func (p *Paths) AppData(appName string) (string, error)

AppData returns the data path for a specific application.

func (*Paths) CacheHome

func (p *Paths) CacheHome() (string, error)

CacheHome returns the XDG cache home directory.

func (*Paths) ConfigHome

func (p *Paths) ConfigHome() (string, error)

ConfigHome returns the XDG config home directory.

func (*Paths) DataHome

func (p *Paths) DataHome() (string, error)

DataHome returns the XDG data home directory.

Jump to

Keyboard shortcuts

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