@decaf-ts/ui-decorators 0.20.8 → 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 (217) 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/document/GraphNodeInstance.d.cts +20 -0
  40. package/lib/types/graph/document/GraphNodeInstance.d.mts +20 -0
  41. package/lib/types/graph/index.d.cts +1 -1
  42. package/lib/types/graph/index.d.mts +1 -1
  43. package/lib/types/graph/reader.d.cts +12 -0
  44. package/lib/types/graph/reader.d.mts +12 -0
  45. package/lib/types/graph/snapshot.d.cts +4 -144
  46. package/lib/types/graph/snapshot.d.mts +4 -144
  47. package/lib/types/graph/types.d.cts +1 -1
  48. package/lib/types/graph/types.d.mts +1 -1
  49. package/lib/types/index.d.cts +3 -3
  50. package/lib/types/index.d.mts +3 -3
  51. package/package.json +1 -1
  52. package/lib/cjs/graph/nodes/agents/agent.cjs +0 -110
  53. package/lib/cjs/graph/nodes/agents/agent.cjs.map +0 -1
  54. package/lib/cjs/graph/nodes/base.cjs +0 -36
  55. package/lib/cjs/graph/nodes/base.cjs.map +0 -1
  56. package/lib/cjs/graph/nodes/boundary/input-value.cjs +0 -57
  57. package/lib/cjs/graph/nodes/boundary/input-value.cjs.map +0 -1
  58. package/lib/cjs/graph/nodes/category-styles.cjs.map +0 -1
  59. package/lib/cjs/graph/nodes/flow-control/break.cjs +0 -63
  60. package/lib/cjs/graph/nodes/flow-control/break.cjs.map +0 -1
  61. package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs +0 -67
  62. package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs.map +0 -1
  63. package/lib/cjs/graph/nodes/flow-control/human-approval.cjs +0 -69
  64. package/lib/cjs/graph/nodes/flow-control/human-approval.cjs.map +0 -1
  65. package/lib/cjs/graph/nodes/flow-control/if.cjs +0 -71
  66. package/lib/cjs/graph/nodes/flow-control/if.cjs.map +0 -1
  67. package/lib/cjs/graph/nodes/flow-control/parallel.cjs +0 -61
  68. package/lib/cjs/graph/nodes/flow-control/parallel.cjs.map +0 -1
  69. package/lib/cjs/graph/nodes/flow-control/switch.cjs +0 -126
  70. package/lib/cjs/graph/nodes/flow-control/switch.cjs.map +0 -1
  71. package/lib/cjs/graph/nodes/index.cjs +0 -123
  72. package/lib/cjs/graph/nodes/index.cjs.map +0 -1
  73. package/lib/cjs/graph/nodes/loops/foreach.cjs +0 -86
  74. package/lib/cjs/graph/nodes/loops/foreach.cjs.map +0 -1
  75. package/lib/cjs/graph/nodes/loops/until.cjs +0 -74
  76. package/lib/cjs/graph/nodes/loops/until.cjs.map +0 -1
  77. package/lib/cjs/graph/nodes/loops/while.cjs +0 -74
  78. package/lib/cjs/graph/nodes/loops/while.cjs.map +0 -1
  79. package/lib/cjs/graph/nodes/manifests.cjs +0 -342
  80. package/lib/cjs/graph/nodes/manifests.cjs.map +0 -1
  81. package/lib/cjs/graph/nodes/triggers/chat.cjs +0 -70
  82. package/lib/cjs/graph/nodes/triggers/chat.cjs.map +0 -1
  83. package/lib/cjs/graph/nodes/triggers/event.cjs +0 -58
  84. package/lib/cjs/graph/nodes/triggers/event.cjs.map +0 -1
  85. package/lib/cjs/graph/nodes/triggers/form.cjs +0 -59
  86. package/lib/cjs/graph/nodes/triggers/form.cjs.map +0 -1
  87. package/lib/cjs/graph/nodes/triggers/manual.cjs +0 -60
  88. package/lib/cjs/graph/nodes/triggers/manual.cjs.map +0 -1
  89. package/lib/cjs/graph/nodes/triggers/schedule.cjs +0 -60
  90. package/lib/cjs/graph/nodes/triggers/schedule.cjs.map +0 -1
  91. package/lib/cjs/graph/nodes/triggers/webhook.cjs +0 -62
  92. package/lib/cjs/graph/nodes/triggers/webhook.cjs.map +0 -1
  93. package/lib/cjs/graph/nodes/utility/code.cjs +0 -99
  94. package/lib/cjs/graph/nodes/utility/code.cjs.map +0 -1
  95. package/lib/cjs/graph/nodes/utility/delay.cjs +0 -61
  96. package/lib/cjs/graph/nodes/utility/delay.cjs.map +0 -1
  97. package/lib/cjs/graph/nodes/utility/log.cjs +0 -62
  98. package/lib/cjs/graph/nodes/utility/log.cjs.map +0 -1
  99. package/lib/cjs/graph/nodes/utility/map.cjs +0 -61
  100. package/lib/cjs/graph/nodes/utility/map.cjs.map +0 -1
  101. package/lib/cjs/graph/nodes/utility/merge.cjs +0 -62
  102. package/lib/cjs/graph/nodes/utility/merge.cjs.map +0 -1
  103. package/lib/cjs/graph/nodes/utility/return.cjs +0 -61
  104. package/lib/cjs/graph/nodes/utility/return.cjs.map +0 -1
  105. package/lib/cjs/graph/nodes/utility/utility-log.cjs +0 -66
  106. package/lib/cjs/graph/nodes/utility/utility-log.cjs.map +0 -1
  107. package/lib/esm/graph/nodes/agents/agent.js +0 -101
  108. package/lib/esm/graph/nodes/agents/agent.js.map +0 -1
  109. package/lib/esm/graph/nodes/base.js +0 -31
  110. package/lib/esm/graph/nodes/base.js.map +0 -1
  111. package/lib/esm/graph/nodes/boundary/input-value.js +0 -48
  112. package/lib/esm/graph/nodes/boundary/input-value.js.map +0 -1
  113. package/lib/esm/graph/nodes/category-styles.js.map +0 -1
  114. package/lib/esm/graph/nodes/flow-control/break.js +0 -54
  115. package/lib/esm/graph/nodes/flow-control/break.js.map +0 -1
  116. package/lib/esm/graph/nodes/flow-control/error-boundary.js +0 -58
  117. package/lib/esm/graph/nodes/flow-control/error-boundary.js.map +0 -1
  118. package/lib/esm/graph/nodes/flow-control/human-approval.js +0 -60
  119. package/lib/esm/graph/nodes/flow-control/human-approval.js.map +0 -1
  120. package/lib/esm/graph/nodes/flow-control/if.js +0 -62
  121. package/lib/esm/graph/nodes/flow-control/if.js.map +0 -1
  122. package/lib/esm/graph/nodes/flow-control/parallel.js +0 -52
  123. package/lib/esm/graph/nodes/flow-control/parallel.js.map +0 -1
  124. package/lib/esm/graph/nodes/flow-control/switch.js +0 -117
  125. package/lib/esm/graph/nodes/flow-control/switch.js.map +0 -1
  126. package/lib/esm/graph/nodes/index.js +0 -105
  127. package/lib/esm/graph/nodes/index.js.map +0 -1
  128. package/lib/esm/graph/nodes/loops/foreach.js +0 -77
  129. package/lib/esm/graph/nodes/loops/foreach.js.map +0 -1
  130. package/lib/esm/graph/nodes/loops/until.js +0 -65
  131. package/lib/esm/graph/nodes/loops/until.js.map +0 -1
  132. package/lib/esm/graph/nodes/loops/while.js +0 -65
  133. package/lib/esm/graph/nodes/loops/while.js.map +0 -1
  134. package/lib/esm/graph/nodes/manifests.js +0 -338
  135. package/lib/esm/graph/nodes/manifests.js.map +0 -1
  136. package/lib/esm/graph/nodes/triggers/chat.js +0 -61
  137. package/lib/esm/graph/nodes/triggers/chat.js.map +0 -1
  138. package/lib/esm/graph/nodes/triggers/event.js +0 -49
  139. package/lib/esm/graph/nodes/triggers/event.js.map +0 -1
  140. package/lib/esm/graph/nodes/triggers/form.js +0 -50
  141. package/lib/esm/graph/nodes/triggers/form.js.map +0 -1
  142. package/lib/esm/graph/nodes/triggers/manual.js +0 -51
  143. package/lib/esm/graph/nodes/triggers/manual.js.map +0 -1
  144. package/lib/esm/graph/nodes/triggers/schedule.js +0 -51
  145. package/lib/esm/graph/nodes/triggers/schedule.js.map +0 -1
  146. package/lib/esm/graph/nodes/triggers/webhook.js +0 -53
  147. package/lib/esm/graph/nodes/triggers/webhook.js.map +0 -1
  148. package/lib/esm/graph/nodes/utility/code.js +0 -90
  149. package/lib/esm/graph/nodes/utility/code.js.map +0 -1
  150. package/lib/esm/graph/nodes/utility/delay.js +0 -52
  151. package/lib/esm/graph/nodes/utility/delay.js.map +0 -1
  152. package/lib/esm/graph/nodes/utility/log.js +0 -53
  153. package/lib/esm/graph/nodes/utility/log.js.map +0 -1
  154. package/lib/esm/graph/nodes/utility/map.js +0 -52
  155. package/lib/esm/graph/nodes/utility/map.js.map +0 -1
  156. package/lib/esm/graph/nodes/utility/merge.js +0 -53
  157. package/lib/esm/graph/nodes/utility/merge.js.map +0 -1
  158. package/lib/esm/graph/nodes/utility/return.js +0 -52
  159. package/lib/esm/graph/nodes/utility/return.js.map +0 -1
  160. package/lib/esm/graph/nodes/utility/utility-log.js +0 -57
  161. package/lib/esm/graph/nodes/utility/utility-log.js.map +0 -1
  162. package/lib/types/graph/nodes/agents/agent.d.cts +0 -44
  163. package/lib/types/graph/nodes/agents/agent.d.mts +0 -44
  164. package/lib/types/graph/nodes/base.d.cts +0 -28
  165. package/lib/types/graph/nodes/base.d.mts +0 -28
  166. package/lib/types/graph/nodes/boundary/input-value.d.cts +0 -13
  167. package/lib/types/graph/nodes/boundary/input-value.d.mts +0 -13
  168. package/lib/types/graph/nodes/flow-control/break.d.cts +0 -15
  169. package/lib/types/graph/nodes/flow-control/break.d.mts +0 -15
  170. package/lib/types/graph/nodes/flow-control/error-boundary.d.cts +0 -12
  171. package/lib/types/graph/nodes/flow-control/error-boundary.d.mts +0 -12
  172. package/lib/types/graph/nodes/flow-control/human-approval.d.cts +0 -13
  173. package/lib/types/graph/nodes/flow-control/human-approval.d.mts +0 -13
  174. package/lib/types/graph/nodes/flow-control/if.d.cts +0 -16
  175. package/lib/types/graph/nodes/flow-control/if.d.mts +0 -16
  176. package/lib/types/graph/nodes/flow-control/parallel.d.cts +0 -11
  177. package/lib/types/graph/nodes/flow-control/parallel.d.mts +0 -11
  178. package/lib/types/graph/nodes/flow-control/switch.d.cts +0 -21
  179. package/lib/types/graph/nodes/flow-control/switch.d.mts +0 -21
  180. package/lib/types/graph/nodes/index.d.cts +0 -79
  181. package/lib/types/graph/nodes/index.d.mts +0 -79
  182. package/lib/types/graph/nodes/loops/foreach.d.cts +0 -19
  183. package/lib/types/graph/nodes/loops/foreach.d.mts +0 -19
  184. package/lib/types/graph/nodes/loops/until.d.cts +0 -16
  185. package/lib/types/graph/nodes/loops/until.d.mts +0 -16
  186. package/lib/types/graph/nodes/loops/while.d.cts +0 -16
  187. package/lib/types/graph/nodes/loops/while.d.mts +0 -16
  188. package/lib/types/graph/nodes/manifests.d.cts +0 -62
  189. package/lib/types/graph/nodes/manifests.d.mts +0 -62
  190. package/lib/types/graph/nodes/triggers/chat.d.cts +0 -13
  191. package/lib/types/graph/nodes/triggers/chat.d.mts +0 -13
  192. package/lib/types/graph/nodes/triggers/event.d.cts +0 -10
  193. package/lib/types/graph/nodes/triggers/event.d.mts +0 -10
  194. package/lib/types/graph/nodes/triggers/form.d.cts +0 -11
  195. package/lib/types/graph/nodes/triggers/form.d.mts +0 -11
  196. package/lib/types/graph/nodes/triggers/manual.d.cts +0 -12
  197. package/lib/types/graph/nodes/triggers/manual.d.mts +0 -12
  198. package/lib/types/graph/nodes/triggers/schedule.d.cts +0 -11
  199. package/lib/types/graph/nodes/triggers/schedule.d.mts +0 -11
  200. package/lib/types/graph/nodes/triggers/webhook.d.cts +0 -11
  201. package/lib/types/graph/nodes/triggers/webhook.d.mts +0 -11
  202. package/lib/types/graph/nodes/utility/code.d.cts +0 -31
  203. package/lib/types/graph/nodes/utility/code.d.mts +0 -31
  204. package/lib/types/graph/nodes/utility/delay.d.cts +0 -11
  205. package/lib/types/graph/nodes/utility/delay.d.mts +0 -11
  206. package/lib/types/graph/nodes/utility/log.d.cts +0 -13
  207. package/lib/types/graph/nodes/utility/log.d.mts +0 -13
  208. package/lib/types/graph/nodes/utility/map.d.cts +0 -11
  209. package/lib/types/graph/nodes/utility/map.d.mts +0 -11
  210. package/lib/types/graph/nodes/utility/merge.d.cts +0 -12
  211. package/lib/types/graph/nodes/utility/merge.d.mts +0 -12
  212. package/lib/types/graph/nodes/utility/return.d.cts +0 -11
  213. package/lib/types/graph/nodes/utility/return.d.mts +0 -11
  214. package/lib/types/graph/nodes/utility/utility-log.d.cts +0 -15
  215. package/lib/types/graph/nodes/utility/utility-log.d.mts +0 -15
  216. /package/lib/types/graph/{nodes/category-styles.d.cts → category-styles.d.cts} +0 -0
  217. /package/lib/types/graph/{nodes/category-styles.d.mts → category-styles.d.mts} +0 -0
@@ -1,53 +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/triggers/webhook
12
- * @summary Webhook trigger node declaration (DECAF-32 §22.2.1).
13
- * @description Webhook trigger — HTTP request received; path/method/auth/
14
- * responseMode config.
15
- */
16
- import { Model, model, required } from "@decaf-ts/decorator-validation";
17
- import { uielement } from "./../../../ui/decorators.js";
18
- import { node, output } from "./../../decorators.js";
19
- // Ensure category styles are registered (idempotent).
20
- import "./../category-styles.js";
21
- let WebhookTriggerNode = class WebhookTriggerNode extends Model {
22
- };
23
- __decorate([
24
- required(),
25
- uielement("textarea", { label: "Request payload", placeholder: "Webhook request body" }),
26
- output({ handle: "payload" }),
27
- __metadata("design:type", Object)
28
- ], WebhookTriggerNode.prototype, "payload", void 0);
29
- WebhookTriggerNode = __decorate([
30
- node("core.trigger.webhook", {
31
- kind: "core.trigger.webhook",
32
- category: "Trigger",
33
- color: "#3b82f6",
34
- icon: "ti-webhook",
35
- width: 96,
36
- height: 96,
37
- labels: ["trigger", "webhook", "http"],
38
- metadata: {
39
- title: "Webhook trigger",
40
- description: "Starts the workflow when an HTTP request is received on the configured path and method.",
41
- trigger: {
42
- type: "webhook",
43
- path: "/webhook",
44
- method: "POST",
45
- auth: "none",
46
- responseMode: "onReceived",
47
- },
48
- },
49
- }),
50
- model()
51
- ], WebhookTriggerNode);
52
- export { WebhookTriggerNode };
53
- //# sourceMappingURL=webhook.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/triggers/webhook.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,IAAI,EAAE,MAAM,EAAE,8BAAyB;AAEhD,sDAAsD;AACtD,iCAA4B;AAuBrB,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,KAAK;CAK5C,CAAA;AADC;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;IACxF,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;;mDACZ;AAJP,kBAAkB;IArB9B,IAAI,CAAC,sBAAsB,EAAE;QAC5B,IAAI,EAAE,sBAAsB;QAC5B,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC;QACtC,QAAQ,EAAE;YACR,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,yFAAyF;YACtG,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,UAAU;gBAChB,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,MAAM;gBACZ,YAAY,EAAE,YAAY;aAC3B;SACF;KACF,CAAC;IACD,KAAK,EAAE;GACK,kBAAkB,CAK9B"}
@@ -1,90 +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/utility/code
12
- * @summary Code utility node declaration (ALFRED-5 §7, DECAF-32 §22.4).
13
- * @description Code — sandboxed JS/TS code execution. The engine's
14
- * `CodeGraphNodeExecutor` delegates to the pluggable `CodeSandboxEvaluator`.
15
- * The default `IsolatedVmCodeSandboxEvaluator` (backed by `isolated-vm`)
16
- * enforces the Code Node restrictions: no imports, no requires, pure
17
- * functions only. The sandbox context exposes `$input`, `$vars`, `$item`,
18
- * `$index`, `$node`, and `$output` as data variables. TypeScript is
19
- * supported via transpilation.
20
- *
21
- * The `@input` on `CodeFlowNode.input` is a schema group — the nested
22
- * model's `@input` ports are spliced into the parent unprefixed. `code` has
23
- * `@input` + `@uielement("code-editor")`, so it appears as a port AND in the
24
- * CRUD modal (the only visible field). `data` has `@input` + `@hidden()` but
25
- * no `@uielement`, so it is a canvas-only port (for edge connections from
26
- * workflow input badges) but never appears in the CRUD modal. `language` has
27
- * no `@input` and no `@uielement`, so it is neither a port nor rendered — it
28
- * defaults to `"javascript"`.
29
- */
30
- import { Model, model, required } from "@decaf-ts/decorator-validation";
31
- import { hidden, uielement } from "./../../../ui/decorators.js";
32
- import { input, node, output } from "./../../decorators.js";
33
- // Ensure category styles are registered (idempotent).
34
- import "./../category-styles.js";
35
- let CodeInputSchema = class CodeInputSchema extends Model {
36
- constructor() {
37
- super(...arguments);
38
- this.language = "javascript";
39
- }
40
- };
41
- __decorate([
42
- required(),
43
- __metadata("design:type", String)
44
- ], CodeInputSchema.prototype, "language", void 0);
45
- __decorate([
46
- required(),
47
- uielement("code-editor", { label: "Code", placeholder: "// User-authored JS code" }),
48
- input({ handle: "code" }),
49
- __metadata("design:type", String)
50
- ], CodeInputSchema.prototype, "code", void 0);
51
- __decorate([
52
- hidden(),
53
- input({ handle: "data" }),
54
- __metadata("design:type", Object)
55
- ], CodeInputSchema.prototype, "data", void 0);
56
- CodeInputSchema = __decorate([
57
- model()
58
- ], CodeInputSchema);
59
- export { CodeInputSchema };
60
- let CodeFlowNode = class CodeFlowNode extends Model {
61
- };
62
- __decorate([
63
- required(),
64
- input({ handle: "input", model: CodeInputSchema }),
65
- __metadata("design:type", CodeInputSchema)
66
- ], CodeFlowNode.prototype, "input", void 0);
67
- __decorate([
68
- required(),
69
- output({ handle: "result" }),
70
- __metadata("design:type", Object)
71
- ], CodeFlowNode.prototype, "result", void 0);
72
- CodeFlowNode = __decorate([
73
- node("core.flow.code", {
74
- kind: "core.flow.code",
75
- category: "Utility",
76
- color: "#0d9488",
77
- icon: "ti-code",
78
- width: 96,
79
- height: 96,
80
- labels: ["flow", "code", "sandbox", "transform"],
81
- metadata: {
82
- title: "Code",
83
- description: "Runs user-authored JS/TS in a restricted VM sandbox. Supports placeholder syntax for workflow data references.",
84
- timeoutMs: 1000,
85
- },
86
- }),
87
- model()
88
- ], CodeFlowNode);
89
- export { CodeFlowNode };
90
- //# sourceMappingURL=code.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"code.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/utility/code.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,oCAA+B;AAC3D,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,8BAAyB;AAEvD,sDAAsD;AACtD,iCAA4B;AAGrB,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,KAAK;IAAnC;;QAEL,aAAQ,GAAW,YAAY,CAAC;IAUlC,CAAC;CAAA,CAAA;AAVC;IADC,QAAQ,EAAE;;iDACqB;AAKhC;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;IACpF,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;;6CACZ;AAId;IAFC,MAAM,EAAE;IACR,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;;6CACX;AAXJ,eAAe;IAD3B,KAAK,EAAE;GACK,eAAe,CAY3B;;AAiBM,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,KAAK;CAQtC,CAAA;AALC;IAFC,QAAQ,EAAE;IACV,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;8BAC3C,eAAe;2CAAC;AAIxB;IAFC,QAAQ,EAAE;IACV,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;;4CACZ;AAPN,YAAY;IAfxB,IAAI,CAAC,gBAAgB,EAAE;QACtB,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;YACR,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,gHAAgH;YAC7H,SAAS,EAAE,IAAI;SAChB;KACF,CAAC;IACD,KAAK,EAAE;GACK,YAAY,CAQxB"}
@@ -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/utility/delay
12
- * @summary Delay utility node declaration (DECAF-32 §22.2.2).
13
- * @description Delay — pauses execution for a configured duration.
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 DelayFlowNode = class DelayFlowNode extends Model {
21
- };
22
- __decorate([
23
- required(),
24
- uielement("textarea", { label: "Input value", placeholder: "Value to forward after delay" }),
25
- input({ handle: "value" }),
26
- __metadata("design:type", Object)
27
- ], DelayFlowNode.prototype, "value", void 0);
28
- __decorate([
29
- required(),
30
- uielement("input", { label: "Output value", placeholder: "Forwarded value" }),
31
- output({ handle: "value" }),
32
- __metadata("design:type", Object)
33
- ], DelayFlowNode.prototype, "valueOut", void 0);
34
- DelayFlowNode = __decorate([
35
- node("core.flow.delay", {
36
- kind: "core.flow.delay",
37
- category: "Utility",
38
- color: "#0d9488",
39
- icon: "ti-clock-hour-4",
40
- width: 96,
41
- height: 96,
42
- labels: ["flow", "delay", "wait"],
43
- metadata: {
44
- title: "Delay",
45
- description: "Pauses execution for the configured duration (in milliseconds), then forwards the input unchanged.",
46
- durationMs: 1000,
47
- },
48
- }),
49
- model()
50
- ], DelayFlowNode);
51
- export { DelayFlowNode };
52
- //# sourceMappingURL=delay.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delay.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/utility/delay.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,aAAa,GAAnB,MAAM,aAAc,SAAQ,KAAK;CAUvC,CAAA;AANC;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC;IAC5F,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;4CACX;AAKhB;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;IAC7E,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;+CACT;AATR,aAAa;IAfzB,IAAI,CAAC,iBAAiB,EAAE;QACvB,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;YACR,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,oGAAoG;YACjH,UAAU,EAAE,IAAI;SACjB;KACF,CAAC;IACD,KAAK,EAAE;GACK,aAAa,CAUzB"}
@@ -1,53 +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/utility/log
12
- * @summary Log utility node declaration (DECAF-32 §22.2.2).
13
- * @description Log — logs the input value and forwards it unchanged on the
14
- * `logged` output port. Useful for debugging, audit trails, and
15
- * discard/side-effect branches in a workflow.
16
- */
17
- import { Model, model, required } from "@decaf-ts/decorator-validation";
18
- import { uielement } from "./../../../ui/decorators.js";
19
- import { input, node, output } from "./../../decorators.js";
20
- // Ensure category styles are registered (idempotent).
21
- import "./../category-styles.js";
22
- let LogFlowNode = class LogFlowNode extends Model {
23
- };
24
- __decorate([
25
- required(),
26
- uielement("textarea", { label: "Input value", placeholder: "Value to log" }),
27
- input({ handle: "value" }),
28
- __metadata("design:type", Object)
29
- ], LogFlowNode.prototype, "value", void 0);
30
- __decorate([
31
- required(),
32
- uielement("input", { label: "Logged value", placeholder: "Forwarded value" }),
33
- output({ handle: "logged" }),
34
- __metadata("design:type", Object)
35
- ], LogFlowNode.prototype, "logged", void 0);
36
- LogFlowNode = __decorate([
37
- node("core.flow.log", {
38
- kind: "core.flow.log",
39
- category: "Utility",
40
- color: "#0d9488",
41
- icon: "ti-terminal",
42
- width: 96,
43
- height: 96,
44
- labels: ["flow", "log", "debug", "utility"],
45
- metadata: {
46
- title: "Log",
47
- description: "Logs the input value to the execution logger and forwards it unchanged.",
48
- },
49
- }),
50
- model()
51
- ], LogFlowNode);
52
- export { LogFlowNode };
53
- //# sourceMappingURL=log.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"log.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/utility/log.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;GAMG;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,WAAW,GAAjB,MAAM,WAAY,SAAQ,KAAK;CAUrC,CAAA;AANC;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;IAC5E,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;0CACX;AAKhB;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;IAC7E,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;;2CACZ;AATN,WAAW;IAdvB,IAAI,CAAC,eAAe,EAAE;QACrB,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;YACR,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,yEAAyE;SACvF;KACF,CAAC;IACD,KAAK,EAAE;GACK,WAAW,CAUvB"}
@@ -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/utility/map
12
- * @summary Map utility node declaration (DECAF-32 §22.2.2).
13
- * @description Map — transforms the current input into a new output object.
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 MapFlowNode = class MapFlowNode extends Model {
21
- };
22
- __decorate([
23
- required(),
24
- uielement("textarea", { label: "Input value", placeholder: "Value to transform" }),
25
- input({ handle: "value" }),
26
- __metadata("design:type", Object)
27
- ], MapFlowNode.prototype, "value", void 0);
28
- __decorate([
29
- required(),
30
- uielement("input", { label: "Transformed output", placeholder: "Mapped result" }),
31
- output({ handle: "result" }),
32
- __metadata("design:type", Object)
33
- ], MapFlowNode.prototype, "result", void 0);
34
- MapFlowNode = __decorate([
35
- node("core.flow.map", {
36
- kind: "core.flow.map",
37
- category: "Utility",
38
- color: "#0d9488",
39
- icon: "ti-arrows-right-left",
40
- width: 96,
41
- height: 96,
42
- labels: ["flow", "map", "transform"],
43
- metadata: {
44
- title: "Map",
45
- description: "Transforms the current input into a new output object using the configured mapper.",
46
- mapper: {},
47
- },
48
- }),
49
- model()
50
- ], MapFlowNode);
51
- export { MapFlowNode };
52
- //# sourceMappingURL=map.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"map.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/utility/map.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,WAAW,GAAjB,MAAM,WAAY,SAAQ,KAAK;CAUrC,CAAA;AANC;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;IAClF,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;0CACX;AAKhB;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;IACjF,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;;2CACZ;AATN,WAAW;IAfvB,IAAI,CAAC,eAAe,EAAE;QACrB,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,sBAAsB;QAC5B,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,WAAW,CAAC;QACpC,QAAQ,EAAE;YACR,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,oFAAoF;YACjG,MAAM,EAAE,EAAE;SACX;KACF,CAAC;IACD,KAAK,EAAE;GACK,WAAW,CAUvB"}
@@ -1,53 +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/utility/merge
12
- * @summary Merge utility node declaration (DECAF-32 §22.2.2).
13
- * @description Merge — normalises branch/parallel outputs into a single
14
- * output.
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 MergeFlowNode = class MergeFlowNode extends Model {
22
- };
23
- __decorate([
24
- required(),
25
- uielement("textarea", { label: "Branch outputs", placeholder: "Outputs to merge" }),
26
- input({ handle: "values" }),
27
- __metadata("design:type", Array)
28
- ], MergeFlowNode.prototype, "values", void 0);
29
- __decorate([
30
- required(),
31
- uielement("input", { label: "Merged output", placeholder: "Merged result" }),
32
- output({ handle: "merged" }),
33
- __metadata("design:type", Object)
34
- ], MergeFlowNode.prototype, "merged", void 0);
35
- MergeFlowNode = __decorate([
36
- node("core.flow.merge", {
37
- kind: "core.flow.merge",
38
- category: "Utility",
39
- color: "#0d9488",
40
- icon: "ti-arrows-merge",
41
- width: 96,
42
- height: 96,
43
- labels: ["flow", "merge", "join"],
44
- metadata: {
45
- title: "Merge",
46
- description: "Merges multiple branch outputs into a single normalised output object.",
47
- strategy: "concat",
48
- },
49
- }),
50
- model()
51
- ], MergeFlowNode);
52
- export { MergeFlowNode };
53
- //# sourceMappingURL=merge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"merge.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/utility/merge.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;AAiBrB,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,KAAK;CAUvC,CAAA;AANC;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;IACnF,KAAK,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;;6CACT;AAKnB;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;IAC5E,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;;6CACZ;AATN,aAAa;IAfzB,IAAI,CAAC,iBAAiB,EAAE;QACvB,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;YACR,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,wEAAwE;YACrF,QAAQ,EAAE,QAAQ;SACnB;KACF,CAAC;IACD,KAAK,EAAE;GACK,aAAa,CAUzB"}
@@ -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/utility/return
12
- * @summary Return utility node declaration (DECAF-32 §22.2.2).
13
- * @description Return — defines and normalises the final workflow output.
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 ReturnFlowNode = class ReturnFlowNode extends Model {
21
- };
22
- __decorate([
23
- required(),
24
- uielement("textarea", { label: "Input value", placeholder: "Value to normalise" }),
25
- input({ handle: "value" }),
26
- __metadata("design:type", Object)
27
- ], ReturnFlowNode.prototype, "value", void 0);
28
- __decorate([
29
- required(),
30
- uielement("input", { label: "Returned output", placeholder: "Normalised output" }),
31
- output({ handle: "result" }),
32
- __metadata("design:type", Object)
33
- ], ReturnFlowNode.prototype, "result", void 0);
34
- ReturnFlowNode = __decorate([
35
- node("core.flow.return", {
36
- kind: "core.flow.return",
37
- category: "Utility",
38
- color: "#0d9488",
39
- icon: "ti-arrow-back-up",
40
- width: 96,
41
- height: 96,
42
- labels: ["flow", "return", "output"],
43
- metadata: {
44
- title: "Return",
45
- description: "Normalises the input into the final workflow output object.",
46
- outputSchema: {},
47
- },
48
- }),
49
- model()
50
- ], ReturnFlowNode);
51
- export { ReturnFlowNode };
52
- //# sourceMappingURL=return.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"return.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/utility/return.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,cAAc,GAApB,MAAM,cAAe,SAAQ,KAAK;CAUxC,CAAA;AANC;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;IAClF,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;6CACX;AAKhB;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;IAClF,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;;8CACZ;AATN,cAAc;IAf1B,IAAI,CAAC,kBAAkB,EAAE;QACxB,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC;QACpC,QAAQ,EAAE;YACR,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,6DAA6D;YAC1E,YAAY,EAAE,EAAE;SACjB;KACF,CAAC;IACD,KAAK,EAAE;GACK,cAAc,CAU1B"}
@@ -1,57 +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/utility/utility-log
12
- * @summary Utility Log node declaration (DECAF-48 §4.3).
13
- * @description Utility Log — logs the input value through the run's
14
- * `ctx.logger` at a configurable level and forwards it unchanged on the
15
- * `logged` output port.
16
- */
17
- import { Model, model, required } from "@decaf-ts/decorator-validation";
18
- import { uielement } from "./../../../ui/decorators.js";
19
- import { input, node, output } from "./../../decorators.js";
20
- // Ensure category styles are registered (idempotent).
21
- import "./../category-styles.js";
22
- let UtilityLogNode = class UtilityLogNode extends Model {
23
- };
24
- __decorate([
25
- required(),
26
- uielement("textarea", { label: "Input value", placeholder: "Value to log" }),
27
- input({ handle: "value" }),
28
- __metadata("design:type", Object)
29
- ], UtilityLogNode.prototype, "value", void 0);
30
- __decorate([
31
- uielement("input", { label: "Log level", placeholder: "info, warn, error, ..." }),
32
- __metadata("design:type", String)
33
- ], UtilityLogNode.prototype, "level", void 0);
34
- __decorate([
35
- required(),
36
- uielement("input", { label: "Logged value", placeholder: "Forwarded value" }),
37
- output({ handle: "logged" }),
38
- __metadata("design:type", Object)
39
- ], UtilityLogNode.prototype, "logged", void 0);
40
- UtilityLogNode = __decorate([
41
- node("core.utility.log", {
42
- kind: "core.utility.log",
43
- category: "Utility",
44
- color: "#0d9488",
45
- icon: "ti-terminal",
46
- width: 96,
47
- height: 96,
48
- labels: ["utility", "log", "debug", "observability"],
49
- metadata: {
50
- title: "Utility Log",
51
- description: "Logs the input value to the run's ctx.logger at a configurable level and forwards it unchanged.",
52
- },
53
- }),
54
- model()
55
- ], UtilityLogNode);
56
- export { UtilityLogNode };
57
- //# sourceMappingURL=utility-log.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utility-log.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/utility/utility-log.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;GAMG;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;AAGvD,sDAAsD;AACtD,iCAA4B;AAgBrB,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,KAAK;CAaxC,CAAA;AATC;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;IAC5E,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;6CACX;AAGhB;IADC,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;;6CAC7D;AAKrB;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;IAC7E,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;;8CACZ;AAZN,cAAc;IAd1B,IAAI,CAAC,kBAAkB,EAAE;QACxB,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;YACR,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,iGAAiG;SAC/G;KACF,CAAC;IACD,KAAK,EAAE;GACK,cAAc,CAa1B"}
@@ -1,44 +0,0 @@
1
- /**
2
- * @module ui-decorators/graph/nodes/agents/agent
3
- * @summary Production Agent node declaration.
4
- * @description The Agent node is the primary AI agent entrypoint. It is a
5
- * rectangular node with `@connection()` ports for its structural
6
- * dependencies: `model` (the LLM), `memory` (the memory store), and
7
- * `workspace` (the workspace/context). Connections are rendered on the
8
- * bottom side of the node (DECAF-32 §21.3). Each connection category has a
9
- * distinct color defined in the category style registry.
10
- *
11
- * The single `prompt` input accepts placeholder expressions (§22.4) such as
12
- * `{{ $input.brief }}` or `{{ $node["Research"].output.summary }}` that are
13
- * resolved at execution time by the placeholder compiler.
14
- */
15
- import { Model } from "@decaf-ts/decorator-validation";
16
- import "../category-styles";
17
- /**
18
- * Agent node — an AI agent that orchestrates a model, memory, and workspace.
19
- *
20
- * The agent has:
21
- * - `@input` port on the **left**: `prompt` (the task prompt; supports
22
- * placeholder expressions like `{{ $input.something }}` per §22.4).
23
- * - `@output` ports on the **right**: `response` (the agent's output), `actions`
24
- * (any actions the agent decided to take).
25
- * - `@connection` ports on the **bottom**: `model` (LLM), `memory` (memory
26
- * store), `workspace` (workspace/context). Each connection has a distinct
27
- * category color.
28
- *
29
- * The node is rectangular (not rounded) to visually distinguish it from
30
- * regular processing nodes. The `color` and `icon` are omitted from `@node()`
31
- * so they are resolved from the `"Agent"` category style.
32
- */
33
- export declare class AgentNode extends Model {
34
- prompt: string;
35
- response: string;
36
- actions: unknown[];
37
- model: unknown;
38
- memory: unknown;
39
- workspace: unknown;
40
- }
41
- /**
42
- * All built-in agent node constructors.
43
- */
44
- export declare const GRAPH_AGENT_NODES: readonly [typeof AgentNode];
@@ -1,44 +0,0 @@
1
- /**
2
- * @module ui-decorators/graph/nodes/agents/agent
3
- * @summary Production Agent node declaration.
4
- * @description The Agent node is the primary AI agent entrypoint. It is a
5
- * rectangular node with `@connection()` ports for its structural
6
- * dependencies: `model` (the LLM), `memory` (the memory store), and
7
- * `workspace` (the workspace/context). Connections are rendered on the
8
- * bottom side of the node (DECAF-32 §21.3). Each connection category has a
9
- * distinct color defined in the category style registry.
10
- *
11
- * The single `prompt` input accepts placeholder expressions (§22.4) such as
12
- * `{{ $input.brief }}` or `{{ $node["Research"].output.summary }}` that are
13
- * resolved at execution time by the placeholder compiler.
14
- */
15
- import { Model } from "@decaf-ts/decorator-validation";
16
- import "../category-styles";
17
- /**
18
- * Agent node — an AI agent that orchestrates a model, memory, and workspace.
19
- *
20
- * The agent has:
21
- * - `@input` port on the **left**: `prompt` (the task prompt; supports
22
- * placeholder expressions like `{{ $input.something }}` per §22.4).
23
- * - `@output` ports on the **right**: `response` (the agent's output), `actions`
24
- * (any actions the agent decided to take).
25
- * - `@connection` ports on the **bottom**: `model` (LLM), `memory` (memory
26
- * store), `workspace` (workspace/context). Each connection has a distinct
27
- * category color.
28
- *
29
- * The node is rectangular (not rounded) to visually distinguish it from
30
- * regular processing nodes. The `color` and `icon` are omitted from `@node()`
31
- * so they are resolved from the `"Agent"` category style.
32
- */
33
- export declare class AgentNode extends Model {
34
- prompt: string;
35
- response: string;
36
- actions: unknown[];
37
- model: unknown;
38
- memory: unknown;
39
- workspace: unknown;
40
- }
41
- /**
42
- * All built-in agent node constructors.
43
- */
44
- export declare const GRAPH_AGENT_NODES: readonly [typeof AgentNode];
@@ -1,28 +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
- import type { NodeMetadataChange } from "../types.d.cts";
12
- export declare class GraphNode extends Model {
13
- /**
14
- * Applies a metadata patch to this node class, returning the resulting
15
- * ports, size, and data patches.
16
- *
17
- * The default implementation returns `null` (no changes). Concrete node
18
- * kinds that support dynamic metadata override this to compute their own
19
- * ports and size from the metadata — the caller (renderer) simply relays
20
- * the result to the diagram model.
21
- *
22
- * @param _meta - The metadata patch (node-kind-specific, e.g.
23
- * `SwitchNodeMetadata`).
24
- * @returns The computed change, or `null` when the node kind does not
25
- * support dynamic metadata.
26
- */
27
- static applyMetadata(_meta: unknown): NodeMetadataChange | null;
28
- }