fase(7): api server refactor with composition root

This commit is contained in:
debian
2026-03-05 09:36:28 -05:00
parent e746dc0497
commit f01acfe985
20 changed files with 861 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InMemoryFuzzSessionRepository = void 0;
/**
* InMemoryFuzzSessionRepository — temporary in-memory store used until Phase 8 adds SQLite persistence.
*/
class InMemoryFuzzSessionRepository {
constructor() {
this.store = new Map();
}
async save(session) {
this.store.set(session.id.toString(), session);
}
async findById(id) {
return this.store.get(id) ?? null;
}
async update(session) {
this.store.set(session.id.toString(), session);
}
}
exports.InMemoryFuzzSessionRepository = InMemoryFuzzSessionRepository;