@decaf-ts/integrations 0.10.4 → 0.10.8

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 (300) hide show
  1. package/dist/integrations.cjs +1 -1
  2. package/docker/minio-compose.yml +9 -7
  3. package/jest.config.cjs +2 -0
  4. package/lib/cjs/blob/s3/S3BlobStoreService.cjs +7 -4
  5. package/lib/cjs/blob/s3/S3BlobStoreService.cjs.map +1 -1
  6. package/lib/cjs/graph/engine/catalog/GraphBuiltInRegistrations.cjs +12 -73
  7. package/lib/cjs/graph/engine/catalog/GraphBuiltInRegistrations.cjs.map +1 -1
  8. package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs +5 -1
  9. package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs.map +1 -1
  10. package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs +66 -1
  11. package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs.map +1 -1
  12. package/lib/cjs/graph/engine/execution/GraphExecutionFrame.cjs +16 -0
  13. package/lib/cjs/graph/engine/execution/GraphExecutionFrame.cjs.map +1 -1
  14. package/lib/cjs/graph/engine/execution/index.cjs +0 -4
  15. package/lib/cjs/graph/engine/execution/index.cjs.map +1 -1
  16. package/lib/cjs/graph/engine/index.cjs +0 -7
  17. package/lib/cjs/graph/engine/index.cjs.map +1 -1
  18. package/lib/cjs/graph/engine/loops/index.cjs +0 -3
  19. package/lib/cjs/graph/engine/loops/index.cjs.map +1 -1
  20. package/lib/cjs/graph/engine/validation/GraphLooseNodeValidation.cjs +36 -0
  21. package/lib/cjs/graph/engine/validation/GraphLooseNodeValidation.cjs.map +1 -0
  22. package/lib/cjs/graph/engine/validation/GraphParameterValidator.cjs +36 -3
  23. package/lib/cjs/graph/engine/validation/GraphParameterValidator.cjs.map +1 -1
  24. package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs +32 -1
  25. package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs.map +1 -1
  26. package/lib/cjs/graph/engine/validation/index.cjs +1 -0
  27. package/lib/cjs/graph/engine/validation/index.cjs.map +1 -1
  28. package/lib/cjs/graph/nodes/agents/agent.cjs +118 -0
  29. package/lib/cjs/graph/nodes/agents/agent.cjs.map +1 -0
  30. package/lib/cjs/graph/nodes/base.cjs +61 -0
  31. package/lib/cjs/graph/nodes/base.cjs.map +1 -0
  32. package/lib/cjs/graph/nodes/boundary/input-value.cjs +59 -0
  33. package/lib/cjs/graph/nodes/boundary/input-value.cjs.map +1 -0
  34. package/lib/cjs/graph/nodes/flow-control/break.cjs +71 -0
  35. package/lib/cjs/graph/nodes/flow-control/break.cjs.map +1 -0
  36. package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs +72 -0
  37. package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs.map +1 -0
  38. package/lib/cjs/graph/nodes/flow-control/human-approval.cjs +80 -0
  39. package/lib/cjs/graph/nodes/flow-control/human-approval.cjs.map +1 -0
  40. package/lib/cjs/graph/nodes/flow-control/if.cjs +82 -0
  41. package/lib/cjs/graph/nodes/flow-control/if.cjs.map +1 -0
  42. package/lib/cjs/graph/nodes/flow-control/parallel.cjs +69 -0
  43. package/lib/cjs/graph/nodes/flow-control/parallel.cjs.map +1 -0
  44. package/lib/cjs/graph/nodes/flow-control/switch.cjs +190 -0
  45. package/lib/cjs/graph/nodes/flow-control/switch.cjs.map +1 -0
  46. package/lib/cjs/graph/nodes/index.cjs +162 -0
  47. package/lib/cjs/graph/nodes/index.cjs.map +1 -0
  48. package/lib/cjs/graph/nodes/loops/foreach.cjs +189 -0
  49. package/lib/cjs/graph/nodes/loops/foreach.cjs.map +1 -0
  50. package/lib/cjs/graph/nodes/loops/loop-metadata.cjs +48 -0
  51. package/lib/cjs/graph/nodes/loops/loop-metadata.cjs.map +1 -0
  52. package/lib/cjs/graph/nodes/loops/until.cjs +136 -0
  53. package/lib/cjs/graph/nodes/loops/until.cjs.map +1 -0
  54. package/lib/cjs/graph/nodes/loops/while.cjs +133 -0
  55. package/lib/cjs/graph/nodes/loops/while.cjs.map +1 -0
  56. package/lib/cjs/graph/nodes/manifests.cjs +342 -0
  57. package/lib/cjs/graph/nodes/manifests.cjs.map +1 -0
  58. package/lib/cjs/graph/nodes/triggers/chat.cjs +82 -0
  59. package/lib/cjs/graph/nodes/triggers/chat.cjs.map +1 -0
  60. package/lib/cjs/graph/nodes/triggers/event.cjs +63 -0
  61. package/lib/cjs/graph/nodes/triggers/event.cjs.map +1 -0
  62. package/lib/cjs/graph/nodes/triggers/form.cjs +64 -0
  63. package/lib/cjs/graph/nodes/triggers/form.cjs.map +1 -0
  64. package/lib/cjs/graph/nodes/triggers/manual.cjs +65 -0
  65. package/lib/cjs/graph/nodes/triggers/manual.cjs.map +1 -0
  66. package/lib/cjs/graph/nodes/triggers/schedule.cjs +65 -0
  67. package/lib/cjs/graph/nodes/triggers/schedule.cjs.map +1 -0
  68. package/lib/cjs/graph/nodes/triggers/webhook.cjs +67 -0
  69. package/lib/cjs/graph/nodes/triggers/webhook.cjs.map +1 -0
  70. package/lib/cjs/graph/nodes/utility/code.cjs +139 -0
  71. package/lib/cjs/graph/nodes/utility/code.cjs.map +1 -0
  72. package/lib/cjs/graph/nodes/utility/delay.cjs +66 -0
  73. package/lib/cjs/graph/nodes/utility/delay.cjs.map +1 -0
  74. package/lib/cjs/graph/nodes/utility/log.cjs +70 -0
  75. package/lib/cjs/graph/nodes/utility/log.cjs.map +1 -0
  76. package/lib/cjs/graph/nodes/utility/map.cjs +69 -0
  77. package/lib/cjs/graph/nodes/utility/map.cjs.map +1 -0
  78. package/lib/cjs/graph/nodes/utility/merge.cjs +67 -0
  79. package/lib/cjs/graph/nodes/utility/merge.cjs.map +1 -0
  80. package/lib/cjs/graph/nodes/utility/return.cjs +69 -0
  81. package/lib/cjs/graph/nodes/utility/return.cjs.map +1 -0
  82. package/lib/cjs/graph/nodes/utility/utility-log.cjs +77 -0
  83. package/lib/cjs/graph/nodes/utility/utility-log.cjs.map +1 -0
  84. package/lib/cjs/index.cjs +3 -3
  85. package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs +8 -4
  86. package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs.map +1 -1
  87. package/lib/cjs/nest/graph/GraphWorkflowBoundaryValidation.cjs +2 -0
  88. package/lib/cjs/nest/graph/GraphWorkflowBoundaryValidation.cjs.map +1 -1
  89. package/lib/cjs/nest/graph/GraphWorkflowService.cjs +1 -13
  90. package/lib/cjs/nest/graph/GraphWorkflowService.cjs.map +1 -1
  91. package/lib/esm/blob/s3/S3BlobStoreService.js +7 -4
  92. package/lib/esm/blob/s3/S3BlobStoreService.js.map +1 -1
  93. package/lib/esm/graph/engine/catalog/GraphBuiltInRegistrations.js +11 -72
  94. package/lib/esm/graph/engine/catalog/GraphBuiltInRegistrations.js.map +1 -1
  95. package/lib/esm/graph/engine/execution/GraphExecutionContext.js +5 -1
  96. package/lib/esm/graph/engine/execution/GraphExecutionContext.js.map +1 -1
  97. package/lib/esm/graph/engine/execution/GraphExecutionEngine.js +66 -1
  98. package/lib/esm/graph/engine/execution/GraphExecutionEngine.js.map +1 -1
  99. package/lib/esm/graph/engine/execution/GraphExecutionFrame.js +16 -0
  100. package/lib/esm/graph/engine/execution/GraphExecutionFrame.js.map +1 -1
  101. package/lib/esm/graph/engine/execution/index.js +0 -4
  102. package/lib/esm/graph/engine/execution/index.js.map +1 -1
  103. package/lib/esm/graph/engine/index.js +0 -7
  104. package/lib/esm/graph/engine/index.js.map +1 -1
  105. package/lib/esm/graph/engine/loops/index.js +0 -3
  106. package/lib/esm/graph/engine/loops/index.js.map +1 -1
  107. package/lib/esm/graph/engine/validation/GraphLooseNodeValidation.js +32 -0
  108. package/lib/esm/graph/engine/validation/GraphLooseNodeValidation.js.map +1 -0
  109. package/lib/esm/graph/engine/validation/GraphParameterValidator.js +36 -3
  110. package/lib/esm/graph/engine/validation/GraphParameterValidator.js.map +1 -1
  111. package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js +32 -1
  112. package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js.map +1 -1
  113. package/lib/esm/graph/engine/validation/index.js +1 -0
  114. package/lib/esm/graph/engine/validation/index.js.map +1 -1
  115. package/lib/esm/graph/nodes/agents/agent.js +109 -0
  116. package/lib/esm/graph/nodes/agents/agent.js.map +1 -0
  117. package/lib/esm/graph/nodes/base.js +56 -0
  118. package/lib/esm/graph/nodes/base.js.map +1 -0
  119. package/lib/esm/graph/nodes/boundary/input-value.js +50 -0
  120. package/lib/esm/graph/nodes/boundary/input-value.js.map +1 -0
  121. package/lib/esm/graph/nodes/flow-control/break.js +62 -0
  122. package/lib/esm/graph/nodes/flow-control/break.js.map +1 -0
  123. package/lib/esm/graph/nodes/flow-control/error-boundary.js +63 -0
  124. package/lib/esm/graph/nodes/flow-control/error-boundary.js.map +1 -0
  125. package/lib/esm/graph/nodes/flow-control/human-approval.js +71 -0
  126. package/lib/esm/graph/nodes/flow-control/human-approval.js.map +1 -0
  127. package/lib/esm/graph/nodes/flow-control/if.js +73 -0
  128. package/lib/esm/graph/nodes/flow-control/if.js.map +1 -0
  129. package/lib/esm/graph/nodes/flow-control/parallel.js +60 -0
  130. package/lib/esm/graph/nodes/flow-control/parallel.js.map +1 -0
  131. package/lib/esm/graph/nodes/flow-control/switch.js +181 -0
  132. package/lib/esm/graph/nodes/flow-control/switch.js.map +1 -0
  133. package/lib/esm/graph/nodes/index.js +144 -0
  134. package/lib/esm/graph/nodes/index.js.map +1 -0
  135. package/lib/esm/graph/nodes/loops/foreach.js +180 -0
  136. package/lib/esm/graph/nodes/loops/foreach.js.map +1 -0
  137. package/lib/esm/graph/nodes/loops/loop-metadata.js +44 -0
  138. package/lib/esm/graph/nodes/loops/loop-metadata.js.map +1 -0
  139. package/lib/esm/graph/nodes/loops/until.js +127 -0
  140. package/lib/esm/graph/nodes/loops/until.js.map +1 -0
  141. package/lib/esm/graph/nodes/loops/while.js +124 -0
  142. package/lib/esm/graph/nodes/loops/while.js.map +1 -0
  143. package/lib/esm/graph/nodes/manifests.js +338 -0
  144. package/lib/esm/graph/nodes/manifests.js.map +1 -0
  145. package/lib/esm/graph/nodes/triggers/chat.js +73 -0
  146. package/lib/esm/graph/nodes/triggers/chat.js.map +1 -0
  147. package/lib/esm/graph/nodes/triggers/event.js +54 -0
  148. package/lib/esm/graph/nodes/triggers/event.js.map +1 -0
  149. package/lib/esm/graph/nodes/triggers/form.js +55 -0
  150. package/lib/esm/graph/nodes/triggers/form.js.map +1 -0
  151. package/lib/esm/graph/nodes/triggers/manual.js +56 -0
  152. package/lib/esm/graph/nodes/triggers/manual.js.map +1 -0
  153. package/lib/esm/graph/nodes/triggers/schedule.js +56 -0
  154. package/lib/esm/graph/nodes/triggers/schedule.js.map +1 -0
  155. package/lib/esm/graph/nodes/triggers/webhook.js +58 -0
  156. package/lib/esm/graph/nodes/triggers/webhook.js.map +1 -0
  157. package/lib/esm/graph/nodes/utility/code.js +130 -0
  158. package/lib/esm/graph/nodes/utility/code.js.map +1 -0
  159. package/lib/esm/graph/nodes/utility/delay.js +57 -0
  160. package/lib/esm/graph/nodes/utility/delay.js.map +1 -0
  161. package/lib/esm/graph/nodes/utility/log.js +61 -0
  162. package/lib/esm/graph/nodes/utility/log.js.map +1 -0
  163. package/lib/esm/graph/nodes/utility/map.js +60 -0
  164. package/lib/esm/graph/nodes/utility/map.js.map +1 -0
  165. package/lib/esm/graph/nodes/utility/merge.js +58 -0
  166. package/lib/esm/graph/nodes/utility/merge.js.map +1 -0
  167. package/lib/esm/graph/nodes/utility/return.js +60 -0
  168. package/lib/esm/graph/nodes/utility/return.js.map +1 -0
  169. package/lib/esm/graph/nodes/utility/utility-log.js +68 -0
  170. package/lib/esm/graph/nodes/utility/utility-log.js.map +1 -0
  171. package/lib/esm/index.js +3 -3
  172. package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js +8 -4
  173. package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js.map +1 -1
  174. package/lib/esm/nest/graph/GraphWorkflowBoundaryValidation.js +2 -0
  175. package/lib/esm/nest/graph/GraphWorkflowBoundaryValidation.js.map +1 -1
  176. package/lib/esm/nest/graph/GraphWorkflowService.js +2 -14
  177. package/lib/esm/nest/graph/GraphWorkflowService.js.map +1 -1
  178. package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.cts +4 -7
  179. package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.mts +4 -7
  180. package/lib/types/graph/engine/execution/GraphExecutionContext.d.cts +6 -1
  181. package/lib/types/graph/engine/execution/GraphExecutionContext.d.mts +6 -1
  182. package/lib/types/graph/engine/execution/GraphExecutionEngine.d.cts +27 -0
  183. package/lib/types/graph/engine/execution/GraphExecutionEngine.d.mts +27 -0
  184. package/lib/types/graph/engine/execution/GraphExecutionFrame.d.cts +12 -0
  185. package/lib/types/graph/engine/execution/GraphExecutionFrame.d.mts +12 -0
  186. package/lib/types/graph/engine/execution/index.d.cts +0 -4
  187. package/lib/types/graph/engine/execution/index.d.mts +0 -4
  188. package/lib/types/graph/engine/index.d.cts +0 -7
  189. package/lib/types/graph/engine/index.d.mts +0 -7
  190. package/lib/types/graph/engine/loops/index.d.cts +0 -3
  191. package/lib/types/graph/engine/loops/index.d.mts +0 -3
  192. package/lib/types/graph/engine/validation/GraphLooseNodeValidation.d.cts +21 -0
  193. package/lib/types/graph/engine/validation/GraphLooseNodeValidation.d.mts +21 -0
  194. package/lib/types/graph/engine/validation/GraphParameterValidator.d.cts +25 -1
  195. package/lib/types/graph/engine/validation/GraphParameterValidator.d.mts +25 -1
  196. package/lib/types/graph/engine/validation/index.d.cts +1 -0
  197. package/lib/types/graph/engine/validation/index.d.mts +1 -0
  198. package/lib/types/graph/nodes/agents/agent.d.cts +31 -0
  199. package/lib/types/graph/nodes/agents/agent.d.mts +31 -0
  200. package/lib/types/graph/nodes/base.d.cts +58 -0
  201. package/lib/types/graph/nodes/base.d.mts +58 -0
  202. package/lib/types/graph/nodes/boundary/input-value.d.cts +6 -0
  203. package/lib/types/graph/nodes/boundary/input-value.d.mts +6 -0
  204. package/lib/types/graph/nodes/flow-control/break.d.cts +8 -0
  205. package/lib/types/graph/nodes/flow-control/break.d.mts +8 -0
  206. package/lib/types/graph/nodes/flow-control/error-boundary.d.cts +8 -0
  207. package/lib/types/graph/nodes/flow-control/error-boundary.d.mts +8 -0
  208. package/lib/types/graph/nodes/flow-control/human-approval.d.cts +8 -0
  209. package/lib/types/graph/nodes/flow-control/human-approval.d.mts +8 -0
  210. package/lib/types/graph/nodes/flow-control/if.d.cts +8 -0
  211. package/lib/types/graph/nodes/flow-control/if.d.mts +8 -0
  212. package/lib/types/graph/nodes/flow-control/parallel.d.cts +7 -0
  213. package/lib/types/graph/nodes/flow-control/parallel.d.mts +7 -0
  214. package/lib/types/graph/nodes/flow-control/switch.d.cts +23 -0
  215. package/lib/types/graph/nodes/flow-control/switch.d.mts +23 -0
  216. package/lib/types/graph/nodes/index.d.cts +93 -0
  217. package/lib/types/graph/nodes/index.d.mts +93 -0
  218. package/lib/types/graph/nodes/loops/foreach.d.cts +11 -0
  219. package/lib/types/graph/nodes/loops/foreach.d.mts +11 -0
  220. package/lib/types/graph/nodes/loops/loop-metadata.d.cts +20 -0
  221. package/lib/types/graph/nodes/loops/loop-metadata.d.mts +20 -0
  222. package/lib/types/graph/nodes/loops/until.d.cts +8 -0
  223. package/lib/types/graph/nodes/loops/until.d.mts +8 -0
  224. package/lib/types/graph/nodes/loops/while.d.cts +8 -0
  225. package/lib/types/graph/nodes/loops/while.d.mts +8 -0
  226. package/lib/types/graph/nodes/manifests.d.cts +62 -0
  227. package/lib/types/graph/nodes/manifests.d.mts +62 -0
  228. package/lib/types/graph/nodes/triggers/chat.d.cts +8 -0
  229. package/lib/types/graph/nodes/triggers/chat.d.mts +8 -0
  230. package/lib/types/graph/nodes/triggers/event.d.cts +6 -0
  231. package/lib/types/graph/nodes/triggers/event.d.mts +6 -0
  232. package/lib/types/graph/nodes/triggers/form.d.cts +6 -0
  233. package/lib/types/graph/nodes/triggers/form.d.mts +6 -0
  234. package/lib/types/graph/nodes/triggers/manual.d.cts +6 -0
  235. package/lib/types/graph/nodes/triggers/manual.d.mts +6 -0
  236. package/lib/types/graph/nodes/triggers/schedule.d.cts +6 -0
  237. package/lib/types/graph/nodes/triggers/schedule.d.mts +6 -0
  238. package/lib/types/graph/nodes/triggers/webhook.d.cts +6 -0
  239. package/lib/types/graph/nodes/triggers/webhook.d.mts +6 -0
  240. package/lib/types/graph/nodes/utility/code.d.cts +36 -0
  241. package/lib/types/graph/nodes/utility/code.d.mts +36 -0
  242. package/lib/types/graph/nodes/utility/delay.d.cts +7 -0
  243. package/lib/types/graph/nodes/utility/delay.d.mts +7 -0
  244. package/lib/types/graph/nodes/utility/log.d.cts +8 -0
  245. package/lib/types/graph/nodes/utility/log.d.mts +8 -0
  246. package/lib/types/graph/nodes/utility/map.d.cts +7 -0
  247. package/lib/types/graph/nodes/utility/map.d.mts +7 -0
  248. package/lib/types/graph/nodes/utility/merge.d.cts +7 -0
  249. package/lib/types/graph/nodes/utility/merge.d.mts +7 -0
  250. package/lib/types/graph/nodes/utility/return.d.cts +7 -0
  251. package/lib/types/graph/nodes/utility/return.d.mts +7 -0
  252. package/lib/types/graph/nodes/utility/utility-log.d.cts +10 -0
  253. package/lib/types/graph/nodes/utility/utility-log.d.mts +10 -0
  254. package/lib/types/index.d.cts +2 -2
  255. package/lib/types/index.d.mts +2 -2
  256. package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.cts +5 -3
  257. package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.mts +5 -3
  258. package/package.json +1 -1
  259. package/lib/cjs/graph/engine/execution/BreakGraphNodeExecutor.cjs +0 -24
  260. package/lib/cjs/graph/engine/execution/BreakGraphNodeExecutor.cjs.map +0 -1
  261. package/lib/cjs/graph/engine/execution/CodeGraphNodeExecutor.cjs +0 -103
  262. package/lib/cjs/graph/engine/execution/CodeGraphNodeExecutor.cjs.map +0 -1
  263. package/lib/cjs/graph/engine/execution/LogGraphNodeExecutor.cjs +0 -47
  264. package/lib/cjs/graph/engine/execution/LogGraphNodeExecutor.cjs.map +0 -1
  265. package/lib/cjs/graph/engine/execution/SwitchGraphNodeExecutor.cjs +0 -121
  266. package/lib/cjs/graph/engine/execution/SwitchGraphNodeExecutor.cjs.map +0 -1
  267. package/lib/cjs/graph/engine/loops/ForeachGraphNodeExecutor.cjs +0 -146
  268. package/lib/cjs/graph/engine/loops/ForeachGraphNodeExecutor.cjs.map +0 -1
  269. package/lib/cjs/graph/engine/loops/UntilGraphNodeExecutor.cjs +0 -102
  270. package/lib/cjs/graph/engine/loops/UntilGraphNodeExecutor.cjs.map +0 -1
  271. package/lib/cjs/graph/engine/loops/WhileGraphNodeExecutor.cjs +0 -103
  272. package/lib/cjs/graph/engine/loops/WhileGraphNodeExecutor.cjs.map +0 -1
  273. package/lib/esm/graph/engine/execution/BreakGraphNodeExecutor.js +0 -19
  274. package/lib/esm/graph/engine/execution/BreakGraphNodeExecutor.js.map +0 -1
  275. package/lib/esm/graph/engine/execution/CodeGraphNodeExecutor.js +0 -98
  276. package/lib/esm/graph/engine/execution/CodeGraphNodeExecutor.js.map +0 -1
  277. package/lib/esm/graph/engine/execution/LogGraphNodeExecutor.js +0 -42
  278. package/lib/esm/graph/engine/execution/LogGraphNodeExecutor.js.map +0 -1
  279. package/lib/esm/graph/engine/execution/SwitchGraphNodeExecutor.js +0 -116
  280. package/lib/esm/graph/engine/execution/SwitchGraphNodeExecutor.js.map +0 -1
  281. package/lib/esm/graph/engine/loops/ForeachGraphNodeExecutor.js +0 -141
  282. package/lib/esm/graph/engine/loops/ForeachGraphNodeExecutor.js.map +0 -1
  283. package/lib/esm/graph/engine/loops/UntilGraphNodeExecutor.js +0 -97
  284. package/lib/esm/graph/engine/loops/UntilGraphNodeExecutor.js.map +0 -1
  285. package/lib/esm/graph/engine/loops/WhileGraphNodeExecutor.js +0 -98
  286. package/lib/esm/graph/engine/loops/WhileGraphNodeExecutor.js.map +0 -1
  287. package/lib/types/graph/engine/execution/BreakGraphNodeExecutor.d.cts +0 -22
  288. package/lib/types/graph/engine/execution/BreakGraphNodeExecutor.d.mts +0 -22
  289. package/lib/types/graph/engine/execution/CodeGraphNodeExecutor.d.cts +0 -65
  290. package/lib/types/graph/engine/execution/CodeGraphNodeExecutor.d.mts +0 -65
  291. package/lib/types/graph/engine/execution/LogGraphNodeExecutor.d.cts +0 -25
  292. package/lib/types/graph/engine/execution/LogGraphNodeExecutor.d.mts +0 -25
  293. package/lib/types/graph/engine/execution/SwitchGraphNodeExecutor.d.cts +0 -43
  294. package/lib/types/graph/engine/execution/SwitchGraphNodeExecutor.d.mts +0 -43
  295. package/lib/types/graph/engine/loops/ForeachGraphNodeExecutor.d.cts +0 -35
  296. package/lib/types/graph/engine/loops/ForeachGraphNodeExecutor.d.mts +0 -35
  297. package/lib/types/graph/engine/loops/UntilGraphNodeExecutor.d.cts +0 -22
  298. package/lib/types/graph/engine/loops/UntilGraphNodeExecutor.d.mts +0 -22
  299. package/lib/types/graph/engine/loops/WhileGraphNodeExecutor.d.cts +0 -26
  300. package/lib/types/graph/engine/loops/WhileGraphNodeExecutor.d.mts +0 -26
@@ -1,65 +0,0 @@
1
- /**
2
- * @module integrations/graph/execution/CodeGraphNodeExecutor
3
- * @summary Executor for the Code flow-control node (DECAF-32 §22.4, DECAF-34 §7.5).
4
- * @description Executes user-authored JS/TS in a restricted sandbox via the
5
- * pluggable {@link CodeSandboxEvaluator}. The sandbox enforces the Code Node
6
- * restrictions: no imports, no requires, pure functions only (no system API
7
- * access). The executor reads the code from the node's `code` input port
8
- * (spliced from {@link CodeInputSchema}), the timeout from the node's graph
9
- * metadata, resolves the sandbox context from the node's input values and
10
- * execution context, invokes the evaluator, and returns the result on the
11
- * `result` output port.
12
- */
13
- import type { GraphNodeExecutor } from "./GraphNodeExecutor.d.mts";
14
- import type { GraphExecutionContext } from "./GraphExecutionContext.d.mts";
15
- import type { CodeSandboxEvaluator } from "./CodeSandboxEvaluator.d.mts";
16
- import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.mts";
17
- /**
18
- * Executor for `core.flow.code` nodes.
19
- *
20
- * The Code Node runs user-authored JS/TS in a restricted sandbox. The engine
21
- * does not implement the sandbox directly (§22.4); instead it delegates to the
22
- * pluggable {@link CodeSandboxEvaluator} registered on the engine config. When
23
- * no evaluator is registered, the executor throws
24
- * `GRAPH_CODE_SANDBOX_NOT_CONFIGURED`.
25
- *
26
- * The code is read from the `code` input port (spliced from
27
- * {@link CodeInputSchema}). The language is hardcoded to `"javascript"` for
28
- * now (the `language` field on `CodeInputSchema` has no `@input` so it is not
29
- * a port and not wired). The timeout is read from `graph.metadata.timeoutMs`.
30
- *
31
- * The sandbox context exposes:
32
- * - `$input` — the full input values object (all resolved port values).
33
- * - `$vars` — workflow variables (sourced from `context.metadata.vars`).
34
- * - `$item` / `$index` — current loop item and index.
35
- * - `$node` — outputs of upstream nodes.
36
- * - `$output` — the current draft output.
37
- *
38
- * The evaluator's return value is forwarded verbatim on the `result` output
39
- * port.
40
- */
41
- export declare class CodeGraphNodeExecutor implements GraphNodeExecutor {
42
- private readonly engine?;
43
- /**
44
- * @param engine - The graph execution engine (or any object exposing the
45
- * optional `codeSandboxEvaluator`). This mirrors the pattern used by
46
- * {@link SwitchGraphNodeExecutor} for code conditions.
47
- */
48
- constructor(engine?: {
49
- codeSandboxEvaluator?: CodeSandboxEvaluator;
50
- } | undefined);
51
- execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
52
- /**
53
- * Builds the {@link CodeSandboxContext} from the executor input and the
54
- * graph execution context.
55
- *
56
- * The `$input` value is the full input values object so the code can access
57
- * every resolved port value (including `code` itself via `$input.code`).
58
- *
59
- * The `$vars`, `$item`, `$index`, `$node`, and `$output` values are sourced
60
- * from `context.metadata` — the engine (or a wrapping loop executor) may
61
- * populate these when the Code node runs inside a loop body or a workflow
62
- * with variables.
63
- */
64
- private buildSandboxContext;
65
- }
@@ -1,25 +0,0 @@
1
- import type { GraphNodeExecutor } from "./GraphNodeExecutor.d.cts";
2
- import type { GraphExecutionContext } from "./GraphExecutionContext.d.cts";
3
- import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.cts";
4
- /**
5
- * Executor for `core.utility.log` / `core.flow.log` nodes.
6
- *
7
- * Reads the `value` input port, logs it through `context.logger` at the
8
- * configured level, and returns it unchanged on the `logged` output port.
9
- */
10
- export declare class LogGraphNodeExecutor implements GraphNodeExecutor {
11
- /**
12
- * Logs the `value` input through the run's `ctx.logger` and forwards it
13
- * unchanged on the `logged` output port.
14
- *
15
- * The level is read from the node's UI config (`node.props.level`, see
16
- * {@link logLevelOf}) and defaults to `info`. The emitted log line carries
17
- * the DECAF-48 run attributes and streams over `graph.run.log` through the
18
- * shared `ctx.logger` path (DECAF-48 Req-1).
19
- *
20
- * @param request - The node execution request (expects the `value` input).
21
- * @param context - The run-scoped execution context exposing `ctx.logger`.
22
- * @returns The node's output values keyed by port name (the `logged` port).
23
- */
24
- execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
25
- }
@@ -1,25 +0,0 @@
1
- import type { GraphNodeExecutor } from "./GraphNodeExecutor.d.mts";
2
- import type { GraphExecutionContext } from "./GraphExecutionContext.d.mts";
3
- import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.mts";
4
- /**
5
- * Executor for `core.utility.log` / `core.flow.log` nodes.
6
- *
7
- * Reads the `value` input port, logs it through `context.logger` at the
8
- * configured level, and returns it unchanged on the `logged` output port.
9
- */
10
- export declare class LogGraphNodeExecutor implements GraphNodeExecutor {
11
- /**
12
- * Logs the `value` input through the run's `ctx.logger` and forwards it
13
- * unchanged on the `logged` output port.
14
- *
15
- * The level is read from the node's UI config (`node.props.level`, see
16
- * {@link logLevelOf}) and defaults to `info`. The emitted log line carries
17
- * the DECAF-48 run attributes and streams over `graph.run.log` through the
18
- * shared `ctx.logger` path (DECAF-48 Req-1).
19
- *
20
- * @param request - The node execution request (expects the `value` input).
21
- * @param context - The run-scoped execution context exposing `ctx.logger`.
22
- * @returns The node's output values keyed by port name (the `logged` port).
23
- */
24
- execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
25
- }
@@ -1,43 +0,0 @@
1
- /**
2
- * @module integrations/graph/execution/SwitchGraphNodeExecutor
3
- * @summary Executor for the Switch flow-control node (DECAF-32 §22.2.2).
4
- * @description Evaluates each case's condition against the node's input and
5
- * routes the input to the first matching case's output port. Falls back to
6
- * the `default` output when no case matches. Supports both
7
- * {@link ConditionExpression} (graphical mode) and {@link CodeCondition}
8
- * (code mode via the pluggable {@link CodeSandboxEvaluator}).
9
- */
10
- import type { GraphNodeExecutor } from "./GraphNodeExecutor.d.cts";
11
- import type { GraphExecutionContext } from "./GraphExecutionContext.d.cts";
12
- import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.cts";
13
- import type { CodeSandboxEvaluator } from "./CodeSandboxEvaluator.d.cts";
14
- /**
15
- * Executor for `core.flow.switch` nodes.
16
- *
17
- * Evaluates each case's condition in order and routes the input to the
18
- * first matching case's output port. When no case matches:
19
- * - If `hasDefault` is `true`, routes to the `default` output port.
20
- * - If `hasDefault` is `false` (the default), throws `GRAPH_SWITCH_NO_MATCH`.
21
- *
22
- * Condition evaluation:
23
- * - `ConditionExpression` — evaluated via {@link ConditionExpressionEvaluator}.
24
- * - `CodeCondition` — evaluated via the pluggable {@link CodeSandboxEvaluator}
25
- * from the engine's config. Throws `GRAPH_CODE_SANDBOX_NOT_CONFIGURED`
26
- * when no evaluator is registered.
27
- */
28
- export declare class SwitchGraphNodeExecutor implements GraphNodeExecutor {
29
- private readonly engine?;
30
- private readonly expressionEvaluator;
31
- constructor(engine?: {
32
- codeSandboxEvaluator?: CodeSandboxEvaluator;
33
- } | undefined);
34
- execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
35
- /**
36
- * Evaluates a single switch case condition.
37
- */
38
- private evaluateCondition;
39
- /**
40
- * Evaluates a code condition via the pluggable sandbox evaluator.
41
- */
42
- private evaluateCodeCondition;
43
- }
@@ -1,43 +0,0 @@
1
- /**
2
- * @module integrations/graph/execution/SwitchGraphNodeExecutor
3
- * @summary Executor for the Switch flow-control node (DECAF-32 §22.2.2).
4
- * @description Evaluates each case's condition against the node's input and
5
- * routes the input to the first matching case's output port. Falls back to
6
- * the `default` output when no case matches. Supports both
7
- * {@link ConditionExpression} (graphical mode) and {@link CodeCondition}
8
- * (code mode via the pluggable {@link CodeSandboxEvaluator}).
9
- */
10
- import type { GraphNodeExecutor } from "./GraphNodeExecutor.d.mts";
11
- import type { GraphExecutionContext } from "./GraphExecutionContext.d.mts";
12
- import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.mts";
13
- import type { CodeSandboxEvaluator } from "./CodeSandboxEvaluator.d.mts";
14
- /**
15
- * Executor for `core.flow.switch` nodes.
16
- *
17
- * Evaluates each case's condition in order and routes the input to the
18
- * first matching case's output port. When no case matches:
19
- * - If `hasDefault` is `true`, routes to the `default` output port.
20
- * - If `hasDefault` is `false` (the default), throws `GRAPH_SWITCH_NO_MATCH`.
21
- *
22
- * Condition evaluation:
23
- * - `ConditionExpression` — evaluated via {@link ConditionExpressionEvaluator}.
24
- * - `CodeCondition` — evaluated via the pluggable {@link CodeSandboxEvaluator}
25
- * from the engine's config. Throws `GRAPH_CODE_SANDBOX_NOT_CONFIGURED`
26
- * when no evaluator is registered.
27
- */
28
- export declare class SwitchGraphNodeExecutor implements GraphNodeExecutor {
29
- private readonly engine?;
30
- private readonly expressionEvaluator;
31
- constructor(engine?: {
32
- codeSandboxEvaluator?: CodeSandboxEvaluator;
33
- } | undefined);
34
- execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
35
- /**
36
- * Evaluates a single switch case condition.
37
- */
38
- private evaluateCondition;
39
- /**
40
- * Evaluates a code condition via the pluggable sandbox evaluator.
41
- */
42
- private evaluateCodeCondition;
43
- }
@@ -1,35 +0,0 @@
1
- /**
2
- * @module integrations/graph/loops/ForeachGraphNodeExecutor
3
- * @summary Foreach loop node executor.
4
- * @description Executes a body workflow once per item (or per slice of items)
5
- * in the input array, collecting results in order. Supports a configurable
6
- * `slice` size and cooperative early termination via `core.flow.break` nodes
7
- * (which throw a {@link GraphBreakSignal}).
8
- */
9
- import type { GraphNodeExecutor } from "../execution/GraphNodeExecutor.d.cts";
10
- import type { GraphExecutionContext } from "../execution/GraphExecutionContext.d.cts";
11
- import type { GraphExecutionEngine } from "../execution/GraphExecutionEngine.d.cts";
12
- import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.cts";
13
- /**
14
- * Executor for `core.loop.foreach` nodes.
15
- *
16
- * Expects input:
17
- * - `items`: array of values to iterate over
18
- * - `slice?`: optional slice size (overrides `metadata.loop.slice`); default `1`
19
- * - `state?`: optional initial state
20
- *
21
- * Produces output:
22
- * - `results`: array of body outputs (in item order). When `slice > 1`, one
23
- * entry per slice (the body receives a slice array on the item port).
24
- * - `completed`: alias for `results` — the flow after the loop ends (the
25
- * collected results array).
26
- * - `iterations`: number of iterations executed
27
- * - `broken`: `true` when the loop was terminated early by a Break node
28
- * - `state?`: final state
29
- */
30
- export declare class ForeachGraphNodeExecutor implements GraphNodeExecutor {
31
- private readonly engine;
32
- constructor(engine: GraphExecutionEngine);
33
- execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
34
- private extractMetadata;
35
- }
@@ -1,35 +0,0 @@
1
- /**
2
- * @module integrations/graph/loops/ForeachGraphNodeExecutor
3
- * @summary Foreach loop node executor.
4
- * @description Executes a body workflow once per item (or per slice of items)
5
- * in the input array, collecting results in order. Supports a configurable
6
- * `slice` size and cooperative early termination via `core.flow.break` nodes
7
- * (which throw a {@link GraphBreakSignal}).
8
- */
9
- import type { GraphNodeExecutor } from "../execution/GraphNodeExecutor.d.mts";
10
- import type { GraphExecutionContext } from "../execution/GraphExecutionContext.d.mts";
11
- import type { GraphExecutionEngine } from "../execution/GraphExecutionEngine.d.mts";
12
- import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.mts";
13
- /**
14
- * Executor for `core.loop.foreach` nodes.
15
- *
16
- * Expects input:
17
- * - `items`: array of values to iterate over
18
- * - `slice?`: optional slice size (overrides `metadata.loop.slice`); default `1`
19
- * - `state?`: optional initial state
20
- *
21
- * Produces output:
22
- * - `results`: array of body outputs (in item order). When `slice > 1`, one
23
- * entry per slice (the body receives a slice array on the item port).
24
- * - `completed`: alias for `results` — the flow after the loop ends (the
25
- * collected results array).
26
- * - `iterations`: number of iterations executed
27
- * - `broken`: `true` when the loop was terminated early by a Break node
28
- * - `state?`: final state
29
- */
30
- export declare class ForeachGraphNodeExecutor implements GraphNodeExecutor {
31
- private readonly engine;
32
- constructor(engine: GraphExecutionEngine);
33
- execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
34
- private extractMetadata;
35
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * @module integrations/graph/loops/UntilGraphNodeExecutor
3
- * @summary Until loop node executor.
4
- * @description Executes a body workflow at least once and repeats until a condition is true.
5
- */
6
- import type { GraphNodeExecutor } from "../execution/GraphNodeExecutor.d.cts";
7
- import type { GraphExecutionContext } from "../execution/GraphExecutionContext.d.cts";
8
- import type { GraphExecutionEngine } from "../execution/GraphExecutionEngine.d.cts";
9
- import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.cts";
10
- /**
11
- * Executor for `core.loop.until` nodes.
12
- *
13
- * Executes the body at least once, then checks the condition. Repeats until
14
- * the condition evaluates to true.
15
- */
16
- export declare class UntilGraphNodeExecutor implements GraphNodeExecutor {
17
- private readonly engine;
18
- private readonly evaluator;
19
- constructor(engine: GraphExecutionEngine);
20
- execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
21
- private extractMetadata;
22
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * @module integrations/graph/loops/UntilGraphNodeExecutor
3
- * @summary Until loop node executor.
4
- * @description Executes a body workflow at least once and repeats until a condition is true.
5
- */
6
- import type { GraphNodeExecutor } from "../execution/GraphNodeExecutor.d.mts";
7
- import type { GraphExecutionContext } from "../execution/GraphExecutionContext.d.mts";
8
- import type { GraphExecutionEngine } from "../execution/GraphExecutionEngine.d.mts";
9
- import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.mts";
10
- /**
11
- * Executor for `core.loop.until` nodes.
12
- *
13
- * Executes the body at least once, then checks the condition. Repeats until
14
- * the condition evaluates to true.
15
- */
16
- export declare class UntilGraphNodeExecutor implements GraphNodeExecutor {
17
- private readonly engine;
18
- private readonly evaluator;
19
- constructor(engine: GraphExecutionEngine);
20
- execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
21
- private extractMetadata;
22
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * @module integrations/graph/loops/WhileGraphNodeExecutor
3
- * @summary While loop node executor.
4
- * @description Executes a body workflow repeatedly while a condition is true, enforcing a maximum iteration limit.
5
- */
6
- import type { GraphNodeExecutor } from "../execution/GraphNodeExecutor.d.cts";
7
- import type { GraphExecutionContext } from "../execution/GraphExecutionContext.d.cts";
8
- import type { GraphExecutionEngine } from "../execution/GraphExecutionEngine.d.cts";
9
- import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.cts";
10
- /**
11
- * Executor for `core.loop.while` nodes.
12
- *
13
- * Expects input:
14
- * - `state`: initial state
15
- *
16
- * Produces output:
17
- * - `state`: final state
18
- * - `iterations`: number of iterations executed
19
- */
20
- export declare class WhileGraphNodeExecutor implements GraphNodeExecutor {
21
- private readonly engine;
22
- private readonly evaluator;
23
- constructor(engine: GraphExecutionEngine);
24
- execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
25
- private extractMetadata;
26
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * @module integrations/graph/loops/WhileGraphNodeExecutor
3
- * @summary While loop node executor.
4
- * @description Executes a body workflow repeatedly while a condition is true, enforcing a maximum iteration limit.
5
- */
6
- import type { GraphNodeExecutor } from "../execution/GraphNodeExecutor.d.mts";
7
- import type { GraphExecutionContext } from "../execution/GraphExecutionContext.d.mts";
8
- import type { GraphExecutionEngine } from "../execution/GraphExecutionEngine.d.mts";
9
- import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.mts";
10
- /**
11
- * Executor for `core.loop.while` nodes.
12
- *
13
- * Expects input:
14
- * - `state`: initial state
15
- *
16
- * Produces output:
17
- * - `state`: final state
18
- * - `iterations`: number of iterations executed
19
- */
20
- export declare class WhileGraphNodeExecutor implements GraphNodeExecutor {
21
- private readonly engine;
22
- private readonly evaluator;
23
- constructor(engine: GraphExecutionEngine);
24
- execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
25
- private extractMetadata;
26
- }