MCPcopy Create free account
hub / github.com/Noumena-Network/code / isPowerShellToolEnabled

Function isPowerShellToolEnabled

src/utils/shell/shellToolUtils.ts:18–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 * consistent across all paths that invoke PowerShellTool.call().
17 */
18export 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}

Callers 3

getPowerShellToolFunction · 0.85
processBashCommandFunction · 0.85

Calls 4

isEnvTruthyFunction · 0.90
getPlatformFunction · 0.85
isInternalBuildFunction · 0.85
isEnvDefinedFalsyFunction · 0.85

Tested by

no test coverage detected