pikakit 3.7.6 → 3.7.8

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.
@@ -657,18 +657,25 @@ export async function run(spec) {
657
657
  if (fs.existsSync(path.join(os.homedir(), ".antigravity"))) {
658
658
  try {
659
659
  fs.mkdirSync(antigravityExt, { recursive: true });
660
- const extDest = path.join(antigravityExt, "pikakit.pikakit-skill-generator-1.0.0");
660
+ const extDest = path.join(antigravityExt, "pikakit.pikakit-skill-generator-1.0.0-universal");
661
661
 
662
- // Remove old extension if exists
662
+ // Remove old extension if exists (both old and new naming)
663
+ const oldExtDest = path.join(antigravityExt, "pikakit.pikakit-skill-generator-1.0.0");
664
+ if (fs.existsSync(oldExtDest)) {
665
+ fs.rmSync(oldExtDest, { recursive: true, force: true });
666
+ }
663
667
  if (fs.existsSync(extDest)) {
664
668
  fs.rmSync(extDest, { recursive: true, force: true });
665
669
  }
666
670
 
667
- // VSIX is a ZIP file, extract it using PowerShell/tar
671
+ // VSIX is a ZIP file, need to rename for PowerShell
668
672
  const isWindows = process.platform === "win32";
669
673
  if (isWindows) {
670
- // Use PowerShell to extract VSIX (it's a ZIP)
671
- await execAsync(`powershell -Command "Expand-Archive -Path '${vsixPath}' -DestinationPath '${extDest}' -Force"`, { timeout: 30000 });
674
+ // PowerShell Expand-Archive requires .zip extension
675
+ const zipPath = path.join(os.tmpdir(), "pikakit-ext.zip");
676
+ fs.copyFileSync(vsixPath, zipPath);
677
+ await execAsync(`powershell -Command "Expand-Archive -Path '${zipPath}' -DestinationPath '${extDest}' -Force"`, { timeout: 30000 });
678
+ fs.unlinkSync(zipPath);
672
679
  } else {
673
680
  // Use unzip on Unix
674
681
  fs.mkdirSync(extDest, { recursive: true });
@@ -678,10 +685,20 @@ export async function run(spec) {
678
685
  // Move extension contents from extension/ subfolder to root if needed
679
686
  const extSubfolder = path.join(extDest, "extension");
680
687
  if (fs.existsSync(extSubfolder)) {
688
+ // Use cpSync instead of renameSync for reliability
681
689
  for (const item of fs.readdirSync(extSubfolder)) {
682
- fs.renameSync(path.join(extSubfolder, item), path.join(extDest, item));
690
+ const src = path.join(extSubfolder, item);
691
+ const dest = path.join(extDest, item);
692
+ fs.cpSync(src, dest, { recursive: true });
683
693
  }
684
- fs.rmdirSync(extSubfolder);
694
+ fs.rmSync(extSubfolder, { recursive: true, force: true });
695
+ }
696
+
697
+ // Clean up VSIX manifest files
698
+ const filesToRemove = ["[Content_Types].xml", "extension.vsixmanifest"];
699
+ for (const f of filesToRemove) {
700
+ const fp = path.join(extDest, f);
701
+ if (fs.existsSync(fp)) fs.unlinkSync(fp);
685
702
  }
686
703
 
687
704
  installedTo.push("Antigravity");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pikakit",
3
- "version": "3.7.6",
3
+ "version": "3.7.8",
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>",