// tools/suggest-tooling/catalog-loader.ts — Dev lifecycle catalog loading
import { readFile } from 'node:fs/promises';
let catalogCache = null;
export async function loadCatalog() {
    /* v8 ignore next 3 -- cache hit path, depends on module-level state between test runs */
    if (catalogCache) {
        return catalogCache;
    }
    try {
        const configPath = new URL('../../config/dev-lifecycle-catalog.json', import.meta.url);
        const content = await readFile(configPath, 'utf-8');
        const raw = JSON.parse(content);
        // Remove _description key
        delete raw._description;
        catalogCache = raw;
        return catalogCache;
    }
    catch {
        return {};
    }
}
//# sourceMappingURL=catalog-loader.js.map