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)), }, ],