(root: string)
| 19 | } |
| 20 | |
| 21 | async function allowedPatternIds(root: string): Promise<Set<string>> { |
| 22 | const registry = await loadRegistry(root); |
| 23 | if (registry) return new Set(registry.patterns.map((p) => p.id)); |
| 24 | return new Set(await listPatternDocs(root)); |
| 25 | } |
| 26 | |
| 27 | export async function fileExists(p: string): Promise<boolean> { |
| 28 | try { |
no test coverage detected