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

Function commandHasAnyCd

src/tools/BashTool/bashPermissions.ts:2618–2622  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

2616 * using normalized detection that handles env var prefixes and shell quotes.
2617 */
2618export function commandHasAnyCd(command: string): boolean {
2619 return splitCommand(command).some(subcmd =>
2620 isNormalizedCdCommand(subcmd.trim()),
2621 )
2622}

Callers 3

bashToolHasPermissionFunction · 0.85
isReadOnlyFunction · 0.85
startSpeculationFunction · 0.85

Calls 1

isNormalizedCdCommandFunction · 0.85

Tested by

no test coverage detected