From 15fbdf68790462b4600867d5b5a0a3f6accc440f Mon Sep 17 00:00:00 2001 From: Tom Boucher Date: Sun, 14 Jun 2026 14:52:25 -0400 Subject: [PATCH] chore(#1175): remove dead tool-name converters + fix unused-arg lint (#1234) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removes three unreferenced functions from bin/install.js: - convertCursorToolName (zero callers across src/, bin/, scripts/, tests/) - convertWindsurfToolName (zero callers across src/, bin/, scripts/, tests/) - convertAugmentToolName (zero callers across src/, bin/, scripts/, tests/) Dead code only — behavior-preserving. All three were superseded when the conversion logic moved to src/runtime-artifact-conversion.cts. lint and build both clean. Co-authored-by: Claude Opus 4.8 (1M context) --- bin/install.js | 51 -------------------------------------------------- 1 file changed, 51 deletions(-) diff --git a/bin/install.js b/bin/install.js index 1c8f93a8e..249df659c 100755 --- a/bin/install.js +++ b/bin/install.js @@ -2335,22 +2335,6 @@ const claudeToCursorTools = { SlashCommand: null, // No equivalent — skills are auto-discovered }; -/** - * Convert a Claude Code tool name to Cursor CLI format - * @returns {string|null} Cursor tool name, or null if tool should be excluded - */ -function convertCursorToolName(claudeTool) { - if (claudeTool in claudeToCursorTools) { - return claudeToCursorTools[claudeTool]; - } - // MCP tools keep their format (Cursor supports MCP) - if (claudeTool.startsWith('mcp__')) { - return claudeTool; - } - // Most tools share the same name (Read, Write, Glob, Grep, Task, WebSearch, WebFetch, TodoWrite) - return claudeTool; -} - function convertSlashCommandsToCursorSkillMentions(content) { // Keep leading "/" for slash commands; only normalize gsd: -> gsd-. // This preserves rendered "next step" commands like "/gsd-execute-phase 17". @@ -2477,22 +2461,6 @@ const claudeToWindsurfTools = { SlashCommand: null, // No equivalent — skills are auto-discovered }; -/** - * Convert a Claude Code tool name to Windsurf Cascade format - * @returns {string|null} Windsurf tool name, or null if tool should be excluded - */ -function convertWindsurfToolName(claudeTool) { - if (claudeTool in claudeToWindsurfTools) { - return claudeToWindsurfTools[claudeTool]; - } - // MCP tools keep their format (Windsurf supports MCP) - if (claudeTool.startsWith('mcp__')) { - return claudeTool; - } - // Most tools share the same name (Read, Write, Glob, Grep, Task, WebSearch, WebFetch, TodoWrite) - return claudeTool; -} - function convertSlashCommandsToWindsurfSkillMentions(content) { // Keep leading "/" for slash commands; only normalize gsd: -> gsd-. return content.replace(/gsd:/gi, 'gsd-'); @@ -2605,25 +2573,6 @@ const claudeToAugmentTools = { TodoWrite: 'add_tasks', }; -function convertAugmentToolName(claudeTool) { - if (claudeTool in claudeToAugmentTools) { - return claudeToAugmentTools[claudeTool]; - } - if (claudeTool.startsWith('mcp__')) { - return claudeTool; - } - const toolMapping = { - Read: 'view', - Write: 'save-file', - Glob: 'view', - Grep: 'grep', - Task: null, - WebSearch: 'web-search', - WebFetch: 'web-fetch', - }; - return toolMapping[claudeTool] || claudeTool; -} - function convertSlashCommandsToAugmentSkillMentions(content) { return content.replace(/gsd:/gi, 'gsd-'); }