pikakit 3.7.6 → 3.7.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.
- package/bin/lib/commands/install.js +18 -5
- package/package.json +1 -1
|
@@ -664,11 +664,14 @@ export async function run(spec) {
|
|
|
664
664
|
fs.rmSync(extDest, { recursive: true, force: true });
|
|
665
665
|
}
|
|
666
666
|
|
|
667
|
-
// VSIX is a ZIP file,
|
|
667
|
+
// VSIX is a ZIP file, need to rename for PowerShell
|
|
668
668
|
const isWindows = process.platform === "win32";
|
|
669
669
|
if (isWindows) {
|
|
670
|
-
//
|
|
671
|
-
|
|
670
|
+
// PowerShell Expand-Archive requires .zip extension
|
|
671
|
+
const zipPath = path.join(os.tmpdir(), "pikakit-ext.zip");
|
|
672
|
+
fs.copyFileSync(vsixPath, zipPath);
|
|
673
|
+
await execAsync(`powershell -Command "Expand-Archive -Path '${zipPath}' -DestinationPath '${extDest}' -Force"`, { timeout: 30000 });
|
|
674
|
+
fs.unlinkSync(zipPath);
|
|
672
675
|
} else {
|
|
673
676
|
// Use unzip on Unix
|
|
674
677
|
fs.mkdirSync(extDest, { recursive: true });
|
|
@@ -678,10 +681,20 @@ export async function run(spec) {
|
|
|
678
681
|
// Move extension contents from extension/ subfolder to root if needed
|
|
679
682
|
const extSubfolder = path.join(extDest, "extension");
|
|
680
683
|
if (fs.existsSync(extSubfolder)) {
|
|
684
|
+
// Use cpSync instead of renameSync for reliability
|
|
681
685
|
for (const item of fs.readdirSync(extSubfolder)) {
|
|
682
|
-
|
|
686
|
+
const src = path.join(extSubfolder, item);
|
|
687
|
+
const dest = path.join(extDest, item);
|
|
688
|
+
fs.cpSync(src, dest, { recursive: true });
|
|
683
689
|
}
|
|
684
|
-
fs.
|
|
690
|
+
fs.rmSync(extSubfolder, { recursive: true, force: true });
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
// Clean up VSIX manifest files
|
|
694
|
+
const filesToRemove = ["[Content_Types].xml", "extension.vsixmanifest"];
|
|
695
|
+
for (const f of filesToRemove) {
|
|
696
|
+
const fp = path.join(extDest, f);
|
|
697
|
+
if (fs.existsSync(fp)) fs.unlinkSync(fp);
|
|
685
698
|
}
|
|
686
699
|
|
|
687
700
|
installedTo.push("Antigravity");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pikakit",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.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>",
|