refactor(db): collapse repository rollout scaffolding into single factory

Repositories are now the only data path. Replaces the 41 current-*-repository
wrapper files, the DATABASE_LAYER_REPOSITORY_ROLLOUT flag/alias map and the
unused database/runtime adapter with repositories/factory.ts, a plain
DatabaseContext type and an in-memory TestSqliteDatabase test harness.
This commit is contained in:
LukeGus
2026-07-15 23:56:02 -05:00
parent 1e7c9ea53c
commit ef4969dd35
217 changed files with 843 additions and 4297 deletions
+1 -5
View File
@@ -97,10 +97,6 @@ import {
version: version,
});
const { logRepositoryRolloutConfig } =
await import("./database/repositories/repository-rollout.js");
logRepositoryRolloutConfig();
const systemCrypto = SystemCrypto.getInstance();
await systemCrypto.initializeJWTSecret();
await systemCrypto.initializeDatabaseKey();
@@ -160,7 +156,7 @@ import {
// Initialize log level from database settings
const { getCurrentSettingValue } =
await import("./database/repositories/current-settings-repository.js");
await import("./database/repositories/factory.js");
const logLevel = getCurrentSettingValue("log_level");
if (logLevel) {
setGlobalLogLevel(logLevel);