@decaf-ts/ui-decorators 0.20.9 → 0.21.0

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 (215) hide show
  1. package/dist/ui-decorators.cjs +1 -1
  2. package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs +19 -0
  3. package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs.map +1 -1
  4. package/lib/cjs/graph/catalog/GraphPortManifestElement.cjs +15 -0
  5. package/lib/cjs/graph/catalog/GraphPortManifestElement.cjs.map +1 -0
  6. package/lib/cjs/graph/catalog/index.cjs +1 -0
  7. package/lib/cjs/graph/catalog/index.cjs.map +1 -1
  8. package/lib/cjs/graph/{nodes/category-styles.cjs → category-styles.cjs} +2 -2
  9. package/lib/cjs/graph/category-styles.cjs.map +1 -0
  10. package/lib/cjs/graph/index.cjs +1 -1
  11. package/lib/cjs/graph/index.cjs.map +1 -1
  12. package/lib/cjs/graph/reader.cjs +26 -0
  13. package/lib/cjs/graph/reader.cjs.map +1 -1
  14. package/lib/cjs/graph/snapshot.cjs +0 -691
  15. package/lib/cjs/graph/snapshot.cjs.map +1 -1
  16. package/lib/cjs/index.cjs +3 -3
  17. package/lib/esm/graph/catalog/GraphManifestCompiler.js +20 -1
  18. package/lib/esm/graph/catalog/GraphManifestCompiler.js.map +1 -1
  19. package/lib/esm/graph/catalog/GraphPortManifest.js.map +1 -1
  20. package/lib/esm/graph/catalog/GraphPortManifestElement.js +11 -0
  21. package/lib/esm/graph/catalog/GraphPortManifestElement.js.map +1 -0
  22. package/lib/esm/graph/catalog/index.js +1 -0
  23. package/lib/esm/graph/catalog/index.js.map +1 -1
  24. package/lib/esm/graph/{nodes/category-styles.js → category-styles.js} +2 -2
  25. package/lib/esm/graph/category-styles.js.map +1 -0
  26. package/lib/esm/graph/index.js +1 -1
  27. package/lib/esm/graph/index.js.map +1 -1
  28. package/lib/esm/graph/reader.js +25 -0
  29. package/lib/esm/graph/reader.js.map +1 -1
  30. package/lib/esm/graph/snapshot.js +1 -679
  31. package/lib/esm/graph/snapshot.js.map +1 -1
  32. package/lib/esm/index.js +3 -3
  33. package/lib/types/graph/catalog/GraphPortManifest.d.cts +2 -0
  34. package/lib/types/graph/catalog/GraphPortManifest.d.mts +2 -0
  35. package/lib/types/graph/catalog/GraphPortManifestElement.d.cts +7 -0
  36. package/lib/types/graph/catalog/GraphPortManifestElement.d.mts +7 -0
  37. package/lib/types/graph/catalog/index.d.cts +1 -0
  38. package/lib/types/graph/catalog/index.d.mts +1 -0
  39. package/lib/types/graph/index.d.cts +1 -1
  40. package/lib/types/graph/index.d.mts +1 -1
  41. package/lib/types/graph/reader.d.cts +12 -0
  42. package/lib/types/graph/reader.d.mts +12 -0
  43. package/lib/types/graph/snapshot.d.cts +4 -144
  44. package/lib/types/graph/snapshot.d.mts +4 -144
  45. package/lib/types/graph/types.d.cts +1 -1
  46. package/lib/types/graph/types.d.mts +1 -1
  47. package/lib/types/index.d.cts +3 -3
  48. package/lib/types/index.d.mts +3 -3
  49. package/package.json +1 -1
  50. package/lib/cjs/graph/nodes/agents/agent.cjs +0 -110
  51. package/lib/cjs/graph/nodes/agents/agent.cjs.map +0 -1
  52. package/lib/cjs/graph/nodes/base.cjs +0 -36
  53. package/lib/cjs/graph/nodes/base.cjs.map +0 -1
  54. package/lib/cjs/graph/nodes/boundary/input-value.cjs +0 -57
  55. package/lib/cjs/graph/nodes/boundary/input-value.cjs.map +0 -1
  56. package/lib/cjs/graph/nodes/category-styles.cjs.map +0 -1
  57. package/lib/cjs/graph/nodes/flow-control/break.cjs +0 -63
  58. package/lib/cjs/graph/nodes/flow-control/break.cjs.map +0 -1
  59. package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs +0 -67
  60. package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs.map +0 -1
  61. package/lib/cjs/graph/nodes/flow-control/human-approval.cjs +0 -69
  62. package/lib/cjs/graph/nodes/flow-control/human-approval.cjs.map +0 -1
  63. package/lib/cjs/graph/nodes/flow-control/if.cjs +0 -71
  64. package/lib/cjs/graph/nodes/flow-control/if.cjs.map +0 -1
  65. package/lib/cjs/graph/nodes/flow-control/parallel.cjs +0 -61
  66. package/lib/cjs/graph/nodes/flow-control/parallel.cjs.map +0 -1
  67. package/lib/cjs/graph/nodes/flow-control/switch.cjs +0 -126
  68. package/lib/cjs/graph/nodes/flow-control/switch.cjs.map +0 -1
  69. package/lib/cjs/graph/nodes/index.cjs +0 -123
  70. package/lib/cjs/graph/nodes/index.cjs.map +0 -1
  71. package/lib/cjs/graph/nodes/loops/foreach.cjs +0 -86
  72. package/lib/cjs/graph/nodes/loops/foreach.cjs.map +0 -1
  73. package/lib/cjs/graph/nodes/loops/until.cjs +0 -74
  74. package/lib/cjs/graph/nodes/loops/until.cjs.map +0 -1
  75. package/lib/cjs/graph/nodes/loops/while.cjs +0 -74
  76. package/lib/cjs/graph/nodes/loops/while.cjs.map +0 -1
  77. package/lib/cjs/graph/nodes/manifests.cjs +0 -342
  78. package/lib/cjs/graph/nodes/manifests.cjs.map +0 -1
  79. package/lib/cjs/graph/nodes/triggers/chat.cjs +0 -70
  80. package/lib/cjs/graph/nodes/triggers/chat.cjs.map +0 -1
  81. package/lib/cjs/graph/nodes/triggers/event.cjs +0 -58
  82. package/lib/cjs/graph/nodes/triggers/event.cjs.map +0 -1
  83. package/lib/cjs/graph/nodes/triggers/form.cjs +0 -59
  84. package/lib/cjs/graph/nodes/triggers/form.cjs.map +0 -1
  85. package/lib/cjs/graph/nodes/triggers/manual.cjs +0 -60
  86. package/lib/cjs/graph/nodes/triggers/manual.cjs.map +0 -1
  87. package/lib/cjs/graph/nodes/triggers/schedule.cjs +0 -60
  88. package/lib/cjs/graph/nodes/triggers/schedule.cjs.map +0 -1
  89. package/lib/cjs/graph/nodes/triggers/webhook.cjs +0 -62
  90. package/lib/cjs/graph/nodes/triggers/webhook.cjs.map +0 -1
  91. package/lib/cjs/graph/nodes/utility/code.cjs +0 -99
  92. package/lib/cjs/graph/nodes/utility/code.cjs.map +0 -1
  93. package/lib/cjs/graph/nodes/utility/delay.cjs +0 -61
  94. package/lib/cjs/graph/nodes/utility/delay.cjs.map +0 -1
  95. package/lib/cjs/graph/nodes/utility/log.cjs +0 -62
  96. package/lib/cjs/graph/nodes/utility/log.cjs.map +0 -1
  97. package/lib/cjs/graph/nodes/utility/map.cjs +0 -61
  98. package/lib/cjs/graph/nodes/utility/map.cjs.map +0 -1
  99. package/lib/cjs/graph/nodes/utility/merge.cjs +0 -62
  100. package/lib/cjs/graph/nodes/utility/merge.cjs.map +0 -1
  101. package/lib/cjs/graph/nodes/utility/return.cjs +0 -61
  102. package/lib/cjs/graph/nodes/utility/return.cjs.map +0 -1
  103. package/lib/cjs/graph/nodes/utility/utility-log.cjs +0 -66
  104. package/lib/cjs/graph/nodes/utility/utility-log.cjs.map +0 -1
  105. package/lib/esm/graph/nodes/agents/agent.js +0 -101
  106. package/lib/esm/graph/nodes/agents/agent.js.map +0 -1
  107. package/lib/esm/graph/nodes/base.js +0 -31
  108. package/lib/esm/graph/nodes/base.js.map +0 -1
  109. package/lib/esm/graph/nodes/boundary/input-value.js +0 -48
  110. package/lib/esm/graph/nodes/boundary/input-value.js.map +0 -1
  111. package/lib/esm/graph/nodes/category-styles.js.map +0 -1
  112. package/lib/esm/graph/nodes/flow-control/break.js +0 -54
  113. package/lib/esm/graph/nodes/flow-control/break.js.map +0 -1
  114. package/lib/esm/graph/nodes/flow-control/error-boundary.js +0 -58
  115. package/lib/esm/graph/nodes/flow-control/error-boundary.js.map +0 -1
  116. package/lib/esm/graph/nodes/flow-control/human-approval.js +0 -60
  117. package/lib/esm/graph/nodes/flow-control/human-approval.js.map +0 -1
  118. package/lib/esm/graph/nodes/flow-control/if.js +0 -62
  119. package/lib/esm/graph/nodes/flow-control/if.js.map +0 -1
  120. package/lib/esm/graph/nodes/flow-control/parallel.js +0 -52
  121. package/lib/esm/graph/nodes/flow-control/parallel.js.map +0 -1
  122. package/lib/esm/graph/nodes/flow-control/switch.js +0 -117
  123. package/lib/esm/graph/nodes/flow-control/switch.js.map +0 -1
  124. package/lib/esm/graph/nodes/index.js +0 -105
  125. package/lib/esm/graph/nodes/index.js.map +0 -1
  126. package/lib/esm/graph/nodes/loops/foreach.js +0 -77
  127. package/lib/esm/graph/nodes/loops/foreach.js.map +0 -1
  128. package/lib/esm/graph/nodes/loops/until.js +0 -65
  129. package/lib/esm/graph/nodes/loops/until.js.map +0 -1
  130. package/lib/esm/graph/nodes/loops/while.js +0 -65
  131. package/lib/esm/graph/nodes/loops/while.js.map +0 -1
  132. package/lib/esm/graph/nodes/manifests.js +0 -338
  133. package/lib/esm/graph/nodes/manifests.js.map +0 -1
  134. package/lib/esm/graph/nodes/triggers/chat.js +0 -61
  135. package/lib/esm/graph/nodes/triggers/chat.js.map +0 -1
  136. package/lib/esm/graph/nodes/triggers/event.js +0 -49
  137. package/lib/esm/graph/nodes/triggers/event.js.map +0 -1
  138. package/lib/esm/graph/nodes/triggers/form.js +0 -50
  139. package/lib/esm/graph/nodes/triggers/form.js.map +0 -1
  140. package/lib/esm/graph/nodes/triggers/manual.js +0 -51
  141. package/lib/esm/graph/nodes/triggers/manual.js.map +0 -1
  142. package/lib/esm/graph/nodes/triggers/schedule.js +0 -51
  143. package/lib/esm/graph/nodes/triggers/schedule.js.map +0 -1
  144. package/lib/esm/graph/nodes/triggers/webhook.js +0 -53
  145. package/lib/esm/graph/nodes/triggers/webhook.js.map +0 -1
  146. package/lib/esm/graph/nodes/utility/code.js +0 -90
  147. package/lib/esm/graph/nodes/utility/code.js.map +0 -1
  148. package/lib/esm/graph/nodes/utility/delay.js +0 -52
  149. package/lib/esm/graph/nodes/utility/delay.js.map +0 -1
  150. package/lib/esm/graph/nodes/utility/log.js +0 -53
  151. package/lib/esm/graph/nodes/utility/log.js.map +0 -1
  152. package/lib/esm/graph/nodes/utility/map.js +0 -52
  153. package/lib/esm/graph/nodes/utility/map.js.map +0 -1
  154. package/lib/esm/graph/nodes/utility/merge.js +0 -53
  155. package/lib/esm/graph/nodes/utility/merge.js.map +0 -1
  156. package/lib/esm/graph/nodes/utility/return.js +0 -52
  157. package/lib/esm/graph/nodes/utility/return.js.map +0 -1
  158. package/lib/esm/graph/nodes/utility/utility-log.js +0 -57
  159. package/lib/esm/graph/nodes/utility/utility-log.js.map +0 -1
  160. package/lib/types/graph/nodes/agents/agent.d.cts +0 -44
  161. package/lib/types/graph/nodes/agents/agent.d.mts +0 -44
  162. package/lib/types/graph/nodes/base.d.cts +0 -28
  163. package/lib/types/graph/nodes/base.d.mts +0 -28
  164. package/lib/types/graph/nodes/boundary/input-value.d.cts +0 -13
  165. package/lib/types/graph/nodes/boundary/input-value.d.mts +0 -13
  166. package/lib/types/graph/nodes/flow-control/break.d.cts +0 -15
  167. package/lib/types/graph/nodes/flow-control/break.d.mts +0 -15
  168. package/lib/types/graph/nodes/flow-control/error-boundary.d.cts +0 -12
  169. package/lib/types/graph/nodes/flow-control/error-boundary.d.mts +0 -12
  170. package/lib/types/graph/nodes/flow-control/human-approval.d.cts +0 -13
  171. package/lib/types/graph/nodes/flow-control/human-approval.d.mts +0 -13
  172. package/lib/types/graph/nodes/flow-control/if.d.cts +0 -16
  173. package/lib/types/graph/nodes/flow-control/if.d.mts +0 -16
  174. package/lib/types/graph/nodes/flow-control/parallel.d.cts +0 -11
  175. package/lib/types/graph/nodes/flow-control/parallel.d.mts +0 -11
  176. package/lib/types/graph/nodes/flow-control/switch.d.cts +0 -21
  177. package/lib/types/graph/nodes/flow-control/switch.d.mts +0 -21
  178. package/lib/types/graph/nodes/index.d.cts +0 -79
  179. package/lib/types/graph/nodes/index.d.mts +0 -79
  180. package/lib/types/graph/nodes/loops/foreach.d.cts +0 -19
  181. package/lib/types/graph/nodes/loops/foreach.d.mts +0 -19
  182. package/lib/types/graph/nodes/loops/until.d.cts +0 -16
  183. package/lib/types/graph/nodes/loops/until.d.mts +0 -16
  184. package/lib/types/graph/nodes/loops/while.d.cts +0 -16
  185. package/lib/types/graph/nodes/loops/while.d.mts +0 -16
  186. package/lib/types/graph/nodes/manifests.d.cts +0 -62
  187. package/lib/types/graph/nodes/manifests.d.mts +0 -62
  188. package/lib/types/graph/nodes/triggers/chat.d.cts +0 -13
  189. package/lib/types/graph/nodes/triggers/chat.d.mts +0 -13
  190. package/lib/types/graph/nodes/triggers/event.d.cts +0 -10
  191. package/lib/types/graph/nodes/triggers/event.d.mts +0 -10
  192. package/lib/types/graph/nodes/triggers/form.d.cts +0 -11
  193. package/lib/types/graph/nodes/triggers/form.d.mts +0 -11
  194. package/lib/types/graph/nodes/triggers/manual.d.cts +0 -12
  195. package/lib/types/graph/nodes/triggers/manual.d.mts +0 -12
  196. package/lib/types/graph/nodes/triggers/schedule.d.cts +0 -11
  197. package/lib/types/graph/nodes/triggers/schedule.d.mts +0 -11
  198. package/lib/types/graph/nodes/triggers/webhook.d.cts +0 -11
  199. package/lib/types/graph/nodes/triggers/webhook.d.mts +0 -11
  200. package/lib/types/graph/nodes/utility/code.d.cts +0 -31
  201. package/lib/types/graph/nodes/utility/code.d.mts +0 -31
  202. package/lib/types/graph/nodes/utility/delay.d.cts +0 -11
  203. package/lib/types/graph/nodes/utility/delay.d.mts +0 -11
  204. package/lib/types/graph/nodes/utility/log.d.cts +0 -13
  205. package/lib/types/graph/nodes/utility/log.d.mts +0 -13
  206. package/lib/types/graph/nodes/utility/map.d.cts +0 -11
  207. package/lib/types/graph/nodes/utility/map.d.mts +0 -11
  208. package/lib/types/graph/nodes/utility/merge.d.cts +0 -12
  209. package/lib/types/graph/nodes/utility/merge.d.mts +0 -12
  210. package/lib/types/graph/nodes/utility/return.d.cts +0 -11
  211. package/lib/types/graph/nodes/utility/return.d.mts +0 -11
  212. package/lib/types/graph/nodes/utility/utility-log.d.cts +0 -15
  213. package/lib/types/graph/nodes/utility/utility-log.d.mts +0 -15
  214. /package/lib/types/graph/{nodes/category-styles.d.cts → category-styles.d.cts} +0 -0
  215. /package/lib/types/graph/{nodes/category-styles.d.mts → category-styles.d.mts} +0 -0
@@ -1,66 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UtilityLogNode = void 0;
4
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
5
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
7
- r = Reflect.decorate(decorators, target, key, desc);
8
- else
9
- for (var i = decorators.length - 1; i >= 0; i--)
10
- if (d = decorators[i])
11
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
12
- return c > 3 && r && Object.defineProperty(target, key, r), r;
13
- };
14
- var __metadata = (this && this.__metadata) || function (k, v) {
15
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
16
- return Reflect.metadata(k, v);
17
- };
18
- /**
19
- * @module ui-decorators/graph/nodes/utility/utility-log
20
- * @summary Utility Log node declaration (DECAF-48 §4.3).
21
- * @description Utility Log — logs the input value through the run's
22
- * `ctx.logger` at a configurable level and forwards it unchanged on the
23
- * `logged` output port.
24
- */
25
- const decorator_validation_1 = require("@decaf-ts/decorator-validation");
26
- const decorators_js_1 = require("./../../../ui/decorators.cjs");
27
- const decorators_js_2 = require("./../../decorators.cjs");
28
- // Ensure category styles are registered (idempotent).
29
- require("./../category-styles.cjs");
30
- let UtilityLogNode = class UtilityLogNode extends decorator_validation_1.Model {
31
- };
32
- exports.UtilityLogNode = UtilityLogNode;
33
- __decorate([
34
- (0, decorator_validation_1.required)(),
35
- (0, decorators_js_1.uielement)("textarea", { label: "Input value", placeholder: "Value to log" }),
36
- (0, decorators_js_2.input)({ handle: "value" }),
37
- __metadata("design:type", Object)
38
- ], UtilityLogNode.prototype, "value", void 0);
39
- __decorate([
40
- (0, decorators_js_1.uielement)("input", { label: "Log level", placeholder: "info, warn, error, ..." }),
41
- __metadata("design:type", String)
42
- ], UtilityLogNode.prototype, "level", void 0);
43
- __decorate([
44
- (0, decorator_validation_1.required)(),
45
- (0, decorators_js_1.uielement)("input", { label: "Logged value", placeholder: "Forwarded value" }),
46
- (0, decorators_js_2.output)({ handle: "logged" }),
47
- __metadata("design:type", Object)
48
- ], UtilityLogNode.prototype, "logged", void 0);
49
- exports.UtilityLogNode = UtilityLogNode = __decorate([
50
- (0, decorators_js_2.node)("core.utility.log", {
51
- kind: "core.utility.log",
52
- category: "Utility",
53
- color: "#0d9488",
54
- icon: "ti-terminal",
55
- width: 96,
56
- height: 96,
57
- labels: ["utility", "log", "debug", "observability"],
58
- metadata: {
59
- title: "Utility Log",
60
- description: "Logs the input value to the run's ctx.logger at a configurable level and forwards it unchanged.",
61
- },
62
- }),
63
- (0, decorator_validation_1.model)()
64
- ], UtilityLogNode);
65
- //# sourceMappingURL=utility-log.js.map
66
- //# sourceMappingURL=utility-log.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"graph/nodes/utility/utility-log.cjs","sourceRoot":"","sources":["graph/nodes/utility/utility-log.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU;QAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;;QAC1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C;CACpC,EAAE,cAAc,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;AAC9C,UAAU,CAAC;IACP,IAAA,yBAAS,EAAC,OAAO,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACjF,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,cAAc,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;AAC9C,UAAU,CAAC;IACP,IAAA,+BAAQ,GAAE;IACV,IAAA,yBAAS,EAAC,OAAO,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;IAC7E,IAAA,sBAAM,EAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IAC5B,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,cAAc,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;AAC/C,yBAAA,cAAc,GAAG,UAAU,CAAC;IACxB,IAAA,oBAAI,EAAC,kBAAkB,EAAE;QACrB,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,CAAC;QACpD,QAAQ,EAAE;YACN,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,iGAAiG;SACjH;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,cAAc,CAAC,CAAC;AAEnB,uCAAuC"}
@@ -1,101 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- /**
11
- * @module ui-decorators/graph/nodes/agents/agent
12
- * @summary Production Agent node declaration.
13
- * @description The Agent node is the primary AI agent entrypoint. It is a
14
- * rectangular node with `@connection()` ports for its structural
15
- * dependencies: `model` (the LLM), `memory` (the memory store), and
16
- * `workspace` (the workspace/context). Connections are rendered on the
17
- * bottom side of the node (DECAF-32 §21.3). Each connection category has a
18
- * distinct color defined in the category style registry.
19
- *
20
- * The single `prompt` input accepts placeholder expressions (§22.4) such as
21
- * `{{ $input.brief }}` or `{{ $node["Research"].output.summary }}` that are
22
- * resolved at execution time by the placeholder compiler.
23
- */
24
- import { Model, model, required } from "@decaf-ts/decorator-validation";
25
- import { uielement } from "./../../../ui/decorators.js";
26
- import { connection, input, node, output } from "./../../decorators.js";
27
- // Ensure category styles are registered (idempotent).
28
- import "./../category-styles.js";
29
- /**
30
- * Agent node — an AI agent that orchestrates a model, memory, and workspace.
31
- *
32
- * The agent has:
33
- * - `@input` port on the **left**: `prompt` (the task prompt; supports
34
- * placeholder expressions like `{{ $input.something }}` per §22.4).
35
- * - `@output` ports on the **right**: `response` (the agent's output), `actions`
36
- * (any actions the agent decided to take).
37
- * - `@connection` ports on the **bottom**: `model` (LLM), `memory` (memory
38
- * store), `workspace` (workspace/context). Each connection has a distinct
39
- * category color.
40
- *
41
- * The node is rectangular (not rounded) to visually distinguish it from
42
- * regular processing nodes. The `color` and `icon` are omitted from `@node()`
43
- * so they are resolved from the `"Agent"` category style.
44
- */
45
- let AgentNode = class AgentNode extends Model {
46
- };
47
- __decorate([
48
- required(),
49
- uielement("textarea", {
50
- label: "Prompt",
51
- placeholder: "Enter task prompt. Supports placeholders like {{ $input.brief }} or {{ $node[\"Research\"].output.summary }}",
52
- }),
53
- input({ handle: "prompt" }),
54
- __metadata("design:type", String)
55
- ], AgentNode.prototype, "prompt", void 0);
56
- __decorate([
57
- required(),
58
- uielement("textarea", { label: "Response", placeholder: "Agent response" }),
59
- output({ handle: "response" }),
60
- __metadata("design:type", String)
61
- ], AgentNode.prototype, "response", void 0);
62
- __decorate([
63
- required(),
64
- uielement("textarea", { label: "Actions", placeholder: "Actions taken by the agent" }),
65
- output({ handle: "actions" }),
66
- __metadata("design:type", Array)
67
- ], AgentNode.prototype, "actions", void 0);
68
- __decorate([
69
- connection({ category: "model", handle: "model" }),
70
- __metadata("design:type", Object)
71
- ], AgentNode.prototype, "model", void 0);
72
- __decorate([
73
- connection({ category: "memory", handle: "memory" }),
74
- __metadata("design:type", Object)
75
- ], AgentNode.prototype, "memory", void 0);
76
- __decorate([
77
- connection({ category: "workspace", handle: "workspace" }),
78
- __metadata("design:type", Object)
79
- ], AgentNode.prototype, "workspace", void 0);
80
- AgentNode = __decorate([
81
- node("core.agent", {
82
- kind: "core.agent",
83
- category: "Agent",
84
- // color and icon omitted — resolved from the "Agent" category style
85
- width: 120,
86
- height: 140,
87
- labels: ["agent", "ai", "orchestrator"],
88
- metadata: {
89
- title: "Agent",
90
- description: "AI agent that orchestrates a model, memory, and workspace to complete a task.",
91
- shape: "rectangle",
92
- },
93
- }),
94
- model()
95
- ], AgentNode);
96
- export { AgentNode };
97
- /**
98
- * All built-in agent node constructors.
99
- */
100
- export const GRAPH_AGENT_NODES = [AgentNode];
101
- //# sourceMappingURL=agent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agent.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/agents/agent.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,KAAK,EAAE,KAAK,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G;QACV,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,cAAc,CAAC;QACvC,QAAQ,EAAE;YACR,KAAK,EAAE,OAAO;YACd,WAAW,EACT,+EAA+E;YACjF,KAAK,EAAE,WAAW;SACnB;KACF,CAAC;IACD,KAAK,EAAE;GACK,SAAS,CAiCrB;;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,SAAS,CAAU,CAAC"}
@@ -1,31 +0,0 @@
1
- /**
2
- * @module ui-decorators/graph/nodes/base
3
- * @summary Base class for shared graph node declarations.
4
- * @description `GraphNode` extends `Model` with an overridable
5
- * `applyMetadata` static method. Concrete node kinds that support dynamic
6
- * metadata changes (e.g. `SwitchFlowNode` adding case output ports) override
7
- * this method to compute their own ports, size, and data patches — the node
8
- * is exclusively responsible for itself in every way.
9
- */
10
- import { Model } from "@decaf-ts/decorator-validation";
11
- export class GraphNode extends Model {
12
- /**
13
- * Applies a metadata patch to this node class, returning the resulting
14
- * ports, size, and data patches.
15
- *
16
- * The default implementation returns `null` (no changes). Concrete node
17
- * kinds that support dynamic metadata override this to compute their own
18
- * ports and size from the metadata — the caller (renderer) simply relays
19
- * the result to the diagram model.
20
- *
21
- * @param _meta - The metadata patch (node-kind-specific, e.g.
22
- * `SwitchNodeMetadata`).
23
- * @returns The computed change, or `null` when the node kind does not
24
- * support dynamic metadata.
25
- */
26
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
27
- static applyMetadata(_meta) {
28
- return null;
29
- }
30
- }
31
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../src/graph/nodes/base.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAGvD,MAAM,OAAO,SAAU,SAAQ,KAAK;IAClC;;;;;;;;;;;;;OAaG;IACH,6DAA6D;IAC7D,MAAM,CAAC,aAAa,CAAC,KAAc;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -1,48 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- /**
11
- * @module ui-decorators/graph/nodes/boundary/input-value
12
- * @summary Workflow input value boundary node declaration.
13
- * @description Shared canvas node representing a workflow input value
14
- * (decorator id `graph-input-value-node`), moved from the for-angular
15
- * boundary nodes so both sides share the declaration. Reusable value node
16
- * whose single `value` output may feed multiple targets.
17
- */
18
- import { Model, model } from "@decaf-ts/decorator-validation";
19
- import { output, node } from "./../../decorators.js";
20
- // Ensure category styles are registered (idempotent).
21
- import "./../category-styles.js";
22
- let GraphInputValueNode = class GraphInputValueNode extends Model {
23
- };
24
- __decorate([
25
- output({
26
- handle: 'value',
27
- connectionRules: {
28
- allowMultiple: true,
29
- },
30
- }),
31
- __metadata("design:type", Object)
32
- ], GraphInputValueNode.prototype, "value", void 0);
33
- GraphInputValueNode = __decorate([
34
- node('graph-input-value-node', {
35
- kind: 'value',
36
- category: 'Boundary',
37
- color: '#0f766e',
38
- icon: 'ti-circle-plus',
39
- labels: ['workflow', 'input', 'value'],
40
- metadata: {
41
- title: 'Workflow input value',
42
- description: 'Reusable canvas value node representing a workflow input.',
43
- },
44
- }),
45
- model()
46
- ], GraphInputValueNode);
47
- export { GraphInputValueNode };
48
- //# sourceMappingURL=input-value.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input-value.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/boundary/input-value.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,8BAAyB;AAEhD,sDAAsD;AACtD,iCAA4B;AAcrB,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,KAAK;CAQ7C,CAAA;AADC;IANC,MAAM,CAAC;QACN,MAAM,EAAE,OAAO;QACf,eAAe,EAAE;YACf,aAAa,EAAE,IAAI;SACpB;KACF,CAAC;;kDACc;AAPL,mBAAmB;IAZ/B,IAAI,CAAC,wBAAwB,EAAE;QAC9B,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,UAAU;QACpB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC;QACtC,QAAQ,EAAE;YACR,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EAAE,2DAA2D;SACzE;KACF,CAAC;IACD,KAAK,EAAE;GACK,mBAAmB,CAQ/B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"category-styles.js","sourceRoot":"","sources":["../../../../src/graph/nodes/category-styles.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,0BAA0B,EAAE,0BAAqB;AAE1D;;;;;;GAMG;AACH,MAAM,UAAU,6BAA6B;IAC3C,kBAAkB;IAClB,0BAA0B,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;IAC7E,0BAA0B,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC,CAAC;IAC5F,0BAA0B,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;IAC7E,0BAA0B,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;IAC5E,0BAA0B,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC;IACjF,0BAA0B,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC;IACnF,0BAA0B,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IAClF,0BAA0B,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;IAE5E,kDAAkD;IAClD,0BAA0B,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC1E,0BAA0B,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,CAAC;IAChF,0BAA0B,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;AACnF,CAAC;AAED,mEAAmE;AACnE,6BAA6B,EAAE,CAAC"}
@@ -1,54 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- /**
11
- * @module ui-decorators/graph/nodes/flow-control/break
12
- * @summary Break flow-control node declaration (DECAF-32 §22.2.2).
13
- * @description Break — breaks out of the enclosing loop (foreach/while/until).
14
- * When executed inside a loop body, the loop terminates early and the loop's
15
- * `completed`/`state` output carries the results collected so far. The Break
16
- * node executor throws a `GraphBreakSignal` that the enclosing loop executor
17
- * catches.
18
- */
19
- import { Model, model, required } from "@decaf-ts/decorator-validation";
20
- import { uielement } from "./../../../ui/decorators.js";
21
- import { input, node, output } from "./../../decorators.js";
22
- // Ensure category styles are registered (idempotent).
23
- import "./../category-styles.js";
24
- let BreakFlowNode = class BreakFlowNode extends Model {
25
- };
26
- __decorate([
27
- required(),
28
- uielement("textarea", { label: "Value", placeholder: "Value to forward (collected as the last partial result)" }),
29
- input({ handle: "value" }),
30
- __metadata("design:type", Object)
31
- ], BreakFlowNode.prototype, "value", void 0);
32
- __decorate([
33
- required(),
34
- output({ handle: "broken" }),
35
- __metadata("design:type", Object)
36
- ], BreakFlowNode.prototype, "broken", void 0);
37
- BreakFlowNode = __decorate([
38
- node("core.flow.break", {
39
- kind: "core.flow.break",
40
- category: "Flow Control",
41
- color: "#f59e0b",
42
- icon: "ti-square-arrow-right",
43
- width: 96,
44
- height: 96,
45
- labels: ["flow", "break", "loop", "control"],
46
- metadata: {
47
- title: "Break",
48
- description: "Breaks out of the enclosing loop. The loop terminates early and returns the results collected so far.",
49
- },
50
- }),
51
- model()
52
- ], BreakFlowNode);
53
- export { BreakFlowNode };
54
- //# sourceMappingURL=break.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"break.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/flow-control/break.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,oCAA+B;AACnD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,8BAAyB;AAEvD,sDAAsD;AACtD,iCAA4B;AAgBrB,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,KAAK;CASvC,CAAA;AALC;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,yDAAyD,EAAE,CAAC;IACjH,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;4CACX;AAIhB;IAFC,QAAQ,EAAE;IACV,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;;6CACZ;AARN,aAAa;IAdzB,IAAI,CAAC,iBAAiB,EAAE;QACvB,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,cAAc;QACxB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,uBAAuB;QAC7B,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC;QAC5C,QAAQ,EAAE;YACR,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,uGAAuG;SACrH;KACF,CAAC;IACD,KAAK,EAAE;GACK,aAAa,CASzB"}
@@ -1,58 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- /**
11
- * @module ui-decorators/graph/nodes/flow-control/error-boundary
12
- * @summary Error-boundary flow-control node declaration (DECAF-32 §22.2.2).
13
- * @description Error boundary — try/catch/finally workflow behaviour.
14
- */
15
- import { Model, model, required } from "@decaf-ts/decorator-validation";
16
- import { uielement } from "./../../../ui/decorators.js";
17
- import { input, node, output } from "./../../decorators.js";
18
- // Ensure category styles are registered (idempotent).
19
- import "./../category-styles.js";
20
- let ErrorBoundaryFlowNode = class ErrorBoundaryFlowNode extends Model {
21
- };
22
- __decorate([
23
- required(),
24
- uielement("textarea", { label: "Input value", placeholder: "Value to guard" }),
25
- input({ handle: "value" }),
26
- __metadata("design:type", Object)
27
- ], ErrorBoundaryFlowNode.prototype, "value", void 0);
28
- __decorate([
29
- required(),
30
- uielement("input", { label: "Result", placeholder: "Output on success" }),
31
- output({ handle: "result" }),
32
- __metadata("design:type", Object)
33
- ], ErrorBoundaryFlowNode.prototype, "result", void 0);
34
- __decorate([
35
- required(),
36
- uielement("input", { label: "Error", placeholder: "Output on failure" }),
37
- output({ handle: "error" }),
38
- __metadata("design:type", Object)
39
- ], ErrorBoundaryFlowNode.prototype, "error", void 0);
40
- ErrorBoundaryFlowNode = __decorate([
41
- node("core.flow.errorBoundary", {
42
- kind: "core.flow.errorBoundary",
43
- category: "Flow Control",
44
- color: "#f59e0b",
45
- icon: "ti-shield-check",
46
- width: 96,
47
- height: 96,
48
- labels: ["flow", "error", "try-catch"],
49
- metadata: {
50
- title: "Error boundary",
51
- description: "Wraps the input in a try/catch/finally. Emits the result on success, or the error on failure.",
52
- finally: false,
53
- },
54
- }),
55
- model()
56
- ], ErrorBoundaryFlowNode);
57
- export { ErrorBoundaryFlowNode };
58
- //# sourceMappingURL=error-boundary.js.map
@@ -1 +0,0 @@
1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gB;YACvB,WAAW,EAAE,+FAA+F;YAC5G,OAAO,EAAE,KAAK;SACf;KACF,CAAC;IACD,KAAK,EAAE;GACK,qBAAqB,CAejC"}
@@ -1,60 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- /**
11
- * @module ui-decorators/graph/nodes/flow-control/human-approval
12
- * @summary Human-approval flow-control node declaration (DECAF-32 §22.2.2).
13
- * @description Human approval — suspends execution until a human approves
14
- * or rejects.
15
- */
16
- import { Model, model, required } from "@decaf-ts/decorator-validation";
17
- import { uielement } from "./../../../ui/decorators.js";
18
- import { input, node, output } from "./../../decorators.js";
19
- // Ensure category styles are registered (idempotent).
20
- import "./../category-styles.js";
21
- let HumanApprovalFlowNode = class HumanApprovalFlowNode extends Model {
22
- };
23
- __decorate([
24
- required(),
25
- uielement("textarea", { label: "Input value", placeholder: "Value pending approval" }),
26
- input({ handle: "value" }),
27
- __metadata("design:type", Object)
28
- ], HumanApprovalFlowNode.prototype, "value", void 0);
29
- __decorate([
30
- required(),
31
- uielement("input", { label: "Approved", placeholder: "Output when approved" }),
32
- output({ handle: "approved" }),
33
- __metadata("design:type", Object)
34
- ], HumanApprovalFlowNode.prototype, "approved", void 0);
35
- __decorate([
36
- required(),
37
- uielement("input", { label: "Rejected", placeholder: "Output when rejected" }),
38
- output({ handle: "rejected" }),
39
- __metadata("design:type", Object)
40
- ], HumanApprovalFlowNode.prototype, "rejected", void 0);
41
- HumanApprovalFlowNode = __decorate([
42
- node("core.flow.humanApproval", {
43
- kind: "core.flow.humanApproval",
44
- category: "Flow Control",
45
- color: "#f59e0b",
46
- icon: "ti-user-check",
47
- width: 96,
48
- height: 96,
49
- labels: ["flow", "approval", "suspend"],
50
- metadata: {
51
- title: "Human approval",
52
- description: "Suspends execution until a human approves or rejects. Emits the approved value or a rejection.",
53
- approvers: [],
54
- timeoutMs: 86400000,
55
- },
56
- }),
57
- model()
58
- ], HumanApprovalFlowNode);
59
- export { HumanApprovalFlowNode };
60
- //# sourceMappingURL=human-approval.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"human-approval.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/flow-control/human-approval.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;GAKG;AACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,oCAA+B;AACnD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,8BAAyB;AAEvD,sDAAsD;AACtD,iCAA4B;AAkBrB,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,KAAK;CAe/C,CAAA;AAXC;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACtF,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;oDACX;AAKhB;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;IAC9E,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;;uDACZ;AAKnB;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;IAC9E,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;;uDACZ;AAdR,qBAAqB;IAhBjC,IAAI,CAAC,yBAAyB,EAAE;QAC/B,IAAI,EAAE,yBAAyB;QAC/B,QAAQ,EAAE,cAAc;QACxB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,eAAe;QACrB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC;QACvC,QAAQ,EAAE;YACR,KAAK,EAAE,gBAAgB;YACvB,WAAW,EAAE,gGAAgG;YAC7G,SAAS,EAAE,EAAE;YACb,SAAS,EAAE,QAAQ;SACpB;KACF,CAAC;IACD,KAAK,EAAE;GACK,qBAAqB,CAejC"}
@@ -1,62 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- /**
11
- * @module ui-decorators/graph/nodes/flow-control/if
12
- * @summary If flow-control node declaration (DECAF-32 §22.2.2).
13
- * @description If — conditional branch. Evaluates a `ConditionExpression`
14
- * (§22.3) and routes the input to the `then` or `else` output. A graph-level
15
- * macro: the engine's planner recognises it as an ordinary executable node
16
- * (§5.7) but it has no built-in executor — downstream projects register
17
- * custom executors or compile it into composition APIs (§22.2.2).
18
- */
19
- import { Model, model, required } from "@decaf-ts/decorator-validation";
20
- import { uielement } from "./../../../ui/decorators.js";
21
- import { input, node, output } from "./../../decorators.js";
22
- // Ensure category styles are registered (idempotent).
23
- import "./../category-styles.js";
24
- let IfFlowNode = class IfFlowNode extends Model {
25
- };
26
- __decorate([
27
- required(),
28
- uielement("textarea", { label: "Input value", placeholder: "Value to evaluate" }),
29
- input({ handle: "value" }),
30
- __metadata("design:type", Object)
31
- ], IfFlowNode.prototype, "value", void 0);
32
- __decorate([
33
- required(),
34
- uielement("input", { label: "Then", placeholder: "Output when condition is true" }),
35
- output({ handle: "then" }),
36
- __metadata("design:type", Object)
37
- ], IfFlowNode.prototype, "then", void 0);
38
- __decorate([
39
- required(),
40
- uielement("input", { label: "Else", placeholder: "Output when condition is false" }),
41
- output({ handle: "else" }),
42
- __metadata("design:type", Object)
43
- ], IfFlowNode.prototype, "else", void 0);
44
- IfFlowNode = __decorate([
45
- node("core.flow.if", {
46
- kind: "core.flow.if",
47
- category: "Flow Control",
48
- color: "#f59e0b",
49
- icon: "ti-arrows-split-2",
50
- width: 96,
51
- height: 96,
52
- labels: ["flow", "conditional", "branch"],
53
- metadata: {
54
- title: "If",
55
- description: "Conditional branch. Evaluates the configured condition and routes the input to the matching output.",
56
- condition: { op: "eq", left: { const: true }, right: { const: true } },
57
- },
58
- }),
59
- model()
60
- ], IfFlowNode);
61
- export { IfFlowNode };
62
- //# sourceMappingURL=if.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"if.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/flow-control/if.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,oCAA+B;AACnD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,8BAAyB;AAEvD,sDAAsD;AACtD,iCAA4B;AAiBrB,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,KAAK;CAepC,CAAA;AAXC;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;IACjF,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;yCACX;AAKhB;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;IACnF,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;;wCACZ;AAKf;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,gCAAgC,EAAE,CAAC;IACpF,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;;wCACZ;AAdJ,UAAU;IAftB,IAAI,CAAC,cAAc,EAAE;QACpB,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,cAAc;QACxB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,mBAAmB;QACzB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,CAAC;QACzC,QAAQ,EAAE;YACR,KAAK,EAAE,IAAI;YACX,WAAW,EAAE,qGAAqG;YAClH,SAAS,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;SACvE;KACF,CAAC;IACD,KAAK,EAAE;GACK,UAAU,CAetB"}
@@ -1,52 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- /**
11
- * @module ui-decorators/graph/nodes/flow-control/parallel
12
- * @summary Parallel flow-control node declaration (DECAF-32 §22.2.2).
13
- * @description Parallel — splits execution into concurrent branches.
14
- */
15
- import { Model, model, required } from "@decaf-ts/decorator-validation";
16
- import { uielement } from "./../../../ui/decorators.js";
17
- import { input, node, output } from "./../../decorators.js";
18
- // Ensure category styles are registered (idempotent).
19
- import "./../category-styles.js";
20
- let ParallelFlowNode = class ParallelFlowNode extends Model {
21
- };
22
- __decorate([
23
- required(),
24
- uielement("textarea", { label: "Input value", placeholder: "Value to fan out" }),
25
- input({ handle: "value" }),
26
- __metadata("design:type", Object)
27
- ], ParallelFlowNode.prototype, "value", void 0);
28
- __decorate([
29
- required(),
30
- uielement("input", { label: "Branches", placeholder: "Collected branch outputs" }),
31
- output({ handle: "branches" }),
32
- __metadata("design:type", Array)
33
- ], ParallelFlowNode.prototype, "branches", void 0);
34
- ParallelFlowNode = __decorate([
35
- node("core.flow.parallel", {
36
- kind: "core.flow.parallel",
37
- category: "Flow Control",
38
- color: "#f59e0b",
39
- icon: "ti-arrows-vertical",
40
- width: 96,
41
- height: 96,
42
- labels: ["flow", "parallel", "concurrent"],
43
- metadata: {
44
- title: "Parallel",
45
- description: "Splits execution into concurrent branches. All branches run in parallel and outputs are collected.",
46
- branchCount: 2,
47
- },
48
- }),
49
- model()
50
- ], ParallelFlowNode);
51
- export { ParallelFlowNode };
52
- //# sourceMappingURL=parallel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parallel.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/flow-control/parallel.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;GAIG;AACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,oCAA+B;AACnD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,8BAAyB;AAEvD,sDAAsD;AACtD,iCAA4B;AAiBrB,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,KAAK;CAU1C,CAAA;AANC;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;IAChF,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;+CACX;AAKhB;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;IAClF,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;;kDACV;AATV,gBAAgB;IAf5B,IAAI,CAAC,oBAAoB,EAAE;QAC1B,IAAI,EAAE,oBAAoB;QAC1B,QAAQ,EAAE,cAAc;QACxB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC;QAC1C,QAAQ,EAAE;YACR,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,oGAAoG;YACjH,WAAW,EAAE,CAAC;SACf;KACF,CAAC;IACD,KAAK,EAAE;GACK,gBAAgB,CAU5B"}