MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / resolveNativeBinding

Function resolveNativeBinding

apps/cli/src/mcp.ts:20–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

initMcpRuntimeFunction · 0.70

Calls 1

resolveCliPathFunction · 0.90

Tested by

no test coverage detected