From 8c9ee8f2bdec8a8ab282a82280f68ee2bfc11780 Mon Sep 17 00:00:00 2001 From: Virgil Date: Wed, 1 Apr 2026 18:33:34 +0000 Subject: [PATCH] feat(core-agent): register setup service Co-Authored-By: Virgil --- cmd/core-agent/main.go | 2 ++ cmd/core-agent/main_test.go | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/cmd/core-agent/main.go b/cmd/core-agent/main.go index 360fd2c..f3f2d54 100644 --- a/cmd/core-agent/main.go +++ b/cmd/core-agent/main.go @@ -13,6 +13,7 @@ import ( "dappco.re/go/agent/pkg/brain" "dappco.re/go/agent/pkg/monitor" "dappco.re/go/agent/pkg/runner" + "dappco.re/go/agent/pkg/setup" ) func main() { @@ -33,6 +34,7 @@ func newCoreAgent() *core.Core { core.WithService(runner.Register), core.WithService(monitor.Register), core.WithService(brain.Register), + core.WithService(setup.Register), core.WithService(registerMCPService), ) coreApp.App().Version = applicationVersion() diff --git a/cmd/core-agent/main_test.go b/cmd/core-agent/main_test.go index 031d197..ff3c59b 100644 --- a/cmd/core-agent/main_test.go +++ b/cmd/core-agent/main_test.go @@ -10,6 +10,7 @@ import ( "dappco.re/go/agent/pkg/brain" "dappco.re/go/agent/pkg/monitor" "dappco.re/go/agent/pkg/runner" + "dappco.re/go/agent/pkg/setup" "dappco.re/go/core" "forge.lthn.ai/core/mcp/pkg/mcp" "github.com/stretchr/testify/assert" @@ -34,6 +35,7 @@ func TestMain_NewCoreAgent_Good(t *testing.T) { assert.Contains(t, c.Services(), "runner") assert.Contains(t, c.Services(), "monitor") assert.Contains(t, c.Services(), "brain") + assert.Contains(t, c.Services(), "setup") assert.Contains(t, c.Services(), "mcp") assert.Contains(t, c.Commands(), "version") assert.Contains(t, c.Commands(), "check") @@ -54,6 +56,9 @@ func TestMain_NewCoreAgent_Good(t *testing.T) { service = c.Service("brain") assert.True(t, service.OK) assert.IsType(t, &brain.DirectSubsystem{}, service.Value) + service = c.Service("setup") + assert.True(t, service.OK) + assert.IsType(t, &setup.Service{}, service.Value) service = c.Service("mcp") assert.True(t, service.OK) assert.IsType(t, &mcp.Service{}, service.Value)