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

Function resolveNativeBinding

apps/cli/src/http/index.ts:70–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70function resolveNativeBinding(): string | undefined {
71 if (process.versions.electron) return undefined
72 const nativePath = resolveCliPath('native/better_sqlite3.node')
73 if (fs.existsSync(nativePath)) return nativePath
74 return undefined
75}
76
77function ensureToken(config: ChatLabConfig): string {
78 if (config.api.token) return config.api.token

Callers 1

startHttpServerFunction · 0.70

Calls 1

resolveCliPathFunction · 0.90

Tested by

no test coverage detected