add Trae support

This commit is contained in:
Joe Danziger
2025-05-27 13:26:48 -04:00
parent ba18ccbcab
commit 93bd8f0f30
7 changed files with 213 additions and 5 deletions

View File

@@ -2,4 +2,5 @@
export * as clineProfile from './cline.js';
export * as cursorProfile from './cursor.js';
export * as rooProfile from './roo.js';
export * as traeProfile from './trae.js';
export * as windsurfProfile from './windsurf.js';

32
scripts/profiles/trae.js Normal file
View File

@@ -0,0 +1,32 @@
// Trae conversion profile for rule-transformer
import { createProfile, COMMON_TOOL_MAPPINGS } from './base-profile.js';
// Create trae profile using the base factory
const traeProfile = createProfile({
name: 'trae',
displayName: 'Trae',
url: 'trae.ai',
docsUrl: 'docs.trae.ai',
profileDir: '.trae',
rulesDir: '.trae/rules',
mcpConfig: false,
mcpConfigName: 'trae_mcp_settings.json',
fileExtension: '.mdc',
targetExtension: '.md',
toolMappings: COMMON_TOOL_MAPPINGS.STANDARD // Trae uses standard tool names
});
// Export all the standard profile properties
export const {
conversionConfig,
fileMap,
globalReplacements,
profileName,
displayName,
profileDir,
rulesDir,
mcpConfig,
mcpConfigName,
mcpConfigPath,
getTargetRuleFilename
} = traeProfile;