Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 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

fix(cli): move [AgentDB Patch] suppression to dist/src/index.js

Reuven28fed919bd87
diff --git a/v3/@claude-flow/cli/src/index.ts b/v3/@claude-flow/cli/src/index.ts
index 63c2ab4b37..f452dc9bfe 100644
--- a/v3/@claude-flow/cli/src/index.ts
+++ b/v3/@claude-flow/cli/src/index.ts
@@ -5,6 +5,32 @@
* Created with ❤️ by ruv.io
*/
+// MUST run before any agentic-flow / agentdb imports — this file is
+// imported by every entry point (bin/cli.js, ruflo/bin/ruflo.js via
+// dist/src/index.js, and tests). Patching the console here ensures the
+// suppression applies regardless of how the CLI was invoked. Previously
+// the suppression lived only in bin/cli.js, so the ruflo wrapper (which
+// imports dist/src/index.js directly) leaked the cosmetic warning.
+//
+// Tight match: requires BOTH "[AgentDB Patch]" AND "Controller index not
+// found" so other [AgentDB Patch] messages (real issues) still flow.
+{
+ const _isCosmeticAgentdbPatchNoise = (msg: unknown): boolean => {
+ const s = String(msg ?? '');
+ return s.includes('[AgentDB Patch]') && s.includes('Controller index not found');
+ };
+ const _origWarn = console.warn.bind(console);
+ const _origLog = console.log.bind(console);
+ console.warn = (...args: unknown[]) => {
+ if (_isCosmeticAgentdbPatchNoise(args[0])) return;
+ _origWarn(...args);
+ };
+ console.log = (...args: unknown[]) => {
+ if (_isCosmeticAgentdbPatchNoise(args[0])) return;
+ _origLog(...args);
+ };
+}
+
import { readFileSync } from 'fs';
import { fileURLToPath } from 'url';
import { dirname, join } from 'path';