feat(core): 更新工具描述支持动态模板变量

- grep.txt: 使用 ${GREP_TOOL_NAME}、${BASH_TOOL_NAME}、${TASK_TOOL_NAME} 变量
- ask_user_question: 将 description 移至独立 txt 文件
- load_description.ts: 添加 ask_user_question -> plan 分类映射
This commit is contained in:
2025-12-16 16:26:27 +08:00
parent 1d380d0bcb
commit 7706af2c79
4 changed files with 23 additions and 42 deletions
@@ -40,6 +40,8 @@ const TOOL_CATEGORY_MAP: Record<string, string> = {
// todo
todo_read: 'todo',
todo_write: 'todo',
// plan
ask_user_question: 'plan',
};
export function loadDescription(toolName: string): string {