feat: complete REA remediation program

This commit is contained in:
N0zoM1z0
2026-07-22 22:09:12 +09:00
committed by N0zoM1z0
parent 737940c90c
commit d25e98c3f9
460 changed files with 13985 additions and 1877 deletions
@@ -1,3 +1,5 @@
import type { DoctorProviderInspection } from "./Doctor.js";
/** Select explicit non-secret permission settings safe for managed MCP registrations. */
export const registrationPermissionEnvironment = (
environment: Readonly<Record<string, string | undefined>>,
@@ -7,3 +9,16 @@ export const registrationPermissionEnvironment = (
? {}
: { REA_INVESTIGATION_INPUT_ROOTS_JSON: investigationRoots };
};
/** Select exact non-secret settings published by available providers. */
export const providerRegistrationEnvironment = (
inspections: readonly DoctorProviderInspection[],
): Readonly<Record<string, string>> =>
Object.fromEntries(
inspections
.filter(({ available }) => available)
.flatMap(({ registrationEnvironment }) =>
Object.entries(registrationEnvironment),
)
.sort(([left], [right]) => left.localeCompare(right)),
);