feat: add dev db health contract

This commit is contained in:
HWLAB Code Queue
2026-05-21 17:53:36 +00:00
parent 36bf2c42ed
commit 1a2efd4915
27 changed files with 928 additions and 265 deletions
+3 -8
View File
@@ -13,6 +13,7 @@ import {
createAuditRecord,
deriveActorFromMeta
} from "../audit/index.mjs";
import { buildDbHealthContract } from "./db-contract.mjs";
export const SUPPORTED_RPC_METHODS = Object.freeze([
"system.health",
@@ -181,10 +182,7 @@ function handleSystemHealth() {
status: "ok",
serviceId: CLOUD_API_SERVICE_ID,
environment: ENVIRONMENT_DEV,
db: {
connected: false,
mode: "not_configured"
}
db: buildDbHealthContract()
};
}
@@ -195,10 +193,7 @@ function handleAdapterDescribe() {
restEndpoint: "POST /v1/rpc/{method}",
methods: SUPPORTED_RPC_METHODS,
auditFields: AUDIT_FIELD_NAMES,
db: {
connected: false,
mode: "migration_skeleton_only"
}
db: buildDbHealthContract()
};
}