Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExampleConfig []byte
View Source
var ProjectExampleConfig []byte
Functions ¶
Types ¶
type Config ¶
type Config struct {
DiscordToken string
DiscordAppID string
ClaudeBinPath string
DBPath string
LogLevel string
LogFormat string
ContainerImage string
ContainerTimeout time.Duration
ContainerMemoryMB int64
ContainerCPUs float64
ContainerKeepAlive time.Duration
PollInterval time.Duration
APIAddr string
ClaudeCodeOAuthToken string
DiscordGuildID string
LoopDir string
MCPServers map[string]MCPServerConfig
TaskTemplates []TaskTemplate
Mounts []string
ClaudeModel string
}
Config holds all application configuration loaded from config.json.
func LoadProjectConfig ¶
LoadProjectConfig loads project-specific config from {workDir}/.loop/config.json and merges it with the main config. Only mounts, mcp_servers, and claude_model are loaded from the project config for security reasons.
Merge behavior: - Mounts: Project mounts replace global mounts entirely - MCP Servers: Merged with project servers taking precedence over main config
Relative paths in project mounts are resolved relative to workDir. If the project config file doesn't exist, returns the main config unchanged.
Click to show internal directories.
Click to hide internal directories.