MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / resolveNativeBinding

Function resolveNativeBinding

tests/chart-runtime/real-llm-chart-flow.e2e.test.ts:22–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20const shouldRunRealLlmE2E = process.env.CHATLAB_RUN_REAL_LLM_CHART_E2E === '1'
21
22function resolveNativeBinding(): string | undefined {
23 if (process.env.CHATLAB_TEST_SQLITE_NATIVE_BINDING) return process.env.CHATLAB_TEST_SQLITE_NATIVE_BINDING
24 const repoNativeBinding = path.resolve('apps/cli/native/better_sqlite3.node')
25 return existsSync(repoNativeBinding) ? repoNativeBinding : undefined
26}
27
28function unixTs(iso: string): number {
29 return Math.floor(Date.parse(iso) / 1000)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected