refactor: return complete tool results inline

This commit is contained in:
morluto
2026-09-29 07:08:46 +08:00
parent 2160d4fae5
commit 0d96275b68
535 changed files with 4084 additions and 13537 deletions
@@ -1,15 +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>>,
): Readonly<Record<string, string>> => {
const investigationRoots = environment.REA_INVESTIGATION_INPUT_ROOTS_JSON;
return investigationRoots === undefined
? {}
: { REA_INVESTIGATION_INPUT_ROOTS_JSON: investigationRoots };
};
/** Select exact non-secret settings published by available providers. */
export const providerRegistrationEnvironment = (
inspections: readonly DoctorProviderInspection[],