| 15 | } |
| 16 | |
| 17 | function createPathProvider(root: string): PathProvider { |
| 18 | return { |
| 19 | getSystemDir: () => root, |
| 20 | getUserDataDir: () => path.join(root, 'data'), |
| 21 | getDatabaseDir: () => path.join(root, 'data', 'databases'), |
| 22 | getVectorDir: () => path.join(root, 'data', 'vector'), |
| 23 | getAiDataDir: () => path.join(root, 'ai'), |
| 24 | getSettingsDir: () => path.join(root, 'settings'), |
| 25 | getCacheDir: () => path.join(root, 'cache'), |
| 26 | getTempDir: () => path.join(root, 'temp'), |
| 27 | getLogsDir: () => path.join(root, 'logs'), |
| 28 | getDownloadsDir: () => path.join(root, 'downloads'), |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | test('DirectImporter.sessionExists preserves session DBs when compatibility gate blocks access', () => { |
| 33 | const root = makeTempDir() |