/** Mirrors collector/src/actions.ts default-deny allowlist. */
export const GATEWAY_ACTION_VERBS = new Set([
  'reap',
  'ci-rerun',
  'steer',
  'snooze',
  'ci.rerunFailed',
  'ci.cancelRun',
])

export function isGatewayActionVerb(verb: string): boolean {
  return GATEWAY_ACTION_VERBS.has(verb)
}

export function actionNeedsConfirm(verb: string): boolean {
  return verb === 'reap'
}
