From b6f73dbdd2ef55025ca6f88323fe42c4eab8fad3 Mon Sep 17 00:00:00 2001 From: Snider Date: Tue, 24 Mar 2026 21:50:19 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20core.New()=20returns=20*Core=20?= =?UTF-8?q?=E2=80=94=20no=20unwrapping=20needed.=20main.go=20clean.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Virgil --- cmd/core-agent/main.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cmd/core-agent/main.go b/cmd/core-agent/main.go index 8ccf78c..1f06a5e 100644 --- a/cmd/core-agent/main.go +++ b/cmd/core-agent/main.go @@ -13,7 +13,7 @@ import ( ) func main() { - r := core.New( + c := core.New( core.WithOption("name", "core-agent"), core.WithService(func(c *core.Core) core.Result { svc, err := process.NewService(process.Options{})(c) @@ -30,11 +30,6 @@ func main() { core.WithService(brain.Register), core.WithService(mcp.Register), ) - if !r.OK { - core.Error("failed to create core", "err", r.Value) - os.Exit(1) - } - c := r.Value.(*core.Core) // Version set at build time: go build -ldflags "-X main.version=0.15.0" if version != "" {