()
| 18 | import { assertCliDataDirCompatible } from './runtime-compat' |
| 19 | |
| 20 | 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 initMcpRuntime(): DatabaseManager { |
| 28 | const config = loadConfig() |
no test coverage detected