pikakit 3.8.2 → 3.8.3
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 +15 -16
- package/package.json +1 -1
|
@@ -254,8 +254,7 @@ export async function run(spec) {
|
|
|
254
254
|
message: `${c.cyan("space")} select · ${c.cyan("enter")} confirm`,
|
|
255
255
|
options: sortedCategories.map(cat => ({
|
|
256
256
|
label: `${cat} (${grouped[cat].length} skills)`,
|
|
257
|
-
value: cat
|
|
258
|
-
hint: grouped[cat].slice(0, 3).map(s => s.value).join(", ") + (grouped[cat].length > 3 ? "..." : "")
|
|
257
|
+
value: cat
|
|
259
258
|
})),
|
|
260
259
|
initialValues: sortedCategories, // Pre-select all
|
|
261
260
|
required: true
|
|
@@ -409,7 +408,7 @@ export async function run(spec) {
|
|
|
409
408
|
method: installMethod,
|
|
410
409
|
scope: isGlobal ? "global" : "project",
|
|
411
410
|
metadata: {
|
|
412
|
-
repo: `${org}
|
|
411
|
+
repo: `${org} / ${repo}`,
|
|
413
412
|
ref: ref || null
|
|
414
413
|
}
|
|
415
414
|
});
|
|
@@ -418,7 +417,7 @@ export async function run(spec) {
|
|
|
418
417
|
installResults.failed.push(...result.failed);
|
|
419
418
|
|
|
420
419
|
if (result.failed.length === 0) {
|
|
421
|
-
is.stop(`Installed ${sn}
|
|
420
|
+
is.stop(`Installed ${sn}(${result.success.length} agents)`);
|
|
422
421
|
} else {
|
|
423
422
|
is.stop(`${sn}: ${result.success.length} success, ${result.failed.length} failed`);
|
|
424
423
|
}
|
|
@@ -646,7 +645,7 @@ export async function run(spec) {
|
|
|
646
645
|
|
|
647
646
|
// Install to VS Code
|
|
648
647
|
try {
|
|
649
|
-
await execAsync(`code
|
|
648
|
+
await execAsync(`code--install - extension "${vsixPath}"`, { timeout: 30000 });
|
|
650
649
|
installedTo.push("VS Code");
|
|
651
650
|
} catch {
|
|
652
651
|
// VS Code not available, continue
|
|
@@ -674,12 +673,12 @@ export async function run(spec) {
|
|
|
674
673
|
// PowerShell Expand-Archive requires .zip extension
|
|
675
674
|
const zipPath = path.join(os.tmpdir(), "pikakit-ext.zip");
|
|
676
675
|
fs.copyFileSync(vsixPath, zipPath);
|
|
677
|
-
await execAsync(`powershell -Command "Expand-Archive -Path '${zipPath}' -DestinationPath '${extDest}' -Force"`, { timeout: 30000 });
|
|
676
|
+
await execAsync(`powershell - Command "Expand-Archive -Path '${zipPath}' -DestinationPath '${extDest}' -Force"`, { timeout: 30000 });
|
|
678
677
|
fs.unlinkSync(zipPath);
|
|
679
678
|
} else {
|
|
680
679
|
// Use unzip on Unix
|
|
681
680
|
fs.mkdirSync(extDest, { recursive: true });
|
|
682
|
-
await execAsync(`unzip -o "${vsixPath}" -d "${extDest}"`, { timeout: 30000 });
|
|
681
|
+
await execAsync(`unzip - o "${vsixPath}" - d "${extDest}"`, { timeout: 30000 });
|
|
683
682
|
}
|
|
684
683
|
|
|
685
684
|
// Move extension contents from extension/ subfolder to root if needed
|
|
@@ -720,7 +719,7 @@ export async function run(spec) {
|
|
|
720
719
|
|
|
721
720
|
if (installedTo.length > 0) {
|
|
722
721
|
extensionInstalled = true;
|
|
723
|
-
es.stop(`Installed PikaKit VS Code Extension
|
|
722
|
+
es.stop(`Installed PikaKit VS Code Extension(${installedTo.join(", ")})`);
|
|
724
723
|
} else {
|
|
725
724
|
es.stop(c.yellow("VS Code extension not installed (no IDE detected)"));
|
|
726
725
|
}
|
|
@@ -743,7 +742,7 @@ export async function run(spec) {
|
|
|
743
742
|
|
|
744
743
|
// Skills summary
|
|
745
744
|
for (const sn of selectedSkills) {
|
|
746
|
-
const mockPath = `.agent/skills
|
|
745
|
+
const mockPath = `.agent / skills / ${sn}`;
|
|
747
746
|
successContent += `${c.cyan("✓")} ${c.dim(mockPath)}\n`;
|
|
748
747
|
}
|
|
749
748
|
|
|
@@ -809,19 +808,19 @@ export async function run(spec) {
|
|
|
809
808
|
const cliPackage = "pikakit";
|
|
810
809
|
|
|
811
810
|
if (isGlobal) {
|
|
812
|
-
cliSpinner.start(`Installing kit CLI globally
|
|
811
|
+
cliSpinner.start(`Installing kit CLI globally(${cliPackage})`);
|
|
813
812
|
try {
|
|
814
|
-
await execAsync(`npm install -g ${cliPackage}`, { timeout: 120000 });
|
|
813
|
+
await execAsync(`npm install - g ${cliPackage}`, { timeout: 120000 });
|
|
815
814
|
cliSpinner.stop("CLI installed globally");
|
|
816
815
|
step(c.dim("Command: kit"));
|
|
817
816
|
} catch (e) {
|
|
818
817
|
cliSpinner.stop(c.yellow("Global CLI installation failed"));
|
|
819
|
-
step(c.dim(`Try running manually: npm i -g ${cliPackage}`));
|
|
818
|
+
step(c.dim(`Try running manually: npm i - g ${cliPackage}`));
|
|
820
819
|
}
|
|
821
820
|
} else {
|
|
822
|
-
cliSpinner.start(`Installing kit CLI locally
|
|
821
|
+
cliSpinner.start(`Installing kit CLI locally(${cliPackage})`);
|
|
823
822
|
try {
|
|
824
|
-
await execAsync(`npm install -D ${cliPackage}`, { timeout: 120000 });
|
|
823
|
+
await execAsync(`npm install - D ${cliPackage}`, { timeout: 120000 });
|
|
825
824
|
cliSpinner.stop("CLI installed locally");
|
|
826
825
|
|
|
827
826
|
// Add npm scripts to package.json
|
|
@@ -847,7 +846,7 @@ export async function run(spec) {
|
|
|
847
846
|
const projectRoot = process.cwd();
|
|
848
847
|
|
|
849
848
|
// Always create kit wrappers
|
|
850
|
-
const kitCmd = `@echo off\nnode "%~dp0node_modules\\pikakit\\bin\\kit.js"
|
|
849
|
+
const kitCmd = `@echo off\nnode "%~dp0node_modules\\pikakit\\bin\\kit.js" %* `;
|
|
851
850
|
const kitSh = `#!/bin/sh\nnode "$(dirname "$0")/node_modules/pikakit/bin/kit.js" "$@"`;
|
|
852
851
|
fs.writeFileSync(path.join(projectRoot, "kit.cmd"), kitCmd);
|
|
853
852
|
fs.writeFileSync(path.join(projectRoot, "kit"), kitSh, { mode: 0o755 });
|
|
@@ -859,7 +858,7 @@ export async function run(spec) {
|
|
|
859
858
|
}
|
|
860
859
|
} catch (e) {
|
|
861
860
|
cliSpinner.stop(c.yellow("Local CLI installation skipped"));
|
|
862
|
-
step(c.dim(`Run manually: npm i -D ${cliPackage}`));
|
|
861
|
+
step(c.dim(`Run manually: npm i - D ${cliPackage}`));
|
|
863
862
|
}
|
|
864
863
|
}
|
|
865
864
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pikakit",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.3",
|
|
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>",
|