refactor(daemon): remove global ReposRoot, use per-task RepoPath from server
ReposRoot was a daemon-level config that locked all tasks to a single git repo. Replace with RepoPath in TaskContext so the server can specify the repo per task. When not provided, daemon falls back to directory mode. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
aa3f927a37
commit
7b4a73c989
7 changed files with 15 additions and 36 deletions
|
|
@ -22,7 +22,6 @@ var daemonCmd = &cobra.Command{
|
|||
|
||||
func init() {
|
||||
f := daemonCmd.Flags()
|
||||
f.String("repos-root", "", "Base directory for task repositories (env: MULTICA_REPOS_ROOT)")
|
||||
f.String("config-path", "", "Path to daemon config file (env: MULTICA_DAEMON_CONFIG)")
|
||||
f.String("daemon-id", "", "Unique daemon identifier (env: MULTICA_DAEMON_ID)")
|
||||
f.String("device-name", "", "Human-readable device name (env: MULTICA_DAEMON_DEVICE_NAME)")
|
||||
|
|
@ -36,7 +35,6 @@ func runDaemon(cmd *cobra.Command, _ []string) error {
|
|||
overrides := daemon.Overrides{
|
||||
ServerURL: cli.FlagOrEnv(cmd, "server-url", "MULTICA_SERVER_URL", ""),
|
||||
WorkspaceID: cli.FlagOrEnv(cmd, "workspace-id", "MULTICA_WORKSPACE_ID", ""),
|
||||
ReposRoot: flagString(cmd, "repos-root"),
|
||||
ConfigPath: flagString(cmd, "config-path"),
|
||||
DaemonID: flagString(cmd, "daemon-id"),
|
||||
DeviceName: flagString(cmd, "device-name"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue