From ff483434e11d0c43208f13471544393764449a62 Mon Sep 17 00:00:00 2001 From: andres Date: Mon, 29 Jun 2026 13:32:51 +0200 Subject: [PATCH] fix(bin): completely suppress Node 25 warning to prevent console pollution --- src/bin/codegraph.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/bin/codegraph.ts b/src/bin/codegraph.ts index 3907bb4f..5bf4802a 100644 --- a/src/bin/codegraph.ts +++ b/src/bin/codegraph.ts @@ -68,9 +68,6 @@ const importESM = new Function('specifier', 'return import(specifier)') as const nodeVersion = process.versions.node; const nodeMajor = parseInt(nodeVersion.split('.')[0] ?? '0', 10); if (nodeMajor >= 25) { - if (!process.argv.includes('--mcp') && !process.env.CODEGRAPH_ALLOW_UNSAFE_NODE) { - process.stderr.write(`[CodeGraph] Warning: Unsupported Node.js version ${nodeVersion}. Continuing in override mode.\n`); - } process.env.CODEGRAPH_ALLOW_UNSAFE_NODE = '1'; } // Enforce the supported Node floor. `engines` in package.json only *warns* on