From d489a3d9c3e636df8376b9a3eedd0591d6c3b18d Mon Sep 17 00:00:00 2001 From: HIsheR Date: Mon, 26 Oct 2026 22:09:57 +0800 Subject: [PATCH] =?UTF-8?q?chore(backlog):=20=E8=AE=B0=E5=BD=95=20g252=20?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .ua/backlog.json | 9 +++++++++ .ua/iterations.log | 1 + 2 files changed, 10 insertions(+) diff --git a/.ua/backlog.json b/.ua/backlog.json index 2360d91..353a7ee 100644 --- a/.ua/backlog.json +++ b/.ua/backlog.json @@ -2654,6 +2654,15 @@ "status": "done", "domain": "tooling", "notes": "首版只扫 ui.css 把 highlight 误报为闲置(实际被 --ua-shadow-highlight 引用),补上 tokens.css 作为消费面后剩 3 个真闲置:surface-3 / text-secondary / font-size-xl;text-secondary 仍被 audit:contrast 配对表引用,故只报不删" + }, + { + "id": "g252", + "title": "MCP get_component 支持 format: md", + "motivation": "g246 给 CLI 加了 --md,但 Agent 侧主力入口是 MCP:get_component 仍只回一大坨 JSON,Agent 拿到要自己拼参数表才能贴给人看。", + "acceptance": "MCP get_component 入参增加 format 枚举 json|md(缺省 json 行为不变);md 时返回与 ua info --md 同款 Markdown 片段(标题 + 参数表 + 用法 + 示例 + 配方指路);字符串结果在 tools/call 层原样作为 text 返回(不再 JSON 转义);npm run check 全绿。", + "status": "done", + "domain": "tooling", + "notes": "实测 stdio 往返:text 字段直接是可读 Markdown;json 分支未变(老客户端无感)" } ] } diff --git a/.ua/iterations.log b/.ua/iterations.log index 666461c..1f9f542 100644 --- a/.ua/iterations.log +++ b/.ua/iterations.log @@ -296,3 +296,4 @@ {"ts": "2026-10-26T22:05:40+08:00", "id": "g249", "result": "done", "commit": "2c34870", "summary": "doctor 升到 11 项:usage↔dispatch 双向覆盖、check 链覆盖全部门禁步骤、CLI 清单声明命令都有实现;当场抓到 usage 漏 recipes 的真问题"} {"ts": "2026-10-26T22:07:53+08:00", "id": "g250", "result": "done", "commit": "b6229e2", "summary": "新增 ua audit:motion 动效兜底门禁(扫描 infinite 动画是否被 reduced-motion 关掉),当场补掉转圈与不确定态进度两处漏网,门禁链升到 11 步"} {"ts": "2026-10-26T22:08:59+08:00", "id": "g251", "result": "done", "commit": "4b57f11", "summary": "ua tokens 增加 --unused:按「皮肤样式表 + 令牌自身派生」算消费面,列出闲置令牌(当前 3 个:surface-3 / text-secondary / font-size-xl),只报不删"} +{"ts": "2026-10-26T22:09:57+08:00", "id": "g252", "result": "done", "commit": "80ffee5", "summary": "MCP get_component 增加 format:md,与 ua info --md 共用渲染;tools/call 对字符串结果原样返回,Agent 直接拿到可粘贴 Markdown"}