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