| 20 | } |
| 21 | |
| 22 | function createPathProvider(root: string): PathProvider { |
| 23 | return { |
| 24 | getSystemDir: () => root, |
| 25 | getUserDataDir: () => path.join(root, 'data'), |
| 26 | getDatabaseDir: () => path.join(root, 'data', 'databases'), |
| 27 | getVectorDir: () => path.join(root, 'data', 'vector'), |
| 28 | getAiDataDir: () => path.join(root, 'ai'), |
| 29 | getSettingsDir: () => path.join(root, 'settings'), |
| 30 | getCacheDir: () => path.join(root, 'cache'), |
| 31 | getTempDir: () => path.join(root, 'temp'), |
| 32 | getLogsDir: () => path.join(root, 'logs'), |
| 33 | getDownloadsDir: () => path.join(root, 'downloads'), |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | function writeIncrementalJsonl(filePath: string): void { |
| 38 | const rows = [ |