fix: proxy MCP and expose EKAP verification gates

This commit is contained in:
2026-09-15 17:54:14 +03:00
parent 26b250735c
commit 6c32581952
7 changed files with 190 additions and 6 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ const MANUAL_EKAP_URL = 'https://ekap.kik.gov.tr/EKAP/';
export function sourceFailure(error) {
const rawMessage = error?.message || 'Resmi belge kaynağına ulaşılamadı.';
const humanVerification = error?.code === 'HUMAN_VERIFICATION_REQUIRED'
|| /HUMAN_VERIFICATION_REQUIRED|EKAP\s+428/i.test(rawMessage);
|| /HUMAN_VERIFICATION_REQUIRED|(?:EKAP|KİK)[^\n]{0,120}(?:HTTP\s*)?428|HTTP\s*428/i.test(rawMessage);
if (humanVerification) {
return {