/** * Console filter installed at the top of every entry point. Three jobs: * * 1. Suppress the cosmetic "[AgentDB Patch] Controller index not found" * warning emitted by agentic-flow's runtime patch (it expects agentdb * v1.x layout but we use v3). Tight match: requires BOTH the prefix * AND the specific message. Other [AgentDB Patch] messages flow through. * Audit log audit_1776483149979 flagged the previous broad filter as * too aggressive — this one is tight enough to be safe. * * 2. (#2253, #2256) Redirect noisy stdout writes from upstream embedder * libraries (ruvector ONNX loader, ruvector-onnx-embeddings-wasm * parallel embedder) to stderr. The libraries use `console.log` for * progress messages like "Loading model:" and " Downloading: ...", * which corrupts MCP JSON-RPC stdio (#2253) and is generally noise on * stdout. * * 3. Suppress agentdb's mock-embedder-fallback warning cluster emitted by * `agentdb/dist/controllers/EmbeddingService.js` lines 48–56 when * transformers.js initialisation fails (commonly: macOS arm64 without * `brew install vips` — sharp can't load `libvips-cpp.42.dylib`). The * warnings advertise that agentdb is "falling back to mock embeddings" * — but `memory-bridge.ts::rescueAgentdbEmbedder` monkey-patches * agentdb's embedder to delegate to our working ruvector ONNX pipeline * in that exact case, so the user is NOT actually on mock embeddings. * Letting the warning through is misleading and gets reported as a * bug (user-reported 2026-06-02, no GH issue). Suppression is safe * because the rescue handles the underlying condition; if the rescue * itself fails, the user still sees `[WARN] No results found` from * the calling command which surfaces the real symptom. * * This file MUST be imported as the first side-effect import in any entry * point so the patch is in place before agentic-flow / ruvector / agentdb * (and anything that transitively imports them) loads. ES module imports * are evaluated before the file's own top-level code, so putting this in * src/index.ts directly would race with transitive eager imports. */ declare const isCosmeticAgentdbPatchNoise: (msg: unknown) => boolean; declare const STDERR_REDIRECT_PREFIXES: string[]; declare const AGENTDB_MOCK_FALLBACK_DROP_PREFIXES: string[]; declare const shouldRedirectToStderr: (msg: unknown) => boolean; declare const isAgentdbMockFallbackNoise: (msg: unknown) => boolean; declare const origWarn: (message?: any, ...optionalParams: any[]) => void; declare const origLog: (message?: any, ...optionalParams: any[]) => void; declare const origError: (message?: any, ...optionalParams: any[]) => void; //# sourceMappingURL=log-filters.d.ts.map