@decaf-ts/integrations 0.10.5 → 0.11.0

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 (826) hide show
  1. package/README.md +77 -5
  2. package/dist/integrations.cjs +1 -1
  3. package/dist/integrations.cjs.map +1 -1
  4. package/dist/integrations.js +1 -1
  5. package/dist/integrations.js.map +1 -1
  6. package/docker/dragonfly-compose.yml +19 -0
  7. package/lib/cjs/blob/core/BlobStoreFactory.cjs +0 -4
  8. package/lib/cjs/blob/core/BlobStoreFactory.cjs.map +1 -1
  9. package/lib/cjs/feature-flags/EngineCapabilityFeatureFlag.service.cjs +214 -0
  10. package/lib/cjs/feature-flags/EngineCapabilityFeatureFlag.service.cjs.map +1 -0
  11. package/lib/cjs/feature-flags/index.cjs +1 -0
  12. package/lib/cjs/feature-flags/index.cjs.map +1 -1
  13. package/lib/cjs/index.cjs +3 -3
  14. package/lib/cjs/loader/ObjectLoader.cjs +95 -11
  15. package/lib/cjs/loader/ObjectLoader.cjs.map +1 -1
  16. package/lib/cjs/loader/assets.cjs +160 -0
  17. package/lib/cjs/loader/assets.cjs.map +1 -0
  18. package/lib/cjs/loader/config.cjs +241 -0
  19. package/lib/cjs/loader/config.cjs.map +1 -0
  20. package/lib/cjs/loader/families.cjs +27 -12
  21. package/lib/cjs/loader/families.cjs.map +1 -1
  22. package/lib/cjs/loader/index.cjs +3 -0
  23. package/lib/cjs/loader/index.cjs.map +1 -1
  24. package/lib/cjs/loader/nest.cjs +331 -0
  25. package/lib/cjs/loader/nest.cjs.map +1 -0
  26. package/lib/cjs/redis/RedisContextLock.cjs +185 -0
  27. package/lib/cjs/redis/RedisContextLock.cjs.map +1 -0
  28. package/lib/cjs/redis/RedisDispatch.cjs +132 -0
  29. package/lib/cjs/redis/RedisDispatch.cjs.map +1 -0
  30. package/lib/cjs/redis/RedisPaginator.cjs +95 -0
  31. package/lib/cjs/redis/RedisPaginator.cjs.map +1 -0
  32. package/lib/cjs/redis/RedisStatement.cjs +433 -0
  33. package/lib/cjs/redis/RedisStatement.cjs.map +1 -0
  34. package/lib/cjs/redis/adapter.cjs +709 -0
  35. package/lib/cjs/redis/adapter.cjs.map +1 -0
  36. package/lib/cjs/redis/constants.cjs +31 -0
  37. package/lib/cjs/redis/constants.cjs.map +1 -0
  38. package/lib/cjs/redis/handlers.cjs +27 -0
  39. package/lib/cjs/redis/handlers.cjs.map +1 -0
  40. package/lib/cjs/redis/index.cjs +36 -0
  41. package/lib/cjs/redis/index.cjs.map +1 -0
  42. package/lib/cjs/redis/serialization.cjs +63 -0
  43. package/lib/cjs/redis/serialization.cjs.map +1 -0
  44. package/lib/cjs/redis/types.cjs.map +1 -0
  45. package/lib/esm/blob/core/BlobStoreFactory.js +0 -4
  46. package/lib/esm/blob/core/BlobStoreFactory.js.map +1 -1
  47. package/lib/esm/feature-flags/EngineCapabilityFeatureFlag.service.js +203 -0
  48. package/lib/esm/feature-flags/EngineCapabilityFeatureFlag.service.js.map +1 -0
  49. package/lib/esm/feature-flags/index.js +1 -0
  50. package/lib/esm/feature-flags/index.js.map +1 -1
  51. package/lib/esm/index.js +3 -3
  52. package/lib/esm/loader/ObjectLoader.js +94 -11
  53. package/lib/esm/loader/ObjectLoader.js.map +1 -1
  54. package/lib/esm/loader/assets.js +155 -0
  55. package/lib/esm/loader/assets.js.map +1 -0
  56. package/lib/esm/loader/config.js +202 -0
  57. package/lib/esm/loader/config.js.map +1 -0
  58. package/lib/esm/loader/families.js +25 -10
  59. package/lib/esm/loader/families.js.map +1 -1
  60. package/lib/esm/loader/index.js +3 -0
  61. package/lib/esm/loader/index.js.map +1 -1
  62. package/lib/esm/loader/nest.js +292 -0
  63. package/lib/esm/loader/nest.js.map +1 -0
  64. package/lib/esm/redis/RedisContextLock.js +180 -0
  65. package/lib/esm/redis/RedisContextLock.js.map +1 -0
  66. package/lib/esm/redis/RedisDispatch.js +127 -0
  67. package/lib/esm/redis/RedisDispatch.js.map +1 -0
  68. package/lib/esm/redis/RedisPaginator.js +90 -0
  69. package/lib/esm/redis/RedisPaginator.js.map +1 -0
  70. package/lib/esm/redis/RedisStatement.js +428 -0
  71. package/lib/esm/redis/RedisStatement.js.map +1 -0
  72. package/lib/esm/redis/adapter.js +704 -0
  73. package/lib/esm/redis/adapter.js.map +1 -0
  74. package/lib/esm/redis/constants.js +27 -0
  75. package/lib/esm/redis/constants.js.map +1 -0
  76. package/lib/esm/redis/handlers.js +23 -0
  77. package/lib/esm/redis/handlers.js.map +1 -0
  78. package/lib/esm/redis/index.js +19 -0
  79. package/lib/esm/redis/index.js.map +1 -0
  80. package/lib/esm/redis/serialization.js +57 -0
  81. package/lib/esm/redis/serialization.js.map +1 -0
  82. package/lib/esm/{graph/engine → redis}/types.js.map +1 -1
  83. package/lib/types/blob/core/BlobTypes.d.cts +1 -14
  84. package/lib/types/blob/core/BlobTypes.d.mts +1 -14
  85. package/lib/types/feature-flags/EngineCapabilityFeatureFlag.service.d.cts +116 -0
  86. package/lib/types/feature-flags/EngineCapabilityFeatureFlag.service.d.mts +116 -0
  87. package/lib/types/feature-flags/index.d.cts +1 -0
  88. package/lib/types/feature-flags/index.d.mts +1 -0
  89. package/lib/types/index.d.cts +2 -2
  90. package/lib/types/index.d.mts +2 -2
  91. package/lib/types/loader/ObjectLoader.d.cts +46 -2
  92. package/lib/types/loader/ObjectLoader.d.mts +46 -2
  93. package/lib/types/loader/assets.d.cts +43 -0
  94. package/lib/types/loader/assets.d.mts +43 -0
  95. package/lib/types/loader/config.d.cts +84 -0
  96. package/lib/types/loader/config.d.mts +84 -0
  97. package/lib/types/loader/families.d.cts +19 -7
  98. package/lib/types/loader/families.d.mts +19 -7
  99. package/lib/types/loader/index.d.cts +3 -0
  100. package/lib/types/loader/index.d.mts +3 -0
  101. package/lib/types/loader/nest.d.cts +102 -0
  102. package/lib/types/loader/nest.d.mts +102 -0
  103. package/lib/types/loader/types.d.cts +27 -1
  104. package/lib/types/loader/types.d.mts +27 -1
  105. package/lib/types/redis/RedisContextLock.d.cts +106 -0
  106. package/lib/types/redis/RedisContextLock.d.mts +106 -0
  107. package/lib/types/redis/RedisDispatch.d.cts +56 -0
  108. package/lib/types/redis/RedisDispatch.d.mts +56 -0
  109. package/lib/types/redis/RedisPaginator.d.cts +58 -0
  110. package/lib/types/redis/RedisPaginator.d.mts +58 -0
  111. package/lib/types/redis/RedisStatement.d.cts +175 -0
  112. package/lib/types/redis/RedisStatement.d.mts +175 -0
  113. package/lib/types/redis/adapter.d.cts +288 -0
  114. package/lib/types/redis/adapter.d.mts +288 -0
  115. package/lib/types/redis/constants.d.cts +26 -0
  116. package/lib/types/redis/constants.d.mts +26 -0
  117. package/lib/types/redis/handlers.d.cts +20 -0
  118. package/lib/types/redis/handlers.d.mts +20 -0
  119. package/lib/types/redis/index.d.cts +17 -0
  120. package/lib/types/redis/index.d.mts +17 -0
  121. package/lib/types/redis/serialization.d.cts +35 -0
  122. package/lib/types/redis/serialization.d.mts +35 -0
  123. package/lib/types/redis/types.d.cts +72 -0
  124. package/lib/types/redis/types.d.mts +72 -0
  125. package/package.json +17 -33
  126. package/lib/cjs/blob/ipfs/IpfsBlobEnvironment.cjs +0 -30
  127. package/lib/cjs/blob/ipfs/IpfsBlobEnvironment.cjs.map +0 -1
  128. package/lib/cjs/blob/ipfs/IpfsBlobStoreService.cjs +0 -248
  129. package/lib/cjs/blob/ipfs/IpfsBlobStoreService.cjs.map +0 -1
  130. package/lib/cjs/blob/ipfs/IpfsKeyIndex.cjs +0 -27
  131. package/lib/cjs/blob/ipfs/IpfsKeyIndex.cjs.map +0 -1
  132. package/lib/cjs/blob/ipfs/LocalJsonIpfsKeyIndex.cjs +0 -35
  133. package/lib/cjs/blob/ipfs/LocalJsonIpfsKeyIndex.cjs.map +0 -1
  134. package/lib/cjs/blob/ipfs/MemoryIpfsKeyIndex.cjs +0 -45
  135. package/lib/cjs/blob/ipfs/MemoryIpfsKeyIndex.cjs.map +0 -1
  136. package/lib/cjs/blob/ipfs/PostgresIpfsKeyIndex.cjs +0 -35
  137. package/lib/cjs/blob/ipfs/PostgresIpfsKeyIndex.cjs.map +0 -1
  138. package/lib/cjs/blob/ipfs/index.cjs +0 -29
  139. package/lib/cjs/blob/ipfs/index.cjs.map +0 -1
  140. package/lib/cjs/graph/engine/catalog/GraphBuiltInRegistrations.cjs +0 -100
  141. package/lib/cjs/graph/engine/catalog/GraphBuiltInRegistrations.cjs.map +0 -1
  142. package/lib/cjs/graph/engine/catalog/GraphCatalogueErrors.cjs +0 -29
  143. package/lib/cjs/graph/engine/catalog/GraphCatalogueErrors.cjs.map +0 -1
  144. package/lib/cjs/graph/engine/catalog/GraphNodeCatalogue.cjs +0 -270
  145. package/lib/cjs/graph/engine/catalog/GraphNodeCatalogue.cjs.map +0 -1
  146. package/lib/cjs/graph/engine/catalog/GraphNodeManifestResolver.cjs +0 -169
  147. package/lib/cjs/graph/engine/catalog/GraphNodeManifestResolver.cjs.map +0 -1
  148. package/lib/cjs/graph/engine/catalog/GraphNodeMethodRegistry.cjs +0 -64
  149. package/lib/cjs/graph/engine/catalog/GraphNodeMethodRegistry.cjs.map +0 -1
  150. package/lib/cjs/graph/engine/catalog/GraphNodeRegistration.cjs +0 -17
  151. package/lib/cjs/graph/engine/catalog/GraphNodeRegistration.cjs.map +0 -1
  152. package/lib/cjs/graph/engine/catalog/index.cjs +0 -24
  153. package/lib/cjs/graph/engine/catalog/index.cjs.map +0 -1
  154. package/lib/cjs/graph/engine/constants.cjs +0 -58
  155. package/lib/cjs/graph/engine/constants.cjs.map +0 -1
  156. package/lib/cjs/graph/engine/decorators.cjs +0 -4
  157. package/lib/cjs/graph/engine/decorators.cjs.map +0 -1
  158. package/lib/cjs/graph/engine/errors/GraphBreakSignal.cjs +0 -37
  159. package/lib/cjs/graph/engine/errors/GraphBreakSignal.cjs.map +0 -1
  160. package/lib/cjs/graph/engine/errors/GraphCycleError.cjs +0 -20
  161. package/lib/cjs/graph/engine/errors/GraphCycleError.cjs.map +0 -1
  162. package/lib/cjs/graph/engine/errors/GraphExecutionError.cjs +0 -28
  163. package/lib/cjs/graph/engine/errors/GraphExecutionError.cjs.map +0 -1
  164. package/lib/cjs/graph/engine/errors/GraphInputError.cjs +0 -20
  165. package/lib/cjs/graph/engine/errors/GraphInputError.cjs.map +0 -1
  166. package/lib/cjs/graph/engine/errors/GraphLoopLimitError.cjs +0 -20
  167. package/lib/cjs/graph/engine/errors/GraphLoopLimitError.cjs.map +0 -1
  168. package/lib/cjs/graph/engine/errors/GraphPinningError.cjs +0 -20
  169. package/lib/cjs/graph/engine/errors/GraphPinningError.cjs.map +0 -1
  170. package/lib/cjs/graph/engine/errors/GraphPortError.cjs +0 -20
  171. package/lib/cjs/graph/engine/errors/GraphPortError.cjs.map +0 -1
  172. package/lib/cjs/graph/engine/errors/GraphRunCancelledError.cjs +0 -18
  173. package/lib/cjs/graph/engine/errors/GraphRunCancelledError.cjs.map +0 -1
  174. package/lib/cjs/graph/engine/errors/GraphStoreError.cjs +0 -20
  175. package/lib/cjs/graph/engine/errors/GraphStoreError.cjs.map +0 -1
  176. package/lib/cjs/graph/engine/errors/GraphTopologyError.cjs +0 -20
  177. package/lib/cjs/graph/engine/errors/GraphTopologyError.cjs.map +0 -1
  178. package/lib/cjs/graph/engine/errors/index.cjs +0 -33
  179. package/lib/cjs/graph/engine/errors/index.cjs.map +0 -1
  180. package/lib/cjs/graph/engine/events/GraphExecutionEventEmitter.cjs +0 -40
  181. package/lib/cjs/graph/engine/events/GraphExecutionEventEmitter.cjs.map +0 -1
  182. package/lib/cjs/graph/engine/events/GraphExecutionEventFactory.cjs +0 -37
  183. package/lib/cjs/graph/engine/events/GraphExecutionEventFactory.cjs.map +0 -1
  184. package/lib/cjs/graph/engine/events/GraphExecutionObserver.cjs +0 -4
  185. package/lib/cjs/graph/engine/events/GraphExecutionObserver.cjs.map +0 -1
  186. package/lib/cjs/graph/engine/events/index.cjs +0 -26
  187. package/lib/cjs/graph/engine/events/index.cjs.map +0 -1
  188. package/lib/cjs/graph/engine/execution/BreakGraphNodeExecutor.cjs +0 -24
  189. package/lib/cjs/graph/engine/execution/BreakGraphNodeExecutor.cjs.map +0 -1
  190. package/lib/cjs/graph/engine/execution/CodeGraphNodeExecutor.cjs +0 -103
  191. package/lib/cjs/graph/engine/execution/CodeGraphNodeExecutor.cjs.map +0 -1
  192. package/lib/cjs/graph/engine/execution/CodeSandboxEvaluator.cjs +0 -4
  193. package/lib/cjs/graph/engine/execution/CodeSandboxEvaluator.cjs.map +0 -1
  194. package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs +0 -112
  195. package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs.map +0 -1
  196. package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs +0 -789
  197. package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs.map +0 -1
  198. package/lib/cjs/graph/engine/execution/GraphExecutionFrame.cjs +0 -32
  199. package/lib/cjs/graph/engine/execution/GraphExecutionFrame.cjs.map +0 -1
  200. package/lib/cjs/graph/engine/execution/GraphExecutionResult.cjs +0 -30
  201. package/lib/cjs/graph/engine/execution/GraphExecutionResult.cjs.map +0 -1
  202. package/lib/cjs/graph/engine/execution/GraphNodeExecutor.cjs +0 -4
  203. package/lib/cjs/graph/engine/execution/GraphNodeExecutor.cjs.map +0 -1
  204. package/lib/cjs/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.cjs +0 -481
  205. package/lib/cjs/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.cjs.map +0 -1
  206. package/lib/cjs/graph/engine/execution/LogGraphNodeExecutor.cjs +0 -47
  207. package/lib/cjs/graph/engine/execution/LogGraphNodeExecutor.cjs.map +0 -1
  208. package/lib/cjs/graph/engine/execution/SwitchGraphNodeExecutor.cjs +0 -121
  209. package/lib/cjs/graph/engine/execution/SwitchGraphNodeExecutor.cjs.map +0 -1
  210. package/lib/cjs/graph/engine/execution/index.cjs +0 -34
  211. package/lib/cjs/graph/engine/execution/index.cjs.map +0 -1
  212. package/lib/cjs/graph/engine/index.cjs +0 -86
  213. package/lib/cjs/graph/engine/index.cjs.map +0 -1
  214. package/lib/cjs/graph/engine/loops/ConditionExpressionEvaluator.cjs +0 -87
  215. package/lib/cjs/graph/engine/loops/ConditionExpressionEvaluator.cjs.map +0 -1
  216. package/lib/cjs/graph/engine/loops/ForeachGraphNodeExecutor.cjs +0 -146
  217. package/lib/cjs/graph/engine/loops/ForeachGraphNodeExecutor.cjs.map +0 -1
  218. package/lib/cjs/graph/engine/loops/GraphConditionEvaluator.cjs +0 -85
  219. package/lib/cjs/graph/engine/loops/GraphConditionEvaluator.cjs.map +0 -1
  220. package/lib/cjs/graph/engine/loops/GraphLoopExecutionContext.cjs +0 -16
  221. package/lib/cjs/graph/engine/loops/GraphLoopExecutionContext.cjs.map +0 -1
  222. package/lib/cjs/graph/engine/loops/UntilGraphNodeExecutor.cjs +0 -102
  223. package/lib/cjs/graph/engine/loops/UntilGraphNodeExecutor.cjs.map +0 -1
  224. package/lib/cjs/graph/engine/loops/WhileGraphNodeExecutor.cjs +0 -103
  225. package/lib/cjs/graph/engine/loops/WhileGraphNodeExecutor.cjs.map +0 -1
  226. package/lib/cjs/graph/engine/loops/index.cjs +0 -29
  227. package/lib/cjs/graph/engine/loops/index.cjs.map +0 -1
  228. package/lib/cjs/graph/engine/pinning/GraphPinningDependencyResolver.cjs +0 -28
  229. package/lib/cjs/graph/engine/pinning/GraphPinningDependencyResolver.cjs.map +0 -1
  230. package/lib/cjs/graph/engine/pinning/GraphPinningMetadata.cjs +0 -20
  231. package/lib/cjs/graph/engine/pinning/GraphPinningMetadata.cjs.map +0 -1
  232. package/lib/cjs/graph/engine/pinning/GraphPinningPolicy.cjs +0 -34
  233. package/lib/cjs/graph/engine/pinning/GraphPinningPolicy.cjs.map +0 -1
  234. package/lib/cjs/graph/engine/pinning/GraphPinningService.cjs +0 -220
  235. package/lib/cjs/graph/engine/pinning/GraphPinningService.cjs.map +0 -1
  236. package/lib/cjs/graph/engine/pinning/index.cjs +0 -27
  237. package/lib/cjs/graph/engine/pinning/index.cjs.map +0 -1
  238. package/lib/cjs/graph/engine/planning/GraphExecutionPlan.cjs +0 -4
  239. package/lib/cjs/graph/engine/planning/GraphExecutionPlan.cjs.map +0 -1
  240. package/lib/cjs/graph/engine/planning/GraphExecutionPlanEdge.cjs +0 -4
  241. package/lib/cjs/graph/engine/planning/GraphExecutionPlanEdge.cjs.map +0 -1
  242. package/lib/cjs/graph/engine/planning/GraphExecutionPlanLayer.cjs +0 -4
  243. package/lib/cjs/graph/engine/planning/GraphExecutionPlanLayer.cjs.map +0 -1
  244. package/lib/cjs/graph/engine/planning/GraphExecutionPlanNode.cjs +0 -4
  245. package/lib/cjs/graph/engine/planning/GraphExecutionPlanNode.cjs.map +0 -1
  246. package/lib/cjs/graph/engine/planning/GraphExecutionPlanner.cjs +0 -188
  247. package/lib/cjs/graph/engine/planning/GraphExecutionPlanner.cjs.map +0 -1
  248. package/lib/cjs/graph/engine/planning/GraphTopology.cjs +0 -57
  249. package/lib/cjs/graph/engine/planning/GraphTopology.cjs.map +0 -1
  250. package/lib/cjs/graph/engine/planning/index.cjs +0 -29
  251. package/lib/cjs/graph/engine/planning/index.cjs.map +0 -1
  252. package/lib/cjs/graph/engine/registry/GraphNodeExecutorRegistry.cjs +0 -57
  253. package/lib/cjs/graph/engine/registry/GraphNodeExecutorRegistry.cjs.map +0 -1
  254. package/lib/cjs/graph/engine/registry/GraphNodeExecutorResolver.cjs +0 -27
  255. package/lib/cjs/graph/engine/registry/GraphNodeExecutorResolver.cjs.map +0 -1
  256. package/lib/cjs/graph/engine/registry/index.cjs +0 -25
  257. package/lib/cjs/graph/engine/registry/index.cjs.map +0 -1
  258. package/lib/cjs/graph/engine/runs/GraphRunEventPublisher.cjs +0 -69
  259. package/lib/cjs/graph/engine/runs/GraphRunEventPublisher.cjs.map +0 -1
  260. package/lib/cjs/graph/engine/runs/GraphRunExecutor.cjs +0 -291
  261. package/lib/cjs/graph/engine/runs/GraphRunExecutor.cjs.map +0 -1
  262. package/lib/cjs/graph/engine/runs/GraphRunFingerprint.cjs +0 -29
  263. package/lib/cjs/graph/engine/runs/GraphRunFingerprint.cjs.map +0 -1
  264. package/lib/cjs/graph/engine/runs/GraphRunService.cjs +0 -259
  265. package/lib/cjs/graph/engine/runs/GraphRunService.cjs.map +0 -1
  266. package/lib/cjs/graph/engine/runs/InMemoryGraphRunEventStore.cjs +0 -69
  267. package/lib/cjs/graph/engine/runs/InMemoryGraphRunEventStore.cjs.map +0 -1
  268. package/lib/cjs/graph/engine/runs/InMemoryGraphRunStore.cjs +0 -26
  269. package/lib/cjs/graph/engine/runs/InMemoryGraphRunStore.cjs.map +0 -1
  270. package/lib/cjs/graph/engine/runs/index.cjs +0 -26
  271. package/lib/cjs/graph/engine/runs/index.cjs.map +0 -1
  272. package/lib/cjs/graph/engine/runs/ownership.cjs +0 -34
  273. package/lib/cjs/graph/engine/runs/ownership.cjs.map +0 -1
  274. package/lib/cjs/graph/engine/runs/types.cjs.map +0 -1
  275. package/lib/cjs/graph/engine/snapshots/GraphExecutionSnapshotMapper.cjs +0 -53
  276. package/lib/cjs/graph/engine/snapshots/GraphExecutionSnapshotMapper.cjs.map +0 -1
  277. package/lib/cjs/graph/engine/snapshots/index.cjs +0 -24
  278. package/lib/cjs/graph/engine/snapshots/index.cjs.map +0 -1
  279. package/lib/cjs/graph/engine/store/GraphCachedValue.cjs +0 -4
  280. package/lib/cjs/graph/engine/store/GraphCachedValue.cjs.map +0 -1
  281. package/lib/cjs/graph/engine/store/GraphValueKey.cjs +0 -4
  282. package/lib/cjs/graph/engine/store/GraphValueKey.cjs.map +0 -1
  283. package/lib/cjs/graph/engine/store/GraphValueStore.cjs +0 -76
  284. package/lib/cjs/graph/engine/store/GraphValueStore.cjs.map +0 -1
  285. package/lib/cjs/graph/engine/store/GraphValueStoreAdapter.cjs +0 -4
  286. package/lib/cjs/graph/engine/store/GraphValueStoreAdapter.cjs.map +0 -1
  287. package/lib/cjs/graph/engine/store/InMemoryGraphValueStoreAdapter.cjs +0 -69
  288. package/lib/cjs/graph/engine/store/InMemoryGraphValueStoreAdapter.cjs.map +0 -1
  289. package/lib/cjs/graph/engine/store/index.cjs +0 -28
  290. package/lib/cjs/graph/engine/store/index.cjs.map +0 -1
  291. package/lib/cjs/graph/engine/types.cjs +0 -4
  292. package/lib/cjs/graph/engine/types.cjs.map +0 -1
  293. package/lib/cjs/graph/engine/validation/GraphConnectionPolicyValidator.cjs +0 -142
  294. package/lib/cjs/graph/engine/validation/GraphConnectionPolicyValidator.cjs.map +0 -1
  295. package/lib/cjs/graph/engine/validation/GraphCredentialReferenceValidator.cjs +0 -160
  296. package/lib/cjs/graph/engine/validation/GraphCredentialReferenceValidator.cjs.map +0 -1
  297. package/lib/cjs/graph/engine/validation/GraphDefinitionValidator.cjs +0 -29
  298. package/lib/cjs/graph/engine/validation/GraphDefinitionValidator.cjs.map +0 -1
  299. package/lib/cjs/graph/engine/validation/GraphEdgeInstanceValidator.cjs +0 -166
  300. package/lib/cjs/graph/engine/validation/GraphEdgeInstanceValidator.cjs.map +0 -1
  301. package/lib/cjs/graph/engine/validation/GraphNodeInstanceValidator.cjs +0 -86
  302. package/lib/cjs/graph/engine/validation/GraphNodeInstanceValidator.cjs.map +0 -1
  303. package/lib/cjs/graph/engine/validation/GraphParameterValidator.cjs +0 -423
  304. package/lib/cjs/graph/engine/validation/GraphParameterValidator.cjs.map +0 -1
  305. package/lib/cjs/graph/engine/validation/GraphPortSchemaResolver.cjs +0 -58
  306. package/lib/cjs/graph/engine/validation/GraphPortSchemaResolver.cjs.map +0 -1
  307. package/lib/cjs/graph/engine/validation/GraphResolvedWorkflow.cjs +0 -4
  308. package/lib/cjs/graph/engine/validation/GraphResolvedWorkflow.cjs.map +0 -1
  309. package/lib/cjs/graph/engine/validation/GraphValidationErrors.cjs +0 -50
  310. package/lib/cjs/graph/engine/validation/GraphValidationErrors.cjs.map +0 -1
  311. package/lib/cjs/graph/engine/validation/GraphValidationIssue.cjs +0 -4
  312. package/lib/cjs/graph/engine/validation/GraphValidationIssue.cjs.map +0 -1
  313. package/lib/cjs/graph/engine/validation/GraphValueValidator.cjs +0 -52
  314. package/lib/cjs/graph/engine/validation/GraphValueValidator.cjs.map +0 -1
  315. package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs +0 -478
  316. package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs.map +0 -1
  317. package/lib/cjs/graph/engine/validation/index.cjs +0 -37
  318. package/lib/cjs/graph/engine/validation/index.cjs.map +0 -1
  319. package/lib/cjs/graph/index.cjs +0 -30
  320. package/lib/cjs/graph/index.cjs.map +0 -1
  321. package/lib/cjs/graph/log/GraphRunLogger.cjs +0 -145
  322. package/lib/cjs/graph/log/GraphRunLogger.cjs.map +0 -1
  323. package/lib/cjs/graph/log/LogParameters.cjs +0 -73
  324. package/lib/cjs/graph/log/LogParameters.cjs.map +0 -1
  325. package/lib/cjs/nest/graph/GraphExecutionController.cjs +0 -266
  326. package/lib/cjs/nest/graph/GraphExecutionController.cjs.map +0 -1
  327. package/lib/cjs/nest/graph/GraphExecutionModule.cjs +0 -178
  328. package/lib/cjs/nest/graph/GraphExecutionModule.cjs.map +0 -1
  329. package/lib/cjs/nest/graph/GraphExecutionResultModel.cjs +0 -75
  330. package/lib/cjs/nest/graph/GraphExecutionResultModel.cjs.map +0 -1
  331. package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs +0 -102
  332. package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs.map +0 -1
  333. package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs +0 -270
  334. package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs.map +0 -1
  335. package/lib/cjs/nest/graph/GraphResultService.cjs +0 -69
  336. package/lib/cjs/nest/graph/GraphResultService.cjs.map +0 -1
  337. package/lib/cjs/nest/graph/GraphRunController.cjs +0 -279
  338. package/lib/cjs/nest/graph/GraphRunController.cjs.map +0 -1
  339. package/lib/cjs/nest/graph/GraphRunModel.cjs +0 -83
  340. package/lib/cjs/nest/graph/GraphRunModel.cjs.map +0 -1
  341. package/lib/cjs/nest/graph/GraphRunModelService.cjs +0 -121
  342. package/lib/cjs/nest/graph/GraphRunModelService.cjs.map +0 -1
  343. package/lib/cjs/nest/graph/GraphWorkflowBoundaryValidation.cjs +0 -169
  344. package/lib/cjs/nest/graph/GraphWorkflowBoundaryValidation.cjs.map +0 -1
  345. package/lib/cjs/nest/graph/GraphWorkflowController.cjs +0 -162
  346. package/lib/cjs/nest/graph/GraphWorkflowController.cjs.map +0 -1
  347. package/lib/cjs/nest/graph/GraphWorkflowDocumentLimits.cjs +0 -12
  348. package/lib/cjs/nest/graph/GraphWorkflowDocumentLimits.cjs.map +0 -1
  349. package/lib/cjs/nest/graph/GraphWorkflowErrors.cjs +0 -23
  350. package/lib/cjs/nest/graph/GraphWorkflowErrors.cjs.map +0 -1
  351. package/lib/cjs/nest/graph/GraphWorkflowModel.cjs +0 -66
  352. package/lib/cjs/nest/graph/GraphWorkflowModel.cjs.map +0 -1
  353. package/lib/cjs/nest/graph/GraphWorkflowService.cjs +0 -265
  354. package/lib/cjs/nest/graph/GraphWorkflowService.cjs.map +0 -1
  355. package/lib/cjs/nest/graph/index.cjs +0 -33
  356. package/lib/cjs/nest/graph/index.cjs.map +0 -1
  357. package/lib/cjs/nest/graph/main.cjs +0 -47
  358. package/lib/cjs/nest/graph/main.cjs.map +0 -1
  359. package/lib/esm/blob/ipfs/IpfsBlobEnvironment.js +0 -26
  360. package/lib/esm/blob/ipfs/IpfsBlobEnvironment.js.map +0 -1
  361. package/lib/esm/blob/ipfs/IpfsBlobStoreService.js +0 -240
  362. package/lib/esm/blob/ipfs/IpfsBlobStoreService.js.map +0 -1
  363. package/lib/esm/blob/ipfs/IpfsKeyIndex.js +0 -23
  364. package/lib/esm/blob/ipfs/IpfsKeyIndex.js.map +0 -1
  365. package/lib/esm/blob/ipfs/LocalJsonIpfsKeyIndex.js +0 -30
  366. package/lib/esm/blob/ipfs/LocalJsonIpfsKeyIndex.js.map +0 -1
  367. package/lib/esm/blob/ipfs/MemoryIpfsKeyIndex.js +0 -40
  368. package/lib/esm/blob/ipfs/MemoryIpfsKeyIndex.js.map +0 -1
  369. package/lib/esm/blob/ipfs/PostgresIpfsKeyIndex.js +0 -30
  370. package/lib/esm/blob/ipfs/PostgresIpfsKeyIndex.js.map +0 -1
  371. package/lib/esm/blob/ipfs/index.js +0 -12
  372. package/lib/esm/blob/ipfs/index.js.map +0 -1
  373. package/lib/esm/graph/engine/catalog/GraphBuiltInRegistrations.js +0 -95
  374. package/lib/esm/graph/engine/catalog/GraphBuiltInRegistrations.js.map +0 -1
  375. package/lib/esm/graph/engine/catalog/GraphCatalogueErrors.js +0 -22
  376. package/lib/esm/graph/engine/catalog/GraphCatalogueErrors.js.map +0 -1
  377. package/lib/esm/graph/engine/catalog/GraphNodeCatalogue.js +0 -265
  378. package/lib/esm/graph/engine/catalog/GraphNodeCatalogue.js.map +0 -1
  379. package/lib/esm/graph/engine/catalog/GraphNodeManifestResolver.js +0 -162
  380. package/lib/esm/graph/engine/catalog/GraphNodeManifestResolver.js.map +0 -1
  381. package/lib/esm/graph/engine/catalog/GraphNodeMethodRegistry.js +0 -59
  382. package/lib/esm/graph/engine/catalog/GraphNodeMethodRegistry.js.map +0 -1
  383. package/lib/esm/graph/engine/catalog/GraphNodeRegistration.js +0 -12
  384. package/lib/esm/graph/engine/catalog/GraphNodeRegistration.js.map +0 -1
  385. package/lib/esm/graph/engine/catalog/index.js +0 -7
  386. package/lib/esm/graph/engine/catalog/index.js.map +0 -1
  387. package/lib/esm/graph/engine/constants.js +0 -62
  388. package/lib/esm/graph/engine/constants.js.map +0 -1
  389. package/lib/esm/graph/engine/decorators.js +0 -2
  390. package/lib/esm/graph/engine/decorators.js.map +0 -1
  391. package/lib/esm/graph/engine/errors/GraphBreakSignal.js +0 -32
  392. package/lib/esm/graph/engine/errors/GraphBreakSignal.js.map +0 -1
  393. package/lib/esm/graph/engine/errors/GraphCycleError.js +0 -15
  394. package/lib/esm/graph/engine/errors/GraphCycleError.js.map +0 -1
  395. package/lib/esm/graph/engine/errors/GraphExecutionError.js +0 -23
  396. package/lib/esm/graph/engine/errors/GraphExecutionError.js.map +0 -1
  397. package/lib/esm/graph/engine/errors/GraphInputError.js +0 -15
  398. package/lib/esm/graph/engine/errors/GraphInputError.js.map +0 -1
  399. package/lib/esm/graph/engine/errors/GraphLoopLimitError.js +0 -15
  400. package/lib/esm/graph/engine/errors/GraphLoopLimitError.js.map +0 -1
  401. package/lib/esm/graph/engine/errors/GraphPinningError.js +0 -15
  402. package/lib/esm/graph/engine/errors/GraphPinningError.js.map +0 -1
  403. package/lib/esm/graph/engine/errors/GraphPortError.js +0 -15
  404. package/lib/esm/graph/engine/errors/GraphPortError.js.map +0 -1
  405. package/lib/esm/graph/engine/errors/GraphRunCancelledError.js +0 -13
  406. package/lib/esm/graph/engine/errors/GraphRunCancelledError.js.map +0 -1
  407. package/lib/esm/graph/engine/errors/GraphStoreError.js +0 -15
  408. package/lib/esm/graph/engine/errors/GraphStoreError.js.map +0 -1
  409. package/lib/esm/graph/engine/errors/GraphTopologyError.js +0 -15
  410. package/lib/esm/graph/engine/errors/GraphTopologyError.js.map +0 -1
  411. package/lib/esm/graph/engine/errors/index.js +0 -16
  412. package/lib/esm/graph/engine/errors/index.js.map +0 -1
  413. package/lib/esm/graph/engine/events/GraphExecutionEventEmitter.js +0 -35
  414. package/lib/esm/graph/engine/events/GraphExecutionEventEmitter.js.map +0 -1
  415. package/lib/esm/graph/engine/events/GraphExecutionEventFactory.js +0 -32
  416. package/lib/esm/graph/engine/events/GraphExecutionEventFactory.js.map +0 -1
  417. package/lib/esm/graph/engine/events/GraphExecutionObserver.js +0 -2
  418. package/lib/esm/graph/engine/events/GraphExecutionObserver.js.map +0 -1
  419. package/lib/esm/graph/engine/events/index.js +0 -9
  420. package/lib/esm/graph/engine/events/index.js.map +0 -1
  421. package/lib/esm/graph/engine/execution/BreakGraphNodeExecutor.js +0 -19
  422. package/lib/esm/graph/engine/execution/BreakGraphNodeExecutor.js.map +0 -1
  423. package/lib/esm/graph/engine/execution/CodeGraphNodeExecutor.js +0 -98
  424. package/lib/esm/graph/engine/execution/CodeGraphNodeExecutor.js.map +0 -1
  425. package/lib/esm/graph/engine/execution/CodeSandboxEvaluator.js +0 -18
  426. package/lib/esm/graph/engine/execution/CodeSandboxEvaluator.js.map +0 -1
  427. package/lib/esm/graph/engine/execution/GraphExecutionContext.js +0 -107
  428. package/lib/esm/graph/engine/execution/GraphExecutionContext.js.map +0 -1
  429. package/lib/esm/graph/engine/execution/GraphExecutionEngine.js +0 -784
  430. package/lib/esm/graph/engine/execution/GraphExecutionEngine.js.map +0 -1
  431. package/lib/esm/graph/engine/execution/GraphExecutionFrame.js +0 -27
  432. package/lib/esm/graph/engine/execution/GraphExecutionFrame.js.map +0 -1
  433. package/lib/esm/graph/engine/execution/GraphExecutionResult.js +0 -26
  434. package/lib/esm/graph/engine/execution/GraphExecutionResult.js.map +0 -1
  435. package/lib/esm/graph/engine/execution/GraphNodeExecutor.js +0 -2
  436. package/lib/esm/graph/engine/execution/GraphNodeExecutor.js.map +0 -1
  437. package/lib/esm/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.js +0 -440
  438. package/lib/esm/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.js.map +0 -1
  439. package/lib/esm/graph/engine/execution/LogGraphNodeExecutor.js +0 -42
  440. package/lib/esm/graph/engine/execution/LogGraphNodeExecutor.js.map +0 -1
  441. package/lib/esm/graph/engine/execution/SwitchGraphNodeExecutor.js +0 -116
  442. package/lib/esm/graph/engine/execution/SwitchGraphNodeExecutor.js.map +0 -1
  443. package/lib/esm/graph/engine/execution/index.js +0 -17
  444. package/lib/esm/graph/engine/execution/index.js.map +0 -1
  445. package/lib/esm/graph/engine/index.js +0 -69
  446. package/lib/esm/graph/engine/index.js.map +0 -1
  447. package/lib/esm/graph/engine/loops/ConditionExpressionEvaluator.js +0 -82
  448. package/lib/esm/graph/engine/loops/ConditionExpressionEvaluator.js.map +0 -1
  449. package/lib/esm/graph/engine/loops/ForeachGraphNodeExecutor.js +0 -141
  450. package/lib/esm/graph/engine/loops/ForeachGraphNodeExecutor.js.map +0 -1
  451. package/lib/esm/graph/engine/loops/GraphConditionEvaluator.js +0 -80
  452. package/lib/esm/graph/engine/loops/GraphConditionEvaluator.js.map +0 -1
  453. package/lib/esm/graph/engine/loops/GraphLoopExecutionContext.js +0 -11
  454. package/lib/esm/graph/engine/loops/GraphLoopExecutionContext.js.map +0 -1
  455. package/lib/esm/graph/engine/loops/UntilGraphNodeExecutor.js +0 -97
  456. package/lib/esm/graph/engine/loops/UntilGraphNodeExecutor.js.map +0 -1
  457. package/lib/esm/graph/engine/loops/WhileGraphNodeExecutor.js +0 -98
  458. package/lib/esm/graph/engine/loops/WhileGraphNodeExecutor.js.map +0 -1
  459. package/lib/esm/graph/engine/loops/index.js +0 -12
  460. package/lib/esm/graph/engine/loops/index.js.map +0 -1
  461. package/lib/esm/graph/engine/pinning/GraphPinningDependencyResolver.js +0 -23
  462. package/lib/esm/graph/engine/pinning/GraphPinningDependencyResolver.js.map +0 -1
  463. package/lib/esm/graph/engine/pinning/GraphPinningMetadata.js +0 -15
  464. package/lib/esm/graph/engine/pinning/GraphPinningMetadata.js.map +0 -1
  465. package/lib/esm/graph/engine/pinning/GraphPinningPolicy.js +0 -29
  466. package/lib/esm/graph/engine/pinning/GraphPinningPolicy.js.map +0 -1
  467. package/lib/esm/graph/engine/pinning/GraphPinningService.js +0 -215
  468. package/lib/esm/graph/engine/pinning/GraphPinningService.js.map +0 -1
  469. package/lib/esm/graph/engine/pinning/index.js +0 -10
  470. package/lib/esm/graph/engine/pinning/index.js.map +0 -1
  471. package/lib/esm/graph/engine/planning/GraphExecutionPlan.js +0 -2
  472. package/lib/esm/graph/engine/planning/GraphExecutionPlan.js.map +0 -1
  473. package/lib/esm/graph/engine/planning/GraphExecutionPlanEdge.js +0 -9
  474. package/lib/esm/graph/engine/planning/GraphExecutionPlanEdge.js.map +0 -1
  475. package/lib/esm/graph/engine/planning/GraphExecutionPlanLayer.js +0 -2
  476. package/lib/esm/graph/engine/planning/GraphExecutionPlanLayer.js.map +0 -1
  477. package/lib/esm/graph/engine/planning/GraphExecutionPlanNode.js +0 -2
  478. package/lib/esm/graph/engine/planning/GraphExecutionPlanNode.js.map +0 -1
  479. package/lib/esm/graph/engine/planning/GraphExecutionPlanner.js +0 -183
  480. package/lib/esm/graph/engine/planning/GraphExecutionPlanner.js.map +0 -1
  481. package/lib/esm/graph/engine/planning/GraphTopology.js +0 -52
  482. package/lib/esm/graph/engine/planning/GraphTopology.js.map +0 -1
  483. package/lib/esm/graph/engine/planning/index.js +0 -12
  484. package/lib/esm/graph/engine/planning/index.js.map +0 -1
  485. package/lib/esm/graph/engine/registry/GraphNodeExecutorRegistry.js +0 -52
  486. package/lib/esm/graph/engine/registry/GraphNodeExecutorRegistry.js.map +0 -1
  487. package/lib/esm/graph/engine/registry/GraphNodeExecutorResolver.js +0 -22
  488. package/lib/esm/graph/engine/registry/GraphNodeExecutorResolver.js.map +0 -1
  489. package/lib/esm/graph/engine/registry/index.js +0 -8
  490. package/lib/esm/graph/engine/registry/index.js.map +0 -1
  491. package/lib/esm/graph/engine/runs/GraphRunEventPublisher.js +0 -64
  492. package/lib/esm/graph/engine/runs/GraphRunEventPublisher.js.map +0 -1
  493. package/lib/esm/graph/engine/runs/GraphRunExecutor.js +0 -286
  494. package/lib/esm/graph/engine/runs/GraphRunExecutor.js.map +0 -1
  495. package/lib/esm/graph/engine/runs/GraphRunFingerprint.js +0 -25
  496. package/lib/esm/graph/engine/runs/GraphRunFingerprint.js.map +0 -1
  497. package/lib/esm/graph/engine/runs/GraphRunService.js +0 -254
  498. package/lib/esm/graph/engine/runs/GraphRunService.js.map +0 -1
  499. package/lib/esm/graph/engine/runs/InMemoryGraphRunEventStore.js +0 -64
  500. package/lib/esm/graph/engine/runs/InMemoryGraphRunEventStore.js.map +0 -1
  501. package/lib/esm/graph/engine/runs/InMemoryGraphRunStore.js +0 -21
  502. package/lib/esm/graph/engine/runs/InMemoryGraphRunStore.js.map +0 -1
  503. package/lib/esm/graph/engine/runs/index.js +0 -9
  504. package/lib/esm/graph/engine/runs/index.js.map +0 -1
  505. package/lib/esm/graph/engine/runs/ownership.js +0 -30
  506. package/lib/esm/graph/engine/runs/ownership.js.map +0 -1
  507. package/lib/esm/graph/engine/runs/types.js.map +0 -1
  508. package/lib/esm/graph/engine/snapshots/GraphExecutionSnapshotMapper.js +0 -48
  509. package/lib/esm/graph/engine/snapshots/GraphExecutionSnapshotMapper.js.map +0 -1
  510. package/lib/esm/graph/engine/snapshots/index.js +0 -7
  511. package/lib/esm/graph/engine/snapshots/index.js.map +0 -1
  512. package/lib/esm/graph/engine/store/GraphCachedValue.js +0 -2
  513. package/lib/esm/graph/engine/store/GraphCachedValue.js.map +0 -1
  514. package/lib/esm/graph/engine/store/GraphValueKey.js +0 -7
  515. package/lib/esm/graph/engine/store/GraphValueKey.js.map +0 -1
  516. package/lib/esm/graph/engine/store/GraphValueStore.js +0 -71
  517. package/lib/esm/graph/engine/store/GraphValueStore.js.map +0 -1
  518. package/lib/esm/graph/engine/store/GraphValueStoreAdapter.js +0 -2
  519. package/lib/esm/graph/engine/store/GraphValueStoreAdapter.js.map +0 -1
  520. package/lib/esm/graph/engine/store/InMemoryGraphValueStoreAdapter.js +0 -64
  521. package/lib/esm/graph/engine/store/InMemoryGraphValueStoreAdapter.js.map +0 -1
  522. package/lib/esm/graph/engine/store/index.js +0 -11
  523. package/lib/esm/graph/engine/store/index.js.map +0 -1
  524. package/lib/esm/graph/engine/types.js +0 -2
  525. package/lib/esm/graph/engine/validation/GraphConnectionPolicyValidator.js +0 -137
  526. package/lib/esm/graph/engine/validation/GraphConnectionPolicyValidator.js.map +0 -1
  527. package/lib/esm/graph/engine/validation/GraphCredentialReferenceValidator.js +0 -155
  528. package/lib/esm/graph/engine/validation/GraphCredentialReferenceValidator.js.map +0 -1
  529. package/lib/esm/graph/engine/validation/GraphDefinitionValidator.js +0 -24
  530. package/lib/esm/graph/engine/validation/GraphDefinitionValidator.js.map +0 -1
  531. package/lib/esm/graph/engine/validation/GraphEdgeInstanceValidator.js +0 -161
  532. package/lib/esm/graph/engine/validation/GraphEdgeInstanceValidator.js.map +0 -1
  533. package/lib/esm/graph/engine/validation/GraphNodeInstanceValidator.js +0 -81
  534. package/lib/esm/graph/engine/validation/GraphNodeInstanceValidator.js.map +0 -1
  535. package/lib/esm/graph/engine/validation/GraphParameterValidator.js +0 -416
  536. package/lib/esm/graph/engine/validation/GraphParameterValidator.js.map +0 -1
  537. package/lib/esm/graph/engine/validation/GraphPortSchemaResolver.js +0 -53
  538. package/lib/esm/graph/engine/validation/GraphPortSchemaResolver.js.map +0 -1
  539. package/lib/esm/graph/engine/validation/GraphResolvedWorkflow.js +0 -2
  540. package/lib/esm/graph/engine/validation/GraphResolvedWorkflow.js.map +0 -1
  541. package/lib/esm/graph/engine/validation/GraphValidationErrors.js +0 -43
  542. package/lib/esm/graph/engine/validation/GraphValidationErrors.js.map +0 -1
  543. package/lib/esm/graph/engine/validation/GraphValidationIssue.js +0 -2
  544. package/lib/esm/graph/engine/validation/GraphValidationIssue.js.map +0 -1
  545. package/lib/esm/graph/engine/validation/GraphValueValidator.js +0 -47
  546. package/lib/esm/graph/engine/validation/GraphValueValidator.js.map +0 -1
  547. package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js +0 -472
  548. package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js.map +0 -1
  549. package/lib/esm/graph/engine/validation/index.js +0 -20
  550. package/lib/esm/graph/engine/validation/index.js.map +0 -1
  551. package/lib/esm/graph/index.js +0 -13
  552. package/lib/esm/graph/index.js.map +0 -1
  553. package/lib/esm/graph/log/GraphRunLogger.js +0 -140
  554. package/lib/esm/graph/log/GraphRunLogger.js.map +0 -1
  555. package/lib/esm/graph/log/LogParameters.js +0 -69
  556. package/lib/esm/graph/log/LogParameters.js.map +0 -1
  557. package/lib/esm/nest/graph/GraphExecutionController.js +0 -257
  558. package/lib/esm/nest/graph/GraphExecutionController.js.map +0 -1
  559. package/lib/esm/nest/graph/GraphExecutionModule.js +0 -137
  560. package/lib/esm/nest/graph/GraphExecutionModule.js.map +0 -1
  561. package/lib/esm/nest/graph/GraphExecutionResultModel.js +0 -66
  562. package/lib/esm/nest/graph/GraphExecutionResultModel.js.map +0 -1
  563. package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js +0 -95
  564. package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js.map +0 -1
  565. package/lib/esm/nest/graph/GraphNodeCatalogueController.js +0 -261
  566. package/lib/esm/nest/graph/GraphNodeCatalogueController.js.map +0 -1
  567. package/lib/esm/nest/graph/GraphResultService.js +0 -60
  568. package/lib/esm/nest/graph/GraphResultService.js.map +0 -1
  569. package/lib/esm/nest/graph/GraphRunController.js +0 -270
  570. package/lib/esm/nest/graph/GraphRunController.js.map +0 -1
  571. package/lib/esm/nest/graph/GraphRunModel.js +0 -74
  572. package/lib/esm/nest/graph/GraphRunModel.js.map +0 -1
  573. package/lib/esm/nest/graph/GraphRunModelService.js +0 -112
  574. package/lib/esm/nest/graph/GraphRunModelService.js.map +0 -1
  575. package/lib/esm/nest/graph/GraphWorkflowBoundaryValidation.js +0 -164
  576. package/lib/esm/nest/graph/GraphWorkflowBoundaryValidation.js.map +0 -1
  577. package/lib/esm/nest/graph/GraphWorkflowController.js +0 -153
  578. package/lib/esm/nest/graph/GraphWorkflowController.js.map +0 -1
  579. package/lib/esm/nest/graph/GraphWorkflowDocumentLimits.js +0 -8
  580. package/lib/esm/nest/graph/GraphWorkflowDocumentLimits.js.map +0 -1
  581. package/lib/esm/nest/graph/GraphWorkflowErrors.js +0 -18
  582. package/lib/esm/nest/graph/GraphWorkflowErrors.js.map +0 -1
  583. package/lib/esm/nest/graph/GraphWorkflowModel.js +0 -57
  584. package/lib/esm/nest/graph/GraphWorkflowModel.js.map +0 -1
  585. package/lib/esm/nest/graph/GraphWorkflowService.js +0 -255
  586. package/lib/esm/nest/graph/GraphWorkflowService.js.map +0 -1
  587. package/lib/esm/nest/graph/index.js +0 -16
  588. package/lib/esm/nest/graph/index.js.map +0 -1
  589. package/lib/esm/nest/graph/main.js +0 -44
  590. package/lib/esm/nest/graph/main.js.map +0 -1
  591. package/lib/types/blob/ipfs/IpfsBlobEnvironment.d.cts +0 -24
  592. package/lib/types/blob/ipfs/IpfsBlobEnvironment.d.mts +0 -24
  593. package/lib/types/blob/ipfs/IpfsBlobStoreService.d.cts +0 -61
  594. package/lib/types/blob/ipfs/IpfsBlobStoreService.d.mts +0 -61
  595. package/lib/types/blob/ipfs/IpfsKeyIndex.d.cts +0 -9
  596. package/lib/types/blob/ipfs/IpfsKeyIndex.d.mts +0 -9
  597. package/lib/types/blob/ipfs/LocalJsonIpfsKeyIndex.d.cts +0 -11
  598. package/lib/types/blob/ipfs/LocalJsonIpfsKeyIndex.d.mts +0 -11
  599. package/lib/types/blob/ipfs/MemoryIpfsKeyIndex.d.cts +0 -15
  600. package/lib/types/blob/ipfs/MemoryIpfsKeyIndex.d.mts +0 -15
  601. package/lib/types/blob/ipfs/PostgresIpfsKeyIndex.d.cts +0 -11
  602. package/lib/types/blob/ipfs/PostgresIpfsKeyIndex.d.mts +0 -11
  603. package/lib/types/blob/ipfs/index.d.cts +0 -11
  604. package/lib/types/blob/ipfs/index.d.mts +0 -11
  605. package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.cts +0 -17
  606. package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.mts +0 -17
  607. package/lib/types/graph/engine/catalog/GraphCatalogueErrors.d.cts +0 -13
  608. package/lib/types/graph/engine/catalog/GraphCatalogueErrors.d.mts +0 -13
  609. package/lib/types/graph/engine/catalog/GraphNodeCatalogue.d.cts +0 -71
  610. package/lib/types/graph/engine/catalog/GraphNodeCatalogue.d.mts +0 -71
  611. package/lib/types/graph/engine/catalog/GraphNodeManifestResolver.d.cts +0 -42
  612. package/lib/types/graph/engine/catalog/GraphNodeManifestResolver.d.mts +0 -42
  613. package/lib/types/graph/engine/catalog/GraphNodeMethodRegistry.d.cts +0 -22
  614. package/lib/types/graph/engine/catalog/GraphNodeMethodRegistry.d.mts +0 -22
  615. package/lib/types/graph/engine/catalog/GraphNodeRegistration.d.cts +0 -68
  616. package/lib/types/graph/engine/catalog/GraphNodeRegistration.d.mts +0 -68
  617. package/lib/types/graph/engine/catalog/index.d.cts +0 -6
  618. package/lib/types/graph/engine/catalog/index.d.mts +0 -6
  619. package/lib/types/graph/engine/constants.d.cts +0 -59
  620. package/lib/types/graph/engine/constants.d.mts +0 -59
  621. package/lib/types/graph/engine/decorators.d.cts +0 -6
  622. package/lib/types/graph/engine/decorators.d.mts +0 -6
  623. package/lib/types/graph/engine/errors/GraphBreakSignal.d.cts +0 -28
  624. package/lib/types/graph/engine/errors/GraphBreakSignal.d.mts +0 -28
  625. package/lib/types/graph/engine/errors/GraphCycleError.d.cts +0 -12
  626. package/lib/types/graph/engine/errors/GraphCycleError.d.mts +0 -12
  627. package/lib/types/graph/engine/errors/GraphExecutionError.d.cts +0 -19
  628. package/lib/types/graph/engine/errors/GraphExecutionError.d.mts +0 -19
  629. package/lib/types/graph/engine/errors/GraphInputError.d.cts +0 -12
  630. package/lib/types/graph/engine/errors/GraphInputError.d.mts +0 -12
  631. package/lib/types/graph/engine/errors/GraphLoopLimitError.d.cts +0 -12
  632. package/lib/types/graph/engine/errors/GraphLoopLimitError.d.mts +0 -12
  633. package/lib/types/graph/engine/errors/GraphPinningError.d.cts +0 -12
  634. package/lib/types/graph/engine/errors/GraphPinningError.d.mts +0 -12
  635. package/lib/types/graph/engine/errors/GraphPortError.d.cts +0 -12
  636. package/lib/types/graph/engine/errors/GraphPortError.d.mts +0 -12
  637. package/lib/types/graph/engine/errors/GraphRunCancelledError.d.cts +0 -9
  638. package/lib/types/graph/engine/errors/GraphRunCancelledError.d.mts +0 -9
  639. package/lib/types/graph/engine/errors/GraphStoreError.d.cts +0 -12
  640. package/lib/types/graph/engine/errors/GraphStoreError.d.mts +0 -12
  641. package/lib/types/graph/engine/errors/GraphTopologyError.d.cts +0 -12
  642. package/lib/types/graph/engine/errors/GraphTopologyError.d.mts +0 -12
  643. package/lib/types/graph/engine/errors/index.d.cts +0 -15
  644. package/lib/types/graph/engine/errors/index.d.mts +0 -15
  645. package/lib/types/graph/engine/events/GraphExecutionEventEmitter.d.cts +0 -26
  646. package/lib/types/graph/engine/events/GraphExecutionEventEmitter.d.mts +0 -26
  647. package/lib/types/graph/engine/events/GraphExecutionEventFactory.d.cts +0 -25
  648. package/lib/types/graph/engine/events/GraphExecutionEventFactory.d.mts +0 -25
  649. package/lib/types/graph/engine/events/GraphExecutionObserver.d.cts +0 -17
  650. package/lib/types/graph/engine/events/GraphExecutionObserver.d.mts +0 -17
  651. package/lib/types/graph/engine/events/index.d.cts +0 -8
  652. package/lib/types/graph/engine/events/index.d.mts +0 -8
  653. package/lib/types/graph/engine/execution/BreakGraphNodeExecutor.d.cts +0 -22
  654. package/lib/types/graph/engine/execution/BreakGraphNodeExecutor.d.mts +0 -22
  655. package/lib/types/graph/engine/execution/CodeGraphNodeExecutor.d.cts +0 -65
  656. package/lib/types/graph/engine/execution/CodeGraphNodeExecutor.d.mts +0 -65
  657. package/lib/types/graph/engine/execution/CodeSandboxEvaluator.d.cts +0 -76
  658. package/lib/types/graph/engine/execution/CodeSandboxEvaluator.d.mts +0 -76
  659. package/lib/types/graph/engine/execution/GraphExecutionContext.d.cts +0 -74
  660. package/lib/types/graph/engine/execution/GraphExecutionContext.d.mts +0 -74
  661. package/lib/types/graph/engine/execution/GraphExecutionEngine.d.cts +0 -251
  662. package/lib/types/graph/engine/execution/GraphExecutionEngine.d.mts +0 -251
  663. package/lib/types/graph/engine/execution/GraphExecutionFrame.d.cts +0 -30
  664. package/lib/types/graph/engine/execution/GraphExecutionFrame.d.mts +0 -30
  665. package/lib/types/graph/engine/execution/GraphExecutionResult.d.cts +0 -13
  666. package/lib/types/graph/engine/execution/GraphExecutionResult.d.mts +0 -13
  667. package/lib/types/graph/engine/execution/GraphNodeExecutor.d.cts +0 -31
  668. package/lib/types/graph/engine/execution/GraphNodeExecutor.d.mts +0 -31
  669. package/lib/types/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.d.cts +0 -63
  670. package/lib/types/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.d.mts +0 -63
  671. package/lib/types/graph/engine/execution/LogGraphNodeExecutor.d.cts +0 -25
  672. package/lib/types/graph/engine/execution/LogGraphNodeExecutor.d.mts +0 -25
  673. package/lib/types/graph/engine/execution/SwitchGraphNodeExecutor.d.cts +0 -43
  674. package/lib/types/graph/engine/execution/SwitchGraphNodeExecutor.d.mts +0 -43
  675. package/lib/types/graph/engine/execution/index.d.cts +0 -16
  676. package/lib/types/graph/engine/execution/index.d.mts +0 -16
  677. package/lib/types/graph/engine/index.d.cts +0 -63
  678. package/lib/types/graph/engine/index.d.mts +0 -63
  679. package/lib/types/graph/engine/loops/ConditionExpressionEvaluator.d.cts +0 -36
  680. package/lib/types/graph/engine/loops/ConditionExpressionEvaluator.d.mts +0 -36
  681. package/lib/types/graph/engine/loops/ForeachGraphNodeExecutor.d.cts +0 -35
  682. package/lib/types/graph/engine/loops/ForeachGraphNodeExecutor.d.mts +0 -35
  683. package/lib/types/graph/engine/loops/GraphConditionEvaluator.d.cts +0 -40
  684. package/lib/types/graph/engine/loops/GraphConditionEvaluator.d.mts +0 -40
  685. package/lib/types/graph/engine/loops/GraphLoopExecutionContext.d.cts +0 -15
  686. package/lib/types/graph/engine/loops/GraphLoopExecutionContext.d.mts +0 -15
  687. package/lib/types/graph/engine/loops/UntilGraphNodeExecutor.d.cts +0 -22
  688. package/lib/types/graph/engine/loops/UntilGraphNodeExecutor.d.mts +0 -22
  689. package/lib/types/graph/engine/loops/WhileGraphNodeExecutor.d.cts +0 -26
  690. package/lib/types/graph/engine/loops/WhileGraphNodeExecutor.d.mts +0 -26
  691. package/lib/types/graph/engine/loops/index.d.cts +0 -11
  692. package/lib/types/graph/engine/loops/index.d.mts +0 -11
  693. package/lib/types/graph/engine/pinning/GraphPinningDependencyResolver.d.cts +0 -21
  694. package/lib/types/graph/engine/pinning/GraphPinningDependencyResolver.d.mts +0 -21
  695. package/lib/types/graph/engine/pinning/GraphPinningMetadata.d.cts +0 -14
  696. package/lib/types/graph/engine/pinning/GraphPinningMetadata.d.mts +0 -14
  697. package/lib/types/graph/engine/pinning/GraphPinningPolicy.d.cts +0 -20
  698. package/lib/types/graph/engine/pinning/GraphPinningPolicy.d.mts +0 -20
  699. package/lib/types/graph/engine/pinning/GraphPinningService.d.cts +0 -70
  700. package/lib/types/graph/engine/pinning/GraphPinningService.d.mts +0 -70
  701. package/lib/types/graph/engine/pinning/index.d.cts +0 -9
  702. package/lib/types/graph/engine/pinning/index.d.mts +0 -9
  703. package/lib/types/graph/engine/planning/GraphExecutionPlan.d.cts +0 -25
  704. package/lib/types/graph/engine/planning/GraphExecutionPlan.d.mts +0 -25
  705. package/lib/types/graph/engine/planning/GraphExecutionPlanEdge.d.cts +0 -26
  706. package/lib/types/graph/engine/planning/GraphExecutionPlanEdge.d.mts +0 -26
  707. package/lib/types/graph/engine/planning/GraphExecutionPlanLayer.d.cts +0 -13
  708. package/lib/types/graph/engine/planning/GraphExecutionPlanLayer.d.mts +0 -13
  709. package/lib/types/graph/engine/planning/GraphExecutionPlanNode.d.cts +0 -28
  710. package/lib/types/graph/engine/planning/GraphExecutionPlanNode.d.mts +0 -28
  711. package/lib/types/graph/engine/planning/GraphExecutionPlanner.d.cts +0 -48
  712. package/lib/types/graph/engine/planning/GraphExecutionPlanner.d.mts +0 -48
  713. package/lib/types/graph/engine/planning/GraphTopology.d.cts +0 -23
  714. package/lib/types/graph/engine/planning/GraphTopology.d.mts +0 -23
  715. package/lib/types/graph/engine/planning/index.d.cts +0 -11
  716. package/lib/types/graph/engine/planning/index.d.mts +0 -11
  717. package/lib/types/graph/engine/registry/GraphNodeExecutorRegistry.d.cts +0 -39
  718. package/lib/types/graph/engine/registry/GraphNodeExecutorRegistry.d.mts +0 -39
  719. package/lib/types/graph/engine/registry/GraphNodeExecutorResolver.d.cts +0 -21
  720. package/lib/types/graph/engine/registry/GraphNodeExecutorResolver.d.mts +0 -21
  721. package/lib/types/graph/engine/registry/index.d.cts +0 -7
  722. package/lib/types/graph/engine/registry/index.d.mts +0 -7
  723. package/lib/types/graph/engine/runs/GraphRunEventPublisher.d.cts +0 -26
  724. package/lib/types/graph/engine/runs/GraphRunEventPublisher.d.mts +0 -26
  725. package/lib/types/graph/engine/runs/GraphRunExecutor.d.cts +0 -75
  726. package/lib/types/graph/engine/runs/GraphRunExecutor.d.mts +0 -75
  727. package/lib/types/graph/engine/runs/GraphRunFingerprint.d.cts +0 -8
  728. package/lib/types/graph/engine/runs/GraphRunFingerprint.d.mts +0 -8
  729. package/lib/types/graph/engine/runs/GraphRunService.d.cts +0 -93
  730. package/lib/types/graph/engine/runs/GraphRunService.d.mts +0 -93
  731. package/lib/types/graph/engine/runs/InMemoryGraphRunEventStore.d.cts +0 -28
  732. package/lib/types/graph/engine/runs/InMemoryGraphRunEventStore.d.mts +0 -28
  733. package/lib/types/graph/engine/runs/InMemoryGraphRunStore.d.cts +0 -12
  734. package/lib/types/graph/engine/runs/InMemoryGraphRunStore.d.mts +0 -12
  735. package/lib/types/graph/engine/runs/index.d.cts +0 -8
  736. package/lib/types/graph/engine/runs/index.d.mts +0 -8
  737. package/lib/types/graph/engine/runs/ownership.d.cts +0 -25
  738. package/lib/types/graph/engine/runs/ownership.d.mts +0 -25
  739. package/lib/types/graph/engine/runs/types.d.cts +0 -83
  740. package/lib/types/graph/engine/runs/types.d.mts +0 -83
  741. package/lib/types/graph/engine/snapshots/GraphExecutionSnapshotMapper.d.cts +0 -10
  742. package/lib/types/graph/engine/snapshots/GraphExecutionSnapshotMapper.d.mts +0 -10
  743. package/lib/types/graph/engine/snapshots/index.d.cts +0 -6
  744. package/lib/types/graph/engine/snapshots/index.d.mts +0 -6
  745. package/lib/types/graph/engine/store/GraphCachedValue.d.cts +0 -20
  746. package/lib/types/graph/engine/store/GraphCachedValue.d.mts +0 -20
  747. package/lib/types/graph/engine/store/GraphValueKey.d.cts +0 -18
  748. package/lib/types/graph/engine/store/GraphValueKey.d.mts +0 -18
  749. package/lib/types/graph/engine/store/GraphValueStore.d.cts +0 -41
  750. package/lib/types/graph/engine/store/GraphValueStore.d.mts +0 -41
  751. package/lib/types/graph/engine/store/GraphValueStoreAdapter.d.cts +0 -32
  752. package/lib/types/graph/engine/store/GraphValueStoreAdapter.d.mts +0 -32
  753. package/lib/types/graph/engine/store/InMemoryGraphValueStoreAdapter.d.cts +0 -33
  754. package/lib/types/graph/engine/store/InMemoryGraphValueStoreAdapter.d.mts +0 -33
  755. package/lib/types/graph/engine/store/index.d.cts +0 -10
  756. package/lib/types/graph/engine/store/index.d.mts +0 -10
  757. package/lib/types/graph/engine/types.d.cts +0 -208
  758. package/lib/types/graph/engine/types.d.mts +0 -208
  759. package/lib/types/graph/engine/validation/GraphConnectionPolicyValidator.d.cts +0 -32
  760. package/lib/types/graph/engine/validation/GraphConnectionPolicyValidator.d.mts +0 -32
  761. package/lib/types/graph/engine/validation/GraphCredentialReferenceValidator.d.cts +0 -62
  762. package/lib/types/graph/engine/validation/GraphCredentialReferenceValidator.d.mts +0 -62
  763. package/lib/types/graph/engine/validation/GraphDefinitionValidator.d.cts +0 -23
  764. package/lib/types/graph/engine/validation/GraphDefinitionValidator.d.mts +0 -23
  765. package/lib/types/graph/engine/validation/GraphEdgeInstanceValidator.d.cts +0 -32
  766. package/lib/types/graph/engine/validation/GraphEdgeInstanceValidator.d.mts +0 -32
  767. package/lib/types/graph/engine/validation/GraphNodeInstanceValidator.d.cts +0 -37
  768. package/lib/types/graph/engine/validation/GraphNodeInstanceValidator.d.mts +0 -37
  769. package/lib/types/graph/engine/validation/GraphParameterValidator.d.cts +0 -92
  770. package/lib/types/graph/engine/validation/GraphParameterValidator.d.mts +0 -92
  771. package/lib/types/graph/engine/validation/GraphPortSchemaResolver.d.cts +0 -39
  772. package/lib/types/graph/engine/validation/GraphPortSchemaResolver.d.mts +0 -39
  773. package/lib/types/graph/engine/validation/GraphResolvedWorkflow.d.cts +0 -66
  774. package/lib/types/graph/engine/validation/GraphResolvedWorkflow.d.mts +0 -66
  775. package/lib/types/graph/engine/validation/GraphValidationErrors.d.cts +0 -34
  776. package/lib/types/graph/engine/validation/GraphValidationErrors.d.mts +0 -34
  777. package/lib/types/graph/engine/validation/GraphValidationIssue.d.cts +0 -39
  778. package/lib/types/graph/engine/validation/GraphValidationIssue.d.mts +0 -39
  779. package/lib/types/graph/engine/validation/GraphValueValidator.d.cts +0 -27
  780. package/lib/types/graph/engine/validation/GraphValueValidator.d.mts +0 -27
  781. package/lib/types/graph/engine/validation/GraphWorkflowDocumentValidator.d.cts +0 -162
  782. package/lib/types/graph/engine/validation/GraphWorkflowDocumentValidator.d.mts +0 -162
  783. package/lib/types/graph/engine/validation/index.d.cts +0 -19
  784. package/lib/types/graph/engine/validation/index.d.mts +0 -19
  785. package/lib/types/graph/index.d.cts +0 -12
  786. package/lib/types/graph/index.d.mts +0 -12
  787. package/lib/types/graph/log/GraphRunLogger.d.cts +0 -76
  788. package/lib/types/graph/log/GraphRunLogger.d.mts +0 -76
  789. package/lib/types/graph/log/LogParameters.d.cts +0 -7
  790. package/lib/types/graph/log/LogParameters.d.mts +0 -7
  791. package/lib/types/nest/graph/GraphExecutionController.d.cts +0 -110
  792. package/lib/types/nest/graph/GraphExecutionController.d.mts +0 -110
  793. package/lib/types/nest/graph/GraphExecutionModule.d.cts +0 -83
  794. package/lib/types/nest/graph/GraphExecutionModule.d.mts +0 -83
  795. package/lib/types/nest/graph/GraphExecutionResultModel.d.cts +0 -24
  796. package/lib/types/nest/graph/GraphExecutionResultModel.d.mts +0 -24
  797. package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.cts +0 -66
  798. package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.mts +0 -66
  799. package/lib/types/nest/graph/GraphNodeCatalogueController.d.cts +0 -70
  800. package/lib/types/nest/graph/GraphNodeCatalogueController.d.mts +0 -70
  801. package/lib/types/nest/graph/GraphResultService.d.cts +0 -20
  802. package/lib/types/nest/graph/GraphResultService.d.mts +0 -20
  803. package/lib/types/nest/graph/GraphRunController.d.cts +0 -87
  804. package/lib/types/nest/graph/GraphRunController.d.mts +0 -87
  805. package/lib/types/nest/graph/GraphRunModel.d.cts +0 -22
  806. package/lib/types/nest/graph/GraphRunModel.d.mts +0 -22
  807. package/lib/types/nest/graph/GraphRunModelService.d.cts +0 -21
  808. package/lib/types/nest/graph/GraphRunModelService.d.mts +0 -21
  809. package/lib/types/nest/graph/GraphWorkflowBoundaryValidation.d.cts +0 -28
  810. package/lib/types/nest/graph/GraphWorkflowBoundaryValidation.d.mts +0 -28
  811. package/lib/types/nest/graph/GraphWorkflowController.d.cts +0 -62
  812. package/lib/types/nest/graph/GraphWorkflowController.d.mts +0 -62
  813. package/lib/types/nest/graph/GraphWorkflowDocumentLimits.d.cts +0 -33
  814. package/lib/types/nest/graph/GraphWorkflowDocumentLimits.d.mts +0 -33
  815. package/lib/types/nest/graph/GraphWorkflowErrors.d.cts +0 -13
  816. package/lib/types/nest/graph/GraphWorkflowErrors.d.mts +0 -13
  817. package/lib/types/nest/graph/GraphWorkflowModel.d.cts +0 -24
  818. package/lib/types/nest/graph/GraphWorkflowModel.d.mts +0 -24
  819. package/lib/types/nest/graph/GraphWorkflowService.d.cts +0 -54
  820. package/lib/types/nest/graph/GraphWorkflowService.d.mts +0 -54
  821. package/lib/types/nest/graph/index.d.cts +0 -15
  822. package/lib/types/nest/graph/index.d.mts +0 -15
  823. package/lib/types/nest/graph/main.d.cts +0 -1
  824. package/lib/types/nest/graph/main.d.mts +0 -1
  825. /package/lib/cjs/{graph/engine/runs → redis}/types.cjs +0 -0
  826. /package/lib/esm/{graph/engine/runs → redis}/types.js +0 -0
@@ -1,789 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GraphExecutionEngine = void 0;
4
- const constants_js_1 = require("./../constants.cjs");
5
- const graph_1 = require("@decaf-ts/ui-decorators/graph");
6
- const index_js_1 = require("./../errors/index.cjs");
7
- const GraphExecutionEventEmitter_js_1 = require("./../events/GraphExecutionEventEmitter.cjs");
8
- const GraphExecutionEventFactory_js_1 = require("./../events/GraphExecutionEventFactory.cjs");
9
- const GraphExecutionPlanner_js_1 = require("./../planning/GraphExecutionPlanner.cjs");
10
- const GraphWorkflowDocumentValidator_js_1 = require("./../validation/GraphWorkflowDocumentValidator.cjs");
11
- const GraphParameterValidator_js_1 = require("./../validation/GraphParameterValidator.cjs");
12
- const GraphValidationErrors_js_1 = require("./../validation/GraphValidationErrors.cjs");
13
- const InMemoryGraphValueStoreAdapter_js_1 = require("./../store/InMemoryGraphValueStoreAdapter.cjs");
14
- const GraphValueStore_js_1 = require("./../store/GraphValueStore.cjs");
15
- const GraphPinningService_js_1 = require("./../pinning/GraphPinningService.cjs");
16
- const GraphPinningPolicy_js_1 = require("./../pinning/GraphPinningPolicy.cjs");
17
- const GraphPinningDependencyResolver_js_1 = require("./../pinning/GraphPinningDependencyResolver.cjs");
18
- const GraphExecutionContext_js_1 = require("./GraphExecutionContext.cjs");
19
- const GraphExecutionFrame_js_1 = require("./GraphExecutionFrame.cjs");
20
- const GraphExecutionResult_js_1 = require("./GraphExecutionResult.cjs");
21
- /**
22
- * Reference graph execution engine.
23
- *
24
- * Executes a canonical {@link GraphWorkflowDocument} by:
25
- * 1. Validating it through the nine-stage gate and resolving it against the
26
- * backend catalogue (§4.8).
27
- * 2. Planning the resolved workflow into topological layers (§4.9).
28
- * 3. Seeding workflow inputs into the value store.
29
- * 4. Executing nodes layer-by-layer with configurable concurrency, honouring
30
- * disabled-node semantics.
31
- * 5. Building node inputs from routed edges, literal bindings, allowed
32
- * expressions, and manifest defaults; keeping configuration (parameters,
33
- * credentials) separate from input data.
34
- * 6. Validating executor outputs against the effective output manifest.
35
- * 7. Routing values along data edges.
36
- * 8. Emitting structured events through Decaf's Observable pipeline.
37
- * 9. Returning a complete {@link GraphExecutionResult}.
38
- */
39
- class GraphExecutionEngine {
40
- constructor(config) {
41
- this.emitter = config.eventEmitter ?? new GraphExecutionEventEmitter_js_1.GraphExecutionEventEmitter();
42
- this.planner = config.planner ?? new GraphExecutionPlanner_js_1.GraphExecutionPlanner();
43
- this.valueStoreAdapter =
44
- config.valueStoreAdapter ?? new InMemoryGraphValueStoreAdapter_js_1.InMemoryGraphValueStoreAdapter();
45
- this.defaultOptions = config.defaultOptions ?? {};
46
- this.codeSandboxEvaluator = config.codeSandboxEvaluator;
47
- this.config = config;
48
- this.documentValidator =
49
- config.documentValidator ??
50
- new GraphWorkflowDocumentValidator_js_1.GraphWorkflowDocumentValidator({
51
- catalogue: config.catalogue ?? config.registry.catalog,
52
- limits: config.documentLimits,
53
- credentialAuthorizer: config.credentialAuthorizer,
54
- });
55
- config.onEngineCreated?.(this);
56
- }
57
- /**
58
- * Registers an observer on the engine's event pipeline.
59
- *
60
- * @param observer - The observer to register.
61
- * @returns An unsubscribe function that removes the observer.
62
- */
63
- observe(observer) {
64
- return this.emitter.observe(observer);
65
- }
66
- /**
67
- * Unregisters an observer from the engine's event pipeline.
68
- *
69
- * @param observer - The observer to remove.
70
- */
71
- unObserve(observer) {
72
- this.emitter.unObserve(observer);
73
- }
74
- /**
75
- * Dispatches an event to all registered observers.
76
- *
77
- * @param event - The event to distribute.
78
- */
79
- async updateObservers(event) {
80
- await this.emitter.updateObservers(event);
81
- }
82
- /**
83
- * Executes a canonical workflow document with the given inputs and options.
84
- *
85
- * Resolution happens internally (DECAF-50 §4.9): the document is validated
86
- * through the nine-stage gate and resolved against the backend catalogue
87
- * before planning. Decorated `GraphWorkflowDefinition` objects are NOT
88
- * accepted — compile them with the §4.18 transition compiler first.
89
- *
90
- * @param document - The canonical workflow document to execute.
91
- * @param inputs - Workflow input values keyed by input port id.
92
- * @param options - Optional execution overrides (merged over the defaults).
93
- * @returns The complete execution result, including a `runId`, per-node
94
- * results, and workflow outputs (or the failure payload).
95
- * @throws {GraphDocumentValidationError} when the document fails the
96
- * nine-stage validation gate (carries every structured issue).
97
- */
98
- async execute(document, inputs = {}, options = {}) {
99
- const opts = this.mergeOptions(options);
100
- this.assertNotAborted(opts);
101
- const runId = opts.runId ?? this.generateRunId();
102
- const path = opts.path ?? [];
103
- const eventFactory = new GraphExecutionEventFactory_js_1.GraphExecutionEventFactory();
104
- const valueStore = new GraphValueStore_js_1.GraphValueStore(this.valueStoreAdapter);
105
- valueStore.seedWorkflowInputs(this.withWorkflowInputDefaults(document, inputs));
106
- const emitFn = async (partial) => {
107
- await this.emitEvent(frame, {
108
- type: partial.type ?? graph_1.GraphExecutionEventType.NODE_OUTPUT,
109
- runId,
110
- parentRunId: opts.parentRunId,
111
- workflowId: document.id || document.name,
112
- nodeId: partial.nodeId,
113
- path: partial.path ?? path,
114
- ...partial,
115
- });
116
- };
117
- const emitValidationEvent = async (partial) => {
118
- const event = eventFactory.create({
119
- id: "",
120
- sequence: 0,
121
- timestamp: new Date(),
122
- runId,
123
- parentRunId: opts.parentRunId,
124
- workflowId: document.id || document.name,
125
- path,
126
- ...partial,
127
- });
128
- await this.emitter.updateObservers(event);
129
- };
130
- // ------------------------------------------------------------------
131
- // Validation + resolution (nine-stage gate, §4.8) — internal.
132
- // ------------------------------------------------------------------
133
- await emitValidationEvent({
134
- type: graph_1.GraphExecutionEventType.VALIDATION_STARTED,
135
- status: graph_1.GraphExecutionStatus.PLANNING,
136
- });
137
- const validation = await this.documentValidator.validate(document);
138
- if (!validation.valid || !validation.resolved) {
139
- await emitValidationEvent({
140
- type: graph_1.GraphExecutionEventType.VALIDATION_FAILED,
141
- status: graph_1.GraphExecutionStatus.FAILED,
142
- payload: { issues: validation.issues },
143
- });
144
- throw new GraphValidationErrors_js_1.GraphDocumentValidationError(`Graph workflow document '${document.id}' failed validation with ${validation.issues.length} issue(s)`, validation.issues);
145
- }
146
- await emitValidationEvent({
147
- type: graph_1.GraphExecutionEventType.VALIDATION_COMPLETED,
148
- status: graph_1.GraphExecutionStatus.PLANNING,
149
- payload: { issues: validation.issues.length },
150
- });
151
- this.assertNotAborted(opts);
152
- const plan = this.planner.plan(validation.resolved);
153
- const frame = new GraphExecutionFrame_js_1.GraphExecutionFrame(runId, plan, valueStore, eventFactory);
154
- await this.emitEvent(frame, {
155
- type: graph_1.GraphExecutionEventType.WORKFLOW_STARTED,
156
- runId,
157
- parentRunId: opts.parentRunId,
158
- workflowId: plan.workflowId,
159
- path,
160
- status: graph_1.GraphExecutionStatus.RUNNING,
161
- payload: { inputs },
162
- });
163
- await this.emitEvent(frame, {
164
- type: graph_1.GraphExecutionEventType.WORKFLOW_PLANNED,
165
- runId,
166
- parentRunId: opts.parentRunId,
167
- workflowId: plan.workflowId,
168
- path,
169
- status: graph_1.GraphExecutionStatus.PLANNING,
170
- payload: { layers: plan.layers.length, nodes: plan.nodes.length },
171
- });
172
- try {
173
- for (const layer of plan.layers) {
174
- this.assertNotAborted(opts);
175
- await this.executeLayer(frame, plan, layer.nodes, opts, emitFn);
176
- }
177
- this.assertNotAborted(opts);
178
- const firstFailure = [...frame.nodeResults.values()].find((result) => result.status === graph_1.GraphExecutionStatus.FAILED);
179
- if (firstFailure?.error) {
180
- throw new index_js_1.GraphExecutionError(firstFailure.error.message, firstFailure.error.code ?? "GRAPH_EXECUTION_ERROR", firstFailure.error.details);
181
- }
182
- frame.finish();
183
- await this.emitEvent(frame, {
184
- type: graph_1.GraphExecutionEventType.WORKFLOW_COMPLETED,
185
- runId,
186
- parentRunId: opts.parentRunId,
187
- workflowId: plan.workflowId,
188
- path,
189
- status: graph_1.GraphExecutionStatus.SUCCEEDED,
190
- payload: { outputs: valueStore.getWorkflowValues() },
191
- });
192
- return (0, GraphExecutionResult_js_1.buildGraphExecutionResult)(frame, document, inputs, graph_1.GraphExecutionStatus.SUCCEEDED, opts.metadata);
193
- }
194
- catch (error) {
195
- frame.finish();
196
- const errorPayload = this.toErrorPayload(error);
197
- if (error instanceof index_js_1.GraphRunCancelledError ||
198
- opts.abortSignal?.aborted === true) {
199
- await this.emitEvent(frame, {
200
- type: graph_1.GraphExecutionEventType.WORKFLOW_CANCELLED,
201
- runId,
202
- parentRunId: opts.parentRunId,
203
- workflowId: plan.workflowId,
204
- path,
205
- status: graph_1.GraphExecutionStatus.CANCELLED,
206
- error: errorPayload,
207
- });
208
- return (0, GraphExecutionResult_js_1.buildGraphExecutionResult)(frame, document, inputs, graph_1.GraphExecutionStatus.CANCELLED, opts.metadata);
209
- }
210
- await this.emitEvent(frame, {
211
- type: graph_1.GraphExecutionEventType.WORKFLOW_FAILED,
212
- runId,
213
- parentRunId: opts.parentRunId,
214
- workflowId: plan.workflowId,
215
- path,
216
- status: graph_1.GraphExecutionStatus.FAILED,
217
- error: errorPayload,
218
- });
219
- return (0, GraphExecutionResult_js_1.buildGraphExecutionResult)(frame, document, inputs, graph_1.GraphExecutionStatus.FAILED, opts.metadata);
220
- }
221
- }
222
- /**
223
- * Pins a node and its upstream dependencies after a completed run.
224
- *
225
- * Delegates to {@link GraphPinningService}. The plan and result must come
226
- * from a prior successful execution of the same workflow.
227
- */
228
- async pinNode(options) {
229
- const service = this.createPinningService();
230
- await service.pinNode(options);
231
- await this.emitPinningEvent(options.nodeId, graph_1.GraphExecutionEventType.NODE_PINNED);
232
- }
233
- /**
234
- * Unpins a node by its fingerprint.
235
- */
236
- async unpinNode(options) {
237
- const service = this.createPinningService();
238
- await service.unpinNode(options);
239
- await this.emitPinningEvent(options.nodeId, graph_1.GraphExecutionEventType.NODE_UNPINNED);
240
- }
241
- /**
242
- * Creates a {@link GraphPinningService} backed by this engine's value store
243
- * adapter.
244
- */
245
- createPinningService() {
246
- const store = new GraphValueStore_js_1.GraphValueStore(this.valueStoreAdapter);
247
- return new GraphPinningService_js_1.GraphPinningService(store, new GraphPinningPolicy_js_1.GraphPinningPolicy(), new GraphPinningDependencyResolver_js_1.GraphPinningDependencyResolver());
248
- }
249
- /**
250
- * Emits a pinning-related event to all observers.
251
- */
252
- async emitPinningEvent(nodeId, type) {
253
- const factory = new GraphExecutionEventFactory_js_1.GraphExecutionEventFactory();
254
- const event = factory.create({
255
- id: "",
256
- sequence: 0,
257
- timestamp: new Date(),
258
- runId: "pinning",
259
- workflowId: "",
260
- type,
261
- nodeId,
262
- path: [],
263
- });
264
- await this.emitter.updateObservers(event);
265
- }
266
- /**
267
- * Fills unprovided workflow inputs with their declared port defaults.
268
- */
269
- withWorkflowInputDefaults(document, inputs) {
270
- const seeded = { ...inputs };
271
- for (const port of document.inputs) {
272
- if (seeded[port.id] === undefined &&
273
- port.defaultValue !== undefined) {
274
- seeded[port.id] = port.defaultValue;
275
- }
276
- }
277
- return seeded;
278
- }
279
- /**
280
- * Executes a layer of nodes with the configured concurrency.
281
- */
282
- async executeLayer(frame, plan, nodes, opts, emitFn) {
283
- const concurrency = Math.max(1, opts.concurrency ?? constants_js_1.GRAPH_DEFAULT_CONCURRENCY);
284
- const queue = [...nodes];
285
- while (queue.length > 0) {
286
- const batch = queue.splice(0, concurrency);
287
- await Promise.all(batch.map((node) => this.executeNode(frame, plan, node, opts, emitFn)));
288
- }
289
- }
290
- /**
291
- * Executes a single node, honouring disabled-node semantics (§4.9).
292
- */
293
- async executeNode(frame, plan, planNode, opts, emitFn) {
294
- this.assertNotAborted(opts);
295
- if (planNode.instance.disabled === true) {
296
- await this.executeDisabledNode(frame, plan, planNode, opts);
297
- return;
298
- }
299
- const startedAt = new Date();
300
- const nodePath = [...(opts.path ?? []), planNode.id];
301
- await this.emitEvent(frame, {
302
- type: graph_1.GraphExecutionEventType.NODE_STARTED,
303
- runId: frame.runId,
304
- workflowId: plan.workflowId,
305
- nodeId: planNode.id,
306
- path: nodePath,
307
- status: graph_1.GraphExecutionStatus.RUNNING,
308
- });
309
- this.emitNodeStateChanged(frame, plan, planNode, nodePath, graph_1.GraphVisualState.RUNNING, graph_1.GraphExecutionStatus.RUNNING);
310
- const inputs = await this.resolveNodeInputs(frame, plan, planNode, opts);
311
- // Cache-hit: check for a pinned value before executing the node
312
- if (opts.usePinnedValues) {
313
- const cached = await this.tryPinnedValue(frame, plan, planNode, inputs);
314
- if (cached) {
315
- frame.valueStore.setNodeOutputs(planNode.id, cached.outputs);
316
- this.routeOutgoingEdges(frame, plan, planNode, cached.outputs);
317
- const finishedAt = new Date();
318
- const result = {
319
- nodeId: planNode.id,
320
- status: graph_1.GraphExecutionStatus.CACHED,
321
- inputs,
322
- outputs: cached.outputs,
323
- startedAt,
324
- finishedAt,
325
- fromCache: true,
326
- pinned: true,
327
- events: [],
328
- };
329
- frame.recordNodeResult(result);
330
- await this.emitEvent(frame, {
331
- type: graph_1.GraphExecutionEventType.NODE_CACHE_HIT,
332
- runId: frame.runId,
333
- workflowId: plan.workflowId,
334
- nodeId: planNode.id,
335
- path: nodePath,
336
- status: graph_1.GraphExecutionStatus.CACHED,
337
- payload: { outputs: cached.outputs },
338
- });
339
- await this.emitEvent(frame, {
340
- type: graph_1.GraphExecutionEventType.NODE_COMPLETED,
341
- runId: frame.runId,
342
- workflowId: plan.workflowId,
343
- nodeId: planNode.id,
344
- path: nodePath,
345
- status: graph_1.GraphExecutionStatus.SUCCEEDED,
346
- payload: { outputs: cached.outputs, fromCache: true },
347
- });
348
- this.emitNodeStateChanged(frame, plan, planNode, nodePath, graph_1.GraphVisualState.SUCCEEDED, graph_1.GraphExecutionStatus.SUCCEEDED);
349
- return;
350
- }
351
- }
352
- try {
353
- const context = new GraphExecutionContext_js_1.GraphExecutionContext(frame.runId, opts.parentRunId, plan.workflowId, plan.resolved.document, planNode.instance, planNode.manifest, nodePath, emitFn, opts.metadata);
354
- const request = {
355
- nodeId: planNode.id,
356
- kind: planNode.kind,
357
- inputs,
358
- parameters: planNode.instance.parameters ?? {},
359
- credentials: this.collectCredentials(planNode),
360
- metadata: planNode.instance.metadata,
361
- };
362
- const rawOutputs = await this.invokeExecutor(planNode, request, context);
363
- const outputs = this.validateNodeOutputs(planNode, rawOutputs ?? {});
364
- frame.valueStore.setNodeOutputs(planNode.id, outputs);
365
- this.routeOutgoingEdges(frame, plan, planNode, outputs);
366
- const finishedAt = new Date();
367
- const result = {
368
- nodeId: planNode.id,
369
- status: graph_1.GraphExecutionStatus.SUCCEEDED,
370
- inputs,
371
- outputs,
372
- startedAt,
373
- finishedAt,
374
- events: [],
375
- };
376
- frame.recordNodeResult(result);
377
- await this.emitEvent(frame, {
378
- type: graph_1.GraphExecutionEventType.NODE_COMPLETED,
379
- runId: frame.runId,
380
- workflowId: plan.workflowId,
381
- nodeId: planNode.id,
382
- path: nodePath,
383
- status: graph_1.GraphExecutionStatus.SUCCEEDED,
384
- payload: { outputs },
385
- });
386
- this.emitNodeStateChanged(frame, plan, planNode, nodePath, graph_1.GraphVisualState.SUCCEEDED, graph_1.GraphExecutionStatus.SUCCEEDED);
387
- }
388
- catch (error) {
389
- const finishedAt = new Date();
390
- const errorPayload = this.toErrorPayload(error);
391
- const result = {
392
- nodeId: planNode.id,
393
- status: graph_1.GraphExecutionStatus.FAILED,
394
- inputs,
395
- error: errorPayload,
396
- startedAt,
397
- finishedAt,
398
- events: [],
399
- };
400
- frame.recordNodeResult(result);
401
- await this.emitEvent(frame, {
402
- type: graph_1.GraphExecutionEventType.NODE_FAILED,
403
- runId: frame.runId,
404
- workflowId: plan.workflowId,
405
- nodeId: planNode.id,
406
- path: nodePath,
407
- status: graph_1.GraphExecutionStatus.FAILED,
408
- error: errorPayload,
409
- });
410
- this.emitNodeStateChanged(frame, plan, planNode, nodePath, graph_1.GraphVisualState.FAILED, graph_1.GraphExecutionStatus.FAILED);
411
- if (opts.failFast ?? true)
412
- throw error;
413
- }
414
- }
415
- /**
416
- * Applies the explicit disabled-node semantics (§4.9):
417
- * `skip`, `passThroughFirstInput`, or `emitDefaults`, resolved from the
418
- * instance metadata, document settings, and the default.
419
- */
420
- async executeDisabledNode(frame, plan, planNode, opts) {
421
- const startedAt = new Date();
422
- const nodePath = [...(opts.path ?? []), planNode.id];
423
- const behavior = GraphParameterValidator_js_1.GraphParameterValidator.disabledBehaviorOf(planNode.instance, plan.resolved.document.settings);
424
- await this.emitEvent(frame, {
425
- type: graph_1.GraphExecutionEventType.NODE_SKIPPED,
426
- runId: frame.runId,
427
- workflowId: plan.workflowId,
428
- nodeId: planNode.id,
429
- path: nodePath,
430
- status: graph_1.GraphExecutionStatus.SKIPPED,
431
- payload: { disabled: true, behavior },
432
- });
433
- if (behavior === "skip") {
434
- const result = {
435
- nodeId: planNode.id,
436
- status: graph_1.GraphExecutionStatus.SKIPPED,
437
- inputs: {},
438
- startedAt,
439
- finishedAt: new Date(),
440
- events: [],
441
- };
442
- frame.recordNodeResult(result);
443
- this.emitNodeStateChanged(frame, plan, planNode, nodePath, graph_1.GraphVisualState.SKIPPED, graph_1.GraphExecutionStatus.SKIPPED);
444
- return;
445
- }
446
- const inputs = await this.resolveNodeInputs(frame, plan, planNode, opts);
447
- let outputs;
448
- if (behavior === "passThroughFirstInput") {
449
- const firstIncoming = (plan.incomingByNode.get(planNode.id) ?? []).find((edge) => edge.type === "data");
450
- const firstOutput = planNode.manifest.outputs[0]?.id ?? "value";
451
- const value = firstIncoming
452
- ? frame.valueStore.getPort(firstIncoming.sourceNodeId, firstIncoming.sourcePort)
453
- : Object.values(inputs)[0];
454
- outputs = { [firstOutput]: value };
455
- }
456
- else {
457
- // emitDefaults — every declared output port is emitted with its
458
- // declared default (absent a declared default, undefined).
459
- outputs = {};
460
- for (const port of planNode.manifest.outputs) {
461
- outputs[port.id] = port.metadata?.["defaultValue"];
462
- }
463
- }
464
- frame.valueStore.setNodeOutputs(planNode.id, outputs);
465
- this.routeOutgoingEdges(frame, plan, planNode, outputs);
466
- const result = {
467
- nodeId: planNode.id,
468
- status: graph_1.GraphExecutionStatus.SUCCEEDED,
469
- inputs,
470
- outputs,
471
- startedAt,
472
- finishedAt: new Date(),
473
- events: [],
474
- };
475
- frame.recordNodeResult(result);
476
- this.emitNodeStateChanged(frame, plan, planNode, nodePath, graph_1.GraphVisualState.SUCCEEDED, graph_1.GraphExecutionStatus.SUCCEEDED);
477
- }
478
- /**
479
- * Invokes the node's catalogue-resolved executor (§4.9 request contract,
480
- * post-cutover: every executor receives the full request with
481
- * configuration and input data separated).
482
- */
483
- async invokeExecutor(planNode, request, context) {
484
- return await planNode.executor.execute(request, context);
485
- }
486
- /**
487
- * Validates executor outputs against the effective output manifest
488
- * (§4.9): unknown outputs are rejected by default; missing required
489
- * outputs fail the node. Lenient transition manifests (legacy
490
- * executor-only registrations) are exempt until cutover.
491
- */
492
- validateNodeOutputs(planNode, outputs) {
493
- const manifest = planNode.manifest;
494
- if (manifest.policies?.allowUnknownOutputs === true) {
495
- return outputs;
496
- }
497
- const declaredOutputs = new Set(manifest.outputs.map((port) => port.id));
498
- const unknownOutputs = Object.keys(outputs).filter((key) => !declaredOutputs.has(key));
499
- if (unknownOutputs.length > 0) {
500
- throw new index_js_1.GraphExecutionError(`Node '${planNode.id}' of kind '${planNode.kind}' produced unknown output(s): ${unknownOutputs.join(", ")}`, "GRAPH_OUTPUT_VALIDATION_FAILED", { nodeId: planNode.id, unknownOutputs });
501
- }
502
- const missingRequired = manifest.outputs
503
- .filter((port) => port.required === true && !(port.id in outputs))
504
- .map((port) => port.id);
505
- if (missingRequired.length > 0) {
506
- throw new index_js_1.GraphExecutionError(`Node '${planNode.id}' of kind '${planNode.kind}' did not produce required output(s): ${missingRequired.join(", ")}`, "GRAPH_OUTPUT_VALIDATION_FAILED", { nodeId: planNode.id, missingRequired });
507
- }
508
- return outputs;
509
- }
510
- /**
511
- * Collects the resolved credential references for a node: credential-type
512
- * parameter values plus the `credentials` record in instance metadata.
513
- * Documents carry references only — secret material never enters requests.
514
- */
515
- collectCredentials(planNode) {
516
- const credentials = {};
517
- for (const parameter of planNode.manifest.parameters) {
518
- if (parameter.type !== "credential")
519
- continue;
520
- const value = (planNode.instance.parameters ?? {})[parameter.id];
521
- if (typeof value === "string" && value.length > 0) {
522
- credentials[parameter.id] = {
523
- credentialId: value,
524
- credentialType: parameter.credentialType ?? "",
525
- };
526
- }
527
- else if ((0, GraphParameterValidator_js_1.isGraphCredentialReferenceLike)(value)) {
528
- credentials[parameter.id] = {
529
- credentialId: value.credentialId,
530
- credentialType: value.credentialType,
531
- };
532
- }
533
- }
534
- const extra = (planNode.instance.metadata ?? {})["credentials"];
535
- if (extra && typeof extra === "object" && !Array.isArray(extra)) {
536
- for (const [key, raw] of Object.entries(extra)) {
537
- const value = raw;
538
- if (typeof value === "string" && value.length > 0) {
539
- credentials[key] = { credentialId: value, credentialType: "" };
540
- }
541
- else if ((0, GraphParameterValidator_js_1.isGraphCredentialReferenceLike)(value)) {
542
- credentials[key] = {
543
- credentialId: value.credentialId,
544
- credentialType: value.credentialType,
545
- };
546
- }
547
- }
548
- }
549
- return credentials;
550
- }
551
- /**
552
- * Resolves a node's input values from routed data edges, literal bindings,
553
- * allowed expression bindings, and manifest port defaults (§4.9).
554
- *
555
- * When multiple edges target the same port, their values are spread into the
556
- * top-level inputs keyed by each edge's `sourcePort`. This allows multiple
557
- * workflow input badges to connect to a single port (e.g. the Code node's
558
- * `data` port) and have all values accessible directly as
559
- * `$input.{sourcePort}` (e.g. `$input.count`, `$input.text`).
560
- */
561
- async resolveNodeInputs(frame, plan, planNode, opts) {
562
- const inputs = {};
563
- const incoming = (plan.incomingByNode.get(planNode.id) ?? []).filter((edge) => edge.type === "data");
564
- const edgesByTarget = new Map();
565
- for (const edge of incoming) {
566
- const list = edgesByTarget.get(edge.targetPort) ?? [];
567
- list.push(edge);
568
- edgesByTarget.set(edge.targetPort, list);
569
- }
570
- for (const [targetPort, edges] of edgesByTarget) {
571
- if (edges.length === 1) {
572
- inputs[targetPort] = frame.valueStore.getPort(edges[0].sourceNodeId, edges[0].sourcePort);
573
- }
574
- else {
575
- for (const edge of edges) {
576
- inputs[edge.sourcePort] = frame.valueStore.getPort(edge.sourceNodeId, edge.sourcePort);
577
- }
578
- }
579
- }
580
- // Literal bindings, expression bindings, and manifest defaults.
581
- const bindings = planNode.instance.inputBindings ?? {};
582
- for (const port of planNode.manifest.inputs) {
583
- const binding = bindings[port.id];
584
- if (binding?.mode === "literal") {
585
- inputs[port.id] = binding.value;
586
- }
587
- else if (binding?.mode === "expression") {
588
- inputs[port.id] = await this.evaluateExpressionBinding(planNode, binding.expression, inputs, opts);
589
- }
590
- else if (inputs[port.id] === undefined) {
591
- const defaultValue = port.metadata?.["defaultValue"];
592
- if (defaultValue !== undefined) {
593
- inputs[port.id] = defaultValue;
594
- }
595
- }
596
- }
597
- return inputs;
598
- }
599
- /**
600
- * Evaluates an expression binding with the EXISTING allowed-expression
601
- * machinery only (the pluggable {@link CodeSandboxEvaluator}, DECAF-32
602
- * §22.4) — no new evaluator. The expression sees the already-routed input
603
- * values as `$input` and the run metadata as context.
604
- */
605
- async evaluateExpressionBinding(planNode, expression, inputs, opts) {
606
- const evaluator = this.codeSandboxEvaluator;
607
- if (!evaluator) {
608
- throw new index_js_1.GraphExecutionError(`Expression binding on node '${planNode.id}' requires a CodeSandboxEvaluator to be registered in GraphExecutionEngineConfig.codeSandboxEvaluator`, "GRAPH_CODE_SANDBOX_NOT_CONFIGURED", { nodeId: planNode.id, expression });
609
- }
610
- const md = opts.metadata;
611
- return await evaluator.evaluate({
612
- code: expression,
613
- language: "javascript",
614
- input: inputs,
615
- vars: md?.vars ?? undefined,
616
- item: md?.item,
617
- index: md?.index,
618
- });
619
- }
620
- /**
621
- * Attempts to read a pinned value for the node. Returns the cached outputs
622
- * when a valid pinned value exists, or `undefined` to proceed with normal
623
- * execution.
624
- */
625
- async tryPinnedValue(frame, plan, planNode, inputs) {
626
- const policy = new GraphPinningPolicy_js_1.GraphPinningPolicy();
627
- if (!policy.shouldUsePinnedValue(planNode))
628
- return undefined;
629
- const service = this.createPinningService();
630
- const depFingerprints = this.computeDependencyFingerprints(frame, plan, planNode.id);
631
- return service.readPinnedValue(plan.workflowId, planNode, inputs, depFingerprints);
632
- }
633
- /**
634
- * Recursively computes fingerprints for all upstream dependencies of a node
635
- * using the results already accumulated in the frame.
636
- */
637
- computeDependencyFingerprints(frame, plan, nodeId) {
638
- const service = this.createPinningService();
639
- const depResolver = new GraphPinningDependencyResolver_js_1.GraphPinningDependencyResolver();
640
- const deps = depResolver.getDependencies(plan, nodeId);
641
- const fingerprints = {};
642
- for (const dep of deps) {
643
- const node = plan.nodes.find((n) => n.id === dep);
644
- if (node) {
645
- const depResult = frame.nodeResults.get(dep);
646
- const inputs = depResult?.inputs ?? {};
647
- const nestedDeps = this.computeDependencyFingerprints(frame, plan, dep);
648
- fingerprints[dep] = service.computeFingerprint(plan.workflowId, node, inputs, nestedDeps);
649
- }
650
- }
651
- return fingerprints;
652
- }
653
- /**
654
- * Routes a node's outputs to downstream inputs and workflow outputs along
655
- * data edges (connection edges are structural and never route values).
656
- */
657
- routeOutgoingEdges(frame, plan, planNode, outputs) {
658
- const outgoing = (plan.outgoingByNode.get(planNode.id) ?? []).filter((edge) => edge.type === "data");
659
- for (const edge of outgoing) {
660
- const value = outputs[edge.sourcePort];
661
- if (edge.targetNodeId === constants_js_1.GRAPH_WORKFLOW_BOUNDARY) {
662
- frame.valueStore.setWorkflowOutput(edge.targetPort, value);
663
- }
664
- this.emitEdgeStateChanged(frame, plan, planNode, edge, graph_1.GraphVisualState.SUCCEEDED, graph_1.GraphExecutionStatus.SUCCEEDED);
665
- this.emitEvent(frame, {
666
- type: graph_1.GraphExecutionEventType.EDGE_VALUE_ROUTED,
667
- runId: frame.runId,
668
- workflowId: plan.workflowId,
669
- edgeId: edge.id,
670
- nodeId: planNode.id,
671
- path: [],
672
- payload: { edge, value },
673
- }).catch(() => {
674
- // observer failures must not crash
675
- });
676
- }
677
- }
678
- /**
679
- * Emits an event, records it in the frame, and dispatches to observers.
680
- */
681
- async emitEvent(frame, partial) {
682
- const event = frame.eventFactory.create({
683
- id: "",
684
- sequence: 0,
685
- timestamp: new Date(),
686
- ...partial,
687
- });
688
- frame.appendEvent(event);
689
- await this.emitter.updateObservers(event);
690
- }
691
- /**
692
- * Emits a `NODE_STATE_CHANGED` event (DECAF-48 §4.4) carrying the given
693
- * visual state for the node. Rides the existing Observable pipeline; no
694
- * second out-of-band channel.
695
- */
696
- emitNodeStateChanged(frame, plan, planNode, nodePath, state, status) {
697
- this.emitEvent(frame, {
698
- type: graph_1.GraphExecutionEventType.NODE_STATE_CHANGED,
699
- runId: frame.runId,
700
- workflowId: plan.workflowId,
701
- nodeId: planNode.id,
702
- path: nodePath,
703
- status,
704
- payload: {
705
- nodeId: planNode.id,
706
- state,
707
- runId: frame.runId,
708
- workflowId: plan.workflowId,
709
- status,
710
- },
711
- }).catch(() => {
712
- // observer failures must not crash execution
713
- });
714
- }
715
- /**
716
- * Emits an `EDGE_STATE_CHANGED` event (DECAF-48 §4.4) carrying the given
717
- * visual state for a routed edge.
718
- */
719
- emitEdgeStateChanged(frame, plan, planNode, edge, state, status) {
720
- this.emitEvent(frame, {
721
- type: graph_1.GraphExecutionEventType.EDGE_STATE_CHANGED,
722
- runId: frame.runId,
723
- workflowId: plan.workflowId,
724
- edgeId: edge.id,
725
- nodeId: planNode.id,
726
- path: [],
727
- status,
728
- payload: {
729
- edgeId: edge.id,
730
- state,
731
- runId: frame.runId,
732
- workflowId: plan.workflowId,
733
- nodeId: planNode.id,
734
- status,
735
- },
736
- }).catch(() => {
737
- // observer failures must not crash execution
738
- });
739
- }
740
- /**
741
- * Merges default options with the given options.
742
- */
743
- mergeOptions(options) {
744
- return {
745
- concurrency: constants_js_1.GRAPH_DEFAULT_CONCURRENCY,
746
- failFast: true,
747
- validateInputs: true,
748
- validateOutputs: true,
749
- usePinnedValues: true,
750
- writeThroughCache: false,
751
- path: [],
752
- metadata: {},
753
- ...this.defaultOptions,
754
- ...options,
755
- };
756
- }
757
- assertNotAborted(opts) {
758
- if (opts.abortSignal?.aborted === true) {
759
- throw new index_js_1.GraphRunCancelledError(opts.runId ?? "unknown");
760
- }
761
- }
762
- /**
763
- * Generates a unique run id.
764
- */
765
- generateRunId() {
766
- return (globalThis.crypto?.randomUUID?.() ??
767
- `graph-run-${Date.now()}-${Math.random().toString(36).slice(2)}`);
768
- }
769
- /**
770
- * Converts an error into a serialized payload.
771
- */
772
- toErrorPayload(error) {
773
- if (error instanceof Error) {
774
- return {
775
- name: error.name,
776
- message: error.message,
777
- stack: error.stack,
778
- code: error.graphCode ??
779
- (typeof error.code === "number"
780
- ? String(error.code)
781
- : error.code),
782
- };
783
- }
784
- return { name: "UnknownError", message: String(error) };
785
- }
786
- }
787
- exports.GraphExecutionEngine = GraphExecutionEngine;
788
- //# sourceMappingURL=GraphExecutionEngine.js.map
789
- //# sourceMappingURL=GraphExecutionEngine.cjs.map