diff --git a/go.mod b/go.mod index 19710e4..6b1c993 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,7 @@ go 1.26.0 require ( forge.lthn.ai/core/go v0.0.0 + forge.lthn.ai/core/go-process v0.0.0 forge.lthn.ai/core/gui v0.0.0 github.com/gorilla/websocket v1.5.3 github.com/wailsapp/wails/v3 v3.0.0-alpha.64 @@ -64,5 +65,6 @@ require ( replace ( forge.lthn.ai/core/go => ../go + forge.lthn.ai/core/go-process => ../go-process forge.lthn.ai/core/gui => ../gui ) diff --git a/headless.go b/headless.go index bc43ffd..f622489 100644 --- a/headless.go +++ b/headless.go @@ -11,8 +11,8 @@ import ( "syscall" "time" + "forge.lthn.ai/core/go-process" "forge.lthn.ai/core/go/pkg/agentci" - "forge.lthn.ai/core/go/pkg/cli" "forge.lthn.ai/core/go/pkg/config" "forge.lthn.ai/core/go/pkg/forge" "forge.lthn.ai/core/go/pkg/jobrunner" @@ -102,7 +102,7 @@ func startHeadless() { }) // Daemon with PID file and health check - daemon := cli.NewDaemon(cli.DaemonOptions{ + daemon := process.NewDaemon(process.DaemonOptions{ PIDFile: filepath.Join(os.Getenv("HOME"), ".core", "core-ide.pid"), HealthAddr: "127.0.0.1:9878", })