@onuraslan/sdd 1.0.6 → 1.0.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/cli/install.js +8 -2
  2. package/package.json +1 -1
package/cli/install.js CHANGED
@@ -27,8 +27,10 @@ async function writeMcpConfig(target, selectedPlugins, scope = 'project', cwd =
27
27
  const commandArgs = ['mcp', 'add', '--scope', scope, '--transport', 'stdio', 'playwright', '--', 'npx', '-y', '@playwright/mcp'];
28
28
 
29
29
  const result = process.platform === 'win32'
30
- ? spawnSync('cmd.exe', ['/d', '/s', '/c', 'claude', ...commandArgs], { cwd, stdio: 'inherit', env: process.env })
31
- : spawnSync('claude', commandArgs, { cwd, stdio: 'inherit', env: process.env });
30
+ ? spawnSync('cmd.exe', ['/d', '/s', '/c', 'claude', ...commandArgs], { cwd, stdio: ['inherit', 'pipe', 'pipe'], env: process.env })
31
+ : spawnSync('claude', commandArgs, { cwd, stdio: ['inherit', 'pipe', 'pipe'], env: process.env });
32
+
33
+ const combinedOutput = [result.stdout?.toString() || '', result.stderr?.toString() || ''].join('\n');
32
34
 
33
35
  if (result.error && (result.error.code === 'ENOENT' || result.error.code === 'EINVAL')) {
34
36
  return;
@@ -39,6 +41,10 @@ async function writeMcpConfig(target, selectedPlugins, scope = 'project', cwd =
39
41
  }
40
42
 
41
43
  if (result.status !== 0) {
44
+ const duplicateMatch = /already exists/i.test(combinedOutput);
45
+ if (duplicateMatch) {
46
+ return;
47
+ }
42
48
  throw new Error(`Claude MCP setup exited with code ${result.status}.`);
43
49
  }
44
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onuraslan/sdd",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "description": "Spec-Driven Development skill package and interactive installer for AI coding agents.",
6
6
  "license": "MIT",