import { TOOL_REGISTRY } from "../tools/toolRegistry.js";
import { verificationTools } from "../tools/verificationTools.js";
import { evalTools } from "../tools/evalTools.js";
import { qualityGateTools } from "../tools/qualityGateTools.js";
import { learningTools } from "../tools/learningTools.js";
import { flywheelTools } from "../tools/flywheelTools.js";
import { reconTools } from "../tools/reconTools.js";
import { uiCaptureTools } from "../tools/uiCaptureTools.js";
import { visionTools } from "../tools/visionTools.js";
import { localFileTools } from "../tools/localFileTools.js";
import { webTools } from "../tools/webTools.js";
import { githubTools } from "../tools/githubTools.js";
import { documentationTools } from "../tools/documentationTools.js";
import { agentBootstrapTools } from "../tools/agentBootstrapTools.js";
import { selfEvalTools } from "../tools/selfEvalTools.js";
import { parallelAgentTools } from "../tools/parallelAgentTools.js";
import { llmTools } from "../tools/llmTools.js";
import { securityTools } from "../tools/securityTools.js";
import { platformTools } from "../tools/platformTools.js";
import { researchWritingTools } from "../tools/researchWritingTools.js";
import { flickerDetectionTools } from "../tools/flickerDetectionTools.js";
import { figmaFlowTools } from "../tools/figmaFlowTools.js";
import { boilerplateTools } from "../tools/boilerplateTools.js";
import { cCompilerBenchmarkTools } from "../tools/cCompilerBenchmarkTools.js";
import { createMetaTools } from "../tools/metaTools.js";
import { createProgressiveDiscoveryTools } from "../tools/progressiveDiscoveryTools.js";
const domain = [
    ...verificationTools, ...evalTools, ...qualityGateTools, ...learningTools,
    ...flywheelTools, ...reconTools, ...uiCaptureTools, ...visionTools,
    ...localFileTools, ...webTools, ...githubTools, ...documentationTools,
    ...agentBootstrapTools, ...selfEvalTools, ...parallelAgentTools,
    ...llmTools, ...securityTools, ...platformTools, ...researchWritingTools,
    ...flickerDetectionTools, ...figmaFlowTools, ...boilerplateTools,
    ...cCompilerBenchmarkTools,
];
const meta = createMetaTools(domain);
const base = [...domain, ...meta];
const discovery = createProgressiveDiscoveryTools(base);
const all = [...base, ...discovery];
const allNames = all.map(t => t.name);
const registryNames = new Set([...TOOL_REGISTRY.keys()]);
const missing = allNames.filter(n => !registryNames.has(n));
const extra = [...registryNames].filter(n => !allNames.includes(n));
console.log(`Actual tools: ${allNames.length}`);
console.log(`Registry entries: ${registryNames.size}`);
console.log(`\nMISSING from registry (${missing.length}):`);
missing.forEach(n => console.log(`  - ${n}`));
console.log(`\nExtra in registry, not actual tools (${extra.length}):`);
extra.forEach(n => console.log(`  - ${n}`));
// Also check search quality
import { hybridSearch } from "../tools/toolRegistry.js";
const toolDescs = all.map(t => ({ name: t.name, description: t.description }));
const queries = ["verify", "test", "search", "benchmark", "scaffold", "parallel", "security"];
console.log(`\n--- SEARCH QUALITY AUDIT ---`);
for (const q of queries) {
    const results = hybridSearch(q, toolDescs, { limit: 5 });
    console.log(`\nQuery: "${q}" → ${results.length} results`);
    results.forEach((r, i) => console.log(`  ${i + 1}. ${r.name} (score: ${r.score})`));
}
//# sourceMappingURL=audit-registry.js.map