Fix hardcoded paths after workspace restructure
Update all hardcoded paths from ~/AI/projects/* to ~/chorus/project-queues/active/* and ~/AI/secrets/* to ~/chorus/business/secrets/* after workspace reorganization. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,7 @@ type Config struct {
|
||||
P2P P2PConfig `yaml:"p2p"`
|
||||
Logging LoggingConfig `yaml:"logging"`
|
||||
HCFS HCFSConfig `yaml:"hcfs"`
|
||||
Slurp SlurpConfig `yaml:"slurp"`
|
||||
}
|
||||
|
||||
// HiveAPIConfig holds Hive system integration settings
|
||||
@@ -75,7 +76,7 @@ type GitHubConfig struct {
|
||||
type P2PConfig struct {
|
||||
ServiceTag string `yaml:"service_tag"`
|
||||
BzzzTopic string `yaml:"bzzz_topic"`
|
||||
AntennaeTopic string `yaml:"antennae_topic"`
|
||||
HmmmTopic string `yaml:"hmmm_topic"`
|
||||
DiscoveryTimeout time.Duration `yaml:"discovery_timeout"`
|
||||
|
||||
// Human escalation settings
|
||||
@@ -162,7 +163,7 @@ func getDefaultConfig() *Config {
|
||||
SandboxImage: "registry.home.deepblack.cloud/tony/bzzz-sandbox:latest",
|
||||
},
|
||||
GitHub: GitHubConfig{
|
||||
TokenFile: "/home/tony/AI/secrets/passwords_and_tokens/gh-token",
|
||||
TokenFile: "/home/tony/chorus/business/secrets/gh-token",
|
||||
UserAgent: "Bzzz-P2P-Agent/1.0",
|
||||
Timeout: 30 * time.Second,
|
||||
RateLimit: true,
|
||||
@@ -171,7 +172,7 @@ func getDefaultConfig() *Config {
|
||||
P2P: P2PConfig{
|
||||
ServiceTag: "bzzz-peer-discovery",
|
||||
BzzzTopic: "bzzz/coordination/v1",
|
||||
AntennaeTopic: "antennae/meta-discussion/v1",
|
||||
HmmmTopic: "hmmm/meta-discussion/v1",
|
||||
DiscoveryTimeout: 10 * time.Second,
|
||||
EscalationWebhook: "https://n8n.home.deepblack.cloud/webhook-test/human-escalation",
|
||||
EscalationKeywords: []string{"stuck", "help", "human", "escalate", "clarification needed", "manual intervention"},
|
||||
@@ -196,6 +197,7 @@ func getDefaultConfig() *Config {
|
||||
CompressArtifacts: false,
|
||||
Enabled: true,
|
||||
},
|
||||
Slurp: GetDefaultSlurpConfig(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -252,6 +254,17 @@ func loadFromEnv(config *Config) error {
|
||||
config.Logging.Level = level
|
||||
}
|
||||
|
||||
// SLURP configuration
|
||||
if slurpURL := os.Getenv("BZZZ_SLURP_URL"); slurpURL != "" {
|
||||
config.Slurp.BaseURL = slurpURL
|
||||
}
|
||||
if slurpKey := os.Getenv("BZZZ_SLURP_API_KEY"); slurpKey != "" {
|
||||
config.Slurp.APIKey = slurpKey
|
||||
}
|
||||
if slurpEnabled := os.Getenv("BZZZ_SLURP_ENABLED"); slurpEnabled == "true" {
|
||||
config.Slurp.Enabled = true
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -281,6 +294,11 @@ func validateConfig(config *Config) error {
|
||||
return fmt.Errorf("github token file does not exist: %s", config.GitHub.TokenFile)
|
||||
}
|
||||
|
||||
// Validate SLURP configuration
|
||||
if err := ValidateSlurpConfig(config.Slurp); err != nil {
|
||||
return fmt.Errorf("slurp configuration invalid: %w", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user