mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:20:43 +00:00
refactor: hide doctor migration internals
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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[];
|
||||
|
||||
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user