// engine/security-analyzer/config-loader.ts — Config loader for security patterns
// SPEC-029: loads and caches security-patterns.json
import { readFile } from 'node:fs/promises';
let patternsCache = null;
export async function loadSecurityPatterns() {
    if (patternsCache) {
        return patternsCache;
    }
    const configPath = new URL('../../config/security-patterns.json', import.meta.url);
    const content = await readFile(configPath, 'utf-8');
    patternsCache = JSON.parse(content);
    return patternsCache;
}
//# sourceMappingURL=config-loader.js.map