@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,23 @@
1
+ import type { NodeMetadataChange, SwitchNodeMetadata } from "@decaf-ts/ui-decorators/graph";
2
+ import { GraphNode } from "../base.d.cts";
3
+ import type { GraphExecutionContext } from "../../engine/execution/GraphExecutionContext.d.cts";
4
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.cts";
5
+ export declare class SwitchFlowNode extends GraphNode {
6
+ static execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
7
+ value: unknown;
8
+ default: unknown;
9
+ /**
10
+ * Computes the node's ports, size, and data patch from the given switch
11
+ * metadata. Each case gets its own output port on the right side; the
12
+ * `default` port always renders **last** (DECAF-32 §21 port-ordering rule,
13
+ * DECAF-34 §6.2). When `hasDefault` is `false`, the `default` output port
14
+ * is omitted entirely. The node grows in height as cases are added.
15
+ *
16
+ * @param meta - The switch metadata patch (`metadata.switch`), carrying
17
+ * the cases and the optional default-port configuration.
18
+ * @returns The computed {@link NodeMetadataChange}: reordered ports
19
+ * (case outputs inserted before the optional default), the grown size,
20
+ * and the `switchMetadata` data patch.
21
+ */
22
+ static applyMetadata(meta: SwitchNodeMetadata): NodeMetadataChange;
23
+ }
@@ -0,0 +1,23 @@
1
+ import type { NodeMetadataChange, SwitchNodeMetadata } from "@decaf-ts/ui-decorators/graph";
2
+ import { GraphNode } from "../base.d.mts";
3
+ import type { GraphExecutionContext } from "../../engine/execution/GraphExecutionContext.d.mts";
4
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.mts";
5
+ export declare class SwitchFlowNode extends GraphNode {
6
+ static execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
7
+ value: unknown;
8
+ default: unknown;
9
+ /**
10
+ * Computes the node's ports, size, and data patch from the given switch
11
+ * metadata. Each case gets its own output port on the right side; the
12
+ * `default` port always renders **last** (DECAF-32 §21 port-ordering rule,
13
+ * DECAF-34 §6.2). When `hasDefault` is `false`, the `default` output port
14
+ * is omitted entirely. The node grows in height as cases are added.
15
+ *
16
+ * @param meta - The switch metadata patch (`metadata.switch`), carrying
17
+ * the cases and the optional default-port configuration.
18
+ * @returns The computed {@link NodeMetadataChange}: reordered ports
19
+ * (case outputs inserted before the optional default), the grown size,
20
+ * and the `switchMetadata` data patch.
21
+ */
22
+ static applyMetadata(meta: SwitchNodeMetadata): NodeMetadataChange;
23
+ }
@@ -0,0 +1,93 @@
1
+ /**
2
+ * @module integrations/graph/nodes
3
+ * @summary Shared node kind declarations (DECAF-32 §22.2, DECAF-50 Phase A).
4
+ * @description Canonical `@node`-decorated classes for the ALFRED-5 node kind
5
+ * taxonomy, laid out one node per file under `nodes/<category>/<node>.ts`:
6
+ * triggers (§22.2.1), flow-control and utility nodes (§22.2.2–22.2.3), the
7
+ * Agent node (§21.3), the three loop kinds (`core.loop.foreach/while/until`,
8
+ * §5.9), and the workflow input-value boundary node. Shared non-node support
9
+ * (the base class and manifests) lives in sibling files under the same tree;
10
+ * category styles remain in `@decaf-ts/ui-decorators` (`graph/category-styles`).
11
+ * Consumers (for-angular, ALFRED, etc.) import these declarations
12
+ * to populate node palettes, registries, and reference snapshots.
13
+ */
14
+ export * from "./base.d.cts";
15
+ export * from "./flow-control/break.d.cts";
16
+ export * from "./flow-control/error-boundary.d.cts";
17
+ export * from "./flow-control/human-approval.d.cts";
18
+ export * from "./flow-control/if.d.cts";
19
+ export * from "./flow-control/parallel.d.cts";
20
+ export * from "./flow-control/switch.d.cts";
21
+ export * from "./utility/code.d.cts";
22
+ export * from "./utility/delay.d.cts";
23
+ export * from "./utility/log.d.cts";
24
+ export * from "./utility/map.d.cts";
25
+ export * from "./utility/merge.d.cts";
26
+ export * from "./utility/return.d.cts";
27
+ export * from "./utility/utility-log.d.cts";
28
+ export * from "./triggers/chat.d.cts";
29
+ export * from "./triggers/event.d.cts";
30
+ export * from "./triggers/form.d.cts";
31
+ export * from "./triggers/manual.d.cts";
32
+ export * from "./triggers/schedule.d.cts";
33
+ export * from "./triggers/webhook.d.cts";
34
+ export * from "./agents/agent.d.cts";
35
+ export * from "./loops/foreach.d.cts";
36
+ export * from "./loops/until.d.cts";
37
+ export * from "./loops/while.d.cts";
38
+ export * from "./boundary/input-value.d.cts";
39
+ export * from "./manifests.d.cts";
40
+ import type { GraphNodeClass } from "./base.d.cts";
41
+ import { BreakFlowNode } from "./flow-control/break.d.cts";
42
+ import { ErrorBoundaryFlowNode } from "./flow-control/error-boundary.d.cts";
43
+ import { HumanApprovalFlowNode } from "./flow-control/human-approval.d.cts";
44
+ import { IfFlowNode } from "./flow-control/if.d.cts";
45
+ import { ParallelFlowNode } from "./flow-control/parallel.d.cts";
46
+ import { SwitchFlowNode } from "./flow-control/switch.d.cts";
47
+ import { CodeNode } from "./utility/code.d.cts";
48
+ import { DelayFlowNode } from "./utility/delay.d.cts";
49
+ import { LogFlowNode } from "./utility/log.d.cts";
50
+ import { MapNode } from "./utility/map.d.cts";
51
+ import { MergeFlowNode } from "./utility/merge.d.cts";
52
+ import { ReturnFlowNode } from "./utility/return.d.cts";
53
+ import { UtilityLogNode } from "./utility/utility-log.d.cts";
54
+ import { ChatTriggerNode } from "./triggers/chat.d.cts";
55
+ import { EventTriggerNode } from "./triggers/event.d.cts";
56
+ import { FormTriggerNode } from "./triggers/form.d.cts";
57
+ import { ManualTriggerNode } from "./triggers/manual.d.cts";
58
+ import { ScheduleTriggerNode } from "./triggers/schedule.d.cts";
59
+ import { WebhookTriggerNode } from "./triggers/webhook.d.cts";
60
+ import { GraphForeachLoopNode } from "./loops/foreach.d.cts";
61
+ import { GraphUntilLoopNode } from "./loops/until.d.cts";
62
+ import { GraphWhileLoopNode } from "./loops/while.d.cts";
63
+ import { GraphInputValueNode } from "./boundary/input-value.d.cts";
64
+ /**
65
+ * All built-in trigger node constructors.
66
+ */
67
+ export declare const GRAPH_TRIGGER_NODES: readonly [typeof ManualTriggerNode, typeof WebhookTriggerNode, typeof ScheduleTriggerNode, typeof EventTriggerNode, typeof FormTriggerNode, typeof ChatTriggerNode];
68
+ /**
69
+ * All built-in flow-control node constructors (branching/routing/looping/
70
+ * termination semantics).
71
+ */
72
+ export declare const GRAPH_FLOW_CONTROL_NODES: readonly [typeof IfFlowNode, typeof SwitchFlowNode, typeof ParallelFlowNode, typeof MergeFlowNode, typeof DelayFlowNode, typeof ErrorBoundaryFlowNode, typeof HumanApprovalFlowNode, typeof ReturnFlowNode, typeof LogFlowNode, typeof BreakFlowNode];
73
+ /**
74
+ * All built-in utility node constructors (side-effect/data-transformation
75
+ * semantics — no branching).
76
+ */
77
+ export declare const GRAPH_UTILITY_NODES: readonly [typeof CodeNode, typeof MapNode, typeof UtilityLogNode];
78
+ /**
79
+ * All built-in loop node constructors (shared declarations of the
80
+ * `core.loop.*` system kinds).
81
+ */
82
+ export declare const GRAPH_LOOP_NODES: readonly [typeof GraphForeachLoopNode, typeof GraphWhileLoopNode, typeof GraphUntilLoopNode];
83
+ /**
84
+ * All built-in boundary node constructors.
85
+ */
86
+ export declare const GRAPH_BOUNDARY_NODES: readonly [typeof GraphInputValueNode];
87
+ /**
88
+ * Kind→class map for every built-in node kind the backend executes
89
+ * (DECAF-50 §4.26 R2-1). The catalogue derives each registration's
90
+ * manifest and executor from the class, so this is the single authority for
91
+ * built-in node behaviour.
92
+ */
93
+ export declare const GRAPH_BUILT_IN_NODE_CLASSES_BY_KIND: Record<string, GraphNodeClass>;
@@ -0,0 +1,93 @@
1
+ /**
2
+ * @module integrations/graph/nodes
3
+ * @summary Shared node kind declarations (DECAF-32 §22.2, DECAF-50 Phase A).
4
+ * @description Canonical `@node`-decorated classes for the ALFRED-5 node kind
5
+ * taxonomy, laid out one node per file under `nodes/<category>/<node>.ts`:
6
+ * triggers (§22.2.1), flow-control and utility nodes (§22.2.2–22.2.3), the
7
+ * Agent node (§21.3), the three loop kinds (`core.loop.foreach/while/until`,
8
+ * §5.9), and the workflow input-value boundary node. Shared non-node support
9
+ * (the base class and manifests) lives in sibling files under the same tree;
10
+ * category styles remain in `@decaf-ts/ui-decorators` (`graph/category-styles`).
11
+ * Consumers (for-angular, ALFRED, etc.) import these declarations
12
+ * to populate node palettes, registries, and reference snapshots.
13
+ */
14
+ export * from "./base.d.mts";
15
+ export * from "./flow-control/break.d.mts";
16
+ export * from "./flow-control/error-boundary.d.mts";
17
+ export * from "./flow-control/human-approval.d.mts";
18
+ export * from "./flow-control/if.d.mts";
19
+ export * from "./flow-control/parallel.d.mts";
20
+ export * from "./flow-control/switch.d.mts";
21
+ export * from "./utility/code.d.mts";
22
+ export * from "./utility/delay.d.mts";
23
+ export * from "./utility/log.d.mts";
24
+ export * from "./utility/map.d.mts";
25
+ export * from "./utility/merge.d.mts";
26
+ export * from "./utility/return.d.mts";
27
+ export * from "./utility/utility-log.d.mts";
28
+ export * from "./triggers/chat.d.mts";
29
+ export * from "./triggers/event.d.mts";
30
+ export * from "./triggers/form.d.mts";
31
+ export * from "./triggers/manual.d.mts";
32
+ export * from "./triggers/schedule.d.mts";
33
+ export * from "./triggers/webhook.d.mts";
34
+ export * from "./agents/agent.d.mts";
35
+ export * from "./loops/foreach.d.mts";
36
+ export * from "./loops/until.d.mts";
37
+ export * from "./loops/while.d.mts";
38
+ export * from "./boundary/input-value.d.mts";
39
+ export * from "./manifests.d.mts";
40
+ import type { GraphNodeClass } from "./base.d.mts";
41
+ import { BreakFlowNode } from "./flow-control/break.d.mts";
42
+ import { ErrorBoundaryFlowNode } from "./flow-control/error-boundary.d.mts";
43
+ import { HumanApprovalFlowNode } from "./flow-control/human-approval.d.mts";
44
+ import { IfFlowNode } from "./flow-control/if.d.mts";
45
+ import { ParallelFlowNode } from "./flow-control/parallel.d.mts";
46
+ import { SwitchFlowNode } from "./flow-control/switch.d.mts";
47
+ import { CodeNode } from "./utility/code.d.mts";
48
+ import { DelayFlowNode } from "./utility/delay.d.mts";
49
+ import { LogFlowNode } from "./utility/log.d.mts";
50
+ import { MapNode } from "./utility/map.d.mts";
51
+ import { MergeFlowNode } from "./utility/merge.d.mts";
52
+ import { ReturnFlowNode } from "./utility/return.d.mts";
53
+ import { UtilityLogNode } from "./utility/utility-log.d.mts";
54
+ import { ChatTriggerNode } from "./triggers/chat.d.mts";
55
+ import { EventTriggerNode } from "./triggers/event.d.mts";
56
+ import { FormTriggerNode } from "./triggers/form.d.mts";
57
+ import { ManualTriggerNode } from "./triggers/manual.d.mts";
58
+ import { ScheduleTriggerNode } from "./triggers/schedule.d.mts";
59
+ import { WebhookTriggerNode } from "./triggers/webhook.d.mts";
60
+ import { GraphForeachLoopNode } from "./loops/foreach.d.mts";
61
+ import { GraphUntilLoopNode } from "./loops/until.d.mts";
62
+ import { GraphWhileLoopNode } from "./loops/while.d.mts";
63
+ import { GraphInputValueNode } from "./boundary/input-value.d.mts";
64
+ /**
65
+ * All built-in trigger node constructors.
66
+ */
67
+ export declare const GRAPH_TRIGGER_NODES: readonly [typeof ManualTriggerNode, typeof WebhookTriggerNode, typeof ScheduleTriggerNode, typeof EventTriggerNode, typeof FormTriggerNode, typeof ChatTriggerNode];
68
+ /**
69
+ * All built-in flow-control node constructors (branching/routing/looping/
70
+ * termination semantics).
71
+ */
72
+ export declare const GRAPH_FLOW_CONTROL_NODES: readonly [typeof IfFlowNode, typeof SwitchFlowNode, typeof ParallelFlowNode, typeof MergeFlowNode, typeof DelayFlowNode, typeof ErrorBoundaryFlowNode, typeof HumanApprovalFlowNode, typeof ReturnFlowNode, typeof LogFlowNode, typeof BreakFlowNode];
73
+ /**
74
+ * All built-in utility node constructors (side-effect/data-transformation
75
+ * semantics — no branching).
76
+ */
77
+ export declare const GRAPH_UTILITY_NODES: readonly [typeof CodeNode, typeof MapNode, typeof UtilityLogNode];
78
+ /**
79
+ * All built-in loop node constructors (shared declarations of the
80
+ * `core.loop.*` system kinds).
81
+ */
82
+ export declare const GRAPH_LOOP_NODES: readonly [typeof GraphForeachLoopNode, typeof GraphWhileLoopNode, typeof GraphUntilLoopNode];
83
+ /**
84
+ * All built-in boundary node constructors.
85
+ */
86
+ export declare const GRAPH_BOUNDARY_NODES: readonly [typeof GraphInputValueNode];
87
+ /**
88
+ * Kind→class map for every built-in node kind the backend executes
89
+ * (DECAF-50 §4.26 R2-1). The catalogue derives each registration's
90
+ * manifest and executor from the class, so this is the single authority for
91
+ * built-in node behaviour.
92
+ */
93
+ export declare const GRAPH_BUILT_IN_NODE_CLASSES_BY_KIND: Record<string, GraphNodeClass>;
@@ -0,0 +1,11 @@
1
+ import { GraphNode } from "../base.d.cts";
2
+ import type { GraphExecutionContext } from "../../engine/execution/GraphExecutionContext.d.cts";
3
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.cts";
4
+ export declare class GraphForeachLoopNode extends GraphNode {
5
+ static execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
6
+ items: unknown[];
7
+ slice: number;
8
+ item: unknown;
9
+ loop: unknown;
10
+ completed: unknown[];
11
+ }
@@ -0,0 +1,11 @@
1
+ import { GraphNode } from "../base.d.mts";
2
+ import type { GraphExecutionContext } from "../../engine/execution/GraphExecutionContext.d.mts";
3
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.mts";
4
+ export declare class GraphForeachLoopNode extends GraphNode {
5
+ static execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
6
+ items: unknown[];
7
+ slice: number;
8
+ item: unknown;
9
+ loop: unknown;
10
+ completed: unknown[];
11
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @module integrations/graph/nodes/loops/loop-metadata
3
+ * @summary Shared loop-metadata extraction for backend loop node classes.
4
+ * @description Reads a loop node's effective {@link GraphLoopMetadata} from the
5
+ * canonical node instance (`parameters` plus the `loop` configuration) with the
6
+ * execution metadata `loop` bag as the legacy fallback. Shared by the
7
+ * `core.loop.foreach` / `core.loop.while` / `core.loop.until` node classes so
8
+ * their `execute` methods read loop configuration identically.
9
+ */
10
+ import type { GraphExecutionContext } from "../../engine/execution/GraphExecutionContext.d.cts";
11
+ import type { GraphLoopMetadata } from "../../engine/types.d.cts";
12
+ /**
13
+ * Extracts the loop metadata for the executing loop node.
14
+ *
15
+ * @param context - The run-scoped execution context for the loop node.
16
+ * @param label - The loop kind label used in error messages.
17
+ * @returns The effective loop metadata (body, limits, ports, condition).
18
+ * @throws {GraphInputError} when the node carries no loop body configuration.
19
+ */
20
+ export declare function extractLoopMetadata(context: GraphExecutionContext, label: string): GraphLoopMetadata;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @module integrations/graph/nodes/loops/loop-metadata
3
+ * @summary Shared loop-metadata extraction for backend loop node classes.
4
+ * @description Reads a loop node's effective {@link GraphLoopMetadata} from the
5
+ * canonical node instance (`parameters` plus the `loop` configuration) with the
6
+ * execution metadata `loop` bag as the legacy fallback. Shared by the
7
+ * `core.loop.foreach` / `core.loop.while` / `core.loop.until` node classes so
8
+ * their `execute` methods read loop configuration identically.
9
+ */
10
+ import type { GraphExecutionContext } from "../../engine/execution/GraphExecutionContext.d.mts";
11
+ import type { GraphLoopMetadata } from "../../engine/types.d.mts";
12
+ /**
13
+ * Extracts the loop metadata for the executing loop node.
14
+ *
15
+ * @param context - The run-scoped execution context for the loop node.
16
+ * @param label - The loop kind label used in error messages.
17
+ * @returns The effective loop metadata (body, limits, ports, condition).
18
+ * @throws {GraphInputError} when the node carries no loop body configuration.
19
+ */
20
+ export declare function extractLoopMetadata(context: GraphExecutionContext, label: string): GraphLoopMetadata;
@@ -0,0 +1,8 @@
1
+ import { GraphNode } from "../base.d.cts";
2
+ import type { GraphExecutionContext } from "../../engine/execution/GraphExecutionContext.d.cts";
3
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.cts";
4
+ export declare class GraphUntilLoopNode extends GraphNode {
5
+ static execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
6
+ state: unknown;
7
+ stateOut: unknown;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { GraphNode } from "../base.d.mts";
2
+ import type { GraphExecutionContext } from "../../engine/execution/GraphExecutionContext.d.mts";
3
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.mts";
4
+ export declare class GraphUntilLoopNode extends GraphNode {
5
+ static execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
6
+ state: unknown;
7
+ stateOut: unknown;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { GraphNode } from "../base.d.cts";
2
+ import type { GraphExecutionContext } from "../../engine/execution/GraphExecutionContext.d.cts";
3
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.cts";
4
+ export declare class GraphWhileLoopNode extends GraphNode {
5
+ static execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
6
+ state: unknown;
7
+ stateOut: unknown;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { GraphNode } from "../base.d.mts";
2
+ import type { GraphExecutionContext } from "../../engine/execution/GraphExecutionContext.d.mts";
3
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.mts";
4
+ export declare class GraphWhileLoopNode extends GraphNode {
5
+ static execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
6
+ state: unknown;
7
+ stateOut: unknown;
8
+ }
@@ -0,0 +1,62 @@
1
+ /**
2
+ * @module integrations/graph/nodes/manifests
3
+ * @summary Built-in node manifests (DECAF-50 §4.12).
4
+ * @description The catalogue-published JSON manifests for every node kind
5
+ * the backend ships. Loop manifests are hand-authored (their loop-body
6
+ * shapes are structural); the rest are compiled from the shared
7
+ * `@node`-decorated classes via `graphNodeManifest`, so the served shape is
8
+ * identical to what the Angular palette consumes. Aggregated in
9
+ * `GRAPH_BUILT_IN_NODE_MANIFESTS` and indexed by kind in
10
+ * `GRAPH_BUILT_IN_NODE_MANIFESTS_BY_KIND`.
11
+ */
12
+ import type { GraphNodeManifest } from "@decaf-ts/ui-decorators/graph";
13
+ /** Manifest for the `core.loop.foreach` node: runs the loop body once per item (or slice) of the input array. */
14
+ export declare const FOREACH_GRAPH_NODE_MANIFEST: GraphNodeManifest;
15
+ /** Manifest for the `core.loop.while` node: repeats the loop body while the condition holds. */
16
+ export declare const WHILE_GRAPH_NODE_MANIFEST: GraphNodeManifest;
17
+ /** Manifest for the `core.loop.until` node: repeats the loop body until the condition holds. */
18
+ export declare const UNTIL_GRAPH_NODE_MANIFEST: GraphNodeManifest;
19
+ /** Manifest for the `core.flow.switch` node: routes execution by switch-case conditions (cases live under `parameters["switch"]`). */
20
+ export declare const SWITCH_GRAPH_NODE_MANIFEST: GraphNodeManifest;
21
+ /** Manifest for the manual-trigger node (starts a run on demand). */
22
+ export declare const MANUAL_TRIGGER_GRAPH_NODE_MANIFEST: GraphNodeManifest;
23
+ /** Manifest for the webhook-trigger node (starts a run from an inbound webhook). */
24
+ export declare const WEBHOOK_TRIGGER_GRAPH_NODE_MANIFEST: GraphNodeManifest;
25
+ /** Manifest for the schedule-trigger node (starts a run on a schedule). */
26
+ export declare const SCHEDULE_TRIGGER_GRAPH_NODE_MANIFEST: GraphNodeManifest;
27
+ /** Manifest for the event-trigger node (starts a run on an observed event). */
28
+ export declare const EVENT_TRIGGER_GRAPH_NODE_MANIFEST: GraphNodeManifest;
29
+ /** Manifest for the form-trigger node (starts a run from a form submission). */
30
+ export declare const FORM_TRIGGER_GRAPH_NODE_MANIFEST: GraphNodeManifest;
31
+ /** Manifest for the chat-trigger node (starts a run from a chat message). */
32
+ export declare const CHAT_TRIGGER_GRAPH_NODE_MANIFEST: GraphNodeManifest;
33
+ /** Manifest for the if node (conditional branch on a boolean condition). */
34
+ export declare const IF_GRAPH_NODE_MANIFEST: GraphNodeManifest;
35
+ /** Manifest for the parallel node (runs branches concurrently). */
36
+ export declare const PARALLEL_GRAPH_NODE_MANIFEST: GraphNodeManifest;
37
+ /** Manifest for the merge node (joins parallel branches). */
38
+ export declare const MERGE_GRAPH_NODE_MANIFEST: GraphNodeManifest;
39
+ /** Manifest for the map node (transforms each input item). */
40
+ export declare const MAP_GRAPH_NODE_MANIFEST: GraphNodeManifest;
41
+ /** Manifest for the delay node (pauses execution for a duration). */
42
+ export declare const DELAY_GRAPH_NODE_MANIFEST: GraphNodeManifest;
43
+ /** Manifest for the error-boundary node (isolates branch failures). */
44
+ export declare const ERROR_BOUNDARY_GRAPH_NODE_MANIFEST: GraphNodeManifest;
45
+ /** Manifest for the human-approval node (waits for an approval decision). */
46
+ export declare const HUMAN_APPROVAL_GRAPH_NODE_MANIFEST: GraphNodeManifest;
47
+ /** Manifest for the return node (terminates the workflow with output values). */
48
+ export declare const RETURN_GRAPH_NODE_MANIFEST: GraphNodeManifest;
49
+ /** Manifest for the code node (executes user code). */
50
+ export declare const CODE_GRAPH_NODE_MANIFEST: GraphNodeManifest;
51
+ /** Manifest for the log node (logs its input). */
52
+ export declare const LOG_GRAPH_NODE_MANIFEST: GraphNodeManifest;
53
+ /** Manifest for the utility-log node (log-shaped utility sink). */
54
+ export declare const UTILITY_LOG_GRAPH_NODE_MANIFEST: GraphNodeManifest;
55
+ /** Manifest for the break node (exits the enclosing loop). */
56
+ export declare const BREAK_GRAPH_NODE_MANIFEST: GraphNodeManifest;
57
+ /** Manifest for the agent node (delegates work to an agent). */
58
+ export declare const AGENT_GRAPH_NODE_MANIFEST: GraphNodeManifest;
59
+ /** All built-in node manifests, in catalogue display order. */
60
+ export declare const GRAPH_BUILT_IN_NODE_MANIFESTS: GraphNodeManifest[];
61
+ /** Built-in manifests indexed by node `kind` — the source for built-in catalogue registrations. */
62
+ export declare const GRAPH_BUILT_IN_NODE_MANIFESTS_BY_KIND: Record<string, GraphNodeManifest>;
@@ -0,0 +1,62 @@
1
+ /**
2
+ * @module integrations/graph/nodes/manifests
3
+ * @summary Built-in node manifests (DECAF-50 §4.12).
4
+ * @description The catalogue-published JSON manifests for every node kind
5
+ * the backend ships. Loop manifests are hand-authored (their loop-body
6
+ * shapes are structural); the rest are compiled from the shared
7
+ * `@node`-decorated classes via `graphNodeManifest`, so the served shape is
8
+ * identical to what the Angular palette consumes. Aggregated in
9
+ * `GRAPH_BUILT_IN_NODE_MANIFESTS` and indexed by kind in
10
+ * `GRAPH_BUILT_IN_NODE_MANIFESTS_BY_KIND`.
11
+ */
12
+ import type { GraphNodeManifest } from "@decaf-ts/ui-decorators/graph";
13
+ /** Manifest for the `core.loop.foreach` node: runs the loop body once per item (or slice) of the input array. */
14
+ export declare const FOREACH_GRAPH_NODE_MANIFEST: GraphNodeManifest;
15
+ /** Manifest for the `core.loop.while` node: repeats the loop body while the condition holds. */
16
+ export declare const WHILE_GRAPH_NODE_MANIFEST: GraphNodeManifest;
17
+ /** Manifest for the `core.loop.until` node: repeats the loop body until the condition holds. */
18
+ export declare const UNTIL_GRAPH_NODE_MANIFEST: GraphNodeManifest;
19
+ /** Manifest for the `core.flow.switch` node: routes execution by switch-case conditions (cases live under `parameters["switch"]`). */
20
+ export declare const SWITCH_GRAPH_NODE_MANIFEST: GraphNodeManifest;
21
+ /** Manifest for the manual-trigger node (starts a run on demand). */
22
+ export declare const MANUAL_TRIGGER_GRAPH_NODE_MANIFEST: GraphNodeManifest;
23
+ /** Manifest for the webhook-trigger node (starts a run from an inbound webhook). */
24
+ export declare const WEBHOOK_TRIGGER_GRAPH_NODE_MANIFEST: GraphNodeManifest;
25
+ /** Manifest for the schedule-trigger node (starts a run on a schedule). */
26
+ export declare const SCHEDULE_TRIGGER_GRAPH_NODE_MANIFEST: GraphNodeManifest;
27
+ /** Manifest for the event-trigger node (starts a run on an observed event). */
28
+ export declare const EVENT_TRIGGER_GRAPH_NODE_MANIFEST: GraphNodeManifest;
29
+ /** Manifest for the form-trigger node (starts a run from a form submission). */
30
+ export declare const FORM_TRIGGER_GRAPH_NODE_MANIFEST: GraphNodeManifest;
31
+ /** Manifest for the chat-trigger node (starts a run from a chat message). */
32
+ export declare const CHAT_TRIGGER_GRAPH_NODE_MANIFEST: GraphNodeManifest;
33
+ /** Manifest for the if node (conditional branch on a boolean condition). */
34
+ export declare const IF_GRAPH_NODE_MANIFEST: GraphNodeManifest;
35
+ /** Manifest for the parallel node (runs branches concurrently). */
36
+ export declare const PARALLEL_GRAPH_NODE_MANIFEST: GraphNodeManifest;
37
+ /** Manifest for the merge node (joins parallel branches). */
38
+ export declare const MERGE_GRAPH_NODE_MANIFEST: GraphNodeManifest;
39
+ /** Manifest for the map node (transforms each input item). */
40
+ export declare const MAP_GRAPH_NODE_MANIFEST: GraphNodeManifest;
41
+ /** Manifest for the delay node (pauses execution for a duration). */
42
+ export declare const DELAY_GRAPH_NODE_MANIFEST: GraphNodeManifest;
43
+ /** Manifest for the error-boundary node (isolates branch failures). */
44
+ export declare const ERROR_BOUNDARY_GRAPH_NODE_MANIFEST: GraphNodeManifest;
45
+ /** Manifest for the human-approval node (waits for an approval decision). */
46
+ export declare const HUMAN_APPROVAL_GRAPH_NODE_MANIFEST: GraphNodeManifest;
47
+ /** Manifest for the return node (terminates the workflow with output values). */
48
+ export declare const RETURN_GRAPH_NODE_MANIFEST: GraphNodeManifest;
49
+ /** Manifest for the code node (executes user code). */
50
+ export declare const CODE_GRAPH_NODE_MANIFEST: GraphNodeManifest;
51
+ /** Manifest for the log node (logs its input). */
52
+ export declare const LOG_GRAPH_NODE_MANIFEST: GraphNodeManifest;
53
+ /** Manifest for the utility-log node (log-shaped utility sink). */
54
+ export declare const UTILITY_LOG_GRAPH_NODE_MANIFEST: GraphNodeManifest;
55
+ /** Manifest for the break node (exits the enclosing loop). */
56
+ export declare const BREAK_GRAPH_NODE_MANIFEST: GraphNodeManifest;
57
+ /** Manifest for the agent node (delegates work to an agent). */
58
+ export declare const AGENT_GRAPH_NODE_MANIFEST: GraphNodeManifest;
59
+ /** All built-in node manifests, in catalogue display order. */
60
+ export declare const GRAPH_BUILT_IN_NODE_MANIFESTS: GraphNodeManifest[];
61
+ /** Built-in manifests indexed by node `kind` — the source for built-in catalogue registrations. */
62
+ export declare const GRAPH_BUILT_IN_NODE_MANIFESTS_BY_KIND: Record<string, GraphNodeManifest>;
@@ -0,0 +1,8 @@
1
+ import { GraphNode } from "../base.d.cts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.cts";
3
+ export declare class ChatTriggerNode extends GraphNode {
4
+ static execute(request: GraphNodeExecutionRequest): GraphExecutionValues;
5
+ message: string;
6
+ sessionId: string;
7
+ userId: string;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { GraphNode } from "../base.d.mts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.mts";
3
+ export declare class ChatTriggerNode extends GraphNode {
4
+ static execute(request: GraphNodeExecutionRequest): GraphExecutionValues;
5
+ message: string;
6
+ sessionId: string;
7
+ userId: string;
8
+ }
@@ -0,0 +1,6 @@
1
+ import { GraphNode } from "../base.d.cts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.cts";
3
+ export declare class EventTriggerNode extends GraphNode {
4
+ static execute(request: GraphNodeExecutionRequest): GraphExecutionValues;
5
+ payload: unknown;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { GraphNode } from "../base.d.mts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.mts";
3
+ export declare class EventTriggerNode extends GraphNode {
4
+ static execute(request: GraphNodeExecutionRequest): GraphExecutionValues;
5
+ payload: unknown;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { GraphNode } from "../base.d.cts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.cts";
3
+ export declare class FormTriggerNode extends GraphNode {
4
+ static execute(request: GraphNodeExecutionRequest): GraphExecutionValues;
5
+ payload: unknown;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { GraphNode } from "../base.d.mts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.mts";
3
+ export declare class FormTriggerNode extends GraphNode {
4
+ static execute(request: GraphNodeExecutionRequest): GraphExecutionValues;
5
+ payload: unknown;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { GraphNode } from "../base.d.cts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.cts";
3
+ export declare class ManualTriggerNode extends GraphNode {
4
+ static execute(request: GraphNodeExecutionRequest): GraphExecutionValues;
5
+ payload: unknown;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { GraphNode } from "../base.d.mts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.mts";
3
+ export declare class ManualTriggerNode extends GraphNode {
4
+ static execute(request: GraphNodeExecutionRequest): GraphExecutionValues;
5
+ payload: unknown;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { GraphNode } from "../base.d.cts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.cts";
3
+ export declare class ScheduleTriggerNode extends GraphNode {
4
+ static execute(request: GraphNodeExecutionRequest): GraphExecutionValues;
5
+ payload: unknown;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { GraphNode } from "../base.d.mts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.mts";
3
+ export declare class ScheduleTriggerNode extends GraphNode {
4
+ static execute(request: GraphNodeExecutionRequest): GraphExecutionValues;
5
+ payload: unknown;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { GraphNode } from "../base.d.cts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.cts";
3
+ export declare class WebhookTriggerNode extends GraphNode {
4
+ static execute(request: GraphNodeExecutionRequest): GraphExecutionValues;
5
+ payload: unknown;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { GraphNode } from "../base.d.mts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.mts";
3
+ export declare class WebhookTriggerNode extends GraphNode {
4
+ static execute(request: GraphNodeExecutionRequest): GraphExecutionValues;
5
+ payload: unknown;
6
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @module integrations/graph/nodes/utility/code
3
+ * @summary Code utility node declaration (ALFRED-5 §7, DECAF-32 §22.4).
4
+ * @description Code — sandboxed JS/TS code execution. The class's own
5
+ * `static execute` is the only implementation of the kind, derived by
6
+ * `GraphBuiltInRegistrations`, and reaches the pluggable `CodeSandboxEvaluator`
7
+ * through `GraphExecutionContext.engine`.
8
+ * The default `IsolatedVmCodeSandboxEvaluator` (backed by `isolated-vm`)
9
+ * enforces the Code Node restrictions: no imports, no requires, pure
10
+ * functions only. The sandbox context exposes `$input`, `$vars`, `$item`,
11
+ * `$index`, `$node`, and `$output` as data variables. TypeScript is
12
+ * supported via transpilation.
13
+ *
14
+ * The `@input` on `CodeNode.input` is a schema group — the nested
15
+ * model's `@input` ports are spliced into the parent unprefixed. `code` has
16
+ * `@input` + `@uielement("code-editor")`, so it appears as a port AND in the
17
+ * CRUD modal (the only visible field). `data` has `@input` + `@hidden()` but
18
+ * no `@uielement`, so it is a canvas-only port (for edge connections from
19
+ * workflow input badges) but never appears in the CRUD modal. `language` has
20
+ * no `@input` and no `@uielement`, so it is neither a port nor rendered — it
21
+ * defaults to `"javascript"`.
22
+ */
23
+ import { Model } from "@decaf-ts/decorator-validation";
24
+ import { GraphNode } from "../base.d.cts";
25
+ import type { GraphExecutionContext } from "../../engine/execution/GraphExecutionContext.d.cts";
26
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../engine/types.d.cts";
27
+ export declare class CodeInputSchema extends Model {
28
+ language: string;
29
+ code: string;
30
+ data?: unknown;
31
+ }
32
+ export declare class CodeNode extends GraphNode {
33
+ static execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
34
+ input: CodeInputSchema;
35
+ result: unknown;
36
+ }