iter(g155): llms.txt 补配方目录
速览末尾输出 9 条配方的 id / 标题 / 要点数与三种取法,Agent 不必先猜。 顺带修正 cli 清单里只写了 3 个 MCP 工具的过期描述。
This commit is contained in:
@@ -101,6 +101,13 @@ function cmdIndex() {
|
||||
for (const c of p.conventions ?? []) lines.push(`- 约定: ${c}`);
|
||||
lines.push('');
|
||||
}
|
||||
const recipes = parseRecipes(); // 速览也要给出配方目录:Agent 读 llms.txt 时才知道有跨组件拼装可查
|
||||
if (recipes.length) {
|
||||
lines.push('## 组合配方(跨组件拼装)', '');
|
||||
lines.push('> 全文见 `packages/tools/cli/recipes.md` 或 llms-full.txt;MCP 用 `list_recipes` / `get_recipe` 取骨架与要点。', '');
|
||||
for (const r of recipes) lines.push(`- 配方 ${r.id}:${r.title}(${r.notes.length} 条要点)`);
|
||||
lines.push('');
|
||||
}
|
||||
writeIfChanged(LLMS_FILE, lines.join('\n'));
|
||||
console.log(`indexed ${packages.length} package(s) -> .ua/index.json, llms.txt${changed ? '' : ' (unchanged, skip)'}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user