()
| 363 | class SetupCancelledError extends Error {} |
| 364 | |
| 365 | function checkSqliteNative(): string { |
| 366 | try { |
| 367 | const Database = require("better-sqlite3") as typeof import("better-sqlite3"); |
| 368 | const db = new Database(":memory:"); |
| 369 | db.close(); |
| 370 | return "ok"; |
| 371 | } catch (error) { |
| 372 | return error instanceof Error ? error.message : String(error); |
| 373 | } |
| 374 | } |
| 375 | |
| 376 | function checkGitAvailable(): string { |
| 377 | try { |