feat: add Droid (Factory) support

Add support for Factory's Droid AI assistant, allowing users to install
the skill via 'uipro init --ai droid' to .factory/skills/ directory.

Changes:
- Add droid.json platform config (src and cli/assets)
- Add 'droid' to AIType and AI_TYPES array
- Add .factory directory detection
- Add droid to AI_TO_PLATFORM mapping

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
sappan
2026-02-03 11:54:43 +08:00
parent 2ba6ca2f1e
commit 2127b8b9b0
5 changed files with 51 additions and 2 deletions

View File

@@ -52,6 +52,9 @@ export function detectAIType(cwd: string = process.cwd()): DetectionResult {
if (existsSync(join(cwd, '.codebuddy'))) {
detected.push('codebuddy');
}
if (existsSync(join(cwd, '.factory'))) {
detected.push('droid');
}
// Suggest based on what's detected
let suggested: AIType | null = null;
@@ -94,6 +97,8 @@ export function getAITypeDescription(aiType: AIType): string {
return 'Continue (.continue/skills/)';
case 'codebuddy':
return 'CodeBuddy (.codebuddy/skills/)';
case 'droid':
return 'Droid (Factory) (.factory/skills/)';
case 'all':
return 'All AI assistants';
}