MCPcopy
hub / github.com/CodebuffAI/codebuff / toLimitedModeReason

Function toLimitedModeReason

web/src/app/api/v1/freebuff/session/_handlers.ts:69–76  ·  view source on GitHub ↗
(countryAccess: FreeModeCountryAccess)

Source from the content-addressed store, hash-verified

67}
68
69function toLimitedModeReason(countryAccess: FreeModeCountryAccess) {
70 if (countryAccess.allowed) return {}
71 return {
72 countryCode: countryAccess.countryCode,
73 countryBlockReason: countryAccess.blockReason,
74 ipPrivacySignals: countryAccess.ipPrivacy?.signals ?? null,
75 }
76}
77
78function hardBlockedResponse(countryAccess: FreeModeCountryAccess) {
79 return NextResponse.json(

Callers 1

getFreebuffSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected