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:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user