From 2704c30131a36ebc94515cae81c5ab2014d19ffc Mon Sep 17 00:00:00 2001 From: tsingliu <410869548@qq.com> Date: Sun, 8 Feb 2026 14:39:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8F=82=E6=95=B0=E5=8F=96?= =?UTF-8?q?=E5=80=BC=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 6a36abc..410d97a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -113,7 +113,11 @@ async function runSetup(options: any = {}) { // Load both to show current effective values as defaults const globalConfig = loadJsonConfig(GLOBAL_CONFIG_FILE); const localConfig = loadJsonConfig(LOCAL_CONFIG_FILE); - const currentConfig = { ...globalConfig, ...localConfig }; + // If setting up Global (default), prioritize Global values for display, falling back to Local. + // If setting up Project, prioritize Project values (standard effective config). + const currentConfig = isProject + ? { ...globalConfig, ...localConfig } + : { ...localConfig, ...globalConfig }; function maskSecret(secret?: string): string { if (!secret || secret.length < 8) return '******';