@decaf-ts/ui-decorators 0.20.9 → 0.21.1

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 (465) hide show
  1. package/dist/ui-decorators.cjs +1 -1
  2. package/dist/ui-decorators.cjs.map +1 -1
  3. package/dist/ui-decorators.js +1 -1
  4. package/dist/ui-decorators.js.map +1 -1
  5. package/lib/cjs/index.cjs +3 -3
  6. package/lib/esm/index.js +3 -3
  7. package/lib/types/index.d.cts +3 -3
  8. package/lib/types/index.d.mts +3 -3
  9. package/package.json +2 -18
  10. package/lib/cjs/graph/GraphExecutionStateMapper.cjs +0 -97
  11. package/lib/cjs/graph/GraphExecutionStateMapper.cjs.map +0 -1
  12. package/lib/cjs/graph/GraphResolution.cjs +0 -17
  13. package/lib/cjs/graph/GraphResolution.cjs.map +0 -1
  14. package/lib/cjs/graph/catalog/GraphConnectionPolicy.cjs +0 -20
  15. package/lib/cjs/graph/catalog/GraphConnectionPolicy.cjs.map +0 -1
  16. package/lib/cjs/graph/catalog/GraphCredentialReference.cjs +0 -15
  17. package/lib/cjs/graph/catalog/GraphCredentialReference.cjs.map +0 -1
  18. package/lib/cjs/graph/catalog/GraphCredentialRequirement.cjs +0 -16
  19. package/lib/cjs/graph/catalog/GraphCredentialRequirement.cjs.map +0 -1
  20. package/lib/cjs/graph/catalog/GraphDynamicPortRule.cjs +0 -31
  21. package/lib/cjs/graph/catalog/GraphDynamicPortRule.cjs.map +0 -1
  22. package/lib/cjs/graph/catalog/GraphIconReference.cjs +0 -22
  23. package/lib/cjs/graph/catalog/GraphIconReference.cjs.map +0 -1
  24. package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs +0 -307
  25. package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs.map +0 -1
  26. package/lib/cjs/graph/catalog/GraphNodeCapability.cjs +0 -23
  27. package/lib/cjs/graph/catalog/GraphNodeCapability.cjs.map +0 -1
  28. package/lib/cjs/graph/catalog/GraphNodeDisplayManifest.cjs +0 -11
  29. package/lib/cjs/graph/catalog/GraphNodeDisplayManifest.cjs.map +0 -1
  30. package/lib/cjs/graph/catalog/GraphNodeManifest.cjs +0 -23
  31. package/lib/cjs/graph/catalog/GraphNodeManifest.cjs.map +0 -1
  32. package/lib/cjs/graph/catalog/GraphNodeManifestSerialization.cjs +0 -50
  33. package/lib/cjs/graph/catalog/GraphNodeManifestSerialization.cjs.map +0 -1
  34. package/lib/cjs/graph/catalog/GraphNodeMethodManifest.cjs +0 -29
  35. package/lib/cjs/graph/catalog/GraphNodeMethodManifest.cjs.map +0 -1
  36. package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs +0 -18
  37. package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs.map +0 -1
  38. package/lib/cjs/graph/catalog/GraphParameterBase.cjs +0 -4
  39. package/lib/cjs/graph/catalog/GraphParameterBase.cjs.map +0 -1
  40. package/lib/cjs/graph/catalog/GraphParameterDefinition.cjs +0 -29
  41. package/lib/cjs/graph/catalog/GraphParameterDefinition.cjs.map +0 -1
  42. package/lib/cjs/graph/catalog/GraphParameterOption.cjs +0 -18
  43. package/lib/cjs/graph/catalog/GraphParameterOption.cjs.map +0 -1
  44. package/lib/cjs/graph/catalog/GraphParameterValidation.cjs +0 -57
  45. package/lib/cjs/graph/catalog/GraphParameterValidation.cjs.map +0 -1
  46. package/lib/cjs/graph/catalog/GraphPortManifest.cjs +0 -19
  47. package/lib/cjs/graph/catalog/GraphPortManifest.cjs.map +0 -1
  48. package/lib/cjs/graph/catalog/GraphResourceLocatorMode.cjs +0 -19
  49. package/lib/cjs/graph/catalog/GraphResourceLocatorMode.cjs.map +0 -1
  50. package/lib/cjs/graph/catalog/GraphValueSchema.cjs +0 -25
  51. package/lib/cjs/graph/catalog/GraphValueSchema.cjs.map +0 -1
  52. package/lib/cjs/graph/catalog/GraphValueSchemaDerivation.cjs +0 -164
  53. package/lib/cjs/graph/catalog/GraphValueSchemaDerivation.cjs.map +0 -1
  54. package/lib/cjs/graph/catalog/GraphVisibilityExpression.cjs +0 -63
  55. package/lib/cjs/graph/catalog/GraphVisibilityExpression.cjs.map +0 -1
  56. package/lib/cjs/graph/catalog/index.cjs +0 -39
  57. package/lib/cjs/graph/catalog/index.cjs.map +0 -1
  58. package/lib/cjs/graph/constants.cjs +0 -320
  59. package/lib/cjs/graph/constants.cjs.map +0 -1
  60. package/lib/cjs/graph/decorators.cjs +0 -151
  61. package/lib/cjs/graph/decorators.cjs.map +0 -1
  62. package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs +0 -353
  63. package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs.map +0 -1
  64. package/lib/cjs/graph/document/GraphEdgeInstance.cjs +0 -4
  65. package/lib/cjs/graph/document/GraphEdgeInstance.cjs.map +0 -1
  66. package/lib/cjs/graph/document/GraphEndpoint.cjs +0 -27
  67. package/lib/cjs/graph/document/GraphEndpoint.cjs.map +0 -1
  68. package/lib/cjs/graph/document/GraphJsonValue.cjs +0 -82
  69. package/lib/cjs/graph/document/GraphJsonValue.cjs.map +0 -1
  70. package/lib/cjs/graph/document/GraphLoopConfiguration.cjs +0 -4
  71. package/lib/cjs/graph/document/GraphLoopConfiguration.cjs.map +0 -1
  72. package/lib/cjs/graph/document/GraphNodeBinding.cjs +0 -27
  73. package/lib/cjs/graph/document/GraphNodeBinding.cjs.map +0 -1
  74. package/lib/cjs/graph/document/GraphNodeInstance.cjs +0 -4
  75. package/lib/cjs/graph/document/GraphNodeInstance.cjs.map +0 -1
  76. package/lib/cjs/graph/document/GraphWorkflowDocument.cjs +0 -16
  77. package/lib/cjs/graph/document/GraphWorkflowDocument.cjs.map +0 -1
  78. package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs +0 -309
  79. package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs.map +0 -1
  80. package/lib/cjs/graph/document/GraphWorkflowDocumentReader.cjs +0 -78
  81. package/lib/cjs/graph/document/GraphWorkflowDocumentReader.cjs.map +0 -1
  82. package/lib/cjs/graph/document/GraphWorkflowDocumentSerializer.cjs +0 -70
  83. package/lib/cjs/graph/document/GraphWorkflowDocumentSerializer.cjs.map +0 -1
  84. package/lib/cjs/graph/document/GraphWorkflowUiState.cjs +0 -4
  85. package/lib/cjs/graph/document/GraphWorkflowUiState.cjs.map +0 -1
  86. package/lib/cjs/graph/document/index.cjs +0 -30
  87. package/lib/cjs/graph/document/index.cjs.map +0 -1
  88. package/lib/cjs/graph/index.cjs +0 -33
  89. package/lib/cjs/graph/index.cjs.map +0 -1
  90. package/lib/cjs/graph/nodes/agents/agent.cjs +0 -110
  91. package/lib/cjs/graph/nodes/agents/agent.cjs.map +0 -1
  92. package/lib/cjs/graph/nodes/base.cjs +0 -36
  93. package/lib/cjs/graph/nodes/base.cjs.map +0 -1
  94. package/lib/cjs/graph/nodes/boundary/input-value.cjs +0 -57
  95. package/lib/cjs/graph/nodes/boundary/input-value.cjs.map +0 -1
  96. package/lib/cjs/graph/nodes/category-styles.cjs +0 -38
  97. package/lib/cjs/graph/nodes/category-styles.cjs.map +0 -1
  98. package/lib/cjs/graph/nodes/flow-control/break.cjs +0 -63
  99. package/lib/cjs/graph/nodes/flow-control/break.cjs.map +0 -1
  100. package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs +0 -67
  101. package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs.map +0 -1
  102. package/lib/cjs/graph/nodes/flow-control/human-approval.cjs +0 -69
  103. package/lib/cjs/graph/nodes/flow-control/human-approval.cjs.map +0 -1
  104. package/lib/cjs/graph/nodes/flow-control/if.cjs +0 -71
  105. package/lib/cjs/graph/nodes/flow-control/if.cjs.map +0 -1
  106. package/lib/cjs/graph/nodes/flow-control/parallel.cjs +0 -61
  107. package/lib/cjs/graph/nodes/flow-control/parallel.cjs.map +0 -1
  108. package/lib/cjs/graph/nodes/flow-control/switch.cjs +0 -126
  109. package/lib/cjs/graph/nodes/flow-control/switch.cjs.map +0 -1
  110. package/lib/cjs/graph/nodes/index.cjs +0 -123
  111. package/lib/cjs/graph/nodes/index.cjs.map +0 -1
  112. package/lib/cjs/graph/nodes/loops/foreach.cjs +0 -86
  113. package/lib/cjs/graph/nodes/loops/foreach.cjs.map +0 -1
  114. package/lib/cjs/graph/nodes/loops/until.cjs +0 -74
  115. package/lib/cjs/graph/nodes/loops/until.cjs.map +0 -1
  116. package/lib/cjs/graph/nodes/loops/while.cjs +0 -74
  117. package/lib/cjs/graph/nodes/loops/while.cjs.map +0 -1
  118. package/lib/cjs/graph/nodes/manifests.cjs +0 -342
  119. package/lib/cjs/graph/nodes/manifests.cjs.map +0 -1
  120. package/lib/cjs/graph/nodes/triggers/chat.cjs +0 -70
  121. package/lib/cjs/graph/nodes/triggers/chat.cjs.map +0 -1
  122. package/lib/cjs/graph/nodes/triggers/event.cjs +0 -58
  123. package/lib/cjs/graph/nodes/triggers/event.cjs.map +0 -1
  124. package/lib/cjs/graph/nodes/triggers/form.cjs +0 -59
  125. package/lib/cjs/graph/nodes/triggers/form.cjs.map +0 -1
  126. package/lib/cjs/graph/nodes/triggers/manual.cjs +0 -60
  127. package/lib/cjs/graph/nodes/triggers/manual.cjs.map +0 -1
  128. package/lib/cjs/graph/nodes/triggers/schedule.cjs +0 -60
  129. package/lib/cjs/graph/nodes/triggers/schedule.cjs.map +0 -1
  130. package/lib/cjs/graph/nodes/triggers/webhook.cjs +0 -62
  131. package/lib/cjs/graph/nodes/triggers/webhook.cjs.map +0 -1
  132. package/lib/cjs/graph/nodes/utility/code.cjs +0 -99
  133. package/lib/cjs/graph/nodes/utility/code.cjs.map +0 -1
  134. package/lib/cjs/graph/nodes/utility/delay.cjs +0 -61
  135. package/lib/cjs/graph/nodes/utility/delay.cjs.map +0 -1
  136. package/lib/cjs/graph/nodes/utility/log.cjs +0 -62
  137. package/lib/cjs/graph/nodes/utility/log.cjs.map +0 -1
  138. package/lib/cjs/graph/nodes/utility/map.cjs +0 -61
  139. package/lib/cjs/graph/nodes/utility/map.cjs.map +0 -1
  140. package/lib/cjs/graph/nodes/utility/merge.cjs +0 -62
  141. package/lib/cjs/graph/nodes/utility/merge.cjs.map +0 -1
  142. package/lib/cjs/graph/nodes/utility/return.cjs +0 -61
  143. package/lib/cjs/graph/nodes/utility/return.cjs.map +0 -1
  144. package/lib/cjs/graph/nodes/utility/utility-log.cjs +0 -66
  145. package/lib/cjs/graph/nodes/utility/utility-log.cjs.map +0 -1
  146. package/lib/cjs/graph/overrides/Metadata.cjs +0 -23
  147. package/lib/cjs/graph/overrides/Metadata.cjs.map +0 -1
  148. package/lib/cjs/graph/overrides/Rendering.cjs +0 -4
  149. package/lib/cjs/graph/overrides/Rendering.cjs.map +0 -1
  150. package/lib/cjs/graph/overrides/index.cjs +0 -21
  151. package/lib/cjs/graph/overrides/index.cjs.map +0 -1
  152. package/lib/cjs/graph/overrides/overrides.cjs +0 -20
  153. package/lib/cjs/graph/overrides/overrides.cjs.map +0 -1
  154. package/lib/cjs/graph/reader.cjs +0 -301
  155. package/lib/cjs/graph/reader.cjs.map +0 -1
  156. package/lib/cjs/graph/registry.cjs +0 -67
  157. package/lib/cjs/graph/registry.cjs.map +0 -1
  158. package/lib/cjs/graph/snapshot.cjs +0 -695
  159. package/lib/cjs/graph/snapshot.cjs.map +0 -1
  160. package/lib/cjs/graph/types.cjs +0 -7
  161. package/lib/cjs/graph/types.cjs.map +0 -1
  162. package/lib/esm/graph/GraphExecutionStateMapper.js +0 -91
  163. package/lib/esm/graph/GraphExecutionStateMapper.js.map +0 -1
  164. package/lib/esm/graph/GraphResolution.js +0 -13
  165. package/lib/esm/graph/GraphResolution.js.map +0 -1
  166. package/lib/esm/graph/catalog/GraphConnectionPolicy.js +0 -16
  167. package/lib/esm/graph/catalog/GraphConnectionPolicy.js.map +0 -1
  168. package/lib/esm/graph/catalog/GraphCredentialReference.js +0 -9
  169. package/lib/esm/graph/catalog/GraphCredentialReference.js.map +0 -1
  170. package/lib/esm/graph/catalog/GraphCredentialRequirement.js +0 -12
  171. package/lib/esm/graph/catalog/GraphCredentialRequirement.js.map +0 -1
  172. package/lib/esm/graph/catalog/GraphDynamicPortRule.js +0 -25
  173. package/lib/esm/graph/catalog/GraphDynamicPortRule.js.map +0 -1
  174. package/lib/esm/graph/catalog/GraphIconReference.js +0 -18
  175. package/lib/esm/graph/catalog/GraphIconReference.js.map +0 -1
  176. package/lib/esm/graph/catalog/GraphManifestCompiler.js +0 -303
  177. package/lib/esm/graph/catalog/GraphManifestCompiler.js.map +0 -1
  178. package/lib/esm/graph/catalog/GraphNodeCapability.js +0 -17
  179. package/lib/esm/graph/catalog/GraphNodeCapability.js.map +0 -1
  180. package/lib/esm/graph/catalog/GraphNodeDisplayManifest.js +0 -7
  181. package/lib/esm/graph/catalog/GraphNodeDisplayManifest.js.map +0 -1
  182. package/lib/esm/graph/catalog/GraphNodeManifest.js +0 -17
  183. package/lib/esm/graph/catalog/GraphNodeManifest.js.map +0 -1
  184. package/lib/esm/graph/catalog/GraphNodeManifestSerialization.js +0 -42
  185. package/lib/esm/graph/catalog/GraphNodeManifestSerialization.js.map +0 -1
  186. package/lib/esm/graph/catalog/GraphNodeMethodManifest.js +0 -23
  187. package/lib/esm/graph/catalog/GraphNodeMethodManifest.js.map +0 -1
  188. package/lib/esm/graph/catalog/GraphNodePolicyManifest.js +0 -14
  189. package/lib/esm/graph/catalog/GraphNodePolicyManifest.js.map +0 -1
  190. package/lib/esm/graph/catalog/GraphParameterBase.js +0 -2
  191. package/lib/esm/graph/catalog/GraphParameterBase.js.map +0 -1
  192. package/lib/esm/graph/catalog/GraphParameterDefinition.js +0 -23
  193. package/lib/esm/graph/catalog/GraphParameterDefinition.js.map +0 -1
  194. package/lib/esm/graph/catalog/GraphParameterOption.js +0 -13
  195. package/lib/esm/graph/catalog/GraphParameterOption.js.map +0 -1
  196. package/lib/esm/graph/catalog/GraphParameterValidation.js +0 -50
  197. package/lib/esm/graph/catalog/GraphParameterValidation.js.map +0 -1
  198. package/lib/esm/graph/catalog/GraphPortManifest.js +0 -13
  199. package/lib/esm/graph/catalog/GraphPortManifest.js.map +0 -1
  200. package/lib/esm/graph/catalog/GraphResourceLocatorMode.js +0 -13
  201. package/lib/esm/graph/catalog/GraphResourceLocatorMode.js.map +0 -1
  202. package/lib/esm/graph/catalog/GraphValueSchema.js +0 -19
  203. package/lib/esm/graph/catalog/GraphValueSchema.js.map +0 -1
  204. package/lib/esm/graph/catalog/GraphValueSchemaDerivation.js +0 -156
  205. package/lib/esm/graph/catalog/GraphValueSchemaDerivation.js.map +0 -1
  206. package/lib/esm/graph/catalog/GraphVisibilityExpression.js +0 -58
  207. package/lib/esm/graph/catalog/GraphVisibilityExpression.js.map +0 -1
  208. package/lib/esm/graph/catalog/index.js +0 -22
  209. package/lib/esm/graph/catalog/index.js.map +0 -1
  210. package/lib/esm/graph/constants.js +0 -335
  211. package/lib/esm/graph/constants.js.map +0 -1
  212. package/lib/esm/graph/decorators.js +0 -141
  213. package/lib/esm/graph/decorators.js.map +0 -1
  214. package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js +0 -347
  215. package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js.map +0 -1
  216. package/lib/esm/graph/document/GraphEdgeInstance.js +0 -2
  217. package/lib/esm/graph/document/GraphEdgeInstance.js.map +0 -1
  218. package/lib/esm/graph/document/GraphEndpoint.js +0 -21
  219. package/lib/esm/graph/document/GraphEndpoint.js.map +0 -1
  220. package/lib/esm/graph/document/GraphJsonValue.js +0 -73
  221. package/lib/esm/graph/document/GraphJsonValue.js.map +0 -1
  222. package/lib/esm/graph/document/GraphLoopConfiguration.js +0 -2
  223. package/lib/esm/graph/document/GraphLoopConfiguration.js.map +0 -1
  224. package/lib/esm/graph/document/GraphNodeBinding.js +0 -22
  225. package/lib/esm/graph/document/GraphNodeBinding.js.map +0 -1
  226. package/lib/esm/graph/document/GraphNodeInstance.js +0 -2
  227. package/lib/esm/graph/document/GraphNodeInstance.js.map +0 -1
  228. package/lib/esm/graph/document/GraphWorkflowDocument.js +0 -12
  229. package/lib/esm/graph/document/GraphWorkflowDocument.js.map +0 -1
  230. package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js +0 -303
  231. package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js.map +0 -1
  232. package/lib/esm/graph/document/GraphWorkflowDocumentReader.js +0 -62
  233. package/lib/esm/graph/document/GraphWorkflowDocumentReader.js.map +0 -1
  234. package/lib/esm/graph/document/GraphWorkflowDocumentSerializer.js +0 -63
  235. package/lib/esm/graph/document/GraphWorkflowDocumentSerializer.js.map +0 -1
  236. package/lib/esm/graph/document/GraphWorkflowUiState.js +0 -2
  237. package/lib/esm/graph/document/GraphWorkflowUiState.js.map +0 -1
  238. package/lib/esm/graph/document/index.js +0 -13
  239. package/lib/esm/graph/document/index.js.map +0 -1
  240. package/lib/esm/graph/index.js +0 -16
  241. package/lib/esm/graph/index.js.map +0 -1
  242. package/lib/esm/graph/nodes/agents/agent.js +0 -101
  243. package/lib/esm/graph/nodes/agents/agent.js.map +0 -1
  244. package/lib/esm/graph/nodes/base.js +0 -31
  245. package/lib/esm/graph/nodes/base.js.map +0 -1
  246. package/lib/esm/graph/nodes/boundary/input-value.js +0 -48
  247. package/lib/esm/graph/nodes/boundary/input-value.js.map +0 -1
  248. package/lib/esm/graph/nodes/category-styles.js +0 -34
  249. package/lib/esm/graph/nodes/category-styles.js.map +0 -1
  250. package/lib/esm/graph/nodes/flow-control/break.js +0 -54
  251. package/lib/esm/graph/nodes/flow-control/break.js.map +0 -1
  252. package/lib/esm/graph/nodes/flow-control/error-boundary.js +0 -58
  253. package/lib/esm/graph/nodes/flow-control/error-boundary.js.map +0 -1
  254. package/lib/esm/graph/nodes/flow-control/human-approval.js +0 -60
  255. package/lib/esm/graph/nodes/flow-control/human-approval.js.map +0 -1
  256. package/lib/esm/graph/nodes/flow-control/if.js +0 -62
  257. package/lib/esm/graph/nodes/flow-control/if.js.map +0 -1
  258. package/lib/esm/graph/nodes/flow-control/parallel.js +0 -52
  259. package/lib/esm/graph/nodes/flow-control/parallel.js.map +0 -1
  260. package/lib/esm/graph/nodes/flow-control/switch.js +0 -117
  261. package/lib/esm/graph/nodes/flow-control/switch.js.map +0 -1
  262. package/lib/esm/graph/nodes/index.js +0 -105
  263. package/lib/esm/graph/nodes/index.js.map +0 -1
  264. package/lib/esm/graph/nodes/loops/foreach.js +0 -77
  265. package/lib/esm/graph/nodes/loops/foreach.js.map +0 -1
  266. package/lib/esm/graph/nodes/loops/until.js +0 -65
  267. package/lib/esm/graph/nodes/loops/until.js.map +0 -1
  268. package/lib/esm/graph/nodes/loops/while.js +0 -65
  269. package/lib/esm/graph/nodes/loops/while.js.map +0 -1
  270. package/lib/esm/graph/nodes/manifests.js +0 -338
  271. package/lib/esm/graph/nodes/manifests.js.map +0 -1
  272. package/lib/esm/graph/nodes/triggers/chat.js +0 -61
  273. package/lib/esm/graph/nodes/triggers/chat.js.map +0 -1
  274. package/lib/esm/graph/nodes/triggers/event.js +0 -49
  275. package/lib/esm/graph/nodes/triggers/event.js.map +0 -1
  276. package/lib/esm/graph/nodes/triggers/form.js +0 -50
  277. package/lib/esm/graph/nodes/triggers/form.js.map +0 -1
  278. package/lib/esm/graph/nodes/triggers/manual.js +0 -51
  279. package/lib/esm/graph/nodes/triggers/manual.js.map +0 -1
  280. package/lib/esm/graph/nodes/triggers/schedule.js +0 -51
  281. package/lib/esm/graph/nodes/triggers/schedule.js.map +0 -1
  282. package/lib/esm/graph/nodes/triggers/webhook.js +0 -53
  283. package/lib/esm/graph/nodes/triggers/webhook.js.map +0 -1
  284. package/lib/esm/graph/nodes/utility/code.js +0 -90
  285. package/lib/esm/graph/nodes/utility/code.js.map +0 -1
  286. package/lib/esm/graph/nodes/utility/delay.js +0 -52
  287. package/lib/esm/graph/nodes/utility/delay.js.map +0 -1
  288. package/lib/esm/graph/nodes/utility/log.js +0 -53
  289. package/lib/esm/graph/nodes/utility/log.js.map +0 -1
  290. package/lib/esm/graph/nodes/utility/map.js +0 -52
  291. package/lib/esm/graph/nodes/utility/map.js.map +0 -1
  292. package/lib/esm/graph/nodes/utility/merge.js +0 -53
  293. package/lib/esm/graph/nodes/utility/merge.js.map +0 -1
  294. package/lib/esm/graph/nodes/utility/return.js +0 -52
  295. package/lib/esm/graph/nodes/utility/return.js.map +0 -1
  296. package/lib/esm/graph/nodes/utility/utility-log.js +0 -57
  297. package/lib/esm/graph/nodes/utility/utility-log.js.map +0 -1
  298. package/lib/esm/graph/overrides/Metadata.js +0 -20
  299. package/lib/esm/graph/overrides/Metadata.js.map +0 -1
  300. package/lib/esm/graph/overrides/Rendering.js +0 -2
  301. package/lib/esm/graph/overrides/Rendering.js.map +0 -1
  302. package/lib/esm/graph/overrides/index.js +0 -4
  303. package/lib/esm/graph/overrides/index.js.map +0 -1
  304. package/lib/esm/graph/overrides/overrides.js +0 -17
  305. package/lib/esm/graph/overrides/overrides.js.map +0 -1
  306. package/lib/esm/graph/reader.js +0 -288
  307. package/lib/esm/graph/reader.js.map +0 -1
  308. package/lib/esm/graph/registry.js +0 -59
  309. package/lib/esm/graph/registry.js.map +0 -1
  310. package/lib/esm/graph/snapshot.js +0 -680
  311. package/lib/esm/graph/snapshot.js.map +0 -1
  312. package/lib/esm/graph/types.js +0 -2
  313. package/lib/esm/graph/types.js.map +0 -1
  314. package/lib/types/graph/GraphExecutionStateMapper.d.cts +0 -66
  315. package/lib/types/graph/GraphExecutionStateMapper.d.mts +0 -66
  316. package/lib/types/graph/GraphResolution.d.cts +0 -53
  317. package/lib/types/graph/GraphResolution.d.mts +0 -53
  318. package/lib/types/graph/catalog/GraphConnectionPolicy.d.cts +0 -9
  319. package/lib/types/graph/catalog/GraphConnectionPolicy.d.mts +0 -9
  320. package/lib/types/graph/catalog/GraphCredentialReference.d.cts +0 -6
  321. package/lib/types/graph/catalog/GraphCredentialReference.d.mts +0 -6
  322. package/lib/types/graph/catalog/GraphCredentialRequirement.d.cts +0 -7
  323. package/lib/types/graph/catalog/GraphCredentialRequirement.d.mts +0 -7
  324. package/lib/types/graph/catalog/GraphDynamicPortRule.d.cts +0 -22
  325. package/lib/types/graph/catalog/GraphDynamicPortRule.d.mts +0 -22
  326. package/lib/types/graph/catalog/GraphIconReference.d.cts +0 -12
  327. package/lib/types/graph/catalog/GraphIconReference.d.mts +0 -12
  328. package/lib/types/graph/catalog/GraphManifestCompiler.d.cts +0 -14
  329. package/lib/types/graph/catalog/GraphManifestCompiler.d.mts +0 -14
  330. package/lib/types/graph/catalog/GraphNodeCapability.d.cts +0 -4
  331. package/lib/types/graph/catalog/GraphNodeCapability.d.mts +0 -4
  332. package/lib/types/graph/catalog/GraphNodeDisplayManifest.d.cts +0 -33
  333. package/lib/types/graph/catalog/GraphNodeDisplayManifest.d.mts +0 -33
  334. package/lib/types/graph/catalog/GraphNodeManifest.d.cts +0 -26
  335. package/lib/types/graph/catalog/GraphNodeManifest.d.mts +0 -26
  336. package/lib/types/graph/catalog/GraphNodeManifestSerialization.d.cts +0 -7
  337. package/lib/types/graph/catalog/GraphNodeManifestSerialization.d.mts +0 -7
  338. package/lib/types/graph/catalog/GraphNodeMethodManifest.d.cts +0 -10
  339. package/lib/types/graph/catalog/GraphNodeMethodManifest.d.mts +0 -10
  340. package/lib/types/graph/catalog/GraphNodePolicyManifest.d.cts +0 -46
  341. package/lib/types/graph/catalog/GraphNodePolicyManifest.d.mts +0 -46
  342. package/lib/types/graph/catalog/GraphParameterBase.d.cts +0 -14
  343. package/lib/types/graph/catalog/GraphParameterBase.d.mts +0 -14
  344. package/lib/types/graph/catalog/GraphParameterDefinition.d.cts +0 -66
  345. package/lib/types/graph/catalog/GraphParameterDefinition.d.mts +0 -66
  346. package/lib/types/graph/catalog/GraphParameterOption.d.cts +0 -8
  347. package/lib/types/graph/catalog/GraphParameterOption.d.mts +0 -8
  348. package/lib/types/graph/catalog/GraphParameterValidation.d.cts +0 -25
  349. package/lib/types/graph/catalog/GraphParameterValidation.d.mts +0 -25
  350. package/lib/types/graph/catalog/GraphPortManifest.d.cts +0 -21
  351. package/lib/types/graph/catalog/GraphPortManifest.d.mts +0 -21
  352. package/lib/types/graph/catalog/GraphResourceLocatorMode.d.cts +0 -10
  353. package/lib/types/graph/catalog/GraphResourceLocatorMode.d.mts +0 -10
  354. package/lib/types/graph/catalog/GraphValueSchema.d.cts +0 -44
  355. package/lib/types/graph/catalog/GraphValueSchema.d.mts +0 -44
  356. package/lib/types/graph/catalog/GraphValueSchemaDerivation.d.cts +0 -9
  357. package/lib/types/graph/catalog/GraphValueSchemaDerivation.d.mts +0 -9
  358. package/lib/types/graph/catalog/GraphVisibilityExpression.d.cts +0 -22
  359. package/lib/types/graph/catalog/GraphVisibilityExpression.d.mts +0 -22
  360. package/lib/types/graph/catalog/index.d.cts +0 -21
  361. package/lib/types/graph/catalog/index.d.mts +0 -21
  362. package/lib/types/graph/constants.d.cts +0 -544
  363. package/lib/types/graph/constants.d.mts +0 -544
  364. package/lib/types/graph/decorators.d.cts +0 -69
  365. package/lib/types/graph/decorators.d.mts +0 -69
  366. package/lib/types/graph/document/GraphDecoratedWorkflowCompiler.d.cts +0 -47
  367. package/lib/types/graph/document/GraphDecoratedWorkflowCompiler.d.mts +0 -47
  368. package/lib/types/graph/document/GraphEdgeInstance.d.cts +0 -12
  369. package/lib/types/graph/document/GraphEdgeInstance.d.mts +0 -12
  370. package/lib/types/graph/document/GraphEndpoint.d.cts +0 -13
  371. package/lib/types/graph/document/GraphEndpoint.d.mts +0 -13
  372. package/lib/types/graph/document/GraphJsonValue.d.cts +0 -11
  373. package/lib/types/graph/document/GraphJsonValue.d.mts +0 -11
  374. package/lib/types/graph/document/GraphLoopConfiguration.d.cts +0 -24
  375. package/lib/types/graph/document/GraphLoopConfiguration.d.mts +0 -24
  376. package/lib/types/graph/document/GraphNodeBinding.d.cts +0 -21
  377. package/lib/types/graph/document/GraphNodeBinding.d.mts +0 -21
  378. package/lib/types/graph/document/GraphNodeInstance.d.cts +0 -36
  379. package/lib/types/graph/document/GraphNodeInstance.d.mts +0 -36
  380. package/lib/types/graph/document/GraphWorkflowDocument.d.cts +0 -33
  381. package/lib/types/graph/document/GraphWorkflowDocument.d.mts +0 -33
  382. package/lib/types/graph/document/GraphWorkflowDocumentBuilder.d.cts +0 -72
  383. package/lib/types/graph/document/GraphWorkflowDocumentBuilder.d.mts +0 -72
  384. package/lib/types/graph/document/GraphWorkflowDocumentReader.d.cts +0 -21
  385. package/lib/types/graph/document/GraphWorkflowDocumentReader.d.mts +0 -21
  386. package/lib/types/graph/document/GraphWorkflowDocumentSerializer.d.cts +0 -5
  387. package/lib/types/graph/document/GraphWorkflowDocumentSerializer.d.mts +0 -5
  388. package/lib/types/graph/document/GraphWorkflowUiState.d.cts +0 -37
  389. package/lib/types/graph/document/GraphWorkflowUiState.d.mts +0 -37
  390. package/lib/types/graph/document/index.d.cts +0 -12
  391. package/lib/types/graph/document/index.d.mts +0 -12
  392. package/lib/types/graph/index.d.cts +0 -15
  393. package/lib/types/graph/index.d.mts +0 -15
  394. package/lib/types/graph/nodes/agents/agent.d.cts +0 -44
  395. package/lib/types/graph/nodes/agents/agent.d.mts +0 -44
  396. package/lib/types/graph/nodes/base.d.cts +0 -28
  397. package/lib/types/graph/nodes/base.d.mts +0 -28
  398. package/lib/types/graph/nodes/boundary/input-value.d.cts +0 -13
  399. package/lib/types/graph/nodes/boundary/input-value.d.mts +0 -13
  400. package/lib/types/graph/nodes/category-styles.d.cts +0 -8
  401. package/lib/types/graph/nodes/category-styles.d.mts +0 -8
  402. package/lib/types/graph/nodes/flow-control/break.d.cts +0 -15
  403. package/lib/types/graph/nodes/flow-control/break.d.mts +0 -15
  404. package/lib/types/graph/nodes/flow-control/error-boundary.d.cts +0 -12
  405. package/lib/types/graph/nodes/flow-control/error-boundary.d.mts +0 -12
  406. package/lib/types/graph/nodes/flow-control/human-approval.d.cts +0 -13
  407. package/lib/types/graph/nodes/flow-control/human-approval.d.mts +0 -13
  408. package/lib/types/graph/nodes/flow-control/if.d.cts +0 -16
  409. package/lib/types/graph/nodes/flow-control/if.d.mts +0 -16
  410. package/lib/types/graph/nodes/flow-control/parallel.d.cts +0 -11
  411. package/lib/types/graph/nodes/flow-control/parallel.d.mts +0 -11
  412. package/lib/types/graph/nodes/flow-control/switch.d.cts +0 -21
  413. package/lib/types/graph/nodes/flow-control/switch.d.mts +0 -21
  414. package/lib/types/graph/nodes/index.d.cts +0 -79
  415. package/lib/types/graph/nodes/index.d.mts +0 -79
  416. package/lib/types/graph/nodes/loops/foreach.d.cts +0 -19
  417. package/lib/types/graph/nodes/loops/foreach.d.mts +0 -19
  418. package/lib/types/graph/nodes/loops/until.d.cts +0 -16
  419. package/lib/types/graph/nodes/loops/until.d.mts +0 -16
  420. package/lib/types/graph/nodes/loops/while.d.cts +0 -16
  421. package/lib/types/graph/nodes/loops/while.d.mts +0 -16
  422. package/lib/types/graph/nodes/manifests.d.cts +0 -62
  423. package/lib/types/graph/nodes/manifests.d.mts +0 -62
  424. package/lib/types/graph/nodes/triggers/chat.d.cts +0 -13
  425. package/lib/types/graph/nodes/triggers/chat.d.mts +0 -13
  426. package/lib/types/graph/nodes/triggers/event.d.cts +0 -10
  427. package/lib/types/graph/nodes/triggers/event.d.mts +0 -10
  428. package/lib/types/graph/nodes/triggers/form.d.cts +0 -11
  429. package/lib/types/graph/nodes/triggers/form.d.mts +0 -11
  430. package/lib/types/graph/nodes/triggers/manual.d.cts +0 -12
  431. package/lib/types/graph/nodes/triggers/manual.d.mts +0 -12
  432. package/lib/types/graph/nodes/triggers/schedule.d.cts +0 -11
  433. package/lib/types/graph/nodes/triggers/schedule.d.mts +0 -11
  434. package/lib/types/graph/nodes/triggers/webhook.d.cts +0 -11
  435. package/lib/types/graph/nodes/triggers/webhook.d.mts +0 -11
  436. package/lib/types/graph/nodes/utility/code.d.cts +0 -31
  437. package/lib/types/graph/nodes/utility/code.d.mts +0 -31
  438. package/lib/types/graph/nodes/utility/delay.d.cts +0 -11
  439. package/lib/types/graph/nodes/utility/delay.d.mts +0 -11
  440. package/lib/types/graph/nodes/utility/log.d.cts +0 -13
  441. package/lib/types/graph/nodes/utility/log.d.mts +0 -13
  442. package/lib/types/graph/nodes/utility/map.d.cts +0 -11
  443. package/lib/types/graph/nodes/utility/map.d.mts +0 -11
  444. package/lib/types/graph/nodes/utility/merge.d.cts +0 -12
  445. package/lib/types/graph/nodes/utility/merge.d.mts +0 -12
  446. package/lib/types/graph/nodes/utility/return.d.cts +0 -11
  447. package/lib/types/graph/nodes/utility/return.d.mts +0 -11
  448. package/lib/types/graph/nodes/utility/utility-log.d.cts +0 -15
  449. package/lib/types/graph/nodes/utility/utility-log.d.mts +0 -15
  450. package/lib/types/graph/overrides/Metadata.d.cts +0 -43
  451. package/lib/types/graph/overrides/Metadata.d.mts +0 -43
  452. package/lib/types/graph/overrides/Rendering.d.cts +0 -5
  453. package/lib/types/graph/overrides/Rendering.d.mts +0 -5
  454. package/lib/types/graph/overrides/index.d.cts +0 -3
  455. package/lib/types/graph/overrides/index.d.mts +0 -3
  456. package/lib/types/graph/overrides/overrides.d.cts +0 -1
  457. package/lib/types/graph/overrides/overrides.d.mts +0 -1
  458. package/lib/types/graph/reader.d.cts +0 -16
  459. package/lib/types/graph/reader.d.mts +0 -16
  460. package/lib/types/graph/registry.d.cts +0 -40
  461. package/lib/types/graph/registry.d.mts +0 -40
  462. package/lib/types/graph/snapshot.d.cts +0 -176
  463. package/lib/types/graph/snapshot.d.mts +0 -176
  464. package/lib/types/graph/types.d.cts +0 -289
  465. package/lib/types/graph/types.d.mts +0 -289
@@ -1,47 +0,0 @@
1
- import type { Constructor } from "@decaf-ts/decoration";
2
- import type { Model } from "@decaf-ts/decorator-validation";
3
- import type { GraphWorkflowDefinition } from "../constants.d.cts";
4
- import type { GraphWorkflowDocument } from "./GraphWorkflowDocument.d.cts";
5
- import type { GraphNodeEndpoint, GraphWorkflowEndpoint } from "./GraphEndpoint.d.cts";
6
- import type { GraphWorkflowViewport } from "./GraphWorkflowUiState.d.cts";
7
- /**
8
- * Options for compiling a decorated workflow into a canonical
9
- * {@link GraphWorkflowDocument}.
10
- */
11
- export interface GraphDecoratedWorkflowCompileOptions {
12
- /** Document id; defaults to the workflow's tag or name. */
13
- id?: string;
14
- /** Human-readable document name; defaults to the workflow's name. */
15
- name?: string;
16
- /** Canvas positions per node id, carried into the document's UI state. */
17
- positions?: Record<string, {
18
- x: number;
19
- y: number;
20
- }>;
21
- /** Initial canvas viewport carried into the document's UI state. */
22
- viewport?: GraphWorkflowViewport;
23
- }
24
- /** Anything the compiler can resolve into a {@link GraphWorkflowDefinition}: a decorated workflow class (constructor), a model instance, or a definition. */
25
- export type GraphDecoratedWorkflowInput = Constructor | Model | GraphWorkflowDefinition;
26
- /**
27
- * Compiles a decorated workflow (or an already-resolved
28
- * {@link GraphWorkflowDefinition}) into a canonical
29
- * {@link GraphWorkflowDocument}: workflow boundary ports, one instance per
30
- * node (input-port defaults and loop/switch metadata folded into
31
- * `parameters`/`metadata`), one edge per relation, plus UI state. Browser-safe:
32
- * node constructors are never invoked, so `@node` classes can seed demo
33
- * graphs without engine imports (DECAF-50 §4.4.4).
34
- *
35
- * @throws ValidationError when the input cannot be resolved to a decorated
36
- * graph workflow definition.
37
- */
38
- export declare function graphDecoratedWorkflowCompiler(workflow: GraphDecoratedWorkflowInput, options?: GraphDecoratedWorkflowCompileOptions): GraphWorkflowDocument;
39
- /**
40
- * Spec-mandated (§4.4.9) compiler facade. Delegates to
41
- * {@link graphDecoratedWorkflowCompiler}, which performs the actual
42
- * decorated-definition to {@link GraphWorkflowDocument} mapping.
43
- */
44
- export declare class GraphDecoratedWorkflowCompiler {
45
- compile(workflow: GraphDecoratedWorkflowInput, options?: GraphDecoratedWorkflowCompileOptions): GraphWorkflowDocument;
46
- }
47
- export type { GraphWorkflowEndpoint, GraphNodeEndpoint };
@@ -1,47 +0,0 @@
1
- import type { Constructor } from "@decaf-ts/decoration";
2
- import type { Model } from "@decaf-ts/decorator-validation";
3
- import type { GraphWorkflowDefinition } from "../constants.d.mts";
4
- import type { GraphWorkflowDocument } from "./GraphWorkflowDocument.d.mts";
5
- import type { GraphNodeEndpoint, GraphWorkflowEndpoint } from "./GraphEndpoint.d.mts";
6
- import type { GraphWorkflowViewport } from "./GraphWorkflowUiState.d.mts";
7
- /**
8
- * Options for compiling a decorated workflow into a canonical
9
- * {@link GraphWorkflowDocument}.
10
- */
11
- export interface GraphDecoratedWorkflowCompileOptions {
12
- /** Document id; defaults to the workflow's tag or name. */
13
- id?: string;
14
- /** Human-readable document name; defaults to the workflow's name. */
15
- name?: string;
16
- /** Canvas positions per node id, carried into the document's UI state. */
17
- positions?: Record<string, {
18
- x: number;
19
- y: number;
20
- }>;
21
- /** Initial canvas viewport carried into the document's UI state. */
22
- viewport?: GraphWorkflowViewport;
23
- }
24
- /** Anything the compiler can resolve into a {@link GraphWorkflowDefinition}: a decorated workflow class (constructor), a model instance, or a definition. */
25
- export type GraphDecoratedWorkflowInput = Constructor | Model | GraphWorkflowDefinition;
26
- /**
27
- * Compiles a decorated workflow (or an already-resolved
28
- * {@link GraphWorkflowDefinition}) into a canonical
29
- * {@link GraphWorkflowDocument}: workflow boundary ports, one instance per
30
- * node (input-port defaults and loop/switch metadata folded into
31
- * `parameters`/`metadata`), one edge per relation, plus UI state. Browser-safe:
32
- * node constructors are never invoked, so `@node` classes can seed demo
33
- * graphs without engine imports (DECAF-50 §4.4.4).
34
- *
35
- * @throws ValidationError when the input cannot be resolved to a decorated
36
- * graph workflow definition.
37
- */
38
- export declare function graphDecoratedWorkflowCompiler(workflow: GraphDecoratedWorkflowInput, options?: GraphDecoratedWorkflowCompileOptions): GraphWorkflowDocument;
39
- /**
40
- * Spec-mandated (§4.4.9) compiler facade. Delegates to
41
- * {@link graphDecoratedWorkflowCompiler}, which performs the actual
42
- * decorated-definition to {@link GraphWorkflowDocument} mapping.
43
- */
44
- export declare class GraphDecoratedWorkflowCompiler {
45
- compile(workflow: GraphDecoratedWorkflowInput, options?: GraphDecoratedWorkflowCompileOptions): GraphWorkflowDocument;
46
- }
47
- export type { GraphWorkflowEndpoint, GraphNodeEndpoint };
@@ -1,12 +0,0 @@
1
- import type { GraphEndpoint } from "./GraphEndpoint.d.cts";
2
- import type { GraphJsonValue } from "./GraphJsonValue.d.cts";
3
- import type { GraphEdgeUiState } from "./GraphWorkflowUiState.d.cts";
4
- export interface GraphEdgeInstance {
5
- id: string;
6
- type: "data" | "connection";
7
- source: GraphEndpoint;
8
- target: GraphEndpoint;
9
- label?: string;
10
- metadata?: Record<string, GraphJsonValue>;
11
- ui?: GraphEdgeUiState;
12
- }
@@ -1,12 +0,0 @@
1
- import type { GraphEndpoint } from "./GraphEndpoint.d.mts";
2
- import type { GraphJsonValue } from "./GraphJsonValue.d.mts";
3
- import type { GraphEdgeUiState } from "./GraphWorkflowUiState.d.mts";
4
- export interface GraphEdgeInstance {
5
- id: string;
6
- type: "data" | "connection";
7
- source: GraphEndpoint;
8
- target: GraphEndpoint;
9
- label?: string;
10
- metadata?: Record<string, GraphJsonValue>;
11
- ui?: GraphEdgeUiState;
12
- }
@@ -1,13 +0,0 @@
1
- export type GraphWorkflowEndpoint = {
2
- scope: "workflow";
3
- port: string;
4
- };
5
- export type GraphNodeEndpoint = {
6
- scope: "node";
7
- nodeId: string;
8
- port: string;
9
- };
10
- export type GraphEndpoint = GraphWorkflowEndpoint | GraphNodeEndpoint;
11
- export declare function isGraphWorkflowEndpoint(endpoint: GraphEndpoint): endpoint is GraphWorkflowEndpoint;
12
- export declare function isGraphNodeEndpoint(endpoint: GraphEndpoint): endpoint is GraphNodeEndpoint;
13
- export declare function isGraphEndpoint(value: unknown): value is GraphEndpoint;
@@ -1,13 +0,0 @@
1
- export type GraphWorkflowEndpoint = {
2
- scope: "workflow";
3
- port: string;
4
- };
5
- export type GraphNodeEndpoint = {
6
- scope: "node";
7
- nodeId: string;
8
- port: string;
9
- };
10
- export type GraphEndpoint = GraphWorkflowEndpoint | GraphNodeEndpoint;
11
- export declare function isGraphWorkflowEndpoint(endpoint: GraphEndpoint): endpoint is GraphWorkflowEndpoint;
12
- export declare function isGraphNodeEndpoint(endpoint: GraphEndpoint): endpoint is GraphNodeEndpoint;
13
- export declare function isGraphEndpoint(value: unknown): value is GraphEndpoint;
@@ -1,11 +0,0 @@
1
- export type GraphJsonPrimitive = string | number | boolean | null;
2
- export type GraphJsonValue = GraphJsonPrimitive | GraphJsonValue[] | {
3
- [key: string]: GraphJsonValue;
4
- };
5
- export declare const GRAPH_UNSAFE_OBJECT_KEYS: readonly ["__proto__", "prototype", "constructor"];
6
- export type GraphUnsafeObjectKey = (typeof GRAPH_UNSAFE_OBJECT_KEYS)[number];
7
- export declare function isGraphUnsafeObjectKey(key: string): key is GraphUnsafeObjectKey;
8
- export declare function isGraphJsonPrimitive(value: unknown): value is GraphJsonPrimitive;
9
- export declare function isGraphJsonValue(value: unknown): value is GraphJsonValue;
10
- export declare function isGraphJsonSafeValue(value: unknown): boolean;
11
- export declare function cloneGraphJsonValue<T extends GraphJsonValue>(value: T): T;
@@ -1,11 +0,0 @@
1
- export type GraphJsonPrimitive = string | number | boolean | null;
2
- export type GraphJsonValue = GraphJsonPrimitive | GraphJsonValue[] | {
3
- [key: string]: GraphJsonValue;
4
- };
5
- export declare const GRAPH_UNSAFE_OBJECT_KEYS: readonly ["__proto__", "prototype", "constructor"];
6
- export type GraphUnsafeObjectKey = (typeof GRAPH_UNSAFE_OBJECT_KEYS)[number];
7
- export declare function isGraphUnsafeObjectKey(key: string): key is GraphUnsafeObjectKey;
8
- export declare function isGraphJsonPrimitive(value: unknown): value is GraphJsonPrimitive;
9
- export declare function isGraphJsonValue(value: unknown): value is GraphJsonValue;
10
- export declare function isGraphJsonSafeValue(value: unknown): boolean;
11
- export declare function cloneGraphJsonValue<T extends GraphJsonValue>(value: T): T;
@@ -1,24 +0,0 @@
1
- import type { GraphJsonValue } from "./GraphJsonValue.d.cts";
2
- import type { GraphWorkflowDocument } from "./GraphWorkflowDocument.d.cts";
3
- export type GraphValueReference = {
4
- source: "workflow";
5
- port: string;
6
- } | {
7
- source: "node";
8
- nodeId: string;
9
- port: string;
10
- } | {
11
- source: "literal";
12
- value: GraphJsonValue;
13
- } | {
14
- source: "expression";
15
- expression: string;
16
- };
17
- export interface GraphLoopConfiguration {
18
- body: GraphWorkflowDocument;
19
- maxIterations?: number;
20
- timeoutMs?: number;
21
- concurrency?: number;
22
- inputMappings?: Record<string, GraphValueReference>;
23
- outputMappings?: Record<string, GraphValueReference>;
24
- }
@@ -1,24 +0,0 @@
1
- import type { GraphJsonValue } from "./GraphJsonValue.d.mts";
2
- import type { GraphWorkflowDocument } from "./GraphWorkflowDocument.d.mts";
3
- export type GraphValueReference = {
4
- source: "workflow";
5
- port: string;
6
- } | {
7
- source: "node";
8
- nodeId: string;
9
- port: string;
10
- } | {
11
- source: "literal";
12
- value: GraphJsonValue;
13
- } | {
14
- source: "expression";
15
- expression: string;
16
- };
17
- export interface GraphLoopConfiguration {
18
- body: GraphWorkflowDocument;
19
- maxIterations?: number;
20
- timeoutMs?: number;
21
- concurrency?: number;
22
- inputMappings?: Record<string, GraphValueReference>;
23
- outputMappings?: Record<string, GraphValueReference>;
24
- }
@@ -1,21 +0,0 @@
1
- import type { GraphJsonValue } from "./GraphJsonValue.d.cts";
2
- export type GraphInputBindingMode = "edge" | "literal" | "expression";
3
- export type GraphEdgeInputBinding = {
4
- mode: "edge";
5
- };
6
- export type GraphLiteralInputBinding = {
7
- mode: "literal";
8
- value: GraphJsonValue;
9
- };
10
- export type GraphExpressionInputBinding = {
11
- mode: "expression";
12
- expression: string;
13
- };
14
- export type GraphInputBinding = GraphEdgeInputBinding | GraphLiteralInputBinding | GraphExpressionInputBinding;
15
- export type GraphOutputBinding = {
16
- enabled?: boolean;
17
- alias?: string;
18
- metadata?: Record<string, GraphJsonValue>;
19
- };
20
- export declare function isGraphInputBindingMode(value: unknown): value is GraphInputBindingMode;
21
- export declare function isGraphInputBinding(value: unknown): value is GraphInputBinding;
@@ -1,21 +0,0 @@
1
- import type { GraphJsonValue } from "./GraphJsonValue.d.mts";
2
- export type GraphInputBindingMode = "edge" | "literal" | "expression";
3
- export type GraphEdgeInputBinding = {
4
- mode: "edge";
5
- };
6
- export type GraphLiteralInputBinding = {
7
- mode: "literal";
8
- value: GraphJsonValue;
9
- };
10
- export type GraphExpressionInputBinding = {
11
- mode: "expression";
12
- expression: string;
13
- };
14
- export type GraphInputBinding = GraphEdgeInputBinding | GraphLiteralInputBinding | GraphExpressionInputBinding;
15
- export type GraphOutputBinding = {
16
- enabled?: boolean;
17
- alias?: string;
18
- metadata?: Record<string, GraphJsonValue>;
19
- };
20
- export declare function isGraphInputBindingMode(value: unknown): value is GraphInputBindingMode;
21
- export declare function isGraphInputBinding(value: unknown): value is GraphInputBinding;
@@ -1,36 +0,0 @@
1
- import type { GraphInputBinding, GraphOutputBinding } from "./GraphNodeBinding.d.cts";
2
- import type { GraphJsonValue } from "./GraphJsonValue.d.cts";
3
- import type { GraphLoopConfiguration } from "./GraphLoopConfiguration.d.cts";
4
- import type { GraphNodeUiState } from "./GraphWorkflowUiState.d.cts";
5
- /**
6
- * Document-carried UI data-pinning state (D4, DECAF-50 §4.22). Data pinning
7
- * freezes the node's parameter values so downstream runs reuse them, and is a
8
- * distinct concept from the engine's cache pinning (`GraphPinning`): this state is
9
- * written into the canonical document and survives save/load round-trips.
10
- */
11
- export interface GraphNodePinState {
12
- /**
13
- * Parameter values frozen when the node was pinned. Downstream runs apply this
14
- * snapshot on top of the node's live parameters.
15
- */
16
- parameters: Record<string, GraphJsonValue>;
17
- /** ISO-8601 timestamp of when the pin was captured, when known. */
18
- pinnedAt?: string;
19
- }
20
- export interface GraphNodeInstance {
21
- id: string;
22
- kind: string;
23
- label?: string;
24
- parameters: Record<string, GraphJsonValue>;
25
- inputBindings?: Record<string, GraphInputBinding>;
26
- outputBindings?: Record<string, GraphOutputBinding>;
27
- disabled?: boolean;
28
- metadata?: Record<string, GraphJsonValue>;
29
- loop?: GraphLoopConfiguration;
30
- ui?: GraphNodeUiState;
31
- /**
32
- * UI data-pinning state (D4, DECAF-50 §4.22). Present iff the node is
33
- * pinned; the frozen parameter snapshot is what downstream runs reuse.
34
- */
35
- pinned?: GraphNodePinState;
36
- }
@@ -1,36 +0,0 @@
1
- import type { GraphInputBinding, GraphOutputBinding } from "./GraphNodeBinding.d.mts";
2
- import type { GraphJsonValue } from "./GraphJsonValue.d.mts";
3
- import type { GraphLoopConfiguration } from "./GraphLoopConfiguration.d.mts";
4
- import type { GraphNodeUiState } from "./GraphWorkflowUiState.d.mts";
5
- /**
6
- * Document-carried UI data-pinning state (D4, DECAF-50 §4.22). Data pinning
7
- * freezes the node's parameter values so downstream runs reuse them, and is a
8
- * distinct concept from the engine's cache pinning (`GraphPinning`): this state is
9
- * written into the canonical document and survives save/load round-trips.
10
- */
11
- export interface GraphNodePinState {
12
- /**
13
- * Parameter values frozen when the node was pinned. Downstream runs apply this
14
- * snapshot on top of the node's live parameters.
15
- */
16
- parameters: Record<string, GraphJsonValue>;
17
- /** ISO-8601 timestamp of when the pin was captured, when known. */
18
- pinnedAt?: string;
19
- }
20
- export interface GraphNodeInstance {
21
- id: string;
22
- kind: string;
23
- label?: string;
24
- parameters: Record<string, GraphJsonValue>;
25
- inputBindings?: Record<string, GraphInputBinding>;
26
- outputBindings?: Record<string, GraphOutputBinding>;
27
- disabled?: boolean;
28
- metadata?: Record<string, GraphJsonValue>;
29
- loop?: GraphLoopConfiguration;
30
- ui?: GraphNodeUiState;
31
- /**
32
- * UI data-pinning state (D4, DECAF-50 §4.22). Present iff the node is
33
- * pinned; the frozen parameter snapshot is what downstream runs reuse.
34
- */
35
- pinned?: GraphNodePinState;
36
- }
@@ -1,33 +0,0 @@
1
- import type { GraphJsonValue } from "./GraphJsonValue.d.cts";
2
- import type { GraphNodeInstance } from "./GraphNodeInstance.d.cts";
3
- import type { GraphEdgeInstance } from "./GraphEdgeInstance.d.cts";
4
- import type { GraphWorkflowUiState } from "./GraphWorkflowUiState.d.cts";
5
- import type { GraphValueSchema } from "../catalog/GraphValueSchema.d.cts";
6
- export interface GraphWorkflowPortInstance {
7
- id: string;
8
- label?: string;
9
- schema?: GraphValueSchema;
10
- required?: boolean;
11
- defaultValue?: GraphJsonValue;
12
- metadata?: Record<string, GraphJsonValue>;
13
- }
14
- export type GraphWorkflowSettings = Record<string, GraphJsonValue>;
15
- export interface GraphWorkflowDocument {
16
- id: string;
17
- name: string;
18
- inputs: GraphWorkflowPortInstance[];
19
- outputs: GraphWorkflowPortInstance[];
20
- nodes: GraphNodeInstance[];
21
- edges: GraphEdgeInstance[];
22
- settings?: GraphWorkflowSettings;
23
- metadata?: Record<string, GraphJsonValue>;
24
- ui?: GraphWorkflowUiState;
25
- }
26
- export declare function isGraphWorkflowDocumentShape(value: unknown): value is {
27
- id: string;
28
- name: string;
29
- inputs: unknown[];
30
- outputs: unknown[];
31
- nodes: unknown[];
32
- edges: unknown[];
33
- };
@@ -1,33 +0,0 @@
1
- import type { GraphJsonValue } from "./GraphJsonValue.d.mts";
2
- import type { GraphNodeInstance } from "./GraphNodeInstance.d.mts";
3
- import type { GraphEdgeInstance } from "./GraphEdgeInstance.d.mts";
4
- import type { GraphWorkflowUiState } from "./GraphWorkflowUiState.d.mts";
5
- import type { GraphValueSchema } from "../catalog/GraphValueSchema.d.mts";
6
- export interface GraphWorkflowPortInstance {
7
- id: string;
8
- label?: string;
9
- schema?: GraphValueSchema;
10
- required?: boolean;
11
- defaultValue?: GraphJsonValue;
12
- metadata?: Record<string, GraphJsonValue>;
13
- }
14
- export type GraphWorkflowSettings = Record<string, GraphJsonValue>;
15
- export interface GraphWorkflowDocument {
16
- id: string;
17
- name: string;
18
- inputs: GraphWorkflowPortInstance[];
19
- outputs: GraphWorkflowPortInstance[];
20
- nodes: GraphNodeInstance[];
21
- edges: GraphEdgeInstance[];
22
- settings?: GraphWorkflowSettings;
23
- metadata?: Record<string, GraphJsonValue>;
24
- ui?: GraphWorkflowUiState;
25
- }
26
- export declare function isGraphWorkflowDocumentShape(value: unknown): value is {
27
- id: string;
28
- name: string;
29
- inputs: unknown[];
30
- outputs: unknown[];
31
- nodes: unknown[];
32
- edges: unknown[];
33
- };
@@ -1,72 +0,0 @@
1
- import type { GraphJsonValue } from "./GraphJsonValue.d.cts";
2
- import type { GraphNodeEndpoint, GraphWorkflowEndpoint } from "./GraphEndpoint.d.cts";
3
- import type { GraphWorkflowUiState } from "./GraphWorkflowUiState.d.cts";
4
- import type { GraphEdgeInstance } from "./GraphEdgeInstance.d.cts";
5
- import type { GraphNodeInstance } from "./GraphNodeInstance.d.cts";
6
- import type { GraphWorkflowDocument, GraphWorkflowPortInstance, GraphWorkflowSettings } from "./GraphWorkflowDocument.d.cts";
7
- /** A workflow boundary port accepted by {@link GraphWorkflowDocumentBuilder}. */
8
- export type GraphWorkflowPortInput = GraphWorkflowPortInstance;
9
- /** Options for constructing a {@link GraphWorkflowDocumentBuilder}. */
10
- export interface GraphWorkflowDocumentBuilderOptions {
11
- /** Document id; defaults to an empty string when omitted. */
12
- id?: string;
13
- /** Human-readable document name; defaults to an empty string when omitted. */
14
- name?: string;
15
- }
16
- /**
17
- * Fluent builder for the canonical {@link GraphWorkflowDocument}
18
- * (DECAF-50 §4.4.4). Collects boundary ports, node instances, edges, and
19
- * optional settings/metadata/UI state, then validates and freezes a
20
- * defensively-copied document on {@link GraphWorkflowDocumentBuilder.build}.
21
- */
22
- export declare class GraphWorkflowDocumentBuilder {
23
- private readonly document;
24
- /**
25
- * @param id Document id.
26
- * @param name Optional document name; defaults to an empty string.
27
- */
28
- constructor(id: string, name?: string);
29
- /** Appends a workflow input port. */
30
- addInput(port: GraphWorkflowPortInput): this;
31
- /** Appends a workflow output port. */
32
- addOutput(port: GraphWorkflowPortInput): this;
33
- /** Appends a node instance, defaulting `parameters` to an empty object. */
34
- addNode(node: GraphNodeInstance): this;
35
- /** Appends an edge instance. */
36
- addEdge(edge: GraphEdgeInstance): this;
37
- /** Sets (or clears) the document's free-form settings bag. */
38
- setSettings(settings?: GraphWorkflowSettings): this;
39
- /** Sets (or clears) the document's metadata bag. */
40
- setMetadata(metadata?: Record<string, GraphJsonValue>): this;
41
- /** Sets (or clears) the document's editor UI state. */
42
- setUi(ui?: GraphWorkflowUiState): this;
43
- /**
44
- * Validates the accumulated document with
45
- * {@link assertGraphWorkflowDocumentValid} and returns a deep-ish copy:
46
- * ports, nodes, and edges are cloned per entry, and the optional
47
- * `settings`/`metadata`/`ui` bags are only present when explicitly set, so
48
- * callers never observe builder-internal `undefined` fields.
49
- *
50
- * @throws ValidationError when the document fails validation.
51
- */
52
- build(): GraphWorkflowDocument;
53
- }
54
- /**
55
- * Shared validation context for
56
- * {@link assertGraphWorkflowDocumentValid}: tracks documents already visited
57
- * on the current nesting path so cyclic loop bodies are detected.
58
- */
59
- export interface GraphWorkflowDocumentValidationContext {
60
- seen: unknown[];
61
- }
62
- /**
63
- * Structural validation gate for a canonical {@link GraphWorkflowDocument}
64
- * (shared by the frontend builder and the backend nine-stage validator,
65
- * DECAF-50 §4.8 stage 1 shape rules). Checks unique port/node/edge ids,
66
- * valid schemas, binding shapes, edge endpoints, and recursively validates
67
- * nested loop-body documents.
68
- *
69
- * @throws ValidationError describing the first invalid aspect found.
70
- */
71
- export declare function assertGraphWorkflowDocumentValid(document: GraphWorkflowDocument, context?: GraphWorkflowDocumentValidationContext): void;
72
- export type { GraphWorkflowEndpoint, GraphNodeEndpoint };
@@ -1,72 +0,0 @@
1
- import type { GraphJsonValue } from "./GraphJsonValue.d.mts";
2
- import type { GraphNodeEndpoint, GraphWorkflowEndpoint } from "./GraphEndpoint.d.mts";
3
- import type { GraphWorkflowUiState } from "./GraphWorkflowUiState.d.mts";
4
- import type { GraphEdgeInstance } from "./GraphEdgeInstance.d.mts";
5
- import type { GraphNodeInstance } from "./GraphNodeInstance.d.mts";
6
- import type { GraphWorkflowDocument, GraphWorkflowPortInstance, GraphWorkflowSettings } from "./GraphWorkflowDocument.d.mts";
7
- /** A workflow boundary port accepted by {@link GraphWorkflowDocumentBuilder}. */
8
- export type GraphWorkflowPortInput = GraphWorkflowPortInstance;
9
- /** Options for constructing a {@link GraphWorkflowDocumentBuilder}. */
10
- export interface GraphWorkflowDocumentBuilderOptions {
11
- /** Document id; defaults to an empty string when omitted. */
12
- id?: string;
13
- /** Human-readable document name; defaults to an empty string when omitted. */
14
- name?: string;
15
- }
16
- /**
17
- * Fluent builder for the canonical {@link GraphWorkflowDocument}
18
- * (DECAF-50 §4.4.4). Collects boundary ports, node instances, edges, and
19
- * optional settings/metadata/UI state, then validates and freezes a
20
- * defensively-copied document on {@link GraphWorkflowDocumentBuilder.build}.
21
- */
22
- export declare class GraphWorkflowDocumentBuilder {
23
- private readonly document;
24
- /**
25
- * @param id Document id.
26
- * @param name Optional document name; defaults to an empty string.
27
- */
28
- constructor(id: string, name?: string);
29
- /** Appends a workflow input port. */
30
- addInput(port: GraphWorkflowPortInput): this;
31
- /** Appends a workflow output port. */
32
- addOutput(port: GraphWorkflowPortInput): this;
33
- /** Appends a node instance, defaulting `parameters` to an empty object. */
34
- addNode(node: GraphNodeInstance): this;
35
- /** Appends an edge instance. */
36
- addEdge(edge: GraphEdgeInstance): this;
37
- /** Sets (or clears) the document's free-form settings bag. */
38
- setSettings(settings?: GraphWorkflowSettings): this;
39
- /** Sets (or clears) the document's metadata bag. */
40
- setMetadata(metadata?: Record<string, GraphJsonValue>): this;
41
- /** Sets (or clears) the document's editor UI state. */
42
- setUi(ui?: GraphWorkflowUiState): this;
43
- /**
44
- * Validates the accumulated document with
45
- * {@link assertGraphWorkflowDocumentValid} and returns a deep-ish copy:
46
- * ports, nodes, and edges are cloned per entry, and the optional
47
- * `settings`/`metadata`/`ui` bags are only present when explicitly set, so
48
- * callers never observe builder-internal `undefined` fields.
49
- *
50
- * @throws ValidationError when the document fails validation.
51
- */
52
- build(): GraphWorkflowDocument;
53
- }
54
- /**
55
- * Shared validation context for
56
- * {@link assertGraphWorkflowDocumentValid}: tracks documents already visited
57
- * on the current nesting path so cyclic loop bodies are detected.
58
- */
59
- export interface GraphWorkflowDocumentValidationContext {
60
- seen: unknown[];
61
- }
62
- /**
63
- * Structural validation gate for a canonical {@link GraphWorkflowDocument}
64
- * (shared by the frontend builder and the backend nine-stage validator,
65
- * DECAF-50 §4.8 stage 1 shape rules). Checks unique port/node/edge ids,
66
- * valid schemas, binding shapes, edge endpoints, and recursively validates
67
- * nested loop-body documents.
68
- *
69
- * @throws ValidationError describing the first invalid aspect found.
70
- */
71
- export declare function assertGraphWorkflowDocumentValid(document: GraphWorkflowDocument, context?: GraphWorkflowDocumentValidationContext): void;
72
- export type { GraphWorkflowEndpoint, GraphNodeEndpoint };
@@ -1,21 +0,0 @@
1
- import type { GraphJsonValue } from "./GraphJsonValue.d.cts";
2
- import type { GraphWorkflowDocument, GraphWorkflowPortInstance } from "./GraphWorkflowDocument.d.cts";
3
- import type { GraphNodeInstance } from "./GraphNodeInstance.d.cts";
4
- import type { GraphEdgeInstance } from "./GraphEdgeInstance.d.cts";
5
- import type { GraphNodeUiState, GraphWorkflowUiState } from "./GraphWorkflowUiState.d.cts";
6
- export declare function graphWorkflowDocumentOf(value: unknown): GraphWorkflowDocument | undefined;
7
- export declare function graphWorkflowNodeOf(document: GraphWorkflowDocument | undefined, nodeId: string): GraphNodeInstance | undefined;
8
- export declare function graphWorkflowEdgeOf(document: GraphWorkflowDocument | undefined, edgeId: string): GraphEdgeInstance | undefined;
9
- export declare function graphWorkflowPortsOf(document: GraphWorkflowDocument | undefined): {
10
- inputs: GraphWorkflowPortInstance[];
11
- outputs: GraphWorkflowPortInstance[];
12
- };
13
- export declare function graphWorkflowSettingsOf(document: GraphWorkflowDocument | undefined): Record<string, GraphJsonValue>;
14
- export declare function graphWorkflowEdgesOf(document: GraphWorkflowDocument | undefined): GraphEdgeInstance[];
15
- export declare function graphWorkflowNodeEdgesOf(document: GraphWorkflowDocument | undefined, nodeId: string): GraphEdgeInstance[];
16
- export declare function graphNodeEndpointId(endpoint: GraphEdgeInstance["source"]): string | undefined;
17
- export declare function graphWorkflowNodeUiOf(document: GraphWorkflowDocument, nodeId: string): GraphNodeUiState | undefined;
18
- export declare function graphWorkflowUiOf(document: GraphWorkflowDocument): GraphWorkflowUiState | undefined;
19
- export declare function graphWorkflowUiValueOf(document: GraphWorkflowDocument, key: string): GraphJsonValue | undefined;
20
- export declare function graphWorkflowDocumentSettingOf(document: GraphWorkflowDocument | undefined, key: string): GraphJsonValue | undefined;
21
- export declare function graphWorkflowDocumentMetadataValueOf(document: GraphWorkflowDocument | undefined, key: string): GraphJsonValue | undefined;
@@ -1,21 +0,0 @@
1
- import type { GraphJsonValue } from "./GraphJsonValue.d.mts";
2
- import type { GraphWorkflowDocument, GraphWorkflowPortInstance } from "./GraphWorkflowDocument.d.mts";
3
- import type { GraphNodeInstance } from "./GraphNodeInstance.d.mts";
4
- import type { GraphEdgeInstance } from "./GraphEdgeInstance.d.mts";
5
- import type { GraphNodeUiState, GraphWorkflowUiState } from "./GraphWorkflowUiState.d.mts";
6
- export declare function graphWorkflowDocumentOf(value: unknown): GraphWorkflowDocument | undefined;
7
- export declare function graphWorkflowNodeOf(document: GraphWorkflowDocument | undefined, nodeId: string): GraphNodeInstance | undefined;
8
- export declare function graphWorkflowEdgeOf(document: GraphWorkflowDocument | undefined, edgeId: string): GraphEdgeInstance | undefined;
9
- export declare function graphWorkflowPortsOf(document: GraphWorkflowDocument | undefined): {
10
- inputs: GraphWorkflowPortInstance[];
11
- outputs: GraphWorkflowPortInstance[];
12
- };
13
- export declare function graphWorkflowSettingsOf(document: GraphWorkflowDocument | undefined): Record<string, GraphJsonValue>;
14
- export declare function graphWorkflowEdgesOf(document: GraphWorkflowDocument | undefined): GraphEdgeInstance[];
15
- export declare function graphWorkflowNodeEdgesOf(document: GraphWorkflowDocument | undefined, nodeId: string): GraphEdgeInstance[];
16
- export declare function graphNodeEndpointId(endpoint: GraphEdgeInstance["source"]): string | undefined;
17
- export declare function graphWorkflowNodeUiOf(document: GraphWorkflowDocument, nodeId: string): GraphNodeUiState | undefined;
18
- export declare function graphWorkflowUiOf(document: GraphWorkflowDocument): GraphWorkflowUiState | undefined;
19
- export declare function graphWorkflowUiValueOf(document: GraphWorkflowDocument, key: string): GraphJsonValue | undefined;
20
- export declare function graphWorkflowDocumentSettingOf(document: GraphWorkflowDocument | undefined, key: string): GraphJsonValue | undefined;
21
- export declare function graphWorkflowDocumentMetadataValueOf(document: GraphWorkflowDocument | undefined, key: string): GraphJsonValue | undefined;
@@ -1,5 +0,0 @@
1
- import type { GraphWorkflowDocument } from "./GraphWorkflowDocument.d.cts";
2
- export declare function graphWorkflowDocumentSerializer(document: GraphWorkflowDocument): string;
3
- export declare function graphWorkflowDocumentDeserializer(serialised: string): GraphWorkflowDocument;
4
- export declare function graphJsonSerializer(value: unknown, indentation?: number): string;
5
- export declare function graphJsonParser(serialised: string | unknown): unknown;
@@ -1,5 +0,0 @@
1
- import type { GraphWorkflowDocument } from "./GraphWorkflowDocument.d.mts";
2
- export declare function graphWorkflowDocumentSerializer(document: GraphWorkflowDocument): string;
3
- export declare function graphWorkflowDocumentDeserializer(serialised: string): GraphWorkflowDocument;
4
- export declare function graphJsonSerializer(value: unknown, indentation?: number): string;
5
- export declare function graphJsonParser(serialised: string | unknown): unknown;