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) => {