@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.
- package/.env.example +18 -1
- package/.env.production.example +17 -0
- package/README.md +50 -5
- package/dist/auth/clientRegistry.js +57 -0
- package/dist/auth/gatewayOAuthProvider.js +115 -0
- package/dist/auth/loginPage.js +60 -0
- package/dist/auth/loginRoute.js +56 -0
- package/dist/auth/loginThrottle.js +33 -0
- package/dist/auth/tokenSeal.js +25 -0
- package/dist/config.js +80 -4
- package/dist/gatewayVersion.js +3 -0
- package/dist/httpApp.js +73 -0
- package/dist/index.js +11 -47
- package/dist/knowledge/access.js +22 -22
- package/dist/knowledge/backendConstraints.js +18 -18
- package/dist/knowledge/case.js +1 -1
- package/dist/knowledge/componentCatalog.js +1 -1
- package/dist/knowledge/coverage.js +5 -5
- package/dist/knowledge/decision.js +1 -1
- package/dist/knowledge/languages.js +1 -1
- package/dist/knowledge/methodEffect.js +1 -1
- package/dist/knowledge/mobileStore.js +3 -3
- package/dist/knowledge/normalize.js +1 -1
- package/dist/knowledge/process.js +15 -15
- package/dist/knowledge/rules.js +207 -207
- package/dist/knowledge/schemaGuard.js +2 -2
- package/dist/knowledge/socialSignIn.js +1 -1
- package/dist/knowledge/themeRules.js +1 -1
- package/dist/observability/gapSink.js +1 -2
- package/dist/observability/trace.js +1 -1
- package/dist/platform/errors.js +4 -2
- package/dist/platform/http.js +13 -3
- package/dist/platform/localFiles.js +21 -0
- package/dist/platform/token.js +74 -52
- package/dist/resources/examples/flow-sign-in-with.json +1 -1
- package/dist/resources/examples/function-total.json +1 -1
- package/dist/resources/examples/mobile-list-detail-form.json +1 -1
- package/dist/resources/guides/bpm.md +3 -3
- package/dist/resources/guides/entity.md +5 -5
- package/dist/resources/guides/external-component.md +1 -1
- package/dist/resources/guides/functions.md +3 -3
- package/dist/resources/guides/getting-started.md +17 -4
- package/dist/resources/guides/html.md +1 -1
- package/dist/resources/guides/layout.md +1 -1
- package/dist/resources/guides/microfunction.md +2 -2
- package/dist/resources/guides/microservice.md +2 -2
- package/dist/resources/guides/middleware.md +2 -2
- package/dist/resources/guides/mobile-layout.md +1 -1
- package/dist/resources/guides/mobile-local.md +1 -1
- package/dist/resources/guides/mobile-publish.md +1 -1
- package/dist/resources/guides/mobile-steps.md +6 -6
- package/dist/resources/guides/mobile.md +6 -6
- package/dist/resources/guides/modify-existing.md +1 -1
- package/dist/resources/guides/page.md +23 -23
- package/dist/resources/guides/translation.md +1 -1
- package/dist/resources/guides/view.md +2 -2
- package/dist/resources/guides/workflow.md +9 -9
- package/dist/resources/instructions/server.md +19 -0
- package/dist/resources/knowledge.js +4 -4
- package/dist/resources/read.js +28 -7
- package/dist/resources/rules.js +4 -4
- package/dist/resources/schemas.js +3 -3
- package/dist/server.js +9 -2
- package/dist/tools/access.js +1 -1
- package/dist/tools/accessRuntime.js +1 -1
- package/dist/tools/assistant.js +1 -1
- package/dist/tools/bpm.js +3 -3
- package/dist/tools/bpmOperations.js +1 -1
- package/dist/tools/bpmRuntime.js +2 -2
- package/dist/tools/common.js +1 -1
- package/dist/tools/entities.js +1 -1
- package/dist/tools/externalComponents.js +6 -6
- package/dist/tools/files.js +33 -3
- package/dist/tools/flows.js +1 -1
- package/dist/tools/microservices.js +4 -4
- package/dist/tools/mobile.js +1 -1
- package/dist/tools/mobileStore.js +5 -5
- package/dist/tools/mobileStoreImport.js +3 -3
- package/dist/tools/modules.js +1 -1
- package/dist/tools/platformInfo.js +9 -9
- package/dist/tools/rows.js +2 -2
- package/dist/tools/textHookGuard.js +1 -1
- package/dist/tools/translations.js +3 -3
- package/dist/tools/views.js +2 -2
- package/dist/tools/workflows.js +4 -4
- package/package.json +4 -2
package/dist/tools/bpm.js
CHANGED
|
@@ -25,7 +25,7 @@ export function assertProcessNotProduction(tool, environment, config) {
|
|
|
25
25
|
ruleId: 'BPM-001',
|
|
26
26
|
severity: 'block',
|
|
27
27
|
message: `${tool}: süreç yayını ve yürütmesi production'a gönderilmez. Hedef 'development' ya da bir dal olmalı; production'a taşıma insan onaylı deployment işidir.`,
|
|
28
|
-
guide: '
|
|
28
|
+
guide: 'zeyrek://guides/bpm'
|
|
29
29
|
}], false);
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
@@ -101,7 +101,7 @@ export function registerBpmTools(server, platform) {
|
|
|
101
101
|
}));
|
|
102
102
|
server.registerTool('process_definition_create', {
|
|
103
103
|
title: 'Süreç tanımı oluştur',
|
|
104
|
-
description: "Yeni süreç tanımı yazar (taslak sürüm). bpmn verilirse BPMN 2.0 XML'den tanım oluşturur (POST bpm/definitions/import-bpmn; ≤ 256 KB, büyük dosya için boş tanım + process_bpmn_update { filePath }; zeyrek: uzantısız XML'de derece locked, insan adımı ataması yer tutucu 'initiator' — BPM-016 uyarısı; workflow'suz serviceTask 422). İlk kullanımdan önce platform_guide('bpm') okuyun; altın örnekler
|
|
104
|
+
description: "Yeni süreç tanımı yazar (taslak sürüm). bpmn verilirse BPMN 2.0 XML'den tanım oluşturur (POST bpm/definitions/import-bpmn; ≤ 256 KB, büyük dosya için boş tanım + process_bpmn_update { filePath }; zeyrek: uzantısız XML'de derece locked, insan adımı ataması yer tutucu 'initiator' — BPM-016 uyarısı; workflow'suz serviceTask 422). İlk kullanımdan önce platform_guide('bpm') okuyun; altın örnekler zeyrek://examples/bpm-gorev-kontrol, bpm-satinalma, bpm-iso-dokuman. Tanım ve HER düğüm 'description' taşır (BPM-002, block). Tanım 'analysis: { purpose, summary }', HER düğüm 'analysis: { what, data, why, example }' taşır, her metin { en, tr } iş diliyle; example adımın gerçek hayattan küçük bir vakası (BPM-023, block; Studio'nun Analiz dokümanı sekmesi okur — platform_guide('bpm') § Analiz dokümanı). Kısa biçimler (assignee: 'unit-manager of initiator', sla: 'P2D', edges: [[from, to]]) gateway'de tam biçime çevrilir ve gatewayNormalized ile bildirilir. Yanıt outline'dır; yayın için process_definition_preview ardından process_definition_publish. " + constraintSummary('CreateProcessDefinitionCommand'),
|
|
105
105
|
inputSchema: {
|
|
106
106
|
project: projectParam,
|
|
107
107
|
environment: environmentParam,
|
|
@@ -301,7 +301,7 @@ export function registerBpmTools(server, platform) {
|
|
|
301
301
|
ruleId: 'BPM-013',
|
|
302
302
|
severity: 'block',
|
|
303
303
|
message: "process_override_update kimliksiz gönderilmez: uyarlama uygulama yöneticisi adına yazılır, Studio jetonu 403 alır. İki yol var — development'ta parolasız 'asUserId' (users satır id'si) ya da 'asUser' (access_session_create tokenRefs'teki tok_… değeri).",
|
|
304
|
-
guide: '
|
|
304
|
+
guide: 'zeyrek://guides/bpm'
|
|
305
305
|
}]);
|
|
306
306
|
}
|
|
307
307
|
const headers = await bpmIdentityHeaders(platform, 'process_override_update', project, environment, { asUser, asUserId });
|
|
@@ -135,7 +135,7 @@ export function registerBpmOperationsTools(server, platform) {
|
|
|
135
135
|
ruleId: 'BPM-008',
|
|
136
136
|
severity: 'block',
|
|
137
137
|
message: `process_delegation_create: vekil '${toUserId}' aynı tarih aralığında ve süreçlerde kendi görevlerini başkasına devretmiş. Vekalet zincirlenemez — başka bir vekil seçin, aralığı ya da süreçleri değiştirin veya o vekaleti process_delegation_delete ile bitirin.`,
|
|
138
|
-
guide: '
|
|
138
|
+
guide: 'zeyrek://guides/bpm'
|
|
139
139
|
}]);
|
|
140
140
|
}
|
|
141
141
|
return platform.tenant('POST', project, '/bpm/delegations', {
|
package/dist/tools/bpmRuntime.js
CHANGED
|
@@ -281,7 +281,7 @@ export function registerBpmRuntimeTools(server, platform) {
|
|
|
281
281
|
ruleId: 'BPM-006',
|
|
282
282
|
severity: 'block',
|
|
283
283
|
message: "process_task_update kimliksiz gönderilmez: görev eylemi bir uygulama kullanıcısı adına yapılır. İki yol var — development'ta parolasız 'asUserId' (users satır id'si, 'impersonated-user-id' başlığı) ya da 'asUser' (access_session_create ile giriş yapıp tokenRefs'teki tok_… değeri). /bpm/* uçları platform şemasıyla [Authorize] edildiği için uygulama jetonu 401 alabilir; parolasız yol asUserId'dir.",
|
|
284
|
-
guide: '
|
|
284
|
+
guide: 'zeyrek://guides/bpm'
|
|
285
285
|
}]);
|
|
286
286
|
}
|
|
287
287
|
const payloadAnswers = payload?.answers;
|
|
@@ -301,7 +301,7 @@ export function registerBpmRuntimeTools(server, platform) {
|
|
|
301
301
|
ruleId: 'BPM-018',
|
|
302
302
|
severity: 'block',
|
|
303
303
|
message: "process_task_update action 'sign' password olmadan gönderilmez: düğümün imzası (signature.reauth false değil) her seferinde imzalayanın parolasıyla yeniden kimlik doğrulaması ister (21 CFR 11.200); parolasız istek 401 ReauthenticationRequired döner ve imza girişimi kilit sayacına yazılır. meaning verilmezse düğümün anlamı kullanılır.",
|
|
304
|
-
guide: '
|
|
304
|
+
guide: 'zeyrek://guides/bpm'
|
|
305
305
|
}], false);
|
|
306
306
|
}
|
|
307
307
|
}
|
package/dist/tools/common.js
CHANGED
|
@@ -38,7 +38,7 @@ export const languageParam = z.string().min(1).optional()
|
|
|
38
38
|
export const asUserIdParam = z.string().uuid().optional()
|
|
39
39
|
.describe("Parolasız kullanıcı gözü: users satır id'si (user_list). İstek gateway kimliğiyle ve 'impersonated-user-id' başlığıyla gider; platform özneyi bu kullanıcı olarak kurar — kompleks projede politika, satır kapsamı ve alan maskesi o kullanıcınındır, parola ve oturum gerekmez. Yalnız development ya da dal: production'da platform başlığı düşürür, runtime araçları isteği göndermeden reddeder. asUser ve anonymous ile birlikte verilemez; projede olmayan id reddedilir (platform onu sessizce yok sayıp gateway kimliğiyle yürütürdü).");
|
|
40
40
|
export const definitionParam = z.record(z.unknown())
|
|
41
|
-
.describe('API komut gövdesi birebir geçirilir; şablon için ilgili *_get çıktısını ya da
|
|
41
|
+
.describe('API komut gövdesi birebir geçirilir; şablon için ilgili *_get çıktısını ya da zeyrek://schemas kaynağını kullanın');
|
|
42
42
|
/**
|
|
43
43
|
* Micro-op listesi iki adla dolaşıyordu: sayfa tool'ları `ops`, entity/microservice/workflow
|
|
44
44
|
* patch'leri `operations`. Ajan ikisini karıştırınca ilk çağrı şema hatasıyla düşüyordu
|
package/dist/tools/entities.js
CHANGED
|
@@ -108,7 +108,7 @@ function inPlaceIndexEdits(before, after) {
|
|
|
108
108
|
ruleId: 'ENT-014',
|
|
109
109
|
severity: 'warn',
|
|
110
110
|
message: `'${index.id}' id'li index'in tanımı değişti ama platform var olan bir index'i YERİNDE GÜNCELLEMEZ: farkı yalnız 'id' üzerinden alır, aynı id'yi taşıyan kaydı ne siler ne yeniden kurar. İstek 200 dönse de veritabanında hiçbir şey değişmez. Index'i kaldırıp yeni bir id ile yeniden ekleyin.`,
|
|
111
|
-
guide: '
|
|
111
|
+
guide: 'zeyrek://guides/entity'
|
|
112
112
|
}));
|
|
113
113
|
}
|
|
114
114
|
export function registerEntityTools(server, platform) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { guid, projectParam, environmentParam, readOnly, writes, updates, destructive } from './common.js';
|
|
2
2
|
import { mkdir } from 'node:fs/promises';
|
|
3
|
-
import { readLocalFile, resolveLocalOutput, writeLocalOutput } from '../platform/localFiles.js';
|
|
3
|
+
import { readLocalFile, resolveLocalOutput, writeLocalOutput, removeWhenLocalFilesOff } from '../platform/localFiles.js';
|
|
4
4
|
import { PlatformApiError } from '../platform/errors.js';
|
|
5
5
|
import { handle } from '../platform/responses.js';
|
|
6
6
|
import { basename, join } from 'node:path';
|
|
@@ -173,7 +173,7 @@ export function registerExternalComponentTools(server, platform) {
|
|
|
173
173
|
: "Bu uygulamada yayınlanmış komponent yok. İhtiyacınızı karşılayan hazır bir komponent bulamadıysanız external_component_scaffold ile kendinizinkini yazmaya başlayabilirsiniz."
|
|
174
174
|
};
|
|
175
175
|
}));
|
|
176
|
-
server.registerTool('external_component_scaffold', {
|
|
176
|
+
removeWhenLocalFilesOff(platform.config, server.registerTool('external_component_scaffold', {
|
|
177
177
|
title: 'Harici komponent iskeleti üret',
|
|
178
178
|
description: "Yerel bir dizine çalışan bir harici komponent iskeleti yazar: element.mjs (köprü protokolünü karşılayan sınıf), manifest.json (prop/event/boyut tanımı) ve README. Mevcut katalog ihtiyacınızı karşılamıyorsa buradan başlayın; ürettiği dosyaları düzenleyip external_component_publish ile yayınlarsınız. Dosyalar gateway sürecinin çalıştığı makineye yazılır, içerikleri model bağlamına girmez.",
|
|
179
179
|
inputSchema: {
|
|
@@ -207,10 +207,10 @@ export function registerExternalComponentTools(server, platform) {
|
|
|
207
207
|
protocolVersion: PROTOCOL_VERSION,
|
|
208
208
|
nextStep: `element.mjs ve manifest.json dosyalarını komponentinize göre düzenleyin, sonra external_component_publish ile bundlePath='${join(target, 'element.mjs')}' ve manifestPath='${join(target, 'manifest.json')}' vererek yayınlayın.`
|
|
209
209
|
};
|
|
210
|
-
}));
|
|
211
|
-
server.registerTool('external_component_publish', {
|
|
210
|
+
})));
|
|
211
|
+
removeWhenLocalFilesOff(platform.config, server.registerTool('external_component_publish', {
|
|
212
212
|
title: 'Harici komponenti yayınla',
|
|
213
|
-
description: "Komponent kaydını ve paketini platforma yükler. Paket sunucudaki doğrulama hattından geçer (şema + güvenlik taraması); block bulgusu varsa depolamaya hiç yazılmaz ve rapor döner. Kabul edilen paket taslak (draft) olarak kaydedilir — Studio önizlemesinde görünür, yayınlanmış uygulamada görünmez; yayına almak için external_component_activate. Dosyalar gateway sürecinin okuyabildiği yerel yollardır, içerikleri model bağlamına girmez. Backend ön kontrolü (EXT-001, block): protocolVersion 1, definition.blocks dolu, props[].name ayrılmış DOM adı ya da zx/on önekli olamaz, props[].type sözlükten (
|
|
213
|
+
description: "Komponent kaydını ve paketini platforma yükler. Paket sunucudaki doğrulama hattından geçer (şema + güvenlik taraması); block bulgusu varsa depolamaya hiç yazılmaz ve rapor döner. Kabul edilen paket taslak (draft) olarak kaydedilir — Studio önizlemesinde görünür, yayınlanmış uygulamada görünmez; yayına almak için external_component_activate. Dosyalar gateway sürecinin okuyabildiği yerel yollardır, içerikleri model bağlamına girmez. Backend ön kontrolü (EXT-001, block): protocolVersion 1, definition.blocks dolu, props[].name ayrılmış DOM adı ya da zx/on önekli olamaz, props[].type sözlükten (zeyrek://rules/backend-constraints).",
|
|
214
214
|
inputSchema: {
|
|
215
215
|
project: projectParam,
|
|
216
216
|
environment: environmentParam,
|
|
@@ -268,7 +268,7 @@ export function registerExternalComponentTools(server, platform) {
|
|
|
268
268
|
bundle: bundle?.data,
|
|
269
269
|
...summarizeFindings(bundle?.data?.findings)
|
|
270
270
|
};
|
|
271
|
-
}));
|
|
271
|
+
})));
|
|
272
272
|
server.registerTool('external_component_activate', {
|
|
273
273
|
title: 'Paket sürümünü yayına al',
|
|
274
274
|
description: "Taslak bir paket sürümünü yayına alır; yalnızca metadata değişir, platform yeniden başlatılmaz ve açık oturumlar bozulmaz. Eski bir sürüm verilirse aynı mekanizma geri alma (rollback) olarak çalışır. Doğrulama uyarısı olan bir sürüm acknowledgeWarnings:true olmadan aktive edilemez.",
|
package/dist/tools/files.js
CHANGED
|
@@ -5,6 +5,7 @@ import { readLocalFile, resolveLocalOutput, writeLocalOutput } from '../platform
|
|
|
5
5
|
import { basename, extname } from 'node:path';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import { FORBIDDEN_NAME_CHARACTERS } from '../knowledge/backendConstraints.js';
|
|
8
|
+
import { unwrap } from './screens.js';
|
|
8
9
|
const maxInlineBytes = 8 * 1024 * 1024;
|
|
9
10
|
const maxUploadBytes = 50 * 1024 * 1024;
|
|
10
11
|
/** Metin içerik bağlamdan geçtiği için base64'ün 8 MB sınırından çok daha dar tutulur (G-26). */
|
|
@@ -88,6 +89,32 @@ export async function uploadFile(platform, { project, environment, path, content
|
|
|
88
89
|
: [{ name: 'File', filename: name, contentType: resolvedType, content: bytes }];
|
|
89
90
|
return platform.tenant('POST', project, '/files/upload', { environment, multipart });
|
|
90
91
|
}
|
|
92
|
+
const textExtensions = new Set(['.md', '.markdown', '.txt', '.csv', '.json', '.xml', '.yaml', '.yml']);
|
|
93
|
+
const textContentTypes = new Set(['application/json', 'application/xml', 'application/yaml', 'text/markdown']);
|
|
94
|
+
/**
|
|
95
|
+
* Planı 09 (K11): uygulama notları Sürücü'de `.md` olarak durur, ama `file_upload` `.md`'yi tanımaz ve
|
|
96
|
+
* `application/octet-stream` yükler (yukarıdaki `mimeTypes`). Metin olup olmadığına tip ve uzantı birlikte karar verir.
|
|
97
|
+
* Boyut indirmeden önce kayıttan okunur; yanıt bütçesini aşan dosya ağa çıkmadan reddedilir.
|
|
98
|
+
*/
|
|
99
|
+
async function downloadText(platform, project, environment, id) {
|
|
100
|
+
const record = unwrap(await platform.tenant('GET', project, `/files/${id}`, { environment }));
|
|
101
|
+
const name = String(record.displayName ?? record.name ?? id);
|
|
102
|
+
const extension = String(record.extension ?? extname(name)).toLowerCase();
|
|
103
|
+
const declaredType = String(record.contentType ?? '').split(';')[0]?.trim().toLowerCase() ?? '';
|
|
104
|
+
const textual = textExtensions.has(extension) || declaredType.startsWith('text/') || textContentTypes.has(declaredType);
|
|
105
|
+
const budget = platform.config.maxResponseBytes;
|
|
106
|
+
if (!textual) {
|
|
107
|
+
throw new PlatformApiError(`file_download: '${name}' metin dosyası değil (${declaredType || 'tip yok'}, ${extension || 'uzantı yok'}); ikili içerik yanıtta dönmez. Yerel kurulumda outPath verin; uzak bağlayıcıda ikili dosya indirilemez.`, 400);
|
|
108
|
+
}
|
|
109
|
+
if (typeof record.size === 'number' && record.size > budget) {
|
|
110
|
+
throw new PlatformApiError(`file_download: '${name}' ${record.size} bayt; yanıt bütçesi ${budget} bayt (MAX_RESPONSE_BYTES). Dosyayı bölün ya da yerel kurulumda outPath verin. İstek gönderilmedi.`, 400);
|
|
111
|
+
}
|
|
112
|
+
const payload = await platform.tenant('GET', project, `/files/${id}/download`, { environment, expectBinary: true });
|
|
113
|
+
if (payload.bytes.byteLength > budget) {
|
|
114
|
+
throw new PlatformApiError(`file_download: '${name}' ${payload.bytes.byteLength} bayt; yanıt bütçesi ${budget} bayt (MAX_RESPONSE_BYTES). Dosyayı bölün ya da yerel kurulumda outPath verin.`, 400);
|
|
115
|
+
}
|
|
116
|
+
return { id, name, contentType: declaredType || payload.contentType, sizeBytes: payload.bytes.byteLength, text: payload.bytes.toString('utf8') };
|
|
117
|
+
}
|
|
91
118
|
export function registerFileTools(server, platform) {
|
|
92
119
|
const config = platform.config;
|
|
93
120
|
server.registerTool('file_list', {
|
|
@@ -119,15 +146,18 @@ export function registerFileTools(server, platform) {
|
|
|
119
146
|
}, handle(config, (input) => uploadFile(platform, input)));
|
|
120
147
|
server.registerTool('file_download', {
|
|
121
148
|
title: 'Dosya indir',
|
|
122
|
-
description: "Dosyanın içeriğini indirir ve `outPath`
|
|
149
|
+
description: "Dosyanın içeriğini indirir. `outPath` verilmezse METİN dosyasının (md, txt, csv, json, xml, yaml ya da text/* tipi) içeriği yanıtta `text` olarak döner; ikili dosya (resim, pdf, xlsx…) yanıtta dönmez ve hata verir. Yanıt `MAX_RESPONSE_BYTES`'ı aşan metin de reddedilir. `outPath` verilirse içerik o yerel yola yazılır ve yanıt yalnız özettir (yol, boyut, tip); yol gateway sürecinin makinesine göre çözülür ve uzak kipte (LOCAL_FILES=off) kullanılamaz. Proje Sürücü'sündeki `ai-notlari/` uygulama notları bu araçla okunur.",
|
|
123
150
|
inputSchema: {
|
|
124
151
|
project: projectParam,
|
|
125
152
|
environment: environmentParam,
|
|
126
153
|
id: guid,
|
|
127
|
-
outPath: z.string().min(1).describe("
|
|
154
|
+
outPath: z.string().min(1).optional().describe("Verilirse içerik bu yerel dosya yoluna yazılır; gateway'in çalışma dizininin ya da .env MCP_INPUT_DIR'in altında (göreli yol MCP_INPUT_DIR'e göre). Verilmezse metin dosyası yanıtta döner")
|
|
128
155
|
},
|
|
129
|
-
|
|
156
|
+
// `outPath`'siz çağrı yalnız okur; uzak kipte `outPath` kapıda reddedildiği için araç orada salt okunurdur.
|
|
157
|
+
annotations: config.localFiles === 'off' ? readOnly : writes
|
|
130
158
|
}, handle(config, async ({ project, environment, id, outPath }) => {
|
|
159
|
+
if (outPath === undefined)
|
|
160
|
+
return downloadText(platform, project, environment, id);
|
|
131
161
|
// g-12 (DD-23): hedef izinli kökte mi, indirmeden ÖNCE denetlenir (localFiles).
|
|
132
162
|
const absolute = await resolveLocalOutput('file_download', 'outPath', outPath, config);
|
|
133
163
|
const payload = await platform.tenant('GET', project, `/files/${id}/download`, { environment, expectBinary: true });
|
package/dist/tools/flows.js
CHANGED
|
@@ -45,7 +45,7 @@ async function flowWriteDrops(platform, host, project, environment, applicationI
|
|
|
45
45
|
return emptyWriteDiff();
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
const stepsParam = jsonArray(z.array(z.record(z.unknown()))).describe("Adım listesi (StepManagementSchema: { stepId, name, type, kind, args, branches }). DİKKAT: branches[].nextStepId bir GUID değil, hedef adımın stepId STRING'idir; dal ADI motorun anahtarıdır ve start/setter/code/function adımlarında 'always' olmak zorundadır. Tam şablon:
|
|
48
|
+
const stepsParam = jsonArray(z.array(z.record(z.unknown()))).describe("Adım listesi (StepManagementSchema: { stepId, name, type, kind, args, branches }). DİKKAT: branches[].nextStepId bir GUID değil, hedef adımın stepId STRING'idir; dal ADI motorun anahtarıdır ve start/setter/code/function adımlarında 'always' olmak zorundadır. Tam şablon: zeyrek://examples/flow-load-table (ya da flow_get çıktısı); adım tipleri ve setter/parameters şekli platform_guide('page') Kural 1c. Kullanıcı fonksiyonu çağırmak için 'function' adımı: { type:'function', args:{ functionId:'<function_list id>', functionName:'<ad>', parameters:[{ name:'<bildirimdeki ad>', value:{ type:'static'|'property'|'storage'|'state'|'code', ref } }] } } → çıktı Steps.<adımAdı>.data (zeyrek://examples/flow-call-function, platform_guide('functions')). Mobilde çevrimdışı yazma: 'microservice' adımına 'queued' dalı, servis offlineWritable olmalı (platform_guide('page') Kural 1g-4).");
|
|
49
49
|
const policyOverrideParam = z.boolean().optional();
|
|
50
50
|
const patchOperationsParam = jsonArray(z.array(z.record(z.unknown())).min(1)).describe("RFC 6902 JSON Patch işlemleri; yolları flow_get çıktısıyla keşfedin. Dizi öğelerinde indeks yerine seçici kullanılabilir: '/steps[stepId=paint]/args/iteratees[element=tbl_recruiters]/mapping/source' — seçici gövde platforma gitmeden indekse çevrilir, çözülemezse istek hiç gönderilmez.");
|
|
51
51
|
const flowIdParam = guid.describe("Akış id'si; şemadaki events[].value bu id'dir");
|
|
@@ -72,7 +72,7 @@ async function queryScopeFindings(platform, project, environment, definition) {
|
|
|
72
72
|
ruleId: 'MS-015',
|
|
73
73
|
severity: 'warn',
|
|
74
74
|
message: `Uç bir middleware'in arkasında ama kaynağı 'query': sorgunun ${scoped.map(name => `'${name}'`).join(', ')} parametresi ÇAĞRIDAN geliyor (body → query-string → header) ve middleware'in kurduğu 'user' bu yola girmiyor. Bu parametre bir kimlik/tenant KAPSAMIYSA çağıran başkasının değerini yazıp o kapsamın verisini okuyabilir (ölçüldü 2026-09-07). Sunucu tarafında zorlamak için aynı sorguyu bir workflow query adımından çağırın: uç source:'workflow' + aynı middlewareIds, adımın rule.expression'ı "{ ${scoped[0]}: user.${scoped[0]} }". Parametre kullanıcının serbestçe seçebileceği bir filtreyse (yönetici raporunda şirket seçimi gibi) bu uyarıyı yok sayın. Reçete: platform_guide('microservice') §'Kimlik kapsaması × uç kaynağı'.`,
|
|
75
|
-
guide: '
|
|
75
|
+
guide: 'zeyrek://guides/microservice'
|
|
76
76
|
}]
|
|
77
77
|
: [];
|
|
78
78
|
}
|
|
@@ -123,7 +123,7 @@ const SCREEN_HOSTS = new Set(['page', 'layout', 'component']);
|
|
|
123
123
|
*/
|
|
124
124
|
async function captchaGateFindings(platform, project, environment, applicationId, microserviceId, slug) {
|
|
125
125
|
const findings = [];
|
|
126
|
-
const guide = '
|
|
126
|
+
const guide = 'zeyrek://guides/microservice';
|
|
127
127
|
if (await projectCaptchaProvider(platform, project) === null) {
|
|
128
128
|
findings.push({ ruleId: 'CAPTCHA-003', severity: 'warn', message: captchaNotConfiguredMessage(platform.resolveProject(project), `'${slug}' servisi requiresCaptcha oluyor`), guide });
|
|
129
129
|
}
|
|
@@ -342,7 +342,7 @@ async function resolveRuntimeUrl(platform, project, environment, applicationId,
|
|
|
342
342
|
path,
|
|
343
343
|
absolute: `${platform.config.tenantApiBaseUrl}${path}`,
|
|
344
344
|
headers: {
|
|
345
|
-
Host: `${platform.
|
|
345
|
+
Host: `${platform.organization}.${platform.config.hostSuffix}`,
|
|
346
346
|
'X-Environment': resolvedEnvironment
|
|
347
347
|
},
|
|
348
348
|
note: `Yolu SLUG kurar, 'url' alanı ('${String(definition.url ?? '')}') rotaya girmez. Route parametreleri slug'ın ardına eklenir. Anonim erişim testi için microservice_execute'u anonymous: true ile çağırın; korumalı uçlarda 401, anonim uçlarda 200 beklenir.${notDeployed ? ` ${notDeployed}` : ''}`
|
|
@@ -458,7 +458,7 @@ export function registerMicroserviceTools(server, platform) {
|
|
|
458
458
|
const rename = ifExists === 'duplicate' ? platformRename(definition, saved, 'dash') : { sent: definition };
|
|
459
459
|
// CAPTCHA-003: yeni servisi çağıran akış henüz yoktur (MS-029 yalnız update/patch'te); ayarsız proje burada da söylenir.
|
|
460
460
|
const captchaFindings = definition.requiresCaptcha === true && await projectCaptchaProvider(platform, project) === null
|
|
461
|
-
? [{ ruleId: 'CAPTCHA-003', severity: 'warn', message: captchaNotConfiguredMessage(platform.resolveProject(project), `'${String(definition.slug ?? definition.name ?? '?')}' servisi requiresCaptcha`), guide: '
|
|
461
|
+
? [{ ruleId: 'CAPTCHA-003', severity: 'warn', message: captchaNotConfiguredMessage(platform.resolveProject(project), `'${String(definition.slug ?? definition.name ?? '?')}' servisi requiresCaptcha`), guide: 'zeyrek://guides/microservice' }]
|
|
462
462
|
: [];
|
|
463
463
|
return attachFindings(withUnmappedMembers(withWriteDiff(withResolved(withRename(withNormalization(withOutcome(outlineWrite(payload, view, MICROSERVICE_OUTLINE_KEYS), existing), normalized), rename.renamed), [...resolver.resolved, ...hydrated]), writeDiff(rename.sent, payload)), drift), [...findings, ...captchaFindings]);
|
|
464
464
|
}));
|
package/dist/tools/mobile.js
CHANGED
|
@@ -252,7 +252,7 @@ export function registerMobileTools(server, platform) {
|
|
|
252
252
|
const missing = SHELL_TYPES.filter(type => !catalog.has(type));
|
|
253
253
|
if (missing.length > 0) {
|
|
254
254
|
skipped.add('layout_create');
|
|
255
|
-
warnings.push(`MOB-003 (uyarı) — kabuk bileşenleri mobil katalogda yok (${missing.join(', ')}): layout KURULMADI, sayfalar layout'suz açıldı. Katalog yazıldıktan sonra kabuğu
|
|
255
|
+
warnings.push(`MOB-003 (uyarı) — kabuk bileşenleri mobil katalogda yok (${missing.join(', ')}): layout KURULMADI, sayfalar layout'suz açıldı. Katalog yazıldıktan sonra kabuğu zeyrek://examples/mobile-app-shell-${input.drawer ? 'drawer' : input.tabs ? 'tab' : 'stack'} ile layout_create + page_update(layoutId) olarak kurun.`);
|
|
256
256
|
}
|
|
257
257
|
else {
|
|
258
258
|
const layout = unwrap(await platform.tenant('POST', project, `/layouts/${applicationId}`, {
|
|
@@ -11,7 +11,7 @@ import { previewStoreArt, sharedGalleryServer, storeArtRoot } from '../platform/
|
|
|
11
11
|
import { EYEBROW_MAX, MAX_STYLES, SUBTITLE_MAX, TITLE_MAX } from '../platform/storeArt/deck.js';
|
|
12
12
|
import { LAYOUT_IDS } from '../platform/storeArt/layouts.js';
|
|
13
13
|
import { STYLE_IDS } from '../platform/storeArt/styles.js';
|
|
14
|
-
import { allowedRoots, localBase, privateReadRoot, readLocalFile, resolveLocalOutput, writeLocalOutput } from '../platform/localFiles.js';
|
|
14
|
+
import { allowedRoots, localBase, privateReadRoot, readLocalFile, removeWhenLocalFilesOff, resolveLocalOutput, writeLocalOutput } from '../platform/localFiles.js';
|
|
15
15
|
import { attachFindings, enforcePolicy, evaluatePolicy } from '../knowledge/policy.js';
|
|
16
16
|
import { policyRules } from '../knowledge/rules.js';
|
|
17
17
|
import { APPLE_RELEASE_TYPES, ASSET_KINDS, BUILD_ASSET_KINDS, COLOR_PATTERN, DECLARATION_KEYS, DEVICE_CLASSES, LOCALE_PATTERN, MAX_ASSET_BYTES, MAX_IMAGES_PER_SLOT, ORIENTATIONS, PLAY_TRACKS, RELEASE_STATUSES, SCREENSHOT_CAPTURE_DEVICES, SPLASH_RESIZE_MODES, USER_INTERFACE_STYLES, adsStoreWarnings, shellCapabilityView, trackingDeclarationWarnings, assetSlotProblem, changedStoreFields, mergeStoreSettings, permissionLaunchShellWarnings, permissionLockShellWarnings, permissionStoreBuildWarnings } from '../knowledge/mobileStore.js';
|
|
@@ -682,7 +682,7 @@ export function registerMobileStoreTools(server, platform, storeArt = {}) {
|
|
|
682
682
|
annotations: { ...writes, destructiveHint: true }
|
|
683
683
|
}, handle(config, ({ applicationId: appId, ...upload }) => uploadStoreAsset(platform, appId, upload)));
|
|
684
684
|
const hexColor = z.string().regex(COLOR_PATTERN, "Renk '#RRGGBB' biçiminde verilir");
|
|
685
|
-
server.registerTool('mobile_asset_preview', {
|
|
685
|
+
removeWhenLocalFilesOff(config, server.registerTool('mobile_asset_preview', {
|
|
686
686
|
title: 'Mağaza pazarlama görseli çiz',
|
|
687
687
|
description: "Ham ekran görüntülerini mağaza pazarlama görseline çizer ve aynı kareleri en çok dört hazır stilde yan yana üretir (çeşitleme). Stiller (styles): clean (açık düz), midnight (koyu gradyan + parıltı), aurora (renkli ışık lekeleri), spotlight (koyu + merkez ışık), swiss (ızgara, sola hizalı büyük harf), japandi (kırık beyaz + serif), pastel (yumuşak gradyan + yuvarlak yazı), neon (siyah nokta deseni + neon vurgu). Kare başına yerleşim (slides[i].layout): classic (cihaz ortada), bleed (büyük cihaz alttan taşar, başlık üstte), tilt (3D eğik cihaz), text (cihazsız büyük başlık; path istemez). Çerçeve CSS'tir (Apple görseli değil); çıktı deviceClass'ın mağaza ölçüsünde alfasız JPEG'dir (iphone69 1320×2868, ipad13 2064×2752, phone 1080×2160, tablet7 1200×1920, tablet10 1600×2560), dosya adı <stil>-NN.jpg; kartlar kare sırasıyla (her karenin stilleri yan yana) dizilir ve bu sıra yükleme sırasıdır. Girdi: her kare için page_screenshot { environment: 'production', device, format: 'jpeg', language: <locale>, colorScheme: 'light', outPath } çıktısının yolu; araç sayfa ÇEKMEZ. Platforma kendisi hiçbir şey YAZMAZ: dosyalar yanıttaki directory'ye yazılır ve yanıt galleryUrl taşır (http://127.0.0.1:<port>/g/<anahtar>/) — adresi KULLANICIYA verin; sayfa bir EDİTÖRDÜR: kullanıcı başlığı karenin üstünde yazarak değiştirir, stil/yerleşim/renk/ham kare seçer, kartı kopyalar, sırayı sürükleyerek değiştirir, kartı yeniden çizer ve seçtiklerini 'Seçilenleri yükle' ile screenshot/<locale>/<deviceClass> yuvasına deste sırasıyla ekler (kendiniz ayrıca yüklemeyin, yuvaya kopya düşer). Kullanıcının düzenlemeleri directory/deck.json'dadır. Galeri gateway süreci yaşadıkça açıktır; AUTH_MODE=passthrough'ta galeri açılmaz ve yükleme mobile_asset_create { path: files[i].path, kind: 'screenshot', deviceClass, locale } ile yapılır. Tuzaklar: kare deviceClass'ın cihaz ölçüsüyle çekilmediyse ekrana kırpılarak oturur ve warnings söyler; başlık en çok iki satır (text'te beş), alt başlık iki satır çizilir, taşan metin kesilir; başlık uygulamanın gerçekten yaptığını söyler (App Review 2.3.7: fiyat, sıralama, rakip adı yok) ve kare o yuvanın dilinde çekilmiş olmalıdır; yazı tipleri işletim sisteminindir. Uygulamanın rengi palette ile stillere uygulanır (theme_get).",
|
|
688
688
|
inputSchema: {
|
|
@@ -708,7 +708,7 @@ export function registerMobileStoreTools(server, platform, storeArt = {}) {
|
|
|
708
708
|
}, handle(config, ({ applicationId: appId, ...input }) => previewStoreArt(launchStoreArtBrowser, config, galleryServer, input, async (file) =>
|
|
709
709
|
// g-12: galerinin çizdiği kart gateway'in KENDİ çıktı klasöründedir (`storeArt/gallery.ts`, stateDirectory ya da
|
|
710
710
|
// os.tmpdir) — ajanın verdiği yol değil; izinli kök kapısından (localFiles) geçirilmez, bayt olarak yüklenir.
|
|
711
|
-
uploadStoreAsset(platform, appId, { kind: 'screenshot', content: (await readFile(file)).toString('base64'), filename: basename(file), locale: input.locale, deviceClass: input.deviceClass }))));
|
|
711
|
+
uploadStoreAsset(platform, appId, { kind: 'screenshot', content: (await readFile(file)).toString('base64'), filename: basename(file), locale: input.locale, deviceClass: input.deviceClass })))));
|
|
712
712
|
server.registerTool('mobile_asset_update', {
|
|
713
713
|
title: 'Mağaza görsellerini sırala',
|
|
714
714
|
description: "Bir yuvadaki görsellerin sırasını yazar (PUT mobile-store/{appId}/assets/order): dizideki sıra mağazadaki gösterim sırası olur (ilk ekran görüntüsü mağazada önce görünür). assetIds TEK yuvanın (ör. 'screenshot/tr/iphone69') BÜTÜN görsellerini içerir — backend her id'ye dizideki indeksini yazar ve yuvayı denetlemez; eksik liste ya da iki yuvanın karışımı sessizce çakışan sıra üretirdi, bu yüzden gateway istek gitmeden kaydı okur ve bunları durdurur. Id'ler: mobile_store_get { detail: ['assets'] }.",
|
|
@@ -748,7 +748,7 @@ export function registerMobileStoreTools(server, platform, storeArt = {}) {
|
|
|
748
748
|
await platform.org('DELETE', `/mobile-store/${appId}/assets/${assetId}`);
|
|
749
749
|
return { applicationId: appId, deleted: assetId };
|
|
750
750
|
}));
|
|
751
|
-
server.registerTool('mobile_asset_download', {
|
|
751
|
+
removeWhenLocalFilesOff(config, server.registerTool('mobile_asset_download', {
|
|
752
752
|
title: 'Mağaza görselini indir',
|
|
753
753
|
description: "Mağaza görselinin dosyasını indirir (GET mobile-store/{appId}/assets/{assetId}) ve yerel diske yazar; bayt ajanın bağlamına GİRMEZ — yanıt yalnız özettir: path, bytes, contentType, sha256 (yazılan baytın), width/height (PNG/JPEG başlığından) ve yuva (slot, kind, locale, deviceClass). outPath page_screenshot'ınkiyle aynı köklere yazar (gateway'in çalışma dizini ya da .env MCP_INPUT_DIR; göreli yol MCP_INPUT_DIR'e göre), klasörü açar ve var olan dosyanın üstüne yazar; verilmezse <MCP_INPUT_DIR ya da çalışma dizini>/store-assets/<applicationId>/<yuva>-<assetId>.<png|jpg>. Gidiş-dönüş: indir → (gerekirse) düzenle → mobile_asset_create { path: <yanıttaki path>, kind, locale?, deviceClass? } — dosya aynı köklerden okunur, bayt bayt aynı yükleme mümkündür; yanıttaki next çağrıyı yuvasıyla verir. Tuzak: tekli yuvalar (icon, featureGraphic, splash, adaptive*, reviewAttachment) yüklemede ESKİSİNİN YERİNE geçer; screenshot ve promo ise yuvaya EKLENİR (yuva başına en çok 10) — aynı kareyi değiştirmek için önce mobile_asset_delete, sıra mobile_asset_update. Platformda hiçbir şey değiştirmez. Dosya ≤ 10 MB (yükleme sınırı); büyüğü yazılmaz. Id: mobile_store_get { detail: ['assets'] }; bilinmeyen id indirme gitmeden 404 ile durur.",
|
|
754
754
|
inputSchema: {
|
|
@@ -758,5 +758,5 @@ export function registerMobileStoreTools(server, platform, storeArt = {}) {
|
|
|
758
758
|
},
|
|
759
759
|
// Platformda yalnız okur; yerel dosya yazması mobile_asset_preview gibi salt okunur sayılır (politika: okuma aracı).
|
|
760
760
|
annotations: readOnly
|
|
761
|
-
}, handle(config, ({ applicationId: appId, assetId, outPath }) => downloadStoreAsset(platform, appId, assetId, outPath)));
|
|
761
|
+
}, handle(config, ({ applicationId: appId, assetId, outPath }) => downloadStoreAsset(platform, appId, assetId, outPath))));
|
|
762
762
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { basename, extname, resolve } from 'node:path';
|
|
2
|
-
import { localBase, readLocalFile } from '../platform/localFiles.js';
|
|
2
|
+
import { localBase, readLocalFile, removeWhenLocalFilesOff } from '../platform/localFiles.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { destructive, environmentParam, guid, projectParam, readOnly, writes } from './common.js';
|
|
5
5
|
import { applicationId } from './mobileStore.js';
|
|
@@ -81,7 +81,7 @@ export function registerMobileStoreImportTools(server, platform) {
|
|
|
81
81
|
inputSchema: { applicationId, importId },
|
|
82
82
|
annotations: writes
|
|
83
83
|
}, handle(config, async ({ applicationId: appId, importId: id }) => importReportOutline(unwrap(await platform.org('POST', `/mobile-store/${appId}/imports/${id}/apply`)))));
|
|
84
|
-
server.registerTool('mobile_purchase_import', {
|
|
84
|
+
removeWhenLocalFilesOff(platform.config, server.registerTool('mobile_purchase_import', {
|
|
85
85
|
title: 'Eski abone listesini doğrula',
|
|
86
86
|
description: `Eski sistemin abone listesini (CSV) Zeyrek'e alır (Tenant POST {project}/{appId}/purchases/imports, multipart). Sütunlar: store (ios | android), transactionId ya da purchaseToken, productId (Google'da zorunlu — mağaza ürün kimliği), isteğe bağlı legacyUserId, email. Sunucu HER satırı mağazaya sorar (Apple App Store Server API, Google Play); dosyanın söylediğine güvenmez. E-posta tek proje kullanıcısıyla eşleşirse satın alma hesaba, yoksa SAHİPSİZ yazılır (MOB-039). dryRun varsayılan TRUE: yalnız sorar, yazmaz — gerçek koşu açık dryRun: false ister. Gerçek satışlar production ortamındadır. Dosya ≤ 5 MB, ≤ 100.000 satır; iş arka planda koşar — mobile_purchase_import_status ile izleyin. Apple satırları satın alma anahtarı (.p8) ister.`,
|
|
87
87
|
inputSchema: {
|
|
@@ -119,7 +119,7 @@ export function registerMobileStoreImportTools(server, platform) {
|
|
|
119
119
|
? 'dryRun: hiçbir satın alma yazılmayacak. Sonuçları eski sistemle karşılaştırın; doğruysa aynı dosyayla dryRun: false (MOB-039).'
|
|
120
120
|
: 'Gerçek koşu: satın almalar yazılıyor. Aynı dosyanın ikinci koşusu already_known döner.'
|
|
121
121
|
};
|
|
122
|
-
}));
|
|
122
|
+
})));
|
|
123
123
|
server.registerTool('mobile_purchase_import_status', {
|
|
124
124
|
title: 'Abone listesi işinin durumu',
|
|
125
125
|
description: "importId verilirse işin ilerlemesini ve sonuç sayfasını döner (GET {project}/{appId}/purchases/imports/{id}?page=): progress { state (queued · running · completed · failed), total, processed, outcomes (created_ownerless · created_account · already_known · expired · refunded · product_unknown · not_found · pending · invalid_signature · invalid_row), error (iap_key_missing | iap_key_invalid) } ve 100'lük results[] { line, store, id, outcome, state, productKey, owner, email (maskeli), note }. importId verilmezse son 10 iş. Yüklenen dosya iş bitince silinir.",
|
package/dist/tools/modules.js
CHANGED
|
@@ -40,7 +40,7 @@ export function registerModuleTools(server, platform) {
|
|
|
40
40
|
ruleId: 'BPM-014',
|
|
41
41
|
severity: 'block',
|
|
42
42
|
message: `module_update: modül ${operation} production'a gönderilmez. Modülü development'ta kurun; production'a taşıma insan onaylı deployment işidir (tanım ve takvim taşınır, uyarlama taşınmaz).`,
|
|
43
|
-
guide: '
|
|
43
|
+
guide: 'zeyrek://guides/bpm'
|
|
44
44
|
}], false);
|
|
45
45
|
}
|
|
46
46
|
return platform.tenant('POST', project, `/modules/${encodeURIComponent(module)}/${operation}`, { environment, body: { applicationId } });
|
|
@@ -106,7 +106,7 @@ export function registerPlatformTools(server, platform) {
|
|
|
106
106
|
...guides.map(name => `- ${name}${guideRouting[name] ? `: ${guideRouting[name]}` : ''}`),
|
|
107
107
|
"Büyük rehberler (page ~120 KB) section'sız çağrıda TAM METİN DÖNMEZ: giriş + bölüm listesi (outline) döner, truncated: true olur. Gövdeyi section ile bölüm bölüm alın.",
|
|
108
108
|
"Büyük gövdeyi (sayfa şeması, akış adımları, uç/workflow tanımı, patch op'ları) dosyaya yazıp bodyFile ile verin: gövde bağlamınızdan geçmez, satır içiyle aynı doğrulamadan geçer (page_*/flow_*/microservice_*/workflow_* create/update/patch); microfunction kodu codeFile ile (.js/.py). Uzun kod alanı ayrı dosyada durabilir: gövdede { \"$file\": \"./adim.js\" } o dosyanın METNİYLE değişir (çalıştırılmaz; yol bodyFile'ın klasörüne göre, GW-013). microservice_execute yanıt başlıkları varsayılan kısadır; ucun kendi başlığı için includeHeaders:'all'.",
|
|
109
|
-
"Örnek gövdeler ve kural katalogları (
|
|
109
|
+
"Örnek gövdeler ve kural katalogları (zeyrek://examples/<ad>, zeyrek://rules/<ad>) istemci MCP resource okuyamıyorsa da bu araçla okunur: platform_guide({ resource: 'zeyrek://rules/connect-data' }) — guide verilmez; dizin için 'zeyrek://examples/index'."
|
|
110
110
|
].join('\n');
|
|
111
111
|
server.registerTool('platform_whoami', {
|
|
112
112
|
title: 'Oturum bilgisi',
|
|
@@ -120,8 +120,8 @@ export function registerPlatformTools(server, platform) {
|
|
|
120
120
|
inputSchema: {
|
|
121
121
|
guide: (guides.length > 0 ? z.enum(guides) : z.string()).optional()
|
|
122
122
|
.describe('Rehber adı; bilinmeyen ad verilirse mevcut rehberler listelenir. resource ile birlikte verilmez'),
|
|
123
|
-
resource: z.string().regex(/^ngapps:\/\//).optional()
|
|
124
|
-
.describe("guide yerine bir
|
|
123
|
+
resource: z.string().regex(/^(zeyrek|ngapps):\/\//).optional()
|
|
124
|
+
.describe("guide yerine bir zeyrek:// kaynağı okur (examples, rules ve prompts — prompt desteği olmayan istemcide iş tarifi: 'zeyrek://prompts/mobile-publish-prepare'): 'zeyrek://examples/connect-data-table-entity', 'zeyrek://rules/connect-data', dizinler '…/index'. Resource okuyamayan istemcinin rehberdeki zeyrek:// yönlendirmelerini izleme yolu budur (38/M-14)."),
|
|
125
125
|
section: z.string().optional()
|
|
126
126
|
.describe("Yalnız bu bölümü döner (yanıttaki 'sections' listesinden bir slug). Verilmezse rehber tam döner; ancak tool yanıt sınırını aşan büyük rehberlerde (page) yalnız giriş + outline döner")
|
|
127
127
|
},
|
|
@@ -129,12 +129,12 @@ export function registerPlatformTools(server, platform) {
|
|
|
129
129
|
}, handle(config, async ({ guide, section, resource }) => {
|
|
130
130
|
if (resource !== undefined) {
|
|
131
131
|
if (guide !== undefined || section !== undefined)
|
|
132
|
-
throw new PlatformApiError("platform_guide: resource ile guide/section birlikte verilemez — biri
|
|
132
|
+
throw new PlatformApiError("platform_guide: resource ile guide/section birlikte verilemez — biri zeyrek:// kaynağını, diğeri rehber bölümünü okur.", 400);
|
|
133
133
|
const read = readToolResource(resource);
|
|
134
|
-
return 'error' in read ? read : { resource: read.uri, mimeType: read.mimeType, content: read.text };
|
|
134
|
+
return 'error' in read ? read : { resource: read.uri, mimeType: read.mimeType, content: read.text, ...(read.note ? { note: read.note } : {}) };
|
|
135
135
|
}
|
|
136
136
|
if (guide === undefined)
|
|
137
|
-
throw new PlatformApiError("platform_guide: 'guide' (rehber adı) ya da 'resource' (
|
|
137
|
+
throw new PlatformApiError("platform_guide: 'guide' (rehber adı) ya da 'resource' (zeyrek:// kaynağı) verin.", 400);
|
|
138
138
|
const available = listKnowledgeFiles('guides').map(file => file.replace(/\.md$/, ''));
|
|
139
139
|
if (!available.includes(guide)) {
|
|
140
140
|
return { error: `'${guide}' diye bir rehber yok.`, available };
|
|
@@ -142,7 +142,7 @@ export function registerPlatformTools(server, platform) {
|
|
|
142
142
|
const markdown = readKnowledgeFile('guides', `${guide}.md`);
|
|
143
143
|
const parts = splitGuideSections(markdown);
|
|
144
144
|
const sections = parts.map(part => part.slug);
|
|
145
|
-
const examples = listKnowledgeFiles('examples').map(file => `
|
|
145
|
+
const examples = listKnowledgeFiles('examples').map(file => `zeyrek://examples/${file.replace(/\.json$/, '')}`);
|
|
146
146
|
if (section === undefined) {
|
|
147
147
|
if (markdown.length > oversizeGuideChars) {
|
|
148
148
|
// Bölümleme başarısızsa parts[0] TÜM rehberdir; kesmeden döndürmek yanıtı yine tool
|
|
@@ -158,8 +158,8 @@ export function registerPlatformTools(server, platform) {
|
|
|
158
158
|
truncated: true,
|
|
159
159
|
...(degraded ? { degraded: true } : {}),
|
|
160
160
|
note: degraded
|
|
161
|
-
? `'${guide}' rehberi ${markdown.length} karakter ve '## ' başlıklarına AYRILAMADI — bölümlü okuma çalışmıyor ve gövde ${truncatedGuideBodyChars} karaktere kesildi. Tam metni
|
|
162
|
-
: `'${guide}' rehberi ${markdown.length} karakter — tek tool yanıtına sığmaz, gövdesi kesildi. Yukarıdaki outline'dan bir slug seçip platform_guide('${guide}', section) ile okuyun. Tam metin gerekiyorsa
|
|
161
|
+
? `'${guide}' rehberi ${markdown.length} karakter ve '## ' başlıklarına AYRILAMADI — bölümlü okuma çalışmıyor ve gövde ${truncatedGuideBodyChars} karaktere kesildi. Tam metni zeyrek://guides/${guide} kaynağından okuyun ve bunu platform_gap_report ile bildirin: bu bir gateway kusurudur.`
|
|
162
|
+
: `'${guide}' rehberi ${markdown.length} karakter — tek tool yanıtına sığmaz, gövdesi kesildi. Yukarıdaki outline'dan bir slug seçip platform_guide('${guide}', section) ile okuyun. Tam metin gerekiyorsa zeyrek://guides/${guide} kaynağını kullanın.`,
|
|
163
163
|
examples
|
|
164
164
|
};
|
|
165
165
|
}
|
package/dist/tools/rows.js
CHANGED
|
@@ -35,7 +35,7 @@ function derivedRowFindings(rows) {
|
|
|
35
35
|
ruleId: 'ROW-001',
|
|
36
36
|
severity: 'warn',
|
|
37
37
|
message: `Gövdede ${rows.length} satır var. Satırlar dışarıdan bir dosyadan geliyorsa gövdeden değil DOSYADAN yazın: aynı çağrıyı \`path: "seed.csv" | "seed.json"\` ile verin, gateway dosyayı okur ve 1000'lik partilere böler — satırlar ajan bağlamından hiç geçmez. Bu satırlar VAR OLAN satırlardan türetiliyorsa (geçmiş/hareket/log/junction tablosu, backfill) onları gövdede taşımayın: tek bir kayıtlı 'INSERT … SELECT' sorgusu aynı işi TEK çağrıda yapar ve hiçbir id elle taşınmaz (ölçüldü 2026-09-07). Satırlar dışarıdan geliyorsa (içe aktarma, kullanıcı verisi) bu çağrı doğru yoldur. Ham SQL yolu UYGULAMA katmanını atlar (automation tetiklenmez, incremental sayaç ilerlemez, localization companion yazılmaz) ama veritabanı kısıtları — NOT NULL, FK, UNIQUE, enum CHECK — aynen uygulanır. Reçete, merdiven kalıbı ve anahtar sözleşmesi: platform_guide('entity') §'Toplu ve türetilmiş satır'.`,
|
|
38
|
-
guide: '
|
|
38
|
+
guide: 'zeyrek://guides/entity'
|
|
39
39
|
}];
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
@@ -208,7 +208,7 @@ const templateFormatNotes = {
|
|
|
208
208
|
json: 'JSON şablon `{ meta, data }` gövdesidir; `meta` analizde atlanır, satırlar `data`dadır ve anahtarları alan slug\'ıdır.'
|
|
209
209
|
};
|
|
210
210
|
const rowFiltersParam = jsonArray(z.array(rowFilterSchema())).optional()
|
|
211
|
-
.describe("Platform Filter dizisi: tekil { filterType: 'single', field, operator, value } ya da grup { filterType: 'group', conditionType: 'and'|'or', children: [...] }; işleçler platform enum'undan (
|
|
211
|
+
.describe("Platform Filter dizisi: tekil { filterType: 'single', field, operator, value } ya da grup { filterType: 'group', conditionType: 'and'|'or', children: [...] }; işleçler platform enum'undan (zeyrek://schemas/Filter)");
|
|
212
212
|
const exportScopeParam = z.object({
|
|
213
213
|
kind: z.enum(['view', 'all', 'selected']).describe("'view' filtre + sıralama ile, 'all' tüm satırlar, 'selected' rowIds listesi"),
|
|
214
214
|
filters: rowFiltersParam,
|
|
@@ -9,7 +9,7 @@ import { addedHooks, addedWords, comparedWordsIn, displayTextsIn, enumOptionValu
|
|
|
9
9
|
* "aynı çağrıyı policyOverride: true ile tekrarlayın" der ve o alan bu araçlarda da var olmalı (S-12 dersi).
|
|
10
10
|
*/
|
|
11
11
|
export const textHookOverrideParam = z.boolean().optional().describe("true: görünen metne bağlı mantık (metin kancası, TR-005) bilinçli istisna olarak yazılır — yalnız sunucu metin döndürüyor ve karşılaştırılacak kod yoksa. Bulgu yanıtta uyarı olarak kalır. Varsayılan false: bu yazımla gelen kanca isteği durdurur");
|
|
12
|
-
const GUIDE = '
|
|
12
|
+
const GUIDE = 'zeyrek://guides/translation';
|
|
13
13
|
const DICTIONARY_TTL_MS = 5 * 60 * 1000;
|
|
14
14
|
const FAILED_DICTIONARY_TTL_MS = 30 * 1000;
|
|
15
15
|
const LISTED = 5;
|
|
@@ -5,7 +5,7 @@ import { z } from 'zod';
|
|
|
5
5
|
import { evaluatePolicy, enforcePolicy, attachFindings } from '../knowledge/policy.js';
|
|
6
6
|
import { readProjectLanguages, translationLanguageFindings } from '../knowledge/languages.js';
|
|
7
7
|
import { policyRules } from '../knowledge/rules.js';
|
|
8
|
-
import { localBase, readLocalFile, resolveLocalOutput, writeLocalOutput } from '../platform/localFiles.js';
|
|
8
|
+
import { localBase, readLocalFile, resolveLocalOutput, writeLocalOutput, removeWhenLocalFilesOff } from '../platform/localFiles.js';
|
|
9
9
|
import { basename, extname, resolve } from 'node:path';
|
|
10
10
|
const isoLanguageCode = z.string().regex(/^[a-z]{2}$/, 'ISO 639-1 iki harfli küçük dil kodu (tr, en, de …); tr-TR gibi bölge ekli kod reddedilir');
|
|
11
11
|
const translationKeyInput = z.object({
|
|
@@ -97,7 +97,7 @@ export function registerTranslationTools(server, platform) {
|
|
|
97
97
|
inputSchema: { project: projectParam, environment: environmentParam, applicationId: guid },
|
|
98
98
|
annotations: readOnly
|
|
99
99
|
}, handle(config, ({ project, environment, applicationId }) => platform.tenant('GET', project, `/translations/${applicationId}`, { environment })));
|
|
100
|
-
server.registerTool('translation_export', {
|
|
100
|
+
removeWhenLocalFilesOff(platform.config, server.registerTool('translation_export', {
|
|
101
101
|
title: 'Çevirileri Excel olarak dışa aktar',
|
|
102
102
|
description: "Application'ın bütün çeviri key'lerini çevirmene verilecek bir .xlsx dosyasına yazar: A Key · B kaynak dil (referans) · C hedef dil (hedefte değeri olan key'ler dolu gelir). Dosya YALNIZ outPath'e yazılır — Sürücü'ye yüklenmez, platformda iz kalmaz; içerik bağlama girmez, yanıt yol ve sayılardır ({ keys: application'daki key sayısı, targetMissing: hedefte boş olanlar }). Çevirmen C sütununu doldurduktan sonra dosyayı translation_update { file, targetLanguage, dryRun: true } ile önce sınayın, sonra dryRun olmadan içe aktarın; hedef dil projede yoksa içe aktarma onu projeye BÜTÜN ortamlarda ekler (TR-004). Ajan çeviriyi kendisi yapacaksa dosyaya gerek yok: translation_list → translation_update { keys }.",
|
|
103
103
|
inputSchema: {
|
|
@@ -151,7 +151,7 @@ export function registerTranslationTools(server, platform) {
|
|
|
151
151
|
targetLanguage,
|
|
152
152
|
note: notes.join(' ')
|
|
153
153
|
};
|
|
154
|
-
}));
|
|
154
|
+
})));
|
|
155
155
|
server.registerTool('translation_update', {
|
|
156
156
|
title: 'Çevirileri güncelle',
|
|
157
157
|
description: "Bir ya da daha çok çeviri anahtarını toplu ekler/günceller (keys) ve/veya siler (deletedKeys) — tek çağrıda ikisi de verilebilir. 'keys' üzerinden yeni bir anahtar da açılabilir (upsert; verilmeyen diller silinmez, korunur). DİKKAT: çeviri yazmak tek başına YETMEZ — runtime bir etiketi ancak projenin languages listesi ve defaultLanguage kuruluysa çözer, aksi hâlde ekrana ham anahtar basar ve yazma yine 200 döner (ölçüldü 2026-09-09, S-15). Gateway yazmadan önce projeyi okur ve bağ kopuksa TR-002 caution'ı düşer; dilleri project_update(languages, defaultLanguage) ile kurun. Backend ön kontrolü (TR-001, block): anahtarlar boş olamaz ve tekil, dil kodları ISO 639-1 listesinden, deletedKeys boş olamaz. Yanıt özettir: { written, deleted?, keys (yazılan ilk 10 anahtar), truncated } — platformun döndürdüğü tam sözlük bağlama taşınmaz, okumak için translation_list. DOSYA KİPİ: 'file' (yerel .xlsx yolu, translation_export biçimi) verilirse keys/deletedKeys verilmez; dosya platforma multipart gider ve SAKLANMAZ. C sütunu 'targetLanguage'ta verilen dile yazılır (zorunlu; başlık metni okunmaz — C1'deki '(ES)' gibi kod dili belirlemez): dolu hücre mevcut değeri EZER, boş hücre atlanır, application'da olmayan key açılmaz (unknownKeys); hedef dil projede yoksa projeye BÜTÜN ortamlarda eklenir (TR-004). 'dryRun: true' hiçbir şey yazmadan sayar. Yanıt: { targetLanguage, created, updated, unchanged, skippedEmpty, unknownKeyCount, unknownKeys, targetLanguageInProject, languageAdded, applicationMismatch, dryRun, note? }.",
|
package/dist/tools/views.js
CHANGED
|
@@ -31,7 +31,7 @@ export function registerViewTools(server, platform) {
|
|
|
31
31
|
}, handle(config, ({ project, environment, id }) => platform.tenant('GET', project, `/views/${id}`, { environment })));
|
|
32
32
|
server.registerTool('view_create', {
|
|
33
33
|
title: 'View oluştur',
|
|
34
|
-
description: "TAM METİN ARAMA indeksi tanımlar (definition = CreateViewCommand; gövde şeması
|
|
34
|
+
description: "TAM METİN ARAMA indeksi tanımlar (definition = CreateViewCommand; gövde şeması zeyrek://schemas/CreateViewCommand, analizör sözlüğü platform_guide('view')) — raporlama/agregasyon aracı DEĞİLDİR. Seçilen tablo/alanlar analizörden (tokenizer/dil) geçirilip slug adlı projeksiyon tablosuna indekslenir; tüketimi source:'view' microservice'idir ve o uç ZORUNLU 'searchText' parametresi ister (+limit/offset). Rapor/özet için raw query (query_create) + query kaynaklı microservice kullanın. Birden çok entity verilebilir (entities: [{entityId, alias}], fields alias'la bağlanır: viewEntityAlias) ama bu JOIN DEĞİLDİR: her tablo ayrı ayrı indekslenir, aralarında ilişki tanımı yoktur ve eşleşme hangi tablodan geldiyse dönen kayıt o tablonun satırıdır. İlişkili içeriği tek kayıtta aratmak için denormalize bir alan kullanın (yorum metnini talebe yazan automation + tek entity'li view). " + constraintSummary('CreateViewCommand'),
|
|
35
35
|
inputSchema: { project: projectParam, environment: environmentParam, definition: definitionParam, policyOverride: policyOverrideParam },
|
|
36
36
|
annotations: writes
|
|
37
37
|
}, handle(config, async ({ project, environment, definition, policyOverride }) => {
|
|
@@ -43,7 +43,7 @@ export function registerViewTools(server, platform) {
|
|
|
43
43
|
}));
|
|
44
44
|
server.registerTool('view_update', {
|
|
45
45
|
title: 'View güncelle',
|
|
46
|
-
description: "View tanımını günceller (definition = UpdateViewCommand, şema
|
|
46
|
+
description: "View tanımını günceller (definition = UpdateViewCommand, şema zeyrek://schemas/UpdateViewCommand); mevcut hâli view_get ile alın. UpdateViewCommand'da datasourceId YOKTUR (create'te bağlanır). DİKKAT: view_get alanları 'viewEntityId' ile döndürür, yazma tarafı 'viewEntityAlias' ister — okuduğunuzu birebir geri yazarsanız gateway id'yi alias'a çevirir, çeviremezse isteği reddeder. " + constraintSummary('UpdateViewCommand'),
|
|
47
47
|
inputSchema: { project: projectParam, environment: environmentParam, id: guid, definition: definitionParam, policyOverride: policyOverrideParam },
|
|
48
48
|
annotations: updates
|
|
49
49
|
}, handle(config, async ({ project, environment, id, definition, policyOverride }) => {
|
package/dist/tools/workflows.js
CHANGED
|
@@ -102,13 +102,13 @@ export async function assertNoPushInProduction(tool, environment, config, load,
|
|
|
102
102
|
ruleId: 'WF-036',
|
|
103
103
|
severity: 'block',
|
|
104
104
|
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.`,
|
|
105
|
-
guide: '
|
|
105
|
+
guide: 'zeyrek://guides/workflow'
|
|
106
106
|
}] : []),
|
|
107
107
|
...(found === null || found.has('social-sign-in') ? [{
|
|
108
108
|
ruleId: 'WF-046',
|
|
109
109
|
severity: 'block',
|
|
110
110
|
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.`,
|
|
111
|
-
guide: '
|
|
111
|
+
guide: 'zeyrek://guides/workflow'
|
|
112
112
|
}] : [])
|
|
113
113
|
];
|
|
114
114
|
throw new PolicyBlockError(findings, false);
|
|
@@ -156,7 +156,7 @@ export function registerWorkflowTools(server, platform) {
|
|
|
156
156
|
}));
|
|
157
157
|
server.registerTool('workflow_create', {
|
|
158
158
|
title: 'Workflow oluştur',
|
|
159
|
-
description: "Yeni workflow tanımlar (definition = CreateWorkflowCommand). type: 'workflow' | 'automation' | 'middleware'. Uygulamada aynı ad ya da slug'da workflow varsa (tipten bağımsız) varsayılan olarak YAZMAZ ve mevcut kaydın id'sini döner (WF-034 — gönderilseydi platform '<ad> (1)' adıyla ikinci bir kayıt açardı); tekrar çalıştırılabilir yazma için ifExists:'update' verin, yanıttaki outcome 'created' | 'updated' olur. Mevcut workflow'lar okunamazsa da yazmaz. İlk kullanımdan önce platform_guide('workflow') okuyun: DTO-önce akışı, branch bağlama (branches[].nextStepId), tip×step matrisi. Her adım ve akışın kendisi 'description' taşımak ZORUNDADIR (WF-024, block): adımın NE İŞE YARADIĞINI 1-2 cümleyle yazın — Studio kanvasında ⓘ ikonu olarak görünür; mekanizmayı değil niyeti yazın. Middleware (istek öncesi koşan guard/setter, user değişkeni, alfabetik sıra) için platform_guide('middleware') +
|
|
159
|
+
description: "Yeni workflow tanımlar (definition = CreateWorkflowCommand). type: 'workflow' | 'automation' | 'middleware'. Uygulamada aynı ad ya da slug'da workflow varsa (tipten bağımsız) varsayılan olarak YAZMAZ ve mevcut kaydın id'sini döner (WF-034 — gönderilseydi platform '<ad> (1)' adıyla ikinci bir kayıt açardı); tekrar çalıştırılabilir yazma için ifExists:'update' verin, yanıttaki outcome 'created' | 'updated' olur. Mevcut workflow'lar okunamazsa da yazmaz. İlk kullanımdan önce platform_guide('workflow') okuyun: DTO-önce akışı, branch bağlama (branches[].nextStepId), tip×step matrisi. Her adım ve akışın kendisi 'description' taşımak ZORUNDADIR (WF-024, block): adımın NE İŞE YARADIĞINI 1-2 cümleyle yazın — Studio kanvasında ⓘ ikonu olarak görünür; mekanizmayı değil niyeti yazın. Middleware (istek öncesi koşan guard/setter, user değişkeni, alfabetik sıra) için platform_guide('middleware') + zeyrek://examples/middleware-authenticate. Adımın gerçek bir tuzağı varsa (idempotent değil, kapsam adımda değil, dış bağımlılık, sessiz düşen dal) 'caution' alanına yazın — OPSİYONELDİR, tuzak yoksa boş bırakın; doldurma metin yazmayın. Gövde politika kontrolünden geçer. " + constraintSummary('CreateWorkflowCommand'),
|
|
160
160
|
inputSchema: { project: projectParam, environment: environmentParam, applicationId: guid, definition: definitionParam, ifExists: workflowIfExistsParam, view: recordWriteViewParam, policyOverride: policyOverrideParam },
|
|
161
161
|
annotations: writes
|
|
162
162
|
}, handle(config, async ({ project, environment, applicationId, definition, ifExists, view, policyOverride }) => {
|
|
@@ -300,7 +300,7 @@ export function registerWorkflowTools(server, platform) {
|
|
|
300
300
|
}));
|
|
301
301
|
server.registerTool('workflow_step_schema', {
|
|
302
302
|
title: 'Step şeması üret',
|
|
303
|
-
description: "Verilen step tanımı için girdi/çıktı şemasını üretir (parameterScheme / returnScheme); step yazarken definition'ı doğrulamanın en hızlı yolu. type:'workflow' adımında (rule.workflowId) çağrılan akışın parametre ve dönüş DTO'sunu döner — alt akışa girdi YALNIZ rule.expression ile geçer, nesne literalinin anahtarları bu parameterScheme'in alanlarıdır (WF-032; platform_guide('workflow') §Workflow adımı). 'workflow' adımında returnBehavior çağrılan akışın dönüş biçimidir (array → liste). returnScheme adımın GÖVDESİDİR; koşumda her adım { data, meta, error } zarfındadır — 'http' adımında gövde tipsizdir (<adım>.data), durum kodu <adım>.meta.httpStatusCode. ŞEMA ALAN ADLARINI VERİR, HANGİ ALANIN ÇALIŞTIĞINI DEĞİL — iki ölçülmüş sapma (2026-09-16): (1) 'workflow' adımında workflowId boşken parameterScheme/returnScheme boş döner ve şema girdinin rule.expression ile bağlandığını söylemez; (2) 'email' adımında alıcı YALNIZ rule.expression ile verilir ve { to, cc, bcc } adres dizgisi listeleri döndürür — \"({ to: [input.email] })\"; şemadaki expression.to/cc/bcc bu ifadenin döndürdüğü şekildir, kural düzeyinde send/toMail/sendTo yazılırsa platform atar (WF-037; platform_guide('workflow') §Email adımı). Sözleşmenin ölçülmüş hâli:
|
|
303
|
+
description: "Verilen step tanımı için girdi/çıktı şemasını üretir (parameterScheme / returnScheme); step yazarken definition'ı doğrulamanın en hızlı yolu. type:'workflow' adımında (rule.workflowId) çağrılan akışın parametre ve dönüş DTO'sunu döner — alt akışa girdi YALNIZ rule.expression ile geçer, nesne literalinin anahtarları bu parameterScheme'in alanlarıdır (WF-032; platform_guide('workflow') §Workflow adımı). 'workflow' adımında returnBehavior çağrılan akışın dönüş biçimidir (array → liste). returnScheme adımın GÖVDESİDİR; koşumda her adım { data, meta, error } zarfındadır — 'http' adımında gövde tipsizdir (<adım>.data), durum kodu <adım>.meta.httpStatusCode. ŞEMA ALAN ADLARINI VERİR, HANGİ ALANIN ÇALIŞTIĞINI DEĞİL — iki ölçülmüş sapma (2026-09-16): (1) 'workflow' adımında workflowId boşken parameterScheme/returnScheme boş döner ve şema girdinin rule.expression ile bağlandığını söylemez; (2) 'email' adımında alıcı YALNIZ rule.expression ile verilir ve { to, cc, bcc } adres dizgisi listeleri döndürür — \"({ to: [input.email] })\"; şemadaki expression.to/cc/bcc bu ifadenin döndürdüğü şekildir, kural düzeyinde send/toMail/sendTo yazılırsa platform atar (WF-037; platform_guide('workflow') §Email adımı). Sözleşmenin ölçülmüş hâli: zeyrek://examples/workflow-http-step · workflow-call-workflow · workflow-loop-step · workflow-email-step ve platform_guide('workflow').",
|
|
304
304
|
inputSchema: { project: projectParam, environment: environmentParam, applicationId: guid, id: guid, step: definitionParam },
|
|
305
305
|
annotations: readOnly
|
|
306
306
|
}, handle(config, ({ project, environment, applicationId, id, step }) => platform.tenant('POST', project, `/workflows/${applicationId}/${id}/steps/schema`, { environment, body: step })));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appaflytech/zeyrek-ai-mcp",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.82",
|
|
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",
|
|
@@ -42,7 +42,9 @@
|
|
|
42
42
|
"kabul:import-senaryolar": "tsx scripts/import-kabul-senaryolar.ts",
|
|
43
43
|
"kabul:workflow-hata-zinciri": "tsx scripts/kabul-workflow-hata-zinciri.ts",
|
|
44
44
|
"fixtures:local-parity": "tsx scripts/local-parity-fixtures.ts",
|
|
45
|
-
"benchmark:report": "tsx scripts/benchmark-report.ts"
|
|
45
|
+
"benchmark:report": "tsx scripts/benchmark-report.ts",
|
|
46
|
+
"footprint": "tsx scripts/module-footprint.ts",
|
|
47
|
+
"app-notes:sync": "tsx scripts/app-notes-sync.ts"
|
|
46
48
|
},
|
|
47
49
|
"dependencies": {
|
|
48
50
|
"@modelcontextprotocol/sdk": "^1.12.0",
|