(filePath?: string)
| 63 | // ── Load & Validate ────────────────────────────────────────────────── |
| 64 | |
| 65 | export function loadSpecConfig(filePath?: string) { |
| 66 | const currentDir = dirname(fileURLToPath(import.meta.url)); |
| 67 | const yamlPath = filePath ? resolve(filePath) : resolve(currentDir, './spec-config.yaml'); |
| 68 | const raw = parse(readFileSync(yamlPath, 'utf-8')); |
| 69 | return ConfigSchema.parse(raw); |
| 70 | } |
| 71 | |
| 72 | // ── Lazy singleton ─────────────────────────────────────────────────── |
| 73 | // Config is loaded on first access, not at module evaluation time. |
no outgoing calls
no test coverage detected
searching dependent graphs…