MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isReadOnly

Function isReadOnly

src/tools/BashTool/BashTool.tsx:437–441  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

435 return this.isReadOnly?.(input) ?? false;
436 },
437 isReadOnly(input) {
438 const compoundCommandHasCd = commandHasAnyCd(input.command);
439 const result = checkReadOnlyConstraints(input, compoundCommandHasCd);
440 return result.behavior === 'allow';
441 },
442 toAutoClassifierInput(input) {
443 return input.command;
444 },

Callers

nothing calls this directly

Calls 2

commandHasAnyCdFunction · 0.85
checkReadOnlyConstraintsFunction · 0.85

Tested by

no test coverage detected