From 820761396da0930025174b6b6dd86892b1fc1733 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 2 May 2026 08:19:24 +0100 Subject: [PATCH] refactor: hide doctor migration internals --- src/commands/doctor/shared/deprecation-compat.ts | 2 +- src/commands/doctor/shared/legacy-config-migrate.ts | 2 -- src/commands/doctor/shared/plugin-registry-migration.ts | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/commands/doctor/shared/deprecation-compat.ts b/src/commands/doctor/shared/deprecation-compat.ts index f5953907aeb..81ba7879306 100644 --- a/src/commands/doctor/shared/deprecation-compat.ts +++ b/src/commands/doctor/shared/deprecation-compat.ts @@ -56,7 +56,7 @@ function deprecatedCompatRecord( // path they repair. Release removals must check this inventory before deleting // doctor fixes, and replacement notes should be revalidated against the current // architecture because ownership and config footprint can shift during rollout. -export const DOCTOR_DEPRECATION_COMPAT_RECORDS = [ +const DOCTOR_DEPRECATION_COMPAT_RECORDS = [ deprecatedCompatRecord({ code: "doctor-agent-llm-timeout", owner: "agent-runtime", diff --git a/src/commands/doctor/shared/legacy-config-migrate.ts b/src/commands/doctor/shared/legacy-config-migrate.ts index 6dd64fea90c..e1707269b51 100644 --- a/src/commands/doctor/shared/legacy-config-migrate.ts +++ b/src/commands/doctor/shared/legacy-config-migrate.ts @@ -2,8 +2,6 @@ import type { OpenClawConfig } from "../../../config/types.js"; import { validateConfigObjectWithPlugins } from "../../../config/validation.js"; import { applyLegacyDoctorMigrations } from "./legacy-config-compat.js"; -export { applyLegacyDoctorMigrations } from "./legacy-config-compat.js"; - export function migrateLegacyConfig(raw: unknown): { config: OpenClawConfig | null; changes: string[]; diff --git a/src/commands/doctor/shared/plugin-registry-migration.ts b/src/commands/doctor/shared/plugin-registry-migration.ts index 6da27228335..a95ede461ba 100644 --- a/src/commands/doctor/shared/plugin-registry-migration.ts +++ b/src/commands/doctor/shared/plugin-registry-migration.ts @@ -201,7 +201,7 @@ function listConfiguredModelProviderIds(config: OpenClawConfig): Set { ); } -export function listMigrationRelevantPluginRecords(params: { +function listMigrationRelevantPluginRecords(params: { index: InstalledPluginIndex; config: OpenClawConfig; installRecords: Record;