UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

8 lines (7 loc) • 446 B
//#region src/agents/bash-tools.exec-target.ts /** Returns true when a per-call target override is allowed by configured policy. */ function isRequestedExecTargetAllowed(params) { return params.requestedTarget === params.configuredTarget || params.configuredTarget === "auto" && (!params.sandboxAvailable || params.requestedTarget !== "gateway" && params.requestedTarget !== "node"); } //#endregion export { isRequestedExecTargetAllowed as t };