@decaf-ts/ui-decorators 0.21.0 → 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 (309) 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 -326
  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/GraphPortManifestElement.cjs +0 -15
  49. package/lib/cjs/graph/catalog/GraphPortManifestElement.cjs.map +0 -1
  50. package/lib/cjs/graph/catalog/GraphResourceLocatorMode.cjs +0 -19
  51. package/lib/cjs/graph/catalog/GraphResourceLocatorMode.cjs.map +0 -1
  52. package/lib/cjs/graph/catalog/GraphValueSchema.cjs +0 -25
  53. package/lib/cjs/graph/catalog/GraphValueSchema.cjs.map +0 -1
  54. package/lib/cjs/graph/catalog/GraphValueSchemaDerivation.cjs +0 -164
  55. package/lib/cjs/graph/catalog/GraphValueSchemaDerivation.cjs.map +0 -1
  56. package/lib/cjs/graph/catalog/GraphVisibilityExpression.cjs +0 -63
  57. package/lib/cjs/graph/catalog/GraphVisibilityExpression.cjs.map +0 -1
  58. package/lib/cjs/graph/catalog/index.cjs +0 -40
  59. package/lib/cjs/graph/catalog/index.cjs.map +0 -1
  60. package/lib/cjs/graph/category-styles.cjs +0 -38
  61. package/lib/cjs/graph/category-styles.cjs.map +0 -1
  62. package/lib/cjs/graph/constants.cjs +0 -320
  63. package/lib/cjs/graph/constants.cjs.map +0 -1
  64. package/lib/cjs/graph/decorators.cjs +0 -151
  65. package/lib/cjs/graph/decorators.cjs.map +0 -1
  66. package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs +0 -353
  67. package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs.map +0 -1
  68. package/lib/cjs/graph/document/GraphEdgeInstance.cjs +0 -4
  69. package/lib/cjs/graph/document/GraphEdgeInstance.cjs.map +0 -1
  70. package/lib/cjs/graph/document/GraphEndpoint.cjs +0 -27
  71. package/lib/cjs/graph/document/GraphEndpoint.cjs.map +0 -1
  72. package/lib/cjs/graph/document/GraphJsonValue.cjs +0 -82
  73. package/lib/cjs/graph/document/GraphJsonValue.cjs.map +0 -1
  74. package/lib/cjs/graph/document/GraphLoopConfiguration.cjs +0 -4
  75. package/lib/cjs/graph/document/GraphLoopConfiguration.cjs.map +0 -1
  76. package/lib/cjs/graph/document/GraphNodeBinding.cjs +0 -27
  77. package/lib/cjs/graph/document/GraphNodeBinding.cjs.map +0 -1
  78. package/lib/cjs/graph/document/GraphNodeInstance.cjs +0 -4
  79. package/lib/cjs/graph/document/GraphNodeInstance.cjs.map +0 -1
  80. package/lib/cjs/graph/document/GraphWorkflowDocument.cjs +0 -16
  81. package/lib/cjs/graph/document/GraphWorkflowDocument.cjs.map +0 -1
  82. package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs +0 -309
  83. package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs.map +0 -1
  84. package/lib/cjs/graph/document/GraphWorkflowDocumentReader.cjs +0 -78
  85. package/lib/cjs/graph/document/GraphWorkflowDocumentReader.cjs.map +0 -1
  86. package/lib/cjs/graph/document/GraphWorkflowDocumentSerializer.cjs +0 -70
  87. package/lib/cjs/graph/document/GraphWorkflowDocumentSerializer.cjs.map +0 -1
  88. package/lib/cjs/graph/document/GraphWorkflowUiState.cjs +0 -4
  89. package/lib/cjs/graph/document/GraphWorkflowUiState.cjs.map +0 -1
  90. package/lib/cjs/graph/document/index.cjs +0 -30
  91. package/lib/cjs/graph/document/index.cjs.map +0 -1
  92. package/lib/cjs/graph/index.cjs +0 -33
  93. package/lib/cjs/graph/index.cjs.map +0 -1
  94. package/lib/cjs/graph/overrides/Metadata.cjs +0 -23
  95. package/lib/cjs/graph/overrides/Metadata.cjs.map +0 -1
  96. package/lib/cjs/graph/overrides/Rendering.cjs +0 -4
  97. package/lib/cjs/graph/overrides/Rendering.cjs.map +0 -1
  98. package/lib/cjs/graph/overrides/index.cjs +0 -21
  99. package/lib/cjs/graph/overrides/index.cjs.map +0 -1
  100. package/lib/cjs/graph/overrides/overrides.cjs +0 -20
  101. package/lib/cjs/graph/overrides/overrides.cjs.map +0 -1
  102. package/lib/cjs/graph/reader.cjs +0 -327
  103. package/lib/cjs/graph/reader.cjs.map +0 -1
  104. package/lib/cjs/graph/registry.cjs +0 -67
  105. package/lib/cjs/graph/registry.cjs.map +0 -1
  106. package/lib/cjs/graph/snapshot.cjs +0 -4
  107. package/lib/cjs/graph/snapshot.cjs.map +0 -1
  108. package/lib/cjs/graph/types.cjs +0 -7
  109. package/lib/cjs/graph/types.cjs.map +0 -1
  110. package/lib/esm/graph/GraphExecutionStateMapper.js +0 -91
  111. package/lib/esm/graph/GraphExecutionStateMapper.js.map +0 -1
  112. package/lib/esm/graph/GraphResolution.js +0 -13
  113. package/lib/esm/graph/GraphResolution.js.map +0 -1
  114. package/lib/esm/graph/catalog/GraphConnectionPolicy.js +0 -16
  115. package/lib/esm/graph/catalog/GraphConnectionPolicy.js.map +0 -1
  116. package/lib/esm/graph/catalog/GraphCredentialReference.js +0 -9
  117. package/lib/esm/graph/catalog/GraphCredentialReference.js.map +0 -1
  118. package/lib/esm/graph/catalog/GraphCredentialRequirement.js +0 -12
  119. package/lib/esm/graph/catalog/GraphCredentialRequirement.js.map +0 -1
  120. package/lib/esm/graph/catalog/GraphDynamicPortRule.js +0 -25
  121. package/lib/esm/graph/catalog/GraphDynamicPortRule.js.map +0 -1
  122. package/lib/esm/graph/catalog/GraphIconReference.js +0 -18
  123. package/lib/esm/graph/catalog/GraphIconReference.js.map +0 -1
  124. package/lib/esm/graph/catalog/GraphManifestCompiler.js +0 -322
  125. package/lib/esm/graph/catalog/GraphManifestCompiler.js.map +0 -1
  126. package/lib/esm/graph/catalog/GraphNodeCapability.js +0 -17
  127. package/lib/esm/graph/catalog/GraphNodeCapability.js.map +0 -1
  128. package/lib/esm/graph/catalog/GraphNodeDisplayManifest.js +0 -7
  129. package/lib/esm/graph/catalog/GraphNodeDisplayManifest.js.map +0 -1
  130. package/lib/esm/graph/catalog/GraphNodeManifest.js +0 -17
  131. package/lib/esm/graph/catalog/GraphNodeManifest.js.map +0 -1
  132. package/lib/esm/graph/catalog/GraphNodeManifestSerialization.js +0 -42
  133. package/lib/esm/graph/catalog/GraphNodeManifestSerialization.js.map +0 -1
  134. package/lib/esm/graph/catalog/GraphNodeMethodManifest.js +0 -23
  135. package/lib/esm/graph/catalog/GraphNodeMethodManifest.js.map +0 -1
  136. package/lib/esm/graph/catalog/GraphNodePolicyManifest.js +0 -14
  137. package/lib/esm/graph/catalog/GraphNodePolicyManifest.js.map +0 -1
  138. package/lib/esm/graph/catalog/GraphParameterBase.js +0 -2
  139. package/lib/esm/graph/catalog/GraphParameterBase.js.map +0 -1
  140. package/lib/esm/graph/catalog/GraphParameterDefinition.js +0 -23
  141. package/lib/esm/graph/catalog/GraphParameterDefinition.js.map +0 -1
  142. package/lib/esm/graph/catalog/GraphParameterOption.js +0 -13
  143. package/lib/esm/graph/catalog/GraphParameterOption.js.map +0 -1
  144. package/lib/esm/graph/catalog/GraphParameterValidation.js +0 -50
  145. package/lib/esm/graph/catalog/GraphParameterValidation.js.map +0 -1
  146. package/lib/esm/graph/catalog/GraphPortManifest.js +0 -13
  147. package/lib/esm/graph/catalog/GraphPortManifest.js.map +0 -1
  148. package/lib/esm/graph/catalog/GraphPortManifestElement.js +0 -11
  149. package/lib/esm/graph/catalog/GraphPortManifestElement.js.map +0 -1
  150. package/lib/esm/graph/catalog/GraphResourceLocatorMode.js +0 -13
  151. package/lib/esm/graph/catalog/GraphResourceLocatorMode.js.map +0 -1
  152. package/lib/esm/graph/catalog/GraphValueSchema.js +0 -19
  153. package/lib/esm/graph/catalog/GraphValueSchema.js.map +0 -1
  154. package/lib/esm/graph/catalog/GraphValueSchemaDerivation.js +0 -156
  155. package/lib/esm/graph/catalog/GraphValueSchemaDerivation.js.map +0 -1
  156. package/lib/esm/graph/catalog/GraphVisibilityExpression.js +0 -58
  157. package/lib/esm/graph/catalog/GraphVisibilityExpression.js.map +0 -1
  158. package/lib/esm/graph/catalog/index.js +0 -23
  159. package/lib/esm/graph/catalog/index.js.map +0 -1
  160. package/lib/esm/graph/category-styles.js +0 -34
  161. package/lib/esm/graph/category-styles.js.map +0 -1
  162. package/lib/esm/graph/constants.js +0 -335
  163. package/lib/esm/graph/constants.js.map +0 -1
  164. package/lib/esm/graph/decorators.js +0 -141
  165. package/lib/esm/graph/decorators.js.map +0 -1
  166. package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js +0 -347
  167. package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js.map +0 -1
  168. package/lib/esm/graph/document/GraphEdgeInstance.js +0 -2
  169. package/lib/esm/graph/document/GraphEdgeInstance.js.map +0 -1
  170. package/lib/esm/graph/document/GraphEndpoint.js +0 -21
  171. package/lib/esm/graph/document/GraphEndpoint.js.map +0 -1
  172. package/lib/esm/graph/document/GraphJsonValue.js +0 -73
  173. package/lib/esm/graph/document/GraphJsonValue.js.map +0 -1
  174. package/lib/esm/graph/document/GraphLoopConfiguration.js +0 -2
  175. package/lib/esm/graph/document/GraphLoopConfiguration.js.map +0 -1
  176. package/lib/esm/graph/document/GraphNodeBinding.js +0 -22
  177. package/lib/esm/graph/document/GraphNodeBinding.js.map +0 -1
  178. package/lib/esm/graph/document/GraphNodeInstance.js +0 -2
  179. package/lib/esm/graph/document/GraphNodeInstance.js.map +0 -1
  180. package/lib/esm/graph/document/GraphWorkflowDocument.js +0 -12
  181. package/lib/esm/graph/document/GraphWorkflowDocument.js.map +0 -1
  182. package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js +0 -303
  183. package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js.map +0 -1
  184. package/lib/esm/graph/document/GraphWorkflowDocumentReader.js +0 -62
  185. package/lib/esm/graph/document/GraphWorkflowDocumentReader.js.map +0 -1
  186. package/lib/esm/graph/document/GraphWorkflowDocumentSerializer.js +0 -63
  187. package/lib/esm/graph/document/GraphWorkflowDocumentSerializer.js.map +0 -1
  188. package/lib/esm/graph/document/GraphWorkflowUiState.js +0 -2
  189. package/lib/esm/graph/document/GraphWorkflowUiState.js.map +0 -1
  190. package/lib/esm/graph/document/index.js +0 -13
  191. package/lib/esm/graph/document/index.js.map +0 -1
  192. package/lib/esm/graph/index.js +0 -16
  193. package/lib/esm/graph/index.js.map +0 -1
  194. package/lib/esm/graph/overrides/Metadata.js +0 -20
  195. package/lib/esm/graph/overrides/Metadata.js.map +0 -1
  196. package/lib/esm/graph/overrides/Rendering.js +0 -2
  197. package/lib/esm/graph/overrides/Rendering.js.map +0 -1
  198. package/lib/esm/graph/overrides/index.js +0 -4
  199. package/lib/esm/graph/overrides/index.js.map +0 -1
  200. package/lib/esm/graph/overrides/overrides.js +0 -17
  201. package/lib/esm/graph/overrides/overrides.js.map +0 -1
  202. package/lib/esm/graph/reader.js +0 -313
  203. package/lib/esm/graph/reader.js.map +0 -1
  204. package/lib/esm/graph/registry.js +0 -59
  205. package/lib/esm/graph/registry.js.map +0 -1
  206. package/lib/esm/graph/snapshot.js +0 -2
  207. package/lib/esm/graph/snapshot.js.map +0 -1
  208. package/lib/esm/graph/types.js +0 -2
  209. package/lib/esm/graph/types.js.map +0 -1
  210. package/lib/types/graph/GraphExecutionStateMapper.d.cts +0 -66
  211. package/lib/types/graph/GraphExecutionStateMapper.d.mts +0 -66
  212. package/lib/types/graph/GraphResolution.d.cts +0 -53
  213. package/lib/types/graph/GraphResolution.d.mts +0 -53
  214. package/lib/types/graph/catalog/GraphConnectionPolicy.d.cts +0 -9
  215. package/lib/types/graph/catalog/GraphConnectionPolicy.d.mts +0 -9
  216. package/lib/types/graph/catalog/GraphCredentialReference.d.cts +0 -6
  217. package/lib/types/graph/catalog/GraphCredentialReference.d.mts +0 -6
  218. package/lib/types/graph/catalog/GraphCredentialRequirement.d.cts +0 -7
  219. package/lib/types/graph/catalog/GraphCredentialRequirement.d.mts +0 -7
  220. package/lib/types/graph/catalog/GraphDynamicPortRule.d.cts +0 -22
  221. package/lib/types/graph/catalog/GraphDynamicPortRule.d.mts +0 -22
  222. package/lib/types/graph/catalog/GraphIconReference.d.cts +0 -12
  223. package/lib/types/graph/catalog/GraphIconReference.d.mts +0 -12
  224. package/lib/types/graph/catalog/GraphManifestCompiler.d.cts +0 -14
  225. package/lib/types/graph/catalog/GraphManifestCompiler.d.mts +0 -14
  226. package/lib/types/graph/catalog/GraphNodeCapability.d.cts +0 -4
  227. package/lib/types/graph/catalog/GraphNodeCapability.d.mts +0 -4
  228. package/lib/types/graph/catalog/GraphNodeDisplayManifest.d.cts +0 -33
  229. package/lib/types/graph/catalog/GraphNodeDisplayManifest.d.mts +0 -33
  230. package/lib/types/graph/catalog/GraphNodeManifest.d.cts +0 -26
  231. package/lib/types/graph/catalog/GraphNodeManifest.d.mts +0 -26
  232. package/lib/types/graph/catalog/GraphNodeManifestSerialization.d.cts +0 -7
  233. package/lib/types/graph/catalog/GraphNodeManifestSerialization.d.mts +0 -7
  234. package/lib/types/graph/catalog/GraphNodeMethodManifest.d.cts +0 -10
  235. package/lib/types/graph/catalog/GraphNodeMethodManifest.d.mts +0 -10
  236. package/lib/types/graph/catalog/GraphNodePolicyManifest.d.cts +0 -46
  237. package/lib/types/graph/catalog/GraphNodePolicyManifest.d.mts +0 -46
  238. package/lib/types/graph/catalog/GraphParameterBase.d.cts +0 -14
  239. package/lib/types/graph/catalog/GraphParameterBase.d.mts +0 -14
  240. package/lib/types/graph/catalog/GraphParameterDefinition.d.cts +0 -66
  241. package/lib/types/graph/catalog/GraphParameterDefinition.d.mts +0 -66
  242. package/lib/types/graph/catalog/GraphParameterOption.d.cts +0 -8
  243. package/lib/types/graph/catalog/GraphParameterOption.d.mts +0 -8
  244. package/lib/types/graph/catalog/GraphParameterValidation.d.cts +0 -25
  245. package/lib/types/graph/catalog/GraphParameterValidation.d.mts +0 -25
  246. package/lib/types/graph/catalog/GraphPortManifest.d.cts +0 -23
  247. package/lib/types/graph/catalog/GraphPortManifest.d.mts +0 -23
  248. package/lib/types/graph/catalog/GraphPortManifestElement.d.cts +0 -7
  249. package/lib/types/graph/catalog/GraphPortManifestElement.d.mts +0 -7
  250. package/lib/types/graph/catalog/GraphResourceLocatorMode.d.cts +0 -10
  251. package/lib/types/graph/catalog/GraphResourceLocatorMode.d.mts +0 -10
  252. package/lib/types/graph/catalog/GraphValueSchema.d.cts +0 -44
  253. package/lib/types/graph/catalog/GraphValueSchema.d.mts +0 -44
  254. package/lib/types/graph/catalog/GraphValueSchemaDerivation.d.cts +0 -9
  255. package/lib/types/graph/catalog/GraphValueSchemaDerivation.d.mts +0 -9
  256. package/lib/types/graph/catalog/GraphVisibilityExpression.d.cts +0 -22
  257. package/lib/types/graph/catalog/GraphVisibilityExpression.d.mts +0 -22
  258. package/lib/types/graph/catalog/index.d.cts +0 -22
  259. package/lib/types/graph/catalog/index.d.mts +0 -22
  260. package/lib/types/graph/category-styles.d.cts +0 -8
  261. package/lib/types/graph/category-styles.d.mts +0 -8
  262. package/lib/types/graph/constants.d.cts +0 -544
  263. package/lib/types/graph/constants.d.mts +0 -544
  264. package/lib/types/graph/decorators.d.cts +0 -69
  265. package/lib/types/graph/decorators.d.mts +0 -69
  266. package/lib/types/graph/document/GraphDecoratedWorkflowCompiler.d.cts +0 -47
  267. package/lib/types/graph/document/GraphDecoratedWorkflowCompiler.d.mts +0 -47
  268. package/lib/types/graph/document/GraphEdgeInstance.d.cts +0 -12
  269. package/lib/types/graph/document/GraphEdgeInstance.d.mts +0 -12
  270. package/lib/types/graph/document/GraphEndpoint.d.cts +0 -13
  271. package/lib/types/graph/document/GraphEndpoint.d.mts +0 -13
  272. package/lib/types/graph/document/GraphJsonValue.d.cts +0 -11
  273. package/lib/types/graph/document/GraphJsonValue.d.mts +0 -11
  274. package/lib/types/graph/document/GraphLoopConfiguration.d.cts +0 -24
  275. package/lib/types/graph/document/GraphLoopConfiguration.d.mts +0 -24
  276. package/lib/types/graph/document/GraphNodeBinding.d.cts +0 -21
  277. package/lib/types/graph/document/GraphNodeBinding.d.mts +0 -21
  278. package/lib/types/graph/document/GraphNodeInstance.d.cts +0 -36
  279. package/lib/types/graph/document/GraphNodeInstance.d.mts +0 -36
  280. package/lib/types/graph/document/GraphWorkflowDocument.d.cts +0 -33
  281. package/lib/types/graph/document/GraphWorkflowDocument.d.mts +0 -33
  282. package/lib/types/graph/document/GraphWorkflowDocumentBuilder.d.cts +0 -72
  283. package/lib/types/graph/document/GraphWorkflowDocumentBuilder.d.mts +0 -72
  284. package/lib/types/graph/document/GraphWorkflowDocumentReader.d.cts +0 -21
  285. package/lib/types/graph/document/GraphWorkflowDocumentReader.d.mts +0 -21
  286. package/lib/types/graph/document/GraphWorkflowDocumentSerializer.d.cts +0 -5
  287. package/lib/types/graph/document/GraphWorkflowDocumentSerializer.d.mts +0 -5
  288. package/lib/types/graph/document/GraphWorkflowUiState.d.cts +0 -37
  289. package/lib/types/graph/document/GraphWorkflowUiState.d.mts +0 -37
  290. package/lib/types/graph/document/index.d.cts +0 -12
  291. package/lib/types/graph/document/index.d.mts +0 -12
  292. package/lib/types/graph/index.d.cts +0 -15
  293. package/lib/types/graph/index.d.mts +0 -15
  294. package/lib/types/graph/overrides/Metadata.d.cts +0 -43
  295. package/lib/types/graph/overrides/Metadata.d.mts +0 -43
  296. package/lib/types/graph/overrides/Rendering.d.cts +0 -5
  297. package/lib/types/graph/overrides/Rendering.d.mts +0 -5
  298. package/lib/types/graph/overrides/index.d.cts +0 -3
  299. package/lib/types/graph/overrides/index.d.mts +0 -3
  300. package/lib/types/graph/overrides/overrides.d.cts +0 -1
  301. package/lib/types/graph/overrides/overrides.d.mts +0 -1
  302. package/lib/types/graph/reader.d.cts +0 -28
  303. package/lib/types/graph/reader.d.mts +0 -28
  304. package/lib/types/graph/registry.d.cts +0 -40
  305. package/lib/types/graph/registry.d.mts +0 -40
  306. package/lib/types/graph/snapshot.d.cts +0 -36
  307. package/lib/types/graph/snapshot.d.mts +0 -36
  308. package/lib/types/graph/types.d.cts +0 -289
  309. package/lib/types/graph/types.d.mts +0 -289
@@ -1,313 +0,0 @@
1
- import { Metadata } from "@decaf-ts/decoration";
2
- import { Model } from "@decaf-ts/decorator-validation";
3
- import { ValidationKeys } from "@decaf-ts/decorator-validation";
4
- import { UIKeys } from "./../ui/constants.js";
5
- import { GraphKeys, } from "./constants.js";
6
- import { PortDirection } from "./constants.js";
7
- import { resolveEffectiveColor, resolveEffectiveIcon } from "./constants.js";
8
- import "./../model/overrides.js";
9
- function resolveModel(model) {
10
- const resolved = Metadata.constr(model);
11
- if (typeof resolved === "function")
12
- return resolved;
13
- const fallback = model.constructor;
14
- if (typeof fallback === "function")
15
- return fallback;
16
- return model;
17
- }
18
- function asString(value) {
19
- if (value === undefined || value === null)
20
- return undefined;
21
- return typeof value === "string" ? value : String(value);
22
- }
23
- function pickLabel(element, prop, fallback) {
24
- const elementLabel = asString(element?.props?.label ?? element?.props?.name);
25
- return (elementLabel ??
26
- asString(prop?.name) ??
27
- fallback ??
28
- "");
29
- }
30
- function resolveNestedModelConstructor(model, property, validation) {
31
- // 1. Explicit `model` option on @input({ model: SomeSchema }) — survives
32
- // bundler tree-shaking because the class is referenced in the decorator
33
- // call, not just in TypeScript's __metadata("design:type", ...).
34
- const graph = graphPortMetadataOf(model, property);
35
- if (graph?.model && typeof graph.model === "function" && Model.isModel(graph.model)) {
36
- return graph.model;
37
- }
38
- // 2. TypeScript design:type metadata (fragile — bundlers may replace with
39
- // Object when the class is tree-shaken).
40
- const directType = Metadata.type(model, property);
41
- if (typeof directType === "function" && Model.isModel(directType)) {
42
- return directType;
43
- }
44
- const designTypes = (Metadata.getPropDesignTypes?.(model, property)?.designTypes ||
45
- []);
46
- for (const candidate of designTypes) {
47
- if (typeof candidate === "function" && Model.isModel(candidate)) {
48
- return candidate;
49
- }
50
- }
51
- const customTypes = validation?.[ValidationKeys.TYPE]?.customTypes || [];
52
- for (const candidate of customTypes) {
53
- if (typeof candidate === "function" && Model.isModel(candidate)) {
54
- return candidate;
55
- }
56
- }
57
- return undefined;
58
- }
59
- function prefixGraphPortPath(port, prefix) {
60
- const path = [prefix, port.path ?? port.property].filter(Boolean).join(".");
61
- return {
62
- ...port,
63
- path,
64
- children: port.children?.map((child) => prefixGraphPortPath(child, path)),
65
- };
66
- }
67
- export function graphNodeMetadataOf(model) {
68
- const resolved = resolveModel(model);
69
- return Metadata.get(resolved, GraphKeys.NODE);
70
- }
71
- export function graphWorkflowMetadataOf(model) {
72
- const resolved = resolveModel(model);
73
- return Metadata.get(resolved, GraphKeys.GRAPH);
74
- }
75
- export function graphPortMetadataOf(model, property) {
76
- const resolved = resolveModel(model);
77
- return Metadata.get(resolved, Metadata.key(GraphKeys.PORT, String(property)));
78
- }
79
- export function graphPortDefinitionOf(model, property) {
80
- return graphPortDefinitionOfInternal(resolveModel(model), String(property));
81
- }
82
- /**
83
- * Returns the flattened ports of a Schema-typed `@input` / `@output` property
84
- * (a "Schema port group"). The Schema's own `@input` / `@output` properties
85
- * whose direction matches `direction` are spliced into the result UNPREFIXED
86
- * (no `<schemaProp>.` prefix). The carrier property itself is not a port.
87
- *
88
- * Returns `undefined` when the property is not a Schema group (not
89
- * `graph.schema`, or not Schema-typed), so the caller falls back to the legacy
90
- * single-port / composite expansion path.
91
- */
92
- function schemaGroupPorts(resolved, propertyKey, direction, visited = new Set()) {
93
- const graph = graphPortMetadataOf(resolved, propertyKey);
94
- if (!graph?.schema)
95
- return undefined;
96
- const validation = Metadata.validationFor(resolved, propertyKey);
97
- const nestedModel = resolveNestedModelConstructor(resolved, propertyKey, validation);
98
- if (!nestedModel)
99
- return undefined;
100
- if (visited.has(nestedModel))
101
- return []; // cycle guard — stop recursing
102
- const nextVisited = new Set(visited);
103
- nextVisited.add(resolved);
104
- nextVisited.add(nestedModel);
105
- const childPorts = graphPortsOfInternal(nestedModel, nextVisited);
106
- return childPorts.filter((child) => child.direction === direction);
107
- }
108
- function graphPortDefinitionOfInternal(resolved, propertyKey, visited = new Set()) {
109
- const graph = graphPortMetadataOf(resolved, propertyKey);
110
- if (!graph)
111
- return undefined;
112
- // Schema port group (@input / @output on a Schema-typed property): the
113
- // carrier is not a port — its Schema's matching-direction ports are spliced
114
- // into the parent by graphPortsOfInternal. The singular reader returns
115
- // undefined for the carrier.
116
- const validation = Metadata.validationFor(resolved, propertyKey);
117
- const nestedModel = resolveNestedModelConstructor(resolved, propertyKey, validation);
118
- if (graph.schema && nestedModel)
119
- return undefined;
120
- const element = (Model.uiElementOf(resolved, propertyKey) ||
121
- undefined);
122
- const uiProp = Model.uiDecorationOf(resolved, propertyKey, UIKeys.PROP);
123
- const designType = Metadata.type(resolved, propertyKey);
124
- const typeName = asString(validation?.[ValidationKeys.TYPE]?.customTypes?.[0]?.name ??
125
- element?.props?.type ??
126
- uiProp?.type ??
127
- designType?.name);
128
- const shouldExpand = !!graph.expand || (!!nestedModel && !visited.has(nestedModel));
129
- const children = shouldExpand && nestedModel
130
- ? (() => {
131
- const nextVisited = new Set(visited);
132
- nextVisited.add(resolved);
133
- nextVisited.add(nestedModel);
134
- return graphPortsOfInternal(nestedModel, nextVisited).map((child) => prefixGraphPortPath(child, propertyKey));
135
- })()
136
- : undefined;
137
- return {
138
- property: propertyKey,
139
- path: propertyKey,
140
- direction: graph.direction,
141
- name: propertyKey,
142
- label: pickLabel(element, uiProp, propertyKey),
143
- type: typeName?.toLowerCase(),
144
- required: !!validation?.[ValidationKeys.REQUIRED],
145
- hidden: !!Model.uiIsHidden(resolved, propertyKey),
146
- designType: designType?.name,
147
- element,
148
- prop: uiProp,
149
- validation,
150
- graph,
151
- connectionRules: graph.connectionRules,
152
- composite: !!children?.length,
153
- children,
154
- model: nestedModel?.name,
155
- };
156
- }
157
- export function graphPortsOf(model) {
158
- return graphPortsOfInternal(resolveModel(model));
159
- }
160
- function graphPortsOfInternal(resolved, visited = new Set()) {
161
- const properties = Metadata.properties(resolved) || [];
162
- const result = [];
163
- for (const property of properties) {
164
- const key = String(property);
165
- const graph = graphPortMetadataOf(resolved, key);
166
- // Schema port group: splice the Schema's matching-direction ports
167
- // (unprefixed) instead of emitting the carrier.
168
- if (graph?.schema) {
169
- const groupPorts = schemaGroupPorts(resolved, key, graph.direction, visited);
170
- if (groupPorts) {
171
- result.push(...groupPorts);
172
- continue;
173
- }
174
- }
175
- const port = graphPortDefinitionOfInternal(resolved, key, visited);
176
- if (port)
177
- result.push(port);
178
- }
179
- return result;
180
- }
181
- export function graphLeafPortsOf(ports) {
182
- return ports.flatMap((port) => port.children && port.children.length ? graphLeafPortsOf(port.children) : [port]);
183
- }
184
- export function graphWorkflowInputLeafPortsOf(model) {
185
- return graphLeafPortsOf(graphWorkflowDefinitionOf(model).inputs);
186
- }
187
- export function graphWorkflowOutputLeafPortsOf(model) {
188
- return graphLeafPortsOf(graphWorkflowDefinitionOf(model).outputs);
189
- }
190
- export function graphDefinitionOf(model) {
191
- const resolved = resolveModel(model);
192
- const ui = Model.uiModelOf(resolved);
193
- const graph = graphNodeMetadataOf(resolved) || {};
194
- const tag = ui?.tag || resolved.name;
195
- const ports = graphPortsOf(resolved);
196
- const portGroups = resolvePortGroups(resolved, graph);
197
- return {
198
- name: resolved.name,
199
- tag,
200
- kind: graph.kind || tag,
201
- category: graph.category,
202
- color: graph.color,
203
- effectiveColor: resolveEffectiveColor(graph.color, graph.category),
204
- group: graph.group,
205
- height: graph.height,
206
- icon: graph.icon,
207
- effectiveIcon: resolveEffectiveIcon(graph.icon, graph.category),
208
- labels: graph.labels || [],
209
- maxChildren: graph.maxChildren,
210
- minWidth: graph.minWidth,
211
- width: graph.width,
212
- shape: graph.shape,
213
- cornerRadius: graph.cornerRadius,
214
- sizeRules: graph.sizeRules,
215
- props: ui?.props,
216
- ui,
217
- graph,
218
- ports,
219
- portGroups,
220
- };
221
- }
222
- /**
223
- * Builds the effective `portGroups` list for a node: starts from the declared
224
- * `GraphNodeMetadata.portGroups` and ensures every Schema-typed `@input` /
225
- * `@output` property not explicitly listed gets a default
226
- * `{ property, toggle: "all" }` entry. Non-Schema-typed `@input` / `@output`
227
- * properties are not groups and are ignored.
228
- */
229
- function resolvePortGroups(resolved, graph) {
230
- const declared = graph.portGroups || [];
231
- const declaredByProperty = new Map(declared.map((g) => [g.property, g]));
232
- const groups = [];
233
- const properties = Metadata.properties(resolved) || [];
234
- for (const property of properties) {
235
- const key = String(property);
236
- const portMeta = graphPortMetadataOf(resolved, key);
237
- if (!portMeta?.schema)
238
- continue;
239
- const validation = Metadata.validationFor(resolved, key);
240
- const nestedModel = resolveNestedModelConstructor(resolved, key, validation);
241
- if (!nestedModel)
242
- continue; // not Schema-typed — not a group
243
- const declaredGroup = declaredByProperty.get(key);
244
- groups.push(declaredGroup
245
- ? { ...declaredGroup, toggle: declaredGroup.toggle ?? "all" }
246
- : { property: key, toggle: "all" });
247
- }
248
- // also keep declared groups that don't correspond to a Schema property
249
- // (defensive — lets callers carry labels for future groups)
250
- for (const g of declared) {
251
- if (!groups.some((x) => x.property === g.property))
252
- groups.push(g);
253
- }
254
- return groups.length ? groups : undefined;
255
- }
256
- /**
257
- * Detects an already-resolved {@link GraphWorkflowDefinition} — the plain-object
258
- * shape returned by {@link graphWorkflowDefinitionOf}, as opposed to a decorated
259
- * workflow class or model instance.
260
- *
261
- * Resolved definitions are values, not models: `resolveModel` maps them to
262
- * `Object`, so without this guard `graphWorkflowDefinitionOf` would rebuild an
263
- * empty definition and silently drop `nodes`/`relations`. Loop bodies already
264
- * resolved by the caller (e.g. `for-angular`'s `metadata.loop.body`) rely on
265
- * this round-trip.
266
- */
267
- export function isGraphWorkflowDefinition(value) {
268
- if (!value || typeof value !== "object")
269
- return false;
270
- const candidate = value;
271
- return (typeof candidate.kind === "string" &&
272
- Array.isArray(candidate.nodes) &&
273
- Array.isArray(candidate.relations) &&
274
- Array.isArray(candidate.inputs) &&
275
- Array.isArray(candidate.outputs) &&
276
- !!candidate.workflow &&
277
- typeof candidate.workflow === "object");
278
- }
279
- export function graphWorkflowDefinitionOf(model) {
280
- if (isGraphWorkflowDefinition(model))
281
- return model;
282
- const resolved = resolveModel(model);
283
- const workflow = graphWorkflowMetadataOf(resolved) || {};
284
- const node = graphDefinitionOf(resolved);
285
- const inputs = workflow.inputs ||
286
- node.ports.filter((port) => port.direction === PortDirection.INPUT);
287
- const outputs = workflow.outputs ||
288
- node.ports.filter((port) => port.direction === PortDirection.OUTPUT);
289
- const connections = workflow.connections ||
290
- node.ports.filter((port) => port.direction === PortDirection.CONNECTION);
291
- return {
292
- ...node,
293
- kind: workflow.kind || node.kind,
294
- category: workflow.category ?? node.category,
295
- color: workflow.color ?? node.color,
296
- effectiveColor: resolveEffectiveColor(workflow.color ?? node.color, workflow.category ?? node.category),
297
- group: workflow.group ?? node.group,
298
- height: workflow.height ?? node.height,
299
- icon: workflow.icon ?? node.icon,
300
- effectiveIcon: resolveEffectiveIcon(workflow.icon ?? node.icon, workflow.category ?? node.category),
301
- labels: workflow.labels || node.labels,
302
- maxChildren: workflow.maxChildren ?? node.maxChildren,
303
- minWidth: workflow.minWidth ?? node.minWidth,
304
- width: workflow.width ?? node.width,
305
- inputs,
306
- outputs,
307
- connections,
308
- nodes: workflow.nodes || [],
309
- relations: workflow.relations || [],
310
- workflow,
311
- };
312
- }
313
- //# sourceMappingURL=reader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reader.js","sourceRoot":"","sources":["../../../src/graph/reader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,6BAAwB;AACzC,OAAO,EACL,SAAS,GACV,uBAAoB;AAUrB,OAAO,EAAE,aAAa,EAAE,uBAAoB;AAC5C,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,uBAAoB;AAC1E,iCAA4B;AAI5B,SAAS,YAAY,CAAkB,KAAwB;IAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAuB,CAAC,CAAC;IAC1D,IAAI,OAAO,QAAQ,KAAK,UAAU;QAAE,OAAO,QAA0B,CAAC;IACtE,MAAM,QAAQ,GAAI,KAAe,CAAC,WAAW,CAAC;IAC9C,IAAI,OAAO,QAAQ,KAAK,UAAU;QAAE,OAAO,QAA0B,CAAC;IACtE,OAAO,KAAuB,CAAC;AACjC,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,SAAS,CAAC;IAC5D,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,M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,IAAI,IAAI,CAAC,QAAQ;QAC5C,KAAK,EAAE,QAAQ,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK;QACnC,MAAM;QACN,OAAO;QACP,WAAW;QACX,KAAK,EAAE,QAAQ,CAAC,KAAK,IAAI,EAAE;QAC3B,SAAS,EAAE,QAAQ,CAAC,SAAS,IAAI,EAAE;QACnC,QAAQ;KACT,CAAC;AACJ,CAAC"}
@@ -1,59 +0,0 @@
1
- /**
2
- * @module ui-decorators/graph/registry
3
- * @summary Node and workflow class registries.
4
- * @description Module-level registries that track every `@node`-decorated and
5
- * `@graph`-decorated constructor. The `@node` and `@graph` decorators call
6
- * {@link registerNode} / {@link registerWorkflow} as a side-effect; consumers
7
- * discover all decorated classes via {@link graphNodes} / {@link graphWorkflows}
8
- * or the `Metadata.nodes()` / `Metadata.workflows()` accessors.
9
- *
10
- * This follows the same pattern as `Injectables` (`injectable-decorators`)
11
- * which maintains its own `InjectablesRegistry` rather than using the private
12
- * `Metadata.innerGet`/`innerSet` helpers.
13
- */
14
- /**
15
- * Internal registry of all `@node`-decorated constructors.
16
- */
17
- const NODE_REGISTRY = new Set();
18
- /**
19
- * Internal registry of all `@graph`-decorated constructors.
20
- */
21
- const WORKFLOW_REGISTRY = new Set();
22
- /**
23
- * Appends a constructor to the node registry. Called by the `@node` decorator.
24
- * Idempotent — re-decorating the same class does not duplicate the entry.
25
- * @param ctor The `@node`-decorated constructor.
26
- */
27
- export function registerNode(ctor) {
28
- NODE_REGISTRY.add(ctor);
29
- }
30
- /**
31
- * Appends a constructor to the workflow registry. Called by the `@graph`
32
- * decorator. Idempotent.
33
- * @param ctor The `@graph`-decorated constructor.
34
- */
35
- export function registerWorkflow(ctor) {
36
- WORKFLOW_REGISTRY.add(ctor);
37
- }
38
- /**
39
- * Returns all `@node`-decorated constructors.
40
- * @returns A fresh array of constructors (mutable; does not expose the internal set).
41
- */
42
- export function graphNodes() {
43
- return [...NODE_REGISTRY];
44
- }
45
- /**
46
- * Returns all `@graph`-decorated constructors.
47
- * @returns A fresh array of constructors.
48
- */
49
- export function graphWorkflows() {
50
- return [...WORKFLOW_REGISTRY];
51
- }
52
- /**
53
- * Clears both registries. Intended for tests only.
54
- */
55
- export function resetGraphRegistries() {
56
- NODE_REGISTRY.clear();
57
- WORKFLOW_REGISTRY.clear();
58
- }
59
- //# sourceMappingURL=registry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/graph/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH;;GAEG;AACH,MAAM,aAAa,GAAG,IAAI,GAAG,EAAe,CAAC;AAE7C;;GAEG;AACH,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAe,CAAC;AAEjD;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,IAAiB;IAC5C,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAiB;IAChD,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,UAAU;IACxB,OAAO,CAAC,GAAG,aAAa,CAAC,CAAC;AAC5B,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,CAAC,GAAG,iBAAiB,CAAC,CAAC;AAChC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB;IAClC,aAAa,CAAC,KAAK,EAAE,CAAC;IACtB,iBAAiB,CAAC,KAAK,EAAE,CAAC;AAC5B,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=snapshot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../src/graph/snapshot.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export { PortDirection } from "./constants.js";
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/graph/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,uBAAoB"}
@@ -1,66 +0,0 @@
1
- /**
2
- * @module ui-decorators/graph/GraphExecutionStateMapper
3
- * @summary Maps engine state to the frontend-safe visual-state contract.
4
- * @description Pure, engine-agnostic helpers that derive
5
- * `GraphVisualState` values from engine execution signals. Frontend
6
- * bundles may import this from `@decaf-ts/ui-decorators/graph` (no
7
- * engine runtime dependency); a future Mastra/NestJS driver maps its own
8
- * runtime states onto `GraphVisualState` with the same rules.
9
- */
10
- import type { GraphExecutionEvent } from "./types.d.cts";
11
- import { GraphExecutionStatus, GraphVisualState } from "./constants.d.cts";
12
- /**
13
- * Maps an engine execution `GraphExecutionStatus` to the shared visual
14
- * state. `CACHED` collapses onto `GraphVisualState.SUCCEEDED` for
15
- * rendering; `CANCELLED`/`PENDING`/`PLANNING` yield `IDLE`.
16
- *
17
- * @param status - The engine execution status, if any.
18
- * @returns The visual state for the node/edge.
19
- */
20
- export declare function mapExecutionStatus(status?: GraphExecutionStatus): GraphVisualState;
21
- /**
22
- * Options describing a single node's position within a run (DECAF-48 §4.4).
23
- */
24
- export interface GraphVisualStateDerivation {
25
- /** Whether the node has already executed (any terminal engine status). */
26
- executed: boolean;
27
- /** Whether the node is currently running. */
28
- running: boolean;
29
- /** Whether the node completed successfully (or from cache). */
30
- succeeded?: boolean;
31
- /** Whether the node failed. */
32
- failed?: boolean;
33
- /** Number of incoming edges that have completed value routing. */
34
- completedUpstreams?: number;
35
- /** Total number of incoming edges for the node. */
36
- upstreamCount?: number;
37
- /** Whether the node is reachable from the workflow inputs in the plan. */
38
- reachable?: boolean;
39
- /** Whether the whole run has failed (unexecuted nodes then fade/disable). */
40
- runFailed?: boolean;
41
- }
42
- /**
43
- * Derives the visual state for one node from its execution signals.
44
- *
45
- * Rules (DECAF-48 §4.4 / Req-5/Req-6):
46
- * - currently running → `GraphVisualState.RUNNING`
47
- * - failed → `GraphVisualState.FAILED`
48
- * - executed and succeeded (or from cache) → `GraphVisualState.SUCCEEDED`
49
- * - unexecuted and reachable with incomplete upstream deps → `GraphVisualState.BLOCKED`
50
- * - unexecuted with `runFailed` → `GraphVisualState.SKIPPED` (faded/disabled)
51
- * - otherwise → `GraphVisualState.IDLE`
52
- *
53
- * @param options - The node execution signals.
54
- * @returns The derived visual state.
55
- */
56
- export declare function deriveNodeVisualState(options: GraphVisualStateDerivation): GraphVisualState;
57
- /**
58
- * Translates a `GraphExecutionEvent` into a node visual state when the
59
- * event carries enough information. Used by contract conformance checks and
60
- * engine-agnostic consumers that derive state from the shared event stream.
61
- *
62
- * @param event - The graph execution event.
63
- * @returns The corresponding `GraphVisualState`, or `IDLE` when the
64
- * event does not indicate a specific visual transition.
65
- */
66
- export declare function visualStateOfEvent(event: GraphExecutionEvent): GraphVisualState;
@@ -1,66 +0,0 @@
1
- /**
2
- * @module ui-decorators/graph/GraphExecutionStateMapper
3
- * @summary Maps engine state to the frontend-safe visual-state contract.
4
- * @description Pure, engine-agnostic helpers that derive
5
- * `GraphVisualState` values from engine execution signals. Frontend
6
- * bundles may import this from `@decaf-ts/ui-decorators/graph` (no
7
- * engine runtime dependency); a future Mastra/NestJS driver maps its own
8
- * runtime states onto `GraphVisualState` with the same rules.
9
- */
10
- import type { GraphExecutionEvent } from "./types.d.mts";
11
- import { GraphExecutionStatus, GraphVisualState } from "./constants.d.mts";
12
- /**
13
- * Maps an engine execution `GraphExecutionStatus` to the shared visual
14
- * state. `CACHED` collapses onto `GraphVisualState.SUCCEEDED` for
15
- * rendering; `CANCELLED`/`PENDING`/`PLANNING` yield `IDLE`.
16
- *
17
- * @param status - The engine execution status, if any.
18
- * @returns The visual state for the node/edge.
19
- */
20
- export declare function mapExecutionStatus(status?: GraphExecutionStatus): GraphVisualState;
21
- /**
22
- * Options describing a single node's position within a run (DECAF-48 §4.4).
23
- */
24
- export interface GraphVisualStateDerivation {
25
- /** Whether the node has already executed (any terminal engine status). */
26
- executed: boolean;
27
- /** Whether the node is currently running. */
28
- running: boolean;
29
- /** Whether the node completed successfully (or from cache). */
30
- succeeded?: boolean;
31
- /** Whether the node failed. */
32
- failed?: boolean;
33
- /** Number of incoming edges that have completed value routing. */
34
- completedUpstreams?: number;
35
- /** Total number of incoming edges for the node. */
36
- upstreamCount?: number;
37
- /** Whether the node is reachable from the workflow inputs in the plan. */
38
- reachable?: boolean;
39
- /** Whether the whole run has failed (unexecuted nodes then fade/disable). */
40
- runFailed?: boolean;
41
- }
42
- /**
43
- * Derives the visual state for one node from its execution signals.
44
- *
45
- * Rules (DECAF-48 §4.4 / Req-5/Req-6):
46
- * - currently running → `GraphVisualState.RUNNING`
47
- * - failed → `GraphVisualState.FAILED`
48
- * - executed and succeeded (or from cache) → `GraphVisualState.SUCCEEDED`
49
- * - unexecuted and reachable with incomplete upstream deps → `GraphVisualState.BLOCKED`
50
- * - unexecuted with `runFailed` → `GraphVisualState.SKIPPED` (faded/disabled)
51
- * - otherwise → `GraphVisualState.IDLE`
52
- *
53
- * @param options - The node execution signals.
54
- * @returns The derived visual state.
55
- */
56
- export declare function deriveNodeVisualState(options: GraphVisualStateDerivation): GraphVisualState;
57
- /**
58
- * Translates a `GraphExecutionEvent` into a node visual state when the
59
- * event carries enough information. Used by contract conformance checks and
60
- * engine-agnostic consumers that derive state from the shared event stream.
61
- *
62
- * @param event - The graph execution event.
63
- * @returns The corresponding `GraphVisualState`, or `IDLE` when the
64
- * event does not indicate a specific visual transition.
65
- */
66
- export declare function visualStateOfEvent(event: GraphExecutionEvent): GraphVisualState;
@@ -1,53 +0,0 @@
1
- /**
2
- * @module ui-decorators/graph/GraphResolution
3
- * @summary Shared graph manifest-resolution contracts.
4
- * @description Frontend/backend-shared manifest-resolution types (DECAF-50
5
- * §4.11): the effective per-node manifest shape consumed by the planner,
6
- * executor, and the frontend catalogue, plus its structural type guard and
7
- * the resolution/query contexts. Node/browser compatible — no engine
8
- * runtime dependency.
9
- */
10
- import type { GraphCredentialReference, GraphCredentialRequirement, GraphDynamicPortRule, GraphJsonValue, GraphNodeCapability, GraphNodeDisplayManifest, GraphNodePolicyManifest, GraphParameterDefinition, GraphPortManifest } from "./catalog/index.d.cts";
11
- /**
12
- * The effective manifest for one node instance (DECAF-50 §4.11): the
13
- * published manifest with dynamic ports expanded against the instance's
14
- * parameters. This is the shape the planner and executor consume — the only
15
- * input the nine-stage validator's resolved workflow carries per node.
16
- */
17
- export interface GraphResolvedNodeManifest {
18
- /** Node kind. */
19
- kind: string;
20
- /** Display metadata (name, category, icon). */
21
- display: GraphNodeDisplayManifest;
22
- /** Effective input ports (static plus expanded dynamic). */
23
- inputs: GraphPortManifest[];
24
- /** Effective output ports (static plus expanded dynamic). */
25
- outputs: GraphPortManifest[];
26
- /** Effective connection ports, when any. */
27
- connections?: GraphPortManifest[];
28
- /** Declared parameters. */
29
- parameters: GraphParameterDefinition[];
30
- /** Dynamic-port rules the manifest declares, when any. */
31
- dynamicPorts?: GraphDynamicPortRule[];
32
- /** Credential requirements, when any. */
33
- credentials?: GraphCredentialRequirement[];
34
- /** Capabilities, when any. */
35
- capabilities?: GraphNodeCapability[];
36
- /** Execution policies, when declared. */
37
- policies?: GraphNodePolicyManifest;
38
- /** Free-form metadata. */
39
- metadata?: Record<string, GraphJsonValue>;
40
- }
41
- /** Structural type guard for `GraphResolvedNodeManifest`. */
42
- export declare function isGraphResolvedNodeManifest(value: unknown): value is GraphResolvedNodeManifest;
43
- /** Context handed to manifest resolution for a node instance: authorized credentials plus caller metadata. */
44
- export interface GraphNodeResolutionContext {
45
- credentials?: GraphCredentialReference[];
46
- requestContext?: unknown;
47
- metadata?: Record<string, GraphJsonValue>;
48
- }
49
- /** Filters for catalogue manifest listing: restrict results to the given display categories and/or kinds. */
50
- export interface GraphCatalogueQueryContext {
51
- categories?: string[];
52
- kinds?: string[];
53
- }
@@ -1,53 +0,0 @@
1
- /**
2
- * @module ui-decorators/graph/GraphResolution
3
- * @summary Shared graph manifest-resolution contracts.
4
- * @description Frontend/backend-shared manifest-resolution types (DECAF-50
5
- * §4.11): the effective per-node manifest shape consumed by the planner,
6
- * executor, and the frontend catalogue, plus its structural type guard and
7
- * the resolution/query contexts. Node/browser compatible — no engine
8
- * runtime dependency.
9
- */
10
- import type { GraphCredentialReference, GraphCredentialRequirement, GraphDynamicPortRule, GraphJsonValue, GraphNodeCapability, GraphNodeDisplayManifest, GraphNodePolicyManifest, GraphParameterDefinition, GraphPortManifest } from "./catalog/index.d.mts";
11
- /**
12
- * The effective manifest for one node instance (DECAF-50 §4.11): the
13
- * published manifest with dynamic ports expanded against the instance's
14
- * parameters. This is the shape the planner and executor consume — the only
15
- * input the nine-stage validator's resolved workflow carries per node.
16
- */
17
- export interface GraphResolvedNodeManifest {
18
- /** Node kind. */
19
- kind: string;
20
- /** Display metadata (name, category, icon). */
21
- display: GraphNodeDisplayManifest;
22
- /** Effective input ports (static plus expanded dynamic). */
23
- inputs: GraphPortManifest[];
24
- /** Effective output ports (static plus expanded dynamic). */
25
- outputs: GraphPortManifest[];
26
- /** Effective connection ports, when any. */
27
- connections?: GraphPortManifest[];
28
- /** Declared parameters. */
29
- parameters: GraphParameterDefinition[];
30
- /** Dynamic-port rules the manifest declares, when any. */
31
- dynamicPorts?: GraphDynamicPortRule[];
32
- /** Credential requirements, when any. */
33
- credentials?: GraphCredentialRequirement[];
34
- /** Capabilities, when any. */
35
- capabilities?: GraphNodeCapability[];
36
- /** Execution policies, when declared. */
37
- policies?: GraphNodePolicyManifest;
38
- /** Free-form metadata. */
39
- metadata?: Record<string, GraphJsonValue>;
40
- }
41
- /** Structural type guard for `GraphResolvedNodeManifest`. */
42
- export declare function isGraphResolvedNodeManifest(value: unknown): value is GraphResolvedNodeManifest;
43
- /** Context handed to manifest resolution for a node instance: authorized credentials plus caller metadata. */
44
- export interface GraphNodeResolutionContext {
45
- credentials?: GraphCredentialReference[];
46
- requestContext?: unknown;
47
- metadata?: Record<string, GraphJsonValue>;
48
- }
49
- /** Filters for catalogue manifest listing: restrict results to the given display categories and/or kinds. */
50
- export interface GraphCatalogueQueryContext {
51
- categories?: string[];
52
- kinds?: string[];
53
- }
@@ -1,9 +0,0 @@
1
- export interface GraphConnectionPolicy {
2
- allowSelf?: boolean;
3
- allowMultiple?: boolean;
4
- allowedNodeKinds?: string[];
5
- blockedNodeKinds?: string[];
6
- allowedPortCategories?: string[];
7
- maxConnections?: number;
8
- }
9
- export declare function isGraphConnectionPolicy(value: unknown): value is GraphConnectionPolicy;