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

Function resolveNativeBinding

apps/cli/src/cli.ts:525–530  ·  view source on GitHub ↗

* Resolve standalone better-sqlite3 native module path. * Used in non-Electron environments to avoid electron-rebuild conflicts.

()

Source from the content-addressed store, hash-verified

523 * Used in non-Electron environments to avoid electron-rebuild conflicts.
524 */
525function resolveNativeBinding(): string | undefined {
526 if (process.versions.electron) return undefined
527 const nativePath = resolveCliPath('native/better_sqlite3.node')
528 if (fs.existsSync(nativePath)) return nativePath
529 return undefined
530}
531
532function initRuntime() {
533 let config = loadConfig()

Callers 2

cli.tsFile · 0.70
initRuntimeFunction · 0.70

Calls 1

resolveCliPathFunction · 0.90

Tested by

no test coverage detected