iter(g25): 新增 ua tokens 命令与 MCP get_tokens 工具
This commit is contained in:
+7
-6
@@ -1,6 +1,6 @@
|
||||
# @ui-arch 组件库 Agent 文档(无图形版)
|
||||
|
||||
> 自动生成于 2026-10-26T03:33:14.774Z,数据源:各包 ua.manifest.json,勿手改。人类版文档站:apps/docs/index.html。
|
||||
> 自动生成于 2026-10-26T03:34:43.829Z,数据源:各包 ua.manifest.json,勿手改。人类版文档站:apps/docs/index.html。
|
||||
> 组件 = 普通函数,传 props 返回 DOM;状态用 signal 双向绑定:读 signal() 写 signal(v)。
|
||||
|
||||
## 快速上手
|
||||
@@ -42,9 +42,10 @@
|
||||
|
||||
1. 装好依赖后先跑 npm run check 确认基线全绿(build → style → typecheck → smoke → index → verify)
|
||||
2. 查组件:ua list 看全量,ua info <包名> 看单包 api 与约定
|
||||
3. 改完清单跑 npm run docs:同时刷新人类文档站与 llms-full.txt(Agent 首选喂料)
|
||||
4. 提交前 npm run check:style 查注释规范,verify 查清单 ↔ 文档 ↔ 演示锚点是否一致
|
||||
5. 在 ~/.workbuddy/mcp.json 注册 ua mcp 后,Agent 可直接调 list_components / get_component / search_components
|
||||
3. 查令牌:ua tokens 打印全部 --ua-* 变量(颜色带暗色值),--json 输出结构化数组;写样式前先查,禁止硬编码
|
||||
4. 改完清单跑 npm run docs:同时刷新人类文档站与 llms-full.txt(Agent 首选喂料)
|
||||
5. 在 ~/.workbuddy/mcp.json 注册 ua mcp 后,Agent 可直接调 list_components / get_component / search_components / get_tokens
|
||||
6. 在 ~/.workbuddy/mcp.json 注册 ua mcp 后,Agent 可直接调 list_components / get_component / search_components
|
||||
|
||||
## @ui-arch/ui(skin-dom)v0.1.0
|
||||
|
||||
@@ -1177,7 +1178,7 @@ API 速览:
|
||||
一行用法:
|
||||
|
||||
```
|
||||
node packages/tools/cli/bin/ua.js <index|list|info <name>|docs|style|verify|commit-lint|mcp>;仓库内等价于 npm run index / docs / style / verify
|
||||
node packages/tools/cli/bin/ua.js <index|list|info <name>|docs|tokens|style|verify|commit-lint|mcp>;仓库内等价于 npm run index / docs / style / verify
|
||||
```
|
||||
|
||||
约定:
|
||||
@@ -1193,7 +1194,7 @@ node packages/tools/cli/bin/ua.js <index|list|info <name>|docs|style|verify|comm
|
||||
- --ua-color-bg: #ffffff(暗色 #101216)
|
||||
- --ua-color-surface: #f6f7f9(暗色 #1a1c22)
|
||||
- --ua-color-text: #1c1e21(暗色 #e7e9ec)
|
||||
- --ua-color-textMuted: #6b7280(暗色 #888780)
|
||||
- --ua-color-text-muted: #6b7280(暗色 #888780)
|
||||
- --ua-color-accent: #185fa5(暗色 #378add)
|
||||
- --ua-color-danger: #a32d2d
|
||||
- --ua-color-success: #0f6e56
|
||||
|
||||
Reference in New Issue
Block a user