From d0c057d20c4e57504e270451a4305d14443eb77b Mon Sep 17 00:00:00 2001 From: Snider Date: Mon, 9 Mar 2026 14:13:49 +0000 Subject: [PATCH] refactor: use go-process daemon types instead of cli Import daemon types (NewDaemon, DaemonOptions) from the dedicated go-process package rather than the cli package, completing the extraction of process management into its own module. Co-Authored-By: Virgil --- go.mod | 2 ++ headless.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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", })