pikakit 3.9.6 → 3.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -646,23 +646,27 @@ export async function run(spec) {
646
646
  if (vsixPath && fs.existsSync(vsixPath)) {
647
647
  let installedTo = [];
648
648
 
649
- // Install to VS Code via CLI
650
- try {
651
- await execAsync(`code --install-extension "${vsixPath}"`, { timeout: 30000 });
652
- installedTo.push("VS Code");
653
- } catch {
654
- // VS Code not available, continue
655
- }
656
-
657
- // Install to Antigravity via CLI (preferred method)
658
- const antigravityBase = path.join(os.homedir(), ".gemini", "antigravity");
659
- if (fs.existsSync(antigravityBase)) {
649
+ // List of VS Code-based IDEs with their CLI commands and config paths
650
+ const vsCodeBasedIDEs = [
651
+ { name: "VS Code", cli: "code", configPath: null },
652
+ { name: "Cursor", cli: "cursor", configPath: path.join(os.homedir(), ".cursor") },
653
+ { name: "Windsurf", cli: "windsurf", configPath: path.join(os.homedir(), ".windsurf") },
654
+ { name: "Codium", cli: "codium", configPath: path.join(os.homedir(), ".vscode-oss") },
655
+ { name: "Positron", cli: "positron", configPath: path.join(os.homedir(), ".positron") },
656
+ { name: "Antigravity", cli: "antigravity", configPath: path.join(os.homedir(), ".gemini", "antigravity") }
657
+ ];
658
+
659
+ // Try to install on each detected IDE
660
+ for (const ide of vsCodeBasedIDEs) {
660
661
  try {
661
- // Use antigravity CLI command for proper installation
662
- await execAsync(`antigravity --install-extension "${vsixPath}"`, { timeout: 30000 });
663
- installedTo.push("Antigravity");
662
+ // Check if IDE config exists or if CLI is available
663
+ const hasConfig = ide.configPath && fs.existsSync(ide.configPath);
664
+
665
+ // Try to install via CLI
666
+ await execAsync(`${ide.cli} --install-extension "${vsixPath}"`, { timeout: 30000 });
667
+ installedTo.push(ide.name);
664
668
  } catch {
665
- // Antigravity CLI not available or failed, continue
669
+ // IDE not available or CLI failed, continue to next
666
670
  }
667
671
  }
668
672
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pikakit",
3
- "version": "3.9.6",
3
+ "version": "3.9.7",
4
4
  "description": "Enterprise-grade Agent Skill Manager with Antigravity Skills support, Progressive Disclosure detection, and semantic routing validation",
5
5
  "license": "MIT",
6
6
  "author": "pikakit <pikakit@gmail.com>",