()
| 20 | const shouldRunRealLlmE2E = process.env.CHATLAB_RUN_REAL_LLM_CHART_E2E === '1' |
| 21 | |
| 22 | function 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 | |
| 28 | function unixTs(iso: string): number { |
| 29 | return Math.floor(Date.parse(iso) / 1000) |
no outgoing calls
no test coverage detected