@decaf-ts/integrations 0.3.1 → 0.3.3

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 (418) hide show
  1. package/dist/integrations.cjs +1 -1
  2. package/lib/cjs/graph/constants.cjs +94 -0
  3. package/lib/cjs/graph/constants.cjs.map +1 -0
  4. package/lib/cjs/graph/decorators.cjs +4 -0
  5. package/lib/cjs/graph/decorators.cjs.map +1 -0
  6. package/lib/cjs/graph/errors/GraphCycleError.cjs +20 -0
  7. package/lib/cjs/graph/errors/GraphCycleError.cjs.map +1 -0
  8. package/lib/cjs/graph/errors/GraphExecutionError.cjs +27 -0
  9. package/lib/cjs/graph/errors/GraphExecutionError.cjs.map +1 -0
  10. package/lib/cjs/graph/errors/GraphInputError.cjs +20 -0
  11. package/lib/cjs/graph/errors/GraphInputError.cjs.map +1 -0
  12. package/lib/cjs/graph/errors/GraphLoopLimitError.cjs +20 -0
  13. package/lib/cjs/graph/errors/GraphLoopLimitError.cjs.map +1 -0
  14. package/lib/cjs/graph/errors/GraphPinningError.cjs +20 -0
  15. package/lib/cjs/graph/errors/GraphPinningError.cjs.map +1 -0
  16. package/lib/cjs/graph/errors/GraphPortError.cjs +20 -0
  17. package/lib/cjs/graph/errors/GraphPortError.cjs.map +1 -0
  18. package/lib/cjs/graph/errors/GraphStoreError.cjs +20 -0
  19. package/lib/cjs/graph/errors/GraphStoreError.cjs.map +1 -0
  20. package/lib/cjs/graph/errors/GraphTopologyError.cjs +20 -0
  21. package/lib/cjs/graph/errors/GraphTopologyError.cjs.map +1 -0
  22. package/lib/cjs/graph/errors/index.cjs +31 -0
  23. package/lib/cjs/graph/errors/index.cjs.map +1 -0
  24. package/lib/cjs/graph/events/GraphExecutionEvent.cjs +4 -0
  25. package/lib/cjs/graph/events/GraphExecutionEvent.cjs.map +1 -0
  26. package/lib/cjs/graph/events/GraphExecutionEventEmitter.cjs +40 -0
  27. package/lib/cjs/graph/events/GraphExecutionEventEmitter.cjs.map +1 -0
  28. package/lib/cjs/graph/events/GraphExecutionEventFactory.cjs +37 -0
  29. package/lib/cjs/graph/events/GraphExecutionEventFactory.cjs.map +1 -0
  30. package/lib/cjs/graph/events/GraphExecutionObserver.cjs +4 -0
  31. package/lib/cjs/graph/events/GraphExecutionObserver.cjs.map +1 -0
  32. package/lib/cjs/graph/events/index.cjs +27 -0
  33. package/lib/cjs/graph/events/index.cjs.map +1 -0
  34. package/lib/cjs/graph/execution/GraphExecutionContext.cjs +79 -0
  35. package/lib/cjs/graph/execution/GraphExecutionContext.cjs.map +1 -0
  36. package/lib/cjs/graph/execution/GraphExecutionEngine.cjs +405 -0
  37. package/lib/cjs/graph/execution/GraphExecutionEngine.cjs.map +1 -0
  38. package/lib/cjs/graph/execution/GraphExecutionFrame.cjs +32 -0
  39. package/lib/cjs/graph/execution/GraphExecutionFrame.cjs.map +1 -0
  40. package/lib/cjs/graph/execution/GraphExecutionResult.cjs +30 -0
  41. package/lib/cjs/graph/execution/GraphExecutionResult.cjs.map +1 -0
  42. package/lib/cjs/graph/execution/GraphNodeExecutor.cjs +4 -0
  43. package/lib/cjs/graph/execution/GraphNodeExecutor.cjs.map +1 -0
  44. package/lib/cjs/graph/execution/index.cjs +28 -0
  45. package/lib/cjs/graph/execution/index.cjs.map +1 -0
  46. package/lib/cjs/graph/index.cjs +74 -0
  47. package/lib/cjs/graph/index.cjs.map +1 -0
  48. package/lib/cjs/graph/loops/ForeachGraphNodeExecutor.cjs +84 -0
  49. package/lib/cjs/graph/loops/ForeachGraphNodeExecutor.cjs.map +1 -0
  50. package/lib/cjs/graph/loops/GraphConditionEvaluator.cjs +63 -0
  51. package/lib/cjs/graph/loops/GraphConditionEvaluator.cjs.map +1 -0
  52. package/lib/cjs/graph/loops/GraphLoopExecutionContext.cjs +16 -0
  53. package/lib/cjs/graph/loops/GraphLoopExecutionContext.cjs.map +1 -0
  54. package/lib/cjs/graph/loops/UntilGraphNodeExecutor.cjs +76 -0
  55. package/lib/cjs/graph/loops/UntilGraphNodeExecutor.cjs.map +1 -0
  56. package/lib/cjs/graph/loops/WhileGraphNodeExecutor.cjs +77 -0
  57. package/lib/cjs/graph/loops/WhileGraphNodeExecutor.cjs.map +1 -0
  58. package/lib/cjs/graph/loops/index.cjs +28 -0
  59. package/lib/cjs/graph/loops/index.cjs.map +1 -0
  60. package/lib/cjs/graph/pinning/GraphPinningDependencyResolver.cjs +28 -0
  61. package/lib/cjs/graph/pinning/GraphPinningDependencyResolver.cjs.map +1 -0
  62. package/lib/cjs/graph/pinning/GraphPinningMetadata.cjs +20 -0
  63. package/lib/cjs/graph/pinning/GraphPinningMetadata.cjs.map +1 -0
  64. package/lib/cjs/graph/pinning/GraphPinningPolicy.cjs +34 -0
  65. package/lib/cjs/graph/pinning/GraphPinningPolicy.cjs.map +1 -0
  66. package/lib/cjs/graph/pinning/GraphPinningService.cjs +191 -0
  67. package/lib/cjs/graph/pinning/GraphPinningService.cjs.map +1 -0
  68. package/lib/cjs/graph/pinning/index.cjs +27 -0
  69. package/lib/cjs/graph/pinning/index.cjs.map +1 -0
  70. package/lib/cjs/graph/planning/GraphExecutionPlan.cjs +4 -0
  71. package/lib/cjs/graph/planning/GraphExecutionPlan.cjs.map +1 -0
  72. package/lib/cjs/graph/planning/GraphExecutionPlanEdge.cjs +4 -0
  73. package/lib/cjs/graph/planning/GraphExecutionPlanEdge.cjs.map +1 -0
  74. package/lib/cjs/graph/planning/GraphExecutionPlanLayer.cjs +4 -0
  75. package/lib/cjs/graph/planning/GraphExecutionPlanLayer.cjs.map +1 -0
  76. package/lib/cjs/graph/planning/GraphExecutionPlanNode.cjs +4 -0
  77. package/lib/cjs/graph/planning/GraphExecutionPlanNode.cjs.map +1 -0
  78. package/lib/cjs/graph/planning/GraphExecutionPlanner.cjs +197 -0
  79. package/lib/cjs/graph/planning/GraphExecutionPlanner.cjs.map +1 -0
  80. package/lib/cjs/graph/planning/GraphRelationResolver.cjs +172 -0
  81. package/lib/cjs/graph/planning/GraphRelationResolver.cjs.map +1 -0
  82. package/lib/cjs/graph/planning/GraphTopology.cjs +57 -0
  83. package/lib/cjs/graph/planning/GraphTopology.cjs.map +1 -0
  84. package/lib/cjs/graph/planning/index.cjs +30 -0
  85. package/lib/cjs/graph/planning/index.cjs.map +1 -0
  86. package/lib/cjs/graph/registry/GraphNodeExecutorRegistry.cjs +44 -0
  87. package/lib/cjs/graph/registry/GraphNodeExecutorRegistry.cjs.map +1 -0
  88. package/lib/cjs/graph/registry/GraphNodeExecutorResolver.cjs +27 -0
  89. package/lib/cjs/graph/registry/GraphNodeExecutorResolver.cjs.map +1 -0
  90. package/lib/cjs/graph/registry/index.cjs +25 -0
  91. package/lib/cjs/graph/registry/index.cjs.map +1 -0
  92. package/lib/cjs/graph/snapshots/GraphExecutionSnapshotMapper.cjs +53 -0
  93. package/lib/cjs/graph/snapshots/GraphExecutionSnapshotMapper.cjs.map +1 -0
  94. package/lib/cjs/graph/snapshots/index.cjs +24 -0
  95. package/lib/cjs/graph/snapshots/index.cjs.map +1 -0
  96. package/lib/cjs/graph/store/GraphCachedValue.cjs +4 -0
  97. package/lib/cjs/graph/store/GraphCachedValue.cjs.map +1 -0
  98. package/lib/cjs/graph/store/GraphValueKey.cjs +4 -0
  99. package/lib/cjs/graph/store/GraphValueKey.cjs.map +1 -0
  100. package/lib/cjs/graph/store/GraphValueStore.cjs +76 -0
  101. package/lib/cjs/graph/store/GraphValueStore.cjs.map +1 -0
  102. package/lib/cjs/graph/store/GraphValueStoreAdapter.cjs +4 -0
  103. package/lib/cjs/graph/store/GraphValueStoreAdapter.cjs.map +1 -0
  104. package/lib/cjs/graph/store/InMemoryGraphValueStoreAdapter.cjs +69 -0
  105. package/lib/cjs/graph/store/InMemoryGraphValueStoreAdapter.cjs.map +1 -0
  106. package/lib/cjs/graph/store/index.cjs +28 -0
  107. package/lib/cjs/graph/store/index.cjs.map +1 -0
  108. package/lib/cjs/graph/types.cjs +4 -0
  109. package/lib/cjs/graph/types.cjs.map +1 -0
  110. package/lib/cjs/graph/validation/GraphDefinitionValidator.cjs +33 -0
  111. package/lib/cjs/graph/validation/GraphDefinitionValidator.cjs.map +1 -0
  112. package/lib/cjs/graph/validation/GraphPortSchemaResolver.cjs +58 -0
  113. package/lib/cjs/graph/validation/GraphPortSchemaResolver.cjs.map +1 -0
  114. package/lib/cjs/graph/validation/GraphValueValidator.cjs +52 -0
  115. package/lib/cjs/graph/validation/GraphValueValidator.cjs.map +1 -0
  116. package/lib/cjs/graph/validation/index.cjs +26 -0
  117. package/lib/cjs/graph/validation/index.cjs.map +1 -0
  118. package/lib/cjs/index.cjs +3 -3
  119. package/lib/cjs/keycloak/services/KeycloakAuthService.cjs +2 -2
  120. package/lib/cjs/keycloak/services/KeycloakAuthService.cjs.map +1 -1
  121. package/lib/cjs/keycloak/services/KeycloakClientService.cjs +2 -2
  122. package/lib/cjs/keycloak/services/KeycloakClientService.cjs.map +1 -1
  123. package/lib/cjs/keycloak/services/KeycloakIdentityProviderService.cjs +2 -2
  124. package/lib/cjs/keycloak/services/KeycloakIdentityProviderService.cjs.map +1 -1
  125. package/lib/cjs/keycloak/services/KeycloakRealmService.cjs +2 -2
  126. package/lib/cjs/keycloak/services/KeycloakRealmService.cjs.map +1 -1
  127. package/lib/cjs/keycloak/services/KeycloakRoleService.cjs +2 -2
  128. package/lib/cjs/keycloak/services/KeycloakRoleService.cjs.map +1 -1
  129. package/lib/cjs/keycloak/services/KeycloakService.cjs +16 -9
  130. package/lib/cjs/keycloak/services/KeycloakService.cjs.map +1 -1
  131. package/lib/cjs/keycloak/services/KeycloakUserService.cjs +2 -2
  132. package/lib/cjs/keycloak/services/KeycloakUserService.cjs.map +1 -1
  133. package/lib/cjs/kibana/services/KibanaAuthService.cjs +3 -3
  134. package/lib/cjs/kibana/services/KibanaAuthService.cjs.map +1 -1
  135. package/lib/cjs/kibana/services/KibanaDashboardService.cjs +3 -3
  136. package/lib/cjs/kibana/services/KibanaDashboardService.cjs.map +1 -1
  137. package/lib/cjs/kibana/services/KibanaDataViewService.cjs +2 -2
  138. package/lib/cjs/kibana/services/KibanaDataViewService.cjs.map +1 -1
  139. package/lib/cjs/kibana/services/KibanaRoleService.cjs +2 -2
  140. package/lib/cjs/kibana/services/KibanaRoleService.cjs.map +1 -1
  141. package/lib/cjs/kibana/services/KibanaService.cjs +16 -9
  142. package/lib/cjs/kibana/services/KibanaService.cjs.map +1 -1
  143. package/lib/cjs/kibana/services/KibanaSpaceService.cjs +2 -2
  144. package/lib/cjs/kibana/services/KibanaSpaceService.cjs.map +1 -1
  145. package/lib/cjs/kibana/services/KibanaUserService.cjs +2 -2
  146. package/lib/cjs/kibana/services/KibanaUserService.cjs.map +1 -1
  147. package/lib/esm/graph/constants.js +106 -0
  148. package/lib/esm/graph/constants.js.map +1 -0
  149. package/lib/esm/graph/decorators.js +2 -0
  150. package/lib/esm/graph/decorators.js.map +1 -0
  151. package/lib/esm/graph/errors/GraphCycleError.js +15 -0
  152. package/lib/esm/graph/errors/GraphCycleError.js.map +1 -0
  153. package/lib/esm/graph/errors/GraphExecutionError.js +22 -0
  154. package/lib/esm/graph/errors/GraphExecutionError.js.map +1 -0
  155. package/lib/esm/graph/errors/GraphInputError.js +15 -0
  156. package/lib/esm/graph/errors/GraphInputError.js.map +1 -0
  157. package/lib/esm/graph/errors/GraphLoopLimitError.js +15 -0
  158. package/lib/esm/graph/errors/GraphLoopLimitError.js.map +1 -0
  159. package/lib/esm/graph/errors/GraphPinningError.js +15 -0
  160. package/lib/esm/graph/errors/GraphPinningError.js.map +1 -0
  161. package/lib/esm/graph/errors/GraphPortError.js +15 -0
  162. package/lib/esm/graph/errors/GraphPortError.js.map +1 -0
  163. package/lib/esm/graph/errors/GraphStoreError.js +15 -0
  164. package/lib/esm/graph/errors/GraphStoreError.js.map +1 -0
  165. package/lib/esm/graph/errors/GraphTopologyError.js +15 -0
  166. package/lib/esm/graph/errors/GraphTopologyError.js.map +1 -0
  167. package/lib/esm/graph/errors/index.js +14 -0
  168. package/lib/esm/graph/errors/index.js.map +1 -0
  169. package/lib/esm/graph/events/GraphExecutionEvent.js +2 -0
  170. package/lib/esm/graph/events/GraphExecutionEvent.js.map +1 -0
  171. package/lib/esm/graph/events/GraphExecutionEventEmitter.js +35 -0
  172. package/lib/esm/graph/events/GraphExecutionEventEmitter.js.map +1 -0
  173. package/lib/esm/graph/events/GraphExecutionEventFactory.js +32 -0
  174. package/lib/esm/graph/events/GraphExecutionEventFactory.js.map +1 -0
  175. package/lib/esm/graph/events/GraphExecutionObserver.js +2 -0
  176. package/lib/esm/graph/events/GraphExecutionObserver.js.map +1 -0
  177. package/lib/esm/graph/events/index.js +10 -0
  178. package/lib/esm/graph/events/index.js.map +1 -0
  179. package/lib/esm/graph/execution/GraphExecutionContext.js +74 -0
  180. package/lib/esm/graph/execution/GraphExecutionContext.js.map +1 -0
  181. package/lib/esm/graph/execution/GraphExecutionEngine.js +400 -0
  182. package/lib/esm/graph/execution/GraphExecutionEngine.js.map +1 -0
  183. package/lib/esm/graph/execution/GraphExecutionFrame.js +27 -0
  184. package/lib/esm/graph/execution/GraphExecutionFrame.js.map +1 -0
  185. package/lib/esm/graph/execution/GraphExecutionResult.js +26 -0
  186. package/lib/esm/graph/execution/GraphExecutionResult.js.map +1 -0
  187. package/lib/esm/graph/execution/GraphNodeExecutor.js +2 -0
  188. package/lib/esm/graph/execution/GraphNodeExecutor.js.map +1 -0
  189. package/lib/esm/graph/execution/index.js +11 -0
  190. package/lib/esm/graph/execution/index.js.map +1 -0
  191. package/lib/esm/graph/index.js +57 -0
  192. package/lib/esm/graph/index.js.map +1 -0
  193. package/lib/esm/graph/loops/ForeachGraphNodeExecutor.js +79 -0
  194. package/lib/esm/graph/loops/ForeachGraphNodeExecutor.js.map +1 -0
  195. package/lib/esm/graph/loops/GraphConditionEvaluator.js +58 -0
  196. package/lib/esm/graph/loops/GraphConditionEvaluator.js.map +1 -0
  197. package/lib/esm/graph/loops/GraphLoopExecutionContext.js +11 -0
  198. package/lib/esm/graph/loops/GraphLoopExecutionContext.js.map +1 -0
  199. package/lib/esm/graph/loops/UntilGraphNodeExecutor.js +71 -0
  200. package/lib/esm/graph/loops/UntilGraphNodeExecutor.js.map +1 -0
  201. package/lib/esm/graph/loops/WhileGraphNodeExecutor.js +72 -0
  202. package/lib/esm/graph/loops/WhileGraphNodeExecutor.js.map +1 -0
  203. package/lib/esm/graph/loops/index.js +11 -0
  204. package/lib/esm/graph/loops/index.js.map +1 -0
  205. package/lib/esm/graph/pinning/GraphPinningDependencyResolver.js +23 -0
  206. package/lib/esm/graph/pinning/GraphPinningDependencyResolver.js.map +1 -0
  207. package/lib/esm/graph/pinning/GraphPinningMetadata.js +15 -0
  208. package/lib/esm/graph/pinning/GraphPinningMetadata.js.map +1 -0
  209. package/lib/esm/graph/pinning/GraphPinningPolicy.js +29 -0
  210. package/lib/esm/graph/pinning/GraphPinningPolicy.js.map +1 -0
  211. package/lib/esm/graph/pinning/GraphPinningService.js +186 -0
  212. package/lib/esm/graph/pinning/GraphPinningService.js.map +1 -0
  213. package/lib/esm/graph/pinning/index.js +10 -0
  214. package/lib/esm/graph/pinning/index.js.map +1 -0
  215. package/lib/esm/graph/planning/GraphExecutionPlan.js +2 -0
  216. package/lib/esm/graph/planning/GraphExecutionPlan.js.map +1 -0
  217. package/lib/esm/graph/planning/GraphExecutionPlanEdge.js +7 -0
  218. package/lib/esm/graph/planning/GraphExecutionPlanEdge.js.map +1 -0
  219. package/lib/esm/graph/planning/GraphExecutionPlanLayer.js +2 -0
  220. package/lib/esm/graph/planning/GraphExecutionPlanLayer.js.map +1 -0
  221. package/lib/esm/graph/planning/GraphExecutionPlanNode.js +2 -0
  222. package/lib/esm/graph/planning/GraphExecutionPlanNode.js.map +1 -0
  223. package/lib/esm/graph/planning/GraphExecutionPlanner.js +192 -0
  224. package/lib/esm/graph/planning/GraphExecutionPlanner.js.map +1 -0
  225. package/lib/esm/graph/planning/GraphRelationResolver.js +167 -0
  226. package/lib/esm/graph/planning/GraphRelationResolver.js.map +1 -0
  227. package/lib/esm/graph/planning/GraphTopology.js +52 -0
  228. package/lib/esm/graph/planning/GraphTopology.js.map +1 -0
  229. package/lib/esm/graph/planning/index.js +13 -0
  230. package/lib/esm/graph/planning/index.js.map +1 -0
  231. package/lib/esm/graph/registry/GraphNodeExecutorRegistry.js +39 -0
  232. package/lib/esm/graph/registry/GraphNodeExecutorRegistry.js.map +1 -0
  233. package/lib/esm/graph/registry/GraphNodeExecutorResolver.js +22 -0
  234. package/lib/esm/graph/registry/GraphNodeExecutorResolver.js.map +1 -0
  235. package/lib/esm/graph/registry/index.js +8 -0
  236. package/lib/esm/graph/registry/index.js.map +1 -0
  237. package/lib/esm/graph/snapshots/GraphExecutionSnapshotMapper.js +48 -0
  238. package/lib/esm/graph/snapshots/GraphExecutionSnapshotMapper.js.map +1 -0
  239. package/lib/esm/graph/snapshots/index.js +7 -0
  240. package/lib/esm/graph/snapshots/index.js.map +1 -0
  241. package/lib/esm/graph/store/GraphCachedValue.js +2 -0
  242. package/lib/esm/graph/store/GraphCachedValue.js.map +1 -0
  243. package/lib/esm/graph/store/GraphValueKey.js +7 -0
  244. package/lib/esm/graph/store/GraphValueKey.js.map +1 -0
  245. package/lib/esm/graph/store/GraphValueStore.js +71 -0
  246. package/lib/esm/graph/store/GraphValueStore.js.map +1 -0
  247. package/lib/esm/graph/store/GraphValueStoreAdapter.js +2 -0
  248. package/lib/esm/graph/store/GraphValueStoreAdapter.js.map +1 -0
  249. package/lib/esm/graph/store/InMemoryGraphValueStoreAdapter.js +64 -0
  250. package/lib/esm/graph/store/InMemoryGraphValueStoreAdapter.js.map +1 -0
  251. package/lib/esm/graph/store/index.js +11 -0
  252. package/lib/esm/graph/store/index.js.map +1 -0
  253. package/lib/esm/graph/types.js +2 -0
  254. package/lib/esm/graph/types.js.map +1 -0
  255. package/lib/esm/graph/validation/GraphDefinitionValidator.js +28 -0
  256. package/lib/esm/graph/validation/GraphDefinitionValidator.js.map +1 -0
  257. package/lib/esm/graph/validation/GraphPortSchemaResolver.js +53 -0
  258. package/lib/esm/graph/validation/GraphPortSchemaResolver.js.map +1 -0
  259. package/lib/esm/graph/validation/GraphValueValidator.js +47 -0
  260. package/lib/esm/graph/validation/GraphValueValidator.js.map +1 -0
  261. package/lib/esm/graph/validation/index.js +9 -0
  262. package/lib/esm/graph/validation/index.js.map +1 -0
  263. package/lib/esm/index.js +3 -3
  264. package/lib/esm/keycloak/services/KeycloakAuthService.js +2 -2
  265. package/lib/esm/keycloak/services/KeycloakAuthService.js.map +1 -1
  266. package/lib/esm/keycloak/services/KeycloakClientService.js +2 -2
  267. package/lib/esm/keycloak/services/KeycloakClientService.js.map +1 -1
  268. package/lib/esm/keycloak/services/KeycloakIdentityProviderService.js +2 -2
  269. package/lib/esm/keycloak/services/KeycloakIdentityProviderService.js.map +1 -1
  270. package/lib/esm/keycloak/services/KeycloakRealmService.js +2 -2
  271. package/lib/esm/keycloak/services/KeycloakRealmService.js.map +1 -1
  272. package/lib/esm/keycloak/services/KeycloakRoleService.js +2 -2
  273. package/lib/esm/keycloak/services/KeycloakRoleService.js.map +1 -1
  274. package/lib/esm/keycloak/services/KeycloakService.js +16 -9
  275. package/lib/esm/keycloak/services/KeycloakService.js.map +1 -1
  276. package/lib/esm/keycloak/services/KeycloakUserService.js +2 -2
  277. package/lib/esm/keycloak/services/KeycloakUserService.js.map +1 -1
  278. package/lib/esm/kibana/services/KibanaAuthService.js +3 -3
  279. package/lib/esm/kibana/services/KibanaAuthService.js.map +1 -1
  280. package/lib/esm/kibana/services/KibanaDashboardService.js +3 -3
  281. package/lib/esm/kibana/services/KibanaDashboardService.js.map +1 -1
  282. package/lib/esm/kibana/services/KibanaDataViewService.js +2 -2
  283. package/lib/esm/kibana/services/KibanaDataViewService.js.map +1 -1
  284. package/lib/esm/kibana/services/KibanaRoleService.js +2 -2
  285. package/lib/esm/kibana/services/KibanaRoleService.js.map +1 -1
  286. package/lib/esm/kibana/services/KibanaService.js +16 -9
  287. package/lib/esm/kibana/services/KibanaService.js.map +1 -1
  288. package/lib/esm/kibana/services/KibanaSpaceService.js +2 -2
  289. package/lib/esm/kibana/services/KibanaSpaceService.js.map +1 -1
  290. package/lib/esm/kibana/services/KibanaUserService.js +2 -2
  291. package/lib/esm/kibana/services/KibanaUserService.js.map +1 -1
  292. package/lib/types/graph/constants.d.cts +101 -0
  293. package/lib/types/graph/constants.d.mts +101 -0
  294. package/lib/types/graph/decorators.d.cts +6 -0
  295. package/lib/types/graph/decorators.d.mts +6 -0
  296. package/lib/types/graph/errors/GraphCycleError.d.cts +12 -0
  297. package/lib/types/graph/errors/GraphCycleError.d.mts +12 -0
  298. package/lib/types/graph/errors/GraphExecutionError.d.cts +19 -0
  299. package/lib/types/graph/errors/GraphExecutionError.d.mts +19 -0
  300. package/lib/types/graph/errors/GraphInputError.d.cts +12 -0
  301. package/lib/types/graph/errors/GraphInputError.d.mts +12 -0
  302. package/lib/types/graph/errors/GraphLoopLimitError.d.cts +12 -0
  303. package/lib/types/graph/errors/GraphLoopLimitError.d.mts +12 -0
  304. package/lib/types/graph/errors/GraphPinningError.d.cts +12 -0
  305. package/lib/types/graph/errors/GraphPinningError.d.mts +12 -0
  306. package/lib/types/graph/errors/GraphPortError.d.cts +12 -0
  307. package/lib/types/graph/errors/GraphPortError.d.mts +12 -0
  308. package/lib/types/graph/errors/GraphStoreError.d.cts +12 -0
  309. package/lib/types/graph/errors/GraphStoreError.d.mts +12 -0
  310. package/lib/types/graph/errors/GraphTopologyError.d.cts +12 -0
  311. package/lib/types/graph/errors/GraphTopologyError.d.mts +12 -0
  312. package/lib/types/graph/errors/index.d.cts +13 -0
  313. package/lib/types/graph/errors/index.d.mts +13 -0
  314. package/lib/types/graph/events/GraphExecutionEvent.d.cts +6 -0
  315. package/lib/types/graph/events/GraphExecutionEvent.d.mts +6 -0
  316. package/lib/types/graph/events/GraphExecutionEventEmitter.d.cts +26 -0
  317. package/lib/types/graph/events/GraphExecutionEventEmitter.d.mts +26 -0
  318. package/lib/types/graph/events/GraphExecutionEventFactory.d.cts +25 -0
  319. package/lib/types/graph/events/GraphExecutionEventFactory.d.mts +25 -0
  320. package/lib/types/graph/events/GraphExecutionObserver.d.cts +17 -0
  321. package/lib/types/graph/events/GraphExecutionObserver.d.mts +17 -0
  322. package/lib/types/graph/events/index.d.cts +9 -0
  323. package/lib/types/graph/events/index.d.mts +9 -0
  324. package/lib/types/graph/execution/GraphExecutionContext.d.cts +50 -0
  325. package/lib/types/graph/execution/GraphExecutionContext.d.mts +50 -0
  326. package/lib/types/graph/execution/GraphExecutionEngine.d.cts +112 -0
  327. package/lib/types/graph/execution/GraphExecutionEngine.d.mts +112 -0
  328. package/lib/types/graph/execution/GraphExecutionFrame.d.cts +29 -0
  329. package/lib/types/graph/execution/GraphExecutionFrame.d.mts +29 -0
  330. package/lib/types/graph/execution/GraphExecutionResult.d.cts +13 -0
  331. package/lib/types/graph/execution/GraphExecutionResult.d.mts +13 -0
  332. package/lib/types/graph/execution/GraphNodeExecutor.d.cts +23 -0
  333. package/lib/types/graph/execution/GraphNodeExecutor.d.mts +23 -0
  334. package/lib/types/graph/execution/index.d.cts +10 -0
  335. package/lib/types/graph/execution/index.d.mts +10 -0
  336. package/lib/types/graph/index.d.cts +52 -0
  337. package/lib/types/graph/index.d.mts +52 -0
  338. package/lib/types/graph/loops/ForeachGraphNodeExecutor.d.cts +27 -0
  339. package/lib/types/graph/loops/ForeachGraphNodeExecutor.d.mts +27 -0
  340. package/lib/types/graph/loops/GraphConditionEvaluator.d.cts +23 -0
  341. package/lib/types/graph/loops/GraphConditionEvaluator.d.mts +23 -0
  342. package/lib/types/graph/loops/GraphLoopExecutionContext.d.cts +15 -0
  343. package/lib/types/graph/loops/GraphLoopExecutionContext.d.mts +15 -0
  344. package/lib/types/graph/loops/UntilGraphNodeExecutor.d.cts +22 -0
  345. package/lib/types/graph/loops/UntilGraphNodeExecutor.d.mts +22 -0
  346. package/lib/types/graph/loops/WhileGraphNodeExecutor.d.cts +26 -0
  347. package/lib/types/graph/loops/WhileGraphNodeExecutor.d.mts +26 -0
  348. package/lib/types/graph/loops/index.d.cts +10 -0
  349. package/lib/types/graph/loops/index.d.mts +10 -0
  350. package/lib/types/graph/pinning/GraphPinningDependencyResolver.d.cts +21 -0
  351. package/lib/types/graph/pinning/GraphPinningDependencyResolver.d.mts +21 -0
  352. package/lib/types/graph/pinning/GraphPinningMetadata.d.cts +14 -0
  353. package/lib/types/graph/pinning/GraphPinningMetadata.d.mts +14 -0
  354. package/lib/types/graph/pinning/GraphPinningPolicy.d.cts +20 -0
  355. package/lib/types/graph/pinning/GraphPinningPolicy.d.mts +20 -0
  356. package/lib/types/graph/pinning/GraphPinningService.d.cts +59 -0
  357. package/lib/types/graph/pinning/GraphPinningService.d.mts +59 -0
  358. package/lib/types/graph/pinning/index.d.cts +9 -0
  359. package/lib/types/graph/pinning/index.d.mts +9 -0
  360. package/lib/types/graph/planning/GraphExecutionPlan.d.cts +21 -0
  361. package/lib/types/graph/planning/GraphExecutionPlan.d.mts +21 -0
  362. package/lib/types/graph/planning/GraphExecutionPlanEdge.d.cts +21 -0
  363. package/lib/types/graph/planning/GraphExecutionPlanEdge.d.mts +21 -0
  364. package/lib/types/graph/planning/GraphExecutionPlanLayer.d.cts +13 -0
  365. package/lib/types/graph/planning/GraphExecutionPlanLayer.d.mts +13 -0
  366. package/lib/types/graph/planning/GraphExecutionPlanNode.d.cts +20 -0
  367. package/lib/types/graph/planning/GraphExecutionPlanNode.d.mts +20 -0
  368. package/lib/types/graph/planning/GraphExecutionPlanner.d.cts +60 -0
  369. package/lib/types/graph/planning/GraphExecutionPlanner.d.mts +60 -0
  370. package/lib/types/graph/planning/GraphRelationResolver.d.cts +62 -0
  371. package/lib/types/graph/planning/GraphRelationResolver.d.mts +62 -0
  372. package/lib/types/graph/planning/GraphTopology.d.cts +23 -0
  373. package/lib/types/graph/planning/GraphTopology.d.mts +23 -0
  374. package/lib/types/graph/planning/index.d.cts +12 -0
  375. package/lib/types/graph/planning/index.d.mts +12 -0
  376. package/lib/types/graph/registry/GraphNodeExecutorRegistry.d.cts +25 -0
  377. package/lib/types/graph/registry/GraphNodeExecutorRegistry.d.mts +25 -0
  378. package/lib/types/graph/registry/GraphNodeExecutorResolver.d.cts +21 -0
  379. package/lib/types/graph/registry/GraphNodeExecutorResolver.d.mts +21 -0
  380. package/lib/types/graph/registry/index.d.cts +7 -0
  381. package/lib/types/graph/registry/index.d.mts +7 -0
  382. package/lib/types/graph/snapshots/GraphExecutionSnapshotMapper.d.cts +10 -0
  383. package/lib/types/graph/snapshots/GraphExecutionSnapshotMapper.d.mts +10 -0
  384. package/lib/types/graph/snapshots/index.d.cts +6 -0
  385. package/lib/types/graph/snapshots/index.d.mts +6 -0
  386. package/lib/types/graph/store/GraphCachedValue.d.cts +20 -0
  387. package/lib/types/graph/store/GraphCachedValue.d.mts +20 -0
  388. package/lib/types/graph/store/GraphValueKey.d.cts +18 -0
  389. package/lib/types/graph/store/GraphValueKey.d.mts +18 -0
  390. package/lib/types/graph/store/GraphValueStore.d.cts +41 -0
  391. package/lib/types/graph/store/GraphValueStore.d.mts +41 -0
  392. package/lib/types/graph/store/GraphValueStoreAdapter.d.cts +32 -0
  393. package/lib/types/graph/store/GraphValueStoreAdapter.d.mts +32 -0
  394. package/lib/types/graph/store/InMemoryGraphValueStoreAdapter.d.cts +33 -0
  395. package/lib/types/graph/store/InMemoryGraphValueStoreAdapter.d.mts +33 -0
  396. package/lib/types/graph/store/index.d.cts +10 -0
  397. package/lib/types/graph/store/index.d.mts +10 -0
  398. package/lib/types/graph/types.d.cts +197 -0
  399. package/lib/types/graph/types.d.mts +197 -0
  400. package/lib/types/graph/validation/GraphDefinitionValidator.d.cts +21 -0
  401. package/lib/types/graph/validation/GraphDefinitionValidator.d.mts +21 -0
  402. package/lib/types/graph/validation/GraphPortSchemaResolver.d.cts +39 -0
  403. package/lib/types/graph/validation/GraphPortSchemaResolver.d.mts +39 -0
  404. package/lib/types/graph/validation/GraphValueValidator.d.cts +27 -0
  405. package/lib/types/graph/validation/GraphValueValidator.d.mts +27 -0
  406. package/lib/types/graph/validation/index.d.cts +8 -0
  407. package/lib/types/graph/validation/index.d.mts +8 -0
  408. package/lib/types/index.d.cts +2 -2
  409. package/lib/types/index.d.mts +2 -2
  410. package/lib/types/keycloak/services/KeycloakService.d.cts +1 -0
  411. package/lib/types/keycloak/services/KeycloakService.d.mts +1 -0
  412. package/lib/types/keycloak/types.d.cts +1 -4
  413. package/lib/types/keycloak/types.d.mts +1 -4
  414. package/lib/types/kibana/services/KibanaService.d.cts +1 -0
  415. package/lib/types/kibana/services/KibanaService.d.mts +1 -0
  416. package/lib/types/kibana/types.d.cts +1 -4
  417. package/lib/types/kibana/types.d.mts +1 -4
  418. package/package.json +17 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/planning/GraphRelationResolver.cjs","sourceRoot":"","sources":["graph/planning/GraphRelationResolver.js"],"names":[],"mappings":";;;AAAA,yDAAkE;AAClE,oDAA4D;AAC5D,qEAA+D;AAC/D,6EAAuE;AACvE;;GAEG;AACH,MAAa,qBAAqB;IAC9B;;;;;;;OAOG;IACH,OAAO,CAAC,QAAQ;QACZ,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACzD,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;QACvD,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACnD,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACrD,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QACpD,MAAM,KAAK,GAAG,EAAE,CAAC;QACjB,K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OAAO,CAAC,KAAK,CAAC;YACrB,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ;YAC9B,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IACpC,CAAC;IACD;;OAEG;IACH,YAAY,CAAC,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU;QAC3D,OAAO,GAAG,YAAY,IAAI,UAAU,KAAK,YAAY,IAAI,UAAU,EAAE,CAAC;IAC1E,CAAC;CACJ;AA9JD,sDA8JC;AACD,iDAAiD"}
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GraphTopology = void 0;
4
+ /**
5
+ * Topology utility for traversing the execution plan's edges.
6
+ */
7
+ class GraphTopology {
8
+ /**
9
+ * Returns the set of upstream node ids reachable from `nodeId` by following
10
+ * incoming edges. The workflow boundary node is excluded.
11
+ */
12
+ static upstreamNodes(nodeId, incomingByNode, includeBoundary = false) {
13
+ const visited = new Set();
14
+ const stack = [nodeId];
15
+ while (stack.length) {
16
+ const current = stack.pop();
17
+ const incoming = incomingByNode.get(current) ?? [];
18
+ for (const edge of incoming) {
19
+ if (!includeBoundary && this.isBoundary(edge.sourceNodeId))
20
+ continue;
21
+ if (!visited.has(edge.sourceNodeId)) {
22
+ visited.add(edge.sourceNodeId);
23
+ stack.push(edge.sourceNodeId);
24
+ }
25
+ }
26
+ }
27
+ return visited;
28
+ }
29
+ /**
30
+ * Returns the set of downstream node ids reachable from `nodeId` by following
31
+ * outgoing edges. The workflow boundary node is excluded.
32
+ */
33
+ static downstreamNodes(nodeId, outgoingByNode, includeBoundary = false) {
34
+ const visited = new Set();
35
+ const stack = [nodeId];
36
+ while (stack.length) {
37
+ const current = stack.pop();
38
+ const outgoing = outgoingByNode.get(current) ?? [];
39
+ for (const edge of outgoing) {
40
+ if (!includeBoundary && this.isBoundary(edge.targetNodeId))
41
+ continue;
42
+ if (!visited.has(edge.targetNodeId)) {
43
+ visited.add(edge.targetNodeId);
44
+ stack.push(edge.targetNodeId);
45
+ }
46
+ }
47
+ }
48
+ return visited;
49
+ }
50
+ /** Returns whether a node id is the workflow boundary. */
51
+ static isBoundary(nodeId) {
52
+ return nodeId === "$workflow";
53
+ }
54
+ }
55
+ exports.GraphTopology = GraphTopology;
56
+ //# sourceMappingURL=GraphTopology.js.map
57
+ //# sourceMappingURL=GraphTopology.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/planning/GraphTopology.cjs","sourceRoot":"","sources":["graph/planning/GraphTopology.js"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,aAAa;IACtB;;;OAGG;IACH,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,cAAc,EAAE,eAAe,GAAG,KAAK;QAChE,MAAM,OAAO,GAAG,IAAI,GAAG,EAAE,CAAC;QAC1B,MAAM,KAAK,GAAG,CAAC,MAAM,CAAC,CAAC;QACvB,OAAO,KAAK,CAAC,MAAM,EAAE,CAAC;YAClB,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;YAC5B,MAAM,QAAQ,GAAG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YACnD,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;gBAC1B,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC;oBACtD,SAAS;gBACb,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;oBAClC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;oBAC/B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;gBAClC,CAAC;YACL,CAAC;QACL,CAAC;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IACD;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,cAAc,EAAE,eAAe,GAAG,KAAK;QAClE,MAAM,OAAO,GAAG,IAAI,GAAG,EAAE,CAAC;QAC1B,MAAM,KAAK,GAAG,CAAC,MAAM,CAAC,CAAC;QACvB,OAAO,KAAK,CAAC,MAAM,EAAE,CAAC;YAClB,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;YAC5B,MAAM,QAAQ,GAAG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YACnD,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;gBAC1B,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC;oBACtD,SAAS;gBACb,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;oBAClC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;oBAC/B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;gBAClC,CAAC;YACL,CAAC;QACL,CAAC;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IACD,0DAA0D;IAC1D,MAAM,CAAC,UAAU,CAAC,MAAM;QACpB,OAAO,MAAM,KAAK,WAAW,CAAC;IAClC,CAAC;CACJ;AA/CD,sCA+CC;AACD,yCAAyC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /**
18
+ * @module integrations/graph/planning
19
+ * @summary Graph execution planning.
20
+ * @description Re-exports the execution plan types, relation resolver, and topological planner.
21
+ */
22
+ __exportStar(require("./GraphExecutionPlanNode.cjs"), exports);
23
+ __exportStar(require("./GraphExecutionPlanEdge.cjs"), exports);
24
+ __exportStar(require("./GraphExecutionPlanLayer.cjs"), exports);
25
+ __exportStar(require("./GraphExecutionPlan.cjs"), exports);
26
+ __exportStar(require("./GraphRelationResolver.cjs"), exports);
27
+ __exportStar(require("./GraphExecutionPlanner.cjs"), exports);
28
+ __exportStar(require("./GraphTopology.cjs"), exports);
29
+ //# sourceMappingURL=index.js.map
30
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/planning/index.cjs","sourceRoot":"","sources":["graph/planning/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,8DAA4C;AAC5C,8DAA4C;AAC5C,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,6DAA2C;AAC3C,qDAAmC;AACnC,iCAAiC"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GraphNodeExecutorRegistry = void 0;
4
+ const GraphExecutionError_js_1 = require("./../errors/GraphExecutionError.cjs");
5
+ /**
6
+ * Registry that maps node `kind` strings to {@link GraphNodeExecutor}
7
+ * instances.
8
+ */
9
+ class GraphNodeExecutorRegistry {
10
+ constructor() {
11
+ this.executors = new Map();
12
+ }
13
+ /** Registers an executor for the given node kind. */
14
+ register(kind, executor) {
15
+ if (!kind)
16
+ throw new GraphExecutionError_js_1.GraphExecutionError("Graph executor kind is required");
17
+ this.executors.set(kind, executor);
18
+ return this;
19
+ }
20
+ /** Removes the executor for the given node kind. */
21
+ unregister(kind) {
22
+ this.executors.delete(kind);
23
+ return this;
24
+ }
25
+ /** Returns whether an executor is registered for the given kind. */
26
+ has(kind) {
27
+ return this.executors.has(kind);
28
+ }
29
+ /**
30
+ * Resolves the executor for the given node kind.
31
+ *
32
+ * @throws {GraphExecutionError} when no executor is registered for `kind`.
33
+ */
34
+ resolve(kind) {
35
+ const executor = this.executors.get(kind);
36
+ if (!executor) {
37
+ throw new GraphExecutionError_js_1.GraphExecutionError(`No graph executor registered for kind '${kind}'`, "GRAPH_EXECUTOR_NOT_FOUND", { kind });
38
+ }
39
+ return executor;
40
+ }
41
+ }
42
+ exports.GraphNodeExecutorRegistry = GraphNodeExecutorRegistry;
43
+ //# sourceMappingURL=GraphNodeExecutorRegistry.js.map
44
+ //# sourceMappingURL=GraphNodeExecutorRegistry.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/registry/GraphNodeExecutorRegistry.cjs","sourceRoot":"","sources":["graph/registry/GraphNodeExecutorRegistry.js"],"names":[],"mappings":";;;AAAA,+EAAyE;AACzE;;;GAGG;AACH,MAAa,yBAAyB;IAClC;QACI,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAE,CAAC;IAC/B,CAAC;IACD,qDAAqD;IACrD,QAAQ,CAAC,IAAI,EAAE,QAAQ;QACnB,IAAI,CAAC,IAAI;YACL,MAAM,IAAI,4CAAmB,CAAC,iCAAiC,CAAC,CAAC;QACrE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACnC,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,oDAAoD;IACpD,UAAU,CAAC,IAAI;QACX,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5B,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,oEAAoE;IACpE,GAAG,CAAC,IAAI;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IACD;;;;OAIG;IACH,OAAO,CAAC,IAAI;QACR,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,CAAC,QAAQ,EAAE,CAAC;YACZ,MAAM,IAAI,4CAAmB,CAAC,0CAA0C,IAAI,GAAG,EAAE,0BAA0B,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;QAC3H,CAAC;QACD,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ;AAhCD,8DAgCC;AACD,qDAAqD"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GraphNodeExecutorResolver = void 0;
4
+ /**
5
+ * Resolver that wraps a {@link GraphNodeExecutorRegistry} and optionally
6
+ * falls back to a default executor when a kind is not found.
7
+ */
8
+ class GraphNodeExecutorResolver {
9
+ constructor(registry, defaultExecutor) {
10
+ this.registry = registry;
11
+ this.defaultExecutor = defaultExecutor;
12
+ }
13
+ /**
14
+ * Resolves the executor for `kind`, falling back to the default executor
15
+ * when provided.
16
+ */
17
+ resolve(kind) {
18
+ if (this.registry.has(kind))
19
+ return this.registry.resolve(kind);
20
+ if (this.defaultExecutor)
21
+ return this.defaultExecutor;
22
+ return this.registry.resolve(kind);
23
+ }
24
+ }
25
+ exports.GraphNodeExecutorResolver = GraphNodeExecutorResolver;
26
+ //# sourceMappingURL=GraphNodeExecutorResolver.js.map
27
+ //# sourceMappingURL=GraphNodeExecutorResolver.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/registry/GraphNodeExecutorResolver.cjs","sourceRoot":"","sources":["graph/registry/GraphNodeExecutorResolver.js"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,MAAa,yBAAyB;IAClC,YAAY,QAAQ,EAAE,eAAe;QACjC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IAC3C,CAAC;IACD;;;OAGG;IACH,OAAO,CAAC,IAAI;QACR,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC;YACvB,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,IAAI,CAAC,eAAe;YACpB,OAAO,IAAI,CAAC,eAAe,CAAC;QAChC,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;CACJ;AAhBD,8DAgBC;AACD,qDAAqD"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /**
18
+ * @module integrations/graph/registry
19
+ * @summary Graph node executor registry and resolver.
20
+ * @description Re-exports the executor registry and resolver.
21
+ */
22
+ __exportStar(require("./GraphNodeExecutorRegistry.cjs"), exports);
23
+ __exportStar(require("./GraphNodeExecutorResolver.cjs"), exports);
24
+ //# sourceMappingURL=index.js.map
25
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/registry/index.cjs","sourceRoot":"","sources":["graph/registry/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,iEAA+C;AAC/C,iEAA+C;AAC/C,iCAAiC"}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GraphExecutionSnapshotMapper = void 0;
4
+ /**
5
+ * @module integrations/graph/snapshots/GraphExecutionSnapshotMapper
6
+ * @summary Maps execution results to snapshot patches.
7
+ * @description Produces a GraphExecutionSnapshotPatch consumable by `@decaf-ts/ui-decorators/graph` snapshots, rather than replacing the snapshot system.
8
+ */
9
+ const constants_js_1 = require("./../constants.cjs");
10
+ /**
11
+ * Maps a {@link GraphExecutionResult} to a {@link GraphExecutionSnapshotPatch}.
12
+ */
13
+ class GraphExecutionSnapshotMapper {
14
+ /**
15
+ * Creates a snapshot patch from an execution result.
16
+ */
17
+ map(result) {
18
+ const nodes = {};
19
+ for (const [id, nodeResult] of Object.entries(result.nodeResults)) {
20
+ nodes[id] = {
21
+ status: nodeResult.status,
22
+ startedAt: nodeResult.startedAt?.toISOString(),
23
+ finishedAt: nodeResult.finishedAt?.toISOString(),
24
+ error: nodeResult.error,
25
+ outputs: nodeResult.outputs,
26
+ fromCache: nodeResult.fromCache,
27
+ pinned: nodeResult.pinned,
28
+ };
29
+ }
30
+ const edges = {};
31
+ for (const event of result.events) {
32
+ if (event.edgeId && event.type === "edge.valueRouted") {
33
+ edges[event.edgeId] = {
34
+ status: constants_js_1.GraphExecutionStatus.SUCCEEDED,
35
+ lastValue: event.payload?.value,
36
+ updatedAt: event.timestamp.toISOString(),
37
+ };
38
+ }
39
+ }
40
+ const events = [...result.events];
41
+ return {
42
+ runId: result.runId,
43
+ status: result.status,
44
+ nodes,
45
+ edges,
46
+ outputs: result.outputs,
47
+ events,
48
+ };
49
+ }
50
+ }
51
+ exports.GraphExecutionSnapshotMapper = GraphExecutionSnapshotMapper;
52
+ //# sourceMappingURL=GraphExecutionSnapshotMapper.js.map
53
+ //# sourceMappingURL=GraphExecutionSnapshotMapper.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/snapshots/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AAM,CAAC,MAAM;YACrB,KAAK;YACL,KAAK;YACL,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,MAAM;SACT,CAAC;IACN,CAAC;CACJ;AArCD,oEAqCC;AACD,wDAAwD"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /**
18
+ * @module integrations/graph/snapshots
19
+ * @summary Graph execution snapshot mapping.
20
+ * @description Re-exports the snapshot patch mapper.
21
+ */
22
+ __exportStar(require("./GraphExecutionSnapshotMapper.cjs"), exports);
23
+ //# sourceMappingURL=index.js.map
24
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/snapshots/index.cjs","sourceRoot":"","sources":["graph/snapshots/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,oEAAkD;AAClD,iCAAiC"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=GraphCachedValue.js.map
4
+ //# sourceMappingURL=GraphCachedValue.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/store/GraphCachedValue.cjs","sourceRoot":"","sources":["graph/store/GraphCachedValue.js"],"names":[],"mappings":";;AACA,4CAA4C"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=GraphValueKey.js.map
4
+ //# sourceMappingURL=GraphValueKey.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/store/GraphValueKey.cjs","sourceRoot":"","sources":["graph/store/GraphValueKey.js"],"names":[],"mappings":";;AAMA,yCAAyC"}
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GraphValueStore = void 0;
4
+ /**
5
+ * @module integrations/graph/store/GraphValueStore
6
+ * @summary Runtime value store wrapping a persistent adapter.
7
+ * @description Holds runtime values for the current execution in memory and delegates cached/pinned values to a {@link GraphValueStoreAdapter}.
8
+ */
9
+ const constants_js_1 = require("./../constants.cjs");
10
+ /**
11
+ * Manages values during a single graph execution.
12
+ *
13
+ * Runtime values (workflow inputs, node outputs, workflow outputs) are kept in
14
+ * an in-memory map. Persistent cache and pinning operations are delegated to
15
+ * the configured {@link GraphValueStoreAdapter}.
16
+ */
17
+ class GraphValueStore {
18
+ /**
19
+ * @param adapter - The persistent adapter for cached/pinned values.
20
+ */
21
+ constructor(adapter) {
22
+ this.adapter = adapter;
23
+ this.runtimeValues = new Map();
24
+ }
25
+ /** Seeds the workflow input values. */
26
+ seedWorkflowInputs(inputs) {
27
+ this.runtimeValues.set(constants_js_1.GRAPH_WORKFLOW_BOUNDARY, { ...inputs });
28
+ }
29
+ /** Stores the outputs produced by a node. */
30
+ setNodeOutputs(nodeId, outputs) {
31
+ this.runtimeValues.set(nodeId, { ...outputs });
32
+ }
33
+ /** Reads a single port value from a node's stored outputs. */
34
+ getPort(nodeId, port) {
35
+ return this.runtimeValues.get(nodeId)?.[port];
36
+ }
37
+ /** Returns whether a node has a value for the given port. */
38
+ hasPort(nodeId, port) {
39
+ return Object.prototype.hasOwnProperty.call(this.runtimeValues.get(nodeId) ?? {}, port);
40
+ }
41
+ /** Sets a single workflow output port value. */
42
+ setWorkflowOutput(port, value) {
43
+ const current = this.runtimeValues.get(constants_js_1.GRAPH_WORKFLOW_BOUNDARY) ?? {};
44
+ current[port] = value;
45
+ this.runtimeValues.set(constants_js_1.GRAPH_WORKFLOW_BOUNDARY, current);
46
+ }
47
+ /** Returns all workflow-level values (inputs merged with outputs). */
48
+ getWorkflowValues() {
49
+ return {
50
+ ...(this.runtimeValues.get(constants_js_1.GRAPH_WORKFLOW_BOUNDARY) ?? {}),
51
+ };
52
+ }
53
+ /** Reads a cached value from the adapter. */
54
+ async readCached(key) {
55
+ return this.adapter.read(key);
56
+ }
57
+ /** Writes a cached value through the adapter. */
58
+ async writeCached(key, value) {
59
+ await this.adapter.write(key, value);
60
+ }
61
+ /** Deletes a cached value through the adapter. */
62
+ async deleteCached(key) {
63
+ await this.adapter.delete(key);
64
+ }
65
+ /** Returns a snapshot of all runtime values. */
66
+ snapshot() {
67
+ return Object.fromEntries(this.runtimeValues.entries());
68
+ }
69
+ /** Returns the underlying adapter (used by the pinning service). */
70
+ getAdapter() {
71
+ return this.adapter;
72
+ }
73
+ }
74
+ exports.GraphValueStore = GraphValueStore;
75
+ //# sourceMappingURL=GraphValueStore.js.map
76
+ //# sourceMappingURL=GraphValueStore.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/store/GraphValueStore.cjs","sourceRoot":"","sources":["graph/store/GraphValueStore.js"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,oDAA4D;AAC5D;;;;;;GAMG;AACH,MAAa,eAAe;IACxB;;OAEG;IACH,YAAY,OAAO;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,aAAa,GAAG,IAAI,GAAG,EAAE,CAAC;IACnC,CAAC;IACD,uCAAuC;IACvC,kBAAkB,CAAC,MAAM;QACrB,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,sCAAuB,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;I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C;IACD,kDAAkD;IAClD,KAAK,CAAC,YAAY,CAAC,GAAG;QAClB,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC;IACD,gDAAgD;IAChD,QAAQ;QACJ,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;IACD,oEAAoE;IACpE,UAAU;QACN,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;CACJ;AAxDD,0CAwDC;AACD,2CAA2C"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=GraphValueStoreAdapter.js.map
4
+ //# sourceMappingURL=GraphValueStoreAdapter.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/store/GraphValueStoreAdapter.cjs","sourceRoot":"","sources":["graph/store/GraphValueStoreAdapter.js"],"names":[],"mappings":";;AACA,kDAAkD"}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InMemoryGraphValueStoreAdapter = void 0;
4
+ /**
5
+ * In-memory implementation of {@link GraphValueStoreAdapter}.
6
+ *
7
+ * Values are keyed by a serialized string combining namespace, workflowId,
8
+ * nodeId, version, and fingerprint.
9
+ */
10
+ class InMemoryGraphValueStoreAdapter {
11
+ constructor() {
12
+ this.values = new Map();
13
+ }
14
+ /** @inheritDoc */
15
+ async read(key) {
16
+ return this.values.get(this.serializeKey(key));
17
+ }
18
+ /** @inheritDoc */
19
+ async write(key, value) {
20
+ this.values.set(this.serializeKey(key), value);
21
+ }
22
+ /** @inheritDoc */
23
+ async delete(key) {
24
+ this.values.delete(this.serializeKey(key));
25
+ }
26
+ /** @inheritDoc */
27
+ async has(key) {
28
+ return this.values.has(this.serializeKey(key));
29
+ }
30
+ /** @inheritDoc */
31
+ async list(prefix) {
32
+ const results = [];
33
+ for (const value of this.values.values()) {
34
+ const k = value.key;
35
+ if (prefix.workflowId !== undefined &&
36
+ k.workflowId !== prefix.workflowId)
37
+ continue;
38
+ if (prefix.nodeId !== undefined && k.nodeId !== prefix.nodeId)
39
+ continue;
40
+ if (prefix.namespace !== undefined &&
41
+ k.namespace !== prefix.namespace)
42
+ continue;
43
+ if (prefix.version !== undefined && k.version !== prefix.version)
44
+ continue;
45
+ results.push(value);
46
+ }
47
+ return results;
48
+ }
49
+ /** @inheritDoc */
50
+ async clearRun(runId) {
51
+ void runId;
52
+ this.values.clear();
53
+ }
54
+ /**
55
+ * Serializes a key into a stable string used as the Map key.
56
+ */
57
+ serializeKey(key) {
58
+ return [
59
+ key.namespace ?? "default",
60
+ key.workflowId,
61
+ key.nodeId,
62
+ key.version ?? "default",
63
+ key.fingerprint,
64
+ ].join(":");
65
+ }
66
+ }
67
+ exports.InMemoryGraphValueStoreAdapter = InMemoryGraphValueStoreAdapter;
68
+ //# sourceMappingURL=InMemoryGraphValueStoreAdapter.js.map
69
+ //# sourceMappingURL=InMemoryGraphValueStoreAdapter.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/store/InMemoryGraphValueStoreAdapter.cjs","sourceRoot":"","sources":["graph/store/InMemoryGraphValueStoreAdapter.js"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,MAAa,8BAA8B;IACvC;QACI,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,EAAE,CAAC;IAC5B,CAAC;IACD,kBAAkB;IAClB,KAAK,CAAC,IAAI,CAAC,GAAG;QACV,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IACnD,CAAC;IACD,kBAAkB;IAClB,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK;QAClB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,KAAK,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O;YACH,GAAG,CAAC,SAAS,IAAI,SAAS;YAC1B,GAAG,CAAC,UAAU;YACd,GAAG,CAAC,MAAM;YACV,GAAG,CAAC,OAAO,IAAI,SAAS;YACxB,GAAG,CAAC,WAAW;SAClB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChB,CAAC;CACJ;AAxDD,wEAwDC;AACD,0DAA0D"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /**
18
+ * @module integrations/graph/store
19
+ * @summary Graph value store, adapter, and key types.
20
+ * @description Re-exports the value store adapter interface, in-memory default, key/cached-value types, and the runtime store wrapper.
21
+ */
22
+ __exportStar(require("./GraphValueKey.cjs"), exports);
23
+ __exportStar(require("./GraphCachedValue.cjs"), exports);
24
+ __exportStar(require("./GraphValueStoreAdapter.cjs"), exports);
25
+ __exportStar(require("./InMemoryGraphValueStoreAdapter.cjs"), exports);
26
+ __exportStar(require("./GraphValueStore.cjs"), exports);
27
+ //# sourceMappingURL=index.js.map
28
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/store/index.cjs","sourceRoot":"","sources":["graph/store/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,qDAAmC;AACnC,wDAAsC;AACtC,8DAA4C;AAC5C,sEAAoD;AACpD,uDAAqC;AACrC,iCAAiC"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
4
+ //# sourceMappingURL=types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/types.cjs","sourceRoot":"","sources":["graph/types.js"],"names":[],"mappings":";;AACA,iCAAiC"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GraphDefinitionValidator = void 0;
4
+ const GraphInputError_js_1 = require("./../errors/GraphInputError.cjs");
5
+ const GraphExecutionPlanner_js_1 = require("./../planning/GraphExecutionPlanner.cjs");
6
+ /**
7
+ * Validates a {@link GraphWorkflowDefinition} before execution.
8
+ */
9
+ class GraphDefinitionValidator {
10
+ constructor(planner) {
11
+ this.planner = planner ?? new GraphExecutionPlanner_js_1.GraphExecutionPlanner();
12
+ }
13
+ /**
14
+ * Validates the workflow definition.
15
+ *
16
+ * @throws {GraphInputError} when the workflow has no name or invalid structure.
17
+ * @throws {GraphCycleError} when the workflow contains an unsupported cycle.
18
+ */
19
+ validate(workflow) {
20
+ if (!workflow.name) {
21
+ throw new GraphInputError_js_1.GraphInputError("Workflow must have a name");
22
+ }
23
+ const nodeIds = new Set((workflow.nodes ?? []).map((n) => n.id));
24
+ if (nodeIds.size !== (workflow.nodes ?? []).length) {
25
+ throw new GraphInputError_js_1.GraphInputError("Workflow node IDs must be unique");
26
+ }
27
+ // The planner performs full topology validation (endpoints, ports, cycles)
28
+ this.planner.plan(workflow);
29
+ }
30
+ }
31
+ exports.GraphDefinitionValidator = GraphDefinitionValidator;
32
+ //# sourceMappingURL=GraphDefinitionValidator.js.map
33
+ //# sourceMappingURL=GraphDefinitionValidator.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/validation/GraphDefinitionValidator.cjs","sourceRoot":"","sources":["graph/validation/GraphDefinitionValidator.js"],"names":[],"mappings":";;;AAAA,uEAAiE;AACjE,qFAA+E;AAC/E;;GAEG;AACH,MAAa,wBAAwB;IACjC,YAAY,OAAO;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,IAAI,gDAAqB,EAAE,CAAC;IAC1D,CAAC;IACD;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ;QACb,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACjB,MAAM,IAAI,oCAAe,CAAC,2BAA2B,CAAC,CAAC;QAC3D,CAAC;QACD,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACjE,IAAI,OAAO,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;YACjD,MAAM,IAAI,oCAAe,CAAC,kCAAkC,CAAC,CAAC;QAClE,CAAC;QACD,2EAA2E;QAC3E,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;CACJ;AArBD,4DAqBC;AACD,oDAAoD"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GraphPortSchemaResolver = void 0;
4
+ /**
5
+ * Resolves a {@link GraphPortDefinition} to a Zod schema (or a lightweight
6
+ * validation function when Zod is not available).
7
+ *
8
+ * This implementation uses primitive type mapping. When the port's `model`
9
+ * field or underlying Decaf metadata references a `Model` class, consumers
10
+ * should use `modelToZod` from `@decaf-ts/as-zod` to build the schema.
11
+ */
12
+ class GraphPortSchemaResolver {
13
+ /**
14
+ * Resolves a single port to a schema descriptor.
15
+ *
16
+ * @returns A descriptor with the port name, a `validate` function, and
17
+ * optional Zod schema reference.
18
+ */
19
+ resolve(port) {
20
+ const validate = this.createValidator(port);
21
+ return { name: port.name, required: port.required, validate };
22
+ }
23
+ /**
24
+ * Resolves multiple ports into a map of name -> descriptor.
25
+ */
26
+ resolveAll(ports) {
27
+ const result = {};
28
+ for (const port of ports) {
29
+ result[port.name] = this.resolve(port);
30
+ }
31
+ return result;
32
+ }
33
+ /**
34
+ * Creates a validation function based on the port's type.
35
+ */
36
+ createValidator(port) {
37
+ const type = (port.type ?? port.designType ?? "").toLowerCase();
38
+ switch (type) {
39
+ case "string":
40
+ return (v) => typeof v === "string";
41
+ case "number":
42
+ return (v) => typeof v === "number";
43
+ case "boolean":
44
+ return (v) => typeof v === "boolean";
45
+ case "date":
46
+ return (v) => v instanceof Date || (typeof v === "string" && !isNaN(Date.parse(v)));
47
+ case "array":
48
+ return (v) => Array.isArray(v);
49
+ case "bigint":
50
+ return (v) => typeof v === "bigint";
51
+ default:
52
+ return () => true;
53
+ }
54
+ }
55
+ }
56
+ exports.GraphPortSchemaResolver = GraphPortSchemaResolver;
57
+ //# sourceMappingURL=GraphPortSchemaResolver.js.map
58
+ //# sourceMappingURL=GraphPortSchemaResolver.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/validation/GraphPortSchemaResolver.cjs","sourceRoot":"","sources":["graph/validation/GraphPortSchemaResolver.js"],"names":[],"mappings":";;;AAAA;;;;;;;GAOG;AACH,MAAa,uBAAuB;IAChC;;;;;OAKG;IACH,OAAO,CAAC,IAAI;QACR,MAAM,QAAQ,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAC5C,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC;IAClE,CAAC;IACD;;OAEG;IACH,UAAU,CAAC,KAAK;QACZ,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,C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