feat(core): 使用模板系统重构 task 工具描述

- 创建 task.txt 模板文件,包含完整的工具描述
- 添加 AGENT_TYPE_REGISTRY_STRING 变量支持动态 Agent 列表
- 添加 agentOutput 工具名称映射
- 更新 task.ts 使用模板渲染,保留回退逻辑
This commit is contained in:
2025-12-17 10:50:33 +08:00
parent cfb2175916
commit c5b92e740c
5 changed files with 109 additions and 13 deletions
@@ -42,6 +42,9 @@ const TOOL_CATEGORY_MAP: Record<string, string> = {
todo_write: 'todo',
// plan
ask_user_question: 'plan',
// task
task: 'task',
agent_output: 'task',
};
export function loadDescription(toolName: string): string {