MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / evaluateBanConditions

Function evaluateBanConditions

web/src/lib/ban-conditions.ts:127–141  ·  view source on GitHub ↗
(
  context: BanConditionContext,
)

Source from the content-addressed store, hash-verified

125 * Returns as soon as any condition triggers a ban
126 */
127export async function evaluateBanConditions(
128 context: BanConditionContext,
129): Promise<BanConditionResult> {
130 for (const condition of BAN_CONDITIONS) {
131 const result = await condition(context)
132 if (result.shouldBan) {
133 return result
134 }
135 }
136
137 return {
138 shouldBan: false,
139 reason: '',
140 }
141}

Callers 2

webhookHandlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected