@appaflytech/zeyrek-ai-mcp 0.0.4 → 0.0.6

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 (101) hide show
  1. package/.env.example +8 -3
  2. package/.env.production.example +2 -0
  3. package/README.md +229 -193
  4. package/dist/config.js +20 -2
  5. package/dist/knowledge/backendConstraints.js +897 -0
  6. package/dist/knowledge/componentCatalog.js +196 -42
  7. package/dist/knowledge/coverage.js +43 -0
  8. package/dist/knowledge/flowGuards.js +30 -0
  9. package/dist/knowledge/guideSections.js +49 -0
  10. package/dist/knowledge/hydrate.js +97 -0
  11. package/dist/knowledge/languageCodes.js +36 -0
  12. package/dist/knowledge/languages.js +105 -0
  13. package/dist/knowledge/layoutSummary.js +10 -0
  14. package/dist/knowledge/localization.js +51 -0
  15. package/dist/knowledge/normalize.js +449 -16
  16. package/dist/knowledge/outlines.js +136 -12
  17. package/dist/knowledge/propTypes.js +80 -0
  18. package/dist/knowledge/rules.js +618 -43
  19. package/dist/knowledge/schemaGuard.js +199 -0
  20. package/dist/knowledge/styleResolve.js +63 -4
  21. package/dist/observability/trace.js +27 -3
  22. package/dist/platform/errors.js +46 -4
  23. package/dist/platform/http.js +33 -4
  24. package/dist/platform/patch.js +27 -0
  25. package/dist/platform/refs.js +104 -0
  26. package/dist/platform/responses.js +9 -2
  27. package/dist/platform/screenshot.js +527 -16
  28. package/dist/platform/secrets.js +40 -0
  29. package/dist/platform/tokenVault.js +89 -0
  30. package/dist/platform/writeDiff.js +281 -0
  31. package/dist/resources/examples/layout-app-shell.json +1 -1
  32. package/dist/resources/examples/microservice-table-list.json +2 -4
  33. package/dist/resources/examples/page-dynamic-form.json +2 -2
  34. package/dist/resources/examples/page-flex-sections.json +99 -0
  35. package/dist/resources/examples/page-sign-in.json +3 -2
  36. package/dist/resources/guides/component.md +69 -8
  37. package/dist/resources/guides/entity.md +404 -16
  38. package/dist/resources/guides/expressions.md +44 -2
  39. package/dist/resources/guides/external-component.md +9 -0
  40. package/dist/resources/guides/getting-started.md +77 -7
  41. package/dist/resources/guides/layout.md +53 -10
  42. package/dist/resources/guides/microservice.md +226 -13
  43. package/dist/resources/guides/middleware.md +89 -1
  44. package/dist/resources/guides/page.md +383 -46
  45. package/dist/resources/guides/translation.md +126 -8
  46. package/dist/resources/guides/view.md +16 -1
  47. package/dist/resources/guides/workflow.md +198 -27
  48. package/dist/resources/knowledge.js +5 -0
  49. package/dist/resources/rules.js +27 -0
  50. package/dist/resources/schema-fingerprint.json +8 -0
  51. package/dist/resources/schemas/CreateBulkRowCommand.json +33 -0
  52. package/dist/resources/schemas/CreateDatasourceCommand.json +15 -6
  53. package/dist/resources/schemas/CreateDiscoveredEntitiesCommand.json +19 -8
  54. package/dist/resources/schemas/CreateEntityCommand.json +52 -12
  55. package/dist/resources/schemas/CreateMicroserviceCommand.json +26 -2
  56. package/dist/resources/schemas/CreateQueryCommand.json +56 -3
  57. package/dist/resources/schemas/CreateRowCommand.json +38 -0
  58. package/dist/resources/schemas/CreateViewCommand.json +13 -10
  59. package/dist/resources/schemas/CreateWorkflowCommand.json +95 -14
  60. package/dist/resources/schemas/GetRowsQuery.json +3 -0
  61. package/dist/resources/schemas/PreviewMicroserviceCommand.json +16 -0
  62. package/dist/resources/schemas/PreviewQueryCommand.json +5 -2
  63. package/dist/resources/schemas/PreviewWorkflowCommand.json +34 -9
  64. package/dist/resources/schemas/StepDto.json +23 -3
  65. package/dist/resources/schemas/UpdateBulkRowCommand.json +33 -0
  66. package/dist/resources/schemas/UpdateDatasourceCommand.json +15 -6
  67. package/dist/resources/schemas/UpdateEntityCommand.json +49 -10
  68. package/dist/resources/schemas/UpdateMicroserviceCommand.json +28 -3
  69. package/dist/resources/schemas/UpdateQueryCommand.json +13 -3
  70. package/dist/resources/schemas/UpdateRowCommand.json +40 -0
  71. package/dist/resources/schemas/UpdateViewCommand.json +15 -10
  72. package/dist/resources/schemas/UpdateWorkflowCommand.json +95 -14
  73. package/dist/server.js +4 -0
  74. package/dist/tools/access.js +3 -3
  75. package/dist/tools/applications.js +1 -1
  76. package/dist/tools/automations.js +63 -30
  77. package/dist/tools/common.js +39 -0
  78. package/dist/tools/components.js +16 -7
  79. package/dist/tools/datasources.js +83 -21
  80. package/dist/tools/deployments.js +34 -2
  81. package/dist/tools/dtos.js +25 -12
  82. package/dist/tools/entities.js +113 -28
  83. package/dist/tools/externalComponents.js +9 -3
  84. package/dist/tools/files.js +20 -6
  85. package/dist/tools/flows.js +110 -11
  86. package/dist/tools/folders.js +7 -2
  87. package/dist/tools/globalFunctions.js +63 -0
  88. package/dist/tools/layouts.js +103 -29
  89. package/dist/tools/microservices.js +229 -38
  90. package/dist/tools/organizations.js +5 -6
  91. package/dist/tools/pages.js +365 -100
  92. package/dist/tools/platformInfo.js +152 -11
  93. package/dist/tools/projects.js +183 -33
  94. package/dist/tools/queries.js +32 -10
  95. package/dist/tools/rows.js +159 -45
  96. package/dist/tools/screenWrite.js +59 -0
  97. package/dist/tools/screens.js +28 -0
  98. package/dist/tools/translations.js +24 -8
  99. package/dist/tools/views.js +20 -10
  100. package/dist/tools/workflows.js +33 -16
  101. package/package.json +6 -3
@@ -1,25 +1,34 @@
1
1
  {
2
2
  "schema": {
3
+ "required": [
4
+ "dbName",
5
+ "host",
6
+ "name"
7
+ ],
3
8
  "type": "object",
4
9
  "properties": {
5
10
  "name": {
6
- "type": "string",
7
- "nullable": true
11
+ "maxLength": 50,
12
+ "minLength": 1,
13
+ "type": "string"
8
14
  },
9
15
  "description": {
16
+ "maxLength": 255,
10
17
  "type": "string",
11
18
  "nullable": true
12
19
  },
13
20
  "dbName": {
14
- "type": "string",
15
- "nullable": true
21
+ "maxLength": 63,
22
+ "minLength": 1,
23
+ "type": "string"
16
24
  },
17
25
  "type": {
18
26
  "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Datasources.DatasourceType"
19
27
  },
20
28
  "host": {
21
- "type": "string",
22
- "nullable": true
29
+ "maxLength": 255,
30
+ "minLength": 1,
31
+ "type": "string"
23
32
  },
24
33
  "port": {
25
34
  "type": "integer",
@@ -19,6 +19,10 @@
19
19
  "components": {
20
20
  "schemas": {
21
21
  "NgApps.Domain.Contexts.Datastore.Entities.DiscoveredEntityDto": {
22
+ "required": [
23
+ "name",
24
+ "slug"
25
+ ],
22
26
  "type": "object",
23
27
  "properties": {
24
28
  "tableSchema": {
@@ -26,12 +30,13 @@
26
30
  "nullable": true
27
31
  },
28
32
  "slug": {
29
- "type": "string",
30
- "nullable": true
33
+ "minLength": 1,
34
+ "type": "string"
31
35
  },
32
36
  "name": {
33
- "type": "string",
34
- "nullable": true
37
+ "maxLength": 255,
38
+ "minLength": 1,
39
+ "type": "string"
35
40
  },
36
41
  "fields": {
37
42
  "type": "array",
@@ -44,19 +49,25 @@
44
49
  "additionalProperties": false
45
50
  },
46
51
  "NgApps.Domain.Contexts.Datastore.Entities.DiscoveredFieldDto": {
52
+ "required": [
53
+ "dbType",
54
+ "slug"
55
+ ],
47
56
  "type": "object",
48
57
  "properties": {
49
58
  "slug": {
50
- "type": "string",
51
- "nullable": true
59
+ "minLength": 1,
60
+ "type": "string"
52
61
  },
53
62
  "name": {
63
+ "maxLength": 50,
54
64
  "type": "string",
55
65
  "nullable": true
56
66
  },
57
67
  "dbType": {
58
- "type": "string",
59
- "nullable": true
68
+ "maxLength": 50,
69
+ "minLength": 1,
70
+ "type": "string"
60
71
  },
61
72
  "primaryKey": {
62
73
  "type": "boolean"
@@ -1,5 +1,9 @@
1
1
  {
2
2
  "schema": {
3
+ "required": [
4
+ "name",
5
+ "slug"
6
+ ],
3
7
  "type": "object",
4
8
  "properties": {
5
9
  "id": {
@@ -11,16 +15,18 @@
11
15
  "format": "uuid"
12
16
  },
13
17
  "name": {
14
- "type": "string",
15
- "nullable": true
18
+ "maxLength": 255,
19
+ "minLength": 1,
20
+ "type": "string"
16
21
  },
17
22
  "description": {
23
+ "maxLength": 1024,
18
24
  "type": "string",
19
25
  "nullable": true
20
26
  },
21
27
  "slug": {
22
- "type": "string",
23
- "nullable": true
28
+ "minLength": 1,
29
+ "type": "string"
24
30
  },
25
31
  "isAuditTrailActive": {
26
32
  "type": "boolean"
@@ -75,6 +81,10 @@
75
81
  "format": ""
76
82
  },
77
83
  "NgApps.Application.Contexts.Datastore.Entities.FieldDto": {
84
+ "required": [
85
+ "dbType",
86
+ "slug"
87
+ ],
78
88
  "type": "object",
79
89
  "properties": {
80
90
  "id": {
@@ -82,20 +92,23 @@
82
92
  "format": "uuid"
83
93
  },
84
94
  "description": {
95
+ "maxLength": 512,
85
96
  "type": "string",
86
97
  "nullable": true
87
98
  },
88
99
  "name": {
100
+ "maxLength": 50,
89
101
  "type": "string",
90
102
  "nullable": true
91
103
  },
92
104
  "slug": {
93
- "type": "string",
94
- "nullable": true
105
+ "minLength": 1,
106
+ "type": "string"
95
107
  },
96
108
  "dbType": {
97
- "type": "string",
98
- "nullable": true
109
+ "maxLength": 50,
110
+ "minLength": 1,
111
+ "type": "string"
99
112
  },
100
113
  "primaryKey": {
101
114
  "type": "boolean"
@@ -184,11 +197,26 @@
184
197
  },
185
198
  "isSystemField": {
186
199
  "type": "boolean"
200
+ },
201
+ "isLocalized": {
202
+ "type": "boolean"
203
+ },
204
+ "nameTranslations": {
205
+ "type": "object",
206
+ "additionalProperties": {
207
+ "type": "string",
208
+ "nullable": true
209
+ },
210
+ "nullable": true
187
211
  }
188
212
  },
189
213
  "additionalProperties": false
190
214
  },
191
215
  "NgApps.Application.Contexts.Datastore.Entities.EntityIndexDto": {
216
+ "required": [
217
+ "fieldIds",
218
+ "name"
219
+ ],
192
220
  "type": "object",
193
221
  "properties": {
194
222
  "id": {
@@ -196,19 +224,19 @@
196
224
  "format": "uuid"
197
225
  },
198
226
  "name": {
199
- "type": "string",
200
- "nullable": true
227
+ "minLength": 1,
228
+ "type": "string"
201
229
  },
202
230
  "unique": {
203
231
  "type": "boolean"
204
232
  },
205
233
  "fieldIds": {
234
+ "minItems": 1,
206
235
  "type": "array",
207
236
  "items": {
208
237
  "type": "string",
209
238
  "format": "uuid"
210
- },
211
- "nullable": true
239
+ }
212
240
  }
213
241
  },
214
242
  "additionalProperties": false
@@ -296,6 +324,18 @@
296
324
  "icon": {
297
325
  "type": "string",
298
326
  "nullable": true
327
+ },
328
+ "order": {
329
+ "type": "integer",
330
+ "format": "int32"
331
+ },
332
+ "labels": {
333
+ "type": "object",
334
+ "additionalProperties": {
335
+ "type": "string",
336
+ "nullable": true
337
+ },
338
+ "nullable": true
299
339
  }
300
340
  },
301
341
  "additionalProperties": false
@@ -1,5 +1,9 @@
1
1
  {
2
2
  "schema": {
3
+ "required": [
4
+ "name",
5
+ "url"
6
+ ],
3
7
  "type": "object",
4
8
  "properties": {
5
9
  "id": {
@@ -7,6 +11,14 @@
7
11
  "format": "uuid"
8
12
  },
9
13
  "name": {
14
+ "minLength": 1,
15
+ "type": "string"
16
+ },
17
+ "description": {
18
+ "type": "string",
19
+ "nullable": true
20
+ },
21
+ "caution": {
10
22
  "type": "string",
11
23
  "nullable": true
12
24
  },
@@ -38,8 +50,8 @@
38
50
  "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.Dtos.MicroserviceTypeSchema"
39
51
  },
40
52
  "url": {
41
- "type": "string",
42
- "nullable": true
53
+ "minLength": 1,
54
+ "type": "string"
43
55
  },
44
56
  "source": {
45
57
  "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.MicroserviceSource"
@@ -380,6 +392,9 @@
380
392
  "order": {
381
393
  "type": "integer",
382
394
  "format": "int32"
395
+ },
396
+ "writeOn": {
397
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.MicroserviceFieldWriteOn"
383
398
  }
384
399
  },
385
400
  "additionalProperties": false
@@ -522,6 +537,15 @@
522
537
  ],
523
538
  "type": "string",
524
539
  "format": ""
540
+ },
541
+ "NgApps.Domain.Contexts.Studio.Microservices.MicroserviceFieldWriteOn": {
542
+ "enum": [
543
+ "always",
544
+ "create",
545
+ "update"
546
+ ],
547
+ "type": "string",
548
+ "format": ""
525
549
  }
526
550
  }
527
551
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "schema": {
3
+ "required": [
4
+ "datasourceId",
5
+ "rawQuery",
6
+ "slug"
7
+ ],
3
8
  "type": "object",
4
9
  "properties": {
5
10
  "id": {
@@ -7,21 +12,33 @@
7
12
  "format": "uuid"
8
13
  },
9
14
  "rawQuery": {
10
- "type": "string",
11
- "nullable": true
15
+ "minLength": 1,
16
+ "type": "string"
12
17
  },
13
18
  "slug": {
19
+ "minLength": 1,
20
+ "type": "string"
21
+ },
22
+ "name": {
14
23
  "type": "string",
15
24
  "nullable": true
16
25
  },
17
- "name": {
26
+ "description": {
18
27
  "type": "string",
19
28
  "nullable": true
20
29
  },
21
30
  "datasourceId": {
31
+ "minLength": 1,
22
32
  "type": "string",
23
33
  "format": "uuid"
24
34
  },
35
+ "parameters": {
36
+ "type": "array",
37
+ "items": {
38
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Queries.QueryParameter"
39
+ },
40
+ "nullable": true
41
+ },
25
42
  "outputType": {
26
43
  "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Queries.QueryOutputType"
27
44
  }
@@ -30,6 +47,22 @@
30
47
  },
31
48
  "components": {
32
49
  "schemas": {
50
+ "NgApps.Domain.Contexts.Datastore.Queries.QueryParameter": {
51
+ "type": "object",
52
+ "properties": {
53
+ "name": {
54
+ "type": "string",
55
+ "nullable": true
56
+ },
57
+ "type": {
58
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.CommonFieldType"
59
+ },
60
+ "value": {
61
+ "nullable": true
62
+ }
63
+ },
64
+ "additionalProperties": false
65
+ },
33
66
  "NgApps.Domain.Contexts.Datastore.Queries.QueryOutputType": {
34
67
  "enum": [
35
68
  "array",
@@ -37,6 +70,26 @@
37
70
  ],
38
71
  "type": "string",
39
72
  "format": ""
73
+ },
74
+ "NgApps.Domain.Contexts.Datastore.Entities.CommonFieldType": {
75
+ "enum": [
76
+ "text",
77
+ "number",
78
+ "bool",
79
+ "date",
80
+ "time",
81
+ "datetime",
82
+ "guid",
83
+ "float",
84
+ "relation",
85
+ "custom",
86
+ "object",
87
+ "array",
88
+ "file",
89
+ "incremental"
90
+ ],
91
+ "type": "string",
92
+ "format": ""
40
93
  }
41
94
  }
42
95
  }
@@ -0,0 +1,38 @@
1
+ {
2
+ "schema": {
3
+ "type": "object",
4
+ "properties": {
5
+ "entityId": {
6
+ "type": "string",
7
+ "format": "uuid"
8
+ },
9
+ "row": {
10
+ "type": "object",
11
+ "additionalProperties": {
12
+ "nullable": true
13
+ },
14
+ "nullable": true
15
+ },
16
+ "rowContext": {
17
+ "type": "object",
18
+ "additionalProperties": {
19
+ "nullable": true
20
+ },
21
+ "nullable": true
22
+ },
23
+ "localizations": {
24
+ "type": "object",
25
+ "additionalProperties": {
26
+ "type": "object",
27
+ "additionalProperties": {},
28
+ "nullable": true
29
+ },
30
+ "nullable": true
31
+ }
32
+ },
33
+ "additionalProperties": false
34
+ },
35
+ "components": {
36
+ "schemas": {}
37
+ }
38
+ }
@@ -1,5 +1,8 @@
1
1
  {
2
2
  "schema": {
3
+ "required": [
4
+ "name"
5
+ ],
3
6
  "type": "object",
4
7
  "properties": {
5
8
  "id": {
@@ -7,8 +10,8 @@
7
10
  "format": "uuid"
8
11
  },
9
12
  "name": {
10
- "type": "string",
11
- "nullable": true
13
+ "minLength": 1,
14
+ "type": "string"
12
15
  },
13
16
  "slug": {
14
17
  "type": "string",
@@ -48,6 +51,13 @@
48
51
  },
49
52
  "components": {
50
53
  "schemas": {
54
+ "NgApps.Domain.Contexts.Datastore.Views.ViewProviderType": {
55
+ "enum": [
56
+ "postgres"
57
+ ],
58
+ "type": "string",
59
+ "format": ""
60
+ },
51
61
  "NgApps.Application.Contexts.Datastore.Views.ViewAnalyzerInput": {
52
62
  "type": "object",
53
63
  "properties": {
@@ -110,13 +120,6 @@
110
120
  },
111
121
  "additionalProperties": false
112
122
  },
113
- "NgApps.Domain.Contexts.Datastore.Views.ViewProviderType": {
114
- "enum": [
115
- "postgres"
116
- ],
117
- "type": "string",
118
- "format": ""
119
- },
120
123
  "NgApps.Domain.Contexts.Datastore.Views.ViewLanguage": {
121
124
  "enum": [
122
125
  "simple",
@@ -155,4 +158,4 @@
155
158
  }
156
159
  }
157
160
  }
158
- }
161
+ }