From cb838cb689ec47db79b1112acadd999f421d3028 Mon Sep 17 00:00:00 2001 From: siage Date: Fri, 16 May 2025 14:07:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=BB=E5=8B=99=E8=A6=8F?= =?UTF-8?q?=E5=8A=83=E7=9B=B8=E9=97=9C=E6=8F=90=E7=A4=BA=E8=A9=9E=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=9A=B4=E9=87=8D=E8=AD=A6=E5=91=8A=E4=BB=A5?= =?UTF-8?q?=E7=A6=81=E6=AD=A2=E5=81=87=E8=A8=AD=E3=80=81=E7=8C=9C=E6=B8=AC?= =?UTF-8?q?=E8=88=87=E5=B9=BB=E6=83=B3=EF=BC=8C=E5=BC=B7=E8=AA=BF=E5=BF=85?= =?UTF-8?q?=E9=A0=88=E4=BD=BF=E7=94=A8=E5=8F=AF=E7=94=A8=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E6=94=B6=E9=9B=86=E7=9C=9F=E5=AF=A6=E8=B3=87=E8=A8=8A=EF=BC=8C?= =?UTF-8?q?=E4=B8=A6=E8=AA=BF=E6=95=B4=E6=8F=8F=E8=BF=B0=E4=BB=A5=E6=9B=B4?= =?UTF-8?q?=E6=B8=85=E6=A5=9A=E8=A1=A8=E9=81=94=E4=BB=BB=E5=8B=99=E7=9B=AE?= =?UTF-8?q?=E6=A8=99=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/prompts/templates_en/planTask/index.md | 1 + src/prompts/templates_en/toolsDescription/planTask.md | 4 +++- src/prompts/templates_zh/planTask/index.md | 1 + src/prompts/templates_zh/toolsDescription/planTask.md | 2 +- src/tools/task/splitTasksRaw.ts | 6 ++---- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/prompts/templates_en/planTask/index.md b/src/prompts/templates_en/planTask/index.md index 044a9fd..802eed5 100644 --- a/src/prompts/templates_en/planTask/index.md +++ b/src/prompts/templates_en/planTask/index.md @@ -86,6 +86,7 @@ You must complete the following sub-steps in sequence, and at the end call the ` - Ensure the solution is consistent with the project's existing architectural patterns - Explain how to reuse existing components or follow existing patterns - The process must be thought through step by step and organize thoughts; if the problem is too complex, utilize `process_thought` to think + - **Critical Warning**: All forms of `assumptions`, `guesses`, and `imagination` are strictly prohibited. You must use every `available tool` at your disposal to `gather real information`. - Call tool: ``` analyze_task({ summary: , initialConcept: }) diff --git a/src/prompts/templates_en/toolsDescription/planTask.md b/src/prompts/templates_en/toolsDescription/planTask.md index cc5557b..3df3caa 100644 --- a/src/prompts/templates_en/toolsDescription/planTask.md +++ b/src/prompts/templates_en/toolsDescription/planTask.md @@ -1 +1,3 @@ -Initialize and plan task processes in detail, establish clear goals and success criteria, optionally reference existing tasks for continued planning +When you need to plan tasks or construct complex features, you can use this tool to receive task planning guidance. You are expected to strictly follow the step-by-step instructions provided by the tool when organizing your tasks. You may optionally choose to reference existing tasks for extended planning. + +**Critical Warning**: All forms of `assumptions`, `guesses`, and `imagination` are strictly prohibited. You must use every `available tool` at your disposal to `gather real information`. diff --git a/src/prompts/templates_zh/planTask/index.md b/src/prompts/templates_zh/planTask/index.md index c295bb2..5f1c6c3 100644 --- a/src/prompts/templates_zh/planTask/index.md +++ b/src/prompts/templates_zh/planTask/index.md @@ -86,6 +86,7 @@ - 確保方案與專案既有架構模式一致 - 說明如何重用現有組件或遵循現有模式 - 過程必須一步一步思考並梳理思緒,如果問題過於複雜可以利用`process_thought`來思考 + - **嚴重警告**:禁止一切`假設`與`猜測`與`幻想`,你必須透過一切你`可以使用的工具`來`收集資訊` - 呼叫工具: ``` analyze_task({ summary: <任務摘要>, initialConcept: <初步構想> }) diff --git a/src/prompts/templates_zh/toolsDescription/planTask.md b/src/prompts/templates_zh/toolsDescription/planTask.md index 223a621..a9e0802 100644 --- a/src/prompts/templates_zh/toolsDescription/planTask.md +++ b/src/prompts/templates_zh/toolsDescription/planTask.md @@ -1 +1 @@ -初始化並詳細規劃任務流程,建立明確的目標與成功標準,可選擇參考現有任務進行延續規劃 +當你需要規劃任務或處理複雜的功能建構時,可以使用該工具來取得任務規劃指導,你將依照工具反饋的指導內容嚴謹的按照步驟規劃任務,可選擇參考現有任務進行延續規劃,**嚴重警告**:禁止一切`假設`與`猜測`與`幻想`,你必須透過一切你`可以使用的工具`來`收集資訊` diff --git a/src/tools/task/splitTasksRaw.ts b/src/tools/task/splitTasksRaw.ts index f290390..8968d19 100644 --- a/src/tools/task/splitTasksRaw.ts +++ b/src/tools/task/splitTasksRaw.ts @@ -22,9 +22,7 @@ export const splitTasksRawSchema = z.object({ globalAnalysisResult: z .string() .optional() - .describe( - "全局分析結果:來自 reflect_task 的完整分析結果,適用於所有任務的通用部分" - ), + .describe("任務最終目標,來自之前分析適用於所有任務的通用部分"), }); const tasksSchema = z @@ -122,7 +120,7 @@ export async function splitTasksRaw({ { type: "text" as const, text: - "tasks 參數格式錯誤,請確保格式正確,錯誤訊息:" + + "tasksRaw 參數格式錯誤,請確保格式正確,請嘗試修正錯誤,如果文本太長無法順利修復請分批呼叫,這樣可以避免訊息過長導致不好修正問題,錯誤訊息:" + (error instanceof Error ? error.message : String(error)), }, ],