@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
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IfFlowNode = void 0;
4
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
5
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
7
+ r = Reflect.decorate(decorators, target, key, desc);
8
+ else
9
+ for (var i = decorators.length - 1; i >= 0; i--)
10
+ if (d = decorators[i])
11
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
12
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
13
+ };
14
+ var __metadata = (this && this.__metadata) || function (k, v) {
15
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
16
+ return Reflect.metadata(k, v);
17
+ };
18
+ /**
19
+ * @module integrations/graph/nodes/flow-control/if
20
+ * @summary If flow-control node declaration (DECAF-32 §22.2.2).
21
+ * @description If — conditional branch. Evaluates a `ConditionExpression`
22
+ * (§22.3) and routes the input to the `then` or `else` output. A graph-level
23
+ * macro: the engine's planner recognises it as an ordinary executable node
24
+ * (§5.7) but it has no built-in executor — downstream projects register
25
+ * custom executors or compile it into composition APIs (§22.2.2).
26
+ */
27
+ const decorator_validation_1 = require("@decaf-ts/decorator-validation");
28
+ const ui_decorators_1 = require("@decaf-ts/ui-decorators");
29
+ const graph_1 = require("@decaf-ts/ui-decorators/graph");
30
+ const base_js_1 = require("./../base.cjs");
31
+ let IfFlowNode = class IfFlowNode extends base_js_1.GraphNode {
32
+ static execute(request) {
33
+ return { then: request.inputs["value"] ?? request.inputs };
34
+ }
35
+ };
36
+ exports.IfFlowNode = IfFlowNode;
37
+ __decorate([
38
+ (0, decorator_validation_1.required)(),
39
+ (0, ui_decorators_1.uielement)("textarea", {
40
+ label: "Input value",
41
+ placeholder: "Value to evaluate",
42
+ }),
43
+ (0, graph_1.input)({ handle: "value" }),
44
+ __metadata("design:type", Object)
45
+ ], IfFlowNode.prototype, "value", void 0);
46
+ __decorate([
47
+ (0, decorator_validation_1.required)(),
48
+ (0, ui_decorators_1.uielement)("input", {
49
+ label: "Then",
50
+ placeholder: "Output when condition is true",
51
+ }),
52
+ (0, graph_1.output)({ handle: "then" }),
53
+ __metadata("design:type", Object)
54
+ ], IfFlowNode.prototype, "then", void 0);
55
+ __decorate([
56
+ (0, decorator_validation_1.required)(),
57
+ (0, ui_decorators_1.uielement)("input", {
58
+ label: "Else",
59
+ placeholder: "Output when condition is false",
60
+ }),
61
+ (0, graph_1.output)({ handle: "else" }),
62
+ __metadata("design:type", Object)
63
+ ], IfFlowNode.prototype, "else", void 0);
64
+ exports.IfFlowNode = IfFlowNode = __decorate([
65
+ (0, graph_1.node)("core.flow.if", {
66
+ kind: "core.flow.if",
67
+ category: "Flow Control",
68
+ color: "#f59e0b",
69
+ icon: "ti-arrows-split-2",
70
+ width: 96,
71
+ height: 96,
72
+ labels: ["flow", "conditional", "branch"],
73
+ metadata: {
74
+ title: "If",
75
+ description: "Conditional branch. Evaluates the configured condition and routes the input to the matching output.",
76
+ condition: { op: "eq", left: { const: true }, right: { const: true } },
77
+ },
78
+ }),
79
+ (0, decorator_validation_1.model)()
80
+ ], IfFlowNode);
81
+ //# sourceMappingURL=if.js.map
82
+ //# sourceMappingURL=if.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/nodes/flow-control/if.cjs","sourceRoot":"","sources":["graph/nodes/flow-control/if.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU;QAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;;QAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YAAE,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;gBAAE,CAA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AAU,CAAC,CAAC;AAEf,8BAA8B"}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ParallelFlowNode = void 0;
4
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
5
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
7
+ r = Reflect.decorate(decorators, target, key, desc);
8
+ else
9
+ for (var i = decorators.length - 1; i >= 0; i--)
10
+ if (d = decorators[i])
11
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
12
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
13
+ };
14
+ var __metadata = (this && this.__metadata) || function (k, v) {
15
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
16
+ return Reflect.metadata(k, v);
17
+ };
18
+ /**
19
+ * @module integrations/graph/nodes/flow-control/parallel
20
+ * @summary Parallel flow-control node declaration (DECAF-32 §22.2.2).
21
+ * @description Parallel — splits execution into concurrent branches.
22
+ */
23
+ const decorator_validation_1 = require("@decaf-ts/decorator-validation");
24
+ const ui_decorators_1 = require("@decaf-ts/ui-decorators");
25
+ const graph_1 = require("@decaf-ts/ui-decorators/graph");
26
+ const base_js_1 = require("./../base.cjs");
27
+ let ParallelFlowNode = class ParallelFlowNode extends base_js_1.GraphNode {
28
+ static execute(request) {
29
+ return { branches: [request.inputs["value"] ?? request.inputs] };
30
+ }
31
+ };
32
+ exports.ParallelFlowNode = ParallelFlowNode;
33
+ __decorate([
34
+ (0, decorator_validation_1.required)(),
35
+ (0, ui_decorators_1.uielement)("textarea", {
36
+ label: "Input value",
37
+ placeholder: "Value to fan out",
38
+ }),
39
+ (0, graph_1.input)({ handle: "value" }),
40
+ __metadata("design:type", Object)
41
+ ], ParallelFlowNode.prototype, "value", void 0);
42
+ __decorate([
43
+ (0, decorator_validation_1.required)(),
44
+ (0, ui_decorators_1.uielement)("input", {
45
+ label: "Branches",
46
+ placeholder: "Collected branch outputs",
47
+ }),
48
+ (0, graph_1.output)({ handle: "branches" }),
49
+ __metadata("design:type", Array)
50
+ ], ParallelFlowNode.prototype, "branches", void 0);
51
+ exports.ParallelFlowNode = ParallelFlowNode = __decorate([
52
+ (0, graph_1.node)("core.flow.parallel", {
53
+ kind: "core.flow.parallel",
54
+ category: "Flow Control",
55
+ color: "#f59e0b",
56
+ icon: "ti-arrows-vertical",
57
+ width: 96,
58
+ height: 96,
59
+ labels: ["flow", "parallel", "concurrent"],
60
+ metadata: {
61
+ title: "Parallel",
62
+ description: "Splits execution into concurrent branches. All branches run in parallel and outputs are collected.",
63
+ branchCount: 2,
64
+ },
65
+ }),
66
+ (0, decorator_validation_1.model)()
67
+ ], ParallelFlowNode);
68
+ //# sourceMappingURL=parallel.js.map
69
+ //# sourceMappingURL=parallel.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/nodes/flow-control/parallel.cjs","sourceRoot":"","sources":["graph/nodes/flow-control/parallel.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU;QAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAA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AU,EAAE;QAClB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,kBAAkB;KAClC,CAAC;IACF,IAAA,aAAK,EAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;IAC1B,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,gBAAgB,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;AAChD,UAAU,CAAC;IACP,IAAA,+BAAQ,GAAE;IACV,IAAA,yBAAS,EAAC,OAAO,EAAE;QACf,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,0BAA0B;KAC1C,CAAC;IACF,IAAA,cAAM,EAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;IAC9B,UAAU,CAAC,aAAa,EAAE,KAAK,CAAC;CACnC,EAAE,gBAAgB,CAAC,SAAS,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC;AACnD,2BAAA,gBAAgB,GAAG,UAAU,CAAC;IAC1B,IAAA,YAAI,EAAC,oBAAoB,EAAE;QACvB,IAAI,EAAE,oBAAoB;QAC1B,QAAQ,EAAE,cAAc;QACxB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC;QAC1C,QAAQ,EAAE;YACN,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,oGAAoG;YACjH,WAAW,EAAE,CAAC;SACjB;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,gBAAgB,CAAC,CAAC;AAErB,oCAAoC"}
@@ -0,0 +1,190 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SwitchFlowNode = void 0;
4
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
5
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
7
+ r = Reflect.decorate(decorators, target, key, desc);
8
+ else
9
+ for (var i = decorators.length - 1; i >= 0; i--)
10
+ if (d = decorators[i])
11
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
12
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
13
+ };
14
+ var __metadata = (this && this.__metadata) || function (k, v) {
15
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
16
+ return Reflect.metadata(k, v);
17
+ };
18
+ /**
19
+ * @module integrations/graph/nodes/flow-control/switch
20
+ * @summary Switch flow-control node declaration (DECAF-32 §22.2.2).
21
+ * @description Switch — multi-branch. Routes the input to one of the case
22
+ * output ports or `default` based on matching conditions. Each case defines
23
+ * a `SwitchCaseCondition` (graphical or code mode) and a dedicated output
24
+ * port. Cases are stored in `metadata.switch.cases` and the renderer creates
25
+ * dynamic output ports from them (DECAF-32 §22.2.2).
26
+ *
27
+ * The node grows in height as cases are added. Each case gets its own
28
+ * output port on the right side, labeled with the case label.
29
+ */
30
+ const decorator_validation_1 = require("@decaf-ts/decorator-validation");
31
+ const ui_decorators_1 = require("@decaf-ts/ui-decorators");
32
+ const graph_1 = require("@decaf-ts/ui-decorators/graph");
33
+ const graph_2 = require("@decaf-ts/ui-decorators/graph");
34
+ const graph_3 = require("@decaf-ts/ui-decorators/graph");
35
+ const base_js_1 = require("./../base.cjs");
36
+ const GraphExecutionError_js_1 = require("./../../engine/errors/GraphExecutionError.cjs");
37
+ const ConditionExpressionEvaluator_js_1 = require("./../../engine/loops/ConditionExpressionEvaluator.cjs");
38
+ function readSwitchMetadata(context) {
39
+ const parameters = (context.node.parameters ?? {});
40
+ const metadata = context.node.metadata;
41
+ const raw = parameters["switch"] ?? metadata?.["switch"];
42
+ const switchMeta = raw;
43
+ if (!switchMeta || !Array.isArray(switchMeta.cases)) {
44
+ return { cases: [], defaultPort: "default", hasDefault: false };
45
+ }
46
+ return {
47
+ cases: switchMeta.cases,
48
+ defaultPort: switchMeta.defaultPort ?? "default",
49
+ hasDefault: switchMeta.hasDefault === true,
50
+ };
51
+ }
52
+ function isCodeCondition(cond) {
53
+ return (typeof cond === "object" && cond !== null && "type" in cond && cond.type === "code");
54
+ }
55
+ function isConditionExpression(cond) {
56
+ return (typeof cond === "object" && cond !== null && "op" in cond && typeof cond.op === "string");
57
+ }
58
+ async function evaluateSwitchCondition(condition, inputValue, fullInput, context) {
59
+ if (isCodeCondition(condition)) {
60
+ const evaluator = context.engine?.codeSandboxEvaluator;
61
+ if (!evaluator) {
62
+ throw new GraphExecutionError_js_1.GraphExecutionError("Code conditions require a CodeSandboxEvaluator to be registered in GraphExecutionEngineConfig.codeSandboxEvaluator", "GRAPH_CODE_SANDBOX_NOT_CONFIGURED", { code: condition.code });
63
+ }
64
+ await context.log("Evaluating code condition", {
65
+ language: condition.language ?? "javascript",
66
+ });
67
+ const md = context.metadata;
68
+ const result = await evaluator.evaluate({
69
+ code: condition.code,
70
+ language: condition.language,
71
+ input: fullInput,
72
+ vars: md?.vars ?? undefined,
73
+ item: md?.item,
74
+ index: md?.index,
75
+ nodes: md?.nodes ??
76
+ undefined,
77
+ logger: context.logger,
78
+ });
79
+ return !!result;
80
+ }
81
+ if (isConditionExpression(condition)) {
82
+ return new ConditionExpressionEvaluator_js_1.ConditionExpressionEvaluator().evaluate(condition, inputValue);
83
+ }
84
+ throw new GraphExecutionError_js_1.GraphExecutionError("Unknown switch case condition type — must be ConditionExpression (op) or CodeCondition (type: 'code')", "GRAPH_UNKNOWN_SWITCH_CONDITION", { condition });
85
+ }
86
+ let SwitchFlowNode = class SwitchFlowNode extends base_js_1.GraphNode {
87
+ static async execute(request, context) {
88
+ const meta = readSwitchMetadata(context);
89
+ const input = request.inputs;
90
+ const inputValue = input["value"] ?? input;
91
+ for (const switchCase of meta.cases) {
92
+ const matches = await evaluateSwitchCondition(switchCase.condition, inputValue, input, context);
93
+ if (matches) {
94
+ return { [switchCase.outputPort]: inputValue };
95
+ }
96
+ }
97
+ if (meta.hasDefault !== true) {
98
+ throw new GraphExecutionError_js_1.GraphExecutionError("No switch case matched and default port is not enabled", "GRAPH_SWITCH_NO_MATCH", { cases: meta.cases.map((c) => c.id) });
99
+ }
100
+ const defaultPort = meta.defaultPort ?? "default";
101
+ return { [defaultPort]: inputValue };
102
+ }
103
+ /**
104
+ * Computes the node's ports, size, and data patch from the given switch
105
+ * metadata. Each case gets its own output port on the right side; the
106
+ * `default` port always renders **last** (DECAF-32 §21 port-ordering rule,
107
+ * DECAF-34 §6.2). When `hasDefault` is `false`, the `default` output port
108
+ * is omitted entirely. The node grows in height as cases are added.
109
+ *
110
+ * @param meta - The switch metadata patch (`metadata.switch`), carrying
111
+ * the cases and the optional default-port configuration.
112
+ * @returns The computed {@link NodeMetadataChange}: reordered ports
113
+ * (case outputs inserted before the optional default), the grown size,
114
+ * and the `switchMetadata` data patch.
115
+ */
116
+ static applyMetadata(meta) {
117
+ const definition = (0, graph_3.graphDefinitionOf)(this);
118
+ const defaultPortName = meta.defaultPort ?? "default";
119
+ const hasDefault = meta.hasDefault === true;
120
+ // Base ports excluding any port that collides with a case output port.
121
+ const basePorts = definition.ports.filter((p) => !meta.cases.some((c) => c.outputPort === p.property));
122
+ // Separate the default output port so it can be placed last (or omitted).
123
+ const nonDefaultPorts = basePorts.filter((p) => p.property !== defaultPortName);
124
+ const defaultPort = basePorts.find((p) => p.property === defaultPortName);
125
+ const casePorts = meta.cases.map((c) => ({
126
+ property: c.outputPort,
127
+ name: c.label,
128
+ direction: graph_2.PortDirection.OUTPUT,
129
+ label: c.label,
130
+ required: false,
131
+ hidden: false,
132
+ path: c.outputPort,
133
+ }));
134
+ // Port order: inputs/non-default outputs first, case outputs next, default last.
135
+ const ports = [...nonDefaultPorts, ...casePorts];
136
+ if (hasDefault && defaultPort) {
137
+ ports.push(defaultPort);
138
+ }
139
+ const caseCount = meta.cases.length;
140
+ return {
141
+ ports,
142
+ size: (0, graph_2.graphNodeSizeOf)(definition, { cases: caseCount }),
143
+ dataPatch: { switchMetadata: meta },
144
+ };
145
+ }
146
+ };
147
+ exports.SwitchFlowNode = SwitchFlowNode;
148
+ __decorate([
149
+ (0, decorator_validation_1.required)(),
150
+ (0, ui_decorators_1.uielement)("textarea", { label: "Input value", placeholder: "Value to switch on" }),
151
+ (0, graph_1.input)({ handle: "value" }),
152
+ __metadata("design:type", Object)
153
+ ], SwitchFlowNode.prototype, "value", void 0);
154
+ __decorate([
155
+ (0, decorator_validation_1.required)(),
156
+ (0, ui_decorators_1.uielement)("input", { label: "Default", placeholder: "Default output when no case matches" }),
157
+ (0, graph_1.output)({ handle: "default" }),
158
+ __metadata("design:type", Object)
159
+ ], SwitchFlowNode.prototype, "default", void 0);
160
+ exports.SwitchFlowNode = SwitchFlowNode = __decorate([
161
+ (0, graph_1.node)("core.flow.switch", {
162
+ kind: "core.flow.switch",
163
+ category: "Flow Control",
164
+ color: "#f59e0b",
165
+ icon: "ti-arrows-shuffle",
166
+ width: 120,
167
+ height: 140,
168
+ sizeRules: [
169
+ {
170
+ type: "parameterCount",
171
+ parameter: "cases",
172
+ dimension: "height",
173
+ perItem: 24,
174
+ },
175
+ ],
176
+ labels: ["flow", "switch", "multi-branch"],
177
+ metadata: {
178
+ title: "Switch",
179
+ description: "Multi-branch switch. Routes the input to the first matching case output, or the default output.",
180
+ switch: {
181
+ cases: [],
182
+ defaultPort: "default",
183
+ hasDefault: false,
184
+ },
185
+ },
186
+ }),
187
+ (0, decorator_validation_1.model)()
188
+ ], SwitchFlowNode);
189
+ //# sourceMappingURL=switch.js.map
190
+ //# sourceMappingURL=switch.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/nodes/flow-control/switch.cjs","sourceRoot":"","sources":["graph/nodes/flow-control/switch.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,U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,SAAS;gBACtB,UAAU,EAAE,KAAK;aACpB;SACJ;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,cAAc,CAAC,CAAC;AAEnB,kCAAkC"}
@@ -0,0 +1,162 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.GRAPH_BUILT_IN_NODE_CLASSES_BY_KIND = exports.GRAPH_BOUNDARY_NODES = exports.GRAPH_LOOP_NODES = exports.GRAPH_UTILITY_NODES = exports.GRAPH_FLOW_CONTROL_NODES = exports.GRAPH_TRIGGER_NODES = void 0;
18
+ /**
19
+ * @module integrations/graph/nodes
20
+ * @summary Shared node kind declarations (DECAF-32 §22.2, DECAF-50 Phase A).
21
+ * @description Canonical `@node`-decorated classes for the ALFRED-5 node kind
22
+ * taxonomy, laid out one node per file under `nodes/<category>/<node>.ts`:
23
+ * triggers (§22.2.1), flow-control and utility nodes (§22.2.2–22.2.3), the
24
+ * Agent node (§21.3), the three loop kinds (`core.loop.foreach/while/until`,
25
+ * §5.9), and the workflow input-value boundary node. Shared non-node support
26
+ * (the base class and manifests) lives in sibling files under the same tree;
27
+ * category styles remain in `@decaf-ts/ui-decorators` (`graph/category-styles`).
28
+ * Consumers (for-angular, ALFRED, etc.) import these declarations
29
+ * to populate node palettes, registries, and reference snapshots.
30
+ */
31
+ __exportStar(require("./base.cjs"), exports);
32
+ __exportStar(require("./flow-control/break.cjs"), exports);
33
+ __exportStar(require("./flow-control/error-boundary.cjs"), exports);
34
+ __exportStar(require("./flow-control/human-approval.cjs"), exports);
35
+ __exportStar(require("./flow-control/if.cjs"), exports);
36
+ __exportStar(require("./flow-control/parallel.cjs"), exports);
37
+ __exportStar(require("./flow-control/switch.cjs"), exports);
38
+ __exportStar(require("./utility/code.cjs"), exports);
39
+ __exportStar(require("./utility/delay.cjs"), exports);
40
+ __exportStar(require("./utility/log.cjs"), exports);
41
+ __exportStar(require("./utility/map.cjs"), exports);
42
+ __exportStar(require("./utility/merge.cjs"), exports);
43
+ __exportStar(require("./utility/return.cjs"), exports);
44
+ __exportStar(require("./utility/utility-log.cjs"), exports);
45
+ __exportStar(require("./triggers/chat.cjs"), exports);
46
+ __exportStar(require("./triggers/event.cjs"), exports);
47
+ __exportStar(require("./triggers/form.cjs"), exports);
48
+ __exportStar(require("./triggers/manual.cjs"), exports);
49
+ __exportStar(require("./triggers/schedule.cjs"), exports);
50
+ __exportStar(require("./triggers/webhook.cjs"), exports);
51
+ __exportStar(require("./agents/agent.cjs"), exports);
52
+ __exportStar(require("./loops/foreach.cjs"), exports);
53
+ __exportStar(require("./loops/until.cjs"), exports);
54
+ __exportStar(require("./loops/while.cjs"), exports);
55
+ const agent_js_1 = require("./agents/agent.cjs");
56
+ __exportStar(require("./boundary/input-value.cjs"), exports);
57
+ __exportStar(require("./manifests.cjs"), exports);
58
+ const break_js_1 = require("./flow-control/break.cjs");
59
+ const error_boundary_js_1 = require("./flow-control/error-boundary.cjs");
60
+ const human_approval_js_1 = require("./flow-control/human-approval.cjs");
61
+ const if_js_1 = require("./flow-control/if.cjs");
62
+ const parallel_js_1 = require("./flow-control/parallel.cjs");
63
+ const switch_js_1 = require("./flow-control/switch.cjs");
64
+ const code_js_1 = require("./utility/code.cjs");
65
+ const delay_js_1 = require("./utility/delay.cjs");
66
+ const log_js_1 = require("./utility/log.cjs");
67
+ const map_js_1 = require("./utility/map.cjs");
68
+ const merge_js_1 = require("./utility/merge.cjs");
69
+ const return_js_1 = require("./utility/return.cjs");
70
+ const utility_log_js_1 = require("./utility/utility-log.cjs");
71
+ const chat_js_1 = require("./triggers/chat.cjs");
72
+ const event_js_1 = require("./triggers/event.cjs");
73
+ const form_js_1 = require("./triggers/form.cjs");
74
+ const manual_js_1 = require("./triggers/manual.cjs");
75
+ const schedule_js_1 = require("./triggers/schedule.cjs");
76
+ const webhook_js_1 = require("./triggers/webhook.cjs");
77
+ const foreach_js_1 = require("./loops/foreach.cjs");
78
+ const until_js_1 = require("./loops/until.cjs");
79
+ const while_js_1 = require("./loops/while.cjs");
80
+ const input_value_js_1 = require("./boundary/input-value.cjs");
81
+ /**
82
+ * All built-in trigger node constructors.
83
+ */
84
+ exports.GRAPH_TRIGGER_NODES = [
85
+ manual_js_1.ManualTriggerNode,
86
+ webhook_js_1.WebhookTriggerNode,
87
+ schedule_js_1.ScheduleTriggerNode,
88
+ event_js_1.EventTriggerNode,
89
+ form_js_1.FormTriggerNode,
90
+ chat_js_1.ChatTriggerNode,
91
+ ];
92
+ /**
93
+ * All built-in flow-control node constructors (branching/routing/looping/
94
+ * termination semantics).
95
+ */
96
+ exports.GRAPH_FLOW_CONTROL_NODES = [
97
+ if_js_1.IfFlowNode,
98
+ switch_js_1.SwitchFlowNode,
99
+ parallel_js_1.ParallelFlowNode,
100
+ merge_js_1.MergeFlowNode,
101
+ delay_js_1.DelayFlowNode,
102
+ error_boundary_js_1.ErrorBoundaryFlowNode,
103
+ human_approval_js_1.HumanApprovalFlowNode,
104
+ return_js_1.ReturnFlowNode,
105
+ log_js_1.LogFlowNode,
106
+ break_js_1.BreakFlowNode,
107
+ ];
108
+ /**
109
+ * All built-in utility node constructors (side-effect/data-transformation
110
+ * semantics — no branching).
111
+ */
112
+ exports.GRAPH_UTILITY_NODES = [
113
+ code_js_1.CodeNode,
114
+ map_js_1.MapNode,
115
+ utility_log_js_1.UtilityLogNode,
116
+ ];
117
+ /**
118
+ * All built-in loop node constructors (shared declarations of the
119
+ * `core.loop.*` system kinds).
120
+ */
121
+ exports.GRAPH_LOOP_NODES = [
122
+ foreach_js_1.GraphForeachLoopNode,
123
+ while_js_1.GraphWhileLoopNode,
124
+ until_js_1.GraphUntilLoopNode,
125
+ ];
126
+ /**
127
+ * All built-in boundary node constructors.
128
+ */
129
+ exports.GRAPH_BOUNDARY_NODES = [input_value_js_1.GraphInputValueNode];
130
+ /**
131
+ * Kind→class map for every built-in node kind the backend executes
132
+ * (DECAF-50 §4.26 R2-1). The catalogue derives each registration's
133
+ * manifest and executor from the class, so this is the single authority for
134
+ * built-in node behaviour.
135
+ */
136
+ exports.GRAPH_BUILT_IN_NODE_CLASSES_BY_KIND = {
137
+ "core.trigger.manual": manual_js_1.ManualTriggerNode,
138
+ "core.trigger.webhook": webhook_js_1.WebhookTriggerNode,
139
+ "core.trigger.schedule": schedule_js_1.ScheduleTriggerNode,
140
+ "core.trigger.event": event_js_1.EventTriggerNode,
141
+ "core.trigger.form": form_js_1.FormTriggerNode,
142
+ "core.trigger.chat": chat_js_1.ChatTriggerNode,
143
+ "core.flow.if": if_js_1.IfFlowNode,
144
+ "core.flow.switch": switch_js_1.SwitchFlowNode,
145
+ "core.flow.parallel": parallel_js_1.ParallelFlowNode,
146
+ "core.flow.merge": merge_js_1.MergeFlowNode,
147
+ "core.utility.map": map_js_1.MapNode,
148
+ "core.flow.delay": delay_js_1.DelayFlowNode,
149
+ "core.flow.errorBoundary": error_boundary_js_1.ErrorBoundaryFlowNode,
150
+ "core.flow.humanApproval": human_approval_js_1.HumanApprovalFlowNode,
151
+ "core.flow.return": return_js_1.ReturnFlowNode,
152
+ "core.utility.code": code_js_1.CodeNode,
153
+ "core.flow.log": log_js_1.LogFlowNode,
154
+ "core.utility.log": utility_log_js_1.UtilityLogNode,
155
+ "core.flow.break": break_js_1.BreakFlowNode,
156
+ "core.agent": agent_js_1.AgentNode,
157
+ "core.loop.foreach": foreach_js_1.GraphForeachLoopNode,
158
+ "core.loop.while": while_js_1.GraphWhileLoopNode,
159
+ "core.loop.until": until_js_1.GraphUntilLoopNode,
160
+ };
161
+ //# sourceMappingURL=index.js.map
162
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/nodes/index.cjs","sourceRoot":"","sources":["graph/nodes/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;GAYG;AACH,4CAA0B;AAC1B,0DAAwC;AACxC,mEAAiD;AACjD,mEAAiD;AACjD,uDAAqC;AACrC,6DAA2C;AAC3C,2DAAyC;AACzC,oDAAkC;AAClC,qDAAmC;AACnC,mDAAiC;AACjC,mDAAiC;AACjC,qDAAmC;AACnC,sDAAoC;AACpC,2DAAyC;AACzC,qDAAmC;AACnC,sDAAoC;AACpC,qDAAmC;AACnC,uDAAqC;AACrC,yDAAuC;AACvC,wDAAsC;AACtC,oDAAkC;AAClC,qDAAmC;AACnC,mDAAiC;AACjC,mDAAiC;AACjC,gDAA8C;AAC9C,4DAA0C;AAC1C,iDAA+B;AAC/B,sDAAwD;AACxD,wEAAyE;AACzE,wEAAyE;AACzE,gDAAkD;AAClD,4DAA8D;AAC9D,wDAA0D;AAC1D,+CAA6C;AAC7C,iDAAmD;AACnD,6CAA+C;AAC/C,6CAA2C;AAC3C,iDAAmD;AACnD,mDAAqD;AACrD,6DAA0D;AAC1D,gDAAqD;AACrD,kDAAuD;AACvD,gDAAqD;AACrD,oDAAyD;AACzD,wDAA6D;AAC7D,sDAA2D;AAC3D,mDAA0D;AAC1D,+CAAsD;AACtD,+CAAsD;AACtD,8DAAgE;AAChE;;GAEG;AACU,QAAA,mBAAmB,GAAG;IAC/B,6BAAiB;IACjB,+BAAkB;IAClB,iCAAmB;IACnB,2BAAgB;IAChB,yBAAe;IACf,yBAAe;CAClB,CAAC;AACF;;;GAGG;AACU,QAAA,wBAAwB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