@appaflytech/zeyrek-ai-mcp 0.0.48 → 0.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/.env.example +5 -0
  2. package/dist/config.js +2 -0
  3. package/dist/knowledge/access.js +4 -3
  4. package/dist/knowledge/assistantRun.js +165 -0
  5. package/dist/knowledge/componentCatalog.js +31 -0
  6. package/dist/knowledge/componentEvents.js +4 -1
  7. package/dist/knowledge/mobileComponentCatalog.js +21 -3
  8. package/dist/knowledge/mobileComponentEvents.js +9 -0
  9. package/dist/knowledge/mobileStore.js +14 -0
  10. package/dist/knowledge/motionResolve.js +1 -1
  11. package/dist/knowledge/platform/lint.js +36 -3
  12. package/dist/knowledge/platform/mobileRules.js +6 -0
  13. package/dist/knowledge/styleResolve.js +7 -0
  14. package/dist/platform/capture/actions.js +67 -0
  15. package/dist/platform/capture/capture.js +26 -21
  16. package/dist/platform/errors.js +9 -0
  17. package/dist/platform/http.js +7 -2
  18. package/dist/platform/storeArt/compose.js +114 -0
  19. package/dist/platform/storeArt/deck.js +133 -0
  20. package/dist/platform/storeArt/gallery.js +331 -0
  21. package/dist/platform/storeArt/layouts.js +121 -0
  22. package/dist/platform/storeArt/styles.js +54 -0
  23. package/dist/platform/tokenVault.js +15 -0
  24. package/dist/resources/examples/mobile-reorder-persist.json +491 -0
  25. package/dist/resources/guides/assistant.md +194 -0
  26. package/dist/resources/guides/deployment.md +19 -1
  27. package/dist/resources/guides/microservice.md +7 -0
  28. package/dist/resources/guides/mobile-publish.md +13 -0
  29. package/dist/resources/guides/mobile.md +4 -0
  30. package/dist/resources/guides/page.md +62 -0
  31. package/dist/resources/prompts/mobile-publish-prepare.md +3 -1
  32. package/dist/resources/schema-fingerprint.json +4 -4
  33. package/dist/resources/schemas/AccessMatrixDto.json +2 -1
  34. package/dist/resources/schemas/AccessPermissionDto.json +2 -1
  35. package/dist/resources/schemas/AccessResourceDto.json +2 -1
  36. package/dist/resources/schemas/AssistantCapabilitiesDto.json +256 -0
  37. package/dist/resources/schemas/AssistantPublishStateDto.json +57 -0
  38. package/dist/resources/schemas/AssistantScenarioDto.json +91 -0
  39. package/dist/resources/schemas/AssistantScenarioRunDto.json +62 -0
  40. package/dist/resources/schemas/AssistantSettingsDto.json +52 -0
  41. package/dist/resources/schemas/AssistantSkillDto.json +78 -0
  42. package/dist/resources/schemas/AssistantSummaryDto.json +100 -0
  43. package/dist/resources/schemas/CreateAssistantScenarioCommand.json +81 -0
  44. package/dist/resources/schemas/CreateAssistantSkillCommand.json +83 -0
  45. package/dist/resources/schemas/CreateMicroserviceCommand.json +16 -0
  46. package/dist/resources/schemas/DescribeAssistantCapabilityCommand.json +145 -0
  47. package/dist/resources/schemas/GlobalFunctionUpdateResultDto.json +5 -1
  48. package/dist/resources/schemas/MicroserviceDto.json +16 -0
  49. package/dist/resources/schemas/PublishAssistantCommand.json +15 -0
  50. package/dist/resources/schemas/RunAssistantScenariosCommand.json +39 -0
  51. package/dist/resources/schemas/SimulateAssistantCommand.json +106 -0
  52. package/dist/resources/schemas/UpdateAssistantScenarioCommand.json +79 -0
  53. package/dist/resources/schemas/UpdateAssistantSettingsCommand.json +52 -0
  54. package/dist/resources/schemas/UpdateAssistantSkillCommand.json +81 -0
  55. package/dist/resources/schemas/UpdateMicroserviceCommand.json +16 -0
  56. package/dist/resources/store-art/editor.css +389 -0
  57. package/dist/resources/store-art/editor.html +123 -0
  58. package/dist/resources/store-art/editor.js +990 -0
  59. package/dist/server.js +2 -0
  60. package/dist/tools/applications.js +4 -4
  61. package/dist/tools/assistant.js +382 -0
  62. package/dist/tools/deployments.js +9 -3
  63. package/dist/tools/microservices.js +1 -1
  64. package/dist/tools/mobile.js +2 -2
  65. package/dist/tools/mobileStore.js +56 -19
  66. package/dist/tools/pages.js +21 -5
  67. package/dist/tools/projects.js +2 -2
  68. package/dist/tools/templates.js +1 -1
  69. package/dist/tools/themes.js +2 -2
  70. package/package.json +2 -2
@@ -0,0 +1,491 @@
1
+ {
2
+ "_meta": {
3
+ "synthetic": true,
4
+ "note": "Sırası kalıcı kaydedilen mobil liste: repeater tutamaçtan sürüklenir, reorder akışı event.data.patches'ı bulk-update ucuna TEK istekte kök dizi olarak yazar, ardından listeyi sıra alanına göre yeniden okur. mobiltest › siralama-kalici'de (lokal, 2026-10-27) uçta ölçülen sayfanın kimliksiz hâli: sürükleme → tek PUT 200, yeniden okunan satırlar yeni sırada. Sayfa mizanpaj sözleşmesine ve MOB-035'e uyar, akışlar mobil profilden ve kendi lint kurallarından bulgusuz geçer (test/mobile-rules.test.ts, test/mobile-layout-lint.test.ts).",
5
+ "pairsWith": "mobile-offline-list (aynı listenin okuma deseni), mobile-list-detail-form (satıra dokunma), mobile-app-shell-stack ya da mobile-app-shell-tab (kabuk)",
6
+ "sourceRef": "platform_guide('page') §Kural 1g-5; platform_guide('microservice') §Toplu yazma; MOB-035; zeyrek-frontend docs/adr/0029-akis-adiminda-kok-dizi-govde.md"
7
+ },
8
+ "_rules": {
9
+ "list": "repeater'a reorderable: true + orderField: '<sayı alanı>' yazılır; tutamaç her satırın sonunda çizilir. Yalnız dikey ve tek sütunlu listede çalışır — direction: 'horizontal' ya da columnCount > 1 MOB-035 uyarısıdır ve tutamaç çizilmez. Satırlar orderField'a göre çizilir; okuma ucunun sıralı dönmesi yine de yenilemede aynı sırayı garanti eder.",
10
+ "payload": "Bırakınca reorder yayılır: event.data = { fromIndex, toIndex, row, patches: [{ id, value }] }. patches yalnız sırası değişen satırlardır; id satırın _id'si (yoksa id), value orderField'a yazılacak 1 tabanlı yeni adım. Yerinde bırakılan sürükleme olay yaymaz; orderField yoksa ya da bir satırda anahtar yoksa patches BOŞ dizidir.",
11
+ "endpoint": "Yazma ucu tablo kaynaklı operation: 'bulk-update'; fields = birincil anahtar + sıra alanı, başka alan yok (tanımdaki alan gövdede yoksa NULL yazılır). Gövdede birincil anahtar zorunludur, WHERE'e taşınır. Tek istekte en fazla 1000 satır, parti hep-ya-hiç.",
12
+ "bodyKeys": "Gövde anahtarları alan slug'larıdır; fields[].name ile yeniden adlandırma yoktur. { id, value } yaması uca olduğu gibi gitmez: map ile { id, <orderField>: value }'ya eşlenir.",
13
+ "rootArray": "Satır listesi ucun gövde parametrelerinden YALNIZ BİRİNE (birincil anahtarınkine) code ile verilir, öbürleri hiç yazılmaz. Servis şeması isParameterArray dediği için değeri olan tek gövde parametresinin dizisi gövdenin KENDİSİ olur — parametre adı anlamını yitirir. İkinci bir gövde parametresine değer verilirse gövde nesneye döner ve platform tek satır okur: 422 'Please provide the primary key value'. ADR 0029'dan eski platformda bu akış da 422 ile düşer.",
14
+ "onError": "Servis hata dönerse liste kendiliğinden eski sıraya DÖNMEZ: yeniden okuma sürüklemeden önceki satırların aynısını getirir, liste aynı satırlarda tuttuğu sırayı korur ve ekran kaydedilmemiş sırada kalır. Hatayı Steps.<yazma adımı>.error ile kullanıcıya gösterin; eski sıraya döndürmenin doğrulanmış bir yolu yoktur.",
15
+ "verify": "page_screenshot({ applicationSlug: '<uygulama>', pageSlug: 'siralama', actions: [{ action: 'swipe', target: 'lst_gorev__row-2__handle', to: 'lst_gorev__row-0' }] }) üçüncü satırı başa taşır; txt_sonuc 'kaydedildi 3 satır' yazar ve row_list (order sira) aynı sırayı verir. Tutamaç kimliği yalnız çalışma anında basılır. Her denemeden sonra satırları bulk-update ile ilk sıralarına geri yazın."
16
+ },
17
+ "microservices": [
18
+ {
19
+ "role": "okuma",
20
+ "definition": {
21
+ "name": "gorev-sirali",
22
+ "slug": "gorev-sirali",
23
+ "url": "gorev-sirali",
24
+ "description": "Görevleri (id, ad, sira) liste olarak döner; sıralamayı çağıran sortField/sortType ile verir.",
25
+ "type": "rest-api",
26
+ "httpMethod": "get",
27
+ "source": "table",
28
+ "returnType": "flat",
29
+ "entityId": "<gorev entity id>",
30
+ "sourceParameters": {
31
+ "operation": "get",
32
+ "entityId": "<gorev entity id>",
33
+ "alias": "gorev",
34
+ "isSingle": false,
35
+ "joins": [],
36
+ "filters": [],
37
+ "selectFields": [
38
+ {
39
+ "alias": "gorev",
40
+ "fieldSlug": "id"
41
+ },
42
+ {
43
+ "alias": "gorev",
44
+ "fieldSlug": "ad"
45
+ },
46
+ {
47
+ "alias": "gorev",
48
+ "fieldSlug": "sira"
49
+ }
50
+ ],
51
+ "sort": {
52
+ "name": "sortField",
53
+ "type": "sortType",
54
+ "source": "query-string"
55
+ },
56
+ "limit": {
57
+ "name": "limit",
58
+ "offset": "offset",
59
+ "source": "query-string"
60
+ }
61
+ }
62
+ }
63
+ },
64
+ {
65
+ "role": "yazma",
66
+ "definition": {
67
+ "name": "gorev-sira-yaz",
68
+ "slug": "gorev-sira-yaz",
69
+ "url": "gorev-sira-yaz",
70
+ "description": "Görevlerin sıra alanını tek istekte toplu yazar; gövde [{ id, sira }] dizisidir.",
71
+ "type": "rest-api",
72
+ "httpMethod": "put",
73
+ "source": "table",
74
+ "returnType": "flat",
75
+ "entityId": "<gorev entity id>",
76
+ "sourceParameters": {
77
+ "operation": "bulk-update",
78
+ "entityId": "<gorev entity id>",
79
+ "alias": "gorev",
80
+ "isSingle": true,
81
+ "joins": [],
82
+ "filters": [],
83
+ "selectFields": [],
84
+ "fields": [
85
+ {
86
+ "fieldSlug": "id",
87
+ "source": "body",
88
+ "value": "id"
89
+ },
90
+ {
91
+ "fieldSlug": "sira",
92
+ "source": "body",
93
+ "value": "sira"
94
+ }
95
+ ],
96
+ "returnFields": [],
97
+ "sort": {
98
+ "name": "sortField",
99
+ "type": "sortType",
100
+ "source": "query-string"
101
+ },
102
+ "limit": {
103
+ "name": "limit",
104
+ "offset": "offset",
105
+ "source": "query-string"
106
+ }
107
+ }
108
+ }
109
+ }
110
+ ],
111
+ "pages": [
112
+ {
113
+ "pageCreateArgs": {
114
+ "name": "Sıralama",
115
+ "slug": "siralama"
116
+ },
117
+ "schemaPatchOps": [
118
+ {
119
+ "op": "add_component",
120
+ "parent": "page_container",
121
+ "component": {
122
+ "elementId": "txt_sonuc",
123
+ "name": "txt_sonuc",
124
+ "type": "text",
125
+ "kind": "component",
126
+ "props": {
127
+ "content": {
128
+ "type": "static",
129
+ "ref": null,
130
+ "data": "Bir satırı tutamacından sürükleyin"
131
+ }
132
+ },
133
+ "appearance": {
134
+ "marginType": "none",
135
+ "widthType": "fill"
136
+ },
137
+ "blocks": [],
138
+ "events": [],
139
+ "validations": [],
140
+ "stateBindings": [],
141
+ "children": []
142
+ }
143
+ },
144
+ {
145
+ "op": "add_component",
146
+ "parent": "page_container",
147
+ "component": {
148
+ "elementId": "lst_gorev",
149
+ "name": "lst_gorev",
150
+ "type": "repeater",
151
+ "kind": "component",
152
+ "props": {
153
+ "rows": {
154
+ "type": "static",
155
+ "ref": null,
156
+ "data": []
157
+ },
158
+ "reorderable": {
159
+ "type": "static",
160
+ "ref": null,
161
+ "data": true
162
+ },
163
+ "orderField": {
164
+ "type": "static",
165
+ "ref": null,
166
+ "data": "sira"
167
+ },
168
+ "verticalSpacing": {
169
+ "type": "static",
170
+ "ref": null,
171
+ "data": 8
172
+ }
173
+ },
174
+ "appearance": {
175
+ "marginType": "none",
176
+ "widthType": "fill"
177
+ },
178
+ "blocks": [],
179
+ "events": [],
180
+ "validations": [],
181
+ "stateBindings": [],
182
+ "children": [
183
+ {
184
+ "elementId": "lst_gorev_satir",
185
+ "name": "lst_gorev_satir",
186
+ "type": "view",
187
+ "kind": "component",
188
+ "props": {},
189
+ "blocks": [],
190
+ "children": [
191
+ {
192
+ "elementId": "kart_gorev",
193
+ "name": "kart_gorev",
194
+ "type": "card",
195
+ "kind": "component",
196
+ "props": {
197
+ "title": {
198
+ "type": "code",
199
+ "ref": "{{ item.ad }}"
200
+ },
201
+ "description": {
202
+ "type": "code",
203
+ "ref": "{{ 'Sıra ' + item.sira }}"
204
+ }
205
+ },
206
+ "appearance": {
207
+ "marginType": "none",
208
+ "widthType": "fill"
209
+ },
210
+ "blocks": [],
211
+ "events": [],
212
+ "validations": [],
213
+ "stateBindings": [],
214
+ "children": []
215
+ }
216
+ ]
217
+ },
218
+ {
219
+ "elementId": "lst_gorev_bos_gorunum",
220
+ "name": "lst_gorev_bos_gorunum",
221
+ "type": "view",
222
+ "kind": "component",
223
+ "props": {},
224
+ "blocks": [],
225
+ "children": [
226
+ {
227
+ "elementId": "lst_gorev_bos",
228
+ "name": "lst_gorev_bos",
229
+ "type": "emptystate",
230
+ "kind": "component",
231
+ "props": {
232
+ "title": {
233
+ "type": "static",
234
+ "data": "Görev yok"
235
+ }
236
+ },
237
+ "blocks": [],
238
+ "children": []
239
+ }
240
+ ]
241
+ }
242
+ ]
243
+ }
244
+ }
245
+ ],
246
+ "flows": [
247
+ {
248
+ "name": "siralama yukle",
249
+ "slug": "siralama-yukle",
250
+ "steps": [
251
+ {
252
+ "stepId": "start",
253
+ "name": "start",
254
+ "type": "start",
255
+ "kind": "normal",
256
+ "args": {},
257
+ "branches": [
258
+ {
259
+ "id": "<GUID>",
260
+ "name": "always",
261
+ "nextStepId": "oku"
262
+ }
263
+ ]
264
+ },
265
+ {
266
+ "stepId": "oku",
267
+ "name": "oku",
268
+ "type": "microservice",
269
+ "kind": "normal",
270
+ "args": {
271
+ "microserviceId": "<gorev-sirali microservice id>",
272
+ "slug": "gorev-sirali",
273
+ "httpMethod": "get",
274
+ "isRaw": false,
275
+ "parameters": [
276
+ {
277
+ "name": "sortField",
278
+ "type": "text",
279
+ "source": "query-string",
280
+ "value": {
281
+ "type": "static",
282
+ "ref": "sira"
283
+ }
284
+ },
285
+ {
286
+ "name": "sortType",
287
+ "type": "text",
288
+ "source": "query-string",
289
+ "value": {
290
+ "type": "static",
291
+ "ref": "asc"
292
+ }
293
+ }
294
+ ]
295
+ },
296
+ "branches": [
297
+ {
298
+ "id": "<GUID>",
299
+ "name": "always",
300
+ "nextStepId": "yaz"
301
+ }
302
+ ]
303
+ },
304
+ {
305
+ "stepId": "yaz",
306
+ "name": "yaz",
307
+ "type": "setter",
308
+ "kind": "normal",
309
+ "args": {
310
+ "iteratees": [
311
+ {
312
+ "id": "<GUID>",
313
+ "type": "change",
314
+ "source": "component",
315
+ "element": "lst_gorev",
316
+ "property": "rows",
317
+ "mapping": {
318
+ "source": "",
319
+ "mappings": {}
320
+ },
321
+ "value": {
322
+ "type": "code",
323
+ "ref": "Steps.oku?.data ?? []"
324
+ }
325
+ }
326
+ ]
327
+ },
328
+ "branches": [
329
+ {
330
+ "id": "<GUID>",
331
+ "name": "always",
332
+ "nextStepId": null
333
+ }
334
+ ]
335
+ }
336
+ ]
337
+ },
338
+ {
339
+ "name": "siralama kaydet",
340
+ "slug": "siralama-kaydet",
341
+ "steps": [
342
+ {
343
+ "stepId": "start",
344
+ "name": "start",
345
+ "type": "start",
346
+ "kind": "normal",
347
+ "args": {},
348
+ "branches": [
349
+ {
350
+ "id": "<GUID>",
351
+ "name": "always",
352
+ "nextStepId": "kaydet"
353
+ }
354
+ ]
355
+ },
356
+ {
357
+ "stepId": "kaydet",
358
+ "name": "kaydet",
359
+ "type": "microservice",
360
+ "kind": "normal",
361
+ "args": {
362
+ "microserviceId": "<gorev-sira-yaz microservice id>",
363
+ "slug": "gorev-sira-yaz",
364
+ "httpMethod": "put",
365
+ "isRaw": false,
366
+ "parameters": [
367
+ {
368
+ "name": "id",
369
+ "type": "guid",
370
+ "source": "body",
371
+ "value": {
372
+ "type": "code",
373
+ "ref": "event.data.patches.map(p => ({ id: p.id, sira: p.value }))"
374
+ }
375
+ }
376
+ ]
377
+ },
378
+ "branches": [
379
+ {
380
+ "id": "<GUID>",
381
+ "name": "always",
382
+ "nextStepId": "oku"
383
+ }
384
+ ]
385
+ },
386
+ {
387
+ "stepId": "oku",
388
+ "name": "oku",
389
+ "type": "microservice",
390
+ "kind": "normal",
391
+ "args": {
392
+ "microserviceId": "<gorev-sirali microservice id>",
393
+ "slug": "gorev-sirali",
394
+ "httpMethod": "get",
395
+ "isRaw": false,
396
+ "parameters": [
397
+ {
398
+ "name": "sortField",
399
+ "type": "text",
400
+ "source": "query-string",
401
+ "value": {
402
+ "type": "static",
403
+ "ref": "sira"
404
+ }
405
+ },
406
+ {
407
+ "name": "sortType",
408
+ "type": "text",
409
+ "source": "query-string",
410
+ "value": {
411
+ "type": "static",
412
+ "ref": "asc"
413
+ }
414
+ }
415
+ ]
416
+ },
417
+ "branches": [
418
+ {
419
+ "id": "<GUID>",
420
+ "name": "always",
421
+ "nextStepId": "yaz"
422
+ }
423
+ ]
424
+ },
425
+ {
426
+ "stepId": "yaz",
427
+ "name": "yaz",
428
+ "type": "setter",
429
+ "kind": "normal",
430
+ "args": {
431
+ "iteratees": [
432
+ {
433
+ "id": "<GUID>",
434
+ "type": "change",
435
+ "source": "component",
436
+ "element": "lst_gorev",
437
+ "property": "rows",
438
+ "mapping": {
439
+ "source": "",
440
+ "mappings": {}
441
+ },
442
+ "value": {
443
+ "type": "code",
444
+ "ref": "Steps.oku?.data ?? []"
445
+ }
446
+ },
447
+ {
448
+ "id": "<GUID>",
449
+ "type": "change",
450
+ "source": "component",
451
+ "element": "txt_sonuc",
452
+ "property": "content",
453
+ "mapping": {
454
+ "source": "",
455
+ "mappings": {}
456
+ },
457
+ "value": {
458
+ "type": "code",
459
+ "ref": "Steps.kaydet?.error ? 'Sıra kaydedilemedi: ' + Steps.kaydet.error.message : 'kaydedildi ' + event.data.patches.length + ' satır'"
460
+ }
461
+ }
462
+ ]
463
+ },
464
+ "branches": [
465
+ {
466
+ "id": "<GUID>",
467
+ "name": "always",
468
+ "nextStepId": null
469
+ }
470
+ ]
471
+ }
472
+ ]
473
+ }
474
+ ],
475
+ "bindOps": [
476
+ {
477
+ "op": "set_event",
478
+ "target": "page_container",
479
+ "event": "mount",
480
+ "eventValue": "<siralama-yukle akış id>"
481
+ },
482
+ {
483
+ "op": "set_event",
484
+ "target": "lst_gorev",
485
+ "event": "reorder",
486
+ "eventValue": "<siralama-kaydet akış id>"
487
+ }
488
+ ]
489
+ }
490
+ ]
491
+ }