import { isDeepStrictEqual } from "node:util"; import type { OpenClawConfig } from "../../../config/types.openclaw.js"; import { applyLegacyDoctorMigrations } from "./legacy-config-compat.js"; import { normalizeRuntimeCompatibilityConfigValues } from "./legacy-config-runtime-migrate.js";
export function applyRuntimeLegacyConfigMigrations(raw: unknown): {
next: Record<string, unknown> | null;
changes: string[];
} { if (!raw || typeof raw !== "object") { return { next: null, changes: [] };
}
const original = raw as Record<string, unknown>; const migrated = applyLegacyDoctorMigrations(original); const base = (migrated.next ?? original) as OpenClawConfig; const normalized = normalizeRuntimeCompatibilityConfigValues(base); const next = normalized.config as OpenClawConfig & Record<string, unknown>; const changes = [...migrated.changes, ...normalized.changes];
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.