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
+7 -5
View File
@@ -7,11 +7,13 @@ import { parseSSHKey } from "../../utils/ssh-key-utils.js";
import { registerCredentialKeyRoutes } from "./credential-key-routes.js";
import { registerCredentialDeployRoutes } from "./credential-deploy-routes.js";
import { logAudit, getRequestMeta } from "../../utils/audit-logger.js";
import { createCurrentRbacAccessRepository } from "../repositories/current-rbac-access-repository.js";
import { createCurrentCredentialRepository } from "../repositories/current-credential-repository.js";
import { createCurrentHostResolutionRepository } from "../repositories/current-host-resolution-repository.js";
import { createCurrentHostRepository } from "../repositories/current-host-repository.js";
import { createCurrentUserRepository } from "../repositories/current-user-repository.js";
import {
createCurrentRbacAccessRepository,
createCurrentCredentialRepository,
createCurrentHostResolutionRepository,
createCurrentHostRepository,
createCurrentUserRepository,
} from "../repositories/factory.js";
const router = express.Router();