iter: d06 新增 ua verify 门禁(清单/文档/演示锚点一致性)

This commit is contained in:
ui-arch-bot
2026-10-23 16:50:49 +08:00
parent 60c052439f
commit 582318adf1
8 changed files with 76 additions and 13 deletions
+2 -2
View File
@@ -27,7 +27,7 @@
- `apps/demo`(@ui-arch/demo):交互演示,产物 apps/demo/dist/demo.html
- `apps/docs`:文档站,纯产物(ua docs 生成)
**门禁一条龙**:`npm run check` = style + typecheck + smoke + index,提交前必过。
**门禁一条龙**:`npm run check` = build + style + typecheck + smoke + index + verify,提交前必过。`ua verify` 校验清单 ↔ 文档 ↔ 演示锚点一致(docs.components 的 id 必须在 api.exports 有对应条目、props 必须带 n/t/d、demo 锚点必须在 `apps/demo/main.ts` 中存在)。
## Agent 查询组件库的三种方式
@@ -46,7 +46,7 @@
可用工具:`list_components` / `get_component` / `search_components`。
2. **CLI**:`node packages/tools/cli/bin/ua.js list | info <name> | index`
2. **CLI**:`node packages/tools/cli/bin/ua.js list | info <name> | index | docs | style | verify`
3. **静态索引**:`.ua/index.json`(机器可读索引)、`llms.txt`(速览)或 **`llms-full.txt`(全量 Agent 文档:逐组件参数 / 回调 / 手把手步骤 / 令牌,无图形纯文本,喂给 Agent 首选)**。