promptgraph-mcp 1.9.5 → 1.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.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -392,7 +392,7 @@ if (args[0] === 'update') {
|
|
|
392
392
|
spin.start();
|
|
393
393
|
let latest = null;
|
|
394
394
|
try {
|
|
395
|
-
const r = spawnSync('npm', ['view', 'promptgraph-mcp', 'version'], { encoding: 'utf8' });
|
|
395
|
+
const r = spawnSync('npm', ['view', 'promptgraph-mcp', 'version'], { encoding: 'utf8', shell: true });
|
|
396
396
|
latest = r.stdout?.trim();
|
|
397
397
|
} catch {}
|
|
398
398
|
spin.stop();
|
|
@@ -406,7 +406,7 @@ if (args[0] === 'update') {
|
|
|
406
406
|
info(`Current: ${chalk.gray('v' + currentVersion)} → Latest: ${chalk.white.bold('v' + latest)}`);
|
|
407
407
|
const updateSpin = (await import('./cli.js')).spinner(`Installing promptgraph-mcp@${latest}...`);
|
|
408
408
|
updateSpin.start();
|
|
409
|
-
const result = spawnSync('npm', ['install', '-g', `promptgraph-mcp@${latest}`], { encoding: 'utf8', stdio: 'pipe' });
|
|
409
|
+
const result = spawnSync('npm', ['install', '-g', `promptgraph-mcp@${latest}`], { encoding: 'utf8', stdio: 'pipe', shell: true });
|
|
410
410
|
updateSpin.stop();
|
|
411
411
|
|
|
412
412
|
if (result.status !== 0) {
|