fix(cli): detect .claude-plugin directory for Claude Code in detectAIType

This commit is contained in:
loulanyue 2026-08-26 14:42:00 +08:00
parent e353a50876
commit 3e6be6d538

View File

@ -10,7 +10,7 @@ interface DetectionResult {
export function detectAIType(cwd: string = process.cwd()): DetectionResult {
const detected: ConcreteAIType[] = [];
if (existsSync(join(cwd, '.claude'))) {
if (existsSync(join(cwd, '.claude')) || existsSync(join(cwd, '.claude-plugin'))) {
detected.push('claude');
}
if (existsSync(join(cwd, '.cursor'))) {