From df4972bdd3b3335d203abc486c5b3a8253edb3e2 Mon Sep 17 00:00:00 2001 From: Tim McVicker Date: Mon, 23 Mar 2026 18:32:54 -0400 Subject: [PATCH] fix: correct AgentDB controller path to dist/src/controllers The AgentDB v1.3.9 package structure has controllers at: dist/src/controllers/index.js Not: dist/controllers/index.js This was causing the runtime patch to fail with: [AgentDB Patch] Controller index not found Tested with ruflo and confirmed the fix resolves the import issues. --- agentic-flow/src/utils/agentdb-runtime-patch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agentic-flow/src/utils/agentdb-runtime-patch.ts b/agentic-flow/src/utils/agentdb-runtime-patch.ts index 7d1fbeb6a..3f637d705 100644 --- a/agentic-flow/src/utils/agentdb-runtime-patch.ts +++ b/agentic-flow/src/utils/agentdb-runtime-patch.ts @@ -34,7 +34,7 @@ export function applyAgentDBPatch(): boolean { return false; } - const controllerIndexPath = join(agentdbPath, 'dist', 'controllers', 'index.js'); + const controllerIndexPath = join(agentdbPath, 'dist', 'src', 'controllers', 'index.js'); if (!existsSync(controllerIndexPath)) { console.warn(`[AgentDB Patch] Controller index not found: ${controllerIndexPath}`); @@ -159,7 +159,7 @@ export function isAgentDBPatchNeeded(): boolean { const agentdbPath = findAgentDBPath(); if (!agentdbPath) return false; - const controllerIndexPath = join(agentdbPath, 'dist', 'controllers', 'index.js'); + const controllerIndexPath = join(agentdbPath, 'dist', 'src', 'controllers', 'index.js'); if (!existsSync(controllerIndexPath)) return false; const content = readFileSync(controllerIndexPath, 'utf8');