UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

8 lines (7 loc) • 373 B
//#region src/infra/approval-channel-policy-support.ts /** Older channel plugins cannot enforce reviewer policy added by a newer host. */ function canChannelEnforcePluginReviewerPolicy(e, t, n) { return !Object.hasOwn(e.approvals?.plugin ?? {}, t) || n?.supportsScopedPluginApprovalApprovers === true; } //#endregion export { canChannelEnforcePluginReviewerPolicy as t };