()
| 18 | } |
| 19 | |
| 20 | export function resolveNativeBinding(): string | undefined { |
| 21 | if (process.versions.electron) return undefined |
| 22 | const nativePath = resolveCliPath('native/better_sqlite3.node') |
| 23 | if (fs.existsSync(nativePath)) return nativePath |
| 24 | return undefined |
| 25 | } |
| 26 | |
| 27 | export function getAiDataDir(dbManager: DatabaseManager): string { |
| 28 | const pathProvider = (dbManager as any)['pathProvider'] |
no test coverage detected