* Get all tracked file paths (lightweight — no full FileRecord objects)
()
| 5034 | * Get all tracked file paths (lightweight — no full FileRecord objects) |
| 5035 | */ |
| 5036 | getAllFilePaths(): string[] { |
| 5037 | if (!this.stmts.getAllFilePaths) { |
| 5038 | this.stmts.getAllFilePaths = this.db.prepare('SELECT path FROM files ORDER BY path'); |
| 5039 | } |
| 5040 | const rows = this.stmts.getAllFilePaths.all() as Array<{ path: string }>; |
| 5041 | return rows.map((r) => r.path); |
| 5042 | } |
| 5043 | |
| 5044 | /** |
| 5045 | * Get all distinct node names (lightweight — just name strings for pre-filtering) |