refactor: hide doctor migration internals · openclaw/openclaw@8207613
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
File tree
src/commands/doctor/shared
| Original file line number | Diff line number | Diff line change |
|---|
@@ -56,7 +56,7 @@ function deprecatedCompatRecord<Code extends string>(
|
56 | 56 | // path they repair. Release removals must check this inventory before deleting |
57 | 57 | // doctor fixes, and replacement notes should be revalidated against the current |
58 | 58 | // architecture because ownership and config footprint can shift during rollout. |
59 | | -export const DOCTOR_DEPRECATION_COMPAT_RECORDS = [ |
| 59 | +const DOCTOR_DEPRECATION_COMPAT_RECORDS = [ |
60 | 60 | deprecatedCompatRecord({ |
61 | 61 | code: "doctor-agent-llm-timeout", |
62 | 62 | owner: "agent-runtime", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,8 +2,6 @@ import type { OpenClawConfig } from "../../../config/types.js";
|
2 | 2 | import { validateConfigObjectWithPlugins } from "../../../config/validation.js"; |
3 | 3 | import { applyLegacyDoctorMigrations } from "./legacy-config-compat.js"; |
4 | 4 | |
5 | | -export { applyLegacyDoctorMigrations } from "./legacy-config-compat.js"; |
6 | | - |
7 | 5 | export function migrateLegacyConfig(raw: unknown): { |
8 | 6 | config: OpenClawConfig | null; |
9 | 7 | changes: string[]; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -201,7 +201,7 @@ function listConfiguredModelProviderIds(config: OpenClawConfig): Set<string> {
|
201 | 201 | ); |
202 | 202 | } |
203 | 203 | |
204 | | -export function listMigrationRelevantPluginRecords(params: { |
| 204 | +function listMigrationRelevantPluginRecords(params: { |
205 | 205 | index: InstalledPluginIndex; |
206 | 206 | config: OpenClawConfig; |
207 | 207 | installRecords: Record<string, unknown>; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。