feat(cli): add CodeWhale platform support for uipro init --ai codewhale (#413)

* feat(cli): add CodeWhale platform support for uipro init --ai codewhale

* docs: Update README
This commit is contained in:
Inf Sein 2026-07-13 17:30:22 +08:00 committed by GitHub
parent 3da52ff1ca
commit 6142b07395
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 55 additions and 4 deletions

View File

@ -314,6 +314,7 @@ uipro init --ai droid # Droid (Factory)
uipro init --ai kilocode # KiloCode
uipro init --ai warp # Warp
uipro init --ai augment # Augment
uipro init --ai codewhale # CodeWhale
uipro init --ai all # All assistants
```
@ -353,7 +354,7 @@ If it is missing, install it yourself from [python.org](https://www.python.org/d
### Skill Mode (Auto-activate)
**Supported:** Claude Code, Cursor, Windsurf, Antigravity, Codex CLI, Continue, Gemini CLI, OpenCode, Qoder, CodeBuddy, Droid (Factory), KiloCode, Warp, Augment
**Supported:** Claude Code, Cursor, Windsurf, Antigravity, Codex CLI, Continue, Gemini CLI, OpenCode, Qoder, CodeBuddy, Droid (Factory), KiloCode, Warp, Augment, CodeWhale
The skill activates automatically when you request UI/UX work. Just chat naturally:

View File

@ -314,6 +314,7 @@ uipro init --ai droid # Droid (Factory)
uipro init --ai kilocode # KiloCode
uipro init --ai warp # Warp
uipro init --ai augment # Augment
uipro init --ai codewhale # CodeWhale
uipro init --ai all # 所有助手
```
@ -352,7 +353,7 @@ python3 --version
### 技能模式 (自动激活)
**支持:** Claude Code、Cursor、Windsurf、Antigravity、Codex CLI、Continue、Gemini CLI、OpenCode、Qoder、CodeBuddy、Droid (Factory)、KiloCode、Warp、Augment
**支持:** Claude Code、Cursor、Windsurf、Antigravity、Codex CLI、Continue、Gemini CLI、OpenCode、Qoder、CodeBuddy、Droid (Factory)、KiloCode、Warp、Augment、CodeWhale
当你请求 UI/UX 工作时,技能会自动激活。只需自然地聊天:

View File

@ -0,0 +1,21 @@
{
"platform": "codewhale",
"displayName": "CodeWhale",
"installType": "full",
"folderStructure": {
"root": ".codewhale",
"skillPath": "skills/ui-ux-pro-max",
"filename": "SKILL.md"
},
"scriptPath": "skills/ui-ux-pro-max/scripts/search.py",
"frontmatter": {
"name": "ui-ux-pro-max",
"description": "UI/UX design intelligence with searchable database"
},
"sections": {
"quickReference": false
},
"title": "ui-ux-pro-max",
"description": "Comprehensive design guide for web, mobile, and desktop applications. Contains 67 styles, 161 color palettes, 57 font pairings, 99 UX guidelines, and 25 chart types across 22 technology stacks. Searchable database with priority-based recommendations.",
"skillOrWorkflow": "Skill"
}

View File

@ -1,4 +1,4 @@
export type AIType = 'claude' | 'cursor' | 'windsurf' | 'antigravity' | 'copilot' | 'kiro' | 'roocode' | 'codex' | 'qoder' | 'gemini' | 'trae' | 'opencode' | 'continue' | 'codebuddy' | 'droid' | 'kilocode' | 'warp' | 'augment' | 'all';
export type AIType = 'claude' | 'cursor' | 'windsurf' | 'antigravity' | 'copilot' | 'kiro' | 'roocode' | 'codex' | 'qoder' | 'gemini' | 'trae' | 'opencode' | 'continue' | 'codebuddy' | 'droid' | 'kilocode' | 'warp' | 'augment' | 'codewhale' | 'all';
export type ConcreteAIType = Exclude<AIType, 'all'>;
export type InstallType = 'full' | 'reference';
@ -42,7 +42,7 @@ export interface PlatformConfig {
skillOrWorkflow: string;
}
export const AI_TYPES: AIType[] = ['claude', 'cursor', 'windsurf', 'antigravity', 'copilot', 'roocode', 'kiro', 'codex', 'qoder', 'gemini', 'trae', 'opencode', 'continue', 'codebuddy', 'droid', 'kilocode', 'warp', 'augment', 'all'];
export const AI_TYPES: AIType[] = ['claude', 'cursor', 'windsurf', 'antigravity', 'copilot', 'roocode', 'kiro', 'codex', 'qoder', 'gemini', 'trae', 'opencode', 'continue', 'codebuddy', 'droid', 'kilocode', 'warp', 'augment', 'codewhale', 'all'];
// Legacy folder mapping for backward compatibility with ZIP-based installs.
// Note: .shared is included for platforms that used ZIP installs. Post-ZIP platforms
@ -66,4 +66,5 @@ export const AI_FOLDERS: Record<ConcreteAIType, string[]> = {
kilocode: ['.kilocode', '.shared'],
warp: ['.warp', '.shared'],
augment: ['.augment', '.shared'],
codewhale: ['.codewhale', '.shared'],
};

View File

@ -64,6 +64,9 @@ export function detectAIType(cwd: string = process.cwd()): DetectionResult {
if (existsSync(join(cwd, '.augment'))) {
detected.push('augment');
}
if (existsSync(join(cwd, '.codewhale'))) {
detected.push('codewhale');
}
// Suggest based on what's detected
let suggested: AIType | null = null;
@ -114,6 +117,8 @@ export function getAITypeDescription(aiType: AIType): string {
return 'Warp (.warp/skills/)';
case 'augment':
return 'Augment (.augment/skills/)';
case 'codewhale':
return 'CodeWhale (.codewhale/skills/)';
case 'all':
return 'All AI assistants';
}

View File

@ -52,6 +52,7 @@ const AI_TO_PLATFORM: Record<string, string> = {
kilocode: 'kilocode',
warp: 'warp',
augment: 'augment',
codewhale: 'codewhale',
};
async function exists(path: string): Promise<boolean> {

View File

@ -0,0 +1,21 @@
{
"platform": "codewhale",
"displayName": "CodeWhale",
"installType": "full",
"folderStructure": {
"root": ".codewhale",
"skillPath": "skills/ui-ux-pro-max",
"filename": "SKILL.md"
},
"scriptPath": "skills/ui-ux-pro-max/scripts/search.py",
"frontmatter": {
"name": "ui-ux-pro-max",
"description": "UI/UX design intelligence with searchable database"
},
"sections": {
"quickReference": false
},
"title": "ui-ux-pro-max",
"description": "Comprehensive design guide for web, mobile, and desktop applications. Contains 67 styles, 161 color palettes, 57 font pairings, 99 UX guidelines, and 25 chart types across 22 technology stacks. Searchable database with priority-based recommendations.",
"skillOrWorkflow": "Skill"
}