@decaf-ts/integrations 0.10.5 → 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 (294) hide show
  1. package/dist/integrations.cjs +1 -1
  2. package/lib/cjs/graph/engine/catalog/GraphBuiltInRegistrations.cjs +12 -73
  3. package/lib/cjs/graph/engine/catalog/GraphBuiltInRegistrations.cjs.map +1 -1
  4. package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs +5 -1
  5. package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs.map +1 -1
  6. package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs +66 -1
  7. package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs.map +1 -1
  8. package/lib/cjs/graph/engine/execution/GraphExecutionFrame.cjs +16 -0
  9. package/lib/cjs/graph/engine/execution/GraphExecutionFrame.cjs.map +1 -1
  10. package/lib/cjs/graph/engine/execution/index.cjs +0 -4
  11. package/lib/cjs/graph/engine/execution/index.cjs.map +1 -1
  12. package/lib/cjs/graph/engine/index.cjs +0 -7
  13. package/lib/cjs/graph/engine/index.cjs.map +1 -1
  14. package/lib/cjs/graph/engine/loops/index.cjs +0 -3
  15. package/lib/cjs/graph/engine/loops/index.cjs.map +1 -1
  16. package/lib/cjs/graph/engine/validation/GraphLooseNodeValidation.cjs +36 -0
  17. package/lib/cjs/graph/engine/validation/GraphLooseNodeValidation.cjs.map +1 -0
  18. package/lib/cjs/graph/engine/validation/GraphParameterValidator.cjs +36 -3
  19. package/lib/cjs/graph/engine/validation/GraphParameterValidator.cjs.map +1 -1
  20. package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs +32 -1
  21. package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs.map +1 -1
  22. package/lib/cjs/graph/engine/validation/index.cjs +1 -0
  23. package/lib/cjs/graph/engine/validation/index.cjs.map +1 -1
  24. package/lib/cjs/graph/nodes/agents/agent.cjs +118 -0
  25. package/lib/cjs/graph/nodes/agents/agent.cjs.map +1 -0
  26. package/lib/cjs/graph/nodes/base.cjs +61 -0
  27. package/lib/cjs/graph/nodes/base.cjs.map +1 -0
  28. package/lib/cjs/graph/nodes/boundary/input-value.cjs +59 -0
  29. package/lib/cjs/graph/nodes/boundary/input-value.cjs.map +1 -0
  30. package/lib/cjs/graph/nodes/flow-control/break.cjs +71 -0
  31. package/lib/cjs/graph/nodes/flow-control/break.cjs.map +1 -0
  32. package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs +72 -0
  33. package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs.map +1 -0
  34. package/lib/cjs/graph/nodes/flow-control/human-approval.cjs +80 -0
  35. package/lib/cjs/graph/nodes/flow-control/human-approval.cjs.map +1 -0
  36. package/lib/cjs/graph/nodes/flow-control/if.cjs +82 -0
  37. package/lib/cjs/graph/nodes/flow-control/if.cjs.map +1 -0
  38. package/lib/cjs/graph/nodes/flow-control/parallel.cjs +69 -0
  39. package/lib/cjs/graph/nodes/flow-control/parallel.cjs.map +1 -0
  40. package/lib/cjs/graph/nodes/flow-control/switch.cjs +190 -0
  41. package/lib/cjs/graph/nodes/flow-control/switch.cjs.map +1 -0
  42. package/lib/cjs/graph/nodes/index.cjs +162 -0
  43. package/lib/cjs/graph/nodes/index.cjs.map +1 -0
  44. package/lib/cjs/graph/nodes/loops/foreach.cjs +189 -0
  45. package/lib/cjs/graph/nodes/loops/foreach.cjs.map +1 -0
  46. package/lib/cjs/graph/nodes/loops/loop-metadata.cjs +48 -0
  47. package/lib/cjs/graph/nodes/loops/loop-metadata.cjs.map +1 -0
  48. package/lib/cjs/graph/nodes/loops/until.cjs +136 -0
  49. package/lib/cjs/graph/nodes/loops/until.cjs.map +1 -0
  50. package/lib/cjs/graph/nodes/loops/while.cjs +133 -0
  51. package/lib/cjs/graph/nodes/loops/while.cjs.map +1 -0
  52. package/lib/cjs/graph/nodes/manifests.cjs +342 -0
  53. package/lib/cjs/graph/nodes/manifests.cjs.map +1 -0
  54. package/lib/cjs/graph/nodes/triggers/chat.cjs +82 -0
  55. package/lib/cjs/graph/nodes/triggers/chat.cjs.map +1 -0
  56. package/lib/cjs/graph/nodes/triggers/event.cjs +63 -0
  57. package/lib/cjs/graph/nodes/triggers/event.cjs.map +1 -0
  58. package/lib/cjs/graph/nodes/triggers/form.cjs +64 -0
  59. package/lib/cjs/graph/nodes/triggers/form.cjs.map +1 -0
  60. package/lib/cjs/graph/nodes/triggers/manual.cjs +65 -0
  61. package/lib/cjs/graph/nodes/triggers/manual.cjs.map +1 -0
  62. package/lib/cjs/graph/nodes/triggers/schedule.cjs +65 -0
  63. package/lib/cjs/graph/nodes/triggers/schedule.cjs.map +1 -0
  64. package/lib/cjs/graph/nodes/triggers/webhook.cjs +67 -0
  65. package/lib/cjs/graph/nodes/triggers/webhook.cjs.map +1 -0
  66. package/lib/cjs/graph/nodes/utility/code.cjs +139 -0
  67. package/lib/cjs/graph/nodes/utility/code.cjs.map +1 -0
  68. package/lib/cjs/graph/nodes/utility/delay.cjs +66 -0
  69. package/lib/cjs/graph/nodes/utility/delay.cjs.map +1 -0
  70. package/lib/cjs/graph/nodes/utility/log.cjs +70 -0
  71. package/lib/cjs/graph/nodes/utility/log.cjs.map +1 -0
  72. package/lib/cjs/graph/nodes/utility/map.cjs +69 -0
  73. package/lib/cjs/graph/nodes/utility/map.cjs.map +1 -0
  74. package/lib/cjs/graph/nodes/utility/merge.cjs +67 -0
  75. package/lib/cjs/graph/nodes/utility/merge.cjs.map +1 -0
  76. package/lib/cjs/graph/nodes/utility/return.cjs +69 -0
  77. package/lib/cjs/graph/nodes/utility/return.cjs.map +1 -0
  78. package/lib/cjs/graph/nodes/utility/utility-log.cjs +77 -0
  79. package/lib/cjs/graph/nodes/utility/utility-log.cjs.map +1 -0
  80. package/lib/cjs/index.cjs +3 -3
  81. package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs +8 -4
  82. package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs.map +1 -1
  83. package/lib/cjs/nest/graph/GraphWorkflowBoundaryValidation.cjs +2 -0
  84. package/lib/cjs/nest/graph/GraphWorkflowBoundaryValidation.cjs.map +1 -1
  85. package/lib/cjs/nest/graph/GraphWorkflowService.cjs +1 -13
  86. package/lib/cjs/nest/graph/GraphWorkflowService.cjs.map +1 -1
  87. package/lib/esm/graph/engine/catalog/GraphBuiltInRegistrations.js +11 -72
  88. package/lib/esm/graph/engine/catalog/GraphBuiltInRegistrations.js.map +1 -1
  89. package/lib/esm/graph/engine/execution/GraphExecutionContext.js +5 -1
  90. package/lib/esm/graph/engine/execution/GraphExecutionContext.js.map +1 -1
  91. package/lib/esm/graph/engine/execution/GraphExecutionEngine.js +66 -1
  92. package/lib/esm/graph/engine/execution/GraphExecutionEngine.js.map +1 -1
  93. package/lib/esm/graph/engine/execution/GraphExecutionFrame.js +16 -0
  94. package/lib/esm/graph/engine/execution/GraphExecutionFrame.js.map +1 -1
  95. package/lib/esm/graph/engine/execution/index.js +0 -4
  96. package/lib/esm/graph/engine/execution/index.js.map +1 -1
  97. package/lib/esm/graph/engine/index.js +0 -7
  98. package/lib/esm/graph/engine/index.js.map +1 -1
  99. package/lib/esm/graph/engine/loops/index.js +0 -3
  100. package/lib/esm/graph/engine/loops/index.js.map +1 -1
  101. package/lib/esm/graph/engine/validation/GraphLooseNodeValidation.js +32 -0
  102. package/lib/esm/graph/engine/validation/GraphLooseNodeValidation.js.map +1 -0
  103. package/lib/esm/graph/engine/validation/GraphParameterValidator.js +36 -3
  104. package/lib/esm/graph/engine/validation/GraphParameterValidator.js.map +1 -1
  105. package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js +32 -1
  106. package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js.map +1 -1
  107. package/lib/esm/graph/engine/validation/index.js +1 -0
  108. package/lib/esm/graph/engine/validation/index.js.map +1 -1
  109. package/lib/esm/graph/nodes/agents/agent.js +109 -0
  110. package/lib/esm/graph/nodes/agents/agent.js.map +1 -0
  111. package/lib/esm/graph/nodes/base.js +56 -0
  112. package/lib/esm/graph/nodes/base.js.map +1 -0
  113. package/lib/esm/graph/nodes/boundary/input-value.js +50 -0
  114. package/lib/esm/graph/nodes/boundary/input-value.js.map +1 -0
  115. package/lib/esm/graph/nodes/flow-control/break.js +62 -0
  116. package/lib/esm/graph/nodes/flow-control/break.js.map +1 -0
  117. package/lib/esm/graph/nodes/flow-control/error-boundary.js +63 -0
  118. package/lib/esm/graph/nodes/flow-control/error-boundary.js.map +1 -0
  119. package/lib/esm/graph/nodes/flow-control/human-approval.js +71 -0
  120. package/lib/esm/graph/nodes/flow-control/human-approval.js.map +1 -0
  121. package/lib/esm/graph/nodes/flow-control/if.js +73 -0
  122. package/lib/esm/graph/nodes/flow-control/if.js.map +1 -0
  123. package/lib/esm/graph/nodes/flow-control/parallel.js +60 -0
  124. package/lib/esm/graph/nodes/flow-control/parallel.js.map +1 -0
  125. package/lib/esm/graph/nodes/flow-control/switch.js +181 -0
  126. package/lib/esm/graph/nodes/flow-control/switch.js.map +1 -0
  127. package/lib/esm/graph/nodes/index.js +144 -0
  128. package/lib/esm/graph/nodes/index.js.map +1 -0
  129. package/lib/esm/graph/nodes/loops/foreach.js +180 -0
  130. package/lib/esm/graph/nodes/loops/foreach.js.map +1 -0
  131. package/lib/esm/graph/nodes/loops/loop-metadata.js +44 -0
  132. package/lib/esm/graph/nodes/loops/loop-metadata.js.map +1 -0
  133. package/lib/esm/graph/nodes/loops/until.js +127 -0
  134. package/lib/esm/graph/nodes/loops/until.js.map +1 -0
  135. package/lib/esm/graph/nodes/loops/while.js +124 -0
  136. package/lib/esm/graph/nodes/loops/while.js.map +1 -0
  137. package/lib/esm/graph/nodes/manifests.js +338 -0
  138. package/lib/esm/graph/nodes/manifests.js.map +1 -0
  139. package/lib/esm/graph/nodes/triggers/chat.js +73 -0
  140. package/lib/esm/graph/nodes/triggers/chat.js.map +1 -0
  141. package/lib/esm/graph/nodes/triggers/event.js +54 -0
  142. package/lib/esm/graph/nodes/triggers/event.js.map +1 -0
  143. package/lib/esm/graph/nodes/triggers/form.js +55 -0
  144. package/lib/esm/graph/nodes/triggers/form.js.map +1 -0
  145. package/lib/esm/graph/nodes/triggers/manual.js +56 -0
  146. package/lib/esm/graph/nodes/triggers/manual.js.map +1 -0
  147. package/lib/esm/graph/nodes/triggers/schedule.js +56 -0
  148. package/lib/esm/graph/nodes/triggers/schedule.js.map +1 -0
  149. package/lib/esm/graph/nodes/triggers/webhook.js +58 -0
  150. package/lib/esm/graph/nodes/triggers/webhook.js.map +1 -0
  151. package/lib/esm/graph/nodes/utility/code.js +130 -0
  152. package/lib/esm/graph/nodes/utility/code.js.map +1 -0
  153. package/lib/esm/graph/nodes/utility/delay.js +57 -0
  154. package/lib/esm/graph/nodes/utility/delay.js.map +1 -0
  155. package/lib/esm/graph/nodes/utility/log.js +61 -0
  156. package/lib/esm/graph/nodes/utility/log.js.map +1 -0
  157. package/lib/esm/graph/nodes/utility/map.js +60 -0
  158. package/lib/esm/graph/nodes/utility/map.js.map +1 -0
  159. package/lib/esm/graph/nodes/utility/merge.js +58 -0
  160. package/lib/esm/graph/nodes/utility/merge.js.map +1 -0
  161. package/lib/esm/graph/nodes/utility/return.js +60 -0
  162. package/lib/esm/graph/nodes/utility/return.js.map +1 -0
  163. package/lib/esm/graph/nodes/utility/utility-log.js +68 -0
  164. package/lib/esm/graph/nodes/utility/utility-log.js.map +1 -0
  165. package/lib/esm/index.js +3 -3
  166. package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js +8 -4
  167. package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js.map +1 -1
  168. package/lib/esm/nest/graph/GraphWorkflowBoundaryValidation.js +2 -0
  169. package/lib/esm/nest/graph/GraphWorkflowBoundaryValidation.js.map +1 -1
  170. package/lib/esm/nest/graph/GraphWorkflowService.js +2 -14
  171. package/lib/esm/nest/graph/GraphWorkflowService.js.map +1 -1
  172. package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.cts +4 -7
  173. package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.mts +4 -7
  174. package/lib/types/graph/engine/execution/GraphExecutionContext.d.cts +6 -1
  175. package/lib/types/graph/engine/execution/GraphExecutionContext.d.mts +6 -1
  176. package/lib/types/graph/engine/execution/GraphExecutionEngine.d.cts +27 -0
  177. package/lib/types/graph/engine/execution/GraphExecutionEngine.d.mts +27 -0
  178. package/lib/types/graph/engine/execution/GraphExecutionFrame.d.cts +12 -0
  179. package/lib/types/graph/engine/execution/GraphExecutionFrame.d.mts +12 -0
  180. package/lib/types/graph/engine/execution/index.d.cts +0 -4
  181. package/lib/types/graph/engine/execution/index.d.mts +0 -4
  182. package/lib/types/graph/engine/index.d.cts +0 -7
  183. package/lib/types/graph/engine/index.d.mts +0 -7
  184. package/lib/types/graph/engine/loops/index.d.cts +0 -3
  185. package/lib/types/graph/engine/loops/index.d.mts +0 -3
  186. package/lib/types/graph/engine/validation/GraphLooseNodeValidation.d.cts +21 -0
  187. package/lib/types/graph/engine/validation/GraphLooseNodeValidation.d.mts +21 -0
  188. package/lib/types/graph/engine/validation/GraphParameterValidator.d.cts +25 -1
  189. package/lib/types/graph/engine/validation/GraphParameterValidator.d.mts +25 -1
  190. package/lib/types/graph/engine/validation/index.d.cts +1 -0
  191. package/lib/types/graph/engine/validation/index.d.mts +1 -0
  192. package/lib/types/graph/nodes/agents/agent.d.cts +31 -0
  193. package/lib/types/graph/nodes/agents/agent.d.mts +31 -0
  194. package/lib/types/graph/nodes/base.d.cts +58 -0
  195. package/lib/types/graph/nodes/base.d.mts +58 -0
  196. package/lib/types/graph/nodes/boundary/input-value.d.cts +6 -0
  197. package/lib/types/graph/nodes/boundary/input-value.d.mts +6 -0
  198. package/lib/types/graph/nodes/flow-control/break.d.cts +8 -0
  199. package/lib/types/graph/nodes/flow-control/break.d.mts +8 -0
  200. package/lib/types/graph/nodes/flow-control/error-boundary.d.cts +8 -0
  201. package/lib/types/graph/nodes/flow-control/error-boundary.d.mts +8 -0
  202. package/lib/types/graph/nodes/flow-control/human-approval.d.cts +8 -0
  203. package/lib/types/graph/nodes/flow-control/human-approval.d.mts +8 -0
  204. package/lib/types/graph/nodes/flow-control/if.d.cts +8 -0
  205. package/lib/types/graph/nodes/flow-control/if.d.mts +8 -0
  206. package/lib/types/graph/nodes/flow-control/parallel.d.cts +7 -0
  207. package/lib/types/graph/nodes/flow-control/parallel.d.mts +7 -0
  208. package/lib/types/graph/nodes/flow-control/switch.d.cts +23 -0
  209. package/lib/types/graph/nodes/flow-control/switch.d.mts +23 -0
  210. package/lib/types/graph/nodes/index.d.cts +93 -0
  211. package/lib/types/graph/nodes/index.d.mts +93 -0
  212. package/lib/types/graph/nodes/loops/foreach.d.cts +11 -0
  213. package/lib/types/graph/nodes/loops/foreach.d.mts +11 -0
  214. package/lib/types/graph/nodes/loops/loop-metadata.d.cts +20 -0
  215. package/lib/types/graph/nodes/loops/loop-metadata.d.mts +20 -0
  216. package/lib/types/graph/nodes/loops/until.d.cts +8 -0
  217. package/lib/types/graph/nodes/loops/until.d.mts +8 -0
  218. package/lib/types/graph/nodes/loops/while.d.cts +8 -0
  219. package/lib/types/graph/nodes/loops/while.d.mts +8 -0
  220. package/lib/types/graph/nodes/manifests.d.cts +62 -0
  221. package/lib/types/graph/nodes/manifests.d.mts +62 -0
  222. package/lib/types/graph/nodes/triggers/chat.d.cts +8 -0
  223. package/lib/types/graph/nodes/triggers/chat.d.mts +8 -0
  224. package/lib/types/graph/nodes/triggers/event.d.cts +6 -0
  225. package/lib/types/graph/nodes/triggers/event.d.mts +6 -0
  226. package/lib/types/graph/nodes/triggers/form.d.cts +6 -0
  227. package/lib/types/graph/nodes/triggers/form.d.mts +6 -0
  228. package/lib/types/graph/nodes/triggers/manual.d.cts +6 -0
  229. package/lib/types/graph/nodes/triggers/manual.d.mts +6 -0
  230. package/lib/types/graph/nodes/triggers/schedule.d.cts +6 -0
  231. package/lib/types/graph/nodes/triggers/schedule.d.mts +6 -0
  232. package/lib/types/graph/nodes/triggers/webhook.d.cts +6 -0
  233. package/lib/types/graph/nodes/triggers/webhook.d.mts +6 -0
  234. package/lib/types/graph/nodes/utility/code.d.cts +36 -0
  235. package/lib/types/graph/nodes/utility/code.d.mts +36 -0
  236. package/lib/types/graph/nodes/utility/delay.d.cts +7 -0
  237. package/lib/types/graph/nodes/utility/delay.d.mts +7 -0
  238. package/lib/types/graph/nodes/utility/log.d.cts +8 -0
  239. package/lib/types/graph/nodes/utility/log.d.mts +8 -0
  240. package/lib/types/graph/nodes/utility/map.d.cts +7 -0
  241. package/lib/types/graph/nodes/utility/map.d.mts +7 -0
  242. package/lib/types/graph/nodes/utility/merge.d.cts +7 -0
  243. package/lib/types/graph/nodes/utility/merge.d.mts +7 -0
  244. package/lib/types/graph/nodes/utility/return.d.cts +7 -0
  245. package/lib/types/graph/nodes/utility/return.d.mts +7 -0
  246. package/lib/types/graph/nodes/utility/utility-log.d.cts +10 -0
  247. package/lib/types/graph/nodes/utility/utility-log.d.mts +10 -0
  248. package/lib/types/index.d.cts +2 -2
  249. package/lib/types/index.d.mts +2 -2
  250. package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.cts +5 -3
  251. package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.mts +5 -3
  252. package/package.json +1 -1
  253. package/lib/cjs/graph/engine/execution/BreakGraphNodeExecutor.cjs +0 -24
  254. package/lib/cjs/graph/engine/execution/BreakGraphNodeExecutor.cjs.map +0 -1
  255. package/lib/cjs/graph/engine/execution/CodeGraphNodeExecutor.cjs +0 -103
  256. package/lib/cjs/graph/engine/execution/CodeGraphNodeExecutor.cjs.map +0 -1
  257. package/lib/cjs/graph/engine/execution/LogGraphNodeExecutor.cjs +0 -47
  258. package/lib/cjs/graph/engine/execution/LogGraphNodeExecutor.cjs.map +0 -1
  259. package/lib/cjs/graph/engine/execution/SwitchGraphNodeExecutor.cjs +0 -121
  260. package/lib/cjs/graph/engine/execution/SwitchGraphNodeExecutor.cjs.map +0 -1
  261. package/lib/cjs/graph/engine/loops/ForeachGraphNodeExecutor.cjs +0 -146
  262. package/lib/cjs/graph/engine/loops/ForeachGraphNodeExecutor.cjs.map +0 -1
  263. package/lib/cjs/graph/engine/loops/UntilGraphNodeExecutor.cjs +0 -102
  264. package/lib/cjs/graph/engine/loops/UntilGraphNodeExecutor.cjs.map +0 -1
  265. package/lib/cjs/graph/engine/loops/WhileGraphNodeExecutor.cjs +0 -103
  266. package/lib/cjs/graph/engine/loops/WhileGraphNodeExecutor.cjs.map +0 -1
  267. package/lib/esm/graph/engine/execution/BreakGraphNodeExecutor.js +0 -19
  268. package/lib/esm/graph/engine/execution/BreakGraphNodeExecutor.js.map +0 -1
  269. package/lib/esm/graph/engine/execution/CodeGraphNodeExecutor.js +0 -98
  270. package/lib/esm/graph/engine/execution/CodeGraphNodeExecutor.js.map +0 -1
  271. package/lib/esm/graph/engine/execution/LogGraphNodeExecutor.js +0 -42
  272. package/lib/esm/graph/engine/execution/LogGraphNodeExecutor.js.map +0 -1
  273. package/lib/esm/graph/engine/execution/SwitchGraphNodeExecutor.js +0 -116
  274. package/lib/esm/graph/engine/execution/SwitchGraphNodeExecutor.js.map +0 -1
  275. package/lib/esm/graph/engine/loops/ForeachGraphNodeExecutor.js +0 -141
  276. package/lib/esm/graph/engine/loops/ForeachGraphNodeExecutor.js.map +0 -1
  277. package/lib/esm/graph/engine/loops/UntilGraphNodeExecutor.js +0 -97
  278. package/lib/esm/graph/engine/loops/UntilGraphNodeExecutor.js.map +0 -1
  279. package/lib/esm/graph/engine/loops/WhileGraphNodeExecutor.js +0 -98
  280. package/lib/esm/graph/engine/loops/WhileGraphNodeExecutor.js.map +0 -1
  281. package/lib/types/graph/engine/execution/BreakGraphNodeExecutor.d.cts +0 -22
  282. package/lib/types/graph/engine/execution/BreakGraphNodeExecutor.d.mts +0 -22
  283. package/lib/types/graph/engine/execution/CodeGraphNodeExecutor.d.cts +0 -65
  284. package/lib/types/graph/engine/execution/CodeGraphNodeExecutor.d.mts +0 -65
  285. package/lib/types/graph/engine/execution/LogGraphNodeExecutor.d.cts +0 -25
  286. package/lib/types/graph/engine/execution/LogGraphNodeExecutor.d.mts +0 -25
  287. package/lib/types/graph/engine/execution/SwitchGraphNodeExecutor.d.cts +0 -43
  288. package/lib/types/graph/engine/execution/SwitchGraphNodeExecutor.d.mts +0 -43
  289. package/lib/types/graph/engine/loops/ForeachGraphNodeExecutor.d.cts +0 -35
  290. package/lib/types/graph/engine/loops/ForeachGraphNodeExecutor.d.mts +0 -35
  291. package/lib/types/graph/engine/loops/UntilGraphNodeExecutor.d.cts +0 -22
  292. package/lib/types/graph/engine/loops/UntilGraphNodeExecutor.d.mts +0 -22
  293. package/lib/types/graph/engine/loops/WhileGraphNodeExecutor.d.cts +0 -26
  294. package/lib/types/graph/engine/loops/WhileGraphNodeExecutor.d.mts +0 -26
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GRAPH_AGENT_NODES = exports.AgentNode = 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/agents/agent
20
+ * @summary Production Agent node declaration.
21
+ * @description The Agent node is the primary AI agent entrypoint. It is a
22
+ * rectangular node with `@connection()` ports for its structural
23
+ * dependencies: `model` (the LLM), `memory` (the memory store), and
24
+ * `workspace` (the workspace/context). Connections are rendered on the
25
+ * bottom side of the node (DECAF-32 §21.3). Each connection category has a
26
+ * distinct color defined in the category style registry.
27
+ *
28
+ * The single `prompt` input accepts placeholder expressions (§22.4) such as
29
+ * `{{ $input.brief }}` or `{{ $node["Research"].output.summary }}` that are
30
+ * resolved at execution time by the placeholder compiler.
31
+ */
32
+ const decorator_validation_1 = require("@decaf-ts/decorator-validation");
33
+ const ui_decorators_1 = require("@decaf-ts/ui-decorators");
34
+ const graph_1 = require("@decaf-ts/ui-decorators/graph");
35
+ const base_js_1 = require("./../base.cjs");
36
+ /**
37
+ * Agent node — an AI agent that orchestrates a model, memory, and workspace.
38
+ *
39
+ * The agent has:
40
+ * - `@input` port on the **left**: `prompt` (the task prompt; supports
41
+ * placeholder expressions like `{{ $input.something }}` per §22.4).
42
+ * - `@output` ports on the **right**: `response` (the agent's output), `actions`
43
+ * (any actions the agent decided to take).
44
+ * - `@connection` ports on the **bottom**: `model` (LLM), `memory` (memory
45
+ * store), `workspace` (workspace/context). Each connection has a distinct
46
+ * category color.
47
+ *
48
+ * The node is rectangular (not rounded) to visually distinguish it from
49
+ * regular processing nodes. The `color` and `icon` are omitted from `@node()`
50
+ * so they are resolved from the `"Agent"` category style.
51
+ */
52
+ let AgentNode = class AgentNode extends base_js_1.GraphNode {
53
+ static execute(request) {
54
+ return {
55
+ response: `[Agent response] ${String(request.inputs["prompt"] ?? "")}`,
56
+ actions: [],
57
+ };
58
+ }
59
+ };
60
+ exports.AgentNode = AgentNode;
61
+ __decorate([
62
+ (0, decorator_validation_1.required)(),
63
+ (0, ui_decorators_1.uielement)("textarea", {
64
+ label: "Prompt",
65
+ placeholder: 'Enter task prompt. Supports placeholders like {{ $input.brief }} or {{ $node["Research"].output.summary }}',
66
+ }),
67
+ (0, graph_1.input)({ handle: "prompt" }),
68
+ __metadata("design:type", String)
69
+ ], AgentNode.prototype, "prompt", void 0);
70
+ __decorate([
71
+ (0, decorator_validation_1.required)(),
72
+ (0, ui_decorators_1.uielement)("textarea", { label: "Response", placeholder: "Agent response" }),
73
+ (0, graph_1.output)({ handle: "response" }),
74
+ __metadata("design:type", String)
75
+ ], AgentNode.prototype, "response", void 0);
76
+ __decorate([
77
+ (0, decorator_validation_1.required)(),
78
+ (0, ui_decorators_1.uielement)("textarea", {
79
+ label: "Actions",
80
+ placeholder: "Actions taken by the agent",
81
+ }),
82
+ (0, graph_1.output)({ handle: "actions" }),
83
+ __metadata("design:type", Array)
84
+ ], AgentNode.prototype, "actions", void 0);
85
+ __decorate([
86
+ (0, graph_1.connection)({ category: "model", handle: "model" }),
87
+ __metadata("design:type", Object)
88
+ ], AgentNode.prototype, "model", void 0);
89
+ __decorate([
90
+ (0, graph_1.connection)({ category: "memory", handle: "memory" }),
91
+ __metadata("design:type", Object)
92
+ ], AgentNode.prototype, "memory", void 0);
93
+ __decorate([
94
+ (0, graph_1.connection)({ category: "workspace", handle: "workspace" }),
95
+ __metadata("design:type", Object)
96
+ ], AgentNode.prototype, "workspace", void 0);
97
+ exports.AgentNode = AgentNode = __decorate([
98
+ (0, graph_1.node)("core.agent", {
99
+ kind: "core.agent",
100
+ category: "Agent",
101
+ // color and icon omitted — resolved from the "Agent" category style
102
+ width: 140,
103
+ height: 120,
104
+ labels: ["agent", "ai", "orchestrator"],
105
+ metadata: {
106
+ title: "Agent",
107
+ description: "AI agent that orchestrates a model, memory, and workspace to complete a task.",
108
+ shape: "rectangle",
109
+ },
110
+ }),
111
+ (0, decorator_validation_1.model)()
112
+ ], AgentNode);
113
+ /**
114
+ * All built-in agent node constructors.
115
+ */
116
+ exports.GRAPH_AGENT_NODES = [AgentNode];
117
+ //# sourceMappingURL=agent.js.map
118
+ //# sourceMappingURL=agent.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/nodes/agents/agent.cjs","sourceRoot":"","sources":["graph/nodes/agents/agent.js"],"names":[],"mappings":";;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A+E;YAC5F,KAAK,EAAE,WAAW;SACrB;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,SAAS,CAAC,CAAC;AAEd;;GAEG;AACU,QAAA,iBAAiB,GAAG,CAAC,SAAS,CAAC,CAAC;AAC7C,iCAAiC"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GraphNode = void 0;
4
+ /**
5
+ * @module integrations/graph/nodes/base
6
+ * @summary Base class for backend graph node declarations.
7
+ * @description `GraphNode` is the single authoritative backend representation of
8
+ * a built-in node kind (DECAF-50 §4.26 R2-1): the `@node`-decorated class
9
+ * carries both the published manifest metadata and the executable behaviour via
10
+ * `execute`. The catalogue derives each kind's executor from the class, so there
11
+ * is exactly one authority per node kind.
12
+ */
13
+ const decorator_validation_1 = require("@decaf-ts/decorator-validation");
14
+ const GraphExecutionError_js_1 = require("./../engine/errors/GraphExecutionError.cjs");
15
+ /**
16
+ * Base class for the built-in backend node kinds.
17
+ *
18
+ * Extends `Model` so the `@node`/`@uielement` decorators and the manifest
19
+ * compiler keep working unchanged. Concrete kinds override `execute`; the default
20
+ * throws so a kind that forgets to implement behaviour fails fast rather than
21
+ * silently producing no output.
22
+ */
23
+ class GraphNode extends decorator_validation_1.Model {
24
+ /**
25
+ * Executes the node's behaviour against the request inputs and run context.
26
+ *
27
+ * @param _request - The node execution request (inputs, parameters,
28
+ * credentials, metadata).
29
+ * @param _context - The run-scoped execution context.
30
+ * @returns The node's output values keyed by port name.
31
+ * @throws {GraphExecutionError} when the kind does not implement `execute`.
32
+ */
33
+ static execute(
34
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
35
+ _request,
36
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
37
+ _context) {
38
+ throw new GraphExecutionError_js_1.GraphExecutionError(`Graph node kind '${this.name}' does not implement execute`, "GRAPH_NODE_EXECUTE_NOT_IMPLEMENTED", { kind: this.name });
39
+ }
40
+ /**
41
+ * Applies a metadata patch to this node class, returning the resulting
42
+ * ports, size, and data patches.
43
+ *
44
+ * The default implementation returns `null` (no changes). Concrete node
45
+ * kinds that support dynamic metadata override this to compute their own
46
+ * ports and size from the metadata — the caller (renderer) simply relays
47
+ * the result to the diagram model.
48
+ *
49
+ * @param _meta - The metadata patch (node-kind-specific, e.g.
50
+ * `SwitchNodeMetadata`).
51
+ * @returns The computed change, or `null` when the node kind does not
52
+ * support dynamic metadata.
53
+ */
54
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
55
+ static applyMetadata(_meta) {
56
+ return null;
57
+ }
58
+ }
59
+ exports.GraphNode = GraphNode;
60
+ //# sourceMappingURL=base.js.map
61
+ //# sourceMappingURL=base.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/nodes/base.cjs","sourceRoot":"","sources":["graph/nodes/base.js"],"names":[],"mappings":";;;AAAA;;;;;;;;GAQG;AACH,yEAAuD;AACvD,sFAAgF;AAChF;;;;;;;GAOG;AACH,MAAa,SAAU,SAAQ,4BAAK;IAChC;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAO;IACd,6DAA6D;IAC7D,QAAQ;IACR,6DAA6D;IAC7D,QAAQ;QACJ,MAAM,IAAI,4CAAmB,CAAC,oBAAoB,IAAI,CAAC,IAAI,8BAA8B,EAAE,oCAAoC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1J,CAAC;IACD;;;;;;;;;;;;;OAaG;IACH,6DAA6D;IAC7D,MAAM,CAAC,aAAa,CAAC,KAAK;QACtB,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAnCD,8BAmCC;AACD,gCAAgC"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GraphInputValueNode = 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/boundary/input-value
20
+ * @summary Workflow input value boundary node declaration.
21
+ * @description Shared canvas node representing a workflow input value
22
+ * (decorator id `graph-input-value-node`), moved from the for-angular
23
+ * boundary nodes so both sides share the declaration. Reusable value node
24
+ * whose single `value` output may feed multiple targets.
25
+ */
26
+ const decorator_validation_1 = require("@decaf-ts/decorator-validation");
27
+ const graph_1 = require("@decaf-ts/ui-decorators/graph");
28
+ const base_js_1 = require("./../base.cjs");
29
+ let GraphInputValueNode = class GraphInputValueNode extends base_js_1.GraphNode {
30
+ static execute(request) {
31
+ return { value: request.inputs["value"] ?? null };
32
+ }
33
+ };
34
+ exports.GraphInputValueNode = GraphInputValueNode;
35
+ __decorate([
36
+ (0, graph_1.output)({
37
+ handle: "value",
38
+ connectionRules: {
39
+ allowMultiple: true,
40
+ },
41
+ }),
42
+ __metadata("design:type", Object)
43
+ ], GraphInputValueNode.prototype, "value", void 0);
44
+ exports.GraphInputValueNode = GraphInputValueNode = __decorate([
45
+ (0, graph_1.node)("graph-input-value-node", {
46
+ kind: "value",
47
+ category: "Boundary",
48
+ color: "#0f766e",
49
+ icon: "ti-circle-plus",
50
+ labels: ["workflow", "input", "value"],
51
+ metadata: {
52
+ title: "Workflow input value",
53
+ description: "Reusable canvas value node representing a workflow input.",
54
+ },
55
+ }),
56
+ (0, decorator_validation_1.model)()
57
+ ], GraphInputValueNode);
58
+ //# sourceMappingURL=input-value.js.map
59
+ //# sourceMappingURL=input-value.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/nodes/boundary/input-value.cjs","sourceRoot":"","sources":["graph/nodes/boundary/input-value.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,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;IAClJ,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,cAAc,CAAC,MAAM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CAAC;AAExB,uCAAuC"}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BreakFlowNode = 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/break
20
+ * @summary Break flow-control node declaration (DECAF-32 §22.2.2).
21
+ * @description Break — breaks out of the enclosing loop (foreach/while/until).
22
+ * When executed inside a loop body, the loop terminates early and the loop's
23
+ * `completed`/`state` output carries the results collected so far. The Break
24
+ * node's static `execute` throws a `GraphBreakSignal` that the enclosing loop
25
+ * node class catches.
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
+ const GraphBreakSignal_js_1 = require("./../../engine/errors/GraphBreakSignal.cjs");
32
+ let BreakFlowNode = class BreakFlowNode extends base_js_1.GraphNode {
33
+ static execute(request,
34
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
35
+ _context) {
36
+ throw new GraphBreakSignal_js_1.GraphBreakSignal(request.inputs["value"]);
37
+ }
38
+ };
39
+ exports.BreakFlowNode = BreakFlowNode;
40
+ __decorate([
41
+ (0, decorator_validation_1.required)(),
42
+ (0, ui_decorators_1.uielement)("textarea", {
43
+ label: "Value",
44
+ placeholder: "Value to forward (collected as the last partial result)",
45
+ }),
46
+ (0, graph_1.input)({ handle: "value" }),
47
+ __metadata("design:type", Object)
48
+ ], BreakFlowNode.prototype, "value", void 0);
49
+ __decorate([
50
+ (0, decorator_validation_1.required)(),
51
+ (0, graph_1.output)({ handle: "broken" }),
52
+ __metadata("design:type", Object)
53
+ ], BreakFlowNode.prototype, "broken", void 0);
54
+ exports.BreakFlowNode = BreakFlowNode = __decorate([
55
+ (0, graph_1.node)("core.flow.break", {
56
+ kind: "core.flow.break",
57
+ category: "Flow Control",
58
+ color: "#f59e0b",
59
+ icon: "ti-square-arrow-right",
60
+ width: 96,
61
+ height: 96,
62
+ labels: ["flow", "break", "loop", "control"],
63
+ metadata: {
64
+ title: "Break",
65
+ description: "Breaks out of the enclosing loop. The loop terminates early and returns the results collected so far.",
66
+ },
67
+ }),
68
+ (0, decorator_validation_1.model)()
69
+ ], BreakFlowNode);
70
+ //# sourceMappingURL=break.js.map
71
+ //# sourceMappingURL=break.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/nodes/flow-control/break.cjs","sourceRoot":"","sources":["graph/nodes/flow-control/break.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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CAAC,CAAC,CAAC;IACxD,CAAC;CACJ,CAAC;AA+BO,sCAAa;AA9BtB,UAAU,CAAC;IACP,IAAA,+BAAQ,GAAE;IACV,IAAA,yBAAS,EAAC,UAAU,EAAE;QAClB,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,yDAAyD;KACzE,CAAC;IACF,IAAA,aAAK,EAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;IAC1B,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,aAAa,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;AAC7C,UAAU,CAAC;IACP,IAAA,+BAAQ,GAAE;IACV,IAAA,cAAM,EAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IAC5B,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,aAAa,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;AAC9C,wBAAA,aAAa,GAAG,UAAU,CAAC;IACvB,IAAA,YAAI,EAAC,iBAAiB,EAAE;QACpB,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,cAAc;QACxB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,uBAAuB;QAC7B,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC;QAC5C,QAAQ,EAAE;YACN,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,uGAAuG;SACvH;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,aAAa,CAAC,CAAC;AAElB,iCAAiC"}
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ErrorBoundaryFlowNode = 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/error-boundary
20
+ * @summary Error-boundary flow-control node declaration (DECAF-32 §22.2.2).
21
+ * @description Error boundary — try/catch/finally workflow behaviour.
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 ErrorBoundaryFlowNode = class ErrorBoundaryFlowNode extends base_js_1.GraphNode {
28
+ static execute(request) {
29
+ return { result: request.inputs["value"] ?? request.inputs };
30
+ }
31
+ };
32
+ exports.ErrorBoundaryFlowNode = ErrorBoundaryFlowNode;
33
+ __decorate([
34
+ (0, decorator_validation_1.required)(),
35
+ (0, ui_decorators_1.uielement)("textarea", {
36
+ label: "Input value",
37
+ placeholder: "Value to guard",
38
+ }),
39
+ (0, graph_1.input)({ handle: "value" }),
40
+ __metadata("design:type", Object)
41
+ ], ErrorBoundaryFlowNode.prototype, "value", void 0);
42
+ __decorate([
43
+ (0, decorator_validation_1.required)(),
44
+ (0, ui_decorators_1.uielement)("input", { label: "Result", placeholder: "Output on success" }),
45
+ (0, graph_1.output)({ handle: "result" }),
46
+ __metadata("design:type", Object)
47
+ ], ErrorBoundaryFlowNode.prototype, "result", void 0);
48
+ __decorate([
49
+ (0, decorator_validation_1.required)(),
50
+ (0, ui_decorators_1.uielement)("input", { label: "Error", placeholder: "Output on failure" }),
51
+ (0, graph_1.output)({ handle: "error" }),
52
+ __metadata("design:type", Object)
53
+ ], ErrorBoundaryFlowNode.prototype, "error", void 0);
54
+ exports.ErrorBoundaryFlowNode = ErrorBoundaryFlowNode = __decorate([
55
+ (0, graph_1.node)("core.flow.errorBoundary", {
56
+ kind: "core.flow.errorBoundary",
57
+ category: "Flow Control",
58
+ color: "#f59e0b",
59
+ icon: "ti-shield-check",
60
+ width: 96,
61
+ height: 96,
62
+ labels: ["flow", "error", "try-catch"],
63
+ metadata: {
64
+ title: "Error boundary",
65
+ description: "Wraps the input in a try/catch/finally. Emits the result on success, or the error on failure.",
66
+ finally: false,
67
+ },
68
+ }),
69
+ (0, decorator_validation_1.model)()
70
+ ], ErrorBoundaryFlowNode);
71
+ //# sourceMappingURL=error-boundary.js.map
72
+ //# sourceMappingURL=error-boundary.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/nodes/flow-control/error-boundary.cjs","sourceRoot":"","sources":["graph/nodes/flow-control/error-boundary.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,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B,WAAW,EAAE,+FAA+F;YAC5G,OAAO,EAAE,KAAK;SACjB;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,qBAAqB,CAAC,CAAC;AAE1B,0CAA0C"}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HumanApprovalFlowNode = 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/human-approval
20
+ * @summary Human-approval flow-control node declaration (DECAF-32 §22.2.2).
21
+ * @description Human approval — suspends execution until a human approves
22
+ * or rejects.
23
+ */
24
+ const decorator_validation_1 = require("@decaf-ts/decorator-validation");
25
+ const ui_decorators_1 = require("@decaf-ts/ui-decorators");
26
+ const graph_1 = require("@decaf-ts/ui-decorators/graph");
27
+ const base_js_1 = require("./../base.cjs");
28
+ let HumanApprovalFlowNode = class HumanApprovalFlowNode extends base_js_1.GraphNode {
29
+ static execute(request) {
30
+ return { approved: request.inputs["value"] ?? request.inputs };
31
+ }
32
+ };
33
+ exports.HumanApprovalFlowNode = HumanApprovalFlowNode;
34
+ __decorate([
35
+ (0, decorator_validation_1.required)(),
36
+ (0, ui_decorators_1.uielement)("textarea", {
37
+ label: "Input value",
38
+ placeholder: "Value pending approval",
39
+ }),
40
+ (0, graph_1.input)({ handle: "value" }),
41
+ __metadata("design:type", Object)
42
+ ], HumanApprovalFlowNode.prototype, "value", void 0);
43
+ __decorate([
44
+ (0, decorator_validation_1.required)(),
45
+ (0, ui_decorators_1.uielement)("input", {
46
+ label: "Approved",
47
+ placeholder: "Output when approved",
48
+ }),
49
+ (0, graph_1.output)({ handle: "approved" }),
50
+ __metadata("design:type", Object)
51
+ ], HumanApprovalFlowNode.prototype, "approved", void 0);
52
+ __decorate([
53
+ (0, decorator_validation_1.required)(),
54
+ (0, ui_decorators_1.uielement)("input", {
55
+ label: "Rejected",
56
+ placeholder: "Output when rejected",
57
+ }),
58
+ (0, graph_1.output)({ handle: "rejected" }),
59
+ __metadata("design:type", Object)
60
+ ], HumanApprovalFlowNode.prototype, "rejected", void 0);
61
+ exports.HumanApprovalFlowNode = HumanApprovalFlowNode = __decorate([
62
+ (0, graph_1.node)("core.flow.humanApproval", {
63
+ kind: "core.flow.humanApproval",
64
+ category: "Flow Control",
65
+ color: "#f59e0b",
66
+ icon: "ti-user-check",
67
+ width: 96,
68
+ height: 96,
69
+ labels: ["flow", "approval", "suspend"],
70
+ metadata: {
71
+ title: "Human approval",
72
+ description: "Suspends execution until a human approves or rejects. Emits the approved value or a rejection.",
73
+ approvers: [],
74
+ timeoutMs: 86400000,
75
+ },
76
+ }),
77
+ (0, decorator_validation_1.model)()
78
+ ], HumanApprovalFlowNode);
79
+ //# sourceMappingURL=human-approval.js.map
80
+ //# sourceMappingURL=human-approval.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/nodes/flow-control/human-approval.cjs","sourceRoot":"","sources":["graph/nodes/flow-control/human-approval.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,CA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AC,CAAC,CAAC;AACxD,gCAAA,qBAAqB,GAAG,UAAU,CAAC;IAC/B,IAAA,YAAI,EAAC,yBAAyB,EAAE;QAC5B,IAAI,EAAE,yBAAyB;QAC/B,QAAQ,EAAE,cAAc;QACxB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,eAAe;QACrB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC;QACvC,QAAQ,EAAE;YACN,KAAK,EAAE,gBAAgB;YACvB,WAAW,EAAE,gGAAgG;YAC7G,SAAS,EAAE,EAAE;YACb,SAAS,EAAE,QAAQ;SACtB;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,qBAAqB,CAAC,CAAC;AAE1B,0CAA0C"}
@@ -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,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;IAClJ,OAAO,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