From 8b159abd171fb4e1cfee1e59feeb8609eb86e3dd Mon Sep 17 00:00:00 2001 From: Virgil Date: Thu, 2 Apr 2026 08:44:48 +0000 Subject: [PATCH] refactor(agentic): wire service runtime directly Co-Authored-By: Virgil --- pkg/agentic/register.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/agentic/register.go b/pkg/agentic/register.go index 97088e2..29472c7 100644 --- a/pkg/agentic/register.go +++ b/pkg/agentic/register.go @@ -14,10 +14,10 @@ import ( // ) // prep := c.Service("agentic") func Register(c *core.Core) core.Result { - subsystem := NewPrep() - subsystem.SetCore(c) + prep := NewPrep() + prep.ServiceRuntime = core.NewServiceRuntime(c, AgentOptions{}) - config := subsystem.loadAgentsConfig() + config := prep.loadAgentsConfig() c.Config().Set("agents.concurrency", config.Concurrency) c.Config().Set("agents.rates", config.Rates) c.Config().Set("agents.dispatch", config.Dispatch) @@ -30,7 +30,7 @@ func Register(c *core.Core) core.Result { c.Config().Enable("auto-pr") c.Config().Enable("auto-merge") c.Config().Enable("auto-ingest") - RegisterHandlers(c, subsystem) + RegisterHandlers(c, prep) - return core.Result{Value: subsystem, OK: true} + return core.Result{Value: prep, OK: true} }