@decaf-ts/ui-decorators 0.20.9 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/dist/ui-decorators.cjs +1 -1
  2. package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs +19 -0
  3. package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs.map +1 -1
  4. package/lib/cjs/graph/catalog/GraphPortManifestElement.cjs +15 -0
  5. package/lib/cjs/graph/catalog/GraphPortManifestElement.cjs.map +1 -0
  6. package/lib/cjs/graph/catalog/index.cjs +1 -0
  7. package/lib/cjs/graph/catalog/index.cjs.map +1 -1
  8. package/lib/cjs/graph/{nodes/category-styles.cjs → category-styles.cjs} +2 -2
  9. package/lib/cjs/graph/category-styles.cjs.map +1 -0
  10. package/lib/cjs/graph/index.cjs +1 -1
  11. package/lib/cjs/graph/index.cjs.map +1 -1
  12. package/lib/cjs/graph/reader.cjs +26 -0
  13. package/lib/cjs/graph/reader.cjs.map +1 -1
  14. package/lib/cjs/graph/snapshot.cjs +0 -691
  15. package/lib/cjs/graph/snapshot.cjs.map +1 -1
  16. package/lib/cjs/index.cjs +3 -3
  17. package/lib/esm/graph/catalog/GraphManifestCompiler.js +20 -1
  18. package/lib/esm/graph/catalog/GraphManifestCompiler.js.map +1 -1
  19. package/lib/esm/graph/catalog/GraphPortManifest.js.map +1 -1
  20. package/lib/esm/graph/catalog/GraphPortManifestElement.js +11 -0
  21. package/lib/esm/graph/catalog/GraphPortManifestElement.js.map +1 -0
  22. package/lib/esm/graph/catalog/index.js +1 -0
  23. package/lib/esm/graph/catalog/index.js.map +1 -1
  24. package/lib/esm/graph/{nodes/category-styles.js → category-styles.js} +2 -2
  25. package/lib/esm/graph/category-styles.js.map +1 -0
  26. package/lib/esm/graph/index.js +1 -1
  27. package/lib/esm/graph/index.js.map +1 -1
  28. package/lib/esm/graph/reader.js +25 -0
  29. package/lib/esm/graph/reader.js.map +1 -1
  30. package/lib/esm/graph/snapshot.js +1 -679
  31. package/lib/esm/graph/snapshot.js.map +1 -1
  32. package/lib/esm/index.js +3 -3
  33. package/lib/types/graph/catalog/GraphPortManifest.d.cts +2 -0
  34. package/lib/types/graph/catalog/GraphPortManifest.d.mts +2 -0
  35. package/lib/types/graph/catalog/GraphPortManifestElement.d.cts +7 -0
  36. package/lib/types/graph/catalog/GraphPortManifestElement.d.mts +7 -0
  37. package/lib/types/graph/catalog/index.d.cts +1 -0
  38. package/lib/types/graph/catalog/index.d.mts +1 -0
  39. package/lib/types/graph/index.d.cts +1 -1
  40. package/lib/types/graph/index.d.mts +1 -1
  41. package/lib/types/graph/reader.d.cts +12 -0
  42. package/lib/types/graph/reader.d.mts +12 -0
  43. package/lib/types/graph/snapshot.d.cts +4 -144
  44. package/lib/types/graph/snapshot.d.mts +4 -144
  45. package/lib/types/graph/types.d.cts +1 -1
  46. package/lib/types/graph/types.d.mts +1 -1
  47. package/lib/types/index.d.cts +3 -3
  48. package/lib/types/index.d.mts +3 -3
  49. package/package.json +1 -1
  50. package/lib/cjs/graph/nodes/agents/agent.cjs +0 -110
  51. package/lib/cjs/graph/nodes/agents/agent.cjs.map +0 -1
  52. package/lib/cjs/graph/nodes/base.cjs +0 -36
  53. package/lib/cjs/graph/nodes/base.cjs.map +0 -1
  54. package/lib/cjs/graph/nodes/boundary/input-value.cjs +0 -57
  55. package/lib/cjs/graph/nodes/boundary/input-value.cjs.map +0 -1
  56. package/lib/cjs/graph/nodes/category-styles.cjs.map +0 -1
  57. package/lib/cjs/graph/nodes/flow-control/break.cjs +0 -63
  58. package/lib/cjs/graph/nodes/flow-control/break.cjs.map +0 -1
  59. package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs +0 -67
  60. package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs.map +0 -1
  61. package/lib/cjs/graph/nodes/flow-control/human-approval.cjs +0 -69
  62. package/lib/cjs/graph/nodes/flow-control/human-approval.cjs.map +0 -1
  63. package/lib/cjs/graph/nodes/flow-control/if.cjs +0 -71
  64. package/lib/cjs/graph/nodes/flow-control/if.cjs.map +0 -1
  65. package/lib/cjs/graph/nodes/flow-control/parallel.cjs +0 -61
  66. package/lib/cjs/graph/nodes/flow-control/parallel.cjs.map +0 -1
  67. package/lib/cjs/graph/nodes/flow-control/switch.cjs +0 -126
  68. package/lib/cjs/graph/nodes/flow-control/switch.cjs.map +0 -1
  69. package/lib/cjs/graph/nodes/index.cjs +0 -123
  70. package/lib/cjs/graph/nodes/index.cjs.map +0 -1
  71. package/lib/cjs/graph/nodes/loops/foreach.cjs +0 -86
  72. package/lib/cjs/graph/nodes/loops/foreach.cjs.map +0 -1
  73. package/lib/cjs/graph/nodes/loops/until.cjs +0 -74
  74. package/lib/cjs/graph/nodes/loops/until.cjs.map +0 -1
  75. package/lib/cjs/graph/nodes/loops/while.cjs +0 -74
  76. package/lib/cjs/graph/nodes/loops/while.cjs.map +0 -1
  77. package/lib/cjs/graph/nodes/manifests.cjs +0 -342
  78. package/lib/cjs/graph/nodes/manifests.cjs.map +0 -1
  79. package/lib/cjs/graph/nodes/triggers/chat.cjs +0 -70
  80. package/lib/cjs/graph/nodes/triggers/chat.cjs.map +0 -1
  81. package/lib/cjs/graph/nodes/triggers/event.cjs +0 -58
  82. package/lib/cjs/graph/nodes/triggers/event.cjs.map +0 -1
  83. package/lib/cjs/graph/nodes/triggers/form.cjs +0 -59
  84. package/lib/cjs/graph/nodes/triggers/form.cjs.map +0 -1
  85. package/lib/cjs/graph/nodes/triggers/manual.cjs +0 -60
  86. package/lib/cjs/graph/nodes/triggers/manual.cjs.map +0 -1
  87. package/lib/cjs/graph/nodes/triggers/schedule.cjs +0 -60
  88. package/lib/cjs/graph/nodes/triggers/schedule.cjs.map +0 -1
  89. package/lib/cjs/graph/nodes/triggers/webhook.cjs +0 -62
  90. package/lib/cjs/graph/nodes/triggers/webhook.cjs.map +0 -1
  91. package/lib/cjs/graph/nodes/utility/code.cjs +0 -99
  92. package/lib/cjs/graph/nodes/utility/code.cjs.map +0 -1
  93. package/lib/cjs/graph/nodes/utility/delay.cjs +0 -61
  94. package/lib/cjs/graph/nodes/utility/delay.cjs.map +0 -1
  95. package/lib/cjs/graph/nodes/utility/log.cjs +0 -62
  96. package/lib/cjs/graph/nodes/utility/log.cjs.map +0 -1
  97. package/lib/cjs/graph/nodes/utility/map.cjs +0 -61
  98. package/lib/cjs/graph/nodes/utility/map.cjs.map +0 -1
  99. package/lib/cjs/graph/nodes/utility/merge.cjs +0 -62
  100. package/lib/cjs/graph/nodes/utility/merge.cjs.map +0 -1
  101. package/lib/cjs/graph/nodes/utility/return.cjs +0 -61
  102. package/lib/cjs/graph/nodes/utility/return.cjs.map +0 -1
  103. package/lib/cjs/graph/nodes/utility/utility-log.cjs +0 -66
  104. package/lib/cjs/graph/nodes/utility/utility-log.cjs.map +0 -1
  105. package/lib/esm/graph/nodes/agents/agent.js +0 -101
  106. package/lib/esm/graph/nodes/agents/agent.js.map +0 -1
  107. package/lib/esm/graph/nodes/base.js +0 -31
  108. package/lib/esm/graph/nodes/base.js.map +0 -1
  109. package/lib/esm/graph/nodes/boundary/input-value.js +0 -48
  110. package/lib/esm/graph/nodes/boundary/input-value.js.map +0 -1
  111. package/lib/esm/graph/nodes/category-styles.js.map +0 -1
  112. package/lib/esm/graph/nodes/flow-control/break.js +0 -54
  113. package/lib/esm/graph/nodes/flow-control/break.js.map +0 -1
  114. package/lib/esm/graph/nodes/flow-control/error-boundary.js +0 -58
  115. package/lib/esm/graph/nodes/flow-control/error-boundary.js.map +0 -1
  116. package/lib/esm/graph/nodes/flow-control/human-approval.js +0 -60
  117. package/lib/esm/graph/nodes/flow-control/human-approval.js.map +0 -1
  118. package/lib/esm/graph/nodes/flow-control/if.js +0 -62
  119. package/lib/esm/graph/nodes/flow-control/if.js.map +0 -1
  120. package/lib/esm/graph/nodes/flow-control/parallel.js +0 -52
  121. package/lib/esm/graph/nodes/flow-control/parallel.js.map +0 -1
  122. package/lib/esm/graph/nodes/flow-control/switch.js +0 -117
  123. package/lib/esm/graph/nodes/flow-control/switch.js.map +0 -1
  124. package/lib/esm/graph/nodes/index.js +0 -105
  125. package/lib/esm/graph/nodes/index.js.map +0 -1
  126. package/lib/esm/graph/nodes/loops/foreach.js +0 -77
  127. package/lib/esm/graph/nodes/loops/foreach.js.map +0 -1
  128. package/lib/esm/graph/nodes/loops/until.js +0 -65
  129. package/lib/esm/graph/nodes/loops/until.js.map +0 -1
  130. package/lib/esm/graph/nodes/loops/while.js +0 -65
  131. package/lib/esm/graph/nodes/loops/while.js.map +0 -1
  132. package/lib/esm/graph/nodes/manifests.js +0 -338
  133. package/lib/esm/graph/nodes/manifests.js.map +0 -1
  134. package/lib/esm/graph/nodes/triggers/chat.js +0 -61
  135. package/lib/esm/graph/nodes/triggers/chat.js.map +0 -1
  136. package/lib/esm/graph/nodes/triggers/event.js +0 -49
  137. package/lib/esm/graph/nodes/triggers/event.js.map +0 -1
  138. package/lib/esm/graph/nodes/triggers/form.js +0 -50
  139. package/lib/esm/graph/nodes/triggers/form.js.map +0 -1
  140. package/lib/esm/graph/nodes/triggers/manual.js +0 -51
  141. package/lib/esm/graph/nodes/triggers/manual.js.map +0 -1
  142. package/lib/esm/graph/nodes/triggers/schedule.js +0 -51
  143. package/lib/esm/graph/nodes/triggers/schedule.js.map +0 -1
  144. package/lib/esm/graph/nodes/triggers/webhook.js +0 -53
  145. package/lib/esm/graph/nodes/triggers/webhook.js.map +0 -1
  146. package/lib/esm/graph/nodes/utility/code.js +0 -90
  147. package/lib/esm/graph/nodes/utility/code.js.map +0 -1
  148. package/lib/esm/graph/nodes/utility/delay.js +0 -52
  149. package/lib/esm/graph/nodes/utility/delay.js.map +0 -1
  150. package/lib/esm/graph/nodes/utility/log.js +0 -53
  151. package/lib/esm/graph/nodes/utility/log.js.map +0 -1
  152. package/lib/esm/graph/nodes/utility/map.js +0 -52
  153. package/lib/esm/graph/nodes/utility/map.js.map +0 -1
  154. package/lib/esm/graph/nodes/utility/merge.js +0 -53
  155. package/lib/esm/graph/nodes/utility/merge.js.map +0 -1
  156. package/lib/esm/graph/nodes/utility/return.js +0 -52
  157. package/lib/esm/graph/nodes/utility/return.js.map +0 -1
  158. package/lib/esm/graph/nodes/utility/utility-log.js +0 -57
  159. package/lib/esm/graph/nodes/utility/utility-log.js.map +0 -1
  160. package/lib/types/graph/nodes/agents/agent.d.cts +0 -44
  161. package/lib/types/graph/nodes/agents/agent.d.mts +0 -44
  162. package/lib/types/graph/nodes/base.d.cts +0 -28
  163. package/lib/types/graph/nodes/base.d.mts +0 -28
  164. package/lib/types/graph/nodes/boundary/input-value.d.cts +0 -13
  165. package/lib/types/graph/nodes/boundary/input-value.d.mts +0 -13
  166. package/lib/types/graph/nodes/flow-control/break.d.cts +0 -15
  167. package/lib/types/graph/nodes/flow-control/break.d.mts +0 -15
  168. package/lib/types/graph/nodes/flow-control/error-boundary.d.cts +0 -12
  169. package/lib/types/graph/nodes/flow-control/error-boundary.d.mts +0 -12
  170. package/lib/types/graph/nodes/flow-control/human-approval.d.cts +0 -13
  171. package/lib/types/graph/nodes/flow-control/human-approval.d.mts +0 -13
  172. package/lib/types/graph/nodes/flow-control/if.d.cts +0 -16
  173. package/lib/types/graph/nodes/flow-control/if.d.mts +0 -16
  174. package/lib/types/graph/nodes/flow-control/parallel.d.cts +0 -11
  175. package/lib/types/graph/nodes/flow-control/parallel.d.mts +0 -11
  176. package/lib/types/graph/nodes/flow-control/switch.d.cts +0 -21
  177. package/lib/types/graph/nodes/flow-control/switch.d.mts +0 -21
  178. package/lib/types/graph/nodes/index.d.cts +0 -79
  179. package/lib/types/graph/nodes/index.d.mts +0 -79
  180. package/lib/types/graph/nodes/loops/foreach.d.cts +0 -19
  181. package/lib/types/graph/nodes/loops/foreach.d.mts +0 -19
  182. package/lib/types/graph/nodes/loops/until.d.cts +0 -16
  183. package/lib/types/graph/nodes/loops/until.d.mts +0 -16
  184. package/lib/types/graph/nodes/loops/while.d.cts +0 -16
  185. package/lib/types/graph/nodes/loops/while.d.mts +0 -16
  186. package/lib/types/graph/nodes/manifests.d.cts +0 -62
  187. package/lib/types/graph/nodes/manifests.d.mts +0 -62
  188. package/lib/types/graph/nodes/triggers/chat.d.cts +0 -13
  189. package/lib/types/graph/nodes/triggers/chat.d.mts +0 -13
  190. package/lib/types/graph/nodes/triggers/event.d.cts +0 -10
  191. package/lib/types/graph/nodes/triggers/event.d.mts +0 -10
  192. package/lib/types/graph/nodes/triggers/form.d.cts +0 -11
  193. package/lib/types/graph/nodes/triggers/form.d.mts +0 -11
  194. package/lib/types/graph/nodes/triggers/manual.d.cts +0 -12
  195. package/lib/types/graph/nodes/triggers/manual.d.mts +0 -12
  196. package/lib/types/graph/nodes/triggers/schedule.d.cts +0 -11
  197. package/lib/types/graph/nodes/triggers/schedule.d.mts +0 -11
  198. package/lib/types/graph/nodes/triggers/webhook.d.cts +0 -11
  199. package/lib/types/graph/nodes/triggers/webhook.d.mts +0 -11
  200. package/lib/types/graph/nodes/utility/code.d.cts +0 -31
  201. package/lib/types/graph/nodes/utility/code.d.mts +0 -31
  202. package/lib/types/graph/nodes/utility/delay.d.cts +0 -11
  203. package/lib/types/graph/nodes/utility/delay.d.mts +0 -11
  204. package/lib/types/graph/nodes/utility/log.d.cts +0 -13
  205. package/lib/types/graph/nodes/utility/log.d.mts +0 -13
  206. package/lib/types/graph/nodes/utility/map.d.cts +0 -11
  207. package/lib/types/graph/nodes/utility/map.d.mts +0 -11
  208. package/lib/types/graph/nodes/utility/merge.d.cts +0 -12
  209. package/lib/types/graph/nodes/utility/merge.d.mts +0 -12
  210. package/lib/types/graph/nodes/utility/return.d.cts +0 -11
  211. package/lib/types/graph/nodes/utility/return.d.mts +0 -11
  212. package/lib/types/graph/nodes/utility/utility-log.d.cts +0 -15
  213. package/lib/types/graph/nodes/utility/utility-log.d.mts +0 -15
  214. /package/lib/types/graph/{nodes/category-styles.d.cts → category-styles.d.cts} +0 -0
  215. /package/lib/types/graph/{nodes/category-styles.d.mts → category-styles.d.mts} +0 -0
@@ -1,110 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GRAPH_AGENT_NODES = exports.AgentNode = 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/agents/agent
20
- * @summary Production Agent node declaration.
21
- * @description The Agent node is the primary AI agent entrypoint. It is a
22
- * rectangular node with `@connection()` ports for its structural
23
- * dependencies: `model` (the LLM), `memory` (the memory store), and
24
- * `workspace` (the workspace/context). Connections are rendered on the
25
- * bottom side of the node (DECAF-32 §21.3). Each connection category has a
26
- * distinct color defined in the category style registry.
27
- *
28
- * The single `prompt` input accepts placeholder expressions (§22.4) such as
29
- * `{{ $input.brief }}` or `{{ $node["Research"].output.summary }}` that are
30
- * resolved at execution time by the placeholder compiler.
31
- */
32
- const decorator_validation_1 = require("@decaf-ts/decorator-validation");
33
- const decorators_js_1 = require("./../../../ui/decorators.cjs");
34
- const decorators_js_2 = require("./../../decorators.cjs");
35
- // Ensure category styles are registered (idempotent).
36
- require("./../category-styles.cjs");
37
- /**
38
- * Agent node — an AI agent that orchestrates a model, memory, and workspace.
39
- *
40
- * The agent has:
41
- * - `@input` port on the **left**: `prompt` (the task prompt; supports
42
- * placeholder expressions like `{{ $input.something }}` per §22.4).
43
- * - `@output` ports on the **right**: `response` (the agent's output), `actions`
44
- * (any actions the agent decided to take).
45
- * - `@connection` ports on the **bottom**: `model` (LLM), `memory` (memory
46
- * store), `workspace` (workspace/context). Each connection has a distinct
47
- * category color.
48
- *
49
- * The node is rectangular (not rounded) to visually distinguish it from
50
- * regular processing nodes. The `color` and `icon` are omitted from `@node()`
51
- * so they are resolved from the `"Agent"` category style.
52
- */
53
- let AgentNode = class AgentNode extends decorator_validation_1.Model {
54
- };
55
- exports.AgentNode = AgentNode;
56
- __decorate([
57
- (0, decorator_validation_1.required)(),
58
- (0, decorators_js_1.uielement)("textarea", {
59
- label: "Prompt",
60
- placeholder: "Enter task prompt. Supports placeholders like {{ $input.brief }} or {{ $node[\"Research\"].output.summary }}",
61
- }),
62
- (0, decorators_js_2.input)({ handle: "prompt" }),
63
- __metadata("design:type", String)
64
- ], AgentNode.prototype, "prompt", void 0);
65
- __decorate([
66
- (0, decorator_validation_1.required)(),
67
- (0, decorators_js_1.uielement)("textarea", { label: "Response", placeholder: "Agent response" }),
68
- (0, decorators_js_2.output)({ handle: "response" }),
69
- __metadata("design:type", String)
70
- ], AgentNode.prototype, "response", void 0);
71
- __decorate([
72
- (0, decorator_validation_1.required)(),
73
- (0, decorators_js_1.uielement)("textarea", { label: "Actions", placeholder: "Actions taken by the agent" }),
74
- (0, decorators_js_2.output)({ handle: "actions" }),
75
- __metadata("design:type", Array)
76
- ], AgentNode.prototype, "actions", void 0);
77
- __decorate([
78
- (0, decorators_js_2.connection)({ category: "model", handle: "model" }),
79
- __metadata("design:type", Object)
80
- ], AgentNode.prototype, "model", void 0);
81
- __decorate([
82
- (0, decorators_js_2.connection)({ category: "memory", handle: "memory" }),
83
- __metadata("design:type", Object)
84
- ], AgentNode.prototype, "memory", void 0);
85
- __decorate([
86
- (0, decorators_js_2.connection)({ category: "workspace", handle: "workspace" }),
87
- __metadata("design:type", Object)
88
- ], AgentNode.prototype, "workspace", void 0);
89
- exports.AgentNode = AgentNode = __decorate([
90
- (0, decorators_js_2.node)("core.agent", {
91
- kind: "core.agent",
92
- category: "Agent",
93
- // color and icon omitted — resolved from the "Agent" category style
94
- width: 120,
95
- height: 140,
96
- labels: ["agent", "ai", "orchestrator"],
97
- metadata: {
98
- title: "Agent",
99
- description: "AI agent that orchestrates a model, memory, and workspace to complete a task.",
100
- shape: "rectangle",
101
- },
102
- }),
103
- (0, decorator_validation_1.model)()
104
- ], AgentNode);
105
- /**
106
- * All built-in agent node constructors.
107
- */
108
- exports.GRAPH_AGENT_NODES = [AgentNode];
109
- //# sourceMappingURL=agent.js.map
110
- //# sourceMappingURL=agent.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"graph/nodes/agents/agent.cjs","sourceRoot":"","sources":["graph/nodes/agents/agent.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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,KAAK,CAAC,CAAC,CAAC;AAC7C,oBAAA,SAAS,GAAG,UAAU,CAAC;IACnB,IAAA,oBAAI,EAAC,YAAY,EAAE;QACf,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,OAAO;QACjB,oEAAoE;QACpE,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,cAAc,CAAC;QACvC,QAAQ,EAAE;YACN,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,+EAA+E;YAC5F,KAAK,EAAE,WAAW;SACrB;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,SAAS,CAAC,CAAC;AAEd;;GAEG;AACU,QAAA,iBAAiB,GAAG,CAAC,SAAS,CAAC,CAAC;AAC7C,iCAAiC"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GraphNode = void 0;
4
- /**
5
- * @module ui-decorators/graph/nodes/base
6
- * @summary Base class for shared graph node declarations.
7
- * @description `GraphNode` extends `Model` with an overridable
8
- * `applyMetadata` static method. Concrete node kinds that support dynamic
9
- * metadata changes (e.g. `SwitchFlowNode` adding case output ports) override
10
- * this method to compute their own ports, size, and data patches — the node
11
- * is exclusively responsible for itself in every way.
12
- */
13
- const decorator_validation_1 = require("@decaf-ts/decorator-validation");
14
- class GraphNode extends decorator_validation_1.Model {
15
- /**
16
- * Applies a metadata patch to this node class, returning the resulting
17
- * ports, size, and data patches.
18
- *
19
- * The default implementation returns `null` (no changes). Concrete node
20
- * kinds that support dynamic metadata override this to compute their own
21
- * ports and size from the metadata — the caller (renderer) simply relays
22
- * the result to the diagram model.
23
- *
24
- * @param _meta - The metadata patch (node-kind-specific, e.g.
25
- * `SwitchNodeMetadata`).
26
- * @returns The computed change, or `null` when the node kind does not
27
- * support dynamic metadata.
28
- */
29
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
30
- static applyMetadata(_meta) {
31
- return null;
32
- }
33
- }
34
- exports.GraphNode = GraphNode;
35
- //# sourceMappingURL=base.js.map
36
- //# sourceMappingURL=base.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"graph/nodes/base.cjs","sourceRoot":"","sources":["graph/nodes/base.js"],"names":[],"mappings":";;;AAAA;;;;;;;;GAQG;AACH,yEAAuD;AACvD,MAAa,SAAU,SAAQ,4BAAK;IAChC;;;;;;;;;;;;;OAaG;IACH,6DAA6D;IAC7D,MAAM,CAAC,aAAa,CAAC,KAAK;QACtB,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAnBD,8BAmBC;AACD,gCAAgC"}
@@ -1,57 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GraphInputValueNode = 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/boundary/input-value
20
- * @summary Workflow input value boundary node declaration.
21
- * @description Shared canvas node representing a workflow input value
22
- * (decorator id `graph-input-value-node`), moved from the for-angular
23
- * boundary nodes so both sides share the declaration. Reusable value node
24
- * whose single `value` output may feed multiple targets.
25
- */
26
- const decorator_validation_1 = require("@decaf-ts/decorator-validation");
27
- const decorators_js_1 = require("./../../decorators.cjs");
28
- // Ensure category styles are registered (idempotent).
29
- require("./../category-styles.cjs");
30
- let GraphInputValueNode = class GraphInputValueNode extends decorator_validation_1.Model {
31
- };
32
- exports.GraphInputValueNode = GraphInputValueNode;
33
- __decorate([
34
- (0, decorators_js_1.output)({
35
- handle: 'value',
36
- connectionRules: {
37
- allowMultiple: true,
38
- },
39
- }),
40
- __metadata("design:type", Object)
41
- ], GraphInputValueNode.prototype, "value", void 0);
42
- exports.GraphInputValueNode = GraphInputValueNode = __decorate([
43
- (0, decorators_js_1.node)('graph-input-value-node', {
44
- kind: 'value',
45
- category: 'Boundary',
46
- color: '#0f766e',
47
- icon: 'ti-circle-plus',
48
- labels: ['workflow', 'input', 'value'],
49
- metadata: {
50
- title: 'Workflow input value',
51
- description: 'Reusable canvas value node representing a workflow input.',
52
- },
53
- }),
54
- (0, decorator_validation_1.model)()
55
- ], GraphInputValueNode);
56
- //# sourceMappingURL=input-value.js.map
57
- //# sourceMappingURL=input-value.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"graph/nodes/boundary/input-value.cjs","sourceRoot":"","sources":["graph/nodes/boundary/input-value.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,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AC,CAAC;IACnF,IAAA,yCAA0B,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IAClF,IAAA,yCAA0B,EAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;IAC5E,kDAAkD;IAClD,IAAA,yCAA0B,EAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC1E,IAAA,yCAA0B,EAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,CAAC;IAChF,IAAA,yCAA0B,EAAC,WAAW,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;AACrF,CAAC;AACD,mEAAmE;AACnE,6BAA6B,EAAE,CAAC;AAChC,2CAA2C"}
@@ -1,63 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BreakFlowNode = 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/flow-control/break
20
- * @summary Break flow-control node declaration (DECAF-32 §22.2.2).
21
- * @description Break — breaks out of the enclosing loop (foreach/while/until).
22
- * When executed inside a loop body, the loop terminates early and the loop's
23
- * `completed`/`state` output carries the results collected so far. The Break
24
- * node executor throws a `GraphBreakSignal` that the enclosing loop executor
25
- * catches.
26
- */
27
- const decorator_validation_1 = require("@decaf-ts/decorator-validation");
28
- const decorators_js_1 = require("./../../../ui/decorators.cjs");
29
- const decorators_js_2 = require("./../../decorators.cjs");
30
- // Ensure category styles are registered (idempotent).
31
- require("./../category-styles.cjs");
32
- let BreakFlowNode = class BreakFlowNode extends decorator_validation_1.Model {
33
- };
34
- exports.BreakFlowNode = BreakFlowNode;
35
- __decorate([
36
- (0, decorator_validation_1.required)(),
37
- (0, decorators_js_1.uielement)("textarea", { label: "Value", placeholder: "Value to forward (collected as the last partial result)" }),
38
- (0, decorators_js_2.input)({ handle: "value" }),
39
- __metadata("design:type", Object)
40
- ], BreakFlowNode.prototype, "value", void 0);
41
- __decorate([
42
- (0, decorator_validation_1.required)(),
43
- (0, decorators_js_2.output)({ handle: "broken" }),
44
- __metadata("design:type", Object)
45
- ], BreakFlowNode.prototype, "broken", void 0);
46
- exports.BreakFlowNode = BreakFlowNode = __decorate([
47
- (0, decorators_js_2.node)("core.flow.break", {
48
- kind: "core.flow.break",
49
- category: "Flow Control",
50
- color: "#f59e0b",
51
- icon: "ti-square-arrow-right",
52
- width: 96,
53
- height: 96,
54
- labels: ["flow", "break", "loop", "control"],
55
- metadata: {
56
- title: "Break",
57
- description: "Breaks out of the enclosing loop. The loop terminates early and returns the results collected so far.",
58
- },
59
- }),
60
- (0, decorator_validation_1.model)()
61
- ], BreakFlowNode);
62
- //# sourceMappingURL=break.js.map
63
- //# sourceMappingURL=break.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"graph/nodes/flow-control/break.cjs","sourceRoot":"","sources":["graph/nodes/flow-control/break.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,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C;AAElB,iCAAiC"}
@@ -1,67 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ErrorBoundaryFlowNode = 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/flow-control/error-boundary
20
- * @summary Error-boundary flow-control node declaration (DECAF-32 §22.2.2).
21
- * @description Error boundary — try/catch/finally workflow behaviour.
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 ErrorBoundaryFlowNode = class ErrorBoundaryFlowNode extends decorator_validation_1.Model {
29
- };
30
- exports.ErrorBoundaryFlowNode = ErrorBoundaryFlowNode;
31
- __decorate([
32
- (0, decorator_validation_1.required)(),
33
- (0, decorators_js_1.uielement)("textarea", { label: "Input value", placeholder: "Value to guard" }),
34
- (0, decorators_js_2.input)({ handle: "value" }),
35
- __metadata("design:type", Object)
36
- ], ErrorBoundaryFlowNode.prototype, "value", void 0);
37
- __decorate([
38
- (0, decorator_validation_1.required)(),
39
- (0, decorators_js_1.uielement)("input", { label: "Result", placeholder: "Output on success" }),
40
- (0, decorators_js_2.output)({ handle: "result" }),
41
- __metadata("design:type", Object)
42
- ], ErrorBoundaryFlowNode.prototype, "result", void 0);
43
- __decorate([
44
- (0, decorator_validation_1.required)(),
45
- (0, decorators_js_1.uielement)("input", { label: "Error", placeholder: "Output on failure" }),
46
- (0, decorators_js_2.output)({ handle: "error" }),
47
- __metadata("design:type", Object)
48
- ], ErrorBoundaryFlowNode.prototype, "error", void 0);
49
- exports.ErrorBoundaryFlowNode = ErrorBoundaryFlowNode = __decorate([
50
- (0, decorators_js_2.node)("core.flow.errorBoundary", {
51
- kind: "core.flow.errorBoundary",
52
- category: "Flow Control",
53
- color: "#f59e0b",
54
- icon: "ti-shield-check",
55
- width: 96,
56
- height: 96,
57
- labels: ["flow", "error", "try-catch"],
58
- metadata: {
59
- title: "Error boundary",
60
- description: "Wraps the input in a try/catch/finally. Emits the result on success, or the error on failure.",
61
- finally: false,
62
- },
63
- }),
64
- (0, decorator_validation_1.model)()
65
- ], ErrorBoundaryFlowNode);
66
- //# sourceMappingURL=error-boundary.js.map
67
- //# sourceMappingURL=error-boundary.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"graph/nodes/flow-control/error-boundary.cjs","sourceRoot":"","sources":["graph/nodes/flow-control/error-boundary.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,KAA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B;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,qBAAqB,CAAC,CAAC;AAE1B,0CAA0C"}
@@ -1,69 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HumanApprovalFlowNode = 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/flow-control/human-approval
20
- * @summary Human-approval flow-control node declaration (DECAF-32 §22.2.2).
21
- * @description Human approval — suspends execution until a human approves
22
- * or rejects.
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 HumanApprovalFlowNode = class HumanApprovalFlowNode extends decorator_validation_1.Model {
30
- };
31
- exports.HumanApprovalFlowNode = HumanApprovalFlowNode;
32
- __decorate([
33
- (0, decorator_validation_1.required)(),
34
- (0, decorators_js_1.uielement)("textarea", { label: "Input value", placeholder: "Value pending approval" }),
35
- (0, decorators_js_2.input)({ handle: "value" }),
36
- __metadata("design:type", Object)
37
- ], HumanApprovalFlowNode.prototype, "value", void 0);
38
- __decorate([
39
- (0, decorator_validation_1.required)(),
40
- (0, decorators_js_1.uielement)("input", { label: "Approved", placeholder: "Output when approved" }),
41
- (0, decorators_js_2.output)({ handle: "approved" }),
42
- __metadata("design:type", Object)
43
- ], HumanApprovalFlowNode.prototype, "approved", void 0);
44
- __decorate([
45
- (0, decorator_validation_1.required)(),
46
- (0, decorators_js_1.uielement)("input", { label: "Rejected", placeholder: "Output when rejected" }),
47
- (0, decorators_js_2.output)({ handle: "rejected" }),
48
- __metadata("design:type", Object)
49
- ], HumanApprovalFlowNode.prototype, "rejected", void 0);
50
- exports.HumanApprovalFlowNode = HumanApprovalFlowNode = __decorate([
51
- (0, decorators_js_2.node)("core.flow.humanApproval", {
52
- kind: "core.flow.humanApproval",
53
- category: "Flow Control",
54
- color: "#f59e0b",
55
- icon: "ti-user-check",
56
- width: 96,
57
- height: 96,
58
- labels: ["flow", "approval", "suspend"],
59
- metadata: {
60
- title: "Human approval",
61
- description: "Suspends execution until a human approves or rejects. Emits the approved value or a rejection.",
62
- approvers: [],
63
- timeoutMs: 86400000,
64
- },
65
- }),
66
- (0, decorator_validation_1.model)()
67
- ], HumanApprovalFlowNode);
68
- //# sourceMappingURL=human-approval.js.map
69
- //# sourceMappingURL=human-approval.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"graph/nodes/flow-control/human-approval.cjs","sourceRoot":"","sources":["graph/nodes/flow-control/human-approval.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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BAAgB;YACvB,WAAW,EAAE,gGAAgG;YAC7G,SAAS,EAAE,EAAE;YACb,SAAS,EAAE,QAAQ;SACtB;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,qBAAqB,CAAC,CAAC;AAE1B,0CAA0C"}
@@ -1,71 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IfFlowNode = 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/flow-control/if
20
- * @summary If flow-control node declaration (DECAF-32 §22.2.2).
21
- * @description If — conditional branch. Evaluates a `ConditionExpression`
22
- * (§22.3) and routes the input to the `then` or `else` output. A graph-level
23
- * macro: the engine's planner recognises it as an ordinary executable node
24
- * (§5.7) but it has no built-in executor — downstream projects register
25
- * custom executors or compile it into composition APIs (§22.2.2).
26
- */
27
- const decorator_validation_1 = require("@decaf-ts/decorator-validation");
28
- const decorators_js_1 = require("./../../../ui/decorators.cjs");
29
- const decorators_js_2 = require("./../../decorators.cjs");
30
- // Ensure category styles are registered (idempotent).
31
- require("./../category-styles.cjs");
32
- let IfFlowNode = class IfFlowNode extends decorator_validation_1.Model {
33
- };
34
- exports.IfFlowNode = IfFlowNode;
35
- __decorate([
36
- (0, decorator_validation_1.required)(),
37
- (0, decorators_js_1.uielement)("textarea", { label: "Input value", placeholder: "Value to evaluate" }),
38
- (0, decorators_js_2.input)({ handle: "value" }),
39
- __metadata("design:type", Object)
40
- ], IfFlowNode.prototype, "value", void 0);
41
- __decorate([
42
- (0, decorator_validation_1.required)(),
43
- (0, decorators_js_1.uielement)("input", { label: "Then", placeholder: "Output when condition is true" }),
44
- (0, decorators_js_2.output)({ handle: "then" }),
45
- __metadata("design:type", Object)
46
- ], IfFlowNode.prototype, "then", void 0);
47
- __decorate([
48
- (0, decorator_validation_1.required)(),
49
- (0, decorators_js_1.uielement)("input", { label: "Else", placeholder: "Output when condition is false" }),
50
- (0, decorators_js_2.output)({ handle: "else" }),
51
- __metadata("design:type", Object)
52
- ], IfFlowNode.prototype, "else", void 0);
53
- exports.IfFlowNode = IfFlowNode = __decorate([
54
- (0, decorators_js_2.node)("core.flow.if", {
55
- kind: "core.flow.if",
56
- category: "Flow Control",
57
- color: "#f59e0b",
58
- icon: "ti-arrows-split-2",
59
- width: 96,
60
- height: 96,
61
- labels: ["flow", "conditional", "branch"],
62
- metadata: {
63
- title: "If",
64
- description: "Conditional branch. Evaluates the configured condition and routes the input to the matching output.",
65
- condition: { op: "eq", left: { const: true }, right: { const: true } },
66
- },
67
- }),
68
- (0, decorator_validation_1.model)()
69
- ], IfFlowNode);
70
- //# sourceMappingURL=if.js.map
71
- //# sourceMappingURL=if.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"graph/nodes/flow-control/if.cjs","sourceRoot":"","sources":["graph/nodes/flow-control/if.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,CA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,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,CAAC;QACzC,QAAQ,EAAE;YACN,KAAK,EAAE,IAAI;YACX,WAAW,EAAE,qGAAqG;YAClH,SAAS,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;SACzE;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,UAAU,CAAC,CAAC;AAEf,8BAA8B"}
@@ -1,61 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ParallelFlowNode = 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/flow-control/parallel
20
- * @summary Parallel flow-control node declaration (DECAF-32 §22.2.2).
21
- * @description Parallel — splits execution into concurrent branches.
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 ParallelFlowNode = class ParallelFlowNode extends decorator_validation_1.Model {
29
- };
30
- exports.ParallelFlowNode = ParallelFlowNode;
31
- __decorate([
32
- (0, decorator_validation_1.required)(),
33
- (0, decorators_js_1.uielement)("textarea", { label: "Input value", placeholder: "Value to fan out" }),
34
- (0, decorators_js_2.input)({ handle: "value" }),
35
- __metadata("design:type", Object)
36
- ], ParallelFlowNode.prototype, "value", void 0);
37
- __decorate([
38
- (0, decorator_validation_1.required)(),
39
- (0, decorators_js_1.uielement)("input", { label: "Branches", placeholder: "Collected branch outputs" }),
40
- (0, decorators_js_2.output)({ handle: "branches" }),
41
- __metadata("design:type", Array)
42
- ], ParallelFlowNode.prototype, "branches", void 0);
43
- exports.ParallelFlowNode = ParallelFlowNode = __decorate([
44
- (0, decorators_js_2.node)("core.flow.parallel", {
45
- kind: "core.flow.parallel",
46
- category: "Flow Control",
47
- color: "#f59e0b",
48
- icon: "ti-arrows-vertical",
49
- width: 96,
50
- height: 96,
51
- labels: ["flow", "parallel", "concurrent"],
52
- metadata: {
53
- title: "Parallel",
54
- description: "Splits execution into concurrent branches. All branches run in parallel and outputs are collected.",
55
- branchCount: 2,
56
- },
57
- }),
58
- (0, decorator_validation_1.model)()
59
- ], ParallelFlowNode);
60
- //# sourceMappingURL=parallel.js.map
61
- //# sourceMappingURL=parallel.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"graph/nodes/flow-control/parallel.cjs","sourceRoot":"","sources":["graph/nodes/flow-control/parallel.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,CAA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