@onuraslan/sdd 1.0.7 → 1.0.8

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/cli/install.js CHANGED
@@ -87,9 +87,10 @@ async function writeMcpConfig(target, selectedPlugins, scope = 'project', cwd =
87
87
  mcp: {
88
88
  ...(existing.mcp || {}),
89
89
  playwright: {
90
- type: 'stdio',
91
- command: 'npx',
92
- args: ['@playwright/mcp']
90
+ ...(existing.mcp?.playwright || {}),
91
+ type: 'local',
92
+ command: ['npx', '-y', '@playwright/mcp'],
93
+ enabled: true
93
94
  }
94
95
  }
95
96
  };
package/cli/targets.js CHANGED
@@ -55,11 +55,18 @@ export function resolveTargetPath(targetId, scope = 'project', cwd = process.cwd
55
55
  }
56
56
 
57
57
  const baseDir = resolveInstallBase(scope, cwd);
58
- const installRoot = path.resolve(baseDir, target.skillDirectory);
59
- const metadataPath = path.resolve(baseDir, path.dirname(target.skillDirectory), 'sdd.json');
58
+ const isOpenCodeUserScope = target.id === 'opencode' && scope === 'user';
59
+ const skillDirectory = isOpenCodeUserScope
60
+ ? path.join('.config', 'opencode', 'skills')
61
+ : target.skillDirectory;
60
62
  const effectiveMcpConfigPath = target.id === 'claude' && scope === 'user'
61
63
  ? '.claude.json'
62
- : target.mcpConfigPath;
64
+ : target.id === 'opencode' && scope === 'user'
65
+ ? path.join('.config', 'opencode', 'opencode.json')
66
+ : target.mcpConfigPath;
67
+
68
+ const installRoot = path.resolve(baseDir, skillDirectory);
69
+ const metadataPath = path.resolve(baseDir, path.dirname(skillDirectory), 'sdd.json');
63
70
  const mcpConfigPath = path.resolve(baseDir, effectiveMcpConfigPath);
64
71
 
65
72
  return {
@@ -67,6 +74,7 @@ export function resolveTargetPath(targetId, scope = 'project', cwd = process.cwd
67
74
  baseDir,
68
75
  installRoot,
69
76
  metadataPath,
70
- mcpConfigPath
77
+ mcpConfigPath,
78
+ skillDirectory
71
79
  };
72
80
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onuraslan/sdd",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "type": "module",
5
5
  "description": "Spec-Driven Development skill package and interactive installer for AI coding agents.",
6
6
  "license": "MIT",