refactor(tools): return complete analysis results inline

This commit is contained in:
morluto
2026-09-29 14:53:50 +08:00
parent c34efca4cd
commit 2a6eb41147
156 changed files with 2529 additions and 1891 deletions
@@ -4,7 +4,6 @@ import { access, realpath } from "node:fs/promises";
import { delimiter, join } from "node:path";
const TOOL_NAMES = ["node", "npm", "npx"] as const;
const MAX_CANDIDATES_PER_TOOL = 16;
const MAX_OUTPUT_BYTES = 65_536;
const MAX_DIAGNOSTIC_BYTES = 4_096;
const PROBE_CONCURRENCY = 4;
@@ -142,7 +141,6 @@ const discoverToolCandidates = async (
break;
}
}
if (candidates.length >= MAX_CANDIDATES_PER_TOOL) break;
}
return candidates;
};