@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
|
@@ -110,7 +110,7 @@ function walk(document, schema, value, path, into) {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
|
-
* `command` üretilen şema dosyasının adıdır (`
|
|
113
|
+
* `command` üretilen şema dosyasının adıdır (`zeyrek://schemas/<command>`); bilinmeyen ad
|
|
114
114
|
* sessizce boş liste döner — şema yoksa iddia da yoktur.
|
|
115
115
|
*/
|
|
116
116
|
export function unmappedMembers(command, body) {
|
|
@@ -141,7 +141,7 @@ export function withUnmappedMembers(payload, members) {
|
|
|
141
141
|
return {
|
|
142
142
|
...payload,
|
|
143
143
|
unmappedMembers: members,
|
|
144
|
-
unmappedMembersNote: "Bu anahtarlar gönderdiğiniz komutun şemasında YOK: platform onları hata vermeden YOK SAYAR, yani o alanlar kaydedilmedi. Doğru adlar için
|
|
144
|
+
unmappedMembersNote: "Bu anahtarlar gönderdiğiniz komutun şemasında YOK: platform onları hata vermeden YOK SAYAR, yani o alanlar kaydedilmedi. Doğru adlar için zeyrek://schemas kaynağına bakın."
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
const numericKinds = ['minLength', 'maxLength', 'minimum', 'maximum', 'minItems'];
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* (`stepKindMatrix`) `rules.ts`'tedir. Backend: `Create/UpdateWorkflowCommandValidator` matrisi ve `SocialSignInStepInput`.
|
|
5
5
|
*/
|
|
6
6
|
export const SIGN_IN_OPERATIONS = ['start', 'sign-in', 'revoke'];
|
|
7
|
-
const guide = '
|
|
7
|
+
const guide = 'zeyrek://guides/workflow';
|
|
8
8
|
const asRecords = (value) => (Array.isArray(value) ? value : []).filter((entry) => Boolean(entry) && typeof entry === 'object' && !Array.isArray(entry));
|
|
9
9
|
function bodyOf(definition, kind) {
|
|
10
10
|
const automation = definition.automation;
|
|
@@ -12,7 +12,7 @@ import { GOOGLE_FONTS, MAX_PRESET_VERSIONS, SCALE_RATIO_MAX, isValidPresetName }
|
|
|
12
12
|
*
|
|
13
13
|
* Kaynak: `docs/08-kural-envanteri.md` §Tema araçları.
|
|
14
14
|
*/
|
|
15
|
-
const guide = '
|
|
15
|
+
const guide = 'zeyrek://guides/theme';
|
|
16
16
|
const isPlainObject = (value) => typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
17
17
|
const HEX = /^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i;
|
|
18
18
|
const FULL_HEX = /^#[0-9a-f]{6}$/i;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { gatewayVersion } from '../gatewayVersion.js';
|
|
2
2
|
import { maskSecretText } from '../platform/secrets.js';
|
|
3
3
|
import { logStep } from './trace.js';
|
|
4
|
-
const gatewayVersion = String(createRequire(import.meta.url)('../../package.json').version ?? 'bilinmiyor');
|
|
5
4
|
/**
|
|
6
5
|
* Kabiliyet boşluğu kaydını ekibin alıcısına gönderir (GW-014, ADR 0006). Adres yalnız `.env`'den gelir; tanımlı
|
|
7
6
|
* değilse hiçbir yere istek gitmez. Gövde boşluk kaydının kendisidir: proje adı dışında platform verisi, jeton ya da
|
|
@@ -93,7 +93,7 @@ function write(text) {
|
|
|
93
93
|
function fileIntroLines() {
|
|
94
94
|
return [
|
|
95
95
|
'═'.repeat(112),
|
|
96
|
-
'
|
|
96
|
+
'zeyrek mcp gateway — tool çağrısı günlüğü. Her tool çağrısı tek bir bloktur:',
|
|
97
97
|
' amaç tool ne işe yarar (tool tanımındaki açıklama)',
|
|
98
98
|
' girdi çağrıya gelen parametreler; parola/token/connection string alanları *** ile maskelenir',
|
|
99
99
|
' adımlar çağrının içeriden geçtiği duraklar, çağrı başlangıcından itibaren geçen süreyle:',
|
package/dist/platform/errors.js
CHANGED
|
@@ -423,7 +423,7 @@ export function mapPlatformError(status, payload, context) {
|
|
|
423
423
|
if (status === 400) {
|
|
424
424
|
const validationMessages = collectValidationMessages(body);
|
|
425
425
|
if (validationMessages.length > 0) {
|
|
426
|
-
return new PlatformApiError(`Doğrulama hatası (${location}): ${validationMessages.join(' ; ')}. Gövde şeması için ilgili
|
|
426
|
+
return new PlatformApiError(`Doğrulama hatası (${location}): ${validationMessages.join(' ; ')}. Gövde şeması için ilgili zeyrek://schemas kaynağına ya da mevcut bir kaydın *_get çıktısına bakın.`, status, code);
|
|
427
427
|
}
|
|
428
428
|
return new PlatformApiError(`Geçersiz istek (${location}): ${apiMessage ?? 'API gövdeyi reddetti.'}${mergeRevertHint(code)}${templateSubscriptionHint(code)}${importHint(code, context.path)}${accessHint(code, apiMessage)}${customDomainHint(code)}`, status, code);
|
|
429
429
|
}
|
|
@@ -443,7 +443,9 @@ export function mapPlatformError(status, payload, context) {
|
|
|
443
443
|
}
|
|
444
444
|
const hint = context.authMode === 'local'
|
|
445
445
|
? 'Gateway konfigürasyonundaki USERNAME/PASSWORD doğru mu kontrol edin.'
|
|
446
|
-
:
|
|
446
|
+
: context.authMode === 'oauth'
|
|
447
|
+
? 'Platform oturumu kapanmış olabilir; bağlayıcıdan yeniden giriş yapın.'
|
|
448
|
+
: 'İstemciden geçirilen Authorization header süresi dolmuş olabilir; yeni token alıp MCP kaydını güncelleyin.';
|
|
447
449
|
return new PlatformApiError(`Kimlik doğrulanamadı (${location}). ${hint}`, status, code);
|
|
448
450
|
}
|
|
449
451
|
if (status === 403) {
|
package/dist/platform/http.js
CHANGED
|
@@ -7,6 +7,11 @@ import { request } from 'undici';
|
|
|
7
7
|
import { PolicyBlockError } from '../knowledge/policy.js';
|
|
8
8
|
import { sourceLeakFindings, sourceLeaksIn } from '../knowledge/sourceLeak.js';
|
|
9
9
|
export const requestAuthStorage = new AsyncLocalStorage();
|
|
10
|
+
/**
|
|
11
|
+
* Uzak bağlayıcı planı 03 (K5): oauth kipinde organizasyon giriş sayfasında seçilir ve token'la gelir; tek gateway
|
|
12
|
+
* birden çok organizasyona hizmet eder. Tanımsızsa `ORGANIZATION` ayarı geçerlidir (local, passthrough).
|
|
13
|
+
*/
|
|
14
|
+
export const requestOrganizationStorage = new AsyncLocalStorage();
|
|
10
15
|
const hiddenResponseHeaders = new Set(['set-cookie', 'authorization', 'proxy-authorization']);
|
|
11
16
|
/**
|
|
12
17
|
* g-08: yürütme yanıtının varsayılan başlıkları — işin okuduğu olanlar. `total-count` sayfalı tablo
|
|
@@ -128,14 +133,19 @@ export class Platform {
|
|
|
128
133
|
environment: this.resolveEnvironment(options.environment)
|
|
129
134
|
}, true);
|
|
130
135
|
}
|
|
136
|
+
get organization() {
|
|
137
|
+
return requestOrganizationStorage.getStore() ?? this.config.organization;
|
|
138
|
+
}
|
|
131
139
|
async accessToken() {
|
|
132
140
|
return (await this.authorizationHeader()).replace(/^Bearer\s+/i, '');
|
|
133
141
|
}
|
|
134
142
|
async authorizationHeader() {
|
|
135
|
-
if (this.config.authMode
|
|
143
|
+
if (this.config.authMode !== 'local') {
|
|
136
144
|
const incoming = requestAuthStorage.getStore();
|
|
137
145
|
if (!incoming) {
|
|
138
|
-
throw new PlatformApiError(
|
|
146
|
+
throw new PlatformApiError(this.config.authMode === 'oauth'
|
|
147
|
+
? 'OAuth kipinde istek kimliksiz geldi; bağlayıcıdan giriş yapın.'
|
|
148
|
+
: "Passthrough modda Authorization header'ı gelmedi. MCP kaydına --header \"Authorization: Bearer <token>\" ekleyin.");
|
|
139
149
|
}
|
|
140
150
|
return incoming;
|
|
141
151
|
}
|
|
@@ -155,7 +165,7 @@ export class Platform {
|
|
|
155
165
|
const callerHeaders = Object.fromEntries(Object.entries(options.headers ?? {}).map(([name, value]) => [name.toLowerCase(), value]));
|
|
156
166
|
const authorization = callerHeaders.authorization ?? (options.anonymous ? undefined : await this.authorizationHeader());
|
|
157
167
|
const headers = {
|
|
158
|
-
host: `${this.
|
|
168
|
+
host: `${this.organization}.${this.config.hostSuffix}`,
|
|
159
169
|
accept: 'application/json',
|
|
160
170
|
...(authorization === undefined ? {} : { authorization }),
|
|
161
171
|
...(options.environment ? { 'x-environment': options.environment } : {}),
|
|
@@ -41,6 +41,25 @@ function rootOf(real, roots) {
|
|
|
41
41
|
* içinde olsalar da okunmaz ve yazılmaz — ajan kendi sırrını platforma yükleyemez, kendi iznini genişletemez.
|
|
42
42
|
*/
|
|
43
43
|
const protectedSegments = new Set(['.git', '.claude', '.mcp.json']);
|
|
44
|
+
/**
|
|
45
|
+
* Zorunlu yerel yolla çalışan araç (B6, K8): `LOCAL_FILES=off` iken listeden çıkar. Karar aracın kendi kayıt dosyasında
|
|
46
|
+
* durur — liste `server.ts`'e gömülmez; şeması değişmez, yalnız kayıt kalkar.
|
|
47
|
+
*/
|
|
48
|
+
export function removeWhenLocalFilesOff(config, registered) {
|
|
49
|
+
if (config.localFiles === 'off')
|
|
50
|
+
registered.remove();
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Uzak bağlayıcı incelemesi B6 (2026-11-12): izinli kök denetimi yolun NEREDE olduğuna bakar, KİMİN istediğine bakmaz.
|
|
54
|
+
* Uzak dağıtımda çalışma dizini gateway'in kendi kaynağıdır (`/app`, `Dockerfile`); platform token'ı olan herkes
|
|
55
|
+
* `file_download { outPath: 'src/…' }` ile ona yazabiliyordu. `LOCAL_FILES` passthrough kipinde varsayılan `off`dur
|
|
56
|
+
* (`config.ts`) ve kapı her okuma ve yazmanın başında durur.
|
|
57
|
+
*/
|
|
58
|
+
function requireLocalFiles(tool, label, config) {
|
|
59
|
+
if (config.localFiles === 'on')
|
|
60
|
+
return;
|
|
61
|
+
throw new PlatformApiError(`${tool}: ${label} — bu gateway uzak kipte çalışıyor ve sunucunun diskine erişmez (LOCAL_FILES=off). Gövdeyi satır içinde verin (schema, ops, definition, code, row/rows, content/text, xml); outPath ile yazılan büyük çıktılar uzakta alınamaz. İstek gönderilmedi.`, 400);
|
|
62
|
+
}
|
|
44
63
|
function protectedPath(real, root) {
|
|
45
64
|
return relative(root.path, real).split(sep).some(segment => protectedSegments.has(segment) || segment.startsWith('.env'));
|
|
46
65
|
}
|
|
@@ -70,6 +89,7 @@ function outsideMessage(tool, label, verb, real, given, config, roots) {
|
|
|
70
89
|
*/
|
|
71
90
|
export async function readLocalFile(tool, path, options, config, roots) {
|
|
72
91
|
const { label, extensions, maxBytes } = options;
|
|
92
|
+
requireLocalFiles(tool, label, config);
|
|
73
93
|
const absolute = resolve(localBase(config).path, path);
|
|
74
94
|
const accepted = extensions?.join(', ');
|
|
75
95
|
if (extensions && !extensions.includes(extname(absolute).toLowerCase())) {
|
|
@@ -147,6 +167,7 @@ export async function readLocalFile(tool, path, options, config, roots) {
|
|
|
147
167
|
* `lstat` ile okunur: bağsa hedefi çözülmeli ve kökte olmalıdır.
|
|
148
168
|
*/
|
|
149
169
|
export async function resolveLocalOutput(tool, label, path, config) {
|
|
170
|
+
requireLocalFiles(tool, label, config);
|
|
150
171
|
const absolute = resolve(localBase(config).path, path);
|
|
151
172
|
const roots = await allowedRoots(config);
|
|
152
173
|
const link = (await lstat(absolute).catch(() => undefined))?.isSymbolicLink() === true;
|
package/dist/platform/token.js
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import { NETWORK_RETRY_DELAYS_MS, PlatformApiError, isTransientNetworkError, mapNetworkError, mapPlatformError } from './errors.js';
|
|
2
2
|
import { logStep } from '../observability/trace.js';
|
|
3
3
|
import { request } from 'undici';
|
|
4
|
+
/** JWT'nin `exp`'i (saniye); okunamazsa `undefined`. */
|
|
5
|
+
export function jwtExpiry(token) {
|
|
6
|
+
const payloadSegment = token.split('.')[1];
|
|
7
|
+
if (!payloadSegment)
|
|
8
|
+
return undefined;
|
|
9
|
+
try {
|
|
10
|
+
const payload = JSON.parse(Buffer.from(payloadSegment, 'base64url').toString('utf8'));
|
|
11
|
+
return typeof payload.exp === 'number' ? payload.exp : undefined;
|
|
12
|
+
}
|
|
13
|
+
catch {
|
|
14
|
+
return undefined;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
4
17
|
function readExpiry(token) {
|
|
5
18
|
const payloadSegment = token.split('.')[1];
|
|
6
19
|
if (!payloadSegment)
|
|
@@ -15,6 +28,65 @@ function readExpiry(token) {
|
|
|
15
28
|
}
|
|
16
29
|
return Date.now() + 5 * 60 * 1000;
|
|
17
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Kullanıcı adı + parolayı platformun `/connect/token`'ında JWT'ye çevirir; `organization` isteğin `Host`'unu kurar.
|
|
33
|
+
* Gateway'in kendi girişi (`TokenProvider`, local kip) ve oauth giriş sayfası (planı 03, K5 — organizasyonu kullanıcı
|
|
34
|
+
* seçer) aynı yoldan geçer. Parola yalnız istek gövdesindedir; log'a kullanıcı adı yazılır, parola yazılmaz.
|
|
35
|
+
*/
|
|
36
|
+
export async function exchangePassword(config, organization, username, password, wait = ms => new Promise(resolve => setTimeout(resolve, ms))) {
|
|
37
|
+
const context = {
|
|
38
|
+
api: 'org',
|
|
39
|
+
method: 'POST',
|
|
40
|
+
path: '/connect/token',
|
|
41
|
+
baseUrl: config.orgApiBaseUrl,
|
|
42
|
+
authMode: config.authMode
|
|
43
|
+
};
|
|
44
|
+
const form = new URLSearchParams({
|
|
45
|
+
Username: username,
|
|
46
|
+
Password: password
|
|
47
|
+
});
|
|
48
|
+
let statusCode;
|
|
49
|
+
let payload;
|
|
50
|
+
// Jeton isteği kayıt yazmaz: geçici ağ hatasında GET gibi yeniden denenir ve hata tekrarın güvenli olduğunu söyler
|
|
51
|
+
// (D-19; inceleme: soğuk jeton önbelleğinde tek DNS kesintisi okuyan aracı da düşürüyordu).
|
|
52
|
+
for (let attempt = 1;; attempt += 1) {
|
|
53
|
+
try {
|
|
54
|
+
const response = await request(`${config.orgApiBaseUrl}/connect/token`, {
|
|
55
|
+
method: 'POST',
|
|
56
|
+
headers: {
|
|
57
|
+
host: `${organization}.${config.hostSuffix}`,
|
|
58
|
+
'content-type': 'application/x-www-form-urlencoded',
|
|
59
|
+
accept: 'application/json'
|
|
60
|
+
},
|
|
61
|
+
body: form.toString(),
|
|
62
|
+
signal: AbortSignal.timeout(config.requestTimeoutMs)
|
|
63
|
+
});
|
|
64
|
+
statusCode = response.statusCode;
|
|
65
|
+
const text = await response.body.text();
|
|
66
|
+
try {
|
|
67
|
+
payload = text ? JSON.parse(text) : undefined;
|
|
68
|
+
}
|
|
69
|
+
catch {
|
|
70
|
+
payload = text;
|
|
71
|
+
}
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
catch (error) {
|
|
75
|
+
const delay = NETWORK_RETRY_DELAYS_MS[attempt - 1];
|
|
76
|
+
if (delay === undefined || !isTransientNetworkError(error))
|
|
77
|
+
throw mapNetworkError(error, context, { attempts: attempt, readOnly: true });
|
|
78
|
+
logStep('kimlik ⟳', `POST ${config.orgApiBaseUrl}/connect/token · geçici ağ hatası, ${delay} ms sonra yeniden deneniyor (deneme ${attempt + 1}/${NETWORK_RETRY_DELAYS_MS.length + 1})`);
|
|
79
|
+
await wait(delay);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (statusCode >= 400)
|
|
83
|
+
throw mapPlatformError(statusCode, payload, context);
|
|
84
|
+
const accessToken = payload && typeof payload === 'object' ? payload.access_token : undefined;
|
|
85
|
+
if (typeof accessToken !== 'string' || accessToken.length === 0) {
|
|
86
|
+
throw new PlatformApiError('Token yanıtı beklenen biçimde değil: access_token alanı yok.');
|
|
87
|
+
}
|
|
88
|
+
return accessToken;
|
|
89
|
+
}
|
|
18
90
|
export class TokenProvider {
|
|
19
91
|
config;
|
|
20
92
|
wait;
|
|
@@ -28,60 +100,10 @@ export class TokenProvider {
|
|
|
28
100
|
return this.config.token;
|
|
29
101
|
if (this.cached && this.cached.expiresAt > Date.now())
|
|
30
102
|
return this.cached.value;
|
|
31
|
-
const context = {
|
|
32
|
-
api: 'org',
|
|
33
|
-
method: 'POST',
|
|
34
|
-
path: '/connect/token',
|
|
35
|
-
baseUrl: this.config.orgApiBaseUrl,
|
|
36
|
-
authMode: this.config.authMode
|
|
37
|
-
};
|
|
38
|
-
const form = new URLSearchParams({
|
|
39
|
-
Username: this.config.username ?? '',
|
|
40
|
-
Password: this.config.password ?? ''
|
|
41
|
-
});
|
|
42
|
-
let statusCode;
|
|
43
|
-
let payload;
|
|
44
103
|
logStep('kimlik →', `önbellekte geçerli token yok — POST ${this.config.orgApiBaseUrl}/connect/token · kullanıcı ${this.config.username ?? '(yok)'}`);
|
|
45
|
-
|
|
46
|
-
// (D-19; inceleme: soğuk jeton önbelleğinde tek DNS kesintisi okuyan aracı da düşürüyordu).
|
|
47
|
-
for (let attempt = 1;; attempt += 1) {
|
|
48
|
-
try {
|
|
49
|
-
const response = await request(`${this.config.orgApiBaseUrl}/connect/token`, {
|
|
50
|
-
method: 'POST',
|
|
51
|
-
headers: {
|
|
52
|
-
host: `${this.config.organization}.${this.config.hostSuffix}`,
|
|
53
|
-
'content-type': 'application/x-www-form-urlencoded',
|
|
54
|
-
accept: 'application/json'
|
|
55
|
-
},
|
|
56
|
-
body: form.toString(),
|
|
57
|
-
signal: AbortSignal.timeout(this.config.requestTimeoutMs)
|
|
58
|
-
});
|
|
59
|
-
statusCode = response.statusCode;
|
|
60
|
-
const text = await response.body.text();
|
|
61
|
-
try {
|
|
62
|
-
payload = text ? JSON.parse(text) : undefined;
|
|
63
|
-
}
|
|
64
|
-
catch {
|
|
65
|
-
payload = text;
|
|
66
|
-
}
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
catch (error) {
|
|
70
|
-
const delay = NETWORK_RETRY_DELAYS_MS[attempt - 1];
|
|
71
|
-
if (delay === undefined || !isTransientNetworkError(error))
|
|
72
|
-
throw mapNetworkError(error, context, { attempts: attempt, readOnly: true });
|
|
73
|
-
logStep('kimlik ⟳', `POST ${this.config.orgApiBaseUrl}/connect/token · geçici ağ hatası, ${delay} ms sonra yeniden deneniyor (deneme ${attempt + 1}/${NETWORK_RETRY_DELAYS_MS.length + 1})`);
|
|
74
|
-
await this.wait(delay);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
if (statusCode >= 400)
|
|
78
|
-
throw mapPlatformError(statusCode, payload, context);
|
|
79
|
-
const accessToken = payload && typeof payload === 'object' ? payload.access_token : undefined;
|
|
80
|
-
if (typeof accessToken !== 'string' || accessToken.length === 0) {
|
|
81
|
-
throw new PlatformApiError('Token yanıtı beklenen biçimde değil: access_token alanı yok.');
|
|
82
|
-
}
|
|
104
|
+
const accessToken = await exchangePassword(this.config, this.config.organization, this.config.username ?? '', this.config.password ?? '', this.wait);
|
|
83
105
|
this.cached = { value: accessToken, expiresAt: readExpiry(accessToken) };
|
|
84
|
-
logStep('kimlik ←', `
|
|
106
|
+
logStep('kimlik ←', `token alındı, önbellekte ${Math.max(0, Math.round((this.cached.expiresAt - Date.now()) / 1000))} sn geçerli`);
|
|
85
107
|
return accessToken;
|
|
86
108
|
}
|
|
87
109
|
invalidate() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_meta": {
|
|
3
3
|
"synthetic": true,
|
|
4
|
-
"note": "Mobil sayfada 'Apple ile devam et' düğmesinin akışı (kök docs/adr/0035-sosyal-giris-akis-adimi.md): sunucudan nonce al → sign-in-with ile cihazın penceresinden idToken al → sunucuda doğrula ve oturum/jeton al → simple projede jetonu sakla → ana sayfaya git. Sunucu uçları (giris-basla, giris) workflow'un 'social-sign-in' adımıyla kurulur — gövdeleri
|
|
4
|
+
"note": "Mobil sayfada 'Apple ile devam et' düğmesinin akışı (kök docs/adr/0035-sosyal-giris-akis-adimi.md): sunucudan nonce al → sign-in-with ile cihazın penceresinden idToken al → sunucuda doğrula ve oturum/jeton al → simple projede jetonu sakla → ana sayfaya git. Sunucu uçları (giris-basla, giris) workflow'un 'social-sign-in' adımıyla kurulur — gövdeleri zeyrek://examples/workflow-social-sign-in-mobile; yanıt şekilleri { success, nonce } ve { success, userId, isNewUser, token? } olarak o örnekle aynıdır (Steps.basla.data.nonce, Steps.giris.data.token). Bu örnek yalnız istemci yarısıdır ve sentetiktir — gerçek bir uygulamada uçtan uca ölçülmemiştir.",
|
|
5
5
|
"harvestedFrom": "sentetik: kök ADR 0035 sözleşmesi ve @ng-apps/flow sign-in-golden.json'dan elle yazıldı; gateway kuralları (FLOW-047) altında bulgusuz doğrulandı"
|
|
6
6
|
},
|
|
7
7
|
"_rules": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"expression": "{{ Functions.toplamHesapla(10, 3) }}"
|
|
69
69
|
},
|
|
70
70
|
"uiFlowCodeStep": "const toplam = Functions.toplamHesapla(num_fiyat.value, num_adet.value);\nstate.page.sonuc = toplam;",
|
|
71
|
-
"uiFlowFunctionStep": "
|
|
71
|
+
"uiFlowFunctionStep": "zeyrek://examples/flow-call-function",
|
|
72
72
|
"workflowCodeStep": "return { toplam: toplamHesapla(10, 3) };",
|
|
73
73
|
"automationCondition": "toplamHesapla(row.fiyat, row.adet) > 1000"
|
|
74
74
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"synthetic": true,
|
|
4
4
|
"note": "Mobil uygulamada üç sayfalık liste → detay → form akışı (G6 koşusunun girdisi): 'gorevler' mount'ta görevleri yükleyip repeater'a yazar, satıra dokunmak 'detay'ı id ile açar, 'yeni' formu kaydedip toast gösterir ve listeye döner. Yerleşim flex (blocks yok), görünüm tipli gruplarla.",
|
|
5
5
|
"pairsWith": "mobile-app-shell-stack ya da mobile-app-shell-tab (kabuk), microservice-table-list (liste ucu), page-form-upsert (web'deki form ikizi)",
|
|
6
|
-
"sourceRef": "platform_guide('mobile') §Kurulum sırası; platform_guide('mobile-steps') §Adım sözlüğü;
|
|
6
|
+
"sourceRef": "platform_guide('mobile') §Kurulum sırası; platform_guide('mobile-steps') §Adım sözlüğü; zeyrek://examples/flow-list-to-form (redirect query sözleşmesi)"
|
|
7
7
|
},
|
|
8
8
|
"_rules": {
|
|
9
9
|
"order": "Önce kabuk ve sayfalar (mobile_app_create), sonra microservice'ler, sonra her sayfanın schemaPatchOps'u, en son akışlar (flow_create) ve bağları (set_event).",
|
|
@@ -12,9 +12,9 @@ Sıra her zaman aynıdır:
|
|
|
12
12
|
1. **İş nesnesi** — sürecin konusu olan entity (`gorevler`, `satinalma_talepleri`). Süreç o satırın
|
|
13
13
|
üstünde koşar: ifadelerde `row`, `writeBack` ile satıra yazar.
|
|
14
14
|
2. **Tanım** — `process_definition_create`. Önce altın örneği okuyun:
|
|
15
|
-
`
|
|
16
|
-
`
|
|
17
|
-
`
|
|
15
|
+
`zeyrek://examples/bpm-gorev-kontrol` (satır olayı → görev → onay → iade),
|
|
16
|
+
`zeyrek://examples/bpm-satinalma` (seviye servisi → sıralı yönetici zinciri → paralel kontrol),
|
|
17
|
+
`zeyrek://examples/bpm-iso-dokuman` (onay birimi → okuma turu → düzenleme isteği bölge olayı).
|
|
18
18
|
3. **Önizleme** — `process_definition_preview` ile önce `definition` gövdesiyle doğrulama, kayıttan
|
|
19
19
|
sonra `id` + `subjectRowId` ile kuru koşu: her insan adımında kimin görev alacağını görürsünüz.
|
|
20
20
|
4. **Yayın** — `process_definition_publish`. Taslak aktif olur; production'a yayın yoktur (BPM-001).
|
|
@@ -43,7 +43,7 @@ Her projeye seed sırasında hazır entity'ler açılır ve **id'leri her kurulu
|
|
|
43
43
|
|
|
44
44
|
**`users` gerçek bir entity'dir**, sahte bir sistem tablosu değil: `entity_get` alanlarını verir,
|
|
45
45
|
`RELATION` alanı hedef alabilir, table step / microservice okur, `row_create` yazar, kendi default
|
|
46
|
-
DTO'su vardır. Auth middleware tarifi zaten bunu okur — `
|
|
46
|
+
DTO'su vardır. Auth middleware tarifi zaten bunu okur — `zeyrek://examples/middleware-authenticate`
|
|
47
47
|
`entityId` olarak `users`'ı kullanır.
|
|
48
48
|
|
|
49
49
|
### Organizasyon ağacı tabloları — okunur, genel yolla YAZILMAZ (ORG-001 · ORG-002)
|
|
@@ -545,7 +545,7 @@ Var olan entity'yi `entity_patch` ile uygulamaya bağlamanın çalışan şekli
|
|
|
545
545
|
`indexes` alanı `entity_create` ve `entity_update` gövdesinde geçer.
|
|
546
546
|
**Studio'da index ekranı YOKTUR** — bu alan platformun tek index yönetim yüzeyidir, yanlış
|
|
547
547
|
yazdığın bir index'i arayüzden görüp düzeltemezsin. Tam şema:
|
|
548
|
-
`
|
|
548
|
+
`zeyrek://schemas/CreateEntityCommand` (`EntityIndexDto`).
|
|
549
549
|
|
|
550
550
|
```jsonc
|
|
551
551
|
{ "indexes": [
|
|
@@ -613,7 +613,7 @@ gerçekten kurulduğunu görmek istiyorsan `query_preview` ile
|
|
|
613
613
|
Bu tablo `CreateEntityCommandValidator` / `UpdateEntityCommandValidator` / `FieldDtoValidator`'ın
|
|
614
614
|
aynasıdır. Gateway aynı kuralı **istek gitmeden** `block` olarak uygular ve mesaj platformun 422
|
|
615
615
|
cümlesidir — 2026-09-08 koşusunda bu kurallar ancak platforma gidip öğrenildi (index adı 33
|
|
616
|
-
karakter, primaryKey yok). Tam katalog, kaynak referanslı JSON: `
|
|
616
|
+
karakter, primaryKey yok). Tam katalog, kaynak referanslı JSON: `zeyrek://rules/backend-constraints`.
|
|
617
617
|
|
|
618
618
|
| Alan | Kural | ID |
|
|
619
619
|
|---|---|---|
|
|
@@ -1080,8 +1080,8 @@ tam listesi o dosyadadır (`file_download`).
|
|
|
1080
1080
|
İçe aktarma **development kararıdır**: `import_plan`, `import_run`, `import_undo` ve `import_cancel`
|
|
1081
1081
|
production'da istek gitmeden reddedilir.
|
|
1082
1082
|
|
|
1083
|
-
Şemalar: `
|
|
1084
|
-
`
|
|
1083
|
+
Şemalar: `zeyrek://schemas/ImportAnalysisDto`, `zeyrek://schemas/ImportPlanDto`,
|
|
1084
|
+
`zeyrek://schemas/DataJobDto`.
|
|
1085
1085
|
|
|
1086
1086
|
### 4. Geçmiş, iptal ve geri alma
|
|
1087
1087
|
|
|
@@ -137,4 +137,4 @@ zaten yazar; kit, iskeleti elle düzenlerken referans olarak işinize yarar.
|
|
|
137
137
|
(`attributes`, `children`, `class`, `className`, `id`, `name`, `style`, `slot`, `innerHTML`…) ve
|
|
138
138
|
`zx`/`on` ile başlayamaz; `definition.props[].type` platform sözlüğünden (`text`, `number`,
|
|
139
139
|
`switch`, `dropdown`, `object`, `array`, `views`, `component`…). Slug deseni `^x-[a-z][a-z0-9-]*$`
|
|
140
|
-
ve 2 MB paket sınırı tool'un kendisinde denetlenir. Tam liste: `
|
|
140
|
+
ve 2 MB paket sınırı tool'un kendisinde denetlenir. Tam liste: `zeyrek://rules/backend-constraints`.
|
|
@@ -19,8 +19,8 @@ yan yana yaşayabilir — ad alanları farklıdır (`ad()` vs `Functions.ad()`),
|
|
|
19
19
|
> tanımla. Mikroservis ifadeleri hiçbir kaynağı yüklemez.
|
|
20
20
|
|
|
21
21
|
Araçlar: `function_list` · `function_get` · `function_create` · `function_update` · `function_delete`
|
|
22
|
-
(modül `function`; `core` ve `studio` kümelerinde). Örnekler: `
|
|
23
|
-
(iki kaynak), `
|
|
22
|
+
(modül `function`; `core` ve `studio` kümelerinde). Örnekler: `zeyrek://examples/function-total`
|
|
23
|
+
(iki kaynak), `zeyrek://examples/flow-call-function`.
|
|
24
24
|
|
|
25
25
|
## Ne zaman fonksiyon, ne zaman değil
|
|
26
26
|
|
|
@@ -204,7 +204,7 @@ state.page.sonuc = toplam;
|
|
|
204
204
|
- Çıktı `Steps.<adımAdı>.data`; hata `Steps.<adımAdı>.error.message` (nesne — `microservice`
|
|
205
205
|
adımının dize hatasından farklı). Dal adı `always`; hata yolu `errorSteps` ile aynı mekanizma.
|
|
206
206
|
- Sonucu ekrana yazmak için sonraki `setter` iteratee'si `storage` tipiyle `mapping.source:
|
|
207
|
-
"hesapla.data"` okur (adım **adı**, stepId değil) — tam gövde `
|
|
207
|
+
"hesapla.data"` okur (adım **adı**, stepId değil) — tam gövde `zeyrek://examples/flow-call-function`.
|
|
208
208
|
- Akışı olaya bağlamak ayrı adımdır: `page_schema_patch set_event { target, event:'click', eventValue:<flow id> }`.
|
|
209
209
|
- `end` adımı koyma; son adımın dalı `nextStepId: null` ile biter (FLOW-023).
|
|
210
210
|
|
|
@@ -141,13 +141,26 @@ Yeni kompleks proje `enforce` başlar. Sıra:
|
|
|
141
141
|
4. Mod `enforce`'a döner; `access_session_create` ile giriş yap, `asUser` ile uçları sına, reddi
|
|
142
142
|
`access_preview` ile açıkla (`platform_guide('access')`).
|
|
143
143
|
|
|
144
|
+
## Var olan bir projede: önce uygulama notları
|
|
145
|
+
|
|
146
|
+
Kurulmuş bir projenin ekibi, uygulamanın kabuğunu, tasarım kararlarını ve tuzaklarını projenin Sürücü'sünde
|
|
147
|
+
kökteki `ai-notlari` klasörüne yazar (repodaki `docs/apps/<proje>/` notlarının kopyası; `npm run app-notes:sync`).
|
|
148
|
+
O projede bir şey değiştirmeden önce:
|
|
149
|
+
|
|
150
|
+
1. `folder_list` ile kök klasörleri listele, `ai-notlari`'nı bul. Yoksa proje için not yazılmamıştır.
|
|
151
|
+
2. `file_list({ folderId })` ile dosyalarını gör; önce `zorunlu-okuma.txt`'yi `file_download({ id })` ile oku.
|
|
152
|
+
3. Listelediği dosyaları oku. Bir satırın yanında düzenli ifade varsa o dosya yalnız eşleşen araçlarla çalışırken
|
|
153
|
+
gerekir. Alt klasörler: `folder_list({ parentId })`.
|
|
154
|
+
|
|
155
|
+
Notlar kopyadır; düzeltmeyi Sürücü'ye değil repoya yaz, sonra yeniden eşitle.
|
|
156
|
+
|
|
144
157
|
## Örnek arama davranışı
|
|
145
158
|
|
|
146
159
|
Örnek gövde için **mevcut projeleri taramak yerine** önce şunlara bak:
|
|
147
160
|
|
|
148
|
-
1. `
|
|
161
|
+
1. `zeyrek://examples/index` — onaylanmış altın örnekler (m2m entity çifti, table-source
|
|
149
162
|
microservice, tam workflow). Boş org'da tek örnek kaynağı budur.
|
|
150
|
-
2. `
|
|
163
|
+
2. `zeyrek://schemas/index` — API gövdelerinin JSON şemaları (alan adları buradan doğrulanır).
|
|
151
164
|
3. Org'da proje varsa `*_get` çıktısı hâlâ iyi bir şablondur — ama önce örnek kütüphanesi.
|
|
152
165
|
|
|
153
166
|
## Rehber yetmezse: kaynağa bak, sonra söyle
|
|
@@ -243,8 +256,8 @@ kabul gövdesi olmasıdır; o zaman alan hiç görünmez ve doğrulamayı `*_get
|
|
|
243
256
|
"unmappedMembers": ["indexes[0].isUnique"]
|
|
244
257
|
```
|
|
245
258
|
|
|
246
|
-
Bu satırı gördüğünde alanı silme — **doğru adı bul**. Şema `
|
|
247
|
-
(ör. `
|
|
259
|
+
Bu satırı gördüğünde alanı silme — **doğru adı bul**. Şema `zeyrek://schemas/<Komut>` altındadır
|
|
260
|
+
(ör. `zeyrek://schemas/UpdateEntityCommand`) ve gerçek maliyeti ölçülmüştür: `unique` yerine
|
|
248
261
|
`isUnique` yazılan bir index UNIQUE OLMADAN kurulur ve çağrı 200 döner.
|
|
249
262
|
|
|
250
263
|
Kanal yalnız senin yazdığın anahtarları bildirir; gateway'in bir kaydı okuyup geri yazarken
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Hazır komponentler bir gereksinimi karşılamıyorsa cevap "yapılamaz" değil, `html`
|
|
4
4
|
komponentidir: ham HTML + Mustache şablonu + scoped CSS + satır içi script + flow köprüsü.
|
|
5
5
|
Genel komponent kuralları: `platform_guide('component')`; tam gövde örneği:
|
|
6
|
-
`
|
|
6
|
+
`zeyrek://examples/page-html-embed`.
|
|
7
7
|
|
|
8
8
|
## Karar kuralları
|
|
9
9
|
|
|
@@ -44,7 +44,7 @@ göre kurmaktır. `version` bir **string**tir (mikrosaniye zaman damgası) — s
|
|
|
44
44
|
kez çizer ve `elementId`'leri tekrarlar. (LAY-002 / LAY-006)
|
|
45
45
|
|
|
46
46
|
**5. VARSAYILAN kabuğu kullan, sonra özelleştir (2026-09-29).** Yeni bir layout kurarken
|
|
47
|
-
önce `
|
|
47
|
+
önce `zeyrek://examples/layout-app-shell` örneğini `layout_create`'in `views` alanına olduğu
|
|
48
48
|
gibi ver — Studio'da "New layout" ile açılan iskeletin birebir aynısıdır (aşağıdaki mini
|
|
49
49
|
tarif). Sonra uygulamaya göre değiştir: menü öğeleri ve `href`'leri, başlık, ikonlar;
|
|
50
50
|
gerekmeyen parçayı (arama, yardım, bildirim) sil. Kullanıcı açıkça başka bir kabuk isterse
|
|
@@ -170,7 +170,7 @@ Loop adımı dizinin her öğesi için fonksiyonu bir kez çağırır. Çocuğun
|
|
|
170
170
|
`MaxPayloadBytes` (5 MB) sınırına sayılır: büyük bir sorgudan sonra koşan loop'ta sınır
|
|
171
171
|
iterasyon başına dolabilir.
|
|
172
172
|
|
|
173
|
-
Tam gövde örneği: `
|
|
173
|
+
Tam gövde örneği: `zeyrek://examples/microfunction-node-sum`.
|
|
174
174
|
|
|
175
175
|
## Built-In ve AWS Lambda farkı
|
|
176
176
|
|
|
@@ -234,7 +234,7 @@ Python 3.7'ydi; o sürümde kurulmuş paketler yeniden yayında 3.13 için yenid
|
|
|
234
234
|
hâlde zip'in içinde gelmelidir (archive kaynağı; Python'da paket klasörleri, Node'da `node_modules`);
|
|
235
235
|
aksi hâlde yayının probe adımı import hatasıyla `publish-failed` olur.
|
|
236
236
|
|
|
237
|
-
Örnek: `
|
|
237
|
+
Örnek: `zeyrek://examples/microfunction-node-dependencies`.
|
|
238
238
|
|
|
239
239
|
## Zip kaynağı: arşiv dosyaları (MF-006)
|
|
240
240
|
|
|
@@ -986,7 +986,7 @@ Dört gerçek daha:
|
|
|
986
986
|
- Backend zorunlulukları (MS-017, block — istek gitmeden): `name` ve `url` boş olamaz (update'te
|
|
987
987
|
`slug` da); `queryId`/`entityId`/`workflowId` verilirse boş GUID olamaz; `source: 'expression'`
|
|
988
988
|
alan ve filtrede `value` dolu; tekil filtrede `fieldId`; `writeOn` yalnız `operation: 'upsert'`
|
|
989
|
-
ucunda; join'de `entityId` + `fieldId`. Tam katalog: `
|
|
989
|
+
ucunda; join'de `entityId` + `fieldId`. Tam katalog: `zeyrek://rules/backend-constraints`.
|
|
990
990
|
- Query kaydı (QRY-001, block): `rawQuery`'deki her `@ad` / `{{ad}}` `parameters[]`'ta
|
|
991
991
|
`{ name, type }` ile bildirilir — yalnız create denetler, update sessiz geçer ve sorgu çalışma
|
|
992
992
|
anında düşer; `slug`/`rawQuery`/`datasourceId` zorunlu; `outputType` `array` | `object`.
|
|
@@ -1024,4 +1024,4 @@ Okuyan bir uç prop'a **akışsız** bağlanabilir (`connect_data_bind`, `platfo
|
|
|
1024
1024
|
- `connect_data_convert` bir bağlantıyı `source: connectData` bir uca çevirir: `m/{app}/{slug}` `POST { op: 'list' }` aynı
|
|
1025
1025
|
kabiliyet damgalı `{ data, meta, errors }` zarfını döner. Kompleks projede `microservice_execute { asUserId }` ile
|
|
1026
1026
|
kullanıcı gözüyle doğrulayın; `microservice_preview` Studio ucudur (ROLLBACK'li, kapıları koşmaz).
|
|
1027
|
-
- Örnekler: `
|
|
1027
|
+
- Örnekler: `zeyrek://examples/connect-data-workflow-microservice`, `zeyrek://examples/connect-data-convert-verify`.
|
|
@@ -166,7 +166,7 @@ DTO'sundan düşebilir, CSV metin alanı düşmez (bkz. FLOW-016).
|
|
|
166
166
|
olarak taşır (rolün gerçek adı "Yönetici" olsa bile), `Authorized` bunlarla karşılaştırır —
|
|
167
167
|
`user.roles` da slug taşımalıdır.
|
|
168
168
|
|
|
169
|
-
Tam gövde iskeleti: `
|
|
169
|
+
Tam gövde iskeleti: `zeyrek://examples/middleware-authenticate`. Bağlamak için:
|
|
170
170
|
microservice'te `definition.middlewareIds: ["<middleware workflow id>"]`
|
|
171
171
|
(create/update gövdesinde), sayfada `page_create/page_update` `middlewareIds` parametresi.
|
|
172
172
|
|
|
@@ -349,7 +349,7 @@ bırakıldığında akış `500 JavaScriptException: user is not defined` verdi.
|
|
|
349
349
|
## Tarif 4 — Şifre sıfırlama (kodla)
|
|
350
350
|
|
|
351
351
|
"Şifremi unuttum" bir middleware değil, iki **anonim** uçtur (`source: 'workflow'`, `middlewareIds: []`)
|
|
352
|
-
ve kullanıcı başına tek satırlık bir kod tablosudur. Hazır parçalar: `
|
|
352
|
+
ve kullanıcı başına tek satırlık bir kod tablosudur. Hazır parçalar: `zeyrek://examples/middleware-password-reset`
|
|
353
353
|
(tablo, dört DTO, iki akış, iki uç). Lokal yığında bu örnekten kurularak uçtan uca ölçüldü (2026-11-04).
|
|
354
354
|
|
|
355
355
|
**Tablo** `password_reset_codes`: `user_id` (UUID, **UNIQUE**), `salt`, `code_hash`, `expires_at`, `sent_at`,
|
|
@@ -9,7 +9,7 @@ Bir mobil ekran kurmadan önce bunu okuyun. Buradaki kurallar zevk meselesi değ
|
|
|
9
9
|
|
|
10
10
|
Temel mobil bilgi (flex-only yerleşim, tipli stil, gezinme) için `platform_guide('mobile')`, cihaz adımları için
|
|
11
11
|
`platform_guide('mobile-steps')`.
|
|
12
|
-
Altın örnek: `
|
|
12
|
+
Altın örnek: `zeyrek://examples/mobile-form-screen`.
|
|
13
13
|
|
|
14
14
|
## Sözleşme
|
|
15
15
|
|
|
@@ -98,7 +98,7 @@ verinin yalnız bu telefonda olduğunu söyleyin. Adımların tam sözleşmesi `
|
|
|
98
98
|
- İki adım da **kapıdır**: `error` dalı ya da akışın hata adımları yoksa akış o adımda biter (FLOW-050). Sunucu verili
|
|
99
99
|
uygulamada adımın yedekleyeceği veri yoktur ve her zaman `unavailable` döner (MOB-056).
|
|
100
100
|
|
|
101
|
-
Tam gövde: `
|
|
101
|
+
Tam gövde: `zeyrek://examples/flow-local-backup`.
|
|
102
102
|
|
|
103
103
|
## Önizleme ve deneme
|
|
104
104
|
|
|
@@ -216,7 +216,7 @@ ve her yeteneği `mobile_store_get`'in `shell` alanı söyler (`shell.capabiliti
|
|
|
216
216
|
| `deviceInstallationId` | 0.14.0 | `platform_guide('workflow')` §Push adımı | `Device.installationId` `undefined`: kurulum kimliğine push hedeflenemez |
|
|
217
217
|
| `signIn` | 0.15.0 | §Giriş | manifeste `signIn` bloğu yazılmaz, `sign-in-with` `unsupported` döner; ön kontrol P-34 `warn sign_in_shell_outdated` |
|
|
218
218
|
| `devicePlatform` | 0.17.0 | `platform_guide('expressions')` §2 | `Device.platform` `undefined`: platforma göre gizleme çalışmaz; ifade `=== 'android'` biçiminde yazıldıysa varsayılan görünüm kalır |
|
|
219
|
-
| `localApp` | 0.
|
|
219
|
+
| `localApp` | 0.18.0 | `platform_guide('mobile-local')` | derlenmez (`manifest_invalid`) |
|
|
220
220
|
| `hybridApp` | 0.18.0 | `platform_guide('mobile-local')` | derlenmez (`manifest_invalid`) |
|
|
221
221
|
|
|
222
222
|
Lokal yığının derleme varsayılanı daha eski olabilir; telefondaki sürümü tahmin etmeyin, `shell.version`'dan okuyun.
|