From b6c948998b9950ec9e065df55e0d83ed7f0089ac Mon Sep 17 00:00:00 2001 From: HIsheR Date: Fri, 23 Oct 2026 19:08:35 +0800 Subject: [PATCH] =?UTF-8?q?iter(g06):=20=E7=BB=84=E4=BB=B6=E6=95=B0?= =?UTF-8?q?=E9=97=A8=E7=A6=81=E8=A6=86=E7=9B=96=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .ua/backlog.json | 2 +- packages/tools/cli/bin/ua.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ua/backlog.json b/.ua/backlog.json index b4fb7dd..51276b4 100644 --- a/.ua/backlog.json +++ b/.ua/backlog.json @@ -410,7 +410,7 @@ "title": "组件数门禁扩展 README 计数文本", "motivation": "f01 的计数漂移校验只覆盖 AGENTS/ARCHITECTURE,README 的「N 个 DOM 组件」文本仍可漂移", "acceptance": "checkCountDocs 扫描列表加入 README.md,漂移即 verify 失败;npm run check 全绿", - "status": "open", + "status": "done", "notes": "自补:f01 收尾" } ] diff --git a/packages/tools/cli/bin/ua.js b/packages/tools/cli/bin/ua.js index 5224bca..83c63a1 100644 --- a/packages/tools/cli/bin/ua.js +++ b/packages/tools/cli/bin/ua.js @@ -610,7 +610,7 @@ function checkReadme(pkgs) { function checkCountDocs(actual) { const issues = []; const re = /(\d+)\s*个(?:\s*DOM\s*)?组件/; - for (const name of ['AGENTS.md', 'ARCHITECTURE.md']) { + for (const name of ['AGENTS.md', 'ARCHITECTURE.md', 'README.md']) { const file = path.join(ROOT, name); if (!fs.existsSync(file)) continue; // 卫语句:文档缺失不校验 fs.readFileSync(file, 'utf8').split(/\r?\n/).forEach((line, i) => {