feat: add support for Trae AI assistant (#69)
* feat(trae): add support for Trae AI assistant Add Trae as a new supported AI assistant with version bump to 1.7.0. Includes: - New .trae folder for skill files - Updated CLI to detect and copy Trae skill files - Added Trae to AIType enum and documentation - Implemented search functionality for Trae-specific queries - Added Trae skill data and scripts * feat: update trae skill documentation and readme example - Refactor SKILL.md to improve clarity and organization - Add explicit usage instructions and prerequisites - Update README.md example to clarify frontend-only scope --------- Co-authored-by: Alex Le <alex.le@bytedance.com>
This commit is contained in:
@@ -40,6 +40,10 @@ export function detectAIType(cwd: string = process.cwd()): DetectionResult {
|
||||
if (existsSync(join(cwd, '.gemini'))) {
|
||||
detected.push('gemini');
|
||||
}
|
||||
if (existsSync(join(cwd, '.trae'))) {
|
||||
detected.push('trae');
|
||||
}
|
||||
|
||||
|
||||
// Suggest based on what's detected
|
||||
let suggested: AIType | null = null;
|
||||
@@ -74,6 +78,8 @@ export function getAITypeDescription(aiType: AIType): string {
|
||||
return 'Qoder (.qoder/rules/ + .shared/)';
|
||||
case 'gemini':
|
||||
return 'Gemini CLI (.gemini/skills/ + .shared/)';
|
||||
case 'trae':
|
||||
return 'Trae (.trae/skills/ + .shared/)';
|
||||
case 'all':
|
||||
return 'All AI assistants';
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ export async function copyFolders(
|
||||
const copiedFolders: string[] = [];
|
||||
|
||||
const foldersToCopy = aiType === 'all'
|
||||
? ['.claude', '.cursor', '.windsurf', '.agent', '.github', '.kiro', '.roo','.codex', '.gemini', '.shared']
|
||||
? ['.claude', '.cursor', '.windsurf', '.agent', '.github', '.kiro', '.roo','.codex', '.gemini', '.trae', '.shared']
|
||||
: AI_FOLDERS[aiType];
|
||||
|
||||
// Deduplicate folders (e.g., .shared might be listed multiple times)
|
||||
|
||||
Reference in New Issue
Block a user