()
| 15 | * consistent across all paths that invoke PowerShellTool.call(). |
| 16 | */ |
| 17 | export function isPowerShellToolEnabled(): boolean { |
| 18 | if (getPlatform() !== 'windows') return false |
| 19 | return process.env.USER_TYPE === 'ant' |
| 20 | ? !isEnvDefinedFalsy(process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL) |
| 21 | : isEnvTruthy(process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL) |
| 22 | } |
no test coverage detected