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

Function resolveNativeBinding

apps/cli/src/http/routes/web/helpers.ts:20–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20export 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
27export function getAiDataDir(dbManager: DatabaseManager): string {
28 const pathProvider = (dbManager as any)['pathProvider']

Callers 1

registerImportRoutesFunction · 0.90

Calls 1

resolveCliPathFunction · 0.90

Tested by

no test coverage detected