feat(core): 使用模板系统重构 plan 工具并完善 build agent 配置

- enter_plan_mode/exit_plan_mode 改用 loadDescription 加载描述
- 新增 plan 工具描述文件支持模板变量
- build agent 添加完整的工具启用列表和权限配置
- build agent 启用 promptTemplate 动态模板渲染
This commit is contained in:
2025-12-17 11:52:52 +08:00
parent 8a04ad64c3
commit 48b458bb9a
6 changed files with 292 additions and 49 deletions
@@ -42,6 +42,8 @@ const TOOL_CATEGORY_MAP: Record<string, string> = {
todo_write: 'todo',
// plan
ask_user_question: 'plan',
enter_plan_mode: 'plan',
exit_plan_mode: 'plan',
// task
task: 'task',
agent_output: 'task',