@decaf-ts/ui-decorators 0.20.4 → 0.20.7

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 (469) hide show
  1. package/dist/ui-decorators.cjs +1059 -2
  2. package/dist/ui-decorators.js +1090 -2
  3. package/lib/cjs/dashboard/constants.cjs +11 -0
  4. package/lib/cjs/dashboard/decorators.cjs +61 -0
  5. package/lib/cjs/dashboard/index.cjs +23 -0
  6. package/lib/cjs/dashboard/reader.cjs +67 -0
  7. package/lib/cjs/dashboard/registry.cjs +45 -0
  8. package/lib/cjs/dashboard/types.cjs +4 -0
  9. package/lib/cjs/graph/GraphExecutionStateMapper.cjs +97 -0
  10. package/lib/cjs/graph/GraphResolution.cjs +17 -0
  11. package/lib/cjs/graph/catalog/GraphConnectionPolicy.cjs +2 -2
  12. package/lib/cjs/graph/catalog/GraphCredentialReference.cjs +2 -2
  13. package/lib/cjs/graph/catalog/GraphCredentialRequirement.cjs +2 -2
  14. package/lib/cjs/graph/catalog/GraphDynamicPortRule.cjs +2 -2
  15. package/lib/cjs/graph/catalog/GraphIconReference.cjs +2 -2
  16. package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs +2 -2
  17. package/lib/cjs/graph/catalog/GraphNodeCapability.cjs +2 -2
  18. package/lib/cjs/graph/catalog/GraphNodeDisplayManifest.cjs +2 -2
  19. package/lib/cjs/graph/catalog/GraphNodeManifest.cjs +2 -2
  20. package/lib/cjs/graph/catalog/GraphNodeManifestSerialization.cjs +2 -2
  21. package/lib/cjs/graph/catalog/GraphNodeMethodManifest.cjs +2 -2
  22. package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs +2 -2
  23. package/lib/cjs/graph/catalog/GraphParameterBase.cjs +2 -2
  24. package/lib/cjs/graph/catalog/GraphParameterDefinition.cjs +2 -2
  25. package/lib/cjs/graph/catalog/GraphParameterOption.cjs +2 -2
  26. package/lib/cjs/graph/catalog/GraphParameterValidation.cjs +2 -2
  27. package/lib/cjs/graph/catalog/GraphPortManifest.cjs +2 -2
  28. package/lib/cjs/graph/catalog/GraphResourceLocatorMode.cjs +2 -2
  29. package/lib/cjs/graph/catalog/GraphValueSchema.cjs +2 -2
  30. package/lib/cjs/graph/catalog/GraphValueSchemaDerivation.cjs +2 -2
  31. package/lib/cjs/graph/catalog/GraphVisibilityExpression.cjs +2 -2
  32. package/lib/cjs/graph/catalog/index.cjs +2 -2
  33. package/lib/cjs/graph/constants.cjs +159 -3
  34. package/lib/cjs/graph/decorators.cjs +2 -2
  35. package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs +2 -2
  36. package/lib/cjs/graph/document/GraphEdgeInstance.cjs +2 -2
  37. package/lib/cjs/graph/document/GraphEndpoint.cjs +2 -2
  38. package/lib/cjs/graph/document/GraphJsonValue.cjs +2 -2
  39. package/lib/cjs/graph/document/GraphLoopConfiguration.cjs +2 -2
  40. package/lib/cjs/graph/document/GraphNodeBinding.cjs +2 -2
  41. package/lib/cjs/graph/document/GraphNodeInstance.cjs +2 -2
  42. package/lib/cjs/graph/document/GraphWorkflowDocument.cjs +2 -2
  43. package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs +2 -2
  44. package/lib/cjs/graph/document/GraphWorkflowDocumentReader.cjs +2 -2
  45. package/lib/cjs/graph/document/GraphWorkflowDocumentSerializer.cjs +2 -2
  46. package/lib/cjs/graph/document/GraphWorkflowUiState.cjs +2 -2
  47. package/lib/cjs/graph/document/index.cjs +2 -2
  48. package/lib/cjs/graph/index.cjs +5 -2
  49. package/lib/cjs/graph/nodes/agents/agent.cjs +110 -0
  50. package/lib/cjs/graph/nodes/base.cjs +36 -0
  51. package/lib/cjs/graph/nodes/boundary/input-value.cjs +57 -0
  52. package/lib/cjs/graph/nodes/category-styles.cjs +38 -0
  53. package/lib/cjs/graph/nodes/flow-control/break.cjs +63 -0
  54. package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs +67 -0
  55. package/lib/cjs/graph/nodes/flow-control/human-approval.cjs +69 -0
  56. package/lib/cjs/graph/nodes/flow-control/if.cjs +71 -0
  57. package/lib/cjs/graph/nodes/flow-control/parallel.cjs +61 -0
  58. package/lib/cjs/graph/nodes/flow-control/switch.cjs +121 -0
  59. package/lib/cjs/graph/nodes/index.cjs +123 -0
  60. package/lib/cjs/graph/nodes/loops/foreach.cjs +86 -0
  61. package/lib/cjs/graph/nodes/loops/until.cjs +74 -0
  62. package/lib/cjs/graph/nodes/loops/while.cjs +74 -0
  63. package/lib/cjs/graph/nodes/manifests.cjs +338 -0
  64. package/lib/cjs/graph/nodes/triggers/chat.cjs +70 -0
  65. package/lib/cjs/graph/nodes/triggers/event.cjs +58 -0
  66. package/lib/cjs/graph/nodes/triggers/form.cjs +59 -0
  67. package/lib/cjs/graph/nodes/triggers/manual.cjs +60 -0
  68. package/lib/cjs/graph/nodes/triggers/schedule.cjs +60 -0
  69. package/lib/cjs/graph/nodes/triggers/webhook.cjs +62 -0
  70. package/lib/cjs/graph/nodes/utility/code.cjs +99 -0
  71. package/lib/cjs/graph/nodes/utility/delay.cjs +61 -0
  72. package/lib/cjs/graph/nodes/utility/log.cjs +62 -0
  73. package/lib/cjs/graph/nodes/utility/map.cjs +61 -0
  74. package/lib/cjs/graph/nodes/utility/merge.cjs +62 -0
  75. package/lib/cjs/graph/nodes/utility/return.cjs +61 -0
  76. package/lib/cjs/graph/nodes/utility/utility-log.cjs +66 -0
  77. package/lib/cjs/graph/overrides/Metadata.cjs +2 -2
  78. package/lib/cjs/graph/overrides/Rendering.cjs +2 -2
  79. package/lib/cjs/graph/overrides/index.cjs +2 -2
  80. package/lib/cjs/graph/overrides/overrides.cjs +2 -2
  81. package/lib/cjs/graph/reader.cjs +2 -2
  82. package/lib/cjs/graph/registry.cjs +2 -2
  83. package/lib/cjs/graph/snapshot.cjs +2 -2
  84. package/lib/cjs/graph/types.cjs +2 -2
  85. package/lib/cjs/index.cjs +6 -5
  86. package/lib/cjs/model/Renderable.cjs +2 -2
  87. package/lib/cjs/model/decorators.cjs +2 -2
  88. package/lib/cjs/model/index.cjs +2 -2
  89. package/lib/cjs/model/model.cjs +2 -2
  90. package/lib/cjs/model/overrides.cjs +2 -2
  91. package/lib/cjs/overrides/ModelBuilderExtensions.cjs +2 -2
  92. package/lib/cjs/overrides/index.cjs +2 -2
  93. package/lib/cjs/ui/DecafComponent.cjs +2 -2
  94. package/lib/cjs/ui/DecafEventHandler.cjs +2 -2
  95. package/lib/cjs/ui/DecafTranslateService.cjs +2 -2
  96. package/lib/cjs/ui/Rendering.cjs +2 -2
  97. package/lib/cjs/ui/UIValidator.cjs +2 -2
  98. package/lib/cjs/ui/constants.cjs +2 -2
  99. package/lib/cjs/ui/decorators.cjs +2 -2
  100. package/lib/cjs/ui/errors.cjs +2 -2
  101. package/lib/cjs/ui/index.cjs +2 -2
  102. package/lib/cjs/ui/interfaces/IDecafModal.cjs +2 -2
  103. package/lib/cjs/ui/interfaces/IDecafRouter.cjs +2 -2
  104. package/lib/cjs/ui/interfaces/IDecafSpinner.cjs +2 -2
  105. package/lib/cjs/ui/interfaces/IDecafToast.cjs +2 -2
  106. package/lib/cjs/ui/interfaces/index.cjs +2 -2
  107. package/lib/cjs/ui/overrides.cjs +2 -2
  108. package/lib/cjs/ui/types.cjs +2 -2
  109. package/lib/cjs/ui/utils.cjs +2 -2
  110. package/lib/cjs/ui/validator.cjs +2 -2
  111. package/lib/cjs/user-requests/UserRequestHandler.cjs +2 -2
  112. package/lib/cjs/user-requests/constants.cjs +2 -2
  113. package/lib/cjs/user-requests/decorators.cjs +2 -2
  114. package/lib/cjs/user-requests/errors.cjs +2 -2
  115. package/lib/cjs/user-requests/index.cjs +2 -2
  116. package/lib/cjs/user-requests/types.cjs +2 -2
  117. package/lib/esm/dashboard/constants.js +24 -0
  118. package/lib/esm/dashboard/decorators.js +57 -0
  119. package/lib/esm/dashboard/index.js +6 -0
  120. package/lib/esm/dashboard/reader.js +62 -0
  121. package/lib/esm/dashboard/registry.js +39 -0
  122. package/lib/esm/dashboard/types.js +9 -0
  123. package/lib/esm/graph/GraphExecutionStateMapper.js +91 -0
  124. package/lib/esm/graph/GraphResolution.js +13 -0
  125. package/lib/esm/graph/catalog/GraphConnectionPolicy.js +1 -1
  126. package/lib/esm/graph/catalog/GraphCredentialReference.js +1 -1
  127. package/lib/esm/graph/catalog/GraphCredentialRequirement.js +1 -1
  128. package/lib/esm/graph/catalog/GraphDynamicPortRule.js +1 -1
  129. package/lib/esm/graph/catalog/GraphIconReference.js +1 -1
  130. package/lib/esm/graph/catalog/GraphManifestCompiler.js +1 -1
  131. package/lib/esm/graph/catalog/GraphNodeCapability.js +1 -1
  132. package/lib/esm/graph/catalog/GraphNodeDisplayManifest.js +1 -1
  133. package/lib/esm/graph/catalog/GraphNodeManifest.js +1 -1
  134. package/lib/esm/graph/catalog/GraphNodeManifestSerialization.js +1 -1
  135. package/lib/esm/graph/catalog/GraphNodeMethodManifest.js +1 -1
  136. package/lib/esm/graph/catalog/GraphNodePolicyManifest.js +1 -1
  137. package/lib/esm/graph/catalog/GraphParameterBase.js +1 -1
  138. package/lib/esm/graph/catalog/GraphParameterDefinition.js +1 -1
  139. package/lib/esm/graph/catalog/GraphParameterOption.js +1 -1
  140. package/lib/esm/graph/catalog/GraphParameterValidation.js +1 -1
  141. package/lib/esm/graph/catalog/GraphPortManifest.js +1 -1
  142. package/lib/esm/graph/catalog/GraphResourceLocatorMode.js +1 -1
  143. package/lib/esm/graph/catalog/GraphValueSchema.js +1 -1
  144. package/lib/esm/graph/catalog/GraphValueSchemaDerivation.js +1 -1
  145. package/lib/esm/graph/catalog/GraphVisibilityExpression.js +1 -1
  146. package/lib/esm/graph/catalog/index.js +1 -1
  147. package/lib/esm/graph/constants.js +180 -1
  148. package/lib/esm/graph/decorators.js +1 -1
  149. package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js +1 -1
  150. package/lib/esm/graph/document/GraphEdgeInstance.js +1 -1
  151. package/lib/esm/graph/document/GraphEndpoint.js +1 -1
  152. package/lib/esm/graph/document/GraphJsonValue.js +1 -1
  153. package/lib/esm/graph/document/GraphLoopConfiguration.js +1 -1
  154. package/lib/esm/graph/document/GraphNodeBinding.js +1 -1
  155. package/lib/esm/graph/document/GraphNodeInstance.js +1 -1
  156. package/lib/esm/graph/document/GraphWorkflowDocument.js +1 -1
  157. package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js +1 -1
  158. package/lib/esm/graph/document/GraphWorkflowDocumentReader.js +1 -1
  159. package/lib/esm/graph/document/GraphWorkflowDocumentSerializer.js +1 -1
  160. package/lib/esm/graph/document/GraphWorkflowUiState.js +1 -1
  161. package/lib/esm/graph/document/index.js +1 -1
  162. package/lib/esm/graph/index.js +4 -1
  163. package/lib/esm/graph/nodes/agents/agent.js +101 -0
  164. package/lib/esm/graph/nodes/base.js +31 -0
  165. package/lib/esm/graph/nodes/boundary/input-value.js +48 -0
  166. package/lib/esm/graph/nodes/category-styles.js +34 -0
  167. package/lib/esm/graph/nodes/flow-control/break.js +54 -0
  168. package/lib/esm/graph/nodes/flow-control/error-boundary.js +58 -0
  169. package/lib/esm/graph/nodes/flow-control/human-approval.js +60 -0
  170. package/lib/esm/graph/nodes/flow-control/if.js +62 -0
  171. package/lib/esm/graph/nodes/flow-control/parallel.js +52 -0
  172. package/lib/esm/graph/nodes/flow-control/switch.js +112 -0
  173. package/lib/esm/graph/nodes/index.js +105 -0
  174. package/lib/esm/graph/nodes/loops/foreach.js +77 -0
  175. package/lib/esm/graph/nodes/loops/until.js +65 -0
  176. package/lib/esm/graph/nodes/loops/while.js +65 -0
  177. package/lib/esm/graph/nodes/manifests.js +334 -0
  178. package/lib/esm/graph/nodes/triggers/chat.js +61 -0
  179. package/lib/esm/graph/nodes/triggers/event.js +49 -0
  180. package/lib/esm/graph/nodes/triggers/form.js +50 -0
  181. package/lib/esm/graph/nodes/triggers/manual.js +51 -0
  182. package/lib/esm/graph/nodes/triggers/schedule.js +51 -0
  183. package/lib/esm/graph/nodes/triggers/webhook.js +53 -0
  184. package/lib/esm/graph/nodes/utility/code.js +90 -0
  185. package/lib/esm/graph/nodes/utility/delay.js +52 -0
  186. package/lib/esm/graph/nodes/utility/log.js +53 -0
  187. package/lib/esm/graph/nodes/utility/map.js +52 -0
  188. package/lib/esm/graph/nodes/utility/merge.js +53 -0
  189. package/lib/esm/graph/nodes/utility/return.js +52 -0
  190. package/lib/esm/graph/nodes/utility/utility-log.js +57 -0
  191. package/lib/esm/graph/overrides/Metadata.js +1 -1
  192. package/lib/esm/graph/overrides/Rendering.js +1 -1
  193. package/lib/esm/graph/overrides/index.js +1 -1
  194. package/lib/esm/graph/overrides/overrides.js +1 -1
  195. package/lib/esm/graph/reader.js +1 -1
  196. package/lib/esm/graph/registry.js +1 -1
  197. package/lib/esm/graph/snapshot.js +1 -1
  198. package/lib/esm/graph/types.js +1 -1
  199. package/lib/esm/index.js +5 -4
  200. package/lib/esm/model/Renderable.js +1 -1
  201. package/lib/esm/model/decorators.js +1 -1
  202. package/lib/esm/model/index.js +1 -1
  203. package/lib/esm/model/model.js +1 -1
  204. package/lib/esm/model/overrides.js +1 -1
  205. package/lib/esm/overrides/ModelBuilderExtensions.js +1 -1
  206. package/lib/esm/overrides/index.js +1 -1
  207. package/lib/esm/ui/DecafComponent.js +1 -1
  208. package/lib/esm/ui/DecafEventHandler.js +1 -1
  209. package/lib/esm/ui/DecafTranslateService.js +1 -1
  210. package/lib/esm/ui/Rendering.js +1 -1
  211. package/lib/esm/ui/UIValidator.js +1 -1
  212. package/lib/esm/ui/constants.js +1 -1
  213. package/lib/esm/ui/decorators.js +1 -1
  214. package/lib/esm/ui/errors.js +1 -1
  215. package/lib/esm/ui/index.js +1 -1
  216. package/lib/esm/ui/interfaces/IDecafModal.js +1 -1
  217. package/lib/esm/ui/interfaces/IDecafRouter.js +1 -1
  218. package/lib/esm/ui/interfaces/IDecafSpinner.js +1 -1
  219. package/lib/esm/ui/interfaces/IDecafToast.js +1 -1
  220. package/lib/esm/ui/interfaces/index.js +1 -1
  221. package/lib/esm/ui/overrides.js +1 -1
  222. package/lib/esm/ui/types.js +1 -1
  223. package/lib/esm/ui/utils.js +1 -1
  224. package/lib/esm/ui/validator.js +1 -1
  225. package/lib/esm/user-requests/UserRequestHandler.js +1 -1
  226. package/lib/esm/user-requests/constants.js +1 -1
  227. package/lib/esm/user-requests/decorators.js +1 -1
  228. package/lib/esm/user-requests/errors.js +1 -1
  229. package/lib/esm/user-requests/index.js +1 -1
  230. package/lib/esm/user-requests/types.js +1 -1
  231. package/lib/types/dashboard/constants.d.cts +22 -0
  232. package/lib/types/dashboard/constants.d.mts +22 -0
  233. package/lib/types/dashboard/decorators.d.cts +34 -0
  234. package/lib/types/dashboard/decorators.d.mts +34 -0
  235. package/lib/types/dashboard/index.d.cts +5 -0
  236. package/lib/types/dashboard/index.d.mts +5 -0
  237. package/lib/types/dashboard/reader.d.cts +30 -0
  238. package/lib/types/dashboard/reader.d.mts +30 -0
  239. package/lib/types/dashboard/registry.d.cts +29 -0
  240. package/lib/types/dashboard/registry.d.mts +29 -0
  241. package/lib/types/dashboard/types.d.cts +67 -0
  242. package/lib/types/dashboard/types.d.mts +67 -0
  243. package/lib/types/graph/GraphExecutionStateMapper.d.cts +66 -0
  244. package/lib/types/graph/GraphExecutionStateMapper.d.mts +66 -0
  245. package/lib/types/graph/GraphResolution.d.cts +53 -0
  246. package/lib/types/graph/GraphResolution.d.mts +53 -0
  247. package/lib/types/graph/constants.d.cts +165 -0
  248. package/lib/types/graph/constants.d.mts +165 -0
  249. package/lib/types/graph/index.d.cts +3 -0
  250. package/lib/types/graph/index.d.mts +3 -0
  251. package/lib/types/graph/nodes/agents/agent.d.cts +44 -0
  252. package/lib/types/graph/nodes/agents/agent.d.mts +44 -0
  253. package/lib/types/graph/nodes/base.d.cts +28 -0
  254. package/lib/types/graph/nodes/base.d.mts +28 -0
  255. package/lib/types/graph/nodes/boundary/input-value.d.cts +13 -0
  256. package/lib/types/graph/nodes/boundary/input-value.d.mts +13 -0
  257. package/lib/types/graph/nodes/category-styles.d.cts +8 -0
  258. package/lib/types/graph/nodes/category-styles.d.mts +8 -0
  259. package/lib/types/graph/nodes/flow-control/break.d.cts +15 -0
  260. package/lib/types/graph/nodes/flow-control/break.d.mts +15 -0
  261. package/lib/types/graph/nodes/flow-control/error-boundary.d.cts +12 -0
  262. package/lib/types/graph/nodes/flow-control/error-boundary.d.mts +12 -0
  263. package/lib/types/graph/nodes/flow-control/human-approval.d.cts +13 -0
  264. package/lib/types/graph/nodes/flow-control/human-approval.d.mts +13 -0
  265. package/lib/types/graph/nodes/flow-control/if.d.cts +16 -0
  266. package/lib/types/graph/nodes/flow-control/if.d.mts +16 -0
  267. package/lib/types/graph/nodes/flow-control/parallel.d.cts +11 -0
  268. package/lib/types/graph/nodes/flow-control/parallel.d.mts +11 -0
  269. package/lib/types/graph/nodes/flow-control/switch.d.cts +21 -0
  270. package/lib/types/graph/nodes/flow-control/switch.d.mts +21 -0
  271. package/lib/types/graph/nodes/index.d.cts +79 -0
  272. package/lib/types/graph/nodes/index.d.mts +79 -0
  273. package/lib/types/graph/nodes/loops/foreach.d.cts +19 -0
  274. package/lib/types/graph/nodes/loops/foreach.d.mts +19 -0
  275. package/lib/types/graph/nodes/loops/until.d.cts +16 -0
  276. package/lib/types/graph/nodes/loops/until.d.mts +16 -0
  277. package/lib/types/graph/nodes/loops/while.d.cts +16 -0
  278. package/lib/types/graph/nodes/loops/while.d.mts +16 -0
  279. package/lib/types/graph/nodes/manifests.d.cts +62 -0
  280. package/lib/types/graph/nodes/manifests.d.mts +62 -0
  281. package/lib/types/graph/nodes/triggers/chat.d.cts +13 -0
  282. package/lib/types/graph/nodes/triggers/chat.d.mts +13 -0
  283. package/lib/types/graph/nodes/triggers/event.d.cts +10 -0
  284. package/lib/types/graph/nodes/triggers/event.d.mts +10 -0
  285. package/lib/types/graph/nodes/triggers/form.d.cts +11 -0
  286. package/lib/types/graph/nodes/triggers/form.d.mts +11 -0
  287. package/lib/types/graph/nodes/triggers/manual.d.cts +12 -0
  288. package/lib/types/graph/nodes/triggers/manual.d.mts +12 -0
  289. package/lib/types/graph/nodes/triggers/schedule.d.cts +11 -0
  290. package/lib/types/graph/nodes/triggers/schedule.d.mts +11 -0
  291. package/lib/types/graph/nodes/triggers/webhook.d.cts +11 -0
  292. package/lib/types/graph/nodes/triggers/webhook.d.mts +11 -0
  293. package/lib/types/graph/nodes/utility/code.d.cts +31 -0
  294. package/lib/types/graph/nodes/utility/code.d.mts +31 -0
  295. package/lib/types/graph/nodes/utility/delay.d.cts +11 -0
  296. package/lib/types/graph/nodes/utility/delay.d.mts +11 -0
  297. package/lib/types/graph/nodes/utility/log.d.cts +13 -0
  298. package/lib/types/graph/nodes/utility/log.d.mts +13 -0
  299. package/lib/types/graph/nodes/utility/map.d.cts +11 -0
  300. package/lib/types/graph/nodes/utility/map.d.mts +11 -0
  301. package/lib/types/graph/nodes/utility/merge.d.cts +12 -0
  302. package/lib/types/graph/nodes/utility/merge.d.mts +12 -0
  303. package/lib/types/graph/nodes/utility/return.d.cts +11 -0
  304. package/lib/types/graph/nodes/utility/return.d.mts +11 -0
  305. package/lib/types/graph/nodes/utility/utility-log.d.cts +15 -0
  306. package/lib/types/graph/nodes/utility/utility-log.d.mts +15 -0
  307. package/lib/types/graph/types.d.cts +286 -0
  308. package/lib/types/graph/types.d.mts +286 -0
  309. package/lib/types/index.d.cts +4 -3
  310. package/lib/types/index.d.mts +4 -3
  311. package/package.json +1 -1
  312. package/dist/ui-decorators.cjs.map +0 -1
  313. package/dist/ui-decorators.js.map +0 -1
  314. package/lib/cjs/graph/catalog/GraphConnectionPolicy.cjs.map +0 -1
  315. package/lib/cjs/graph/catalog/GraphCredentialReference.cjs.map +0 -1
  316. package/lib/cjs/graph/catalog/GraphCredentialRequirement.cjs.map +0 -1
  317. package/lib/cjs/graph/catalog/GraphDynamicPortRule.cjs.map +0 -1
  318. package/lib/cjs/graph/catalog/GraphIconReference.cjs.map +0 -1
  319. package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs.map +0 -1
  320. package/lib/cjs/graph/catalog/GraphNodeCapability.cjs.map +0 -1
  321. package/lib/cjs/graph/catalog/GraphNodeDisplayManifest.cjs.map +0 -1
  322. package/lib/cjs/graph/catalog/GraphNodeManifest.cjs.map +0 -1
  323. package/lib/cjs/graph/catalog/GraphNodeManifestSerialization.cjs.map +0 -1
  324. package/lib/cjs/graph/catalog/GraphNodeMethodManifest.cjs.map +0 -1
  325. package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs.map +0 -1
  326. package/lib/cjs/graph/catalog/GraphParameterBase.cjs.map +0 -1
  327. package/lib/cjs/graph/catalog/GraphParameterDefinition.cjs.map +0 -1
  328. package/lib/cjs/graph/catalog/GraphParameterOption.cjs.map +0 -1
  329. package/lib/cjs/graph/catalog/GraphParameterValidation.cjs.map +0 -1
  330. package/lib/cjs/graph/catalog/GraphPortManifest.cjs.map +0 -1
  331. package/lib/cjs/graph/catalog/GraphResourceLocatorMode.cjs.map +0 -1
  332. package/lib/cjs/graph/catalog/GraphValueSchema.cjs.map +0 -1
  333. package/lib/cjs/graph/catalog/GraphValueSchemaDerivation.cjs.map +0 -1
  334. package/lib/cjs/graph/catalog/GraphVisibilityExpression.cjs.map +0 -1
  335. package/lib/cjs/graph/catalog/index.cjs.map +0 -1
  336. package/lib/cjs/graph/constants.cjs.map +0 -1
  337. package/lib/cjs/graph/decorators.cjs.map +0 -1
  338. package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs.map +0 -1
  339. package/lib/cjs/graph/document/GraphEdgeInstance.cjs.map +0 -1
  340. package/lib/cjs/graph/document/GraphEndpoint.cjs.map +0 -1
  341. package/lib/cjs/graph/document/GraphJsonValue.cjs.map +0 -1
  342. package/lib/cjs/graph/document/GraphLoopConfiguration.cjs.map +0 -1
  343. package/lib/cjs/graph/document/GraphNodeBinding.cjs.map +0 -1
  344. package/lib/cjs/graph/document/GraphNodeInstance.cjs.map +0 -1
  345. package/lib/cjs/graph/document/GraphWorkflowDocument.cjs.map +0 -1
  346. package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs.map +0 -1
  347. package/lib/cjs/graph/document/GraphWorkflowDocumentReader.cjs.map +0 -1
  348. package/lib/cjs/graph/document/GraphWorkflowDocumentSerializer.cjs.map +0 -1
  349. package/lib/cjs/graph/document/GraphWorkflowUiState.cjs.map +0 -1
  350. package/lib/cjs/graph/document/index.cjs.map +0 -1
  351. package/lib/cjs/graph/index.cjs.map +0 -1
  352. package/lib/cjs/graph/overrides/Metadata.cjs.map +0 -1
  353. package/lib/cjs/graph/overrides/Rendering.cjs.map +0 -1
  354. package/lib/cjs/graph/overrides/index.cjs.map +0 -1
  355. package/lib/cjs/graph/overrides/overrides.cjs.map +0 -1
  356. package/lib/cjs/graph/reader.cjs.map +0 -1
  357. package/lib/cjs/graph/registry.cjs.map +0 -1
  358. package/lib/cjs/graph/snapshot.cjs.map +0 -1
  359. package/lib/cjs/graph/types.cjs.map +0 -1
  360. package/lib/cjs/index.cjs.map +0 -1
  361. package/lib/cjs/model/Renderable.cjs.map +0 -1
  362. package/lib/cjs/model/decorators.cjs.map +0 -1
  363. package/lib/cjs/model/index.cjs.map +0 -1
  364. package/lib/cjs/model/model.cjs.map +0 -1
  365. package/lib/cjs/model/overrides.cjs.map +0 -1
  366. package/lib/cjs/overrides/ModelBuilderExtensions.cjs.map +0 -1
  367. package/lib/cjs/overrides/index.cjs.map +0 -1
  368. package/lib/cjs/ui/DecafComponent.cjs.map +0 -1
  369. package/lib/cjs/ui/DecafEventHandler.cjs.map +0 -1
  370. package/lib/cjs/ui/DecafTranslateService.cjs.map +0 -1
  371. package/lib/cjs/ui/Rendering.cjs.map +0 -1
  372. package/lib/cjs/ui/UIValidator.cjs.map +0 -1
  373. package/lib/cjs/ui/constants.cjs.map +0 -1
  374. package/lib/cjs/ui/decorators.cjs.map +0 -1
  375. package/lib/cjs/ui/errors.cjs.map +0 -1
  376. package/lib/cjs/ui/index.cjs.map +0 -1
  377. package/lib/cjs/ui/interfaces/IDecafModal.cjs.map +0 -1
  378. package/lib/cjs/ui/interfaces/IDecafRouter.cjs.map +0 -1
  379. package/lib/cjs/ui/interfaces/IDecafSpinner.cjs.map +0 -1
  380. package/lib/cjs/ui/interfaces/IDecafToast.cjs.map +0 -1
  381. package/lib/cjs/ui/interfaces/index.cjs.map +0 -1
  382. package/lib/cjs/ui/overrides.cjs.map +0 -1
  383. package/lib/cjs/ui/types.cjs.map +0 -1
  384. package/lib/cjs/ui/utils.cjs.map +0 -1
  385. package/lib/cjs/ui/validator.cjs.map +0 -1
  386. package/lib/cjs/user-requests/UserRequestHandler.cjs.map +0 -1
  387. package/lib/cjs/user-requests/constants.cjs.map +0 -1
  388. package/lib/cjs/user-requests/decorators.cjs.map +0 -1
  389. package/lib/cjs/user-requests/errors.cjs.map +0 -1
  390. package/lib/cjs/user-requests/index.cjs.map +0 -1
  391. package/lib/cjs/user-requests/types.cjs.map +0 -1
  392. package/lib/esm/graph/catalog/GraphConnectionPolicy.js.map +0 -1
  393. package/lib/esm/graph/catalog/GraphCredentialReference.js.map +0 -1
  394. package/lib/esm/graph/catalog/GraphCredentialRequirement.js.map +0 -1
  395. package/lib/esm/graph/catalog/GraphDynamicPortRule.js.map +0 -1
  396. package/lib/esm/graph/catalog/GraphIconReference.js.map +0 -1
  397. package/lib/esm/graph/catalog/GraphManifestCompiler.js.map +0 -1
  398. package/lib/esm/graph/catalog/GraphNodeCapability.js.map +0 -1
  399. package/lib/esm/graph/catalog/GraphNodeDisplayManifest.js.map +0 -1
  400. package/lib/esm/graph/catalog/GraphNodeManifest.js.map +0 -1
  401. package/lib/esm/graph/catalog/GraphNodeManifestSerialization.js.map +0 -1
  402. package/lib/esm/graph/catalog/GraphNodeMethodManifest.js.map +0 -1
  403. package/lib/esm/graph/catalog/GraphNodePolicyManifest.js.map +0 -1
  404. package/lib/esm/graph/catalog/GraphParameterBase.js.map +0 -1
  405. package/lib/esm/graph/catalog/GraphParameterDefinition.js.map +0 -1
  406. package/lib/esm/graph/catalog/GraphParameterOption.js.map +0 -1
  407. package/lib/esm/graph/catalog/GraphParameterValidation.js.map +0 -1
  408. package/lib/esm/graph/catalog/GraphPortManifest.js.map +0 -1
  409. package/lib/esm/graph/catalog/GraphResourceLocatorMode.js.map +0 -1
  410. package/lib/esm/graph/catalog/GraphValueSchema.js.map +0 -1
  411. package/lib/esm/graph/catalog/GraphValueSchemaDerivation.js.map +0 -1
  412. package/lib/esm/graph/catalog/GraphVisibilityExpression.js.map +0 -1
  413. package/lib/esm/graph/catalog/index.js.map +0 -1
  414. package/lib/esm/graph/constants.js.map +0 -1
  415. package/lib/esm/graph/decorators.js.map +0 -1
  416. package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js.map +0 -1
  417. package/lib/esm/graph/document/GraphEdgeInstance.js.map +0 -1
  418. package/lib/esm/graph/document/GraphEndpoint.js.map +0 -1
  419. package/lib/esm/graph/document/GraphJsonValue.js.map +0 -1
  420. package/lib/esm/graph/document/GraphLoopConfiguration.js.map +0 -1
  421. package/lib/esm/graph/document/GraphNodeBinding.js.map +0 -1
  422. package/lib/esm/graph/document/GraphNodeInstance.js.map +0 -1
  423. package/lib/esm/graph/document/GraphWorkflowDocument.js.map +0 -1
  424. package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js.map +0 -1
  425. package/lib/esm/graph/document/GraphWorkflowDocumentReader.js.map +0 -1
  426. package/lib/esm/graph/document/GraphWorkflowDocumentSerializer.js.map +0 -1
  427. package/lib/esm/graph/document/GraphWorkflowUiState.js.map +0 -1
  428. package/lib/esm/graph/document/index.js.map +0 -1
  429. package/lib/esm/graph/index.js.map +0 -1
  430. package/lib/esm/graph/overrides/Metadata.js.map +0 -1
  431. package/lib/esm/graph/overrides/Rendering.js.map +0 -1
  432. package/lib/esm/graph/overrides/index.js.map +0 -1
  433. package/lib/esm/graph/overrides/overrides.js.map +0 -1
  434. package/lib/esm/graph/reader.js.map +0 -1
  435. package/lib/esm/graph/registry.js.map +0 -1
  436. package/lib/esm/graph/snapshot.js.map +0 -1
  437. package/lib/esm/graph/types.js.map +0 -1
  438. package/lib/esm/index.js.map +0 -1
  439. package/lib/esm/model/Renderable.js.map +0 -1
  440. package/lib/esm/model/decorators.js.map +0 -1
  441. package/lib/esm/model/index.js.map +0 -1
  442. package/lib/esm/model/model.js.map +0 -1
  443. package/lib/esm/model/overrides.js.map +0 -1
  444. package/lib/esm/overrides/ModelBuilderExtensions.js.map +0 -1
  445. package/lib/esm/overrides/index.js.map +0 -1
  446. package/lib/esm/ui/DecafComponent.js.map +0 -1
  447. package/lib/esm/ui/DecafEventHandler.js.map +0 -1
  448. package/lib/esm/ui/DecafTranslateService.js.map +0 -1
  449. package/lib/esm/ui/Rendering.js.map +0 -1
  450. package/lib/esm/ui/UIValidator.js.map +0 -1
  451. package/lib/esm/ui/constants.js.map +0 -1
  452. package/lib/esm/ui/decorators.js.map +0 -1
  453. package/lib/esm/ui/errors.js.map +0 -1
  454. package/lib/esm/ui/index.js.map +0 -1
  455. package/lib/esm/ui/interfaces/IDecafModal.js.map +0 -1
  456. package/lib/esm/ui/interfaces/IDecafRouter.js.map +0 -1
  457. package/lib/esm/ui/interfaces/IDecafSpinner.js.map +0 -1
  458. package/lib/esm/ui/interfaces/IDecafToast.js.map +0 -1
  459. package/lib/esm/ui/interfaces/index.js.map +0 -1
  460. package/lib/esm/ui/overrides.js.map +0 -1
  461. package/lib/esm/ui/types.js.map +0 -1
  462. package/lib/esm/ui/utils.js.map +0 -1
  463. package/lib/esm/ui/validator.js.map +0 -1
  464. package/lib/esm/user-requests/UserRequestHandler.js.map +0 -1
  465. package/lib/esm/user-requests/constants.js.map +0 -1
  466. package/lib/esm/user-requests/decorators.js.map +0 -1
  467. package/lib/esm/user-requests/errors.js.map +0 -1
  468. package/lib/esm/user-requests/index.js.map +0 -1
  469. package/lib/esm/user-requests/types.js.map +0 -1
@@ -0,0 +1,67 @@
1
+ /**
2
+ * @module ui-decorators/dashboard/types
3
+ * @summary Type definitions for dashboard-selectable components.
4
+ * @description Flavor-neutral types describing the palette metadata attached
5
+ * by `@dashcomponent()` and the resolved definition consumed by a palette
6
+ * service. No Angular or framework imports.
7
+ */
8
+ import type { Constructor } from "@decaf-ts/decoration";
9
+ /**
10
+ * @description Grid footprint of a dashboard component.
11
+ * @summary A component's default footprint on the dashboard grid, expressed
12
+ * in grid units (columns and rows).
13
+ * @typedef DashComponentSize
14
+ * @memberOf module:ui-decorators/dashboard/types
15
+ * @property {number} cols - Number of grid columns occupied.
16
+ * @property {number} rows - Number of grid rows occupied.
17
+ */
18
+ export type DashComponentSize = {
19
+ cols: number;
20
+ rows: number;
21
+ };
22
+ /**
23
+ * @description Palette metadata attached to a dashboard-selectable component.
24
+ * @summary The metadata object stored on a `@dashcomponent`-decorated class.
25
+ * Carries the translation label key, the default grid size, and an optional
26
+ * reference to the configuration model used by the component's own CRUD flow.
27
+ * @typedef DashComponentMetadata
28
+ * @memberOf module:ui-decorators/dashboard/types
29
+ * @property {string} [tag] - Component tag resolved for rendering.
30
+ * @property {string} [label] - Translation label key for the palette.
31
+ * @property {DashComponentSize} [defaultSize] - Default grid footprint.
32
+ * @property {Constructor} [model] - Configuration model constructor reference.
33
+ * @property {Record<string, any>} [props] - Ad-hoc props for the component.
34
+ * @property {Record<string, unknown>} [metadata] - Free-form extension points.
35
+ */
36
+ export type DashComponentMetadata = {
37
+ tag?: string;
38
+ label?: string;
39
+ defaultSize?: DashComponentSize;
40
+ model?: Constructor;
41
+ props?: Record<string, any>;
42
+ metadata?: Record<string, unknown>;
43
+ };
44
+ /**
45
+ * @description Resolved definition of a dashboard-selectable component.
46
+ * @summary The normalized shape a palette or rendering service consumes from
47
+ * the registry. Defaults are applied so consumers never resolve undefined
48
+ * footprint values.
49
+ * @typedef DashComponentDefinition
50
+ * @memberOf module:ui-decorators/dashboard/types
51
+ * @property {string} name - Class name of the decorated component.
52
+ * @property {string} tag - Component tag resolved for rendering.
53
+ * @property {string} [label] - Translation label key for the palette.
54
+ * @property {DashComponentSize} defaultSize - Default grid footprint.
55
+ * @property {Constructor} [model] - Configuration model constructor reference.
56
+ * @property {Record<string, any>} [props] - Ad-hoc props for the component.
57
+ * @property {Record<string, unknown>} [metadata] - Free-form extension points.
58
+ */
59
+ export type DashComponentDefinition = {
60
+ name: string;
61
+ tag: string;
62
+ label?: string;
63
+ defaultSize: DashComponentSize;
64
+ model?: Constructor;
65
+ props?: Record<string, any>;
66
+ metadata?: Record<string, unknown>;
67
+ };
@@ -0,0 +1,66 @@
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;
@@ -0,0 +1,66 @@
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;
@@ -0,0 +1,53 @@
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
+ }
@@ -0,0 +1,53 @@
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
+ }
@@ -282,3 +282,168 @@ export declare function resolveEffectiveColor(explicitColor?: string, category?:
282
282
  * category icon, which overrides the default.
283
283
  */
284
284
  export declare function resolveEffectiveIcon(explicitIcon?: string, category?: string): string;
285
+ import type { GraphRunStatus } from "./types.d.cts";
286
+ /**
287
+ * Disabled-node execution semantics (DECAF-50 §4.9).
288
+ *
289
+ * - `skip` — the node does not execute and produces no outputs.
290
+ * - `passThroughFirstInput` — the first incoming edge value is forwarded on
291
+ * the node's first declared output port.
292
+ * - `emitDefaults` — every declared output port is emitted with its default
293
+ * (absent a declared default, `undefined`).
294
+ */
295
+ export declare const GRAPH_DISABLED_NODE_BEHAVIORS: readonly ["skip", "passThroughFirstInput", "emitDefaults"];
296
+ /** How a disabled node behaves during execution (DECAF-50 §4.8): skip it, pass through its first input, or emit default outputs. */
297
+ export type GraphDisabledNodeBehavior = (typeof GRAPH_DISABLED_NODE_BEHAVIORS)[number];
298
+ /** The disabled-node behavior applied when a node declares none. */
299
+ export declare const GRAPH_DEFAULT_DISABLED_NODE_BEHAVIOR: GraphDisabledNodeBehavior;
300
+ /** Type guard for {@link GraphDisabledNodeBehavior}. */
301
+ export declare function isGraphDisabledNodeBehavior(value: unknown): value is GraphDisabledNodeBehavior;
302
+ /**
303
+ * Execution status for a workflow or individual node.
304
+ */
305
+ export declare enum GraphExecutionStatus {
306
+ PENDING = "pending",
307
+ PLANNING = "planning",
308
+ RUNNING = "running",
309
+ SUCCEEDED = "succeeded",
310
+ FAILED = "failed",
311
+ SKIPPED = "skipped",
312
+ CANCELLED = "cancelled",
313
+ CACHED = "cached"
314
+ }
315
+ /**
316
+ * Visual execution state for a node or edge on the workflow canvas.
317
+ *
318
+ * Frontend-safe (DECAF-48 §4.4): a superset of {@link GraphExecutionStatus}
319
+ * normalised for rendering. `BLOCKED` is derived from the plan and execution
320
+ * events (waiting on upstream dependencies), not emitted as an engine status.
321
+ * `SKIPPED` is the post-failure "unexecuted/disabled" visual state.
322
+ */
323
+ export declare enum GraphVisualState {
324
+ IDLE = "idle",
325
+ RUNNING = "running",
326
+ BLOCKED = "blocked",
327
+ SUCCEEDED = "succeeded",
328
+ FAILED = "failed",
329
+ SKIPPED = "skipped"
330
+ }
331
+ /**
332
+ * Namespace root for graph run SSE topics (DECAF-48 §4.2). A subscription
333
+ * filters on these granular topics before `observer.next(...)`.
334
+ */
335
+ export declare const GRAPH_RUN_TOPIC = "graph.run";
336
+ /**
337
+ * SSE sub-topic streaming per-node log lines during a run.
338
+ */
339
+ export declare const GRAPH_RUN_LOG_TOPIC = "graph.run.log";
340
+ /**
341
+ * SSE sub-topic streaming node/edge execution-state updates during a run.
342
+ */
343
+ export declare const GRAPH_RUN_STATE_TOPIC = "graph.run.state";
344
+ /**
345
+ * Logger custom-attribute keys attached to every run log line via
346
+ * DECAF-9 `logger.for({...})` (DECAF-48 §4.3). Rendered as discrete columns
347
+ * (not buried in the message string).
348
+ */
349
+ export declare enum GraphLogAttribute {
350
+ NODE_ID = "nodeId",
351
+ WORKFLOW_ID = "workflowId",
352
+ RUN_ID = "runId",
353
+ USER = "user"
354
+ }
355
+ /**
356
+ * Namespace topic helper for a graph execution event.
357
+ *
358
+ * Log-carrier events resolve to `graph.run.log`; node/edge execution-state
359
+ * events resolve to `graph.run.state`; everything else stays under the shared
360
+ * `graph.run` topic and is only delivered to subscribers that match it.
361
+ *
362
+ * @param eventType - The graph execution event type to scope to a topic.
363
+ * @returns The SSE topic constant for the given event type.
364
+ */
365
+ export declare function graphRunTopicOf(eventType: GraphExecutionEventType): string;
366
+ /**
367
+ * Event types emitted through the graph execution observer pipeline.
368
+ *
369
+ * DECAF-48 extends this set with the visual-state and run-log event types the
370
+ * engine emits on the existing Observable: {@link GraphExecutionEventType.NODE_STATE_CHANGED},
371
+ * {@link GraphExecutionEventType.EDGE_STATE_CHANGED} and
372
+ * {@link GraphExecutionEventType.GRAPH_RUN_LOG}.
373
+ */
374
+ export declare enum GraphExecutionEventType {
375
+ WORKFLOW_STARTED = "workflow.started",
376
+ WORKFLOW_PLANNED = "workflow.planned",
377
+ WORKFLOW_COMPLETED = "workflow.completed",
378
+ WORKFLOW_FAILED = "workflow.failed",
379
+ WORKFLOW_CANCELLED = "workflow.cancelled",
380
+ NODE_QUEUED = "node.queued",
381
+ NODE_STARTED = "node.started",
382
+ NODE_OUTPUT = "node.output",
383
+ NODE_COMPLETED = "node.completed",
384
+ NODE_FAILED = "node.failed",
385
+ NODE_SKIPPED = "node.skipped",
386
+ NODE_CACHE_HIT = "node.cacheHit",
387
+ NODE_PINNED = "node.pinned",
388
+ NODE_UNPINNED = "node.unpinned",
389
+ /** Node execution-state transition carrying a `GraphNodeStateChangedPayload` (DECAF-48 §4.4). */
390
+ NODE_STATE_CHANGED = "node.stateChanged",
391
+ EDGE_VALUE_ROUTED = "edge.valueRouted",
392
+ /** Edge execution-state transition carrying a `GraphEdgeStateChangedPayload` (DECAF-48 §4.4). */
393
+ EDGE_STATE_CHANGED = "edge.stateChanged",
394
+ /** Structured run log line carrying a `GraphRunLogEntry` (DECAF-48 §4.3). */
395
+ GRAPH_RUN_LOG = "graph.run.log",
396
+ LOOP_STARTED = "loop.started",
397
+ LOOP_ITERATION_STARTED = "loop.iteration.started",
398
+ LOOP_ITERATION_COMPLETED = "loop.iteration.completed",
399
+ LOOP_CONDITION_EVALUATED = "loop.condition.evaluated",
400
+ LOOP_COMPLETED = "loop.completed",
401
+ LOOP_LIMIT_REACHED = "loop.limitReached",
402
+ VALIDATION_STARTED = "validation.started",
403
+ VALIDATION_FAILED = "validation.failed",
404
+ VALIDATION_COMPLETED = "validation.completed",
405
+ STORE_READ = "store.read",
406
+ STORE_WRITE = "store.write",
407
+ STORE_DELETE = "store.delete"
408
+ }
409
+ /**
410
+ * Hard limits for the graph run subsystem (DECAF-50 §4.14/§4.16).
411
+ *
412
+ * Enforced by the run executor and the HTTP run controller; every omitted
413
+ * field falls back to {@link DEFAULT_GRAPH_RUN_LIMITS}.
414
+ */
415
+ export interface GraphRunLimits {
416
+ /** Maximum serialised JSON size accepted for a run create request. */
417
+ maxRequestBytes?: number;
418
+ /**
419
+ * Maximum number of runs in flight per caller: the run's owner user, or
420
+ * the caller-key bucket supplied by the HTTP layer for anonymous callers
421
+ * (per-IP where the host exposes it, a shared `"anonymous"` bucket
422
+ * otherwise).
423
+ */
424
+ maxConcurrentRuns?: number;
425
+ /** Maximum events retained per run by the in-memory event store. */
426
+ maxEventsPerRun?: number;
427
+ /** Maximum serialised size of a single event envelope `payload`. */
428
+ maxEventPayloadBytes?: number;
429
+ /** Hard wall-clock budget for a run's engine execution. */
430
+ executionTimeoutMs?: number;
431
+ /**
432
+ * How long a terminal run's replayable event state is kept after the run
433
+ * finishes before being released (SAA-595 resource governance).
434
+ */
435
+ eventReplayWindowMs?: number;
436
+ }
437
+ /** Default run limits: request size, per-caller concurrency, event retention/payload size, execution timeout, and post-terminal event replay window. */
438
+ export declare const DEFAULT_GRAPH_RUN_LIMITS: Required<GraphRunLimits>;
439
+ /**
440
+ * Terminal graph event types closing a run's SSE stream
441
+ * (DECAF-50 §4.15). The run SSE endpoint never emits anything after these.
442
+ */
443
+ export declare const GRAPH_RUN_TERMINAL_EVENT_TYPES: readonly GraphExecutionEventType[];
444
+ /** Whether the event type is a run-stream terminal type (see {@link GRAPH_RUN_TERMINAL_EVENT_TYPES}). */
445
+ export declare function isGraphRunTerminalEventType(type: GraphExecutionEventType): boolean;
446
+ /** Whether the run status is terminal (`succeeded`, `failed`, or `cancelled`). */
447
+ export declare function isGraphRunTerminalStatus(status: GraphRunStatus): boolean;
448
+ /** Type guard for {@link GraphRunStatus}. */
449
+ export declare function isGraphRunStatus(value: unknown): value is GraphRunStatus;
@@ -282,3 +282,168 @@ export declare function resolveEffectiveColor(explicitColor?: string, category?:
282
282
  * category icon, which overrides the default.
283
283
  */
284
284
  export declare function resolveEffectiveIcon(explicitIcon?: string, category?: string): string;
285
+ import type { GraphRunStatus } from "./types.d.mts";
286
+ /**
287
+ * Disabled-node execution semantics (DECAF-50 §4.9).
288
+ *
289
+ * - `skip` — the node does not execute and produces no outputs.
290
+ * - `passThroughFirstInput` — the first incoming edge value is forwarded on
291
+ * the node's first declared output port.
292
+ * - `emitDefaults` — every declared output port is emitted with its default
293
+ * (absent a declared default, `undefined`).
294
+ */
295
+ export declare const GRAPH_DISABLED_NODE_BEHAVIORS: readonly ["skip", "passThroughFirstInput", "emitDefaults"];
296
+ /** How a disabled node behaves during execution (DECAF-50 §4.8): skip it, pass through its first input, or emit default outputs. */
297
+ export type GraphDisabledNodeBehavior = (typeof GRAPH_DISABLED_NODE_BEHAVIORS)[number];
298
+ /** The disabled-node behavior applied when a node declares none. */
299
+ export declare const GRAPH_DEFAULT_DISABLED_NODE_BEHAVIOR: GraphDisabledNodeBehavior;
300
+ /** Type guard for {@link GraphDisabledNodeBehavior}. */
301
+ export declare function isGraphDisabledNodeBehavior(value: unknown): value is GraphDisabledNodeBehavior;
302
+ /**
303
+ * Execution status for a workflow or individual node.
304
+ */
305
+ export declare enum GraphExecutionStatus {
306
+ PENDING = "pending",
307
+ PLANNING = "planning",
308
+ RUNNING = "running",
309
+ SUCCEEDED = "succeeded",
310
+ FAILED = "failed",
311
+ SKIPPED = "skipped",
312
+ CANCELLED = "cancelled",
313
+ CACHED = "cached"
314
+ }
315
+ /**
316
+ * Visual execution state for a node or edge on the workflow canvas.
317
+ *
318
+ * Frontend-safe (DECAF-48 §4.4): a superset of {@link GraphExecutionStatus}
319
+ * normalised for rendering. `BLOCKED` is derived from the plan and execution
320
+ * events (waiting on upstream dependencies), not emitted as an engine status.
321
+ * `SKIPPED` is the post-failure "unexecuted/disabled" visual state.
322
+ */
323
+ export declare enum GraphVisualState {
324
+ IDLE = "idle",
325
+ RUNNING = "running",
326
+ BLOCKED = "blocked",
327
+ SUCCEEDED = "succeeded",
328
+ FAILED = "failed",
329
+ SKIPPED = "skipped"
330
+ }
331
+ /**
332
+ * Namespace root for graph run SSE topics (DECAF-48 §4.2). A subscription
333
+ * filters on these granular topics before `observer.next(...)`.
334
+ */
335
+ export declare const GRAPH_RUN_TOPIC = "graph.run";
336
+ /**
337
+ * SSE sub-topic streaming per-node log lines during a run.
338
+ */
339
+ export declare const GRAPH_RUN_LOG_TOPIC = "graph.run.log";
340
+ /**
341
+ * SSE sub-topic streaming node/edge execution-state updates during a run.
342
+ */
343
+ export declare const GRAPH_RUN_STATE_TOPIC = "graph.run.state";
344
+ /**
345
+ * Logger custom-attribute keys attached to every run log line via
346
+ * DECAF-9 `logger.for({...})` (DECAF-48 §4.3). Rendered as discrete columns
347
+ * (not buried in the message string).
348
+ */
349
+ export declare enum GraphLogAttribute {
350
+ NODE_ID = "nodeId",
351
+ WORKFLOW_ID = "workflowId",
352
+ RUN_ID = "runId",
353
+ USER = "user"
354
+ }
355
+ /**
356
+ * Namespace topic helper for a graph execution event.
357
+ *
358
+ * Log-carrier events resolve to `graph.run.log`; node/edge execution-state
359
+ * events resolve to `graph.run.state`; everything else stays under the shared
360
+ * `graph.run` topic and is only delivered to subscribers that match it.
361
+ *
362
+ * @param eventType - The graph execution event type to scope to a topic.
363
+ * @returns The SSE topic constant for the given event type.
364
+ */
365
+ export declare function graphRunTopicOf(eventType: GraphExecutionEventType): string;
366
+ /**
367
+ * Event types emitted through the graph execution observer pipeline.
368
+ *
369
+ * DECAF-48 extends this set with the visual-state and run-log event types the
370
+ * engine emits on the existing Observable: {@link GraphExecutionEventType.NODE_STATE_CHANGED},
371
+ * {@link GraphExecutionEventType.EDGE_STATE_CHANGED} and
372
+ * {@link GraphExecutionEventType.GRAPH_RUN_LOG}.
373
+ */
374
+ export declare enum GraphExecutionEventType {
375
+ WORKFLOW_STARTED = "workflow.started",
376
+ WORKFLOW_PLANNED = "workflow.planned",
377
+ WORKFLOW_COMPLETED = "workflow.completed",
378
+ WORKFLOW_FAILED = "workflow.failed",
379
+ WORKFLOW_CANCELLED = "workflow.cancelled",
380
+ NODE_QUEUED = "node.queued",
381
+ NODE_STARTED = "node.started",
382
+ NODE_OUTPUT = "node.output",
383
+ NODE_COMPLETED = "node.completed",
384
+ NODE_FAILED = "node.failed",
385
+ NODE_SKIPPED = "node.skipped",
386
+ NODE_CACHE_HIT = "node.cacheHit",
387
+ NODE_PINNED = "node.pinned",
388
+ NODE_UNPINNED = "node.unpinned",
389
+ /** Node execution-state transition carrying a `GraphNodeStateChangedPayload` (DECAF-48 §4.4). */
390
+ NODE_STATE_CHANGED = "node.stateChanged",
391
+ EDGE_VALUE_ROUTED = "edge.valueRouted",
392
+ /** Edge execution-state transition carrying a `GraphEdgeStateChangedPayload` (DECAF-48 §4.4). */
393
+ EDGE_STATE_CHANGED = "edge.stateChanged",
394
+ /** Structured run log line carrying a `GraphRunLogEntry` (DECAF-48 §4.3). */
395
+ GRAPH_RUN_LOG = "graph.run.log",
396
+ LOOP_STARTED = "loop.started",
397
+ LOOP_ITERATION_STARTED = "loop.iteration.started",
398
+ LOOP_ITERATION_COMPLETED = "loop.iteration.completed",
399
+ LOOP_CONDITION_EVALUATED = "loop.condition.evaluated",
400
+ LOOP_COMPLETED = "loop.completed",
401
+ LOOP_LIMIT_REACHED = "loop.limitReached",
402
+ VALIDATION_STARTED = "validation.started",
403
+ VALIDATION_FAILED = "validation.failed",
404
+ VALIDATION_COMPLETED = "validation.completed",
405
+ STORE_READ = "store.read",
406
+ STORE_WRITE = "store.write",
407
+ STORE_DELETE = "store.delete"
408
+ }
409
+ /**
410
+ * Hard limits for the graph run subsystem (DECAF-50 §4.14/§4.16).
411
+ *
412
+ * Enforced by the run executor and the HTTP run controller; every omitted
413
+ * field falls back to {@link DEFAULT_GRAPH_RUN_LIMITS}.
414
+ */
415
+ export interface GraphRunLimits {
416
+ /** Maximum serialised JSON size accepted for a run create request. */
417
+ maxRequestBytes?: number;
418
+ /**
419
+ * Maximum number of runs in flight per caller: the run's owner user, or
420
+ * the caller-key bucket supplied by the HTTP layer for anonymous callers
421
+ * (per-IP where the host exposes it, a shared `"anonymous"` bucket
422
+ * otherwise).
423
+ */
424
+ maxConcurrentRuns?: number;
425
+ /** Maximum events retained per run by the in-memory event store. */
426
+ maxEventsPerRun?: number;
427
+ /** Maximum serialised size of a single event envelope `payload`. */
428
+ maxEventPayloadBytes?: number;
429
+ /** Hard wall-clock budget for a run's engine execution. */
430
+ executionTimeoutMs?: number;
431
+ /**
432
+ * How long a terminal run's replayable event state is kept after the run
433
+ * finishes before being released (SAA-595 resource governance).
434
+ */
435
+ eventReplayWindowMs?: number;
436
+ }
437
+ /** Default run limits: request size, per-caller concurrency, event retention/payload size, execution timeout, and post-terminal event replay window. */
438
+ export declare const DEFAULT_GRAPH_RUN_LIMITS: Required<GraphRunLimits>;
439
+ /**
440
+ * Terminal graph event types closing a run's SSE stream
441
+ * (DECAF-50 §4.15). The run SSE endpoint never emits anything after these.
442
+ */
443
+ export declare const GRAPH_RUN_TERMINAL_EVENT_TYPES: readonly GraphExecutionEventType[];
444
+ /** Whether the event type is a run-stream terminal type (see {@link GRAPH_RUN_TERMINAL_EVENT_TYPES}). */
445
+ export declare function isGraphRunTerminalEventType(type: GraphExecutionEventType): boolean;
446
+ /** Whether the run status is terminal (`succeeded`, `failed`, or `cancelled`). */
447
+ export declare function isGraphRunTerminalStatus(status: GraphRunStatus): boolean;
448
+ /** Type guard for {@link GraphRunStatus}. */
449
+ export declare function isGraphRunStatus(value: unknown): value is GraphRunStatus;
@@ -9,4 +9,7 @@ export * from "./reader.d.cts";
9
9
  export * from "./document/index.d.cts";
10
10
  export * from "./catalog/index.d.cts";
11
11
  export * from "./types.d.cts";
12
+ export * from "./GraphExecutionStateMapper.d.cts";
13
+ export * from "./GraphResolution.d.cts";
14
+ export * from "./nodes/index.d.cts";
12
15
  export * from "./overrides/index.d.cts";
@@ -9,4 +9,7 @@ export * from "./reader.d.mts";
9
9
  export * from "./document/index.d.mts";
10
10
  export * from "./catalog/index.d.mts";
11
11
  export * from "./types.d.mts";
12
+ export * from "./GraphExecutionStateMapper.d.mts";
13
+ export * from "./GraphResolution.d.mts";
14
+ export * from "./nodes/index.d.mts";
12
15
  export * from "./overrides/index.d.mts";