chore(backlog): 记录 g326 完成

This commit is contained in:
HIsheR
2026-10-27 01:53:59 +08:00
parent 2f93dcb587
commit 8d154daa6a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -3324,7 +3324,7 @@
{
"id": "g326",
"domain": "tooling",
"status": "open",
"status": "done",
"title": "ua search 同义词回退:中文口语词不再搜不到组件",
"motivation": "库内 id 全是英文(modal / select / spinner),而人和 Agent 张口就是「走马灯」「悬浮按钮」「分格输入」。这类词在 id / 标题 / 参数名 / 参数说明 / 步骤五层与配方三层里都没有原文,search 只剩 editDistance ≤ 3 的英文近似——对中文完全无效,于是「没有这个组件」的错误结论被反复得出,实际 carousel / floatButton / pinInput 都在库里。",
"acceptance": "① 新增 lib/synonyms.mjs:中文口语词 → 组件 id 的一组映射,一词只许归一组;② ua search 在五层 + 配方三层全空时按表回退(多词取交集,交集空退并集),命中行标「← 同义词「走马灯」」、页脚注明「按同义词表回退」,正常命中路径零变化不掺水;③ MCP search_components 共用同一份 fallbackBySynonym,返回项 matched.field 为「同义词」,CLI 与 MCP 口径不漂移;④ ua verify 校验表内每个 id 真实存在、同一个词不归两组,组件改名后残留即门禁红;⑤ npm run check 全绿。",