Skip to content

Function: evaluateFsGlobEffectMatcher() ​

ts
function evaluateFsGlobEffectMatcher(
   node, 
   effect, 
   _ctx
): boolean;

Defined in: fs/src/executors/fs-glob-effect-matcher.ts:20

Evaluates an FsGlobMatcherNode (fs:match-globs) against a ToolEffect (SPEC.md §3.5 & §4.3).

Matches both exact normalized file paths (including bracketed routes like app/users/[id]/page.test.tsx) and picomatch glob patterns, checking access mode compatibility ('read' | 'write' | 'any').

Parameters ​

ParameterTypeDescription
nodeFsGlobMatcherNodePassive glob matcher AST node.
effectToolEffectObserved or proposed tool effect to test.
_ctxStepExecutionContext<unknown>Step execution context.

Returns ​

boolean

True when effect is a matching fs:effect covered by node.

Released under the MIT License.