From 38a3349e4f40cba975af7c19bb2c5fda105b0a91 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Fri, 15 May 2026 15:29:59 +0000 Subject: [PATCH] chore: refine pipeline stage logs --- app/main.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/main.js b/app/main.js index f7fc6ba..03cd644 100644 --- a/app/main.js +++ b/app/main.js @@ -76,7 +76,7 @@ async function main() { } ok(`Step2 完成: 新 findings 總計 ${newFindings.length} 筆`); - step('Step3', 'Findings 合併'); + step('Step3', 'Findings 合併與語意去重'); let repoDir; try { repoDir = cloneRepo(WORKSPACE); @@ -90,11 +90,9 @@ async function main() { const oldFindings = loadOldFindings(repoDir || WORKSPACE); const mergedFindings = mergeFindings(oldFindings, newFindings); ok(`Step3 merged findings total=${mergedFindings.length}`); - - step('Step3b', 'AI 語意去重'); const deduped = await deduplicateWithAI(mergedFindings); const sorted = sortByLevel(deduped); - ok(`Step3b dedup findings total=${sorted.length} (critical=${sorted.filter(f=>f.level==='critical').length} warning=${sorted.filter(f=>f.level==='warning').length} info=${sorted.filter(f=>f.level==='info').length})`); + ok(`Step3 去重完成: ${mergedFindings.length} -> ${sorted.length} 筆 (critical=${sorted.filter(f=>f.level==='critical').length} warning=${sorted.filter(f=>f.level==='warning').length} info=${sorted.filter(f=>f.level==='info').length})`); step('Step4', 'AI 排除問題過濾'); const exclusions = loadExclusions(repoDir || WORKSPACE, repoState);