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

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

View File

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