Saltar al contenido principal
Versión: 0.23.0

Function: checkFileScope()

function checkFileScope(
scope,
toolName,
input
): string | undefined;

Defined in: core/hooks/fileScopeGate.ts:81

The reason to deny toolName with input under scope, or undefined to let it through. Tools other than Read/Write/Edit/Grep/Glob are never judged here, and a call without a path is left for the tool itself to reject.

Parameters​

ParameterType
scopeFileScope
toolNamestring
inputRecord<string, unknown>

Returns​

string | undefined