promptgraph-mcp 1.9.6 → 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.
Files changed (2) hide show
  1. package/index.js +2 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -392,8 +392,7 @@ if (args[0] === 'update') {
392
392
  spin.start();
393
393
  let latest = null;
394
394
  try {
395
- const npmCmd = process.platform === 'win32' ? 'npm.cmd' : 'npm';
396
- const r = spawnSync(npmCmd, ['view', 'promptgraph-mcp', 'version'], { encoding: 'utf8' });
395
+ const r = spawnSync('npm', ['view', 'promptgraph-mcp', 'version'], { encoding: 'utf8', shell: true });
397
396
  latest = r.stdout?.trim();
398
397
  } catch {}
399
398
  spin.stop();
@@ -407,7 +406,7 @@ if (args[0] === 'update') {
407
406
  info(`Current: ${chalk.gray('v' + currentVersion)} → Latest: ${chalk.white.bold('v' + latest)}`);
408
407
  const updateSpin = (await import('./cli.js')).spinner(`Installing promptgraph-mcp@${latest}...`);
409
408
  updateSpin.start();
410
- 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 });
411
410
  updateSpin.stop();
412
411
 
413
412
  if (result.status !== 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promptgraph-mcp",
3
- "version": "1.9.6",
3
+ "version": "1.9.7",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "bin": {