iter(g149): 补 ua search 关键词检索
按 id / 标题 / props 名 / 步骤四档打分排序,支持 --json 结构化输出。 ua info 与 search 未命中时给出编辑距离 ≤3 的相近 id,拼错也能自己纠正。 usage 与 CLI 清单、README、AGENTS 的命令说明同步。
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
|
||||
可用工具:`list_components` / `get_component` / `search_components` / `get_tokens`(返回 --ua-* 令牌清单,避免硬编码颜色间距)/ `list_recipes` / `get_recipe`(取跨组件组合配方:骨架代码 + 要点 + 用到的组件 id,配好再逐个 `get_component` 查参数)。
|
||||
|
||||
2. **CLI**:`node packages/tools/cli/bin/ua.js list | info <name> | index | docs | style | verify | changelog`
|
||||
2. **CLI**:`node packages/tools/cli/bin/ua.js list | search <关键词> | info <name> | index | docs | style | verify | changelog`
|
||||
|
||||
3. **静态索引**:`.ua/index.json`(机器可读索引)、`llms.txt`(速览)或 **`llms-full.txt`(全量 Agent 文档:逐组件参数 / 回调 / 手把手步骤 / 令牌 / 组合配方,无图形纯文本,喂给 Agent 首选)**。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user