bluelamp-vscode 2.0.6 → 2.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.
@@ -146,15 +146,33 @@ inject_knowledge ツールで keyword: "${keyword}" を実行してから開始
146
146
  console.log(` - Knowledge: ${keyword}`);
147
147
  console.log('');
148
148
 
149
- const claudeArgs = [
150
- initialPrompt,
151
- '--dangerously-skip-permissions', // bypassPermissionを有効化
152
- '--mcp-config', configPath
153
- ];
149
+ // Windows対応: PowerShell経由でclaude.ps1を実行
150
+ const isWindows = process.platform === 'win32';
151
+ let claudeCommand, claudeArgs;
152
+
153
+ if (isWindows) {
154
+ // Windows: PowerShell経由でclaude.ps1を実行
155
+ claudeCommand = 'powershell.exe';
156
+ claudeArgs = [
157
+ '-NoProfile',
158
+ '-Command',
159
+ 'claude',
160
+ initialPrompt,
161
+ '--dangerously-skip-permissions',
162
+ '--mcp-config', configPath
163
+ ];
164
+ } else {
165
+ // Mac/Linux: 直接実行
166
+ claudeCommand = 'claude';
167
+ claudeArgs = [
168
+ initialPrompt,
169
+ '--dangerously-skip-permissions',
170
+ '--mcp-config', configPath
171
+ ];
172
+ }
154
173
 
155
- const child = spawn('claude', claudeArgs, {
174
+ const child = spawn(claudeCommand, claudeArgs, {
156
175
  stdio: 'inherit',
157
- shell: true, // Windows互換性のため追加
158
176
  env: {
159
177
  ...process.env,
160
178
  BLUELAMP_VSCODE_KEYWORD: keyword
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bluelamp-vscode",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "description": "BlueLamp VSCode Extension MCP Integration - 16 Development Prompts",
5
5
  "main": "lib/mcp-server/index.cjs",
6
6
  "bin": {