fix(platform): detect Antigravity CLI aliases

This commit is contained in:
DhanushSantosh
2026-01-11 23:22:13 +05:30
parent 6d267ce0fa
commit 01cf81a105
3 changed files with 24 additions and 5 deletions

View File

@@ -4,6 +4,9 @@ import { FolderOpen } from 'lucide-react';
type IconProps = ComponentProps<'svg'>;
type IconComponent = ComponentType<IconProps>;
const ANTIGRAVITY_COMMANDS = ['antigravity', 'agy'] as const;
const [PRIMARY_ANTIGRAVITY_COMMAND, LEGACY_ANTIGRAVITY_COMMAND] = ANTIGRAVITY_COMMANDS;
/**
* Cursor editor logo icon - from LobeHub icons
*/
@@ -160,7 +163,8 @@ export function getEditorIcon(command: string): IconComponent {
webstorm: WebStormIcon,
xed: XcodeIcon,
studio: AndroidStudioIcon,
agy: AntigravityIcon,
[PRIMARY_ANTIGRAVITY_COMMAND]: AntigravityIcon,
[LEGACY_ANTIGRAVITY_COMMAND]: AntigravityIcon,
open: FinderIcon,
explorer: FolderOpen,
'xdg-open': FolderOpen,