🌊 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(cli): tight match for cosmetic [AgentDB Patch] noise + cover console.log
Reuvene884b11eeb87
diff --git a/v3/@claude-flow/cli/bin/cli.js b/v3/@claude-flow/cli/bin/cli.jsindex cf462527f9..2e4c4a79a0 100755--- a/v3/@claude-flow/cli/bin/cli.js+++ b/v3/@claude-flow/cli/bin/cli.js@@ -10,14 +10,30 @@import { randomUUID } from 'crypto';-// Suppress noisy [AgentDB Patch] warnings from agentic-flow's runtime patch-// These are cosmetic — the patch tries to fix agentdb v1.x imports but we use v3+// Suppress the SPECIFIC cosmetic "[AgentDB Patch] Controller index not found"+// warning from agentic-flow's runtime patch — these are emitted because the+// patch was written for agentdb v1.x and we use v3, where the controllers+// dist directory is laid out differently. The warning surfaces on every+// command and the audit (audit_1776483149979) flagged a too-broad suppression+// as a security risk because it could hide legitimate [AgentDB Patch] warnings.+//+// Tight match: must include both the prefix AND the specific "Controller+// index not found" text. Anything else (including future [AgentDB Patch]+// warnings about real issues) flows through unchanged. Also patch+// console.log because the underlying code uses it (the previous filter+// only caught console.warn and was therefore a no-op).const _origWarn = console.warn;+const _origLog = console.log;+const _isCosmeticAgentdbPatchNoise = (msg) =>+ msg.includes('[AgentDB Patch]') && msg.includes('Controller index not found');console.warn = (...args) => {- const msg = String(args[0] ?? '');- if (msg.includes('[AgentDB Patch]')) return;+ if (_isCosmeticAgentdbPatchNoise(String(args[0] ?? ''))) return;_origWarn.apply(console, args);};+console.log = (...args) => {+ if (_isCosmeticAgentdbPatchNoise(String(args[0] ?? ''))) return;+ _origLog.apply(console, args);+};// Check if we should run in MCP server mode// Conditions:diff --git a/v3/@claude-flow/cli/bin/mcp-server.js b/v3/@claude-flow/cli/bin/mcp-server.jsindex c1de108b80..3715be2d30 100755--- a/v3/@claude-flow/cli/bin/mcp-server.js+++ b/v3/@claude-flow/cli/bin/mcp-server.js@@ -9,12 +9,23 @@import { randomUUID } from 'crypto';-// Suppress [AgentDB Patch] warnings (cosmetic, from agentic-flow v1.x compat patch)+// Suppress the SPECIFIC cosmetic "[AgentDB Patch] Controller index not found"+// noise. Tight match (both prefix AND "Controller index not found") so other+// [AgentDB Patch] warnings about real issues still flow through. Also patch+// console.log because the underlying call site uses it. See bin/cli.js for+// the same rationale.const _origWarn = console.warn;+const _origLog = console.log;+const _isCosmeticAgentdbPatchNoise = (msg) =>+ msg.includes('[AgentDB Patch]') && msg.includes('Controller index not found');console.warn = (...args) => {- if (String(args[0] ?? '').includes('[AgentDB Patch]')) return;+ if (_isCosmeticAgentdbPatchNoise(String(args[0] ?? ''))) return;_origWarn.apply(console, args);};+console.log = (...args) => {+ if (_isCosmeticAgentdbPatchNoise(String(args[0] ?? ''))) return;+ _origLog.apply(console, args);+};import { listMCPTools, callMCPTool, hasTool } from '../dist/src/mcp-client.js';