refactor: use go-process daemon types instead of cli
Some checks failed
Security Scan / security (push) Successful in 7s
Test / test (push) Failing after 37s

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 <virgil@lethean.io>
This commit is contained in:
Snider 2026-03-09 14:13:49 +00:00
parent e85aa98a4d
commit d0c057d20c
2 changed files with 4 additions and 2 deletions

2
go.mod
View file

@ -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
)

View file

@ -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",
})