refactor: hide doctor migration internals

This commit is contained in:
Peter Steinberger
2026-05-02 08:19:24 +01:00
parent 3e15090c7e
commit 820761396d
3 changed files with 2 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ function deprecatedCompatRecord<Code extends string>(
// 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",

View File

@@ -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[];

View File

@@ -201,7 +201,7 @@ function listConfiguredModelProviderIds(config: OpenClawConfig): Set<string> {
);
}
export function listMigrationRelevantPluginRecords(params: {
function listMigrationRelevantPluginRecords(params: {
index: InstalledPluginIndex;
config: OpenClawConfig;
installRecords: Record<string, unknown>;