Metakit / @doeixd/metakit/interpreter
withAllowlist
function · packages/metakit/src/interpreterLayers.ts:37
function withAllowlist(
allowedForeignOps: ReadonlyArray<Node.ForeignOp>,
): Layer.Layer<never>Sandbox layer: restricts the current Interpreter's foreign implementations
(including any caller-supplied step options) to only those whose exact
id@version names appear in every layered allowlist. Any disallowed foreign op
is omitted so evaluation refuses it cleanly with Node.Refusal.