From ee2d4e1f7923aec2a7cce4865dcd63d0af203d5c Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Wed, 17 Jun 2026 11:46:15 +0800 Subject: [PATCH] refactor(commands): hide doctor repair helper types --- src/commands/doctor-auth-flat-profiles.ts | 2 +- src/commands/doctor-auth-oauth-sidecar.ts | 3 +-- src/commands/doctor-auth-profile-config.ts | 2 +- src/commands/doctor-browser.ts | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/commands/doctor-auth-flat-profiles.ts b/src/commands/doctor-auth-flat-profiles.ts index 04e174c1eaa..ec66f01d668 100644 --- a/src/commands/doctor-auth-flat-profiles.ts +++ b/src/commands/doctor-auth-flat-profiles.ts @@ -73,7 +73,7 @@ type RawAuthProfileImportStore = { order?: Record; }; -export type LegacyFlatAuthProfileRepairResult = { +type LegacyFlatAuthProfileRepairResult = { detected: string[]; changes: string[]; configChanged?: boolean; diff --git a/src/commands/doctor-auth-oauth-sidecar.ts b/src/commands/doctor-auth-oauth-sidecar.ts index 2bbd1f3e844..8271c3a17c4 100644 --- a/src/commands/doctor-auth-oauth-sidecar.ts +++ b/src/commands/doctor-auth-oauth-sidecar.ts @@ -45,7 +45,7 @@ type LegacyOAuthUnreferencedSidecar = { sidecarPath: string; }; -export type LegacyOAuthSidecarRepairResult = { +type LegacyOAuthSidecarRepairResult = { detected: string[]; changes: string[]; warnings: string[]; @@ -334,4 +334,3 @@ export const testing = { buildLegacyOAuthSecretAad: legacyOAuthSidecarTestUtils.buildLegacyOAuthSecretAad, buildLegacyOAuthSecretKey: legacyOAuthSidecarTestUtils.buildLegacyOAuthSecretKey, }; -export { testing as __testing }; diff --git a/src/commands/doctor-auth-profile-config.ts b/src/commands/doctor-auth-profile-config.ts index a15cf4d6cb3..214d3dfcc06 100644 --- a/src/commands/doctor-auth-profile-config.ts +++ b/src/commands/doctor-auth-profile-config.ts @@ -16,7 +16,7 @@ const AUTH_PROFILE_MODES = new Set([ "token", ]); -export type AuthProfileConfigProtectionResult = { +type AuthProfileConfigProtectionResult = { config: OpenClawConfig; repairs: string[]; warnings: string[]; diff --git a/src/commands/doctor-browser.ts b/src/commands/doctor-browser.ts index 810b4493163..d98b37c3546 100644 --- a/src/commands/doctor-browser.ts +++ b/src/commands/doctor-browser.ts @@ -21,7 +21,7 @@ type BrowserDoctorDeps = { pathExists?: (targetPath: string) => boolean; }; -export type BrowserDoctorRepairDeps = { +type BrowserDoctorRepairDeps = { env?: NodeJS.ProcessEnv; configDir?: string; pathExists?: (targetPath: string) => boolean;