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.
- package/bin/bluelamp-vscode-base +25 -7
- package/package.json +1 -1
package/bin/bluelamp-vscode-base
CHANGED
|
@@ -146,15 +146,33 @@ inject_knowledge ツールで keyword: "${keyword}" を実行してから開始
|
|
|
146
146
|
console.log(` - Knowledge: ${keyword}`);
|
|
147
147
|
console.log('');
|
|
148
148
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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(
|
|
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
|