refactor(commands): remove compatibility barrels · openclaw/openclaw@5f42a93
vincentkoc
·
2026-06-18
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,7 @@ vi.mock("../plugins/providers.runtime.js", () => ({
|
24 | 24 | resolvePluginProviders, |
25 | 25 | })); |
26 | 26 | |
27 | | -import { resolvePreferredProviderForAuthChoice } from "./auth-choice.preferred-provider.js"; |
| 27 | +import { resolvePreferredProviderForAuthChoice } from "../plugins/provider-auth-choice-preference.js"; |
28 | 28 | |
29 | 29 | describe("resolvePreferredProviderForAuthChoice", () => { |
30 | 30 | beforeEach(() => { |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | // Public auth-choice barrel used by onboarding and agent setup commands. |
2 | 2 | export { applyAuthChoice } from "./auth-choice.apply.js"; |
3 | 3 | export { warnIfModelConfigLooksOff } from "./auth-choice.model-check.js"; |
4 | | -export { resolvePreferredProviderForAuthChoice } from "./auth-choice.preferred-provider.js"; |
| 4 | +export { resolvePreferredProviderForAuthChoice } from "../plugins/provider-auth-choice-preference.js"; |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,7 +11,7 @@ import {
|
11 | 11 | noteOpencodeProviderOverrides, |
12 | 12 | } from "./doctor-config-analysis.js"; |
13 | 13 | import { runDoctorConfigPreflight } from "./doctor-config-preflight.js"; |
14 | | -import { normalizeCompatibilityConfigValues } from "./doctor-legacy-config.js"; |
| 14 | +import { normalizeCompatibilityConfigValues } from "./doctor/shared/legacy-config-core-migrate.js"; |
15 | 15 | import type { DoctorOptions, DoctorPrompter } from "./doctor-prompter.js"; |
16 | 16 | import { emitDoctorNotes, sanitizeDoctorNote } from "./doctor/emit-notes.js"; |
17 | 17 | import { finalizeDoctorConfigFlow } from "./doctor/finalize-config-flow.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,7 @@ import os from "node:os";
|
4 | 4 | import path from "node:path"; |
5 | 5 | import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; |
6 | 6 | import type { OpenClawConfig } from "../config/config.js"; |
7 | | -import { normalizeCompatibilityConfigValues } from "./doctor-legacy-config.js"; |
| 7 | +import { normalizeCompatibilityConfigValues } from "./doctor/shared/legacy-config-core-migrate.js"; |
8 | 8 | |
9 | 9 | vi.mock("../plugins/setup-registry.js", () => ({ |
10 | 10 | resolvePluginSetupCliBackend: () => undefined, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -162,7 +162,7 @@ vi.mock("../onboard-helpers.js", () => ({
|
162 | 162 | openUrl: mocks.openUrl, |
163 | 163 | })); |
164 | 164 | |
165 | | -vi.mock("../oauth-env.js", () => ({ |
| 165 | +vi.mock("../../infra/remote-env.js", () => ({ |
166 | 166 | isRemoteEnvironment: mocks.isRemoteEnvironment, |
167 | 167 | })); |
168 | 168 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -66,7 +66,7 @@ import { createClackPrompter } from "../../wizard/clack-prompter.js";
|
66 | 66 | import { validateAnthropicSetupToken } from "../auth-token.js"; |
67 | 67 | import { repairCodexRuntimePluginInstallForModelSelection } from "../codex-runtime-plugin-install.js"; |
68 | 68 | import { repairCopilotRuntimePluginInstallForModelSelection } from "../copilot-runtime-plugin-install.js"; |
69 | | -import { isRemoteEnvironment } from "../oauth-env.js"; |
| 69 | +import { isRemoteEnvironment } from "../../infra/remote-env.js"; |
70 | 70 | import { loadValidConfigOrThrow, resolveKnownAgentId, updateConfig } from "./shared.js"; |
71 | 71 | |
72 | 72 | type UpsertAuthProfileParams = Parameters<typeof upsertAuthProfileWithLock>[0]; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。