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

Function resolveNativeBinding

tests/e2e/smoke/chart-runtime.smoke.test.js:126–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124}
125
126function resolveNativeBinding() {
127 if (process.env.CHATLAB_TEST_SQLITE_NATIVE_BINDING) {
128 return process.env.CHATLAB_TEST_SQLITE_NATIVE_BINDING
129 }
130 const repoNativeBinding = path.resolve('apps/cli/native/better_sqlite3.node')
131 return fs.existsSync(repoNativeBinding) ? repoNativeBinding : undefined
132}
133
134function unixTs(iso) {
135 return Math.floor(Date.parse(iso) / 1000)

Callers 2

seedChatSessionDbFunction · 0.70
seedAiConversationDbFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected