Skip to content

Function: evaluateNodeAllowBinariesGuard() ​

ts
function evaluateNodeAllowBinariesGuard(
   node, 
   input, 
   _ctx
): PolicyGuardEvaluationResult;

Defined in: node/src/executors/node-guard-executors.ts:26

Evaluates a NodeAllowBinariesNode (type: 'node:allow-binaries') policy guard against proposed tool effects.

Inspects subprocess/command ToolEffect entries and rejects any invocation whose binary name or basename is not present in node.binaries.

Parameters ​

ParameterTypeDescription
nodeNodeAllowBinariesNodePassive allow-binaries policy guard AST node.
inputPolicyGuardEvaluationInputTool name, proposed effects, and active capability leases.
_ctxStepExecutionContextActive step execution context.

Returns ​

PolicyGuardEvaluationResult

Guard evaluation result and any violated subprocess effects.

Released under the MIT License.