fix: remove all hardcoded machine paths from Go code
- orchestrator: queue dir uses CoreRoot()/queue - cmd/agent: queue dir resolved by config, not hardcoded - cmd/workspace: specs path uses ~/Code/specs (no host-uk) - Zero remaining /home/claude or host-uk references in Go Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
327d78d08f
commit
742ca0799f
3 changed files with 7 additions and 5 deletions
|
|
@ -66,7 +66,7 @@ func agentAddCmd() *cli.Command {
|
|||
}
|
||||
queueDir, _ := cmd.Flags().GetString("queue-dir")
|
||||
if queueDir == "" {
|
||||
queueDir = "/home/claude/ai-work/queue"
|
||||
queueDir = "" // resolved by orchestrator config
|
||||
}
|
||||
model, _ := cmd.Flags().GetString("model")
|
||||
dualRun, _ := cmd.Flags().GetBool("dual-run")
|
||||
|
|
@ -128,7 +128,7 @@ func agentAddCmd() *cli.Command {
|
|||
},
|
||||
}
|
||||
cmd.Flags().String("forgejo-user", "", "Forgejo username (defaults to agent name)")
|
||||
cmd.Flags().String("queue-dir", "", "Remote queue directory (default: /home/claude/ai-work/queue)")
|
||||
cmd.Flags().String("queue-dir", "", "Remote queue directory (default: ~/.core/queue)")
|
||||
cmd.Flags().String("model", "sonnet", "Primary AI model")
|
||||
cmd.Flags().Bool("dual-run", false, "Enable Clotho dual-run verification")
|
||||
return cmd
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ func runPrep(cmd *cli.Command, args []string) error {
|
|||
if specsPath == "" {
|
||||
home, err := os.UserHomeDir()
|
||||
if err == nil {
|
||||
specsPath = filepath.Join(home, "Code", "host-uk", "specs")
|
||||
specsPath = filepath.Join(home, "Code", "specs")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,9 +3,11 @@ package orchestrator
|
|||
|
||||
import (
|
||||
"maps"
|
||||
"path/filepath"
|
||||
|
||||
coreerr "forge.lthn.ai/core/go-log"
|
||||
"forge.lthn.ai/core/agent/pkg/agentic"
|
||||
"forge.lthn.ai/core/config"
|
||||
coreerr "forge.lthn.ai/core/go-log"
|
||||
)
|
||||
|
||||
// AgentConfig represents a single agent machine in the config file.
|
||||
|
|
@ -48,7 +50,7 @@ func LoadAgents(cfg *config.Config) (map[string]AgentConfig, error) {
|
|||
return nil, coreerr.E("agentci.LoadAgents", "agent "+name+": host is required", nil)
|
||||
}
|
||||
if ac.QueueDir == "" {
|
||||
ac.QueueDir = "/home/claude/ai-work/queue"
|
||||
ac.QueueDir = filepath.Join(agentic.CoreRoot(), "queue")
|
||||
}
|
||||
if ac.Model == "" {
|
||||
ac.Model = "sonnet"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue