Refactor context-hook to use execSync for fetching context and simplify output structure; migrate from bun:sqlite to better-sqlite3 in Database and migrations; update SearchRoutes to dynamically import context generator for improved context handling.

This commit is contained in:
Alex Newman
2025-12-07 17:23:30 -05:00
parent 85f30126aa
commit 9855ccf66d
7 changed files with 125 additions and 153 deletions
+1 -4
View File
@@ -1,9 +1,6 @@
import { Database as BunDatabase } from 'bun:sqlite';
import { Database } from 'better-sqlite3';
import { DATA_DIR, DB_PATH, ensureDir } from '../../shared/paths.js';
// Type alias for better-sqlite3 compatibility
type Database = BunDatabase;
export interface Migration {
version: number;
up: (db: Database) => void;