()
| 30 | } |
| 31 | |
| 32 | export async function getAllToolkits(): Promise<Toolkit[]> { |
| 33 | if (cached) return cached.list; |
| 34 | const data = await readFile(TOOLKITS_PATH, 'utf-8'); |
| 35 | return buildCache(parse(data)).list; |
| 36 | } |
| 37 | |
| 38 | export async function getToolkitBySlug(slug: string): Promise<Toolkit | null> { |
| 39 | if (cached) return cached.bySlug.get(slug) ?? null; |
no test coverage detected
searching dependent graphs…