openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
10 lines (9 loc) • 572 B
JavaScript
import { s as resolvePluginApprovalRequestAllowedDecisions } from "./plugin-approvals-BXljsQyC.mjs";
//#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 };