fix(cli): update Antigravity folder mapping to .agents

Antigravity now defaults to .agents/skills/ directory. Update
AI_FOLDERS mapping and detection logic with backward compat
for existing .agent/ directories.

Closes #196
This commit is contained in:
Goon 2026-03-24 17:13:26 +07:00
parent 0c57cae992
commit 8aacc9a64b
2 changed files with 3 additions and 3 deletions

2
cli/src/types/index.ts Normal file → Executable file
View File

@ -48,7 +48,7 @@ export const AI_FOLDERS: Record<Exclude<AIType, 'all'>, string[]> = {
claude: ['.claude'],
cursor: ['.cursor', '.shared'],
windsurf: ['.windsurf', '.shared'],
antigravity: ['.agent', '.shared'],
antigravity: ['.agents', '.shared'],
copilot: ['.github', '.shared'],
kiro: ['.kiro', '.shared'],
codex: ['.codex'],

4
cli/src/utils/detect.ts Normal file → Executable file
View File

@ -19,7 +19,7 @@ export function detectAIType(cwd: string = process.cwd()): DetectionResult {
if (existsSync(join(cwd, '.windsurf'))) {
detected.push('windsurf');
}
if (existsSync(join(cwd, '.agent'))) {
if (existsSync(join(cwd, '.agents')) || existsSync(join(cwd, '.agent'))) {
detected.push('antigravity');
}
if (existsSync(join(cwd, '.github'))) {
@ -76,7 +76,7 @@ export function getAITypeDescription(aiType: AIType): string {
case 'windsurf':
return 'Windsurf (.windsurf/skills/)';
case 'antigravity':
return 'Antigravity (.agent/skills/)';
return 'Antigravity (.agents/skills/)';
case 'copilot':
return 'GitHub Copilot (.github/prompts/)';
case 'kiro':