diff options
Diffstat (limited to 'internal/config')
| -rw-r--r-- | internal/config/config.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index ce3b53f..a3c37fb 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -19,6 +19,7 @@ type Config struct { DataDir string `toml:"data_dir"` DBPath string `toml:"-"` LogDir string `toml:"-"` + DropsDir string `toml:"-"` ClaudeBinaryPath string `toml:"claude_binary_path"` GeminiBinaryPath string `toml:"gemini_binary_path"` MaxConcurrent int `toml:"max_concurrent"` @@ -28,6 +29,9 @@ type Config struct { WorkspaceRoot string `toml:"workspace_root"` WebhookSecret string `toml:"webhook_secret"` Projects []Project `toml:"projects"` + VAPIDPublicKey string `toml:"vapid_public_key"` + VAPIDPrivateKey string `toml:"vapid_private_key"` + VAPIDEmail string `toml:"vapid_email"` } func Default() (*Config, error) { @@ -43,6 +47,7 @@ func Default() (*Config, error) { DataDir: dataDir, DBPath: filepath.Join(dataDir, "claudomator.db"), LogDir: filepath.Join(dataDir, "executions"), + DropsDir: filepath.Join(dataDir, "drops"), ClaudeBinaryPath: "claude", GeminiBinaryPath: "gemini", MaxConcurrent: 3, @@ -67,7 +72,7 @@ func LoadFile(path string) (*Config, error) { // EnsureDirs creates the data directory structure. func (c *Config) EnsureDirs() error { - for _, dir := range []string{c.DataDir, c.LogDir} { + for _, dir := range []string{c.DataDir, c.LogDir, c.DropsDir} { if err := os.MkdirAll(dir, 0700); err != nil { return err } |
