From ba69cd756f2c88c71fd9ff81491ec48881821675 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Fri, 24 Jan 2025 01:32:48 -0500 Subject: [PATCH] Cleanup --- src/core/prompts/tools/index.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/core/prompts/tools/index.ts b/src/core/prompts/tools/index.ts index 7bf32d0..ebff65d 100644 --- a/src/core/prompts/tools/index.ts +++ b/src/core/prompts/tools/index.ts @@ -65,21 +65,11 @@ export function getToolDescriptionsForMode( } }) - // Filter out apply_diff if diffStrategy is not provided - if (!diffStrategy) { - tools.delete("apply_diff") - } - // Add always available tools ALWAYS_AVAILABLE_TOOLS.forEach((tool) => tools.add(tool)) // Map tool descriptions for allowed tools const descriptions = Array.from(tools).map((toolName) => { - // Skip apply_diff tool description if diffStrategy is not provided - if (toolName === "apply_diff" && !diffStrategy) { - return undefined - } - const descriptionFn = toolDescriptionMap[toolName] if (!descriptionFn) { return undefined