@appaflytech/zeyrek-ai-mcp 0.0.80 → 0.0.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/.env.example +18 -1
  2. package/.env.production.example +17 -0
  3. package/README.md +50 -5
  4. package/dist/auth/clientRegistry.js +57 -0
  5. package/dist/auth/gatewayOAuthProvider.js +115 -0
  6. package/dist/auth/loginPage.js +60 -0
  7. package/dist/auth/loginRoute.js +56 -0
  8. package/dist/auth/loginThrottle.js +33 -0
  9. package/dist/auth/tokenSeal.js +25 -0
  10. package/dist/config.js +80 -4
  11. package/dist/gatewayVersion.js +3 -0
  12. package/dist/httpApp.js +73 -0
  13. package/dist/index.js +11 -47
  14. package/dist/knowledge/access.js +22 -22
  15. package/dist/knowledge/backendConstraints.js +18 -18
  16. package/dist/knowledge/case.js +1 -1
  17. package/dist/knowledge/componentCatalog.js +1 -1
  18. package/dist/knowledge/coverage.js +5 -5
  19. package/dist/knowledge/decision.js +1 -1
  20. package/dist/knowledge/languages.js +1 -1
  21. package/dist/knowledge/methodEffect.js +1 -1
  22. package/dist/knowledge/mobileStore.js +3 -3
  23. package/dist/knowledge/normalize.js +1 -1
  24. package/dist/knowledge/process.js +15 -15
  25. package/dist/knowledge/rules.js +207 -207
  26. package/dist/knowledge/schemaGuard.js +2 -2
  27. package/dist/knowledge/socialSignIn.js +1 -1
  28. package/dist/knowledge/themeRules.js +1 -1
  29. package/dist/observability/gapSink.js +1 -2
  30. package/dist/observability/trace.js +1 -1
  31. package/dist/platform/errors.js +4 -2
  32. package/dist/platform/http.js +13 -3
  33. package/dist/platform/localFiles.js +21 -0
  34. package/dist/platform/token.js +74 -52
  35. package/dist/resources/examples/flow-sign-in-with.json +1 -1
  36. package/dist/resources/examples/function-total.json +1 -1
  37. package/dist/resources/examples/mobile-list-detail-form.json +1 -1
  38. package/dist/resources/guides/bpm.md +3 -3
  39. package/dist/resources/guides/entity.md +5 -5
  40. package/dist/resources/guides/external-component.md +1 -1
  41. package/dist/resources/guides/functions.md +3 -3
  42. package/dist/resources/guides/getting-started.md +17 -4
  43. package/dist/resources/guides/html.md +1 -1
  44. package/dist/resources/guides/layout.md +1 -1
  45. package/dist/resources/guides/microfunction.md +2 -2
  46. package/dist/resources/guides/microservice.md +2 -2
  47. package/dist/resources/guides/middleware.md +2 -2
  48. package/dist/resources/guides/mobile-layout.md +1 -1
  49. package/dist/resources/guides/mobile-local.md +1 -1
  50. package/dist/resources/guides/mobile-publish.md +1 -1
  51. package/dist/resources/guides/mobile-steps.md +6 -6
  52. package/dist/resources/guides/mobile.md +6 -6
  53. package/dist/resources/guides/modify-existing.md +1 -1
  54. package/dist/resources/guides/page.md +23 -23
  55. package/dist/resources/guides/translation.md +1 -1
  56. package/dist/resources/guides/view.md +2 -2
  57. package/dist/resources/guides/workflow.md +9 -9
  58. package/dist/resources/instructions/server.md +19 -0
  59. package/dist/resources/knowledge.js +4 -4
  60. package/dist/resources/read.js +28 -7
  61. package/dist/resources/rules.js +4 -4
  62. package/dist/resources/schemas.js +3 -3
  63. package/dist/server.js +9 -2
  64. package/dist/tools/access.js +1 -1
  65. package/dist/tools/accessRuntime.js +1 -1
  66. package/dist/tools/assistant.js +1 -1
  67. package/dist/tools/bpm.js +3 -3
  68. package/dist/tools/bpmOperations.js +1 -1
  69. package/dist/tools/bpmRuntime.js +2 -2
  70. package/dist/tools/common.js +1 -1
  71. package/dist/tools/entities.js +1 -1
  72. package/dist/tools/externalComponents.js +6 -6
  73. package/dist/tools/files.js +33 -3
  74. package/dist/tools/flows.js +1 -1
  75. package/dist/tools/microservices.js +4 -4
  76. package/dist/tools/mobile.js +1 -1
  77. package/dist/tools/mobileStore.js +5 -5
  78. package/dist/tools/mobileStoreImport.js +3 -3
  79. package/dist/tools/modules.js +1 -1
  80. package/dist/tools/platformInfo.js +9 -9
  81. package/dist/tools/rows.js +2 -2
  82. package/dist/tools/textHookGuard.js +1 -1
  83. package/dist/tools/translations.js +3 -3
  84. package/dist/tools/views.js +2 -2
  85. package/dist/tools/workflows.js +4 -4
  86. package/package.json +4 -2
@@ -603,7 +603,7 @@ function unknownOperatorFindings(ruleId, owner, filters) {
603
603
  ruleId,
604
604
  severity: 'block',
605
605
  message: `${owner}: bilinmeyen filtre işleci — ${unknownOperators.join(', ')}. ${unknownOperatorConsequence}. Geçerli sözlük: ${[...filterOperators].join(' · ')} ('like' yok — metin araması için 'contains'/'icontains').`,
606
- guide: 'ngapps://guides/microservice'
606
+ guide: 'zeyrek://guides/microservice'
607
607
  }]
608
608
  : [];
609
609
  }
@@ -733,7 +733,7 @@ export function rawQueryParameterNames(rawQuery) {
733
733
  return [...names];
734
734
  }
735
735
  const isRecord = (value) => Boolean(value) && typeof value === 'object' && !Array.isArray(value);
736
- const functionsGuide = 'ngapps://guides/functions';
736
+ const functionsGuide = 'zeyrek://guides/functions';
737
737
  /** FN-006: bu kadar dolu satırdan uzun gövde yorumsuz kalmaz; tek satırlık `return` yorum istemez. */
738
738
  const FUNCTION_COMMENT_MIN_LINES = 5;
739
739
  /**
@@ -768,10 +768,10 @@ export const policyRules = [
768
768
  if (!isReadOperation(parameters))
769
769
  return [];
770
770
  if (definition.source === 'table') {
771
- return tableSelectionFindings('MS-001', 'sourceParameters', parameters, 'ngapps://guides/microservice');
771
+ return tableSelectionFindings('MS-001', 'sourceParameters', parameters, 'zeyrek://guides/microservice');
772
772
  }
773
773
  if (definition.source === 'view') {
774
- return tableSelectionFindings('MS-001', 'sourceParameters (view)', parameters, 'ngapps://guides/microservice')
774
+ return tableSelectionFindings('MS-001', 'sourceParameters (view)', parameters, 'zeyrek://guides/microservice')
775
775
  .map(finding => ({ ...finding, severity: 'warn', message: `${finding.message} [view source canlı testte doğrulanmadı — warn]` }));
776
776
  }
777
777
  return [];
@@ -788,7 +788,7 @@ export const policyRules = [
788
788
  ruleId: 'MS-014',
789
789
  severity: 'block',
790
790
  message: "Ucun 'description' alanı boş. 1-2 cümleyle bu ucun ne işe yaradığını yazın — Studio'da servis formunda görünür ve ucu devralan geliştiricinin ilk okuduğu şeydir. Çağıranın ne elde ettiğini yazın ('anket başlığı + sorularını tek çağrıda kaydeder'), kaynağın şeklini değil ('workflow kaynaklı POST ucu').",
791
- guide: 'ngapps://guides/microservice'
791
+ guide: 'zeyrek://guides/microservice'
792
792
  }]
793
793
  },
794
794
  {
@@ -819,7 +819,7 @@ export const policyRules = [
819
819
  ruleId: 'MS-015',
820
820
  severity: 'block',
821
821
  message: `query-string/body/header kaynaklı filtreye 'value' yazılmış (${offenders.join(' | ')}): platform filtre değerini kaynağa bakmadan JS olarak değerlendiriyor, bu yüzden uç çağrıldığında 'JavaScriptException: … is not defined' ile 500 döner. Bu kaynaklarda 'value' HİÇ verilmez — parametre adı alan slug'ından türer; sabit bir ön-süzme istiyorsanız source: 'expression' kullanın.`,
822
- guide: 'ngapps://guides/microservice'
822
+ guide: 'zeyrek://guides/microservice'
823
823
  }];
824
824
  }
825
825
  },
@@ -843,7 +843,7 @@ export const policyRules = [
843
843
  ruleId: 'MS-016',
844
844
  severity: 'warn',
845
845
  message: `upsert ucunda expression kaynaklı alan var (${generated.join(', ')}): upsert UPDATE yolunda da bu ifadeyi yeniden değerlendirir, yani sicil/kod gibi ÜRETİLEN bir değer güncellemede sessizce değişir. Alan yalnız oluşturmada yazılacaksa fields[] öğesine writeOn: 'create' koyun — upsert'in UPDATE dalı o alanı satıra hiç koymaz ve bu uyarı susar. writeOn yalnız operation:'upsert' ucunda geçerlidir (MS-017) ve bir 'kısmi güncelleme' bayrağı DEĞİLDİR: listelenen alan gövdede gelmezse yine NULL yazılır.`,
846
- guide: 'ngapps://guides/microservice'
846
+ guide: 'zeyrek://guides/microservice'
847
847
  }];
848
848
  }
849
849
  },
@@ -863,7 +863,7 @@ export const policyRules = [
863
863
  ruleId: 'MS-025',
864
864
  severity: 'warn',
865
865
  message: `offlineWritable bir okuma ucuna verilmiş (${source === 'view' ? "kaynak: 'view'" : `operation: '${operation}'`}): kuyruk yalnız yazmaları tutar, okuma çevrimdışıyken veri önbelleğinden gelir (uygulamanın 'mobile.offline.data' ayarı). Bildirimi kaldırın; yazan uçta (create/update/upsert/delete ya da yazan iş akışı) kalsın.`,
866
- guide: 'ngapps://guides/page'
866
+ guide: 'zeyrek://guides/page'
867
867
  }];
868
868
  }
869
869
  },
@@ -879,7 +879,7 @@ export const policyRules = [
879
879
  ruleId: 'MS-030',
880
880
  severity: 'block',
881
881
  message: "requiresCaptcha ile offlineWritable birlikte olamaz: kuyruğa giren yazma ağ dönünce kullanılmış ya da süresi dolmuş captcha koduyla yeniden gider ve her seferinde reddedilir (backend 422 CaptchaOfflineWritableConflictException). Birini kapatın.",
882
- guide: 'ngapps://guides/microservice'
882
+ guide: 'zeyrek://guides/microservice'
883
883
  }];
884
884
  }
885
885
  },
@@ -894,7 +894,7 @@ export const policyRules = [
894
894
  ruleId: 'QRY-006',
895
895
  severity: 'warn',
896
896
  message: "Sorgunun 'description' alanı boş. 1-2 cümleyle bu sorgunun NE DÖNDÜRDÜĞÜNÜ yazın — sorgu listesinde ad ve slug dışında hiçbir ipucu yok ve aynı datasource üzerinde onlarca ham SQL birikiyor. Ucun kendi açıklaması (MS-014) bunun yerine geçmez: bir sorgu birden çok uçtan tüketilebilir ve uç sözleşmeyi anlatırken sorgu veriyi anlatır.",
897
- guide: 'ngapps://guides/microservice'
897
+ guide: 'zeyrek://guides/microservice'
898
898
  }]
899
899
  },
900
900
  {
@@ -910,7 +910,7 @@ export const policyRules = [
910
910
  ruleId: 'QRY-007',
911
911
  severity: 'warn',
912
912
  message: `rawQuery parametreyi boş string'le karşılaştırıyor (${names.map(name => `@${name} = ''`).join(', ')}): platform boş ya da yalnız boşluktan oluşan parametre değerini NULL bağlar, NULL = '' hiçbir zaman doğru olmaz ve 'filtre boşsa hepsini getir' dalı ASLA çalışmaz — filtre boş geldiğinde sorgu hatasız 0 satır döner. Değerin form bileşeninden null ya da '' gelmesi fark etmez. Şöyle yazın: (@${names[0]} IS NULL OR kolon::text = @${names[0]}).`,
913
- guide: 'ngapps://guides/microservice'
913
+ guide: 'zeyrek://guides/microservice'
914
914
  }];
915
915
  }
916
916
  },
@@ -930,7 +930,7 @@ export const policyRules = [
930
930
  ruleId: 'MS-018',
931
931
  severity: 'block',
932
932
  message: `Uç komutunda DTO sözleşmesi alanı YOK — gövdeye yazılan ${written.join(', ')} platforma gitse 200 dönerdi ve alan SESSİZCE düşerdi; uç sözleşmesiz kalır (ölçüldü 2026-09-09, S-2). table/query/view kaynaklı ucun yanıt şekli kaynağın KENDİSİNDEN türer (selectFields / sorgunun returnScheme'i / view indeksi); açık yanıt sözleşmesi WORKFLOW kavramıdır. Reçete: ucu source:'workflow' + workflowId ile kurun, DTO'yu workflow'a bağlayın — ${patch}. WF-002: başarı yolunda 2xx response adımı olan type:'workflow' akışta returnDtoId ZORUNLUDUR (yanıtsız akış muaf), returnBehavior'ı boş bırakırsanız gateway 'object' ile doldurur. Sözleşme yalnız 2xx yanıtlarda uygulanır (WF-026). Uç gövdesinden bu alanları çıkarıp yeniden çağırın.`,
933
- guide: 'ngapps://guides/microservice'
933
+ guide: 'zeyrek://guides/microservice'
934
934
  }];
935
935
  }
936
936
  },
@@ -963,7 +963,7 @@ export const policyRules = [
963
963
  ruleId: 'MS-019',
964
964
  severity: 'block',
965
965
  message: `operation '${operation}' filtre ağacı tek satırı hedeflemiyor: ${problem}. Platform kaydı FilterFieldMustUniqueEqException ile reddeder. ${recipe} Toplu yazma bulk-update/bulk-delete ucuyla yapılır.`,
966
- guide: 'ngapps://guides/microservice'
966
+ guide: 'zeyrek://guides/microservice'
967
967
  }];
968
968
  }
969
969
  },
@@ -999,7 +999,7 @@ export const policyRules = [
999
999
  ruleId: 'MS-027',
1000
1000
  severity: 'block',
1001
1001
  message: `operation '${operation}' filtresi kapsam olamaz (${broken.map(filter => String(filter.fieldSlug ?? filter.fieldId ?? '?')).join(', ')}): toplu yazma filtresi her satırın WHERE'ine girer, bu yüzden kök + 'and' + 'eq' olmalı, değeri istemciden (body/header/query-string ya da onları okuyan ifade) gelmemeli ve alan uçta yazılmamalı. Platform kaydı BulkWriteScopeFilterException ile reddeder. ${recipe}`,
1002
- guide: 'ngapps://guides/microservice'
1002
+ guide: 'zeyrek://guides/microservice'
1003
1003
  }];
1004
1004
  }
1005
1005
  if (filters.length > 0 && asArray(definition.middlewareIds).length > 0)
@@ -1010,7 +1010,7 @@ export const policyRules = [
1010
1010
  message: filters.length === 0
1011
1011
  ? `operation '${operation}' ucunda filtre yok: istemci gönderdiği her kimliği yazar, başkasının satırı dahil. ${recipe} Kapsam dışı tek kimlik bütün partiyi 404 ile reddeder.`
1012
1012
  : `operation '${operation}' ucunda middlewareIds boş: uç anonimdir ve kapsam ifadesi 'user' değişkenine ulaşamaz. Auth middleware'ini bağlayın (platform_guide('middleware')).`,
1013
- guide: 'ngapps://guides/microservice'
1013
+ guide: 'zeyrek://guides/microservice'
1014
1014
  }];
1015
1015
  }
1016
1016
  },
@@ -1024,7 +1024,7 @@ export const policyRules = [
1024
1024
  ruleId: 'MS-002',
1025
1025
  severity: 'warn',
1026
1026
  message: "source='query' seçildi: table kaynağı, query'nin yapabildiği neredeyse her şeyi platform-native yapar (filtre, join, sıralama, alan seçimi). Ham SQL gerçekten şartsa devam edin; değilse source='table' kullanın.",
1027
- guide: 'ngapps://guides/microservice'
1027
+ guide: 'zeyrek://guides/microservice'
1028
1028
  }]
1029
1029
  : []
1030
1030
  },
@@ -1037,11 +1037,11 @@ export const policyRules = [
1037
1037
  const body = workflowBody(definition, context.workflowKind);
1038
1038
  const steps = workflowSteps(body);
1039
1039
  if (steps.length === 0) {
1040
- return [{ ruleId: 'WF-001', severity: 'block', message: 'steps boş — en az bir start step\'i ve ona bağlı akış gerekir.', guide: 'ngapps://guides/workflow' }];
1040
+ return [{ ruleId: 'WF-001', severity: 'block', message: 'steps boş — en az bir start step\'i ve ona bağlı akış gerekir.', guide: 'zeyrek://guides/workflow' }];
1041
1041
  }
1042
1042
  const startStep = steps.find(step => step.type === 'start');
1043
1043
  if (!startStep) {
1044
- return [{ ruleId: 'WF-001', severity: 'block', message: "type='start' step'i yok — her akış start ile başlar.", guide: 'ngapps://guides/workflow' }];
1044
+ return [{ ruleId: 'WF-001', severity: 'block', message: "type='start' step'i yok — her akış start ile başlar.", guide: 'zeyrek://guides/workflow' }];
1045
1045
  }
1046
1046
  const stepsById = new Map(steps.filter(step => step.id).map(step => [String(step.id), step]));
1047
1047
  const reached = new Set();
@@ -1062,7 +1062,7 @@ export const policyRules = [
1062
1062
  ruleId: 'WF-001',
1063
1063
  severity: 'block',
1064
1064
  message: `Start'tan erişilemeyen step'ler var: ${unreachable.map(stepLabel).join(', ')}. Step'ler branches[].nextStepId ile bağlanır — önceki step'in uygun branch'ine (success/fail/else) bu step'lerin id'sini yazın.`,
1065
- guide: 'ngapps://guides/workflow'
1065
+ guide: 'zeyrek://guides/workflow'
1066
1066
  }];
1067
1067
  }
1068
1068
  return [];
@@ -1081,7 +1081,7 @@ export const policyRules = [
1081
1081
  ruleId: 'WF-002',
1082
1082
  severity: 'block',
1083
1083
  message: "Başarı yolunda 2xx yanıt döndüren response adımı olan type='workflow' akışında returnDtoId zorunludur (backend nullable bırakır ama iş kuralı zorunlu; automation ve middleware muaftır). Önce DataTransferObject oluşturup id'sini returnDtoId'ye verin. Başarı yolunda response adımı olmayan akış (zamanlanmış işin ya da başka akışın gövdesini kullanmadan çağırdığı) muaftır.",
1084
- guide: 'ngapps://guides/workflow'
1084
+ guide: 'zeyrek://guides/workflow'
1085
1085
  }];
1086
1086
  }
1087
1087
  return [];
@@ -1099,7 +1099,7 @@ export const policyRules = [
1099
1099
  ruleId: 'WF-003',
1100
1100
  severity: 'warn',
1101
1101
  message: "Step'lerde 'input.' referansı var ama parameterDtoId tanımlı değil — girdiler DataTransferObject ile tanımlanmalı ki input.<alan> referansları bir şeye bağlansın.",
1102
- guide: 'ngapps://guides/workflow'
1102
+ guide: 'zeyrek://guides/workflow'
1103
1103
  }];
1104
1104
  }
1105
1105
  return [];
@@ -1121,7 +1121,7 @@ export const policyRules = [
1121
1121
  ruleId: 'WF-004',
1122
1122
  severity: 'warn',
1123
1123
  message: "type='workflow' ama BAŞARI yolunda response step'i yok — akış başarıyla biten çağrıya yanıt döndürmeyecek. Yalnız 'global-error' dalının ucunda response bulunması yetmez: o adım sadece akış patladığında çalışır. Start'tan erişilebilen bir dalın sonuna response step'i bağlayın (adım tanımlı ama hiçbir dalın 'nextStepId' hedefi değilse de bu uyarı çıkar).",
1124
- guide: 'ngapps://guides/workflow'
1124
+ guide: 'zeyrek://guides/workflow'
1125
1125
  }];
1126
1126
  }
1127
1127
  return [];
@@ -1158,7 +1158,7 @@ export const policyRules = [
1158
1158
  ruleId: 'WF-039',
1159
1159
  severity: 'warn',
1160
1160
  message: `'${stepLabel(reader)}' adımının ifadesi ${name}.data.${field} okuyor ama '${name}' adımı (${reason.shape}) DİZİ döndürür: ${name}.data.${field} undefined olur; sonraki yazma NULL yazar ya da adım RowValidationFailed / 23502 ile düşer ve hata şekli söylemez. Ya ${name}.data[0].${field} yazın ya da ${reason.recipe}. Şekli bilmiyorsanız platform_guide('workflow') §Table step kuralları'ndaki savunmalı yazımı kullanın.`,
1161
- guide: 'ngapps://guides/workflow'
1161
+ guide: 'zeyrek://guides/workflow'
1162
1162
  });
1163
1163
  }
1164
1164
  }
@@ -1206,7 +1206,7 @@ export const policyRules = [
1206
1206
  ruleId: 'WF-041',
1207
1207
  severity: 'warn',
1208
1208
  message: `'${stepLabel(step)}' adımı crypto.SHA256.encode sonucunu bir sabitle ya da 64 haneli hex özetle karşılaştırıyor: SHA256.encode adına rağmen SHA-256 DEĞİLDİR — platformun parola özetidir (PBKDF2-HMAC-SHA512, tuz = girdi, 128 büyük harf hex) ve dışarıda üretilen hiçbir özetle eşleşmez. Standart özet için crypto.hash.sha256(metin) / crypto.hash.sha512(metin) (UTF-8, küçük harf hex), imza doğrulaması için crypto.hmac.sha256(anahtar, metin) kullanın. SHA256.encode yalnız platformun kendi sakladığı parola özetiyle karşılaştırılır.`,
1209
- guide: 'ngapps://guides/expressions'
1209
+ guide: 'zeyrek://guides/expressions'
1210
1210
  });
1211
1211
  }
1212
1212
  return findings;
@@ -1229,7 +1229,7 @@ export const policyRules = [
1229
1229
  ruleId: 'WF-005',
1230
1230
  severity: 'block',
1231
1231
  message: `'${stepLabel(step)}' adımındaki '${step.type}' geçerli bir workflow step tipi değil. Geçerli tipler: ${Object.keys(stepKindMatrix).join(', ')}. Akışı bitirmek için ayrı bir end adımı eklemeyin; son dalda nextStepId: null kullanın.`,
1232
- guide: 'ngapps://guides/workflow'
1232
+ guide: 'zeyrek://guides/workflow'
1233
1233
  }];
1234
1234
  }
1235
1235
  if (allowedKinds.includes(kind))
@@ -1238,7 +1238,7 @@ export const policyRules = [
1238
1238
  ruleId: 'WF-005',
1239
1239
  severity: 'block',
1240
1240
  message: `'${stepLabel(step)}' step'i (${step.type}) ${kind} tipinde kullanılamaz. İzin matrisi: variable/set-user/setcookie/redirect yalnız middleware; convert yalnız workflow; revert yalnız automation; response workflow+middleware; process workflow+automation; balance üçünde de serbest; push workflow+automation; social-sign-in workflow (start · sign-in · revoke) ve automation (yalnız revoke), middleware'de hiçbiri.`,
1241
- guide: 'ngapps://guides/workflow'
1241
+ guide: 'zeyrek://guides/workflow'
1242
1242
  }];
1243
1243
  });
1244
1244
  }
@@ -1258,7 +1258,7 @@ export const policyRules = [
1258
1258
  ruleId: 'WF-MF-001',
1259
1259
  severity: 'block',
1260
1260
  message: `'${label}' microfunction adımında rule.microfunctionId yok — adım hangi fonksiyonu koşturacağını bilmez. microfunction_list(status: 'published') ile id seçin; argümanlar rule.expression'a yazılır (fonksiyonun parameterDto'su varsa o şemaya göre).`,
1261
- guide: 'ngapps://guides/microfunction'
1261
+ guide: 'zeyrek://guides/microfunction'
1262
1262
  }];
1263
1263
  }
1264
1264
  if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(String(microfunctionId))) {
@@ -1266,7 +1266,7 @@ export const policyRules = [
1266
1266
  ruleId: 'WF-MF-001',
1267
1267
  severity: 'block',
1268
1268
  message: `'${label}' adımının rule.microfunctionId'si GUID değil: '${String(microfunctionId)}'. Platform alanı Guid'e çeviremediği için 400 döner.`,
1269
- guide: 'ngapps://guides/microfunction'
1269
+ guide: 'zeyrek://guides/microfunction'
1270
1270
  }];
1271
1271
  }
1272
1272
  return [];
@@ -1288,7 +1288,7 @@ export const policyRules = [
1288
1288
  ruleId: 'WF-038',
1289
1289
  severity: 'block',
1290
1290
  message: `'${stepLabel(step)}' adımının dalı type: 'start' taşıyor — platform 400 döner (dal tipi yalnız success · fail · impersonation · global-error). 'start' dalın ADIDIR, tipi success: { name: 'start', type: 'success', nextStepId: '<ilk adım>' }.`,
1291
- guide: 'ngapps://guides/workflow'
1291
+ guide: 'zeyrek://guides/workflow'
1292
1292
  }];
1293
1293
  })
1294
1294
  },
@@ -1311,7 +1311,7 @@ export const policyRules = [
1311
1311
  ruleId: 'WF-037',
1312
1312
  severity: 'block',
1313
1313
  message: `'${label}' e-posta adımı alıcıyı yanlış yerden veriyor: ${problems.join('; ')}. ${recipe} workflow_step_schema'daki expression.to/cc/bcc bu ifadenin döndürdüğü şekildir.`,
1314
- guide: 'ngapps://guides/workflow'
1314
+ guide: 'zeyrek://guides/workflow'
1315
1315
  }];
1316
1316
  })
1317
1317
  },
@@ -1327,7 +1327,7 @@ export const policyRules = [
1327
1327
  ruleId: 'WF-032',
1328
1328
  severity: 'block',
1329
1329
  message: `'${label}' workflow adımında rule.workflowId yok — adım hangi akışı çağıracağını bilmez. workflow_list(applicationId, type: 'workflow') ile id seçin; girdi rule.expression'a nesne literali olarak yazılır (çağrılan akışın parametre DTO'suna göre).`,
1330
- guide: 'ngapps://guides/workflow'
1330
+ guide: 'zeyrek://guides/workflow'
1331
1331
  }];
1332
1332
  }
1333
1333
  if (!GUID_PATTERN.test(String(workflowId))) {
@@ -1335,7 +1335,7 @@ export const policyRules = [
1335
1335
  ruleId: 'WF-032',
1336
1336
  severity: 'block',
1337
1337
  message: `'${label}' adımının rule.workflowId'si GUID değil: '${String(workflowId)}'. Platform alanı Guid'e çeviremediği için 400 döner; slug değil id verin (workflow_list).`,
1338
- guide: 'ngapps://guides/workflow'
1338
+ guide: 'zeyrek://guides/workflow'
1339
1339
  }];
1340
1340
  }
1341
1341
  const savedButUnread = WORKFLOW_STEP_SAVED_BUT_UNREAD_KEYS.filter(key => carriesValue(rule[key]));
@@ -1350,7 +1350,7 @@ export const policyRules = [
1350
1350
  ruleId: 'WF-032',
1351
1351
  severity: 'block',
1352
1352
  message: `'${label}' adımı alt akışa girdiyi yanlış alandan gönderiyor — ${fate}. WorkflowStep yalnız rule.workflowId ve rule.expression okur: iki durumda da alt akış boş girdiyle koşar ve 200 döner (RFQ koşusu W-7). Eşlemeyi rule.expression'a nesne literali olarak yazın — her anahtar çağrılan akışın parametre DTO'sundaki bir alan, her değer bir JS ifadesi: "({ title: input.title, source: 'telemetry' })". Aynı adlı alan code adımında GÖVDE, workflow/microfunction adımında GİRDİDİR. Alan listesini workflow_step_schema (parameterScheme) ya da workflow_get(<workflowId>).parameterDtoId → dto_get verir.`,
1353
- guide: 'ngapps://guides/workflow'
1353
+ guide: 'zeyrek://guides/workflow'
1354
1354
  }];
1355
1355
  })
1356
1356
  },
@@ -1369,7 +1369,7 @@ export const policyRules = [
1369
1369
  ruleId: 'WF-006',
1370
1370
  severity: 'warn',
1371
1371
  message: `'${stepLabel(step)}' (${step.type}) terminal bir step — branch taşımamalı.`,
1372
- guide: 'ngapps://guides/workflow'
1372
+ guide: 'zeyrek://guides/workflow'
1373
1373
  });
1374
1374
  }
1375
1375
  if (!terminalStepTypes.has(String(step.type)) && step.type !== 'start' && branches.length === 0) {
@@ -1377,7 +1377,7 @@ export const policyRules = [
1377
1377
  ruleId: 'WF-006',
1378
1378
  severity: 'warn',
1379
1379
  message: `'${stepLabel(step)}' (${step.type}) step'inin hiç branch'i yok — success/fail branch'leri tanımlayıp nextStepId bağlayın, yoksa akış burada kopar.`,
1380
- guide: 'ngapps://guides/workflow'
1380
+ guide: 'zeyrek://guides/workflow'
1381
1381
  });
1382
1382
  }
1383
1383
  }
@@ -1393,7 +1393,7 @@ export const policyRules = [
1393
1393
  const body = workflowBody(definition, context.workflowKind);
1394
1394
  return workflowSteps(body)
1395
1395
  .filter(step => step.type === 'table' && isReadOperation(step.rule))
1396
- .flatMap(step => tableSelectionFindings('WF-007', `'${stepLabel(step)}' table step'i (rule)`, step.rule, 'ngapps://guides/workflow')
1396
+ .flatMap(step => tableSelectionFindings('WF-007', `'${stepLabel(step)}' table step'i (rule)`, step.rule, 'zeyrek://guides/workflow')
1397
1397
  .map(finding => ({ ...finding, severity: 'warn' })));
1398
1398
  }
1399
1399
  },
@@ -1413,7 +1413,7 @@ export const policyRules = [
1413
1413
  ruleId: 'WF-023',
1414
1414
  severity: 'warn',
1415
1415
  message: `'${stepLabel(step)}' table step'i şu alanları seçiyor ama akışın hiçbir yerinde okunmuyor: ${unread.join(', ')} — seçilen her alan sorguya ve taşınan satıra maliyet ekler, join'li adımda bu maliyet katlanır. selectFields'ta yalnız gerçekten kullanılan alanları bırakın. (Satırları alan adı yazmadan dolaşan bir code adımı varsa uyarı yanlış pozitiftir; tespit metinseldir.)`,
1416
- guide: 'ngapps://guides/workflow'
1416
+ guide: 'zeyrek://guides/workflow'
1417
1417
  }]
1418
1418
  : [];
1419
1419
  });
@@ -1443,7 +1443,7 @@ export const policyRules = [
1443
1443
  ruleId: 'WF-024',
1444
1444
  severity: 'block',
1445
1445
  message: `Açıklama eksik — ${parts.join('; ')}. Her adıma ve akışın kendisine 1-2 cümle 'description' yazın: Studio kanvasında adımın yanında ⓘ ikonu olarak görünür ve akışı devralan geliştiricinin tek okuma kaynağıdır. NE YAPTIĞINI değil NEDEN olduğunu yazın: 'assignments tablosunu status=Aktif ile okur' mekanizmadır ve zaten koddan okunuyor; 'kullanıcının asal pozisyonunu seçer, birden fazla aktif atama varsa is_primary olanı tercih eder' niyettir. start adımı muaftır.`,
1446
- guide: 'ngapps://guides/workflow'
1446
+ guide: 'zeyrek://guides/workflow'
1447
1447
  }];
1448
1448
  }
1449
1449
  },
@@ -1468,7 +1468,7 @@ export const policyRules = [
1468
1468
  ruleId: 'WF-025',
1469
1469
  severity: 'block',
1470
1470
  message: `Hedefi gövdede olmayan dal var: ${dangling.join(', ')}. Workflow dalının 'nextStepId'si adımın GUID'idir ve platform onu silinmiş adıma bağlayamaz — istek 400 'This record is in use … Next Step Id' ile döner. Adımı silmeden ÖNCE ona bakan dalların 'nextStepId' değerini null yapın (aynı patch çağrısında iki op olarak gönderilebilir).`,
1471
- guide: 'ngapps://guides/workflow'
1471
+ guide: 'zeyrek://guides/workflow'
1472
1472
  }];
1473
1473
  }
1474
1474
  },
@@ -1485,7 +1485,7 @@ export const policyRules = [
1485
1485
  ruleId: 'WF-008',
1486
1486
  severity: 'warn',
1487
1487
  message: `Query step kullanılmış (${queryStepNames.join(', ')}): table step, query'nin yapabildiği neredeyse her şeyi platform-native yapar. Ham SQL şart değilse table step kullanın.`,
1488
- guide: 'ngapps://guides/workflow'
1488
+ guide: 'zeyrek://guides/workflow'
1489
1489
  }]
1490
1490
  : [];
1491
1491
  }
@@ -1511,7 +1511,7 @@ export const policyRules = [
1511
1511
  ruleId: 'WF-025',
1512
1512
  severity: 'warn',
1513
1513
  message: `Query adımı yalnız 'queryParameters' ile bağlanmış (${unboundSteps.join(', ')}) ve 'rule.expression' boş. Kayıtlı sorgunun parametreleri bildirilmişse ÇALIŞAN MOTOR BU DİZİYİ OKUMUYOR: parametreler null bağlanıyor ve çağrı 200 + SIFIR SATIR dönüyor — hata yok, uyarı yok (ölçüldü 2026-09-07; düzeltme depoda var, canlı dağıtım geride — B-63). Aynı bağlamayı 'rule.expression'a nesne literali olarak da yazın: "{ year: input.year, company_id: user.company_id }". Kapsam parametresini middleware'den okumanın yolu da budur (platform_guide('workflow') §'Query adımı').`,
1514
- guide: 'ngapps://guides/workflow'
1514
+ guide: 'zeyrek://guides/workflow'
1515
1515
  }]
1516
1516
  : [];
1517
1517
  }
@@ -1531,7 +1531,7 @@ export const policyRules = [
1531
1531
  ruleId: 'WF-010',
1532
1532
  severity: 'block',
1533
1533
  message: "automation.isQueue verilmedi — tetikleme sorgusu IsQueue == false/true ile filtreler, null HİÇBİR ZAMAN eşleşmez ve automation sessizce ölü kalır. Anlık çalışma için isQueue: false, kuyruklu için true verin.",
1534
- guide: 'ngapps://guides/workflow'
1534
+ guide: 'zeyrek://guides/workflow'
1535
1535
  });
1536
1536
  }
1537
1537
  if (!automationSettings.operation) {
@@ -1539,7 +1539,7 @@ export const policyRules = [
1539
1539
  ruleId: 'WF-010',
1540
1540
  severity: 'block',
1541
1541
  message: "automation.operation verilmedi (create | update | delete ...) — tetikleme sorgusu Operation üzerinden eşleşir, boş bırakılan automation tetiklenmez.",
1542
- guide: 'ngapps://guides/workflow'
1542
+ guide: 'zeyrek://guides/workflow'
1543
1543
  });
1544
1544
  }
1545
1545
  if (definition.returnDtoId || automationSettings.returnDtoId) {
@@ -1547,7 +1547,7 @@ export const policyRules = [
1547
1547
  ruleId: 'WF-010',
1548
1548
  severity: 'block',
1549
1549
  message: "Automation'da returnDtoId YASAKTIR (platform validator: 'Return Dto Id' must be empty). state=unready görünmesi normaldir ve tetiklemeyi ETKİLEMEZ — returnDtoId atamaya çalışmayın.",
1550
- guide: 'ngapps://guides/workflow'
1550
+ guide: 'zeyrek://guides/workflow'
1551
1551
  });
1552
1552
  }
1553
1553
  return findings;
@@ -1569,7 +1569,7 @@ export const policyRules = [
1569
1569
  ruleId: 'WF-011',
1570
1570
  severity: 'block',
1571
1571
  message: `Step/branch id'leri gerçek GUID olmalı; geçersiz: ${[...new Set(invalidIds.map(String))].join(', ')}. Ayrıca id'ler veritabanında satırdır — başka bir akıştaki GUID'i tekrar kullanmak RowAlreadyExists üretir, her akışa taze GUID'ler verin.`,
1572
- guide: 'ngapps://guides/workflow'
1572
+ guide: 'zeyrek://guides/workflow'
1573
1573
  }]
1574
1574
  : [];
1575
1575
  }
@@ -1596,7 +1596,7 @@ export const policyRules = [
1596
1596
  ruleId: 'WF-012',
1597
1597
  severity: 'warn',
1598
1598
  message: `'${stepLabel(step)}' table step'inde aynı alan hem fields (yazılacak) hem selectFields (okunacak) içinde: ${overlapping.join(', ')} — platform 'An item with the same key has already been added' üretir; alanı birinden çıkarın.`,
1599
- guide: 'ngapps://guides/workflow'
1599
+ guide: 'zeyrek://guides/workflow'
1600
1600
  }]
1601
1601
  : [];
1602
1602
  });
@@ -1621,7 +1621,7 @@ export const policyRules = [
1621
1621
  ruleId: 'MS-006',
1622
1622
  severity: 'block',
1623
1623
  message: `selectFields'ta fieldId eksik (yalnız fieldSlug yetmez): ${missingFieldIds.join(', ')}. Alan id'lerini entity_get view:'outline' çıktısından alın.`,
1624
- guide: 'ngapps://guides/microservice'
1624
+ guide: 'zeyrek://guides/microservice'
1625
1625
  });
1626
1626
  }
1627
1627
  return findings;
@@ -1642,7 +1642,7 @@ export const policyRules = [
1642
1642
  ruleId: 'AUT-001',
1643
1643
  severity: 'warn',
1644
1644
  message: "steps yalnız 'automation' nesnesinin içinde — platform üst seviyedeki steps'i okur. steps dizisini hem üst seviyeye hem automation içine koyun (PLT-007).",
1645
- guide: 'ngapps://guides/workflow'
1645
+ guide: 'zeyrek://guides/workflow'
1646
1646
  }];
1647
1647
  }
1648
1648
  if (topLevelCount > 0 && nestedCount === 0) {
@@ -1650,7 +1650,7 @@ export const policyRules = [
1650
1650
  ruleId: 'AUT-001',
1651
1651
  severity: 'warn',
1652
1652
  message: "steps yalnız üst seviyede — aynı steps dizisini 'automation' nesnesinin içine de koyun (PLT-007: iki seviyede birden gerekir).",
1653
- guide: 'ngapps://guides/workflow'
1653
+ guide: 'zeyrek://guides/workflow'
1654
1654
  }];
1655
1655
  }
1656
1656
  return [];
@@ -1674,7 +1674,7 @@ export const policyRules = [
1674
1674
  ruleId: 'AUT-002',
1675
1675
  severity: 'warn',
1676
1676
  message: "Bu automation 'revert' taşıyor ve isQueue:false — akış RabbitMQ üzerinden ASYNC koşar. O yolda revert kendi transaction'ını geri alır (akışın yazdıkları kalmaz) ve olay 'failed' damgalanır; bu beklenen davranıştır, kapının çalıştığının izidir. Kapsam dışında kalan tek şey tetikleyen satırdır: o revert'e varılmadan COMMIT olmuş ve çağıran 200 almıştır. İş kuralı ÇAĞIRANI reddetmeli ve tetikleyen satır da geri alınmalıysa isQueue:true + queueOrder verin — o yol satır işlemiyle aynı transaction'da koşar ve çağırana 400 { code: revertType, message: revertMessage } döner.",
1677
- guide: 'ngapps://guides/workflow'
1677
+ guide: 'zeyrek://guides/workflow'
1678
1678
  }];
1679
1679
  }
1680
1680
  },
@@ -1689,7 +1689,7 @@ export const policyRules = [
1689
1689
  ruleId: 'MS-004',
1690
1690
  severity: 'warn',
1691
1691
  message: "source='table' için üst seviye 'entityId' de zorunludur (sourceParameters.entityId tek başına yetmez).",
1692
- guide: 'ngapps://guides/microservice'
1692
+ guide: 'zeyrek://guides/microservice'
1693
1693
  }];
1694
1694
  }
1695
1695
  if (definition.source === 'view' && !definition.viewId) {
@@ -1697,7 +1697,7 @@ export const policyRules = [
1697
1697
  ruleId: 'MS-004',
1698
1698
  severity: 'warn',
1699
1699
  message: "source='view' ucu entity'leri VIEW'den çözer (MicroserviceService:519 `viewService.GetAsync(microservice.ViewId)` → view.Tables); üst seviye 'entityId' değil **viewId** zorunludur.",
1700
- guide: 'ngapps://guides/microservice'
1700
+ guide: 'zeyrek://guides/microservice'
1701
1701
  }];
1702
1702
  }
1703
1703
  return [];
@@ -1726,7 +1726,7 @@ export const policyRules = [
1726
1726
  ruleId: 'MS-005',
1727
1727
  severity: 'block',
1728
1728
  message: `Join tanımında zorunlu alan eksik (${missing.join(', ')}): ${JSON.stringify({ alias: join.alias, path: join.path })}. Alias'sız join platformda 500 'null key' (ArgumentNullException) üretir — bug değil, doğrulanmayan girdi.`,
1729
- guide: 'ngapps://guides/microservice'
1729
+ guide: 'zeyrek://guides/microservice'
1730
1730
  });
1731
1731
  }
1732
1732
  }
@@ -1736,7 +1736,7 @@ export const policyRules = [
1736
1736
  ruleId: 'MS-005',
1737
1737
  severity: 'block',
1738
1738
  message: `Join alias'ları benzersiz olmalı: ${joinAliases.join(', ')}. Aynı alias sessizce ilk join'e eşlenir (TryAdd) ve diğer join'in alanları yanlış tabloya bağlanır — hata bile alınmaz.`,
1739
- guide: 'ngapps://guides/microservice'
1739
+ guide: 'zeyrek://guides/microservice'
1740
1740
  });
1741
1741
  }
1742
1742
  const validAliases = new Set([String(parameters.alias ?? ''), ...joinAliases].filter(alias => alias.length > 0));
@@ -1747,7 +1747,7 @@ export const policyRules = [
1747
1747
  ruleId: 'MS-005',
1748
1748
  severity: 'block',
1749
1749
  message: `selectFields[${select.fieldSlug ?? select.fieldId ?? '?'}] alias'sız — ana tablo alanları için alias = entity slug'ı (${parameters.alias ?? '<sourceParameters.alias>'}) ve path: '' kullanın.`,
1750
- guide: 'ngapps://guides/microservice'
1750
+ guide: 'zeyrek://guides/microservice'
1751
1751
  });
1752
1752
  }
1753
1753
  else if (validAliases.size > 0 && !validAliases.has(selectAlias)) {
@@ -1755,7 +1755,7 @@ export const policyRules = [
1755
1755
  ruleId: 'MS-005',
1756
1756
  severity: 'block',
1757
1757
  message: `selectFields[${select.fieldSlug ?? select.fieldId ?? '?'}] alias'ı '${selectAlias}' tanımlı değil — geçerli alias'lar: ${[...validAliases].join(', ')}. Yanlış alias SQL'de 'missing FROM-clause entry' üretir.`,
1758
- guide: 'ngapps://guides/microservice'
1758
+ guide: 'zeyrek://guides/microservice'
1759
1759
  });
1760
1760
  }
1761
1761
  }
@@ -1783,7 +1783,7 @@ export const policyRules = [
1783
1783
  ruleId: 'ENT-001',
1784
1784
  severity: 'warn',
1785
1785
  message: `'${field.name ?? field.slug ?? '?'}' alanında relationType='${field.relationType}' ama relationId boş — hedef entity'nin id'sini verin.`,
1786
- guide: 'ngapps://guides/entity'
1786
+ guide: 'zeyrek://guides/entity'
1787
1787
  });
1788
1788
  }
1789
1789
  if (field.dbType !== undefined && field.dbType !== 'RELATION') {
@@ -1791,7 +1791,7 @@ export const policyRules = [
1791
1791
  ruleId: 'ENT-001',
1792
1792
  severity: 'warn',
1793
1793
  message: `'${field.name ?? field.slug ?? '?'}' ilişki alanında dbType='${field.dbType}' — ilişki alanının doğru şekli dbType: 'RELATION' + commonType: 'relation'; relation alt nesnesini (primaryKeyId vb.) platform kendisi doldurur, elle vermeyin.`,
1794
- guide: 'ngapps://guides/entity'
1794
+ guide: 'zeyrek://guides/entity'
1795
1795
  });
1796
1796
  }
1797
1797
  if (field.commonType !== undefined && field.commonType !== 'relation') {
@@ -1799,7 +1799,7 @@ export const policyRules = [
1799
1799
  ruleId: 'ENT-001',
1800
1800
  severity: 'warn',
1801
1801
  message: `'${field.name ?? field.slug ?? '?'}' ilişki alanında commonType='${field.commonType}' — 'relation' olmalı.`,
1802
- guide: 'ngapps://guides/entity'
1802
+ guide: 'zeyrek://guides/entity'
1803
1803
  });
1804
1804
  }
1805
1805
  return findings;
@@ -1815,7 +1815,7 @@ export const policyRules = [
1815
1815
  ruleId: 'ENT-002',
1816
1816
  severity: 'warn',
1817
1817
  message: "applicationIds boş: satır uçları bundan ETKİLENMEZ (bağsız entity'de row_create/row_list çalışır), ama entity Studio'nun application bazlı entity listesinde görünmez. Studio'dan yönetilecekse applicationIds: ['<application id>'] verin; yalnız API'den kullanılacaksa boş bırakmak geçerli bir tercihtir.",
1818
- guide: 'ngapps://guides/entity'
1818
+ guide: 'zeyrek://guides/entity'
1819
1819
  }]
1820
1820
  : []
1821
1821
  },
@@ -1838,7 +1838,7 @@ export const policyRules = [
1838
1838
  ruleId: 'ENT-003',
1839
1839
  severity: 'warn',
1840
1840
  message: `'${field.slug ?? field.name}' artan kod alanının dbType'ı tam olarak 'Incremental' yazılır (tek büyük harf), commonType 'incremental' olur.`,
1841
- guide: 'ngapps://guides/entity'
1841
+ guide: 'zeyrek://guides/entity'
1842
1842
  });
1843
1843
  continue;
1844
1844
  }
@@ -1847,7 +1847,7 @@ export const policyRules = [
1847
1847
  ruleId: 'ENT-003',
1848
1848
  severity: 'warn',
1849
1849
  message: `'${field.slug ?? field.name}' dbType='${dbType}' — kontrol büyük/küçük harfe duyarlı, '${dbType.toUpperCase()}' yazın.`,
1850
- guide: 'ngapps://guides/entity'
1850
+ guide: 'zeyrek://guides/entity'
1851
1851
  });
1852
1852
  }
1853
1853
  else {
@@ -1855,7 +1855,7 @@ export const policyRules = [
1855
1855
  ruleId: 'ENT-003',
1856
1856
  severity: 'warn',
1857
1857
  message: `'${field.slug ?? field.name}' dbType='${dbType}' desteklenmiyor. Geçerli tipler (BÜYÜK HARF): UUID, VARCHAR, TEXT, BOOL, INT2, INT4, INT8, DATE, TIME, TIMESTAMP, TIMESTAMPTZ, JSONB, FILE, RELATION — ayrıca sıralı insan-okuyabilir kod için 'Incremental' (commonType 'incremental'). Ondalık tip YOK (NUMERIC/FLOAT/MONEY/DECIMAL reddedilir) — para için INT8+kuruş, yüzde için INT4×100 gibi birim konvansiyonu kullanın ve birimi description'a yazın.`,
1858
- guide: 'ngapps://guides/entity'
1858
+ guide: 'zeyrek://guides/entity'
1859
1859
  });
1860
1860
  }
1861
1861
  }
@@ -1887,7 +1887,7 @@ export const policyRules = [
1887
1887
  ruleId: 'ENT-005',
1888
1888
  severity: 'warn',
1889
1889
  message: `'${field.slug ?? field.name}' alanında commonType eksik — dbType '${field.dbType}' için commonType: '${expected}' verin (commonType'sız bazı tipler 'isn't a supported database type' hatasıyla reddedilir).`,
1890
- guide: 'ngapps://guides/entity'
1890
+ guide: 'zeyrek://guides/entity'
1891
1891
  });
1892
1892
  }
1893
1893
  else if (field.commonType !== expected) {
@@ -1895,7 +1895,7 @@ export const policyRules = [
1895
1895
  ruleId: 'ENT-005',
1896
1896
  severity: 'warn',
1897
1897
  message: `'${field.slug ?? field.name}' alanında commonType='${field.commonType}' — dbType '${field.dbType}' için beklenen: '${expected}'.`,
1898
- guide: 'ngapps://guides/entity'
1898
+ guide: 'zeyrek://guides/entity'
1899
1899
  });
1900
1900
  }
1901
1901
  }
@@ -1918,7 +1918,7 @@ export const policyRules = [
1918
1918
  ruleId: 'ENT-009',
1919
1919
  severity: 'warn',
1920
1920
  message: `'${definition.slug ?? definition.name ?? '?'}' entity'sinde hem kimlik (${slugs.filter(slug => /mail|user_?name|kullanici_adi/.test(slug)).join(', ')}) hem parola alanı var — İKİNCİ bir kimlik sistemi kuruyor olabilirsiniz. Platform her projeye hazır bir 'users' entity'si açar (sabit id 01917ede-330e-7254-8544-eef0db3693af; id/email/password/first_name/last_name, kendi DTO'su, auth middleware'inin okuduğu tablo) ve entity_list'i applicationId ile çağırdığınız için listede GÖRMEMİŞ olabilirsiniz — applicationId'siz çağırıp bakın. Kimlik alanlarını entity_patch ile users'a ekleyip domain verisini ayrı entity'de tutmak, roller/middlewareIds yetkilendirmesiyle konuşan tek bir kimlik bırakır. Bilerek ayrı bir kimlik kuruyorsanız (dış sistemle eşleşen hesaplar, users'a dokunulamayan senaryo) bu uyarıyı geçin. Ayrıntı: platform_guide('entity') §'Hazır entity'ler'.`,
1921
- guide: 'ngapps://guides/entity'
1921
+ guide: 'zeyrek://guides/entity'
1922
1922
  }];
1923
1923
  }
1924
1924
  },
@@ -1936,7 +1936,7 @@ export const policyRules = [
1936
1936
  ruleId: 'ENT-004',
1937
1937
  severity: 'block',
1938
1938
  message: `Birden çok display alanı var (${displayFields.map(field => field.slug ?? field.name).join(', ')}) — entity başına yalnız BİR display alanı olabilir; platform 422 "Duplicate value: 'Display'" döner.`,
1939
- guide: 'ngapps://guides/entity'
1939
+ guide: 'zeyrek://guides/entity'
1940
1940
  }]
1941
1941
  : [];
1942
1942
  }
@@ -1951,7 +1951,7 @@ export const policyRules = [
1951
1951
  if (indexes.length === 0)
1952
1952
  return [];
1953
1953
  const findings = [];
1954
- const guide = 'ngapps://guides/entity';
1954
+ const guide = 'zeyrek://guides/entity';
1955
1955
  const knownFieldIds = new Set(asArray(definition.fields)
1956
1956
  .filter((field) => Boolean(field) && typeof field === 'object')
1957
1957
  .map(field => field.id)
@@ -2064,7 +2064,7 @@ export const policyRules = [
2064
2064
  ruleId: 'ENT-011',
2065
2065
  severity: 'block',
2066
2066
  message: `'${name}' alanı isLocalized ama ${conflicts.join(', ')} taşıyor — platform yalnız düz METİN alanını çok dilli yapar. Bu gövde 400 ile reddedilir (FieldDto validator'ı isLocalized alanında primaryKey/identity/unique false, relationType 'none' ve commonType 'text' ister). Çeviriyi metin alanında tutun; anahtar, benzersizlik ve ilişki ana tabloda kalır. Ayrıntı: platform_guide('entity') §'Çoklu dilli alan'.`,
2067
- guide: 'ngapps://guides/entity'
2067
+ guide: 'zeyrek://guides/entity'
2068
2068
  });
2069
2069
  }
2070
2070
  return findings;
@@ -2097,7 +2097,7 @@ export const policyRules = [
2097
2097
  ruleId: 'MS-007',
2098
2098
  severity: 'block',
2099
2099
  message: `'${alias}' join'inde 'path' boş. Beklenen: '${expected}' (kök entityId + ilişki alanı zinciri). Boş path'te sorgu çalışır ama Studio bu join'in alanlarını seçili gösteremez.`,
2100
- guide: 'ngapps://guides/microservice'
2100
+ guide: 'zeyrek://guides/microservice'
2101
2101
  });
2102
2102
  }
2103
2103
  else if (String(entry.path) !== expected) {
@@ -2105,7 +2105,7 @@ export const policyRules = [
2105
2105
  ruleId: 'MS-007',
2106
2106
  severity: 'block',
2107
2107
  message: `'${alias}' join'inin path'i beklenenden farklı: '${entry.path}' ≠ '${expected}'.`,
2108
- guide: 'ngapps://guides/microservice'
2108
+ guide: 'zeyrek://guides/microservice'
2109
2109
  });
2110
2110
  }
2111
2111
  if (alias)
@@ -2130,7 +2130,7 @@ export const policyRules = [
2130
2130
  ruleId: 'MS-007',
2131
2131
  severity: 'block',
2132
2132
  message: `'${alias}' alias'lı seçili alanın ('${select.fieldSlug ?? select.fieldId}') path'i '${select.path ?? ''}' — join'li alanlarda path kök entityId OLMADAN ilişki alanı zinciri olmalı: '${expected}'.`,
2133
- guide: 'ngapps://guides/microservice'
2133
+ guide: 'zeyrek://guides/microservice'
2134
2134
  });
2135
2135
  }
2136
2136
  }
@@ -2155,7 +2155,7 @@ export const policyRules = [
2155
2155
  ruleId: 'MS-008',
2156
2156
  severity: 'block',
2157
2157
  message: `sourceParameters.${missing.join(' ve ')} eksik. Platform null bırakır, Studio formu guard'sız okuyup sayfayı düşürür. Varsayılanları verin: sort { name:'sortField', type:'sortType', source:'query-string' }, limit { name:'limit', offset:'offset', source:'query-string' }.`,
2158
- guide: 'ngapps://guides/microservice'
2158
+ guide: 'zeyrek://guides/microservice'
2159
2159
  }]
2160
2160
  : [];
2161
2161
  }
@@ -2178,7 +2178,7 @@ export const policyRules = [
2178
2178
  ruleId: 'MS-010',
2179
2179
  severity: 'block',
2180
2180
  message: "enableDynamicFilters yalnız source:'table' + operation:'get' + isSingle:false uçlarda kullanılabilir (validator reddeder).",
2181
- guide: 'ngapps://guides/microservice'
2181
+ guide: 'zeyrek://guides/microservice'
2182
2182
  });
2183
2183
  }
2184
2184
  const staticFilters = flattenFilters(asArray(parameters.filters))
@@ -2189,7 +2189,7 @@ export const policyRules = [
2189
2189
  ruleId: 'MS-010',
2190
2190
  severity: 'block',
2191
2191
  message: `enableDynamicFilters açıkken single filtrelerin hepsi source:'expression' olmalı; şu filtreler değil: ${staticFilters.join(', ')}. Platform 'PrefilterMustBeExpression' ile reddeder. Dinamik filtre uçlarında query-string filtresi YOKTUR — süzme isteği çağrıdaki 'filters' parametresiyle gelir; expression filtreleri yalnız sabit prefilter (ör. tenant/aktiflik) içindir.`,
2192
- guide: 'ngapps://guides/microservice'
2192
+ guide: 'zeyrek://guides/microservice'
2193
2193
  });
2194
2194
  }
2195
2195
  return findings;
@@ -2217,7 +2217,7 @@ export const policyRules = [
2217
2217
  ruleId: 'MS-011',
2218
2218
  severity: 'warn',
2219
2219
  message: `Expression'lar 'user.' okuyor (${expressionEntries.map(entry => String(entry.fieldSlug ?? entry.fieldId ?? '?')).join(', ')}) ama middlewareIds boş — 'user' değişkenini yalnız bir middleware'in set-user step'i kurar, bağlanmazsa runtime 'user is not defined' 500'ü döner. Auth middleware'ini definition.middlewareIds ile bağlayın (platform_guide('middleware')).`,
2220
- guide: 'ngapps://guides/middleware'
2220
+ guide: 'zeyrek://guides/middleware'
2221
2221
  }]
2222
2222
  : [];
2223
2223
  }
@@ -2258,7 +2258,7 @@ export const policyRules = [
2258
2258
  ruleId: 'WF-016',
2259
2259
  severity: 'block',
2260
2260
  message: `previewPayload bir ${Array.isArray(payload) ? 'dizi' : typeof payload} — STRING olmalı. Platform alanı jsEngine.Eval ile çalıştırır; nesne gönderilirse 'Unexpected end of input' ile 500 döner. Kanonik biçim: previewPayload: "({ email: 'a@b.c', password: '1234' })".`,
2261
- guide: 'ngapps://guides/workflow'
2261
+ guide: 'zeyrek://guides/workflow'
2262
2262
  }];
2263
2263
  }
2264
2264
  const source = payload.trim();
@@ -2269,7 +2269,7 @@ export const policyRules = [
2269
2269
  ruleId: 'WF-016',
2270
2270
  severity: 'block',
2271
2271
  message: `previewPayload metni "${source.slice(0, 40)}…" ile başlıyor: bu ifade değerlendirilince bir STRING üretir, nesne değil — preview sessizce input: {} ile koşar ve adımlar 'parametre eksik' hatası verir (hata mesajı adımı suçlar, asıl sorun budur). JSON.stringify çağıran taraftaki JS kodudur; gövdeye ÜRETTİĞİ metni koyun: previewPayload: "({ ... })".`,
2272
- guide: 'ngapps://guides/workflow'
2272
+ guide: 'zeyrek://guides/workflow'
2273
2273
  }];
2274
2274
  }
2275
2275
  if (source.startsWith('{') && !source.startsWith('({')) {
@@ -2277,7 +2277,7 @@ export const policyRules = [
2277
2277
  ruleId: 'WF-016',
2278
2278
  severity: 'block',
2279
2279
  message: `previewPayload "{" ile başlıyor: JavaScript bunu nesne değil BLOK olarak ayrıştırır ve preview input: {} ile koşar. Parantez içine alın: previewPayload: "(${source})".`,
2280
- guide: 'ngapps://guides/workflow'
2280
+ guide: 'zeyrek://guides/workflow'
2281
2281
  }];
2282
2282
  }
2283
2283
  return [];
@@ -2300,7 +2300,7 @@ export const policyRules = [
2300
2300
  ruleId: 'WF-013',
2301
2301
  severity: 'block',
2302
2302
  message: `'${stepLabel(step)}' table step'inde rule.${missing.join(' ve ')} eksik — Studio'da workflow sayfası 'Cannot read properties of null (reading sortValue)' ile açılmaz.`,
2303
- guide: 'ngapps://guides/workflow'
2303
+ guide: 'zeyrek://guides/workflow'
2304
2304
  }]
2305
2305
  : [];
2306
2306
  });
@@ -2325,7 +2325,7 @@ export const policyRules = [
2325
2325
  ruleId: 'ENT-006',
2326
2326
  severity: 'block',
2327
2327
  message: `'${key.slug ?? key.name}' primary key'i identity ama properties.generationType ${properties.generationType === undefined ? 'yok' : `'${String(properties.generationType)}'`} — platform 400 "Please select a valid generation type for '${key.slug ?? key.name}'" döner. Alana properties: { generationType: 0 } (Always) ya da 1 (ByDefault) ekleyin.`,
2328
- guide: 'ngapps://guides/entity'
2328
+ guide: 'zeyrek://guides/entity'
2329
2329
  });
2330
2330
  }
2331
2331
  else if (key.identity !== true) {
@@ -2333,7 +2333,7 @@ export const policyRules = [
2333
2333
  ruleId: 'ENT-006',
2334
2334
  severity: 'warn',
2335
2335
  message: `'${key.slug ?? key.name}' primary key'i otomatik üretilmiyor: identity:true + properties.generationType:0 (Always) verin, yoksa her satırda id'yi elle göndermek gerekir.`,
2336
- guide: 'ngapps://guides/entity'
2336
+ guide: 'zeyrek://guides/entity'
2337
2337
  });
2338
2338
  }
2339
2339
  if (expected === null) {
@@ -2341,7 +2341,7 @@ export const policyRules = [
2341
2341
  ruleId: 'ENT-006',
2342
2342
  severity: 'warn',
2343
2343
  message: `'${key.slug ?? key.name}' primary key'i için dbType '${dbType}' beklenmiyor — UUID (guid) ya da INT2/INT4/INT8 (number) kullanın.`,
2344
- guide: 'ngapps://guides/entity'
2344
+ guide: 'zeyrek://guides/entity'
2345
2345
  });
2346
2346
  }
2347
2347
  else if (key.commonType !== expected) {
@@ -2349,7 +2349,7 @@ export const policyRules = [
2349
2349
  ruleId: 'ENT-006',
2350
2350
  severity: 'warn',
2351
2351
  message: `'${key.slug ?? key.name}' primary key'inde dbType '${dbType}' ile commonType '${key.commonType}' uyuşmuyor — '${expected}' olmalı.`,
2352
- guide: 'ngapps://guides/entity'
2352
+ guide: 'zeyrek://guides/entity'
2353
2353
  });
2354
2354
  }
2355
2355
  }
@@ -2372,7 +2372,7 @@ export const policyRules = [
2372
2372
  ruleId: 'ENT-007',
2373
2373
  severity: 'warn',
2374
2374
  message: `'${field.slug ?? field.name}' alanında valueOptions dolu ama isEnum true değil — ikisi birlikte verilmeli.`,
2375
- guide: 'ngapps://guides/entity'
2375
+ guide: 'zeyrek://guides/entity'
2376
2376
  }];
2377
2377
  }
2378
2378
  if (field.isEnum === true && options.length === 0) {
@@ -2380,7 +2380,7 @@ export const policyRules = [
2380
2380
  ruleId: 'ENT-007',
2381
2381
  severity: 'warn',
2382
2382
  message: `'${field.slug ?? field.name}' alanı isEnum:true ama valueOptions boş — [{ value, icon }] listesi verin.`,
2383
- guide: 'ngapps://guides/entity'
2383
+ guide: 'zeyrek://guides/entity'
2384
2384
  }];
2385
2385
  }
2386
2386
  const malformed = options.filter((option) => Boolean(option) && typeof option === 'object').filter(option => !option.value);
@@ -2389,7 +2389,7 @@ export const policyRules = [
2389
2389
  ruleId: 'ENT-007',
2390
2390
  severity: 'warn',
2391
2391
  message: `'${field.slug ?? field.name}' alanının valueOptions öğelerinde 'value' eksik — { value: 'Aktif', icon: '#47ad10' } biçimi bekleniyor.`,
2392
- guide: 'ngapps://guides/entity'
2392
+ guide: 'zeyrek://guides/entity'
2393
2393
  }]
2394
2394
  : [];
2395
2395
  })
@@ -2407,7 +2407,7 @@ export const policyRules = [
2407
2407
  ruleId: 'ENT-008',
2408
2408
  severity: 'block',
2409
2409
  message: `slug '${slug}' bir platform tablosunun adı — environment şeması bu tabloyu zaten taşıyor. Migration 'relation "${slug}" already exists' ile düşer ve entity kaydı hiç oluşmaz. Eş anlamlı bir ad seçin (ör. şube/branş için 'branches' yerine 'specialties').`,
2410
- guide: 'ngapps://guides/entity'
2410
+ guide: 'zeyrek://guides/entity'
2411
2411
  }];
2412
2412
  }
2413
2413
  },
@@ -2427,7 +2427,7 @@ export const policyRules = [
2427
2427
  ruleId: 'MS-009',
2428
2428
  severity: 'warn',
2429
2429
  message: `sourceParameters.operation='${parameters.operation}' ama returnFields boş — yanıt yalnız primary key döner. Çağıranın göreceği alanları returnFields'a ekleyin (write operasyonunda selectFields yok sayılır).`,
2430
- guide: 'ngapps://guides/microservice'
2430
+ guide: 'zeyrek://guides/microservice'
2431
2431
  }]
2432
2432
  : [];
2433
2433
  }
@@ -2454,7 +2454,7 @@ export const policyRules = [
2454
2454
  ruleId: 'WF-014',
2455
2455
  severity: 'block',
2456
2456
  message: `'${stepLabel(step)}' condition step'inde rule.items[].branchId '${dangling.join("', '")}' hiçbir branch'in id'siyle eşleşmiyor — koşul satırı hiçbir dala bağlı değil. branches[].id değerlerini kullanın.`,
2457
- guide: 'ngapps://guides/workflow'
2457
+ guide: 'zeyrek://guides/workflow'
2458
2458
  }]
2459
2459
  : [];
2460
2460
  });
@@ -2479,7 +2479,7 @@ export const policyRules = [
2479
2479
  ruleId: 'FLOW-004',
2480
2480
  severity: 'block',
2481
2481
  message: `'${flowStepLabel(step)}' (type='${type}') adımının dal adı '${wrong.join("', '")}' geçersiz — ${allowed.length > 0 ? `beklenen: '${allowed.join("' | '")}'` : 'bu adım tipi dal taşımaz'}. Dal adı etiket değil motorun anahtarıdır: runtime branch.id'yi branch.name'den üretip engine.next('always') ile arar, bulamazsa akış SESSİZCE durur; Studio da zinciri sourceBranch === 'always' ile çizdiği için panel Start kartından sonrası BOŞ görünür.`,
2482
- guide: 'ngapps://guides/page'
2482
+ guide: 'zeyrek://guides/page'
2483
2483
  }];
2484
2484
  })
2485
2485
  },
@@ -2718,7 +2718,7 @@ export const policyRules = [
2718
2718
  ruleId: 'FLOW-005',
2719
2719
  severity: 'block',
2720
2720
  message: `${field} içinde hedefi olmayan dal var: ${dangling.join(', ')}. branches[].nextStepId hedef adımın stepId STRING'idir; eşleşmeyeni backend sessizce null'a çevirir ve akış orada biter.`,
2721
- guide: 'ngapps://guides/page'
2721
+ guide: 'zeyrek://guides/page'
2722
2722
  }];
2723
2723
  }
2724
2724
  const startStep = steps.find(step => step.type === 'start');
@@ -2727,7 +2727,7 @@ export const policyRules = [
2727
2727
  ruleId: 'FLOW-005',
2728
2728
  severity: 'block',
2729
2729
  message: `${field} içinde type='start' adımı yok — motor akışı start adımından başlatır (flow-engine.ts:115), start yoksa hiçbir şey çalışmaz.`,
2730
- guide: 'ngapps://guides/page'
2730
+ guide: 'zeyrek://guides/page'
2731
2731
  }];
2732
2732
  }
2733
2733
  const reached = new Set();
@@ -2749,7 +2749,7 @@ export const policyRules = [
2749
2749
  ruleId: 'FLOW-005',
2750
2750
  severity: 'block',
2751
2751
  message: `${field} içinde start'tan erişilemeyen adım var: ${unreachable.map(flowStepLabel).join(', ')}. Önceki adımın branches[].nextStepId alanına bu adımların stepId'sini yazın.`,
2752
- guide: 'ngapps://guides/page'
2752
+ guide: 'zeyrek://guides/page'
2753
2753
  }]
2754
2754
  : [];
2755
2755
  })
@@ -2768,7 +2768,7 @@ export const policyRules = [
2768
2768
  ruleId: 'FLOW-006',
2769
2769
  severity: 'block',
2770
2770
  message: `'${flowStepLabel(step)}' setter adımında iteratees[].type='${type}' geçersiz — yalnız 'change' (tek prop'a değer yaz) ve 'fill' (diziyi mapping ile eşleyerek yaz) vardır. Backend serbest string sakladığı için istek 200 döner ama setter.ts hiçbir dala girmez: adım çalışır, HİÇBİR ŞEY yapmaz.`,
2771
- guide: 'ngapps://guides/page'
2771
+ guide: 'zeyrek://guides/page'
2772
2772
  })))
2773
2773
  },
2774
2774
  {
@@ -2789,7 +2789,7 @@ export const policyRules = [
2789
2789
  ruleId: 'WF-018',
2790
2790
  severity: 'block',
2791
2791
  message: `'${stepLabel(step)}' loop step'inde rule.stepRule yok${hasChildren ? " — ama rule.children dolu: çocuk kural alanının adı 'children' DEĞİL 'stepRule'dur (tekil)" : ''}. Çocuksuz loop çalışma anında NullReferenceException verir ve hata mesajı arrayExpression'ı suçlar. Çocuğun kendi rule gövdesini rule.stepRule'a koyun; loop'un çıktısı [{ item, result }] dizisidir. Geçerli öğeye 'loopItem' ile erişilir AMA yalnız loop'un kendi değerlendirdiği ifadelerde (table çocuğunun fields[].value / filters[].value, workflow ve microfunction çocuğunun expression'ı gibi) — 'code' çocuğunda loopItem TANIMSIZDIR ve adım "loopItem is not defined" ile düşer (ölçüldü 2026-09-16); her öğe için hesabı arrayExpression'da önden yapın.`,
2792
- guide: 'ngapps://guides/workflow'
2792
+ guide: 'zeyrek://guides/workflow'
2793
2793
  });
2794
2794
  }
2795
2795
  if (String(rule.arrayExpression ?? '').trim().length === 0) {
@@ -2797,7 +2797,7 @@ export const policyRules = [
2797
2797
  ruleId: 'WF-018',
2798
2798
  severity: 'block',
2799
2799
  message: `'${stepLabel(step)}' loop step'inde rule.arrayExpression boş — döngü neyi yineleyeceğini bilemez. Diziyi üreten JS ifadesini yazın (ör. "input.questions || []").`,
2800
- guide: 'ngapps://guides/workflow'
2800
+ guide: 'zeyrek://guides/workflow'
2801
2801
  });
2802
2802
  }
2803
2803
  return findings;
@@ -2822,7 +2822,7 @@ export const policyRules = [
2822
2822
  ruleId: 'FLOW-019',
2823
2823
  severity: 'block',
2824
2824
  message: `'${flowStepLabel(step)}' code adımının gövdesi yok. Kod JS METNİ olarak args.value alanında durur — runtime onu \`(async () => { <value> })()\` içinde koşturur; alan boşken adım hata vermeden NO-OP olur ve akış hiçbir şey yapmadan devam eder.${strays.length > 0 ? ` Gövdeyi args.${strays.join('/args.')} alanına yazmışsınız: bu anahtar StepManagementArgument sözleşmesinde YOK ve platform onu sessizce düşürür — args.value olarak yazın.` : ''} Değeri bir komponentten okuyacaksanız code adımına hiç gerek yoktur: parametreye value { type: 'property', ref: { source: 'component', element, property } } verin.`,
2825
- guide: 'ngapps://guides/page'
2825
+ guide: 'zeyrek://guides/page'
2826
2826
  }];
2827
2827
  })
2828
2828
  },
@@ -2841,7 +2841,7 @@ export const policyRules = [
2841
2841
  ruleId: 'FLOW-028',
2842
2842
  severity: 'warn',
2843
2843
  message: `'${flowStepLabel(step)}' code adımı platformun kendi ucuna ham istek atıyor. Bu yol runtime'ın istek katmanını atlar: X-Environment elle kurulur, CSRF başlığı yoktur (çerezli POST 403 CsrfTokenMismatchException), 401'de oturum yenilenmez ve istek microservice.execute kararını ve gölge günlüğünü hiç görmez. Platform davranışını çağırmanın yolu microservice adımıdır: karşılığı olan bir system operation varsa (microservice_system_operation_list — giriş için access.session.create, oturumdaki kullanıcı için access.session.get, çıkış için access.session.delete) source:'system' bir uç açın ve akışa type:'microservice' adımı koyun; sonuç Steps.<adım>.data'dadır, kod adımı yalnız onu biçimler.`,
2844
- guide: 'ngapps://guides/page'
2844
+ guide: 'zeyrek://guides/page'
2845
2845
  }];
2846
2846
  })
2847
2847
  },
@@ -2864,7 +2864,7 @@ export const policyRules = [
2864
2864
  ruleId: 'FLOW-037',
2865
2865
  severity: 'warn',
2866
2866
  message: `'${flowStepLabel(step)}' adımı platformun oturum çerezine (ZY_App_ · ZY_AppRefresh_ · ZY_Csrf_) akıştan dokunuyor. Bu çerezler sunucunun HttpOnly çerezleridir: akışın cookie/storage deposu onlara ulaşmaz (mobilde Keychain/kv-store, web'de document.cookie) ve refresh ailesi sunucuda açık kaldığı için kullanıcı kapat-aç sonrası yeniden girişli olur. Çıkış için source:'system', systemOperation:'access.session.delete', isAnonymous:true bir uç açın ve akışa type:'microservice' adımı koyun, ardından redirect ile giriş sayfasına gidin — uç refresh ailesini iptal eder ve üç çerezi yanıtla siler. Uygulamanın kendi değerleri (ör. 'beni hatırla' bayrağı) storage'da kalabilir.`,
2867
- guide: 'ngapps://guides/access'
2867
+ guide: 'zeyrek://guides/access'
2868
2868
  }];
2869
2869
  })
2870
2870
  },
@@ -2888,7 +2888,7 @@ export const policyRules = [
2888
2888
  message: workflowShape
2889
2889
  ? `'${label}' condition adımı BACKEND WORKFLOW şeklini taşıyor (rule/items). Sayfa akışının motoru başka bir motordur ve yalnız 'args.rules' okur (condition.ts); workflow şekli 200 ile kaydedilir, Studio çizer ve kural HİÇ değerlendirilmez — akış sessizce dalsız kalır. Doğru gövde: ${shape}`
2890
2890
  : `'${label}' condition adımında 'args.rules' yok ya da boş. Motor kural listesi boşken hiçbir dala girmez ve akış o adımda sessizce biter (condition.ts). Doğru gövde: ${shape}`,
2891
- guide: 'ngapps://guides/page'
2891
+ guide: 'zeyrek://guides/page'
2892
2892
  }];
2893
2893
  }
2894
2894
  const findings = [];
@@ -2898,7 +2898,7 @@ export const policyRules = [
2898
2898
  ruleId: 'FLOW-020',
2899
2899
  severity: 'block',
2900
2900
  message: `'${label}' condition adımının İLK kuralı type:'${String(first.type ?? '')}' — motor zinciri yalnız rules[0].type === 'if' iken başlatır (condition.ts), aksi hâlde adım hiçbir dala girmez ve akış sessizce biter. Zincirin başına 'if' kuralını koyun; devamı 'else-if', kapanışı boş ifadeli 'else' olur.`,
2901
- guide: 'ngapps://guides/page'
2901
+ guide: 'zeyrek://guides/page'
2902
2902
  });
2903
2903
  }
2904
2904
  // YALNIZ `name` — motor dalı adıyla arar (Runtime.svelte:330 `branch.name || ''`).
@@ -2916,7 +2916,7 @@ export const policyRules = [
2916
2916
  ruleId: 'FLOW-020',
2917
2917
  severity: 'block',
2918
2918
  message: `'${label}' condition adımının '${type || '?'}' kuralında 'id' yok. Dal adı kuralın id'sidir (engine.next(rule.id)); id vermezseniz backend kendi GUID'ini üretir (StepManagementSchema.cs \`Guid.CreateVersion7()\`), yazdığınız branches[].name ona ASLA eşleşmez ve dal sessizce ölür. Taze bir GUID üretip hem rule.id'ye hem branches[].name'e aynısını yazın.`,
2919
- guide: 'ngapps://guides/page'
2919
+ guide: 'zeyrek://guides/page'
2920
2920
  });
2921
2921
  continue;
2922
2922
  }
@@ -2925,7 +2925,7 @@ export const policyRules = [
2925
2925
  ruleId: 'FLOW-020',
2926
2926
  severity: 'block',
2927
2927
  message: `'${label}' condition adımının '${ruleLabel}' kuralında id GUID değil. Backend bu alanı Guid'e çevirir (StepManagementSchema.cs) ve okunabilir bir ad isteği \`The JSON value could not be converted to System.Guid\` ile reddeder. Dal adı da aynı GUID olmak zorunda olduğu için iki yerde birden okunabilir ad kullanamazsınız: taze bir GUID üretip hem rule.id'ye hem branches[].name'e yazın.`,
2928
- guide: 'ngapps://guides/page'
2928
+ guide: 'zeyrek://guides/page'
2929
2929
  });
2930
2930
  continue;
2931
2931
  }
@@ -2934,7 +2934,7 @@ export const policyRules = [
2934
2934
  ruleId: 'FLOW-020',
2935
2935
  severity: 'block',
2936
2936
  message: `'${label}' condition adımının '${ruleLabel}' kuralında type:'${type}' geçersiz — kabul edilen küme 'if' · 'else-if' · 'else' (condition.types.ts).`,
2937
- guide: 'ngapps://guides/page'
2937
+ guide: 'zeyrek://guides/page'
2938
2938
  });
2939
2939
  }
2940
2940
  if (type === 'else' && expression.trim().length > 0) {
@@ -2942,7 +2942,7 @@ export const policyRules = [
2942
2942
  ruleId: 'FLOW-020',
2943
2943
  severity: 'warn',
2944
2944
  message: `'${label}' condition adımının '${ruleLabel}' kuralı type:'else' ama 'expression' dolu. Motor else dalını YALNIZ ifade boşken fallback sayar (condition.ts \`!rule.expression && rule.type === 'else'\`); dolu else normal bir karşılaştırmaya döner. Hiçbir kural tutmazsa akış dalsız biter ve 'always' dalı DA koşmaz — motor always'i yalnız eşleşen dalın completed/stopped'ından çağırır. Fallback istiyorsanız expression'ı boş bırakın.`,
2945
- guide: 'ngapps://guides/page'
2945
+ guide: 'zeyrek://guides/page'
2946
2946
  });
2947
2947
  }
2948
2948
  if (branchNames.size > 0 && !branchNames.has(id)) {
@@ -2950,7 +2950,7 @@ export const policyRules = [
2950
2950
  ruleId: 'FLOW-020',
2951
2951
  severity: 'block',
2952
2952
  message: `'${label}' condition adımının '${ruleLabel}' kuralının id'si hiçbir branches[].name ile eşleşmiyor. Motor dalı adıyla arar (Runtime.svelte:330 branch.name → branch.id, flow-engine.ts:93) — eşleşme yoksa kural tutsa bile akış o dalda durur. branches'a { name: '${id}', nextStepId: '<hedef stepId>' } ekleyin.`,
2953
- guide: 'ngapps://guides/page'
2953
+ guide: 'zeyrek://guides/page'
2954
2954
  });
2955
2955
  }
2956
2956
  }
@@ -2962,7 +2962,7 @@ export const policyRules = [
2962
2962
  ruleId: 'FLOW-020',
2963
2963
  severity: 'warn',
2964
2964
  message: `'${label}' condition adımında 'else' kuralı yok. Hiçbir ifade tutmazsa motor zinciri sessizce bitirir: akış dalsız kalır ve 'always' dalı DA koşmaz — always yalnız eşleşen dalın completed/stopped'ından tetiklenir (condition.ts). Yükleniyor bayrağını always ile kapatıyorsanız bayrak açık kalır. Zinciri boş ifadeli bir { type: 'else', expression: '' } kuralıyla kapatın.`,
2965
- guide: 'ngapps://guides/page'
2965
+ guide: 'zeyrek://guides/page'
2966
2966
  });
2967
2967
  }
2968
2968
  return findings;
@@ -2983,7 +2983,7 @@ export const policyRules = [
2983
2983
  ruleId: 'FLOW-021',
2984
2984
  severity: 'warn',
2985
2985
  message: "errorSteps yalnız 'start' adımı taşıyor — motor bunu hata yolu SAYMAZ (flow-engine.ts hasErrorFlow: start dışında en az bir adım arar). Hata yolu kurulmuş görünür ama uç 4xx dönünce onError false döner, akış 'always' dalından hata gövdesiyle devam eder ve kullanıcıya hiçbir mesaj ulaşmaz. start'ın ardına en az bir adım bağlayın: alert yeter — 'message' alanı metin şablonudur (FLOW-022), ucun kendi mesajı '{{ Steps.error.message }}' ile gösterilir; {{ }} dışında yazılan ifadeyi kullanıcı harfi harfine görür. Mesajı bir bileşene yazacaksan setter (value.type:'code' → Steps.error.message).",
2986
- guide: 'ngapps://guides/page'
2986
+ guide: 'zeyrek://guides/page'
2987
2987
  }];
2988
2988
  }
2989
2989
  },
@@ -3004,7 +3004,7 @@ export const policyRules = [
3004
3004
  ruleId: 'FLOW-022',
3005
3005
  severity: 'warn',
3006
3006
  message: `'${label}' ${type} adımının '${field}' alanı {{ }} dışında ifade içeriyor: bu alan METİN ŞABLONUDUR (kök ADR 0003 §Metin şablonu) — yalnız {{ }} içi çözülür, dışındaki ifade kullanıcıya harfi harfine görünür. İfadeyi sarın: '{{ Steps.error.message }}', 'ilac-{{ item.id }}', '{{ t('anahtar') }}' (çeviri).`,
3007
- guide: 'ngapps://guides/page'
3007
+ guide: 'zeyrek://guides/page'
3008
3008
  }));
3009
3009
  const literalFindings = (flowLiteralTextFields.get(type) ?? [])
3010
3010
  .filter(field => flowExpressionLooking.test(text(field)) || text(field).includes('{{'))
@@ -3014,7 +3014,7 @@ export const policyRules = [
3014
3014
  message: type === 'share'
3015
3015
  ? `'${label}' share adımının '${field}' alanı ifade ya da {{ }} içeriyor ama bu alan DÜZ METİNDİR: başlık paylaşım penceresine olduğu gibi gider (iOS'ta e-posta konusu, Android'de seçici başlığı), ne ifade ne şablon çözülür. Değişen içeriği ifade olan 'message' alanına yazın — ör. message: "'Şuna bak: ' + Page.properties.name"; bağlantı 'path' alanındadır.`
3016
3016
  : `'${label}' ${type} adımının '${field}' alanı ifade ya da {{ }} içeriyor ama bu alan DÜZ METİNDİR (kök ADR 0003): açılacak sayfanın slug'ı olduğu gibi kullanılır, ne ifade ne şablon çözülür. Değişen kısmı ifade olan 'query' (sayfanın sorgusu) alanına yazın.`,
3017
- guide: 'ngapps://guides/page'
3017
+ guide: 'zeyrek://guides/page'
3018
3018
  }));
3019
3019
  return [...templateFindings, ...literalFindings];
3020
3020
  })
@@ -3037,7 +3037,7 @@ export const policyRules = [
3037
3037
  ruleId: 'FLOW-035',
3038
3038
  severity: filled('path') ? 'warn' : 'block',
3039
3039
  message: `'${flowStepLabel(step)}' share adımının bağlantısı args.${strayLinks.join('/args.')} alanında: bu anahtar StepManagementArgument sözleşmesinde YOK, platform onu 200 ile sessizce düşürür ve adım bağlantısız kalır. Bağlantıyı args.path'e ifade olarak yazın — ör. "'https://ornek.app/urun/' + Page.queryParams.id".`,
3040
- guide: 'ngapps://guides/page'
3040
+ guide: 'zeyrek://guides/page'
3041
3041
  });
3042
3042
  }
3043
3043
  if (strayTexts.length > 0) {
@@ -3045,7 +3045,7 @@ export const policyRules = [
3045
3045
  ruleId: 'FLOW-035',
3046
3046
  severity: filled('message') ? 'warn' : 'block',
3047
3047
  message: `'${flowStepLabel(step)}' share adımının metni args.${strayTexts.join('/args.')} alanında: bu anahtar StepManagementArgument sözleşmesinde YOK, platform onu sessizce düşürür. Metni args.message'a ifade olarak yazın — ör. "'Şuna bak: ' + Page.properties.name".`,
3048
- guide: 'ngapps://guides/page'
3048
+ guide: 'zeyrek://guides/page'
3049
3049
  });
3050
3050
  }
3051
3051
  for (const key of ['message', 'path']) {
@@ -3055,7 +3055,7 @@ export const policyRules = [
3055
3055
  ruleId: 'FLOW-035',
3056
3056
  severity: 'block',
3057
3057
  message: `'${flowStepLabel(step)}' share adımının '${key}' alanı tırnaksız bir adres: '${value}'. Bu alan İFADEDİR — tırnaksız adres JS'te etiket + yorumdur, undefined döner ve hiçbir şey paylaşılmaz. Dize olarak yazın: "'${value}'".`,
3058
- guide: 'ngapps://guides/page'
3058
+ guide: 'zeyrek://guides/page'
3059
3059
  });
3060
3060
  }
3061
3061
  }
@@ -3091,7 +3091,7 @@ export const policyRules = [
3091
3091
  : allowed.has(trimmed)
3092
3092
  ? `'${flowStepLabel(step)}' ${step.type} adımının ${field} değerinin çevresinde boşluk var: '${value}'. Platform kırpmadan karşılaştırır ve 400 döner — args.value: '${trimmed}' yazın.`
3093
3093
  : `'${flowStepLabel(step)}' ${step.type} adımının ${field} değeri '${value}' tanınmıyor; platform 400 döner. Kullanılabilir: ${[...allowed].join(', ')} (boş → ${haptic ? 'medium' : 'balanced'}).`,
3094
- guide: 'ngapps://guides/mobile'
3094
+ guide: 'zeyrek://guides/mobile'
3095
3095
  });
3096
3096
  }
3097
3097
  if (stray.length > 0) {
@@ -3099,7 +3099,7 @@ export const policyRules = [
3099
3099
  ruleId: 'FLOW-029',
3100
3100
  severity: value ? 'warn' : 'block',
3101
3101
  message: `'${flowStepLabel(step)}' ${step.type} adımının ${field} değeri args.${stray.join('/args.')} alanında: bu anahtar StepManagementArgument sözleşmesinde YOK, platform onu 200 ile sessizce düşürür ve adım varsayılanla (${haptic ? 'medium' : 'balanced'}) koşar. Değeri args.value'ya düz metin olarak yazın — ör. args.value: '${haptic ? 'success' : 'high'}'.`,
3102
- guide: 'ngapps://guides/mobile'
3102
+ guide: 'zeyrek://guides/mobile'
3103
3103
  });
3104
3104
  }
3105
3105
  if (!haptic && ['reverseGeocode', 'address', 'geocode'].some(key => args[key] !== undefined)) {
@@ -3107,7 +3107,7 @@ export const policyRules = [
3107
3107
  ruleId: 'FLOW-029',
3108
3108
  severity: 'warn',
3109
3109
  message: `'${flowStepLabel(step)}' location adımında adres anahtarı sözleşmede YOK ve sessizce düşer. Adres varsayılan olarak çözülür (cihazda; web'de hep null); kapatmak için args.isRaw: true yazın.`,
3110
- guide: 'ngapps://guides/mobile'
3110
+ guide: 'zeyrek://guides/mobile'
3111
3111
  });
3112
3112
  }
3113
3113
  return findings;
@@ -3131,7 +3131,7 @@ export const policyRules = [
3131
3131
  ruleId: 'FLOW-039',
3132
3132
  severity: 'block',
3133
3133
  message: `'${flowStepLabel(step)}' ad-show adımının yerleşimi yok: args.value mağaza ayarındaki tam ekran yerleşimin ADINI ister (platform 422 döner). Yerleşimler: mobile_store_get — ads.units[] (format interstitial, rewarded ya da rewardedInterstitial).`,
3134
- guide: 'ngapps://guides/mobile'
3134
+ guide: 'zeyrek://guides/mobile'
3135
3135
  });
3136
3136
  }
3137
3137
  else if (unquoted !== unit) {
@@ -3139,7 +3139,7 @@ export const policyRules = [
3139
3139
  ruleId: 'FLOW-039',
3140
3140
  severity: 'block',
3141
3141
  message: `'${flowStepLabel(step)}' ad-show adımının yerleşimi tırnaklı yazılmış: ${unit}. Bu alan DÜZ METİNDİR, ifade değil — args.value: '${unquoted}' yazın.`,
3142
- guide: 'ngapps://guides/mobile'
3142
+ guide: 'zeyrek://guides/mobile'
3143
3143
  });
3144
3144
  }
3145
3145
  else if (!adPlacementNamePattern.test(unit)) {
@@ -3147,7 +3147,7 @@ export const policyRules = [
3147
3147
  ruleId: 'FLOW-039',
3148
3148
  severity: 'block',
3149
3149
  message: `'${flowStepLabel(step)}' ad-show adımının yerleşimi bir yerleşim adı değil: '${unit}'. Değer ifade ya da AdMob birim kimliği olamaz; mağaza ayarındaki yerleşimin adıdır (${adPlacementNamePattern.source}). Platform 422 döner. Yerleşimler: mobile_store_get — ads.units[].name.`,
3150
- guide: 'ngapps://guides/mobile'
3150
+ guide: 'zeyrek://guides/mobile'
3151
3151
  });
3152
3152
  }
3153
3153
  if (stray.length > 0) {
@@ -3155,7 +3155,7 @@ export const policyRules = [
3155
3155
  ruleId: 'FLOW-039',
3156
3156
  severity: unit.trim() ? 'warn' : 'block',
3157
3157
  message: `'${flowStepLabel(step)}' ad-show adımında args.${stray.join('/args.')} alanı var: bu anahtar StepManagementArgument sözleşmesinde YOK, platform onu 200 ile sessizce düşürür. Yerleşimin adı args.value'ya düz metin olarak yazılır — ör. args: { value: '<yerleşim adı>' }.`,
3158
- guide: 'ngapps://guides/mobile'
3158
+ guide: 'zeyrek://guides/mobile'
3159
3159
  });
3160
3160
  }
3161
3161
  return findings;
@@ -3188,7 +3188,7 @@ export const policyRules = [
3188
3188
  ruleId: 'FLOW-042',
3189
3189
  severity: 'block',
3190
3190
  message: `'${label}' biometric-auth adımının yedeği tırnaklı yazılmış: ${value}. Bu alan DÜZ METİNDİR, ifade değil — args.value: '${unquoted}' yazın.`,
3191
- guide: 'ngapps://guides/mobile-steps'
3191
+ guide: 'zeyrek://guides/mobile-steps'
3192
3192
  });
3193
3193
  }
3194
3194
  else if (value.trim() && !biometricFallbacks.has(value)) {
@@ -3196,7 +3196,7 @@ export const policyRules = [
3196
3196
  ruleId: 'FLOW-042',
3197
3197
  severity: 'block',
3198
3198
  message: `'${label}' biometric-auth adımının yedeği '${value}' kümede değil: args.value ${[...biometricFallbacks].join(', ')} olur (boş = device; ifade ve çevresinde boşluk yazılamaz). Platform 422 döner.`,
3199
- guide: 'ngapps://guides/mobile-steps'
3199
+ guide: 'zeyrek://guides/mobile-steps'
3200
3200
  });
3201
3201
  }
3202
3202
  if (args.fallback !== undefined && args.fallback !== null && args.fallback !== '') {
@@ -3207,7 +3207,7 @@ export const policyRules = [
3207
3207
  message: kept
3208
3208
  ? `'${label}' biometric-auth adımında args.fallback var: sözleşmede YOK ve 200 ile sessizce düşer. Yedek args.value'da zaten '${value}' — args.fallback'ı kaldırın.`
3209
3209
  : `'${label}' biometric-auth adımında args.fallback var: yedek args.value alanındadır (${[...biometricFallbacks].join(' | ')}). args.fallback sözleşmede YOK ve 200 ile sessizce düşer — adım args.value ile ('${value || 'device'}') kaydedilir, istediğiniz yedek kaybolur.`,
3210
- guide: 'ngapps://guides/mobile-steps'
3210
+ guide: 'zeyrek://guides/mobile-steps'
3211
3211
  });
3212
3212
  }
3213
3213
  const reasonKeys = ['reason', 'prompt', 'promptMessage'].filter(key => args[key] !== undefined && args[key] !== null && args[key] !== '');
@@ -3216,7 +3216,7 @@ export const policyRules = [
3216
3216
  ruleId: 'FLOW-042',
3217
3217
  severity: 'warn',
3218
3218
  message: `'${label}' biometric-auth adımında args.${reasonKeys.join('/args.')} var: sistem penceresindeki gerekçe args.title alanındadır. Bu anahtar sözleşmede YOK ve 200 ile sessizce düşer; pencere uygulama dilindeki varsayılan gerekçeyle açılır.`,
3219
- guide: 'ngapps://guides/mobile-steps'
3219
+ guide: 'zeyrek://guides/mobile-steps'
3220
3220
  });
3221
3221
  }
3222
3222
  const cancelKeys = ['cancelLabel', 'cancel'].filter(key => args[key] !== undefined && args[key] !== null && args[key] !== '');
@@ -3225,7 +3225,7 @@ export const policyRules = [
3225
3225
  ruleId: 'FLOW-042',
3226
3226
  severity: 'warn',
3227
3227
  message: `'${label}' biometric-auth adımında args.${cancelKeys.join('/args.')} var: vazgeç düğmesinin metni args.cancelText alanındadır. Bu anahtar sözleşmede YOK ve 200 ile sessizce düşer.`,
3228
- guide: 'ngapps://guides/mobile-steps'
3228
+ guide: 'zeyrek://guides/mobile-steps'
3229
3229
  });
3230
3230
  }
3231
3231
  const errorBranch = flowBranches(step).some(branch => branch.name === 'error' && Boolean(branch.nextStepId));
@@ -3235,7 +3235,7 @@ export const policyRules = [
3235
3235
  ruleId: 'FLOW-042',
3236
3236
  severity: 'warn',
3237
3237
  message: `'${label}' biometric-auth adımının error dalı da akışın hata adımları da bağlı değil: kullanıcı vazgeçince ya da doğrulama olmayınca akış BU ADIMDA BİTER, always'e bağlı sonraki adım koşmaz (kapı kapalı kalır). Kullanıcıya bir şey söylenecekse error dalını bağlayın${insideErrorFlow ? ' (adım hata akışının içinde: hata akışının kendi hata akışı yoktur)' : ''} — Steps.${resultName}.error.status: cancelled, not-enrolled, lockout, failed, unavailable, unsupported (web uygulaması ve production /view), invalid.`,
3238
- guide: 'ngapps://guides/mobile-steps'
3238
+ guide: 'zeyrek://guides/mobile-steps'
3239
3239
  });
3240
3240
  }
3241
3241
  return findings;
@@ -3272,7 +3272,7 @@ export const policyRules = [
3272
3272
  : lowered.length > 0
3273
3273
  ? `'${flowStepLabel(step)}' scan-code adımının kod türü büyük harfle yazılmış: ${lowered.join(', ')}. Adlar küçük harftir ve birebir karşılaştırılır (platform 422 döner) — ${lowered.map(name => `'${name.toLowerCase()}'`).join(', ')} yazın.`
3274
3274
  : `'${flowStepLabel(step)}' scan-code adımının kod türü tanınmıyor: ${unknown.join(', ')}; platform 422 döner. Kullanılabilir: ${allowed} (boş → hepsi).`,
3275
- guide: 'ngapps://guides/mobile-steps'
3275
+ guide: 'zeyrek://guides/mobile-steps'
3276
3276
  });
3277
3277
  }
3278
3278
  if (stray.length > 0) {
@@ -3280,7 +3280,7 @@ export const policyRules = [
3280
3280
  ruleId: 'FLOW-042',
3281
3281
  severity: names.length > 0 ? 'warn' : 'block',
3282
3282
  message: `'${flowStepLabel(step)}' scan-code adımında args.${stray.join('/args.')} alanı var: bu anahtar StepManagementArgument sözleşmesinde YOK, platform onu 200 ile sessizce düşürür ve adım bütün kod türlerini okur. Türler args.value'ya virgüllü düz metin olarak yazılır (ör. 'qr,ean13'). Kullanılabilir: ${allowed}.`,
3283
- guide: 'ngapps://guides/mobile-steps'
3283
+ guide: 'zeyrek://guides/mobile-steps'
3284
3284
  });
3285
3285
  }
3286
3286
  return findings;
@@ -3311,7 +3311,7 @@ export const policyRules = [
3311
3311
  ruleId: 'FLOW-045',
3312
3312
  severity: 'block',
3313
3313
  message: `'${label}' purchase adımının ürünü yok: args.value ürünün Zeyrek anahtarını ister (platform 422 FlowStepPurchaseProductMissing döner) — düz anahtar ('premium_yillik') ya da şablon ('{{ Components.plan.value }}'). Anahtarlar: mobile_product_list.`,
3314
- guide: 'ngapps://guides/mobile-steps'
3314
+ guide: 'zeyrek://guides/mobile-steps'
3315
3315
  });
3316
3316
  }
3317
3317
  else if (!value.includes('{{') && !purchaseProductKeyPattern.test(value)) {
@@ -3323,7 +3323,7 @@ export const policyRules = [
3323
3323
  : /[.([]/.test(value)
3324
3324
  ? `'${label}' purchase adımının ürünü {{ }} dışında ifade: '${value}'. args.value METİN ŞABLONUDUR — ifade harfi harfine anahtar sayılır, cihaz 'invalid' döner. Sarın: '{{ ${value} }}'.`
3325
3325
  : `'${label}' purchase adımının ürünü bir ürün anahtarı değil: '${value}' (${purchaseProductKeyPattern.source}). Katalogdaki hiçbir anahtar bu biçimde olamaz: gateway katalog denetimi yazımı durdurur, cihaz 'invalid' döner. Anahtarlar: mobile_product_list.`,
3326
- guide: 'ngapps://guides/mobile-steps'
3326
+ guide: 'zeyrek://guides/mobile-steps'
3327
3327
  });
3328
3328
  }
3329
3329
  if (stray.length > 0) {
@@ -3331,7 +3331,7 @@ export const policyRules = [
3331
3331
  ruleId: 'FLOW-045',
3332
3332
  severity: value ? 'warn' : 'block',
3333
3333
  message: `'${label}' purchase adımında args.${stray.join('/args.')} alanı var: bu anahtar StepManagementArgument sözleşmesinde YOK, platform onu 200 ile sessizce düşürür. Ürünün anahtarı args.value'ya yazılır — ör. args: { value: 'premium_yillik' }.`,
3334
- guide: 'ngapps://guides/mobile-steps'
3334
+ guide: 'zeyrek://guides/mobile-steps'
3335
3335
  });
3336
3336
  }
3337
3337
  }
@@ -3342,7 +3342,7 @@ export const policyRules = [
3342
3342
  ruleId: 'FLOW-045',
3343
3343
  severity: 'warn',
3344
3344
  message: `'${label}' ${String(step.type)} adımının error dalı da akışın hata adımları da bağlı değil: kullanıcı vazgeçince, ödeme onay beklerken ya da mağaza yokken akış BU ADIMDA BİTER, always'e bağlı adım koşmaz (kapı). Kullanıcıya söylenecek olanı error dalına bağlayın${insideErrorFlow ? ' (adım hata akışının içinde: hata akışının kendi hata akışı yoktur)' : ''} — Steps.${resultName}.error.status: ${statuses}; vazgeçmeye (cancelled) genellikle bir şey gösterilmez, pending 'onay bekleniyor' der.`,
3345
- guide: 'ngapps://guides/mobile-steps'
3345
+ guide: 'zeyrek://guides/mobile-steps'
3346
3346
  });
3347
3347
  }
3348
3348
  return findings;
@@ -3374,7 +3374,7 @@ export const policyRules = [
3374
3374
  ruleId: 'FLOW-046',
3375
3375
  severity: 'block',
3376
3376
  message: `'${label}' balance-spend adımının bakiye adı yok: args.value bakiyenin adını ister (platform 422 FlowStepBalanceSpendArgumentMissing döner) — düz ad ('kredi') ya da şablon ('{{ Components.secim.value }}'). Adlar: mobile_product_list (consumable ürünün balance alanı).`,
3377
- guide: 'ngapps://guides/mobile-steps'
3377
+ guide: 'zeyrek://guides/mobile-steps'
3378
3378
  });
3379
3379
  }
3380
3380
  else if (!value.includes('{{') && !purchaseProductKeyPattern.test(value)) {
@@ -3386,7 +3386,7 @@ export const policyRules = [
3386
3386
  : /[.([]/.test(value)
3387
3387
  ? `'${label}' balance-spend adımının bakiye adı {{ }} dışında ifade: '${value}'. args.value METİN ŞABLONUDUR — ifade harfi harfine ad sayılır, cihaz 'invalid' döner. Sarın: '{{ ${value} }}'.`
3388
3388
  : `'${label}' balance-spend adımının bakiye adı geçerli bir ad değil: '${value}' (${purchaseProductKeyPattern.source}). Katalogdaki hiçbir bakiye bu biçimde olamaz: cihaz 'invalid' döner. Adlar: mobile_product_list.`,
3389
- guide: 'ngapps://guides/mobile-steps'
3389
+ guide: 'zeyrek://guides/mobile-steps'
3390
3390
  });
3391
3391
  }
3392
3392
  if (!title) {
@@ -3394,7 +3394,7 @@ export const policyRules = [
3394
3394
  ruleId: 'FLOW-046',
3395
3395
  severity: 'block',
3396
3396
  message: `'${label}' balance-spend adımının miktarı yok: args.title düşülecek miktarı ister (platform 422 FlowStepBalanceSpendArgumentMissing döner) — düz tam sayı ('10') ya da şablon ('{{ Components.adet.value }}'). Miktar args.amount DEĞİL args.title'dır.`,
3397
- guide: 'ngapps://guides/mobile-steps'
3397
+ guide: 'zeyrek://guides/mobile-steps'
3398
3398
  });
3399
3399
  }
3400
3400
  else if (!title.includes('{{') && !/^[1-9][0-9]*$/.test(title)) {
@@ -3404,7 +3404,7 @@ export const policyRules = [
3404
3404
  message: /[.([]/.test(title)
3405
3405
  ? `'${label}' balance-spend adımının miktarı {{ }} dışında ifade: '${title}'. args.title METİN ŞABLONUDUR — ifade harfi harfine metin sayılır ve miktar geçersiz olur ('invalid'). Sarın: '{{ ${title} }}'.`
3406
3406
  : `'${label}' balance-spend adımının miktarı 1 ve üstü bir tam sayı değil: '${title}'. Cihaz 'invalid' döner; sıfır ve eksi miktar harcama değildir.`,
3407
- guide: 'ngapps://guides/mobile-steps'
3407
+ guide: 'zeyrek://guides/mobile-steps'
3408
3408
  });
3409
3409
  }
3410
3410
  if (stray.length > 0) {
@@ -3412,7 +3412,7 @@ export const policyRules = [
3412
3412
  ruleId: 'FLOW-046',
3413
3413
  severity: value && title ? 'warn' : 'block',
3414
3414
  message: `'${label}' balance-spend adımında args.${stray.join('/args.')} alanı var: bu anahtar StepManagementArgument sözleşmesinde YOK, platform onu 200 ile sessizce düşürür. Bakiye adı args.value'ya, miktar args.title'a yazılır — ör. args: { value: 'kredi', title: '10' }. Tekrar güvenliği (idempotencyKey) bu adımda yoktur: sunucu her tıklamada ayrı anahtar üretir.`,
3415
- guide: 'ngapps://guides/mobile-steps'
3415
+ guide: 'zeyrek://guides/mobile-steps'
3416
3416
  });
3417
3417
  }
3418
3418
  const errorBranch = flowBranches(step).some(branch => branch.name === 'error' && Boolean(branch.nextStepId));
@@ -3422,7 +3422,7 @@ export const policyRules = [
3422
3422
  ruleId: 'FLOW-046',
3423
3423
  severity: 'warn',
3424
3424
  message: `'${label}' balance-spend adımının error dalı da akışın hata adımları da bağlı değil: bakiye yetmediğinde (insufficient), çevrimdışıyken (unavailable) ya da kabuk satın almayı taşımıyorken akış BU ADIMDA BİTER, always'e bağlı adım koşmaz (kapı). Kullanıcıya söylenecek olanı error dalına bağlayın${insideErrorFlow ? ' (adım hata akışının içinde: hata akışının kendi hata akışı yoktur)' : ''} — Steps.${resultName}.error.status: ${statuses}; insufficient genellikle "Kredin yetmiyor" ile satın alma ekranına yönlendirir.`,
3425
- guide: 'ngapps://guides/mobile-steps'
3425
+ guide: 'zeyrek://guides/mobile-steps'
3426
3426
  });
3427
3427
  }
3428
3428
  return findings;
@@ -3454,7 +3454,7 @@ export const policyRules = [
3454
3454
  ruleId: 'FLOW-047',
3455
3455
  severity: 'block',
3456
3456
  message: `'${label}' sign-in-with adımının sağlayıcısı yok: args.value ${providers} ister (platform 422 döner) — düz metin, ifade değil.`,
3457
- guide: 'ngapps://guides/mobile-steps'
3457
+ guide: 'zeyrek://guides/mobile-steps'
3458
3458
  });
3459
3459
  }
3460
3460
  else if (!signInProviders.has(raw)) {
@@ -3470,7 +3470,7 @@ export const policyRules = [
3470
3470
  : signInProviders.has(trimmed.toLowerCase())
3471
3471
  ? `'${label}' sign-in-with adımının sağlayıcısı büyük harfle yazılmış: ${raw}. Adlar küçük harftir ve birebir karşılaştırılır (platform 422 döner) — args.value: '${trimmed.toLowerCase()}' yazın.`
3472
3472
  : `'${label}' sign-in-with adımının sağlayıcısı '${raw}' kümede değil: args.value ${providers} olur (platform 422 döner). Yeni sağlayıcı yeni bir değerdir, ama bu küme dışında bir değeri adım koşmaz.`,
3473
- guide: 'ngapps://guides/mobile-steps'
3473
+ guide: 'zeyrek://guides/mobile-steps'
3474
3474
  });
3475
3475
  }
3476
3476
  if (filled('provider')) {
@@ -3479,7 +3479,7 @@ export const policyRules = [
3479
3479
  ruleId: 'FLOW-047',
3480
3480
  severity: valid ? 'warn' : 'block',
3481
3481
  message: `'${label}' sign-in-with adımında args.provider var: sağlayıcı args.value alanındadır (${providers}). args.provider sözleşmede YOK ve 200 ile sessizce düşer${valid ? '.' : ' — adım sağlayıcısız kaydolmaz (args.value boş ya da kümede değil).'}`,
3482
- guide: 'ngapps://guides/mobile-steps'
3482
+ guide: 'zeyrek://guides/mobile-steps'
3483
3483
  });
3484
3484
  }
3485
3485
  if (filled('nonce')) {
@@ -3488,7 +3488,7 @@ export const policyRules = [
3488
3488
  ruleId: 'FLOW-047',
3489
3489
  severity: named ? 'warn' : 'block',
3490
3490
  message: `'${label}' sign-in-with adımında args.nonce var: nonce args.name alanındadır ve metin şablonudur (ör. '{{ Steps.basla.data.nonce }}'). args.nonce sözleşmede YOK ve 200 ile sessizce düşer${named ? '.' : " — cihaz kendi nonce'unu üretir, sunucunun verdiğiyle eşleşmez ve sunucu girişi reddeder."}`,
3491
- guide: 'ngapps://guides/mobile-steps'
3491
+ guide: 'zeyrek://guides/mobile-steps'
3492
3492
  });
3493
3493
  }
3494
3494
  const errorBranch = flowBranches(step).some(branch => branch.name === 'error' && Boolean(branch.nextStepId));
@@ -3498,7 +3498,7 @@ export const policyRules = [
3498
3498
  ruleId: 'FLOW-047',
3499
3499
  severity: 'warn',
3500
3500
  message: `'${label}' sign-in-with adımının error dalı da akışın hata adımları da bağlı değil: kullanıcı vazgeçince (cancelled) ya da giriş olmayınca akış BU ADIMDA BİTER, always'e bağlı sonraki adım koşmaz (kapı) — vazgeçme yaygındır, sessiz bitiş kötü deneyimdir. Kullanıcıya bir şey söylenecekse error dalını bağlayın (cancelled sessiz kalabilir)${insideErrorFlow ? ' (adım hata akışının içinde: hata akışının kendi hata akışı yoktur)' : ''} — Steps.${resultName}.error.status: ${[...signInErrorStatuses].join(', ')}.`,
3501
- guide: 'ngapps://guides/mobile-steps'
3501
+ guide: 'zeyrek://guides/mobile-steps'
3502
3502
  });
3503
3503
  }
3504
3504
  return findings;
@@ -3525,7 +3525,7 @@ export const policyRules = [
3525
3525
  ruleId: 'FLOW-050',
3526
3526
  severity: 'warn',
3527
3527
  message: `'${label}' ${step.type} adımının error dalı da akışın hata adımları da bağlı değil: ${step.type === 'local-restore' ? 'kullanıcı seçiciyi kapatınca (cancelled) ya da seçilen dosya bu uygulamanın yedeği değilken' : 'yedek alınamayınca'} akış BU ADIMDA BİTER, always'e bağlı sonraki adım koşmaz (kapı). Kullanıcıya söylenecek olanı error dalına bağlayın${insideErrorFlow ? ' (adım hata akışının içinde: hata akışının kendi hata akışı yoktur)' : ''} — Steps.${step.name || label}.error.status: ${[...localDataErrorStatuses].join(', ')}.`,
3528
- guide: 'ngapps://guides/mobile-steps'
3528
+ guide: 'zeyrek://guides/mobile-steps'
3529
3529
  }];
3530
3530
  });
3531
3531
  }
@@ -3545,7 +3545,7 @@ export const policyRules = [
3545
3545
  ruleId: 'FLOW-041',
3546
3546
  severity: 'block',
3547
3547
  message: `'${label}' validation adımının args.validations alanı bir DİZİ olmalı: [{ component, property, type, errorMessage, settings }] (kök ADR 0014). Ör. [{ component: 'email', property: 'value', type: 'email', errorMessage: 't:validation.email', settings: {} }].`,
3548
- guide: 'ngapps://guides/page'
3548
+ guide: 'zeyrek://guides/page'
3549
3549
  }];
3550
3550
  }
3551
3551
  const rules = (Array.isArray(validations) ? validations : []);
@@ -3554,7 +3554,7 @@ export const policyRules = [
3554
3554
  ruleId: 'FLOW-041',
3555
3555
  severity: 'warn',
3556
3556
  message: `'${label}' validation adımında kural yok: args.validations boş olduğu için adım her çalıştırmada 'success' dalına gider, hiçbir alan denetlenmez. Kuralları args.validations'a yazın (kök ADR 0014).`,
3557
- guide: 'ngapps://guides/page'
3557
+ guide: 'zeyrek://guides/page'
3558
3558
  }];
3559
3559
  }
3560
3560
  return rules.flatMap((rule, index) => {
@@ -3568,7 +3568,7 @@ export const policyRules = [
3568
3568
  ruleId: 'FLOW-041',
3569
3569
  severity: 'block',
3570
3570
  message: `'${label}' validation adımında ${at}.type '${type}' tanınmıyor — beklenen: '${[...validationRuleTypes].join("' | '")}'. Platform tipi doğrulamadan kaydeder ve runtime tanımadığı tipi GEÇTİ sayar: kural hiçbir şeyi denetlemez.`,
3571
- guide: 'ngapps://guides/page'
3571
+ guide: 'zeyrek://guides/page'
3572
3572
  });
3573
3573
  }
3574
3574
  else if (!validationParameterlessTypes.has(type) && (settings.length === 0 || settings[0] === null || settings[0] === '')) {
@@ -3576,7 +3576,7 @@ export const policyRules = [
3576
3576
  ruleId: 'FLOW-041',
3577
3577
  severity: 'block',
3578
3578
  message: `'${label}' validation adımında ${at} ('${type}') parametresiz: runtime eşiği settings'in İLK değerinden okur (${type === 'regex' ? "{ pattern: '^\\\\d+$' }" : '{ value: 8 }'}); değer yoksa karşılaştırma undefined ile yapılır ve kural her çalıştırmada düşer.`,
3579
- guide: 'ngapps://guides/page'
3579
+ guide: 'zeyrek://guides/page'
3580
3580
  });
3581
3581
  }
3582
3582
  if (typeof rule?.property !== 'string' || rule.property.trim() === '') {
@@ -3584,7 +3584,7 @@ export const policyRules = [
3584
3584
  ruleId: 'FLOW-041',
3585
3585
  severity: 'block',
3586
3586
  message: `'${label}' validation adımında ${at}.property yok: runtime bileşenin hangi prop'unu okuyacağını bu alandan bilir (çoğunlukla 'value'). Yoksa okunan değer undefined olur.`,
3587
- guide: 'ngapps://guides/page'
3587
+ guide: 'zeyrek://guides/page'
3588
3588
  });
3589
3589
  }
3590
3590
  if (stray.length > 0) {
@@ -3592,7 +3592,7 @@ export const policyRules = [
3592
3592
  ruleId: 'FLOW-041',
3593
3593
  severity: 'warn',
3594
3594
  message: `'${label}' validation adımında ${at}.${stray.join('/')} alanı var: bu komponent doğrulamasının şeklidir, adım kuralının sözleşmesinde YOK ve platform onu 200 ile sessizce düşürür. Mesaj errorMessage'a, eşik settings'e yazılır — ör. { component: 'sifre', property: 'value', type: 'min-length', errorMessage: 'En az 8 karakter', settings: { value: 8 } }.`,
3595
- guide: 'ngapps://guides/page'
3595
+ guide: 'zeyrek://guides/page'
3596
3596
  });
3597
3597
  }
3598
3598
  return findings;
@@ -3618,7 +3618,7 @@ export const policyRules = [
3618
3618
  ruleId: 'FLOW-038',
3619
3619
  severity: 'block',
3620
3620
  message: `'${flowStepLabel(step)}' permission adımının türü yok: args.value izin anahtarını ister (varsayılanı yoktur; platform 422 döner). Uygulamanın isteyebileceği izinler: mobile_store_get { detail: ['permissions'] } — support: 'supported' satırlarının key'i.`,
3621
- guide: 'ngapps://guides/mobile'
3621
+ guide: 'zeyrek://guides/mobile'
3622
3622
  });
3623
3623
  }
3624
3624
  else if (unquoted !== kind) {
@@ -3626,7 +3626,7 @@ export const policyRules = [
3626
3626
  ruleId: 'FLOW-038',
3627
3627
  severity: 'block',
3628
3628
  message: `'${flowStepLabel(step)}' permission adımının türü tırnaklı yazılmış: ${kind}. Bu alan DÜZ METİNDİR, ifade değil — args.value: '${unquoted}' yazın.`,
3629
- guide: 'ngapps://guides/mobile'
3629
+ guide: 'zeyrek://guides/mobile'
3630
3630
  });
3631
3631
  }
3632
3632
  else if (flowExpressionLooking.test(kind) || /\{\{/.test(kind) || !/^[a-z][A-Za-z0-9]*$/.test(kind)) {
@@ -3634,7 +3634,7 @@ export const policyRules = [
3634
3634
  ruleId: 'FLOW-038',
3635
3635
  severity: 'block',
3636
3636
  message: `'${flowStepLabel(step)}' permission adımının türü yazılı bir izin anahtarı değil: '${kind}'. Tür İFADE olamaz — mağaza derlemesinin hangi izni taşıyacağı bu değerden, akış koşmadan hesaplanır. Türe göre dallanmak için condition adımıyla her tür için ayrı bir permission adımı kurun.`,
3637
- guide: 'ngapps://guides/mobile'
3637
+ guide: 'zeyrek://guides/mobile'
3638
3638
  });
3639
3639
  }
3640
3640
  if (mode.trim() && !permissionStepModes.has(mode)) {
@@ -3642,7 +3642,7 @@ export const policyRules = [
3642
3642
  ruleId: 'FLOW-038',
3643
3643
  severity: 'block',
3644
3644
  message: `'${flowStepLabel(step)}' permission adımının kipi '${mode}' tanınmıyor; platform 422 döner. Kullanılabilir: ${[...permissionStepModes].join(', ')} (boş → request). check yalnız okur, sistem penceresi açmaz.`,
3645
- guide: 'ngapps://guides/mobile'
3645
+ guide: 'zeyrek://guides/mobile'
3646
3646
  });
3647
3647
  }
3648
3648
  if (stray.length > 0) {
@@ -3650,7 +3650,7 @@ export const policyRules = [
3650
3650
  ruleId: 'FLOW-038',
3651
3651
  severity: kind.trim() ? 'warn' : 'block',
3652
3652
  message: `'${flowStepLabel(step)}' permission adımında args.${stray.join('/args.')} alanı var: bu anahtar StepManagementArgument sözleşmesinde YOK, platform onu 200 ile sessizce düşürür. Tür args.value'ya, kip args.name'e düz metin olarak yazılır — ör. args: { value: '<izin anahtarı>', name: 'check' }.`,
3653
- guide: 'ngapps://guides/mobile'
3653
+ guide: 'zeyrek://guides/mobile'
3654
3654
  });
3655
3655
  }
3656
3656
  return findings;
@@ -3678,7 +3678,7 @@ export const policyRules = [
3678
3678
  ruleId: 'FLOW-030',
3679
3679
  severity: 'block',
3680
3680
  message: `'${flowStepLabel(step)}' ${step.type} adımının kimliği yok: args.name metin olarak yazılmalı (ör. 'sulama'; kayıt başına 'ilac-{{ item.id }}')${schedule ? ' — aynı kimlikle yeniden planlama eskisinin yerini alır' : " — '*' bütün planlı bildirimleri siler"}. Platform eksik kimliği 400 ile reddeder.`,
3681
- guide: 'ngapps://guides/mobile'
3681
+ guide: 'zeyrek://guides/mobile'
3682
3682
  });
3683
3683
  }
3684
3684
  if (schedule && !text('value')) {
@@ -3686,7 +3686,7 @@ export const policyRules = [
3686
3686
  ruleId: 'FLOW-030',
3687
3687
  severity: 'block',
3688
3688
  message: `'${flowStepLabel(step)}' notification-schedule adımının zamanı yok: args.value bir İFADEDİR ve sonucu 'HH:mm' (her gün), { weekday: 1-7, time: 'HH:mm' } (her hafta, 1 = Pazartesi) ya da ISO tarih-saattir (bir kez) — ör. "tp_saat.value" ya da "'08:30'".`,
3689
- guide: 'ngapps://guides/mobile'
3689
+ guide: 'zeyrek://guides/mobile'
3690
3690
  });
3691
3691
  }
3692
3692
  const literal = /^'([^']*)'$/.exec(text('value'))?.[1];
@@ -3695,7 +3695,7 @@ export const policyRules = [
3695
3695
  ruleId: 'FLOW-030',
3696
3696
  severity: 'block',
3697
3697
  message: `'${flowStepLabel(step)}' notification-schedule adımının zamanı '${literal}' okunamaz: 'HH:mm' (00:00–23:59), ISO tarih-saat ya da { weekday, time } nesnesi yazın. Çalışmada adım error dalına düşer (status: 'invalid').`,
3698
- guide: 'ngapps://guides/mobile'
3698
+ guide: 'zeyrek://guides/mobile'
3699
3699
  });
3700
3700
  }
3701
3701
  if (stray.length > 0) {
@@ -3703,7 +3703,7 @@ export const policyRules = [
3703
3703
  ruleId: 'FLOW-030',
3704
3704
  severity: 'warn',
3705
3705
  message: `'${flowStepLabel(step)}' ${step.type} adımında args.${stray.join('/args.')} sözleşmede YOK ve platform onu sessizce düşürür. Kimlik args.name, zaman args.value (ifade), metin args.message (ifade), başlık args.title.`,
3706
- guide: 'ngapps://guides/mobile'
3706
+ guide: 'zeyrek://guides/mobile'
3707
3707
  });
3708
3708
  }
3709
3709
  return findings;
@@ -3732,7 +3732,7 @@ export const policyRules = [
3732
3732
  ruleId: 'FLOW-023',
3733
3733
  severity: 'block',
3734
3734
  message: `'${flowStepLabel(step)}' adımının tipi '${type}' ve bir dal oraya işaret ediyor — bu tipi HİÇBİR barındırıcı register etmiyor (ne flow-engine.ts, ne web Runtime.svelte, ne mobil ScreenRuntime.tsx); Studio da onu eklenebilir adımlar arasında göstermez. ${silentStop} Akışı bitirmek için ayrı bir adım gerekmez: son adımın dalına nextStepId: null verin. Dekoratif bir '${type}' düğümü tutmak serbesttir, yeter ki hiçbir dal ona işaret etmesin.`,
3735
- guide: 'ngapps://guides/page'
3735
+ guide: 'zeyrek://guides/page'
3736
3736
  }];
3737
3737
  }
3738
3738
  return [];
@@ -3754,7 +3754,7 @@ export const policyRules = [
3754
3754
  ruleId: 'FLOW-017',
3755
3755
  severity: 'block',
3756
3756
  message: `'${flowStepLabel(step)}' setter adımının iteratees girdisinde ${missing.join(' ve ')} yok. setter.ts her dalda machine.setNode(element, { [property]: value }) çağırır — ikisinden biri boşken adım ÇALIŞIR, hata vermez ve HİÇBİR ŞEY yazmaz. element = hedef komponentin elementId'si (page_schema_get ile doğrulayın), property = yazılacak prop adı (html komponentine veri basmak için 'context', tabloya satır basmak için 'rows'). Platform bu gövdeyi 200 ile kabul eder — tek savunma budur.`,
3757
- guide: 'ngapps://guides/page'
3757
+ guide: 'zeyrek://guides/page'
3758
3758
  }];
3759
3759
  }))
3760
3760
  },
@@ -3771,7 +3771,7 @@ export const policyRules = [
3771
3771
  ruleId: 'FLOW-007',
3772
3772
  severity: 'block',
3773
3773
  message: `'${flowStepLabel(step)}' setter adımında value.type='storage' ama mapping yok. setter.ts mapping.source'u guard'sız okur → TypeError. En az mapping: { "source": "", "mappings": {} } verin.`,
3774
- guide: 'ngapps://guides/page'
3774
+ guide: 'zeyrek://guides/page'
3775
3775
  })))
3776
3776
  },
3777
3777
  {
@@ -3806,7 +3806,7 @@ export const policyRules = [
3806
3806
  ruleId: 'FLOW-008',
3807
3807
  severity: 'block',
3808
3808
  message: `'${flowStepLabel(step)}' setter adımı ${origin}='${reference}' ile bir stepId'ye bakıyor; storage anahtarı adımın ADIdır. Doğrusu: ${fix}. value.type='code' ise ifade JS olarak koşar ve '${reference}' tanımsız değişken hatası verir — kod içinden okuma biçimi Steps["<adım adı>"].data'dır.`,
3809
- guide: 'ngapps://guides/page'
3809
+ guide: 'zeyrek://guides/page'
3810
3810
  }];
3811
3811
  }
3812
3812
  return isStorage
@@ -3814,7 +3814,7 @@ export const policyRules = [
3814
3814
  ruleId: 'FLOW-008',
3815
3815
  severity: 'warn',
3816
3816
  message: `'${flowStepLabel(step)}' setter adımı ${origin}='${reference}' ile storage '${root}' okuyor ama bu akışta bu adı taşıyan adım yok — anahtarı yazan adım başka bir akıştaysa yok sayın, değilse ref adım adına eşitlenmeli.`,
3817
- guide: 'ngapps://guides/page'
3817
+ guide: 'zeyrek://guides/page'
3818
3818
  }]
3819
3819
  : [];
3820
3820
  }));
@@ -3851,7 +3851,7 @@ export const policyRules = [
3851
3851
  ruleId: 'FLOW-009',
3852
3852
  severity: 'block',
3853
3853
  message: `'${flowStepLabel(step)}' setter adımı ${origin}='${reference}' okuyor ama '${root}' adımı isRaw=false ile çalışıyor → storage { data, headers, error } sarmalıdır. Ref '${root}.data' olmalı; aksi hâlde prop'a dizinin yerine sarmal nesne yazılır.`,
3854
- guide: 'ngapps://guides/page'
3854
+ guide: 'zeyrek://guides/page'
3855
3855
  }];
3856
3856
  }
3857
3857
  return isRaw && readsWrapper
@@ -3859,7 +3859,7 @@ export const policyRules = [
3859
3859
  ruleId: 'FLOW-009',
3860
3860
  severity: 'block',
3861
3861
  message: `'${flowStepLabel(step)}' setter adımı ${origin}='${reference}' okuyor ama '${root}' adımı isRaw=true — storage ham cevaptır, '.data' diye bir alan yoktur. Ref '${root}' olmalı.`,
3862
- guide: 'ngapps://guides/page'
3862
+ guide: 'zeyrek://guides/page'
3863
3863
  }]
3864
3864
  : [];
3865
3865
  }));
@@ -3879,7 +3879,7 @@ export const policyRules = [
3879
3879
  ruleId: 'FLOW-010',
3880
3880
  severity: 'warn',
3881
3881
  message: `'${flowStepLabel(step)}' adımının adında nokta var. Storage okuması dot-prop ile yapılır; noktalı ad yol segmentine bölünür ve setter ref'i asla çözülmez.`,
3882
- guide: 'ngapps://guides/page'
3882
+ guide: 'zeyrek://guides/page'
3883
3883
  });
3884
3884
  }
3885
3885
  if ((step.args ?? {}).isRaw === true) {
@@ -3887,7 +3887,7 @@ export const policyRules = [
3887
3887
  ruleId: 'FLOW-010',
3888
3888
  severity: 'warn',
3889
3889
  message: `'${flowStepLabel(step)}' adımı isRaw=true. Studio bu akışı her AÇTIĞINDA isRaw'ı false'a çevirir (event-actions.mappers.ts) ve storage ref'lerine '.data' ekler; kullanıcı akışı bir kez kaydederse ref'leriniz değişir. Kalıcı olması için isRaw'ı verme ve ref'i '<adım adı>.data' yaz.`,
3890
- guide: 'ngapps://guides/page'
3890
+ guide: 'zeyrek://guides/page'
3891
3891
  });
3892
3892
  }
3893
3893
  return findings;
@@ -3915,7 +3915,7 @@ export const policyRules = [
3915
3915
  ruleId: 'FLOW-011',
3916
3916
  severity: 'block',
3917
3917
  message: `'${flowStepLabel(step)}' adımının ${origin} ifadesi Steps.${name}.headers okuyor ama '${name}' adımı isRaw=true ile çalışıyor — o zaman storage ham response.data'dır, 'headers' diye bir alan HİÇ yazılmaz (microservice.ts:88). İfade her koşuda TypeError verir. isRaw'ı kaldırın (normalize false'a çeker) ya da header okumaktan vazgeçin.`,
3918
- guide: 'ngapps://guides/page'
3918
+ guide: 'zeyrek://guides/page'
3919
3919
  }];
3920
3920
  }
3921
3921
  if (isHeadersAccessGuarded(expression, name))
@@ -3925,7 +3925,7 @@ export const policyRules = [
3925
3925
  ruleId: 'FLOW-011',
3926
3926
  severity: 'warn',
3927
3927
  message: `'${flowStepLabel(step)}' adımının ${origin} ifadesinde Steps.${name}.headers guard'sız okunuyor. İstek HATA aldığında storage { error, data } olarak yazılır ve 'headers' alanı yoktur (microservice.ts:132) → TypeError; runCode undefined döner (prop'a NaN yazılır), ifade hatası toast'ı düşer ve flow-engine.ts:53 akışı onError'a çevirip durdurabilir. Guard'lı yazın: Number(Steps.${name}?.headers?.["total-count"] ?? 0) ya da Steps.${name}.headers && … önkoşulu.`,
3928
- guide: 'ngapps://guides/page'
3928
+ guide: 'zeyrek://guides/page'
3929
3929
  }];
3930
3930
  }));
3931
3931
  });
@@ -3945,7 +3945,7 @@ export const policyRules = [
3945
3945
  ruleId: 'FLOW-012',
3946
3946
  severity: 'warn',
3947
3947
  message: `'${flowStepLabel(step)}' setter adımının mapping anahtarında nokta var: '${dotted.join("', '")}'. Mapper anahtarı DÜZ yazar (object['${dotted[0]}']), iç içe alan üretmez; kolon bunu nokta yolu olarak çözmeye çalışırsa değeri göremez. Kolonun kendi key'ini düz anahtar olarak verin (örn. 'parent_name'), kaynak yolunu ise ref'e yazın ({ "type": "item", "ref": "parent_title.name" }).`,
3948
- guide: 'ngapps://guides/page'
3948
+ guide: 'zeyrek://guides/page'
3949
3949
  }]
3950
3950
  : [];
3951
3951
  }))
@@ -3966,7 +3966,7 @@ export const policyRules = [
3966
3966
  ruleId: 'FLOW-014',
3967
3967
  severity: 'warn',
3968
3968
  message: `'${flowStepLabel(step)}' flow-trigger adımında hem args.flowId hem args.triggerElementId var; runtime önce flowId'ye bakar (flow-trigger.ts) ve element dalına HİÇ girmez. Birini silin.`,
3969
- guide: 'ngapps://guides/page'
3969
+ guide: 'zeyrek://guides/page'
3970
3970
  }];
3971
3971
  }
3972
3972
  if (hasFlowId)
@@ -3978,14 +3978,14 @@ export const policyRules = [
3978
3978
  ruleId: 'FLOW-014',
3979
3979
  severity: 'block',
3980
3980
  message: `'${flowStepLabel(step)}' flow-trigger adımında args.triggerElementId var ama args.triggerElementEvent yok — runtime hedef komponentin olay listesinde eşleşme arar, olay adı olmadan hiçbir akış çalışmaz. Olay adını component_get'ten alın.`,
3981
- guide: 'ngapps://guides/page'
3981
+ guide: 'zeyrek://guides/page'
3982
3982
  }];
3983
3983
  }
3984
3984
  return [{
3985
3985
  ruleId: 'FLOW-014',
3986
3986
  severity: 'block',
3987
3987
  message: `'${flowStepLabel(step)}' flow-trigger adımının args'ı boş. İki geçerli şekil var: (1) başka bir akışı çalıştır → args: { "flowId": "<hedef flow id>" }; (2) bir komponentin olay akışını çalıştır → args: { "triggerElementId": "<elementId>", "triggerElementEvent": "<component_get events listesinden ad>" }. İkisi de yoksa backend 404 'Kayıt bulunamadı' döner (StepManagementArgument.ToDomain trigger dalı), dönmese bile adım hiçbir şey yapmaz.`,
3988
- guide: 'ngapps://guides/page'
3988
+ guide: 'zeyrek://guides/page'
3989
3989
  }];
3990
3990
  })
3991
3991
  },
@@ -4005,7 +4005,7 @@ export const policyRules = [
4005
4005
  ruleId: 'FLOW-015',
4006
4006
  severity: 'block',
4007
4007
  message: `'${flowStepLabel(step)}' microservice adımının args.microserviceId'si boş. Kayıt 200 döner ama çalışma anında istek '/m/<application>/null' adresine gidip 404 alır ve sonraki adım hata gövdesini veri sanır. Ucu microservice_list'ten seçip args: { "microserviceId": "<id>", "isRaw": false, "parameters": [] } verin; ucu henüz yaratmadıysanız önce onu yaratın, adımı boş bırakıp "sonra bağlarım" demeyin.`,
4008
- guide: 'ngapps://guides/page'
4008
+ guide: 'zeyrek://guides/page'
4009
4009
  }];
4010
4010
  })
4011
4011
  },
@@ -4025,7 +4025,7 @@ export const policyRules = [
4025
4025
  ruleId: 'FLOW-016',
4026
4026
  severity: 'warn',
4027
4027
  message: `'${flowStepLabel(step)}' adımı 'Page.user' alanını guard'sız okuyor. Page.user middleware'in set-user çıktısıdır ve SAYFA o middleware'e (page_update middlewareIds) bağlı değilse undefined'dır — 'Cannot read properties of undefined' ile ifade patlar, condition adımında bu sessizce else dalına düşmek demektir. Köke bir kez guard'lı dokunun — 'var u = Page.user || {};', 'Page.user && Page.user.x', 'Page.user?.x', 'typeof Page.user' biçimlerinin hepsi kabul edilir — ve sayfanın middlewareIds'ini verin.`,
4028
- guide: 'ngapps://guides/expressions'
4028
+ guide: 'zeyrek://guides/expressions'
4029
4029
  });
4030
4030
  }
4031
4031
  if (/Page\.user\s*\.\s*roles(?![A-Za-z0-9_])/.test(source)) {
@@ -4033,7 +4033,7 @@ export const policyRules = [
4033
4033
  ruleId: 'FLOW-016',
4034
4034
  severity: 'warn',
4035
4035
  message: `'${flowStepLabel(step)}' adımı 'Page.user.roles' DİZİSİNİ okuyor. set-user DTO'su diziyi çoğu kurulumda düşürür (dto_get ile bakın: genelde yalnız 'role', 'role_name', 'roles_csv' vardır) — dizi undefined gelir, '|| []' yüzünden hata da vermez ve rol dalları sessizce hiç eşleşmez. CSV'yi kullanın: var rc = u.roles_csv || (u.role ? ',' + u.role + ',' : ''); rc.indexOf(',admin,') >= 0.`,
4036
- guide: 'ngapps://guides/expressions'
4036
+ guide: 'zeyrek://guides/expressions'
4037
4037
  });
4038
4038
  }
4039
4039
  return findings;
@@ -4058,7 +4058,7 @@ export const policyRules = [
4058
4058
  ruleId: 'BPM-022',
4059
4059
  severity: 'warn',
4060
4060
  message: `'${flowStepLabel(step)}' adımı Page.bpm çağırıyor (${calls.join(', ')}). Sayfa akışı süreç çalışma zamanıyla source: system mikroservis üzerinden konuşur: microservice_system_operation_list ile process.* işlemini seçin, microservice_create { source: 'system', systemOperation } ile ucu kurun ve çağrıyı bir microservice adımına taşıyın; sonucu okuyan code adımı Steps.<adım>.data / .error'dan okur. Page.bpm eski yoldur — izin ve görünürlük kararı sistem işleminde aynı servisten gelir, uç Studio'da ve microservice_execute ile görünür.`,
4061
- guide: 'ngapps://guides/bpm'
4061
+ guide: 'zeyrek://guides/bpm'
4062
4062
  }];
4063
4063
  })
4064
4064
  },
@@ -4081,7 +4081,7 @@ export const policyRules = [
4081
4081
  ruleId: 'FLOW-027',
4082
4082
  severity: 'block',
4083
4083
  message: `stepId'ler akışta (steps + errorSteps birlikte) benzersiz olmalı; tekrar edenler: ${repeated.map(id => `'${id}'`).join(', ')}. Platform bunları tek sözlüğe anahtar olarak koyar ve "An item with the same key has already been added" ile 500 verir (mesaj stepId'den söz etmez). errorSteps'te de kendi 'start' adımı gerekiyorsa ona farklı bir stepId verin (örn. 'err_start').`,
4084
- guide: 'ngapps://guides/page'
4084
+ guide: 'zeyrek://guides/page'
4085
4085
  }];
4086
4086
  }
4087
4087
  },
@@ -4102,7 +4102,7 @@ export const policyRules = [
4102
4102
  ruleId: 'MS-013',
4103
4103
  severity: 'block',
4104
4104
  message: "sourceParameters.alias (KÖK tablo alias'ı) boş ama join var: join'in ON koşulu '<kökAlias>.<ilişkiAlanı>' olarak kurulduğu için alias'sız gövde Postgres'te opak '42601: zero-length delimited identifier' hatası verir — ne kayıt ne çalıştırma sebebi söyler. alias'ı kök entity'nin slug'ıyla doldurun (kök selectFields'ta kullandığınız alias ile aynı olmalı).",
4105
- guide: 'ngapps://guides/microservice'
4105
+ guide: 'zeyrek://guides/microservice'
4106
4106
  }];
4107
4107
  }
4108
4108
  },
@@ -4125,7 +4125,7 @@ export const policyRules = [
4125
4125
  ruleId: 'WF-019',
4126
4126
  severity: 'block',
4127
4127
  message: `'${stepLabel(step)}' table step'inde join var ama rule.alias (KÖK tablo alias'ı) boş: join'in ON koşulu '<kökAlias>.<ilişkiAlanı>' olarak kurulur, boş alias SQL'e '.<alan>' yazar ve Postgres 42601 (zero-length delimited identifier) döner — adım hiç çalışmaz, hata da sebebi söylemez. rule.alias'ı kök entity'nin slug'ıyla (kök selectFields'taki alias) doldurun.`,
4128
- guide: 'ngapps://guides/workflow'
4128
+ guide: 'zeyrek://guides/workflow'
4129
4129
  }];
4130
4130
  });
4131
4131
  }
@@ -4148,7 +4148,7 @@ export const policyRules = [
4148
4148
  ruleId: 'WF-020',
4149
4149
  severity: 'warn',
4150
4150
  message: `'${stepLabel(step)}' adımı bir ilişki alanının İÇİNİ okuyor (${[...new Set(reads)].join(', ')}). Table adımı ilişki alanını yalnız o ilişki için 'joins' bildirdiyseniz { id, <displayAlanı> } nesnesi döndürür; join'siz okumada DÜZ FK string'i gelir ve '.<altAlan>' UNDEFINED olur — hata vermez, sessizce boş sonuç üretir (rol dizisi boşalır, yetki kapısı yanlış karar verir). İki çözüm: (1) adıma o ilişki için join + selectFields ekleyin, (2) hedef tabloyu ayrı bir table adımıyla okuyup id üzerinden eşleştirin. Her iki şekle dayanan yazım: 'var v = x.${reads[0]} && x.${reads[0]}.id ? x.${reads[0]}.id : x.${reads[0]};'`,
4151
- guide: 'ngapps://guides/workflow'
4151
+ guide: 'zeyrek://guides/workflow'
4152
4152
  }];
4153
4153
  });
4154
4154
  }
@@ -4169,7 +4169,7 @@ export const policyRules = [
4169
4169
  ruleId: 'WF-022',
4170
4170
  severity: 'block',
4171
4171
  message: `${total} adet 'global-error' dalı var (${carriers.map(stepLabel).join(', ')}); platform tek dal kabul eder, fazlasını 400 ile reddeder. Tek dal bırakın — hata yolu zaten TEK bir noktadan başlar, dallanmayı hedef adımın içinde yapın.`,
4172
- guide: 'ngapps://guides/workflow'
4172
+ guide: 'zeyrek://guides/workflow'
4173
4173
  });
4174
4174
  }
4175
4175
  const misplaced = carriers.filter(step => step.type !== 'start');
@@ -4178,7 +4178,7 @@ export const policyRules = [
4178
4178
  ruleId: 'WF-022',
4179
4179
  severity: 'block',
4180
4180
  message: `'global-error' dalı start dışı adımda: ${misplaced.map(stepLabel).join(', ')}. Runtime bu dalı YALNIZ start adımında arar; başka adımda duran dal 400 ile reddedilir (kayıt olsa bile hiç çalışmazdı). Dalı start adımının branches[] dizisine taşıyın; adım bazlı hata yakalamak için o adımın 'fail' dalını bağlayın.`,
4181
- guide: 'ngapps://guides/workflow'
4181
+ guide: 'zeyrek://guides/workflow'
4182
4182
  });
4183
4183
  }
4184
4184
  return findings;
@@ -4219,7 +4219,7 @@ export const policyRules = [
4219
4219
  ruleId: 'WF-035',
4220
4220
  severity: 'warn',
4221
4221
  message: `'${name}' adımının fail dalı '${stepLabel(target)}' adımına bağlı ve o adım 'error.*' okuyor. 'error' YALNIZ global-error dalında (fail dalı bağlanmamışken) kurulur; bağlı fail dalından gelindiğinde tanımsızdır ve adım 500 'JavaScriptException: error is not defined' ile düşer. Patlayan adımın hatasını kendi değişkeninden okuyun: ${name}.error.message · ${name}.error.code (ayrıca detail, type, cause; çıktı ${name}.data). Ya da fail dalını bağlamayın: hata global-error dalına düşer ve 'error' orada kurulur. Global-error hedefiyle aynı adımı paylaşmak yerine fail dalına ayrı bir response adımı bağlayın (ör. 404).`,
4222
- guide: 'ngapps://guides/workflow'
4222
+ guide: 'zeyrek://guides/workflow'
4223
4223
  };
4224
4224
  }));
4225
4225
  }
@@ -4243,7 +4243,7 @@ export const policyRules = [
4243
4243
  ruleId: 'WF-021',
4244
4244
  severity: 'warn',
4245
4245
  message: "Automation'ın hiç bağlı hata yolu yok. Gateway workflow/middleware'e otomatik hata adımı ekler ama automation'da 'response' adımı YASAKTIR, bu yüzden hata yolunu siz yazmalısınız: start adımına { type: 'global-error', nextStepId: <adım> } dalı koyup hedefe 'revert' (tetikleyen satır işlemini geri alır) ya da 'email'/'table' adımı bağlayın. Hata yolu yokken adım patladığında automation sessizce durur ve geriye iz kalmaz.",
4246
- guide: 'ngapps://guides/workflow'
4246
+ guide: 'zeyrek://guides/workflow'
4247
4247
  }];
4248
4248
  }
4249
4249
  },
@@ -4257,7 +4257,7 @@ export const policyRules = [
4257
4257
  if (definition.source !== 'table')
4258
4258
  return [];
4259
4259
  return writesRolesWithoutSlug(parameters?.entityId ?? definition.entityId, parameters)
4260
- ? [{ ruleId: 'ROL-002', severity: 'warn', message: rolesSlugMessage, guide: 'ngapps://guides/entity' }]
4260
+ ? [{ ruleId: 'ROL-002', severity: 'warn', message: rolesSlugMessage, guide: 'zeyrek://guides/entity' }]
4261
4261
  : [];
4262
4262
  }
4263
4263
  },
@@ -4273,7 +4273,7 @@ export const policyRules = [
4273
4273
  ruleId: 'ROL-002',
4274
4274
  severity: 'warn',
4275
4275
  message: `'${stepLabel(step)}' table adımı: ${rolesSlugMessage}`,
4276
- guide: 'ngapps://guides/entity'
4276
+ guide: 'zeyrek://guides/entity'
4277
4277
  }))
4278
4278
  },
4279
4279
  /**
@@ -4306,7 +4306,7 @@ export const policyRules = [
4306
4306
  ruleId: 'WF-033',
4307
4307
  severity: 'block',
4308
4308
  message: `'${stepLabel(step)}' http adımında rule.urlExpression yok. Adres bir JS İFADESİDİR, düz metin değil: sabit adresi tırnak içinde yazın ("'https://api.example.com/v1/rates'"), dinamik adresi ifadeyle kurun ("'https://api.example.com/orders/' + input.orderId"). Tırnaksız yazarsanız JS onu değişken sanır ve adım "x is not defined" ile düşer.`,
4309
- guide: 'ngapps://guides/workflow'
4309
+ guide: 'zeyrek://guides/workflow'
4310
4310
  });
4311
4311
  }
4312
4312
  if (!httpMethods.has(String(rule.httpMethod ?? '').trim().toLowerCase())) {
@@ -4314,7 +4314,7 @@ export const policyRules = [
4314
4314
  ruleId: 'WF-033',
4315
4315
  severity: 'block',
4316
4316
  message: `'${stepLabel(step)}' http adımında rule.httpMethod ${hasText(rule.httpMethod) ? `'${String(rule.httpMethod)}' — tanınmıyor` : 'yok'}. Platform değeri HttpMethod.Parse ile çözer; geçerli değerler: ${[...httpMethods].map(method => method.toUpperCase()).join(' · ')}.`,
4317
- guide: 'ngapps://guides/workflow'
4317
+ guide: 'zeyrek://guides/workflow'
4318
4318
  });
4319
4319
  }
4320
4320
  if (payload.startsWith('(') || payload.startsWith('{')) {
@@ -4324,8 +4324,8 @@ export const policyRules = [
4324
4324
  findings.push({
4325
4325
  ruleId: 'WF-033',
4326
4326
  severity: 'block',
4327
- message: `'${stepLabel(step)}' http adımının payloadExpression'ında ${missing.join(', ')} anahtarı yok. Gövde AYRI BİR ALAN DEĞİLDİR: bu tek ifade body, header ve queryString ÜÇÜNÜ BİRDEN taşımak zorundadır — boş olanı da yazın: "({ body: {}, header: {}, queryString: {} })". Eksik anahtar çalışma anında RuntimeBinderException verir ("'System.Dynamic.ExpandoObject' does not contain a definition for '${missing[0]}'") ve adım fail dalına düşer. Örnek: ngapps://examples/workflow-http-step`,
4328
- guide: 'ngapps://guides/workflow'
4327
+ message: `'${stepLabel(step)}' http adımının payloadExpression'ında ${missing.join(', ')} anahtarı yok. Gövde AYRI BİR ALAN DEĞİLDİR: bu tek ifade body, header ve queryString ÜÇÜNÜ BİRDEN taşımak zorundadır — boş olanı da yazın: "({ body: {}, header: {}, queryString: {} })". Eksik anahtar çalışma anında RuntimeBinderException verir ("'System.Dynamic.ExpandoObject' does not contain a definition for '${missing[0]}'") ve adım fail dalına düşer. Örnek: zeyrek://examples/workflow-http-step`,
4328
+ guide: 'zeyrek://guides/workflow'
4329
4329
  });
4330
4330
  }
4331
4331
  }
@@ -4337,7 +4337,7 @@ export const policyRules = [
4337
4337
  ruleId: 'WF-033',
4338
4338
  severity: 'warn',
4339
4339
  message: `'${stepLabel(step)}' http adımı ${String(rule.httpMethod).toUpperCase()} ile gövde gönderiyor ama rule.contentType boş: platform gövdeyi body.ToString() ile yollar ve nesne gövdesi tip adının kendisine dönüşür (HttpStep.cs:63-85). JSON gönderiyorsanız contentType: 'application/json' yazın.`,
4340
- guide: 'ngapps://guides/workflow'
4340
+ guide: 'zeyrek://guides/workflow'
4341
4341
  });
4342
4342
  }
4343
4343
  return findings;
@@ -4362,7 +4362,7 @@ export const policyRules = [
4362
4362
  ruleId: 'MW-003',
4363
4363
  severity: 'warn',
4364
4364
  message: `Bu middleware 'user' okuyor (${readers.map(stepLabel).join(', ')}) ama kendisi bir set-user adımı taşımıyor: değişken BAŞKA bir middleware'in set-user'ından gelmek zorunda. Sıra ada göredir (alfabetik) ve değişken istek boyunca yaşar, ama kuran middleware set-user'a ulaşmadan biterse (token/çerez yok, koşul else dalı) 'user' hiç tanımlanmaz ve bu adım ham 'user is not defined' ile 500 döner — kullanıcı 401 yerine 500 görür. Doğrusu: rol/yetki kapısını kimlik middleware'inin İÇİNE, set-user'dan sonra koyun (platform_guide('middleware') Tarif 3b). Zinciri korumak istiyorsanız ifadeyi guard'layın: 'typeof user === \'undefined\' ? false : Authorized(user.roles)'.`,
4365
- guide: 'ngapps://guides/middleware'
4365
+ guide: 'zeyrek://guides/middleware'
4366
4366
  }];
4367
4367
  }
4368
4368
  },
@@ -4379,7 +4379,7 @@ export const policyRules = [
4379
4379
  ruleId: 'MW-006',
4380
4380
  severity: 'warn',
4381
4381
  message: `'${readers.map(stepLabel).join(', ')}' kimlik devrini triggerSource.impersonatedUserId'den okuyor; bu alan yok, değer hep undefined gelir. Doğrusu context.impersonatedUserId — ve yalnız start adımının impersonation dalında: değer yalnız doğrulanmış Studio önizlemesinde dolar, başka yerde yetki kararı için kullanılmaz (platform_guide('middleware') Tarif 1c).`,
4382
- guide: 'ngapps://guides/middleware'
4382
+ guide: 'zeyrek://guides/middleware'
4383
4383
  }];
4384
4384
  }
4385
4385
  },
@@ -4403,7 +4403,7 @@ export const policyRules = [
4403
4403
  ruleId: 'MW-007',
4404
4404
  severity: 'warn',
4405
4405
  message: `'${exposing.map(stepLabel).join(', ')}' değişkeni bütün bir kaydı yayıyor ya da gizli değer adı taşıyor. Bu middleware bir SAYFAYA bağlanırsa değişken Page.variables ile istemciye gider (tarayıcıda/cihazda okunur). Gizli değer taşıyan değişkene rule.isPrivate: true verin — aynı istekteki sonraki middleware'ler okumaya devam eder, istemciye gitmez (sayfanın akışları istemcide koşar ve Page.variables'ı okur: işaretli değişken orada undefined'dır); istemcinin gerçekten ihtiyaç duyduğu alanları ayrı bir değişkende izin listesiyle kurun: '({ app_name: settings.data.app_name })' (platform_guide('middleware') Tarif 2). Yalnız microservice uçlarına bağlı middleware'de değişken istemciye dönmez.`,
4406
- guide: 'ngapps://guides/middleware'
4406
+ guide: 'zeyrek://guides/middleware'
4407
4407
  }];
4408
4408
  }
4409
4409
  },
@@ -4419,7 +4419,7 @@ export const policyRules = [
4419
4419
  ruleId: 'MF-007',
4420
4420
  severity: 'warn',
4421
4421
  message: "provider 'aws-lambda' kayıtta dependencies KURULMAZ: bağımlılık build'i yalnız Built-In'de (Fission builder) koşar, Lambda'ya paket olduğu gibi gider. Paketler kurulmuş hâlde zip'in içinde gelmeli (archive kaynağı; Python'da paket klasörleri, Node'da node_modules). Aksi hâlde yayının probe adımı import hatasıyla publish-failed olur.",
4422
- guide: 'ngapps://guides/microfunction'
4422
+ guide: 'zeyrek://guides/microfunction'
4423
4423
  }]
4424
4424
  : []
4425
4425
  },
@@ -4471,7 +4471,7 @@ export async function microfunctionStepFindings(platform, project, environment,
4471
4471
  ruleId: 'WF-MF-001',
4472
4472
  severity: 'block',
4473
4473
  message: `'${label}' adımının microfunctionId'si (${microfunctionId}) bu ortamda YOK. Adım kuralı step_rules.microfunction_id ile kayda FK'lıdır: gövde gitseydi platform 400 dönerdi. microfunction_list ile bu ortamdaki kayıtları görün — fonksiyon başka bir dalda/ortamda kalmış olabilir.`,
4474
- guide: 'ngapps://guides/microfunction'
4474
+ guide: 'zeyrek://guides/microfunction'
4475
4475
  });
4476
4476
  continue;
4477
4477
  }
@@ -4481,7 +4481,7 @@ export async function microfunctionStepFindings(platform, project, environment,
4481
4481
  ruleId: 'WF-MF-001',
4482
4482
  severity: 'block',
4483
4483
  message: `'${label}' adımı '${String(record.name ?? microfunctionId)}' fonksiyonunu seçiyor ama kaydın durumu '${status}'${status === 'publish-failed' && hasText(record.publishError) ? ` (publishError: ${String(record.publishError)})` : ''}. Step YALNIZ yayındaki kaydı koşturur: MicrofunctionStep kaydı yükleyip Status != Published görünce MicrofunctionNotPublishedException ile FAIL dalına düşer — akış kurulur, kaydedilir ve koşumda sessizce hata yoluna girer. Önce microfunction_publish çağırın ve microfunction_get ile 'published' olduğunu görün.`,
4484
- guide: 'ngapps://guides/microfunction'
4484
+ guide: 'zeyrek://guides/microfunction'
4485
4485
  });
4486
4486
  continue;
4487
4487
  }
@@ -4490,7 +4490,7 @@ export async function microfunctionStepFindings(platform, project, environment,
4490
4490
  ruleId: 'WF-MF-001',
4491
4491
  severity: 'warn',
4492
4492
  message: `'${label}' adımının fonksiyonu ('${String(record.name ?? microfunctionId)}') şu anda yayınlanıyor. Yayın ASENKRONDUR: bu akış şimdi koşarsa adım fail dalına düşer. microfunction_get ile 'published' olduğunu doğrulayın (yayın başarısız olursa durum 'publish-failed' olur).`,
4493
- guide: 'ngapps://guides/microfunction'
4493
+ guide: 'zeyrek://guides/microfunction'
4494
4494
  });
4495
4495
  }
4496
4496
  if (record.hasUnpublishedChanges === true) {
@@ -4498,7 +4498,7 @@ export async function microfunctionStepFindings(platform, project, environment,
4498
4498
  ruleId: 'WF-MF-001',
4499
4499
  severity: 'warn',
4500
4500
  message: `'${String(record.name ?? microfunctionId)}' fonksiyonu yayında ama üstüne yazılmış (hasUnpublishedChanges: true, revision ${String(record.revision ?? '?')} ≠ publishedRevision ${String(record.publishedRevision ?? '?')}). Runtime hâlâ ESKİ sürümü koşuyor — yeni kodu canlıya almak için microfunction_publish çağırın.`,
4501
- guide: 'ngapps://guides/microfunction'
4501
+ guide: 'zeyrek://guides/microfunction'
4502
4502
  });
4503
4503
  }
4504
4504
  if (!hasText(rule.expression) && hasText(record.parameterDtoId)) {
@@ -4506,7 +4506,7 @@ export async function microfunctionStepFindings(platform, project, environment,
4506
4506
  ruleId: 'WF-MF-001',
4507
4507
  severity: 'warn',
4508
4508
  message: `'${label}' adımında rule.expression boş ama '${String(record.name ?? microfunctionId)}' fonksiyonunun bir parametre DTO'su var (parameterDtoId: ${String(record.parameterDtoId)}). Fonksiyon args olarak boş nesne alır ve kendi alanlarını undefined görür. Argümanları ifadeyle geçirin — şemayı microfunction_get çıktısındaki parameterScheme verir.`,
4509
- guide: 'ngapps://guides/microfunction'
4509
+ guide: 'zeyrek://guides/microfunction'
4510
4510
  });
4511
4511
  }
4512
4512
  }
@@ -4560,7 +4560,7 @@ export async function microfunctionArchiveEntrypointFindings(platform, project,
4560
4560
  ruleId: 'MF-006',
4561
4561
  severity: 'warn',
4562
4562
  message: `operations[${breaking.index}] (${breaking.type} ${breaking.path}) kaydın entrypoint modülünü (${modulePath}, entrypoint '${entrypoint}') ${breaking.type === 'delete' ? 'siliyor' : 'taşıyor'}. Değişiklik yazılır ama yayın 400 ile düşer (MicrofunctionArchiveInvalidException): ya aynı yola dosya yazın ya da microfunction_update ile entrypoint'i yeni modüle çevirin.`,
4563
- guide: 'ngapps://guides/microfunction'
4563
+ guide: 'zeyrek://guides/microfunction'
4564
4564
  }];
4565
4565
  }
4566
4566
  /** `MicrofunctionLanguageProfile.ModuleExtension` — dil adı bilgi katmanında taşınır. */
@@ -4621,7 +4621,7 @@ export async function workflowStepFindings(platform, project, environment, appli
4621
4621
  .filter(site => GUID_PATTERN.test(String(site.rule.workflowId ?? '')));
4622
4622
  if (sites.length === 0)
4623
4623
  return applyPolicyMode(platform.config, balanceFindings, policyOverride);
4624
- const guide = 'ngapps://guides/workflow';
4624
+ const guide = 'zeyrek://guides/workflow';
4625
4625
  const records = new Map();
4626
4626
  const findings = [...balanceFindings];
4627
4627
  for (const { label, rule } of sites) {
@@ -4730,7 +4730,7 @@ export async function undefinedInputFieldFindings(platform, project, environment
4730
4730
  ruleId: 'WF-031',
4731
4731
  severity: 'warn',
4732
4732
  message: `'${stepLabel(step)}' adımı ${missing.map(name => `input.${name}`).join(', ')} alanlarını yazıyor ama akışın giriş DTO'sunda bu alanlar YOK: ifade undefined döner, platform kolonu NULL yazar ve satırdaki mevcut değer SİLİNİR (yanıt yine 200). Yazma adımında SET listesi fields[]'tir, gövde değil — 'göndermediğim alan değişmez' (REST PATCH) sezgisi burada geçmez. İki doğru çıkış: (1) adımı EYLEM BAŞINA daraltın, fields[] yalnız bu eylemin gerçekten yazdığı alanları listelesin (kanban taşıma: yalnız status); (2) alanı DTO'ya ekleyin VE çağıranın her istekte gönderdiğinden emin olun — DTO'ya eklemek yalnız izin verir, göndermeyi garanti etmez. Alan kümesi ancak çağrı anında belliyse akışta oku-birleştir: önce table get, sonra "typeof input.x !== 'undefined' && input.x !== null ? input.x : read_row.data.x" (bedeli fazladan okuma ve son-yazan-kazanır).`,
4733
- guide: 'ngapps://guides/workflow'
4733
+ guide: 'zeyrek://guides/workflow'
4734
4734
  }]
4735
4735
  : [];
4736
4736
  });
@@ -4778,7 +4778,7 @@ export async function responseDtoFieldFindings(platform, project, environment, d
4778
4778
  ruleId: 'WF-040',
4779
4779
  severity: 'warn',
4780
4780
  message: `'${stepLabel(step)}' adımının gövdesi ${missing.join(', ')} anahtarlarını döndürüyor ama akışın dönüş DTO'sunda (returnDtoId: ${String(body.returnDtoId)}) bu alanlar YOK: platform 2xx gövdeyi DTO şemasından geçirir ve tanımsız anahtarı iz bırakmadan siler — istemci alanı hiç görmez, yanıt yine 200. Alanı DTO'ya ekleyin (dto_update) ya da gövdeden çıkarın. workflow_preview'da response adımının meta'sı düşen yolları droppedFields olarak gösterir (bu alanı taşıyan backend'de).`,
4781
- guide: 'ngapps://guides/workflow'
4781
+ guide: 'zeyrek://guides/workflow'
4782
4782
  }]
4783
4783
  : [];
4784
4784
  });