openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
10 lines (9 loc) • 571 B
JavaScript
import { d as resolvePluginApprovalRequestAllowedDecisions } from "./plugin-approvals-BUrr4V_c.js";
//#region src/infra/plugin-approval-canonical-decisions.ts
/** Add the fail-closed deny verdict to the normalized plugin decision set. */
function resolveCanonicalPluginApprovalRequestAllowedDecisions(params) {
const allowedDecisions = resolvePluginApprovalRequestAllowedDecisions(params);
return allowedDecisions.includes("deny") ? allowedDecisions : [...allowedDecisions, "deny"];
}
//#endregion
export { resolveCanonicalPluginApprovalRequestAllowedDecisions as t };