()
| 15 | const nativeBinding = path.resolve('apps/cli/native/better_sqlite3.node') |
| 16 | |
| 17 | function makeTempDir(): string { |
| 18 | const baseDir = fs.existsSync('/private/tmp') ? '/private/tmp' : os.tmpdir() |
| 19 | return fs.mkdtempSync(path.join(baseDir, 'chatlab-cli-stream-import-')) |
| 20 | } |
| 21 | |
| 22 | function createPathProvider(root: string): PathProvider { |
| 23 | return { |