* Get all tracked file paths (lightweight — no full FileRecord objects)
()
| 4595 | * Get all tracked file paths (lightweight — no full FileRecord objects) |
| 4596 | */ |
| 4597 | getAllFilePaths(): string[] { |
| 4598 | if (!this.stmts.getAllFilePaths) { |
| 4599 | this.stmts.getAllFilePaths = this.db.prepare('SELECT path FROM files ORDER BY path'); |
| 4600 | } |
| 4601 | const rows = this.stmts.getAllFilePaths.all() as Array<{ path: string }>; |
| 4602 | return rows.map((r) => r.path); |
| 4603 | } |
| 4604 | |
| 4605 | /** |
| 4606 | * Get all distinct node names (lightweight — just name strings for pre-filtering) |