()
| 68 | } |
| 69 | |
| 70 | function 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 | |
| 77 | function ensureToken(config: ChatLabConfig): string { |
| 78 | if (config.api.token) return config.api.token |
no test coverage detected