refactor(FN-1633): migrate MessageStore from filesystem to SQLite backend
- Replace filesystem-based message storage with SQLite backend - Add MessageStore class using better-sqlite3 with WAL mode - Update message.ts CLI command to use new MessageStore API - Update dashboard routes and engine runtime for SQLite integration - Update all related tests for new storage implementation
This commit is contained in:
@@ -14707,8 +14707,8 @@ export function createApiRoutes(store: TaskStore, options?: ServerOptions): Rout
|
||||
const rootDir = scopedStore.getRootDir();
|
||||
let msgStore = messageStoreCache.get(rootDir);
|
||||
if (!msgStore) {
|
||||
msgStore = new MessageStore({ rootDir: join(rootDir, ".fusion") });
|
||||
await msgStore.init();
|
||||
const db = scopedStore.getDatabase();
|
||||
msgStore = new MessageStore(db);
|
||||
messageStoreCache.set(rootDir, msgStore);
|
||||
}
|
||||
return msgStore;
|
||||
|
||||
Reference in New Issue
Block a user