pikakit 3.9.69 → 3.9.71
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.
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import fs from "fs";
|
|
6
6
|
import path from "path";
|
|
7
7
|
import os from "os";
|
|
8
|
+
const home = os.homedir();
|
|
8
9
|
import { exec } from "child_process";
|
|
9
10
|
import util from "util";
|
|
10
11
|
const execAsync = util.promisify(exec);
|
|
@@ -287,6 +288,31 @@ export async function run(spec) {
|
|
|
287
288
|
let detectedIDEs = [];
|
|
288
289
|
|
|
289
290
|
if (fs.existsSync(vsixDir)) {
|
|
291
|
+
// Fallback paths when CLI is not on PATH
|
|
292
|
+
const localApps = process.env.LOCALAPPDATA || path.join(home, "AppData", "Local");
|
|
293
|
+
const fallbackPaths = {
|
|
294
|
+
"code": [
|
|
295
|
+
path.join(localApps, "Programs", "Microsoft VS Code", "bin", "code.cmd"),
|
|
296
|
+
"/usr/bin/code",
|
|
297
|
+
"/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code"
|
|
298
|
+
],
|
|
299
|
+
"cursor": [
|
|
300
|
+
path.join(localApps, "Programs", "cursor", "resources", "app", "bin", "cursor.cmd"),
|
|
301
|
+
path.join(home, ".local", "bin", "cursor"),
|
|
302
|
+
"/Applications/Cursor.app/Contents/Resources/app/bin/cursor"
|
|
303
|
+
],
|
|
304
|
+
"windsurf": [
|
|
305
|
+
path.join(localApps, "Programs", "Windsurf", "bin", "windsurf.cmd"),
|
|
306
|
+
"/usr/bin/windsurf",
|
|
307
|
+
"/Applications/Windsurf.app/Contents/Resources/app/bin/windsurf"
|
|
308
|
+
],
|
|
309
|
+
"antigravity": [
|
|
310
|
+
path.join(localApps, "Programs", "Antigravity", "bin", "antigravity.cmd"),
|
|
311
|
+
"/usr/bin/antigravity",
|
|
312
|
+
"/Applications/Antigravity.app/Contents/Resources/app/bin/antigravity"
|
|
313
|
+
]
|
|
314
|
+
};
|
|
315
|
+
|
|
290
316
|
const vsCodeBasedIDEs = [
|
|
291
317
|
{ name: "VS Code", cli: "code" },
|
|
292
318
|
{ name: "Cursor", cli: "cursor" },
|
|
@@ -298,7 +324,16 @@ export async function run(spec) {
|
|
|
298
324
|
try {
|
|
299
325
|
await execAsync(`${ide.cli} --version`, { timeout: 5000 });
|
|
300
326
|
detectedIDEs.push(ide);
|
|
301
|
-
} catch {
|
|
327
|
+
} catch {
|
|
328
|
+
// Fallback: check known installation paths
|
|
329
|
+
const paths = fallbackPaths[ide.cli] || [];
|
|
330
|
+
const found = paths.find(p => fs.existsSync(p));
|
|
331
|
+
if (found) {
|
|
332
|
+
// Use the full path as CLI for extension installation
|
|
333
|
+
ide.cli = `"${found}"`;
|
|
334
|
+
detectedIDEs.push(ide);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
302
337
|
}
|
|
303
338
|
|
|
304
339
|
if (detectedIDEs.length > 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pikakit",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.71",
|
|
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>",
|
|
Binary file
|