()
| 25 | const nativeBinding = path.resolve('apps/cli/native/better_sqlite3.node') |
| 26 | |
| 27 | function makeTempDir(): string { |
| 28 | const baseDir = fs.existsSync('/private/tmp') ? '/private/tmp' : os.tmpdir() |
| 29 | return fs.mkdtempSync(path.join(baseDir, 'chatlab-session-cache-')) |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Create an in-memory (or temp-file) chat DB with schema and one member so |