@elyx-code/project-logic-tree 0.0.56 → 0.0.58

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 (27) hide show
  1. package/dist/index.js +13761 -13758
  2. package/dist/index.umd.cjs +134 -134
  3. package/dist/tree/state/argument-declaration/validation/validation-schema.d.ts +8 -8
  4. package/dist/tree/state/base.d.ts +1 -0
  5. package/dist/tree/state/break-statement/validation/validation-schema.d.ts +32 -32
  6. package/dist/tree/state/condition/validation/validation-schema.d.ts +48 -48
  7. package/dist/tree/state/continue-statement/validation/validation-schema.d.ts +32 -32
  8. package/dist/tree/state/function-call/validation/validation-schema.d.ts +56 -56
  9. package/dist/tree/state/global-event/validation/validation-schema.d.ts +8 -8
  10. package/dist/tree/state/input-map/input-map.d.ts +1 -0
  11. package/dist/tree/state/input-map/validation/validation-schema.d.ts +64 -64
  12. package/dist/tree/state/internal-call/validation/validation-schema.d.ts +56 -56
  13. package/dist/tree/state/loop/validation/validation-schema.d.ts +48 -48
  14. package/dist/tree/state/operation/validation/validation-schema.d.ts +56 -56
  15. package/dist/tree/state/output-map/validation/validation-schema.d.ts +72 -72
  16. package/dist/tree/state/project/project.d.ts +6 -0
  17. package/dist/tree/state/return-declaration/return-declaration.d.ts +1 -0
  18. package/dist/tree/state/return-declaration/validation/validation-schema.d.ts +16 -16
  19. package/dist/tree/state/return-statement/validation/validation-schema.d.ts +32 -32
  20. package/dist/tree/state/search/validation/validation-schema.d.ts +48 -48
  21. package/dist/tree/state/variable-declaration/validation/validation-schema.d.ts +64 -64
  22. package/dist/tree/state/variable-declaration/variable-declaration.d.ts +1 -0
  23. package/dist/tree/state/variable-instance/validation/validation-schema.d.ts +64 -64
  24. package/dist/tree/state/variable-instance/variable-instance.d.ts +1 -0
  25. package/dist/tree/utils/index.d.ts +1 -1
  26. package/dist/tree/utils/uuid.d.ts +1 -7
  27. package/package.json +1 -1
@@ -789,6 +789,11 @@ export declare function getFunctionCallNestedEntitiesSchema(): z.ZodObject<{
789
789
  type: EntityType.FunctionDeclaration;
790
790
  };
791
791
  calledBySuccess: ({
792
+ id: string;
793
+ type: EntityType.GenericReference;
794
+ entityType: EntityType.Loop;
795
+ entityId: string;
796
+ } | {
792
797
  id: string;
793
798
  type: EntityType.GenericReference;
794
799
  entityType: EntityType.Operation;
@@ -823,13 +828,13 @@ export declare function getFunctionCallNestedEntitiesSchema(): z.ZodObject<{
823
828
  type: EntityType.GenericReference;
824
829
  entityType: EntityType.InternalCall;
825
830
  entityId: string;
826
- } | {
831
+ })[];
832
+ calledByError: ({
827
833
  id: string;
828
834
  type: EntityType.GenericReference;
829
835
  entityType: EntityType.Loop;
830
836
  entityId: string;
831
- })[];
832
- calledByError: ({
837
+ } | {
833
838
  id: string;
834
839
  type: EntityType.GenericReference;
835
840
  entityType: EntityType.Operation;
@@ -864,11 +869,6 @@ export declare function getFunctionCallNestedEntitiesSchema(): z.ZodObject<{
864
869
  type: EntityType.GenericReference;
865
870
  entityType: EntityType.InternalCall;
866
871
  entityId: string;
867
- } | {
868
- id: string;
869
- type: EntityType.GenericReference;
870
- entityType: EntityType.Loop;
871
- entityId: string;
872
872
  })[];
873
873
  calledByEntry: ({
874
874
  id: string;
@@ -911,7 +911,7 @@ export declare function getFunctionCallNestedEntitiesSchema(): z.ZodObject<{
911
911
  successCalls: ({
912
912
  id: string;
913
913
  type: EntityType.GenericReference;
914
- entityType: EntityType.ReturnStatement;
914
+ entityType: EntityType.Loop;
915
915
  entityId: string;
916
916
  } | {
917
917
  id: string;
@@ -951,7 +951,7 @@ export declare function getFunctionCallNestedEntitiesSchema(): z.ZodObject<{
951
951
  } | {
952
952
  id: string;
953
953
  type: EntityType.GenericReference;
954
- entityType: EntityType.Loop;
954
+ entityType: EntityType.ReturnStatement;
955
955
  entityId: string;
956
956
  } | {
957
957
  id: string;
@@ -967,7 +967,7 @@ export declare function getFunctionCallNestedEntitiesSchema(): z.ZodObject<{
967
967
  errorCalls: ({
968
968
  id: string;
969
969
  type: EntityType.GenericReference;
970
- entityType: EntityType.ReturnStatement;
970
+ entityType: EntityType.Loop;
971
971
  entityId: string;
972
972
  } | {
973
973
  id: string;
@@ -1007,7 +1007,7 @@ export declare function getFunctionCallNestedEntitiesSchema(): z.ZodObject<{
1007
1007
  } | {
1008
1008
  id: string;
1009
1009
  type: EntityType.GenericReference;
1010
- entityType: EntityType.Loop;
1010
+ entityType: EntityType.ReturnStatement;
1011
1011
  entityId: string;
1012
1012
  } | {
1013
1013
  id: string;
@@ -1021,13 +1021,13 @@ export declare function getFunctionCallNestedEntitiesSchema(): z.ZodObject<{
1021
1021
  entityId: string;
1022
1022
  })[];
1023
1023
  writesValues: (Record<string, any> | {
1024
+ type: EntityType.InputMap;
1025
+ } | {
1024
1026
  type: EntityType.ReturnDeclaration;
1025
1027
  } | {
1026
1028
  type: EntityType.VariableDeclaration;
1027
1029
  } | {
1028
1030
  type: EntityType.VariableInstance;
1029
- } | {
1030
- type: EntityType.InputMap;
1031
1031
  })[];
1032
1032
  error?: Record<string, any> | {
1033
1033
  type: EntityType.OutputMap;
@@ -1037,6 +1037,11 @@ export declare function getFunctionCallNestedEntitiesSchema(): z.ZodObject<{
1037
1037
  type: EntityType.FunctionDeclaration;
1038
1038
  };
1039
1039
  calledBySuccess: ({
1040
+ id: string;
1041
+ type: EntityType.GenericReference;
1042
+ entityType: EntityType.Loop;
1043
+ entityId: string;
1044
+ } | {
1040
1045
  id: string;
1041
1046
  type: EntityType.GenericReference;
1042
1047
  entityType: EntityType.Operation;
@@ -1071,13 +1076,13 @@ export declare function getFunctionCallNestedEntitiesSchema(): z.ZodObject<{
1071
1076
  type: EntityType.GenericReference;
1072
1077
  entityType: EntityType.InternalCall;
1073
1078
  entityId: string;
1074
- } | {
1079
+ })[];
1080
+ calledByError: ({
1075
1081
  id: string;
1076
1082
  type: EntityType.GenericReference;
1077
1083
  entityType: EntityType.Loop;
1078
1084
  entityId: string;
1079
- })[];
1080
- calledByError: ({
1085
+ } | {
1081
1086
  id: string;
1082
1087
  type: EntityType.GenericReference;
1083
1088
  entityType: EntityType.Operation;
@@ -1112,11 +1117,6 @@ export declare function getFunctionCallNestedEntitiesSchema(): z.ZodObject<{
1112
1117
  type: EntityType.GenericReference;
1113
1118
  entityType: EntityType.InternalCall;
1114
1119
  entityId: string;
1115
- } | {
1116
- id: string;
1117
- type: EntityType.GenericReference;
1118
- entityType: EntityType.Loop;
1119
- entityId: string;
1120
1120
  })[];
1121
1121
  calledByEntry: ({
1122
1122
  id: string;
@@ -1159,7 +1159,7 @@ export declare function getFunctionCallNestedEntitiesSchema(): z.ZodObject<{
1159
1159
  successCalls: ({
1160
1160
  id: string;
1161
1161
  type: EntityType.GenericReference;
1162
- entityType: EntityType.ReturnStatement;
1162
+ entityType: EntityType.Loop;
1163
1163
  entityId: string;
1164
1164
  } | {
1165
1165
  id: string;
@@ -1199,7 +1199,7 @@ export declare function getFunctionCallNestedEntitiesSchema(): z.ZodObject<{
1199
1199
  } | {
1200
1200
  id: string;
1201
1201
  type: EntityType.GenericReference;
1202
- entityType: EntityType.Loop;
1202
+ entityType: EntityType.ReturnStatement;
1203
1203
  entityId: string;
1204
1204
  } | {
1205
1205
  id: string;
@@ -1215,7 +1215,7 @@ export declare function getFunctionCallNestedEntitiesSchema(): z.ZodObject<{
1215
1215
  errorCalls: ({
1216
1216
  id: string;
1217
1217
  type: EntityType.GenericReference;
1218
- entityType: EntityType.ReturnStatement;
1218
+ entityType: EntityType.Loop;
1219
1219
  entityId: string;
1220
1220
  } | {
1221
1221
  id: string;
@@ -1255,7 +1255,7 @@ export declare function getFunctionCallNestedEntitiesSchema(): z.ZodObject<{
1255
1255
  } | {
1256
1256
  id: string;
1257
1257
  type: EntityType.GenericReference;
1258
- entityType: EntityType.Loop;
1258
+ entityType: EntityType.ReturnStatement;
1259
1259
  entityId: string;
1260
1260
  } | {
1261
1261
  id: string;
@@ -1269,13 +1269,13 @@ export declare function getFunctionCallNestedEntitiesSchema(): z.ZodObject<{
1269
1269
  entityId: string;
1270
1270
  })[];
1271
1271
  writesValues: (Record<string, any> | {
1272
+ type: EntityType.InputMap;
1273
+ } | {
1272
1274
  type: EntityType.ReturnDeclaration;
1273
1275
  } | {
1274
1276
  type: EntityType.VariableDeclaration;
1275
1277
  } | {
1276
1278
  type: EntityType.VariableInstance;
1277
- } | {
1278
- type: EntityType.InputMap;
1279
1279
  })[];
1280
1280
  error?: Record<string, any> | {
1281
1281
  type: EntityType.OutputMap;
@@ -2015,6 +2015,11 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2015
2015
  type: EntityType.FunctionDeclaration;
2016
2016
  };
2017
2017
  calledBySuccess: ({
2018
+ id: string;
2019
+ type: EntityType.GenericReference;
2020
+ entityType: EntityType.Loop;
2021
+ entityId: string;
2022
+ } | {
2018
2023
  id: string;
2019
2024
  type: EntityType.GenericReference;
2020
2025
  entityType: EntityType.Operation;
@@ -2049,13 +2054,13 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2049
2054
  type: EntityType.GenericReference;
2050
2055
  entityType: EntityType.InternalCall;
2051
2056
  entityId: string;
2052
- } | {
2057
+ })[];
2058
+ calledByError: ({
2053
2059
  id: string;
2054
2060
  type: EntityType.GenericReference;
2055
2061
  entityType: EntityType.Loop;
2056
2062
  entityId: string;
2057
- })[];
2058
- calledByError: ({
2063
+ } | {
2059
2064
  id: string;
2060
2065
  type: EntityType.GenericReference;
2061
2066
  entityType: EntityType.Operation;
@@ -2090,11 +2095,6 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2090
2095
  type: EntityType.GenericReference;
2091
2096
  entityType: EntityType.InternalCall;
2092
2097
  entityId: string;
2093
- } | {
2094
- id: string;
2095
- type: EntityType.GenericReference;
2096
- entityType: EntityType.Loop;
2097
- entityId: string;
2098
2098
  })[];
2099
2099
  calledByEntry: ({
2100
2100
  id: string;
@@ -2140,7 +2140,7 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2140
2140
  successCalls: ({
2141
2141
  id: string;
2142
2142
  type: EntityType.GenericReference;
2143
- entityType: EntityType.ReturnStatement;
2143
+ entityType: EntityType.Loop;
2144
2144
  entityId: string;
2145
2145
  } | {
2146
2146
  id: string;
@@ -2180,7 +2180,7 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2180
2180
  } | {
2181
2181
  id: string;
2182
2182
  type: EntityType.GenericReference;
2183
- entityType: EntityType.Loop;
2183
+ entityType: EntityType.ReturnStatement;
2184
2184
  entityId: string;
2185
2185
  } | {
2186
2186
  id: string;
@@ -2196,7 +2196,7 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2196
2196
  errorCalls: ({
2197
2197
  id: string;
2198
2198
  type: EntityType.GenericReference;
2199
- entityType: EntityType.ReturnStatement;
2199
+ entityType: EntityType.Loop;
2200
2200
  entityId: string;
2201
2201
  } | {
2202
2202
  id: string;
@@ -2236,7 +2236,7 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2236
2236
  } | {
2237
2237
  id: string;
2238
2238
  type: EntityType.GenericReference;
2239
- entityType: EntityType.Loop;
2239
+ entityType: EntityType.ReturnStatement;
2240
2240
  entityId: string;
2241
2241
  } | {
2242
2242
  id: string;
@@ -2250,13 +2250,13 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2250
2250
  entityId: string;
2251
2251
  })[];
2252
2252
  writesValues: (Record<string, any> | {
2253
+ type: EntityType.InputMap;
2254
+ } | {
2253
2255
  type: EntityType.ReturnDeclaration;
2254
2256
  } | {
2255
2257
  type: EntityType.VariableDeclaration;
2256
2258
  } | {
2257
2259
  type: EntityType.VariableInstance;
2258
- } | {
2259
- type: EntityType.InputMap;
2260
2260
  })[];
2261
2261
  error?: Record<string, any> | {
2262
2262
  type: EntityType.OutputMap;
@@ -2268,6 +2268,11 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2268
2268
  type: EntityType.FunctionDeclaration;
2269
2269
  };
2270
2270
  calledBySuccess: ({
2271
+ id: string;
2272
+ type: EntityType.GenericReference;
2273
+ entityType: EntityType.Loop;
2274
+ entityId: string;
2275
+ } | {
2271
2276
  id: string;
2272
2277
  type: EntityType.GenericReference;
2273
2278
  entityType: EntityType.Operation;
@@ -2302,13 +2307,13 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2302
2307
  type: EntityType.GenericReference;
2303
2308
  entityType: EntityType.InternalCall;
2304
2309
  entityId: string;
2305
- } | {
2310
+ })[];
2311
+ calledByError: ({
2306
2312
  id: string;
2307
2313
  type: EntityType.GenericReference;
2308
2314
  entityType: EntityType.Loop;
2309
2315
  entityId: string;
2310
- })[];
2311
- calledByError: ({
2316
+ } | {
2312
2317
  id: string;
2313
2318
  type: EntityType.GenericReference;
2314
2319
  entityType: EntityType.Operation;
@@ -2343,11 +2348,6 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2343
2348
  type: EntityType.GenericReference;
2344
2349
  entityType: EntityType.InternalCall;
2345
2350
  entityId: string;
2346
- } | {
2347
- id: string;
2348
- type: EntityType.GenericReference;
2349
- entityType: EntityType.Loop;
2350
- entityId: string;
2351
2351
  })[];
2352
2352
  calledByEntry: ({
2353
2353
  id: string;
@@ -2393,7 +2393,7 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2393
2393
  successCalls: ({
2394
2394
  id: string;
2395
2395
  type: EntityType.GenericReference;
2396
- entityType: EntityType.ReturnStatement;
2396
+ entityType: EntityType.Loop;
2397
2397
  entityId: string;
2398
2398
  } | {
2399
2399
  id: string;
@@ -2433,7 +2433,7 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2433
2433
  } | {
2434
2434
  id: string;
2435
2435
  type: EntityType.GenericReference;
2436
- entityType: EntityType.Loop;
2436
+ entityType: EntityType.ReturnStatement;
2437
2437
  entityId: string;
2438
2438
  } | {
2439
2439
  id: string;
@@ -2449,7 +2449,7 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2449
2449
  errorCalls: ({
2450
2450
  id: string;
2451
2451
  type: EntityType.GenericReference;
2452
- entityType: EntityType.ReturnStatement;
2452
+ entityType: EntityType.Loop;
2453
2453
  entityId: string;
2454
2454
  } | {
2455
2455
  id: string;
@@ -2489,7 +2489,7 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2489
2489
  } | {
2490
2490
  id: string;
2491
2491
  type: EntityType.GenericReference;
2492
- entityType: EntityType.Loop;
2492
+ entityType: EntityType.ReturnStatement;
2493
2493
  entityId: string;
2494
2494
  } | {
2495
2495
  id: string;
@@ -2503,13 +2503,13 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2503
2503
  entityId: string;
2504
2504
  })[];
2505
2505
  writesValues: (Record<string, any> | {
2506
+ type: EntityType.InputMap;
2507
+ } | {
2506
2508
  type: EntityType.ReturnDeclaration;
2507
2509
  } | {
2508
2510
  type: EntityType.VariableDeclaration;
2509
2511
  } | {
2510
2512
  type: EntityType.VariableInstance;
2511
- } | {
2512
- type: EntityType.InputMap;
2513
2513
  })[];
2514
2514
  error?: Record<string, any> | {
2515
2515
  type: EntityType.OutputMap;
@@ -548,7 +548,7 @@ export declare function getGlobalEventNestedEntitiesSchema(): z.ZodObject<z.obje
548
548
  calls: ({
549
549
  id: string;
550
550
  type: EntityType.GenericReference;
551
- entityType: EntityType.ReturnStatement;
551
+ entityType: EntityType.Loop;
552
552
  entityId: string;
553
553
  } | {
554
554
  id: string;
@@ -588,7 +588,7 @@ export declare function getGlobalEventNestedEntitiesSchema(): z.ZodObject<z.obje
588
588
  } | {
589
589
  id: string;
590
590
  type: EntityType.GenericReference;
591
- entityType: EntityType.Loop;
591
+ entityType: EntityType.ReturnStatement;
592
592
  entityId: string;
593
593
  } | {
594
594
  id: string;
@@ -668,7 +668,7 @@ export declare function getGlobalEventNestedEntitiesSchema(): z.ZodObject<z.obje
668
668
  calls: ({
669
669
  id: string;
670
670
  type: EntityType.GenericReference;
671
- entityType: EntityType.ReturnStatement;
671
+ entityType: EntityType.Loop;
672
672
  entityId: string;
673
673
  } | {
674
674
  id: string;
@@ -708,7 +708,7 @@ export declare function getGlobalEventNestedEntitiesSchema(): z.ZodObject<z.obje
708
708
  } | {
709
709
  id: string;
710
710
  type: EntityType.GenericReference;
711
- entityType: EntityType.Loop;
711
+ entityType: EntityType.ReturnStatement;
712
712
  entityId: string;
713
713
  } | {
714
714
  id: string;
@@ -1200,7 +1200,7 @@ export declare function getGlobalEventSchema(): z.ZodObject<z.objectUtil.extendS
1200
1200
  calls: ({
1201
1201
  id: string;
1202
1202
  type: EntityType.GenericReference;
1203
- entityType: EntityType.ReturnStatement;
1203
+ entityType: EntityType.Loop;
1204
1204
  entityId: string;
1205
1205
  } | {
1206
1206
  id: string;
@@ -1240,7 +1240,7 @@ export declare function getGlobalEventSchema(): z.ZodObject<z.objectUtil.extendS
1240
1240
  } | {
1241
1241
  id: string;
1242
1242
  type: EntityType.GenericReference;
1243
- entityType: EntityType.Loop;
1243
+ entityType: EntityType.ReturnStatement;
1244
1244
  entityId: string;
1245
1245
  } | {
1246
1246
  id: string;
@@ -1323,7 +1323,7 @@ export declare function getGlobalEventSchema(): z.ZodObject<z.objectUtil.extendS
1323
1323
  calls: ({
1324
1324
  id: string;
1325
1325
  type: EntityType.GenericReference;
1326
- entityType: EntityType.ReturnStatement;
1326
+ entityType: EntityType.Loop;
1327
1327
  entityId: string;
1328
1328
  } | {
1329
1329
  id: string;
@@ -1363,7 +1363,7 @@ export declare function getGlobalEventSchema(): z.ZodObject<z.objectUtil.extendS
1363
1363
  } | {
1364
1364
  id: string;
1365
1365
  type: EntityType.GenericReference;
1366
- entityType: EntityType.Loop;
1366
+ entityType: EntityType.ReturnStatement;
1367
1367
  entityId: string;
1368
1368
  } | {
1369
1369
  id: string;
@@ -64,6 +64,7 @@ export declare class InputMapState implements IInputMap, ValueReadingEntityClass
64
64
  addInput(input: InputMapState): InputMapState;
65
65
  initChildren(): InputMapState;
66
66
  setValueWriter(valueWriter: ValueWritingEntityState): InputMapState;
67
+ removeValueWriter(): InputMapState;
67
68
  subscribe(): InputMapState;
68
69
  unsubscribe(): InputMapState;
69
70
  sync(data: Partial<IInputMap>): InputMapState;