(root: string)
| 31 | * note. Parallelized with `Promise.all` so a 500-note vault is IO-bound, |
| 32 | * not sequentially latent. */ |
| 33 | export async function scanAllTasks(root: string): Promise<VaultTask[]> { |
| 34 | const metas = (await listNotes(root)).filter((m) => includesFolder(m.folder)) |
| 35 | const batches = await Promise.all(metas.map((m) => readOne(root, m))) |
| 36 | const out: VaultTask[] = [] |
| 37 | for (const b of batches) out.push(...b) |
| 38 | return out |
| 39 | } |
| 40 | |
| 41 | const LIVE_FOLDERS = new Set<NoteFolder>(['inbox', 'quick', 'archive']) |
| 42 |
no test coverage detected