(filePath)
| 20 | } |
| 21 | |
| 22 | function readJsonl(filePath) { |
| 23 | return fs.readFileSync(filePath, 'utf8') |
| 24 | .split(/\r?\n/) |
| 25 | .filter(Boolean) |
| 26 | .map(line => JSON.parse(line)); |
| 27 | } |
| 28 | |
| 29 | function withTempProject(run) { |
| 30 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-doc-sync-')); |