@appaflytech/zeyrek-ai-mcp 0.0.67 → 0.0.69

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.
@@ -173,7 +173,8 @@
173
173
  "microfunction",
174
174
  "process",
175
175
  "balance",
176
- "push"
176
+ "push",
177
+ "social-sign-in"
177
178
  ],
178
179
  "type": "string",
179
180
  "format": ""
@@ -293,6 +294,10 @@
293
294
  "type": "string",
294
295
  "nullable": true
295
296
  },
297
+ "signInOperation": {
298
+ "type": "string",
299
+ "nullable": true
300
+ },
296
301
  "queryId": {
297
302
  "type": "string",
298
303
  "format": "uuid",
@@ -78,7 +78,8 @@
78
78
  "microfunction",
79
79
  "process",
80
80
  "balance",
81
- "push"
81
+ "push",
82
+ "social-sign-in"
82
83
  ],
83
84
  "type": "string",
84
85
  "format": ""
@@ -198,6 +199,10 @@
198
199
  "type": "string",
199
200
  "nullable": true
200
201
  },
202
+ "signInOperation": {
203
+ "type": "string",
204
+ "nullable": true
205
+ },
201
206
  "queryId": {
202
207
  "type": "string",
203
208
  "format": "uuid",
@@ -235,7 +235,8 @@
235
235
  "microfunction",
236
236
  "process",
237
237
  "balance",
238
- "push"
238
+ "push",
239
+ "social-sign-in"
239
240
  ],
240
241
  "type": "string",
241
242
  "format": ""
@@ -355,6 +356,10 @@
355
356
  "type": "string",
356
357
  "nullable": true
357
358
  },
359
+ "signInOperation": {
360
+ "type": "string",
361
+ "nullable": true
362
+ },
358
363
  "queryId": {
359
364
  "type": "string",
360
365
  "format": "uuid",
package/dist/server.js CHANGED
@@ -55,6 +55,7 @@ import { registerBpmReportingTools } from "./tools/bpmReporting.js";
55
55
  import { registerModuleTools } from "./tools/modules.js";
56
56
  import { registerMobileTools } from "./tools/mobile.js";
57
57
  import { registerMobileStoreTools } from "./tools/mobileStore.js";
58
+ import { registerSignInProviderTools } from "./tools/signInProviders.js";
58
59
  import { registerMobilePurchaseTools } from "./tools/mobilePurchases.js";
59
60
  import { registerMobileStoreImportTools } from "./tools/mobileStoreImport.js";
60
61
  import { registerAssistantTools } from "./tools/assistant.js";
@@ -116,6 +117,7 @@ const moduleRegistrations = {
116
117
  registerMobileTools(server, platform);
117
118
  registerMobileStoreTools(server, platform);
118
119
  registerMobilePurchaseTools(server, platform);
120
+ registerSignInProviderTools(server, platform);
119
121
  registerMobileStoreImportTools(server, platform);
120
122
  registerMobilePublishPrompt(server);
121
123
  },
@@ -17,7 +17,8 @@ import { randomUUID } from 'node:crypto';
17
17
  import { flowProfileWarnings } from './profileWrite.js';
18
18
  import { enforceTextHooks } from './textHookGuard.js';
19
19
  import { readMobileOffline } from '../knowledge/platform/mobileOffline.js';
20
- import { restorePathWarnings, subscriptionDisclosureWarnings } from '../knowledge/platform/mobileRules.js';
20
+ import { googleWithoutAppleWarnings, restorePathWarnings, signInSettingsWarnings, subscriptionDisclosureWarnings } from '../knowledge/platform/mobileRules.js';
21
+ import { signInSettingStates } from '../knowledge/signInProviders.js';
21
22
  import { balanceCatalogFindings, balanceWithoutSignInWarnings, purchaseCatalogFindings } from '../knowledge/mobileStore.js';
22
23
  import { resolveProfile } from '../knowledge/platform/resolve.js';
23
24
  import { jsonArray } from '../platform/jsonArray.js';
@@ -436,13 +437,15 @@ async function uncachedReadWarnings(platform, applicationId, steps, errorSteps,
436
437
  * sayfanın ağacı — ve yalnız yazılan akışta `purchase` adımı varken okunur. Katalogda olmayan statik anahtar `block`
437
438
  * bulgusudur (`findings`; çağıran yazımdan ÖNCE `applyPolicyMode` + `enforcePolicy` ile uygular — CD-005 kalıbı), öteki
438
439
  * ikisi uyarıdır. Web uygulamasında adım her zaman `unsupported` döner (barındırıcı satın alma taşımaz): katalog
439
- * okunmaz, yalnız uyarı. Okunamayan katalog ya da akış listesi bulgu üretmez — bilmediğimizi ret diye söylemeyiz.
440
+ * okunmaz, yalnız uyarı. `sign-in-with` (FLOW-047, kök ADR 0035) katalog istemez: yalnız bu web uyarısını taşır, mobilde hiçbir şey
441
+ * okunmaz. Okunamayan katalog ya da akış listesi bulgu üretmez — bilmediğimizi ret diye söylemeyiz.
440
442
  */
441
443
  async function purchaseChecks(platform, host, project, environment, applicationId, hostId, hostRecord, flowId, steps, errorSteps) {
442
444
  const written = [...(Array.isArray(steps) ? steps : []), ...(Array.isArray(errorSteps) ? errorSteps : [])].filter(isRecord);
443
445
  const purchases = written.filter(step => String(step.type ?? '') === 'purchase');
444
446
  const spends = written.filter(step => String(step.type ?? '') === 'balance-spend');
445
- if (purchases.length === 0 && spends.length === 0)
447
+ const signIns = written.filter(step => String(step.type ?? '') === 'sign-in-with');
448
+ if (purchases.length === 0 && spends.length === 0 && signIns.length === 0)
446
449
  return { findings: [], warnings: [] };
447
450
  const resolved = await resolveProfile(platform, applicationId);
448
451
  if (resolved.known && resolved.profile.platform !== 'mobile') {
@@ -450,19 +453,28 @@ async function purchaseChecks(platform, host, project, environment, applicationI
450
453
  findings: [],
451
454
  warnings: [
452
455
  ...(purchases.length > 0 ? [`FLOW-045: '${String(purchases[0]?.stepId ?? purchases[0]?.name ?? '?')}' purchase adımı bu web uygulamasında her zaman 'unsupported' döner — uygulama içi satın alma yalnız mobil uygulamanın mağaza derlemesindedir (önizlemede deneme penceresi).`] : []),
453
- ...(spends.length > 0 ? [`FLOW-046: '${String(spends[0]?.stepId ?? spends[0]?.name ?? '?')}' balance-spend adımı bu web uygulamasında her zaman 'unsupported' döner — bakiye harcama yalnız mobil uygulamanın mağaza derlemesindedir (önizlemede deneme penceresi).`] : [])
456
+ ...(spends.length > 0 ? [`FLOW-046: '${String(spends[0]?.stepId ?? spends[0]?.name ?? '?')}' balance-spend adımı bu web uygulamasında her zaman 'unsupported' döner — bakiye harcama yalnız mobil uygulamanın mağaza derlemesindedir (önizlemede deneme penceresi).`] : []),
457
+ ...(signIns.length > 0 ? [`FLOW-047: '${String(signIns[0]?.stepId ?? signIns[0]?.name ?? '?')}' sign-in-with adımı bu web uygulamasında her zaman 'unsupported' döner — yerel Apple / Google penceresi yalnız mobil uygulamanın mağaza derlemesindedir. Web girişi yönlendirmeyledir (platform_guide('workflow') §Google / Apple girişi).`] : [])
454
458
  ]
455
459
  };
456
460
  }
461
+ const otherFlows = purchases.length > 0 || signIns.length > 0
462
+ ? await listHostFlows(platform, host, project, environment, applicationId, hostId, async () => hostRecord)
463
+ .then(flows => flows.filter(flow => String(flow.id ?? '').toLowerCase() !== flowId.toLowerCase()), () => undefined)
464
+ : undefined;
465
+ const signInStates = signIns.length > 0
466
+ ? await platform.org('GET', `/applications/${applicationId}/sign-in-providers`).then(signInSettingStates, () => undefined)
467
+ : undefined;
468
+ const signInWarnings = signIns.length > 0
469
+ ? [...googleWithoutAppleWarnings(written, otherFlows), ...signInSettingsWarnings(written, signInStates)]
470
+ : [];
471
+ if (purchases.length === 0 && spends.length === 0)
472
+ return { findings: [], warnings: signInWarnings };
457
473
  const products = await platform.org('GET', `/mobile-store/${applicationId}/products`)
458
474
  .then(payload => {
459
475
  const data = isRecord(payload) && 'data' in payload ? payload.data : payload;
460
476
  return Array.isArray(data) ? data.filter(isRecord) : undefined;
461
477
  }, () => undefined);
462
- const otherFlows = purchases.length > 0
463
- ? await listHostFlows(platform, host, project, environment, applicationId, hostId, async () => hostRecord)
464
- .then(flows => flows.filter(flow => String(flow.id ?? '').toLowerCase() !== flowId.toLowerCase()), () => undefined)
465
- : undefined;
466
478
  const microservices = spends.length > 0 && products
467
479
  ? await platform.tenant('GET', project, `/microservices/${applicationId}`, { environment, query: { pageLength: 200 } })
468
480
  .then(payload => {
@@ -474,6 +486,7 @@ async function purchaseChecks(platform, host, project, environment, applicationI
474
486
  return {
475
487
  findings: products ? [...purchaseCatalogFindings(purchases, products), ...balanceCatalogFindings(spends, products)] : [],
476
488
  warnings: [
489
+ ...signInWarnings,
477
490
  ...(otherFlows ? restorePathWarnings(written, otherFlows, products) : []),
478
491
  ...(products && purchases.length > 0 && host === 'page' ? subscriptionDisclosureWarnings(written, products, hostNodes(hostRecord), otherFlows ?? []) : []),
479
492
  ...(products && spends.length > 0 ? balanceWithoutSignInWarnings(products, microservices) : [])
@@ -68,7 +68,7 @@ const guideRouting = {
68
68
  page: 'sayfa/flow işleri; prop\'u veri kaynağına bağlama (connectData, Kural 1c-3); flex düzen prop grubu ve boyut modları (Kural 1f-2)',
69
69
  layout: 'yerleşim kabuğu: tek slot, views, dar ekranda yığılma, widthType fill/fixed/auto',
70
70
  mobile: "mobil UYGULAMA (type:'mobile'): kurulum sırası (mobile_app_create), flex-only yerleşim, tipli stil, sekmeler (properties.mobile.tabs) ve çekmece, sayfa mount/focus olayları, MOB-* bulguları, page_screenshot device",
71
- 'mobile-steps': "mobil uygulamada cihaza dokunan akış adımları (redirect, alert, confirm, download, storage, setcookie, share, haptic, location, notification-*, permission, open-settings, back, ad-show, scan-code, biometric-auth, purchase, restore-purchases, balance-spend): mobildeki davranış, args sözleşmesi, Steps.<adım> sonucu; bildirim, izin, reklam, biyometri, satın alma (Entitlements/Products, teklif ekranı), kredi harcama (Balances, balance-spend) ve konum tarifleri; FLOW-029/030/045/046, MOB-024/026/027/034/035/036",
71
+ 'mobile-steps': "mobil uygulamada cihaza dokunan akış adımları (redirect, alert, confirm, download, storage, setcookie, share, haptic, location, notification-*, permission, open-settings, back, ad-show, scan-code, biometric-auth, sign-in-with, purchase, restore-purchases, balance-spend): mobildeki davranış, args sözleşmesi, Steps.<adım> sonucu; bildirim, izin, reklam, biyometri, Apple / Google ile giriş (istemci yarısı), satın alma (Entitlements/Products, teklif ekranı), kredi harcama (Balances, balance-spend) ve konum tarifleri; FLOW-029/030/045/046/047, MOB-024/026/027/034/035/036",
72
72
  'mobile-publish': "mobil uygulamanın mağaza yayını: altı adımlı yolculuk, mobile_store_* / mobile_build_* akışı, ön kontrol P-01…P-23 (push kimlikleri, izinler, reklam, kod tarama, App Review, satın alma kabuğu), yayın hedefleri (yalnız dryRun), uygulama içi satın alma (mobile_product_* / mobile_purchase_*: ürün — abonelik, tek seferlik, tüketilen kredi/jeton → hazırlık → faturalandırmalı derleme → gönder; elle kalanlar), iki tür güncelleme, derleme hata kodları, insanın Studio'da yaptıkları (test kullanıcıları dahil)",
73
73
  'mobile-connect-data': "mobil uygulamada veri bağlamanın telefon farkı: alt sayfa / ↗ tam ekran seçim (lookup.mobileMode, mobileRow), sonsuz kaydırma (behavior.mobile), datatable kartı (mobileCard), gruplu liste grouping, autocomplete araması, CD-004/019/020",
74
74
  'mobile-layout': 'mobil ekranın mizanpajı — tek dil: güvenli alan, tek kaydırıcı, 16 dp kenar, gap ritmi, saydam/yüzeyli grup, genişlik, yarıçap/yazı ölçeği; MOB-015…021 reçeteleri ve layoutReport hiza ölçümü',
@@ -0,0 +1,60 @@
1
+ import { z } from 'zod';
2
+ import { destructive, guid, readOnly, updates } from './common.js';
3
+ import { PlatformApiError } from '../platform/errors.js';
4
+ import { handle } from '../platform/responses.js';
5
+ import { unwrap } from './screens.js';
6
+ import { SIGN_IN_PROVIDERS, signInFieldProblems, signInProvidersView, signInProviderView, signInSecretProblems } from '../knowledge/signInProviders.js';
7
+ const applicationId = guid.describe("Uygulamanın id'si — mobil ya da web (application_list çıktısı)");
8
+ const provider = z.enum(SIGN_IN_PROVIDERS).describe("Giriş sağlayıcısı: 'apple' ya da 'google' (mobil akış adımı sign-in-with ve workflow adımı social-sign-in ile aynı küme)");
9
+ const identifier = (about) => z.string().max(128).optional().describe(`${about}. Boş metin ('') alanı siler; verilmeyen alan değişmez.`);
10
+ const FIELD_KEYS = ['enabled', 'webClientId', 'iosClientId', 'androidClientId', 'bundleId', 'servicesId', 'teamId', 'keyId', 'secret'];
11
+ function assertWritable(tool, name, patch) {
12
+ const written = FIELD_KEYS.filter(key => patch[key] !== undefined);
13
+ if (written.length === 0)
14
+ throw new PlatformApiError(`${tool}: en az bir alan verilir (enabled, kimlik alanları ya da secret) — istek gönderilmedi.`, 400);
15
+ const problems = [...signInFieldProblems(name, patch), ...(patch.secret === undefined ? [] : signInSecretProblems(name, patch.secret))];
16
+ if (problems.length > 0)
17
+ throw new PlatformApiError(`${tool}: ${problems.join(' ')} (istek gönderilmedi)`, 400);
18
+ return written;
19
+ }
20
+ export function registerSignInProviderTools(server, platform) {
21
+ const config = platform.config;
22
+ server.registerTool('application_sign_in_get', {
23
+ title: 'Giriş sağlayıcıları ayarını oku',
24
+ description: "Uygulamanın Apple / Google giriş ayarını döner (GET applications/{id}/sign-in-providers; web ve mobil uygulama, kök ADR 0036). Her iki sağlayıcı da listelenir: kaydı olmayan 'configured: false'. Satırda enabled, fields (gizli olmayan kimlikler: Google webClientId / iosClientId / androidClientId; Apple bundleId / servicesId / teamId / keyId), hasSecret + updatedAt (sır saklı mı, ne zaman yazıldı) ve missing (açık sağlayıcının eksik zorunlu alanları) bulunur. SIR DEĞERİ HİÇBİR YOLLA DÖNMEZ: ne backend ne gateway; yanıt beyaz listeyle kurulur. Ayar uygulama başınadır (ortam başına değil) ve yayımlanmış mobil ikilileri değiştirmez — Google kimlikleri derlemeye manifestten girer, kimlik değişince yeni derleme gerekir. Yetki mobile.store.read; backend bu uçları henüz yayımlamamışsa 404.",
25
+ inputSchema: { applicationId },
26
+ annotations: readOnly
27
+ }, handle(config, async ({ applicationId: appId }) => signInProvidersView(appId, await platform.org('GET', `/applications/${appId}/sign-in-providers`))));
28
+ server.registerTool('application_sign_in_update', {
29
+ title: 'Giriş sağlayıcısı ayarını yaz',
30
+ description: "Bir sağlayıcının ayarını KISMİ yazar (PUT applications/{id}/sign-in-providers/{provider}; yalnız verilen alanlar gider): verilmeyen alan değişmez, '' alanı siler, secret verilmezse saklı sır korunur, verilirse yeniden mühürlenir (tek sır: Google istemci sırrı ya da Apple .p8 özel anahtarının PEM metni). Alanlar: Google webClientId · iosClientId · androidClientId (biçim <sayı>-<ad>.apps.googleusercontent.com); Apple bundleId · servicesId (web) · teamId · keyId (10 karakter, büyük harf/rakam). Başka sağlayıcının alanı 422 yerine istek gitmeden reddedilir. enabled: true yazmak için birleşik durumda zorunlu alanlar tam olmalı (Google: üç kimlikten biri; Apple: teamId, keyId, bundleId ya da servicesId, sır) — değilse backend 400 verir ve hiçbir şey yazmaz. SIR yanıta, iletiye ve günlüğe girmez (yalnız secretWritten: true ve hasSecret döner); sırrı kullanıcı verir, sohbette tekrar etmeyin ve rehberlere yazmayın. İstemci kimlikleri gizli değildir ama bu aracı yalnız kullanıcının isteğiyle çağırın. Ayarı değiştirmek yayımlanmış ikilileri değiştirmez: yeni mağaza derlemesi gerekir. Yetki mobile.secrets.write.",
31
+ inputSchema: {
32
+ applicationId,
33
+ provider,
34
+ enabled: z.boolean().optional().describe('Sağlayıcıyı aç / kapat. Açmak için zorunlu alanların tam olması gerekir'),
35
+ webClientId: identifier('Google web istemci kimliği (sunucu jetonu bu kimliğe karşı doğrular; web girişi de bunu kullanır)'),
36
+ iosClientId: identifier('Google iOS istemci kimliği (cihaz penceresi)'),
37
+ androidClientId: identifier('Google Android istemci kimliği (isteğe bağlı)'),
38
+ bundleId: identifier('Apple: mobil uygulamanın bundle id\'si (jetonun aud değeri)'),
39
+ servicesId: identifier('Apple: web girişi için Services ID'),
40
+ teamId: identifier('Apple takım kimliği — jetonun sub değeri takım kapsamlıdır, takım değişirse kullanıcı kimlikleri eşleşmez'),
41
+ keyId: identifier('Apple Sign in with Apple anahtarının Key ID değeri'),
42
+ secret: z.string().max(4096).optional().describe("Google istemci sırrı ya da Apple .p8 PEM metni. Verilmezse saklı sır değişmez; '' kabul edilmez. Yanıtta dönmez")
43
+ },
44
+ annotations: updates
45
+ }, handle(config, async ({ applicationId: appId, provider: name, ...patch }) => {
46
+ const written = assertWritable('application_sign_in_update', name, patch);
47
+ const body = Object.fromEntries(written.map(key => [key, patch[key]]));
48
+ const saved = signInProviderView(unwrap(await platform.org('PUT', `/applications/${appId}/sign-in-providers/${name}`, { body })));
49
+ return { ...saved, written, secretWritten: patch.secret !== undefined, note: 'Ayar kaydedildi. Google kimlikleri derlemeye manifestten girer: mağaza derlemesi için yeni mobile_build_start gerekir (platform_guide(\'mobile-publish\') §Giriş).' };
50
+ }));
51
+ server.registerTool('application_sign_in_delete', {
52
+ title: 'Giriş sağlayıcısı ayarını sil',
53
+ description: "Sağlayıcı satırını SIR DAHİL siler (DELETE applications/{id}/sign-in-providers/{provider}); sır geri okunamadığı için silinen sırrı yeniden yazmak kullanıcıdan yeniden istemek demektir. Sağlayıcı küme dışıysa (apple | google dışı) istek gitmez. Satır yoksa backend 404 verir. Silmek yalnız kullanıcının isteğiyle; sırrı yalnız değiştirmek için application_sign_in_update { secret } yeterlidir. Yetki mobile.secrets.write.",
54
+ inputSchema: { applicationId, provider },
55
+ annotations: destructive
56
+ }, handle(config, async ({ applicationId: appId, provider: name }) => {
57
+ await platform.org('DELETE', `/applications/${appId}/sign-in-providers/${name}`);
58
+ return { applicationId: appId, provider: name, deleted: true };
59
+ }));
60
+ }
@@ -4,7 +4,7 @@ import { evaluatePolicy, enforcePolicy, attachFindings } from '../knowledge/poli
4
4
  import { workflowOutline, resolvePart, resolvePatchOperations } from '../knowledge/outlines.js';
5
5
  import { patchResult, baseVersionOf } from '../platform/patch.js';
6
6
  import { writeDiff, withWriteDiff } from '../platform/writeDiff.js';
7
- import { policyRules, microfunctionStepFindings, workflowStepFindings, undefinedInputFieldFindings, responseDtoFieldFindings, pushReachable } from '../knowledge/rules.js';
7
+ import { policyRules, microfunctionStepFindings, workflowStepFindings, undefinedInputFieldFindings, responseDtoFieldFindings, reachableStepTypes } from '../knowledge/rules.js';
8
8
  import { PolicyBlockError } from '../knowledge/policy.js';
9
9
  import { identityMiddlewareFindings, simpleProjectPushUserFindings } from '../knowledge/access.js';
10
10
  import { languageHeader } from '../knowledge/languageCodes.js';
@@ -75,10 +75,11 @@ async function enrichMiddlewareVariables(platform, project, environment, applica
75
75
  });
76
76
  }
77
77
  /**
78
- * WF-036 (kök ADR 0032): `push` adımı taşıyan bir akışı AI production'da çalıştırmaz ve tetiklemez —
79
- * bildirim kullanıcının telefonuna gider, geri alınamaz. Tanım YALNIZ production'da okunur ve `workflow`
80
- * adımlarının çağırdığı alt akışlar da izlenir (`pushReachable`); biri okunamazsa kapı kapalı kalır.
81
- * Önizleme kapıya girmez: push önizlemede göndermez (commit'e bağlı yayın).
78
+ * WF-036 (kök ADR 0032) ve WF-046 (kök ADR 0036): `push` ya da `social-sign-in` adımı taşıyan bir akışı AI production'da
79
+ * çalıştırmaz ve tetiklemez. Push bildirimi kullanıcının telefonuna gider; sosyal giriş gerçek kimliği oturuma bağlar, `revoke`
80
+ * kimlik bağlarını siler ve Apple yenileme jetonunu iptal eder — ikisi de geri alınamaz. Tanım YALNIZ production'da okunur ve
81
+ * `workflow` adımlarının çağırdığı alt akışlar da izlenir (`reachableStepTypes`); biri okunamazsa kapı kapalı kalır. Önizleme
82
+ * kapıya girmez: ikisi de önizlemede işlemi geri alır ya da göndermez.
82
83
  */
83
84
  export async function assertNoPushInProduction(tool, environment, config, load, loadWorkflow) {
84
85
  if ((environment ?? config.defaultEnvironment) !== 'production')
@@ -88,17 +89,27 @@ export async function assertNoPushInProduction(tool, environment, config, load,
88
89
  return ((record?.data ?? record) ?? null);
89
90
  };
90
91
  const definition = await load().then(bodyOf, () => null);
91
- const sends = definition === null
92
+ const found = definition === null
92
93
  ? null
93
- : await pushReachable(definition, workflowId => loadWorkflow(workflowId).then(bodyOf)).catch(() => null);
94
- if (sends === false)
94
+ : await reachableStepTypes(definition, workflowId => loadWorkflow(workflowId).then(bodyOf), ['push', 'social-sign-in']).catch(() => null);
95
+ if (found !== null && found.size === 0)
95
96
  return;
96
- throw new PolicyBlockError([{
97
- ruleId: 'WF-036',
98
- severity: 'block',
99
- message: `${tool}: push adımı taşıyan akış (alt workflow'lar dahil) production'da AI tarafından çalıştırılmaz — bildirim kullanıcıların telefonuna gider ve geri alınamaz.${sends === null ? ' Tanım ya da bir alt workflow okunamadı; kapı kapalı kalır.' : ''} Development'ta deneyin; production'da çalıştırmak insanın işidir.`,
100
- guide: 'ngapps://guides/workflow'
101
- }], false);
97
+ const unreadable = ' Tanım ya da bir alt workflow okunamadı; kapı kapalı kalır.';
98
+ const findings = [
99
+ ...(found === null || found.has('push') ? [{
100
+ ruleId: 'WF-036',
101
+ severity: 'block',
102
+ message: `${tool}: push adımı taşıyan akış (alt workflow'lar dahil) production'da AI tarafından çalıştırılmaz — bildirim kullanıcıların telefonuna gider ve geri alınamaz.${found === null ? unreadable : ''} Development'ta deneyin; production'da çalıştırmak insanın işidir.`,
103
+ guide: 'ngapps://guides/workflow'
104
+ }] : []),
105
+ ...(found === null || found.has('social-sign-in') ? [{
106
+ ruleId: 'WF-046',
107
+ severity: 'block',
108
+ message: `${tool}: social-sign-in adımı taşıyan akış (alt workflow'lar dahil) production'da AI tarafından çalıştırılmaz — gerçek kullanıcı kimliğini oturuma bağlar; revoke kimlik bağlarını siler ve Apple yenileme jetonunu iptal eder, geri alınamaz.${found === null ? unreadable : ''} Development'ta deneyin; production'da çalıştırmak insanın işidir.`,
109
+ guide: 'ngapps://guides/workflow'
110
+ }] : [])
111
+ ];
112
+ throw new PolicyBlockError(findings, false);
102
113
  }
103
114
  export function registerWorkflowTools(server, platform) {
104
115
  const config = platform.config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appaflytech/zeyrek-ai-mcp",
3
- "version": "0.0.67",
3
+ "version": "0.0.69",
4
4
  "type": "module",
5
5
  "description": "Zeyrek (NgApps) platform APIs as MCP tools — data, logic and Studio design surface in one gateway",
6
6
  "license": "UNLICENSED",