π The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
fix: F9 β actionable bridgeSemanticRoute error + multi-version router probe
Reuvene3528f206ad2
diff --git a/v3/@claude-flow/cli/src/memory/memory-bridge.ts b/v3/@claude-flow/cli/src/memory/memory-bridge.tsindex 418f0c7c65..49447c4494 100644--- a/v3/@claude-flow/cli/src/memory/memory-bridge.ts+++ b/v3/@claude-flow/cli/src/memory/memory-bridge.ts@@ -132,6 +132,50 @@ async function getRegistry(dbPath?: string): Promise<any | null> {else reg._controllers = { ...(reg._controllers || {}), skills: sk };}} catch { /* AgentDB not available */ }++ // ADR-093 F9: post-init injection of low-risk disabled controllers.+ // Try multiple constructor names because the agentdb API renamed+ // SemanticRouter across alpha versions (alpha.10 had SemanticRouter,+ // alpha.11+ removed it in favor of @ruvector/router separately;+ // future versions may reintroduce). If the cwd's agentdb has a+ // viable router-shaped controller, wire it; otherwise leave it+ // unbound and let bridgeSemanticRoute return its actionable error.+ try {+ const agentdb = await import('agentdb');+ const candidates = ['SemanticRouter', 'IntentRouter', 'TaskRouter'] as const;+ let routerInstance: { route?: (input: string) => Promise<unknown> | unknown } | null = null;+ for (const name of candidates) {+ const Ctor = (agentdb as Record<string, unknown>)[name];+ if (typeof Ctor === 'function') {+ try {+ // Try with dimension config first (newer router classes), then no-args+ const inst = (() => {+ try { return new (Ctor as new (cfg: { dimension: number }) => unknown)({ dimension: 384 }); }+ catch { return new (Ctor as new () => unknown)(); }+ })() as { route?: (input: string) => Promise<unknown> | unknown };+ if (inst && typeof inst.route === 'function') {+ routerInstance = inst;+ break;+ }+ } catch { /* try next candidate */ }+ }+ }+ if (routerInstance && !reg.get('semanticRouter')) {+ if (typeof reg.set === 'function') reg.set('semanticRouter', routerInstance);+ else reg._controllers = { ...(reg._controllers || {}), semanticRouter: routerInstance };+ }+ } catch { /* SemanticRouter optional β bridgeSemanticRoute will surface "not available" */ }++ // Other disabled controllers remain disabled and tracked in+ // ADR-093 F9 for future enablement:+ // - mutationGuard (write protection β needs config)+ // - attestationLog (needs sqlite db handle the registry does+ // not currently expose)+ // - gnnService (graph neural net β heavy deps, needs WASM/CUDA)+ // - guardedVectorBackend (secured vector backend variant β+ // needs key material)+ // - rvfOptimizer (RVF format optimizer β needs RVF storage)+ // - graphAdapter (graph DB adapter β needs graph DB)} catch {// Intelligence module not available β learning stays unwired}@@ -1823,10 +1867,20 @@ export async function bridgeSemanticRoute(params: { input: string }): Promise<anif (!registry) return null;try {const router = registry.get('semanticRouter');- if (!router) return { route: null, error: 'SemanticRouter not available' };+ if (!router) {+ // ADR-093 F9: surface an actionable error pointing callers at the+ // alternative routing surfaces that DO work, instead of just+ // saying "not available".+ return {+ route: null,+ error: 'SemanticRouter not available in current agentdb build',+ recommendation: 'Use bridgeRouteTask (registers as `agentdb_route` MCP tool) for keyword+pattern routing, or hooks_model-route for ADR-026 model selection.',+ controller: 'none',+ };+ }const result = await router.route(params.input);return { route: result, controller: 'semanticRouter' };- } catch (e: any) { return { route: null, error: e.message }; }+ } catch (e: any) { return { route: null, error: e.message, controller: 'error' }; }}// ===== RaBitQ data export =====