From b8332b99e40da14e8a9dfe06e821932cf8c046fc Mon Sep 17 00:00:00 2001 From: jeffyxu Date: Thu, 17 Sep 2026 12:17:34 +0800 Subject: [PATCH] fix(doctor): remove duplicate LocalConfig import breaking the build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit src/doctor.ts imported LocalConfig twice — once in the top type-only import (line 5) and once in the grouped import block from './types.js'. TypeScript rejected this with TS2300 (Duplicate identifier 'LocalConfig'), so `tsc --noEmit` failed and the main CI has been red since #599. The two imports landed cleanly as a merge (no textual conflict) but collided at the type level, so each PR's own branch build was green. Drop the LocalConfig binding from line 5 and keep it in the grouped block alongside TeamaiConfig, matching the surrounding style. --- src/doctor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doctor.ts b/src/doctor.ts index 559866df3..b2c640976 100644 --- a/src/doctor.ts +++ b/src/doctor.ts @@ -2,7 +2,7 @@ import path from 'node:path'; import { detectProjectConfig, loadLocalConfig, loadTeamConfig } from './config.js'; import { pathExists, readFileSafe } from './utils/fs.js'; import { log, setStderrOnly } from './utils/logger.js'; -import type { GlobalOptions, LocalConfig } from './types.js'; +import type { GlobalOptions } from './types.js'; import { COPILOT_TOOL_ID, TEAMAI_ENV_START,