// tools/tool-usage-report/registered-tools.ts — SPEC-574
// Reads all tool names registered in license-plans.json (freeTools + proTools + alwaysAllowed).
import { readFileSync } from 'node:fs';
import { fileURLToPath } from 'node:url';
import { dirname, join } from 'node:path';
function loadLicensePlans() {
    const __filename = fileURLToPath(import.meta.url);
    const __dirname = dirname(__filename);
    const configPath = join(__dirname, '../../config/license-plans.json');
    const raw = readFileSync(configPath, 'utf-8');
    return JSON.parse(raw);
}
/**
 * Returns a deduplicated list of all tool names registered in license-plans.json.
 */
export function readRegisteredToolNames() {
    const plans = loadLicensePlans();
    const allTools = new Set([...plans.freeTools, ...plans.proTools, ...plans.alwaysAllowed]);
    return Promise.resolve([...allTools].sort());
}
//# sourceMappingURL=registered-tools.js.map