MCPcopy
hub / github.com/google-labs-code/design.md / loadSpecConfig

Function loadSpecConfig

packages/cli/src/linter/spec-config.ts:65–70  ·  view source on GitHub ↗
(filePath?: string)

Source from the content-addressed store, hash-verified

63// ── Load & Validate ──────────────────────────────────────────────────
64
65export 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.

Callers 2

getSpecConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…