fix: align live test config migration compat · openclaw/openclaw@ac5af48
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -18,8 +18,7 @@ const LIVE_EXTERNAL_AUTH_FILES = [
|
18 | 18 | ] as const; |
19 | 19 | const requireFromHere = createRequire(import.meta.url); |
20 | 20 | |
21 | | -type LegacyConfigCompatApi = |
22 | | -typeof import("../src/commands/doctor/shared/legacy-config-migrate.js"); |
| 21 | +type LegacyConfigCompatApi = typeof import("../src/commands/doctor/shared/legacy-config-compat.js"); |
23 | 22 | type ConfigValidationApi = typeof import("../src/config/validation.js"); |
24 | 23 | |
25 | 24 | let cachedLegacyConfigCompatApi: LegacyConfigCompatApi | undefined; |
@@ -53,7 +52,7 @@ function restoreEnv(entries: RestoreEntry[]): void {
|
53 | 52 | |
54 | 53 | function loadLegacyConfigCompatApi(): LegacyConfigCompatApi { |
55 | 54 | cachedLegacyConfigCompatApi ??= requireFromHere( |
56 | | -"../src/commands/doctor/shared/legacy-config-migrate.js", |
| 55 | +"../src/commands/doctor/shared/legacy-config-compat.js", |
57 | 56 | ) as LegacyConfigCompatApi; |
58 | 57 | return cachedLegacyConfigCompatApi; |
59 | 58 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。