use standard tool mappings for windsurf

This commit is contained in:
Joe Danziger
2025-05-27 13:25:56 -04:00
parent 8d0fea2d99
commit ba18ccbcab
3 changed files with 10 additions and 10 deletions

View File

@@ -13,7 +13,7 @@ const windsurfProfile = createProfile({
mcpConfigName: 'mcp.json', mcpConfigName: 'mcp.json',
fileExtension: '.mdc', fileExtension: '.mdc',
targetExtension: '.md', targetExtension: '.md',
toolMappings: COMMON_TOOL_MAPPINGS.ROO_STYLE // Windsurf uses transformed tool names toolMappings: COMMON_TOOL_MAPPINGS.STANDARD // Windsurf uses standard tool names
}); });
// Export all the standard profile properties // Export all the standard profile properties

View File

@@ -26,10 +26,10 @@ describe('Windsurf Profile Initialization Functionality', () => {
expect(windsurfProfileContent).toContain("targetExtension: '.md'"); expect(windsurfProfileContent).toContain("targetExtension: '.md'");
}); });
test('windsurf.js uses transformed tool mappings', () => { test('windsurf.js uses standard tool mappings', () => {
expect(windsurfProfileContent).toContain('COMMON_TOOL_MAPPINGS.ROO_STYLE'); expect(windsurfProfileContent).toContain('COMMON_TOOL_MAPPINGS.STANDARD');
// Should contain comment about transformed tool names // Should contain comment about standard tool names
expect(windsurfProfileContent).toContain('transformed tool names'); expect(windsurfProfileContent).toContain('standard tool names');
}); });
test('windsurf.js contains correct URL configuration', () => { test('windsurf.js contains correct URL configuration', () => {

View File

@@ -77,11 +77,11 @@ alwaysApply: true
// Read the converted file // Read the converted file
const convertedContent = fs.readFileSync(testWindsurfRule, 'utf8'); const convertedContent = fs.readFileSync(testWindsurfRule, 'utf8');
// Verify transformations // Verify transformations (Windsurf uses standard tool names, so no transformation)
expect(convertedContent).toContain('search_files tool'); expect(convertedContent).toContain('search tool');
expect(convertedContent).toContain('apply_diff tool'); expect(convertedContent).toContain('edit_file tool');
expect(convertedContent).toContain('execute_command'); expect(convertedContent).toContain('run_command');
expect(convertedContent).toContain('use_mcp_tool'); expect(convertedContent).toContain('use_mcp');
}); });
it('should correctly update file references', () => { it('should correctly update file references', () => {