@decaf-ts/ui-decorators 0.20.3 → 0.20.6

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 (200) hide show
  1. package/dist/ui-decorators.cjs +1 -1
  2. package/lib/cjs/graph/GraphExecutionStateMapper.cjs +97 -0
  3. package/lib/cjs/graph/GraphExecutionStateMapper.cjs.map +1 -0
  4. package/lib/cjs/graph/GraphResolution.cjs +17 -0
  5. package/lib/cjs/graph/GraphResolution.cjs.map +1 -0
  6. package/lib/cjs/graph/constants.cjs +157 -1
  7. package/lib/cjs/graph/constants.cjs.map +1 -1
  8. package/lib/cjs/graph/index.cjs +3 -0
  9. package/lib/cjs/graph/index.cjs.map +1 -1
  10. package/lib/cjs/graph/nodes/agents/agent.cjs +110 -0
  11. package/lib/cjs/graph/nodes/agents/agent.cjs.map +1 -0
  12. package/lib/cjs/graph/nodes/base.cjs +36 -0
  13. package/lib/cjs/graph/nodes/base.cjs.map +1 -0
  14. package/lib/cjs/graph/nodes/boundary/input-value.cjs +57 -0
  15. package/lib/cjs/graph/nodes/boundary/input-value.cjs.map +1 -0
  16. package/lib/cjs/graph/nodes/category-styles.cjs +38 -0
  17. package/lib/cjs/graph/nodes/category-styles.cjs.map +1 -0
  18. package/lib/cjs/graph/nodes/flow-control/break.cjs +63 -0
  19. package/lib/cjs/graph/nodes/flow-control/break.cjs.map +1 -0
  20. package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs +67 -0
  21. package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs.map +1 -0
  22. package/lib/cjs/graph/nodes/flow-control/human-approval.cjs +69 -0
  23. package/lib/cjs/graph/nodes/flow-control/human-approval.cjs.map +1 -0
  24. package/lib/cjs/graph/nodes/flow-control/if.cjs +71 -0
  25. package/lib/cjs/graph/nodes/flow-control/if.cjs.map +1 -0
  26. package/lib/cjs/graph/nodes/flow-control/parallel.cjs +61 -0
  27. package/lib/cjs/graph/nodes/flow-control/parallel.cjs.map +1 -0
  28. package/lib/cjs/graph/nodes/flow-control/switch.cjs +121 -0
  29. package/lib/cjs/graph/nodes/flow-control/switch.cjs.map +1 -0
  30. package/lib/cjs/graph/nodes/index.cjs +123 -0
  31. package/lib/cjs/graph/nodes/index.cjs.map +1 -0
  32. package/lib/cjs/graph/nodes/loops/foreach.cjs +86 -0
  33. package/lib/cjs/graph/nodes/loops/foreach.cjs.map +1 -0
  34. package/lib/cjs/graph/nodes/loops/until.cjs +74 -0
  35. package/lib/cjs/graph/nodes/loops/until.cjs.map +1 -0
  36. package/lib/cjs/graph/nodes/loops/while.cjs +74 -0
  37. package/lib/cjs/graph/nodes/loops/while.cjs.map +1 -0
  38. package/lib/cjs/graph/nodes/manifests.cjs +338 -0
  39. package/lib/cjs/graph/nodes/manifests.cjs.map +1 -0
  40. package/lib/cjs/graph/nodes/triggers/chat.cjs +70 -0
  41. package/lib/cjs/graph/nodes/triggers/chat.cjs.map +1 -0
  42. package/lib/cjs/graph/nodes/triggers/event.cjs +58 -0
  43. package/lib/cjs/graph/nodes/triggers/event.cjs.map +1 -0
  44. package/lib/cjs/graph/nodes/triggers/form.cjs +59 -0
  45. package/lib/cjs/graph/nodes/triggers/form.cjs.map +1 -0
  46. package/lib/cjs/graph/nodes/triggers/manual.cjs +60 -0
  47. package/lib/cjs/graph/nodes/triggers/manual.cjs.map +1 -0
  48. package/lib/cjs/graph/nodes/triggers/schedule.cjs +60 -0
  49. package/lib/cjs/graph/nodes/triggers/schedule.cjs.map +1 -0
  50. package/lib/cjs/graph/nodes/triggers/webhook.cjs +62 -0
  51. package/lib/cjs/graph/nodes/triggers/webhook.cjs.map +1 -0
  52. package/lib/cjs/graph/nodes/utility/code.cjs +99 -0
  53. package/lib/cjs/graph/nodes/utility/code.cjs.map +1 -0
  54. package/lib/cjs/graph/nodes/utility/delay.cjs +61 -0
  55. package/lib/cjs/graph/nodes/utility/delay.cjs.map +1 -0
  56. package/lib/cjs/graph/nodes/utility/log.cjs +62 -0
  57. package/lib/cjs/graph/nodes/utility/log.cjs.map +1 -0
  58. package/lib/cjs/graph/nodes/utility/map.cjs +61 -0
  59. package/lib/cjs/graph/nodes/utility/map.cjs.map +1 -0
  60. package/lib/cjs/graph/nodes/utility/merge.cjs +62 -0
  61. package/lib/cjs/graph/nodes/utility/merge.cjs.map +1 -0
  62. package/lib/cjs/graph/nodes/utility/return.cjs +61 -0
  63. package/lib/cjs/graph/nodes/utility/return.cjs.map +1 -0
  64. package/lib/cjs/graph/nodes/utility/utility-log.cjs +66 -0
  65. package/lib/cjs/graph/nodes/utility/utility-log.cjs.map +1 -0
  66. package/lib/cjs/index.cjs +3 -3
  67. package/lib/esm/graph/GraphExecutionStateMapper.js +91 -0
  68. package/lib/esm/graph/GraphExecutionStateMapper.js.map +1 -0
  69. package/lib/esm/graph/GraphResolution.js +13 -0
  70. package/lib/esm/graph/GraphResolution.js.map +1 -0
  71. package/lib/esm/graph/constants.js +179 -0
  72. package/lib/esm/graph/constants.js.map +1 -1
  73. package/lib/esm/graph/index.js +3 -0
  74. package/lib/esm/graph/index.js.map +1 -1
  75. package/lib/esm/graph/nodes/agents/agent.js +101 -0
  76. package/lib/esm/graph/nodes/agents/agent.js.map +1 -0
  77. package/lib/esm/graph/nodes/base.js +31 -0
  78. package/lib/esm/graph/nodes/base.js.map +1 -0
  79. package/lib/esm/graph/nodes/boundary/input-value.js +48 -0
  80. package/lib/esm/graph/nodes/boundary/input-value.js.map +1 -0
  81. package/lib/esm/graph/nodes/category-styles.js +34 -0
  82. package/lib/esm/graph/nodes/category-styles.js.map +1 -0
  83. package/lib/esm/graph/nodes/flow-control/break.js +54 -0
  84. package/lib/esm/graph/nodes/flow-control/break.js.map +1 -0
  85. package/lib/esm/graph/nodes/flow-control/error-boundary.js +58 -0
  86. package/lib/esm/graph/nodes/flow-control/error-boundary.js.map +1 -0
  87. package/lib/esm/graph/nodes/flow-control/human-approval.js +60 -0
  88. package/lib/esm/graph/nodes/flow-control/human-approval.js.map +1 -0
  89. package/lib/esm/graph/nodes/flow-control/if.js +62 -0
  90. package/lib/esm/graph/nodes/flow-control/if.js.map +1 -0
  91. package/lib/esm/graph/nodes/flow-control/parallel.js +52 -0
  92. package/lib/esm/graph/nodes/flow-control/parallel.js.map +1 -0
  93. package/lib/esm/graph/nodes/flow-control/switch.js +112 -0
  94. package/lib/esm/graph/nodes/flow-control/switch.js.map +1 -0
  95. package/lib/esm/graph/nodes/index.js +105 -0
  96. package/lib/esm/graph/nodes/index.js.map +1 -0
  97. package/lib/esm/graph/nodes/loops/foreach.js +77 -0
  98. package/lib/esm/graph/nodes/loops/foreach.js.map +1 -0
  99. package/lib/esm/graph/nodes/loops/until.js +65 -0
  100. package/lib/esm/graph/nodes/loops/until.js.map +1 -0
  101. package/lib/esm/graph/nodes/loops/while.js +65 -0
  102. package/lib/esm/graph/nodes/loops/while.js.map +1 -0
  103. package/lib/esm/graph/nodes/manifests.js +334 -0
  104. package/lib/esm/graph/nodes/manifests.js.map +1 -0
  105. package/lib/esm/graph/nodes/triggers/chat.js +61 -0
  106. package/lib/esm/graph/nodes/triggers/chat.js.map +1 -0
  107. package/lib/esm/graph/nodes/triggers/event.js +49 -0
  108. package/lib/esm/graph/nodes/triggers/event.js.map +1 -0
  109. package/lib/esm/graph/nodes/triggers/form.js +50 -0
  110. package/lib/esm/graph/nodes/triggers/form.js.map +1 -0
  111. package/lib/esm/graph/nodes/triggers/manual.js +51 -0
  112. package/lib/esm/graph/nodes/triggers/manual.js.map +1 -0
  113. package/lib/esm/graph/nodes/triggers/schedule.js +51 -0
  114. package/lib/esm/graph/nodes/triggers/schedule.js.map +1 -0
  115. package/lib/esm/graph/nodes/triggers/webhook.js +53 -0
  116. package/lib/esm/graph/nodes/triggers/webhook.js.map +1 -0
  117. package/lib/esm/graph/nodes/utility/code.js +90 -0
  118. package/lib/esm/graph/nodes/utility/code.js.map +1 -0
  119. package/lib/esm/graph/nodes/utility/delay.js +52 -0
  120. package/lib/esm/graph/nodes/utility/delay.js.map +1 -0
  121. package/lib/esm/graph/nodes/utility/log.js +53 -0
  122. package/lib/esm/graph/nodes/utility/log.js.map +1 -0
  123. package/lib/esm/graph/nodes/utility/map.js +52 -0
  124. package/lib/esm/graph/nodes/utility/map.js.map +1 -0
  125. package/lib/esm/graph/nodes/utility/merge.js +53 -0
  126. package/lib/esm/graph/nodes/utility/merge.js.map +1 -0
  127. package/lib/esm/graph/nodes/utility/return.js +52 -0
  128. package/lib/esm/graph/nodes/utility/return.js.map +1 -0
  129. package/lib/esm/graph/nodes/utility/utility-log.js +57 -0
  130. package/lib/esm/graph/nodes/utility/utility-log.js.map +1 -0
  131. package/lib/esm/index.js +3 -3
  132. package/lib/types/graph/GraphExecutionStateMapper.d.cts +66 -0
  133. package/lib/types/graph/GraphExecutionStateMapper.d.mts +66 -0
  134. package/lib/types/graph/GraphResolution.d.cts +53 -0
  135. package/lib/types/graph/GraphResolution.d.mts +53 -0
  136. package/lib/types/graph/constants.d.cts +165 -0
  137. package/lib/types/graph/constants.d.mts +165 -0
  138. package/lib/types/graph/index.d.cts +3 -0
  139. package/lib/types/graph/index.d.mts +3 -0
  140. package/lib/types/graph/nodes/agents/agent.d.cts +44 -0
  141. package/lib/types/graph/nodes/agents/agent.d.mts +44 -0
  142. package/lib/types/graph/nodes/base.d.cts +28 -0
  143. package/lib/types/graph/nodes/base.d.mts +28 -0
  144. package/lib/types/graph/nodes/boundary/input-value.d.cts +13 -0
  145. package/lib/types/graph/nodes/boundary/input-value.d.mts +13 -0
  146. package/lib/types/graph/nodes/category-styles.d.cts +8 -0
  147. package/lib/types/graph/nodes/category-styles.d.mts +8 -0
  148. package/lib/types/graph/nodes/flow-control/break.d.cts +15 -0
  149. package/lib/types/graph/nodes/flow-control/break.d.mts +15 -0
  150. package/lib/types/graph/nodes/flow-control/error-boundary.d.cts +12 -0
  151. package/lib/types/graph/nodes/flow-control/error-boundary.d.mts +12 -0
  152. package/lib/types/graph/nodes/flow-control/human-approval.d.cts +13 -0
  153. package/lib/types/graph/nodes/flow-control/human-approval.d.mts +13 -0
  154. package/lib/types/graph/nodes/flow-control/if.d.cts +16 -0
  155. package/lib/types/graph/nodes/flow-control/if.d.mts +16 -0
  156. package/lib/types/graph/nodes/flow-control/parallel.d.cts +11 -0
  157. package/lib/types/graph/nodes/flow-control/parallel.d.mts +11 -0
  158. package/lib/types/graph/nodes/flow-control/switch.d.cts +21 -0
  159. package/lib/types/graph/nodes/flow-control/switch.d.mts +21 -0
  160. package/lib/types/graph/nodes/index.d.cts +79 -0
  161. package/lib/types/graph/nodes/index.d.mts +79 -0
  162. package/lib/types/graph/nodes/loops/foreach.d.cts +19 -0
  163. package/lib/types/graph/nodes/loops/foreach.d.mts +19 -0
  164. package/lib/types/graph/nodes/loops/until.d.cts +16 -0
  165. package/lib/types/graph/nodes/loops/until.d.mts +16 -0
  166. package/lib/types/graph/nodes/loops/while.d.cts +16 -0
  167. package/lib/types/graph/nodes/loops/while.d.mts +16 -0
  168. package/lib/types/graph/nodes/manifests.d.cts +62 -0
  169. package/lib/types/graph/nodes/manifests.d.mts +62 -0
  170. package/lib/types/graph/nodes/triggers/chat.d.cts +13 -0
  171. package/lib/types/graph/nodes/triggers/chat.d.mts +13 -0
  172. package/lib/types/graph/nodes/triggers/event.d.cts +10 -0
  173. package/lib/types/graph/nodes/triggers/event.d.mts +10 -0
  174. package/lib/types/graph/nodes/triggers/form.d.cts +11 -0
  175. package/lib/types/graph/nodes/triggers/form.d.mts +11 -0
  176. package/lib/types/graph/nodes/triggers/manual.d.cts +12 -0
  177. package/lib/types/graph/nodes/triggers/manual.d.mts +12 -0
  178. package/lib/types/graph/nodes/triggers/schedule.d.cts +11 -0
  179. package/lib/types/graph/nodes/triggers/schedule.d.mts +11 -0
  180. package/lib/types/graph/nodes/triggers/webhook.d.cts +11 -0
  181. package/lib/types/graph/nodes/triggers/webhook.d.mts +11 -0
  182. package/lib/types/graph/nodes/utility/code.d.cts +31 -0
  183. package/lib/types/graph/nodes/utility/code.d.mts +31 -0
  184. package/lib/types/graph/nodes/utility/delay.d.cts +11 -0
  185. package/lib/types/graph/nodes/utility/delay.d.mts +11 -0
  186. package/lib/types/graph/nodes/utility/log.d.cts +13 -0
  187. package/lib/types/graph/nodes/utility/log.d.mts +13 -0
  188. package/lib/types/graph/nodes/utility/map.d.cts +11 -0
  189. package/lib/types/graph/nodes/utility/map.d.mts +11 -0
  190. package/lib/types/graph/nodes/utility/merge.d.cts +12 -0
  191. package/lib/types/graph/nodes/utility/merge.d.mts +12 -0
  192. package/lib/types/graph/nodes/utility/return.d.cts +11 -0
  193. package/lib/types/graph/nodes/utility/return.d.mts +11 -0
  194. package/lib/types/graph/nodes/utility/utility-log.d.cts +15 -0
  195. package/lib/types/graph/nodes/utility/utility-log.d.mts +15 -0
  196. package/lib/types/graph/types.d.cts +286 -0
  197. package/lib/types/graph/types.d.mts +286 -0
  198. package/lib/types/index.d.cts +3 -3
  199. package/lib/types/index.d.mts +3 -3
  200. package/package.json +1 -1
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ScheduleTriggerNode = 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/triggers/schedule
20
+ * @summary Schedule trigger node declaration (DECAF-32 §22.2.1).
21
+ * @description Schedule trigger — cron-like schedule; timezone + payload
22
+ * config.
23
+ */
24
+ const decorator_validation_1 = require("@decaf-ts/decorator-validation");
25
+ const decorators_js_1 = require("./../../../ui/decorators.cjs");
26
+ const decorators_js_2 = require("./../../decorators.cjs");
27
+ // Ensure category styles are registered (idempotent).
28
+ require("./../category-styles.cjs");
29
+ let ScheduleTriggerNode = class ScheduleTriggerNode extends decorator_validation_1.Model {
30
+ };
31
+ exports.ScheduleTriggerNode = ScheduleTriggerNode;
32
+ __decorate([
33
+ (0, decorator_validation_1.required)(),
34
+ (0, decorators_js_1.uielement)("textarea", { label: "Scheduled payload", placeholder: "Payload for the scheduled run" }),
35
+ (0, decorators_js_2.output)({ handle: "payload" }),
36
+ __metadata("design:type", Object)
37
+ ], ScheduleTriggerNode.prototype, "payload", void 0);
38
+ exports.ScheduleTriggerNode = ScheduleTriggerNode = __decorate([
39
+ (0, decorators_js_2.node)("core.trigger.schedule", {
40
+ kind: "core.trigger.schedule",
41
+ category: "Trigger",
42
+ color: "#6366f1",
43
+ icon: "ti-calendar-time",
44
+ width: 96,
45
+ height: 96,
46
+ labels: ["trigger", "schedule", "cron"],
47
+ metadata: {
48
+ title: "Schedule trigger",
49
+ description: "Starts the workflow on a cron-like schedule with timezone support.",
50
+ trigger: {
51
+ type: "schedule",
52
+ schedule: "0 * * * *",
53
+ timezone: "UTC",
54
+ },
55
+ },
56
+ }),
57
+ (0, decorator_validation_1.model)()
58
+ ], ScheduleTriggerNode);
59
+ //# sourceMappingURL=schedule.js.map
60
+ //# sourceMappingURL=schedule.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/nodes/triggers/schedule.cjs","sourceRoot":"","sources":["graph/nodes/triggers/schedule.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,I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C,CAAC;AAC7G,CAAC,CAAC;AACF;;;;;GAKG;AACH,yEAAwE;AACxE,+DAAwD;AACxD,yDAAqD;AACrD,sDAAsD;AACtD,mCAAiC;AACjC,IAAI,mBAAmB,GAAG,MAAM,mBAAoB,SAAQ,4BAAK;CAChE,CAAC;AA4BO,kDAAmB;AA3B5B,UAAU,CAAC;IACP,IAAA,+BAAQ,GAAE;IACV,IAAA,yBAAS,EAAC,UAAU,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;IACnG,IAAA,sBAAM,EAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IAC7B,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,mBAAmB,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC;AACrD,8BAAA,mBAAmB,GAAG,UAAU,CAAC;IAC7B,IAAA,oBAAI,EAAC,uBAAuB,EAAE;QAC1B,IAAI,EAAE,uBAAuB;QAC7B,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,MAAM,CAAC;QACvC,QAAQ,EAAE;YACN,KAAK,EAAE,kBAAkB;YACzB,WAAW,EAAE,oEAAoE;YACjF,OAAO,EAAE;gBACL,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,WAAW;gBACrB,QAAQ,EAAE,KAAK;aAClB;SACJ;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,mBAAmB,CAAC,CAAC;AAExB,oCAAoC"}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookTriggerNode = 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/triggers/webhook
20
+ * @summary Webhook trigger node declaration (DECAF-32 §22.2.1).
21
+ * @description Webhook trigger — HTTP request received; path/method/auth/
22
+ * responseMode config.
23
+ */
24
+ const decorator_validation_1 = require("@decaf-ts/decorator-validation");
25
+ const decorators_js_1 = require("./../../../ui/decorators.cjs");
26
+ const decorators_js_2 = require("./../../decorators.cjs");
27
+ // Ensure category styles are registered (idempotent).
28
+ require("./../category-styles.cjs");
29
+ let WebhookTriggerNode = class WebhookTriggerNode extends decorator_validation_1.Model {
30
+ };
31
+ exports.WebhookTriggerNode = WebhookTriggerNode;
32
+ __decorate([
33
+ (0, decorator_validation_1.required)(),
34
+ (0, decorators_js_1.uielement)("textarea", { label: "Request payload", placeholder: "Webhook request body" }),
35
+ (0, decorators_js_2.output)({ handle: "payload" }),
36
+ __metadata("design:type", Object)
37
+ ], WebhookTriggerNode.prototype, "payload", void 0);
38
+ exports.WebhookTriggerNode = WebhookTriggerNode = __decorate([
39
+ (0, decorators_js_2.node)("core.trigger.webhook", {
40
+ kind: "core.trigger.webhook",
41
+ category: "Trigger",
42
+ color: "#0ea5e9",
43
+ icon: "ti-webhook",
44
+ width: 96,
45
+ height: 96,
46
+ labels: ["trigger", "webhook", "http"],
47
+ metadata: {
48
+ title: "Webhook trigger",
49
+ description: "Starts the workflow when an HTTP request is received on the configured path and method.",
50
+ trigger: {
51
+ type: "webhook",
52
+ path: "/webhook",
53
+ method: "POST",
54
+ auth: "none",
55
+ responseMode: "onReceived",
56
+ },
57
+ },
58
+ }),
59
+ (0, decorator_validation_1.model)()
60
+ ], WebhookTriggerNode);
61
+ //# sourceMappingURL=webhook.js.map
62
+ //# sourceMappingURL=webhook.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/nodes/triggers/webhook.cjs","sourceRoot":"","sources":["graph/nodes/triggers/webhook.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;;QAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YAAE,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;gBAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,EA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MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC;QACtC,QAAQ,EAAE;YACN,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,yFAAyF;YACtG,OAAO,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,UAAU;gBAChB,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,MAAM;gBACZ,YAAY,EAAE,YAAY;aAC7B;SACJ;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,kBAAkB,CAAC,CAAC;AAEvB,mCAAmC"}
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CodeFlowNode = exports.CodeInputSchema = 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/code
20
+ * @summary Code utility node declaration (ALFRED-5 §7, DECAF-32 §22.4).
21
+ * @description Code — sandboxed JS/TS code execution. The engine's
22
+ * `CodeGraphNodeExecutor` delegates to the pluggable `CodeSandboxEvaluator`.
23
+ * The default `IsolatedVmCodeSandboxEvaluator` (backed by `isolated-vm`)
24
+ * enforces the Code Node restrictions: no imports, no requires, pure
25
+ * functions only. The sandbox context exposes `$input`, `$vars`, `$item`,
26
+ * `$index`, `$node`, and `$output` as data variables. TypeScript is
27
+ * supported via transpilation.
28
+ *
29
+ * The `@input` on `CodeFlowNode.input` is a schema group — the nested
30
+ * model's `@input` ports are spliced into the parent unprefixed. `code` has
31
+ * `@input` + `@uielement("code-editor")`, so it appears as a port AND in the
32
+ * CRUD modal (the only visible field). `data` has `@input` + `@hidden()` but
33
+ * no `@uielement`, so it is a canvas-only port (for edge connections from
34
+ * workflow input badges) but never appears in the CRUD modal. `language` has
35
+ * no `@input` and no `@uielement`, so it is neither a port nor rendered — it
36
+ * defaults to `"javascript"`.
37
+ */
38
+ const decorator_validation_1 = require("@decaf-ts/decorator-validation");
39
+ const decorators_js_1 = require("./../../../ui/decorators.cjs");
40
+ const decorators_js_2 = require("./../../decorators.cjs");
41
+ // Ensure category styles are registered (idempotent).
42
+ require("./../category-styles.cjs");
43
+ let CodeInputSchema = class CodeInputSchema extends decorator_validation_1.Model {
44
+ constructor() {
45
+ super(...arguments);
46
+ this.language = "javascript";
47
+ }
48
+ };
49
+ exports.CodeInputSchema = CodeInputSchema;
50
+ __decorate([
51
+ (0, decorator_validation_1.required)(),
52
+ __metadata("design:type", String)
53
+ ], CodeInputSchema.prototype, "language", void 0);
54
+ __decorate([
55
+ (0, decorator_validation_1.required)(),
56
+ (0, decorators_js_1.uielement)("code-editor", { label: "Code", placeholder: "// User-authored JS code" }),
57
+ (0, decorators_js_2.input)({ handle: "code" }),
58
+ __metadata("design:type", String)
59
+ ], CodeInputSchema.prototype, "code", void 0);
60
+ __decorate([
61
+ (0, decorators_js_1.hidden)(),
62
+ (0, decorators_js_2.input)({ handle: "data" }),
63
+ __metadata("design:type", Object)
64
+ ], CodeInputSchema.prototype, "data", void 0);
65
+ exports.CodeInputSchema = CodeInputSchema = __decorate([
66
+ (0, decorator_validation_1.model)()
67
+ ], CodeInputSchema);
68
+ let CodeFlowNode = class CodeFlowNode extends decorator_validation_1.Model {
69
+ };
70
+ exports.CodeFlowNode = CodeFlowNode;
71
+ __decorate([
72
+ (0, decorator_validation_1.required)(),
73
+ (0, decorators_js_2.input)({ handle: "input", model: CodeInputSchema }),
74
+ __metadata("design:type", CodeInputSchema)
75
+ ], CodeFlowNode.prototype, "input", void 0);
76
+ __decorate([
77
+ (0, decorator_validation_1.required)(),
78
+ (0, decorators_js_2.output)({ handle: "result" }),
79
+ __metadata("design:type", Object)
80
+ ], CodeFlowNode.prototype, "result", void 0);
81
+ exports.CodeFlowNode = CodeFlowNode = __decorate([
82
+ (0, decorators_js_2.node)("core.flow.code", {
83
+ kind: "core.flow.code",
84
+ category: "Utility",
85
+ color: "#7c3aed",
86
+ icon: "ti-code",
87
+ width: 96,
88
+ height: 96,
89
+ labels: ["flow", "code", "sandbox", "transform"],
90
+ metadata: {
91
+ title: "Code",
92
+ description: "Runs user-authored JS/TS in a restricted VM sandbox. Supports placeholder syntax for workflow data references.",
93
+ timeoutMs: 1000,
94
+ },
95
+ }),
96
+ (0, decorator_validation_1.model)()
97
+ ], CodeFlowNode);
98
+ //# sourceMappingURL=code.js.map
99
+ //# sourceMappingURL=code.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/nodes/utility/code.cjs","sourceRoot":"","sources":["graph/nodes/utility/code.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,UA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AM,CAAC;CACpC,EAAE,YAAY,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;AAC7C,uBAAA,YAAY,GAAG,UAAU,CAAC;IACtB,IAAA,oBAAI,EAAC,gBAAgB,EAAE;QACnB,IAAI,EAAE,gBAAgB;QACtB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,CAAC;QAChD,QAAQ,EAAE;YACN,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,gHAAgH;YAC7H,SAAS,EAAE,IAAI;SAClB;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,YAAY,CAAC,CAAC;AAEjB,gCAAgC"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DelayFlowNode = 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/delay
20
+ * @summary Delay utility node declaration (DECAF-32 §22.2.2).
21
+ * @description Delay — pauses execution for a configured duration.
22
+ */
23
+ const decorator_validation_1 = require("@decaf-ts/decorator-validation");
24
+ const decorators_js_1 = require("./../../../ui/decorators.cjs");
25
+ const decorators_js_2 = require("./../../decorators.cjs");
26
+ // Ensure category styles are registered (idempotent).
27
+ require("./../category-styles.cjs");
28
+ let DelayFlowNode = class DelayFlowNode extends decorator_validation_1.Model {
29
+ };
30
+ exports.DelayFlowNode = DelayFlowNode;
31
+ __decorate([
32
+ (0, decorator_validation_1.required)(),
33
+ (0, decorators_js_1.uielement)("textarea", { label: "Input value", placeholder: "Value to forward after delay" }),
34
+ (0, decorators_js_2.input)({ handle: "value" }),
35
+ __metadata("design:type", Object)
36
+ ], DelayFlowNode.prototype, "value", void 0);
37
+ __decorate([
38
+ (0, decorator_validation_1.required)(),
39
+ (0, decorators_js_1.uielement)("input", { label: "Output value", placeholder: "Forwarded value" }),
40
+ (0, decorators_js_2.output)({ handle: "value" }),
41
+ __metadata("design:type", Object)
42
+ ], DelayFlowNode.prototype, "valueOut", void 0);
43
+ exports.DelayFlowNode = DelayFlowNode = __decorate([
44
+ (0, decorators_js_2.node)("core.flow.delay", {
45
+ kind: "core.flow.delay",
46
+ category: "Utility",
47
+ color: "#a3a3a3",
48
+ icon: "ti-clock-hour-4",
49
+ width: 96,
50
+ height: 96,
51
+ labels: ["flow", "delay", "wait"],
52
+ metadata: {
53
+ title: "Delay",
54
+ description: "Pauses execution for the configured duration (in milliseconds), then forwards the input unchanged.",
55
+ durationMs: 1000,
56
+ },
57
+ }),
58
+ (0, decorator_validation_1.model)()
59
+ ], DelayFlowNode);
60
+ //# sourceMappingURL=delay.js.map
61
+ //# sourceMappingURL=delay.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/nodes/utility/delay.cjs","sourceRoot":"","sources":["graph/nodes/utility/delay.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;I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AC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,aAAa,CAAC,CAAC;AAElB,iCAAiC"}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LogFlowNode = 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/log
20
+ * @summary Log utility node declaration (DECAF-32 §22.2.2).
21
+ * @description Log — logs the input value and forwards it unchanged on the
22
+ * `logged` output port. Useful for debugging, audit trails, and
23
+ * discard/side-effect branches in a workflow.
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 LogFlowNode = class LogFlowNode extends decorator_validation_1.Model {
31
+ };
32
+ exports.LogFlowNode = LogFlowNode;
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
+ ], LogFlowNode.prototype, "value", void 0);
39
+ __decorate([
40
+ (0, decorator_validation_1.required)(),
41
+ (0, decorators_js_1.uielement)("input", { label: "Logged value", placeholder: "Forwarded value" }),
42
+ (0, decorators_js_2.output)({ handle: "logged" }),
43
+ __metadata("design:type", Object)
44
+ ], LogFlowNode.prototype, "logged", void 0);
45
+ exports.LogFlowNode = LogFlowNode = __decorate([
46
+ (0, decorators_js_2.node)("core.flow.log", {
47
+ kind: "core.flow.log",
48
+ category: "Utility",
49
+ color: "#6366f1",
50
+ icon: "ti-terminal",
51
+ width: 96,
52
+ height: 96,
53
+ labels: ["flow", "log", "debug", "utility"],
54
+ metadata: {
55
+ title: "Log",
56
+ description: "Logs the input value to the execution logger and forwards it unchanged.",
57
+ },
58
+ }),
59
+ (0, decorator_validation_1.model)()
60
+ ], LogFlowNode);
61
+ //# sourceMappingURL=log.js.map
62
+ //# sourceMappingURL=log.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/nodes/utility/log.cjs","sourceRoot":"","sources":["graph/nodes/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;;QAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,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OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;AAC3C,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,WAAW,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;AAC5C,sBAAA,WAAW,GAAG,UAAU,CAAC;IACrB,IAAA,oBAAI,EAAC,eAAe,EAAE;QAClB,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC;QAC3C,QAAQ,EAAE;YACN,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,yEAAyE;SACzF;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,WAAW,CAAC,CAAC;AAEhB,+BAA+B"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MapFlowNode = 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/map
20
+ * @summary Map utility node declaration (DECAF-32 §22.2.2).
21
+ * @description Map — transforms the current input into a new output object.
22
+ */
23
+ const decorator_validation_1 = require("@decaf-ts/decorator-validation");
24
+ const decorators_js_1 = require("./../../../ui/decorators.cjs");
25
+ const decorators_js_2 = require("./../../decorators.cjs");
26
+ // Ensure category styles are registered (idempotent).
27
+ require("./../category-styles.cjs");
28
+ let MapFlowNode = class MapFlowNode extends decorator_validation_1.Model {
29
+ };
30
+ exports.MapFlowNode = MapFlowNode;
31
+ __decorate([
32
+ (0, decorator_validation_1.required)(),
33
+ (0, decorators_js_1.uielement)("textarea", { label: "Input value", placeholder: "Value to transform" }),
34
+ (0, decorators_js_2.input)({ handle: "value" }),
35
+ __metadata("design:type", Object)
36
+ ], MapFlowNode.prototype, "value", void 0);
37
+ __decorate([
38
+ (0, decorator_validation_1.required)(),
39
+ (0, decorators_js_1.uielement)("input", { label: "Transformed output", placeholder: "Mapped result" }),
40
+ (0, decorators_js_2.output)({ handle: "result" }),
41
+ __metadata("design:type", Object)
42
+ ], MapFlowNode.prototype, "result", void 0);
43
+ exports.MapFlowNode = MapFlowNode = __decorate([
44
+ (0, decorators_js_2.node)("core.flow.map", {
45
+ kind: "core.flow.map",
46
+ category: "Utility",
47
+ color: "#84cc16",
48
+ icon: "ti-arrows-right-left",
49
+ width: 96,
50
+ height: 96,
51
+ labels: ["flow", "map", "transform"],
52
+ metadata: {
53
+ title: "Map",
54
+ description: "Transforms the current input into a new output object using the configured mapper.",
55
+ mapper: {},
56
+ },
57
+ }),
58
+ (0, decorator_validation_1.model)()
59
+ ], MapFlowNode);
60
+ //# sourceMappingURL=map.js.map
61
+ //# sourceMappingURL=map.cjs.map
@@ -0,0 +1 @@
1
+ {"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AE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,WAAW,CAAC;QACpC,QAAQ,EAAE;YACN,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,oFAAoF;YACjG,MAAM,EAAE,EAAE;SACb;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,WAAW,CAAC,CAAC;AAEhB,+BAA+B"}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MergeFlowNode = 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/merge
20
+ * @summary Merge utility node declaration (DECAF-32 §22.2.2).
21
+ * @description Merge — normalises branch/parallel outputs into a single
22
+ * output.
23
+ */
24
+ const decorator_validation_1 = require("@decaf-ts/decorator-validation");
25
+ const decorators_js_1 = require("./../../../ui/decorators.cjs");
26
+ const decorators_js_2 = require("./../../decorators.cjs");
27
+ // Ensure category styles are registered (idempotent).
28
+ require("./../category-styles.cjs");
29
+ let MergeFlowNode = class MergeFlowNode extends decorator_validation_1.Model {
30
+ };
31
+ exports.MergeFlowNode = MergeFlowNode;
32
+ __decorate([
33
+ (0, decorator_validation_1.required)(),
34
+ (0, decorators_js_1.uielement)("textarea", { label: "Branch outputs", placeholder: "Outputs to merge" }),
35
+ (0, decorators_js_2.input)({ handle: "values" }),
36
+ __metadata("design:type", Array)
37
+ ], MergeFlowNode.prototype, "values", void 0);
38
+ __decorate([
39
+ (0, decorator_validation_1.required)(),
40
+ (0, decorators_js_1.uielement)("input", { label: "Merged output", placeholder: "Merged result" }),
41
+ (0, decorators_js_2.output)({ handle: "merged" }),
42
+ __metadata("design:type", Object)
43
+ ], MergeFlowNode.prototype, "merged", void 0);
44
+ exports.MergeFlowNode = MergeFlowNode = __decorate([
45
+ (0, decorators_js_2.node)("core.flow.merge", {
46
+ kind: "core.flow.merge",
47
+ category: "Utility",
48
+ color: "#0d9488",
49
+ icon: "ti-arrows-merge",
50
+ width: 96,
51
+ height: 96,
52
+ labels: ["flow", "merge", "join"],
53
+ metadata: {
54
+ title: "Merge",
55
+ description: "Merges multiple branch outputs into a single normalised output object.",
56
+ strategy: "concat",
57
+ },
58
+ }),
59
+ (0, decorator_validation_1.model)()
60
+ ], MergeFlowNode);
61
+ //# sourceMappingURL=merge.js.map
62
+ //# sourceMappingURL=merge.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/nodes/utility/merge.cjs","sourceRoot":"","sources":["graph/nodes/utility/merge.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,QA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AAE,gBAAgB,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;IACnF,IAAA,qBAAK,EAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IAC3B,UAAU,CAAC,aAAa,EAAE,KAAK,CAAC;CACnC,EAAE,aAAa,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;AAC9C,UAAU,CAAC;IACP,IAAA,+BAAQ,GAAE;IACV,IAAA,yBAAS,EAAC,OAAO,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;IAC5E,IAAA,sBAAM,EAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IAC5B,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,aAAa,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;AAC9C,wBAAA,aAAa,GAAG,UAAU,CAAC;IACvB,IAAA,oBAAI,EAAC,iBAAiB,EAAE;QACpB,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC;QACjC,QAAQ,EAAE;YACN,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,wEAAwE;YACrF,QAAQ,EAAE,QAAQ;SACrB;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,aAAa,CAAC,CAAC;AAElB,iCAAiC"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReturnFlowNode = 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/return
20
+ * @summary Return utility node declaration (DECAF-32 §22.2.2).
21
+ * @description Return — defines and normalises the final workflow output.
22
+ */
23
+ const decorator_validation_1 = require("@decaf-ts/decorator-validation");
24
+ const decorators_js_1 = require("./../../../ui/decorators.cjs");
25
+ const decorators_js_2 = require("./../../decorators.cjs");
26
+ // Ensure category styles are registered (idempotent).
27
+ require("./../category-styles.cjs");
28
+ let ReturnFlowNode = class ReturnFlowNode extends decorator_validation_1.Model {
29
+ };
30
+ exports.ReturnFlowNode = ReturnFlowNode;
31
+ __decorate([
32
+ (0, decorator_validation_1.required)(),
33
+ (0, decorators_js_1.uielement)("textarea", { label: "Input value", placeholder: "Value to normalise" }),
34
+ (0, decorators_js_2.input)({ handle: "value" }),
35
+ __metadata("design:type", Object)
36
+ ], ReturnFlowNode.prototype, "value", void 0);
37
+ __decorate([
38
+ (0, decorator_validation_1.required)(),
39
+ (0, decorators_js_1.uielement)("input", { label: "Returned output", placeholder: "Normalised output" }),
40
+ (0, decorators_js_2.output)({ handle: "result" }),
41
+ __metadata("design:type", Object)
42
+ ], ReturnFlowNode.prototype, "result", void 0);
43
+ exports.ReturnFlowNode = ReturnFlowNode = __decorate([
44
+ (0, decorators_js_2.node)("core.flow.return", {
45
+ kind: "core.flow.return",
46
+ category: "Utility",
47
+ color: "#22c55e",
48
+ icon: "ti-arrow-back-up",
49
+ width: 96,
50
+ height: 96,
51
+ labels: ["flow", "return", "output"],
52
+ metadata: {
53
+ title: "Return",
54
+ description: "Normalises the input into the final workflow output object.",
55
+ outputSchema: {},
56
+ },
57
+ }),
58
+ (0, decorator_validation_1.model)()
59
+ ], ReturnFlowNode);
60
+ //# sourceMappingURL=return.js.map
61
+ //# sourceMappingURL=return.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph/nodes/utility/return.cjs","sourceRoot":"","sources":["graph/nodes/utility/return.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;;QAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YAAE,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;gBAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAA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