bluelamp-vscode 2.0.7 → 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 +23 -8
- package/package.json +1 -1
package/bin/bluelamp-vscode-base
CHANGED
|
@@ -146,15 +146,30 @@ inject_knowledge ツールで keyword: "${keyword}" を実行してから開始
|
|
|
146
146
|
console.log(` - Knowledge: ${keyword}`);
|
|
147
147
|
console.log('');
|
|
148
148
|
|
|
149
|
-
|
|
150
|
-
initialPrompt,
|
|
151
|
-
'--dangerously-skip-permissions', // bypassPermissionを有効化
|
|
152
|
-
'--mcp-config', configPath
|
|
153
|
-
];
|
|
154
|
-
|
|
155
|
-
// Windows対応: .cmdまたは.exeを自動検出
|
|
149
|
+
// Windows対応: PowerShell経由でclaude.ps1を実行
|
|
156
150
|
const isWindows = process.platform === 'win32';
|
|
157
|
-
|
|
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
|
+
}
|
|
158
173
|
|
|
159
174
|
const child = spawn(claudeCommand, claudeArgs, {
|
|
160
175
|
stdio: 'inherit',
|