@decaf-ts/ui-decorators 0.20.4 → 0.20.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/dist/ui-decorators.cjs +1 -1
  2. package/lib/cjs/graph/GraphExecutionStateMapper.cjs +97 -0
  3. package/lib/cjs/graph/GraphExecutionStateMapper.cjs.map +1 -0
  4. package/lib/cjs/graph/GraphResolution.cjs +17 -0
  5. package/lib/cjs/graph/GraphResolution.cjs.map +1 -0
  6. package/lib/cjs/graph/constants.cjs +157 -1
  7. package/lib/cjs/graph/constants.cjs.map +1 -1
  8. package/lib/cjs/graph/index.cjs +3 -0
  9. package/lib/cjs/graph/index.cjs.map +1 -1
  10. package/lib/cjs/graph/nodes/agents/agent.cjs +110 -0
  11. package/lib/cjs/graph/nodes/agents/agent.cjs.map +1 -0
  12. package/lib/cjs/graph/nodes/base.cjs +36 -0
  13. package/lib/cjs/graph/nodes/base.cjs.map +1 -0
  14. package/lib/cjs/graph/nodes/boundary/input-value.cjs +57 -0
  15. package/lib/cjs/graph/nodes/boundary/input-value.cjs.map +1 -0
  16. package/lib/cjs/graph/nodes/category-styles.cjs +38 -0
  17. package/lib/cjs/graph/nodes/category-styles.cjs.map +1 -0
  18. package/lib/cjs/graph/nodes/flow-control/break.cjs +63 -0
  19. package/lib/cjs/graph/nodes/flow-control/break.cjs.map +1 -0
  20. package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs +67 -0
  21. package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs.map +1 -0
  22. package/lib/cjs/graph/nodes/flow-control/human-approval.cjs +69 -0
  23. package/lib/cjs/graph/nodes/flow-control/human-approval.cjs.map +1 -0
  24. package/lib/cjs/graph/nodes/flow-control/if.cjs +71 -0
  25. package/lib/cjs/graph/nodes/flow-control/if.cjs.map +1 -0
  26. package/lib/cjs/graph/nodes/flow-control/parallel.cjs +61 -0
  27. package/lib/cjs/graph/nodes/flow-control/parallel.cjs.map +1 -0
  28. package/lib/cjs/graph/nodes/flow-control/switch.cjs +121 -0
  29. package/lib/cjs/graph/nodes/flow-control/switch.cjs.map +1 -0
  30. package/lib/cjs/graph/nodes/index.cjs +123 -0
  31. package/lib/cjs/graph/nodes/index.cjs.map +1 -0
  32. package/lib/cjs/graph/nodes/loops/foreach.cjs +86 -0
  33. package/lib/cjs/graph/nodes/loops/foreach.cjs.map +1 -0
  34. package/lib/cjs/graph/nodes/loops/until.cjs +74 -0
  35. package/lib/cjs/graph/nodes/loops/until.cjs.map +1 -0
  36. package/lib/cjs/graph/nodes/loops/while.cjs +74 -0
  37. package/lib/cjs/graph/nodes/loops/while.cjs.map +1 -0
  38. package/lib/cjs/graph/nodes/manifests.cjs +338 -0
  39. package/lib/cjs/graph/nodes/manifests.cjs.map +1 -0
  40. package/lib/cjs/graph/nodes/triggers/chat.cjs +70 -0
  41. package/lib/cjs/graph/nodes/triggers/chat.cjs.map +1 -0
  42. package/lib/cjs/graph/nodes/triggers/event.cjs +58 -0
  43. package/lib/cjs/graph/nodes/triggers/event.cjs.map +1 -0
  44. package/lib/cjs/graph/nodes/triggers/form.cjs +59 -0
  45. package/lib/cjs/graph/nodes/triggers/form.cjs.map +1 -0
  46. package/lib/cjs/graph/nodes/triggers/manual.cjs +60 -0
  47. package/lib/cjs/graph/nodes/triggers/manual.cjs.map +1 -0
  48. package/lib/cjs/graph/nodes/triggers/schedule.cjs +60 -0
  49. package/lib/cjs/graph/nodes/triggers/schedule.cjs.map +1 -0
  50. package/lib/cjs/graph/nodes/triggers/webhook.cjs +62 -0
  51. package/lib/cjs/graph/nodes/triggers/webhook.cjs.map +1 -0
  52. package/lib/cjs/graph/nodes/utility/code.cjs +99 -0
  53. package/lib/cjs/graph/nodes/utility/code.cjs.map +1 -0
  54. package/lib/cjs/graph/nodes/utility/delay.cjs +61 -0
  55. package/lib/cjs/graph/nodes/utility/delay.cjs.map +1 -0
  56. package/lib/cjs/graph/nodes/utility/log.cjs +62 -0
  57. package/lib/cjs/graph/nodes/utility/log.cjs.map +1 -0
  58. package/lib/cjs/graph/nodes/utility/map.cjs +61 -0
  59. package/lib/cjs/graph/nodes/utility/map.cjs.map +1 -0
  60. package/lib/cjs/graph/nodes/utility/merge.cjs +62 -0
  61. package/lib/cjs/graph/nodes/utility/merge.cjs.map +1 -0
  62. package/lib/cjs/graph/nodes/utility/return.cjs +61 -0
  63. package/lib/cjs/graph/nodes/utility/return.cjs.map +1 -0
  64. package/lib/cjs/graph/nodes/utility/utility-log.cjs +66 -0
  65. package/lib/cjs/graph/nodes/utility/utility-log.cjs.map +1 -0
  66. package/lib/cjs/index.cjs +3 -3
  67. package/lib/esm/graph/GraphExecutionStateMapper.js +91 -0
  68. package/lib/esm/graph/GraphExecutionStateMapper.js.map +1 -0
  69. package/lib/esm/graph/GraphResolution.js +13 -0
  70. package/lib/esm/graph/GraphResolution.js.map +1 -0
  71. package/lib/esm/graph/constants.js +179 -0
  72. package/lib/esm/graph/constants.js.map +1 -1
  73. package/lib/esm/graph/index.js +3 -0
  74. package/lib/esm/graph/index.js.map +1 -1
  75. package/lib/esm/graph/nodes/agents/agent.js +101 -0
  76. package/lib/esm/graph/nodes/agents/agent.js.map +1 -0
  77. package/lib/esm/graph/nodes/base.js +31 -0
  78. package/lib/esm/graph/nodes/base.js.map +1 -0
  79. package/lib/esm/graph/nodes/boundary/input-value.js +48 -0
  80. package/lib/esm/graph/nodes/boundary/input-value.js.map +1 -0
  81. package/lib/esm/graph/nodes/category-styles.js +34 -0
  82. package/lib/esm/graph/nodes/category-styles.js.map +1 -0
  83. package/lib/esm/graph/nodes/flow-control/break.js +54 -0
  84. package/lib/esm/graph/nodes/flow-control/break.js.map +1 -0
  85. package/lib/esm/graph/nodes/flow-control/error-boundary.js +58 -0
  86. package/lib/esm/graph/nodes/flow-control/error-boundary.js.map +1 -0
  87. package/lib/esm/graph/nodes/flow-control/human-approval.js +60 -0
  88. package/lib/esm/graph/nodes/flow-control/human-approval.js.map +1 -0
  89. package/lib/esm/graph/nodes/flow-control/if.js +62 -0
  90. package/lib/esm/graph/nodes/flow-control/if.js.map +1 -0
  91. package/lib/esm/graph/nodes/flow-control/parallel.js +52 -0
  92. package/lib/esm/graph/nodes/flow-control/parallel.js.map +1 -0
  93. package/lib/esm/graph/nodes/flow-control/switch.js +112 -0
  94. package/lib/esm/graph/nodes/flow-control/switch.js.map +1 -0
  95. package/lib/esm/graph/nodes/index.js +105 -0
  96. package/lib/esm/graph/nodes/index.js.map +1 -0
  97. package/lib/esm/graph/nodes/loops/foreach.js +77 -0
  98. package/lib/esm/graph/nodes/loops/foreach.js.map +1 -0
  99. package/lib/esm/graph/nodes/loops/until.js +65 -0
  100. package/lib/esm/graph/nodes/loops/until.js.map +1 -0
  101. package/lib/esm/graph/nodes/loops/while.js +65 -0
  102. package/lib/esm/graph/nodes/loops/while.js.map +1 -0
  103. package/lib/esm/graph/nodes/manifests.js +334 -0
  104. package/lib/esm/graph/nodes/manifests.js.map +1 -0
  105. package/lib/esm/graph/nodes/triggers/chat.js +61 -0
  106. package/lib/esm/graph/nodes/triggers/chat.js.map +1 -0
  107. package/lib/esm/graph/nodes/triggers/event.js +49 -0
  108. package/lib/esm/graph/nodes/triggers/event.js.map +1 -0
  109. package/lib/esm/graph/nodes/triggers/form.js +50 -0
  110. package/lib/esm/graph/nodes/triggers/form.js.map +1 -0
  111. package/lib/esm/graph/nodes/triggers/manual.js +51 -0
  112. package/lib/esm/graph/nodes/triggers/manual.js.map +1 -0
  113. package/lib/esm/graph/nodes/triggers/schedule.js +51 -0
  114. package/lib/esm/graph/nodes/triggers/schedule.js.map +1 -0
  115. package/lib/esm/graph/nodes/triggers/webhook.js +53 -0
  116. package/lib/esm/graph/nodes/triggers/webhook.js.map +1 -0
  117. package/lib/esm/graph/nodes/utility/code.js +90 -0
  118. package/lib/esm/graph/nodes/utility/code.js.map +1 -0
  119. package/lib/esm/graph/nodes/utility/delay.js +52 -0
  120. package/lib/esm/graph/nodes/utility/delay.js.map +1 -0
  121. package/lib/esm/graph/nodes/utility/log.js +53 -0
  122. package/lib/esm/graph/nodes/utility/log.js.map +1 -0
  123. package/lib/esm/graph/nodes/utility/map.js +52 -0
  124. package/lib/esm/graph/nodes/utility/map.js.map +1 -0
  125. package/lib/esm/graph/nodes/utility/merge.js +53 -0
  126. package/lib/esm/graph/nodes/utility/merge.js.map +1 -0
  127. package/lib/esm/graph/nodes/utility/return.js +52 -0
  128. package/lib/esm/graph/nodes/utility/return.js.map +1 -0
  129. package/lib/esm/graph/nodes/utility/utility-log.js +57 -0
  130. package/lib/esm/graph/nodes/utility/utility-log.js.map +1 -0
  131. package/lib/esm/index.js +3 -3
  132. package/lib/types/graph/GraphExecutionStateMapper.d.cts +66 -0
  133. package/lib/types/graph/GraphExecutionStateMapper.d.mts +66 -0
  134. package/lib/types/graph/GraphResolution.d.cts +53 -0
  135. package/lib/types/graph/GraphResolution.d.mts +53 -0
  136. package/lib/types/graph/constants.d.cts +165 -0
  137. package/lib/types/graph/constants.d.mts +165 -0
  138. package/lib/types/graph/index.d.cts +3 -0
  139. package/lib/types/graph/index.d.mts +3 -0
  140. package/lib/types/graph/nodes/agents/agent.d.cts +44 -0
  141. package/lib/types/graph/nodes/agents/agent.d.mts +44 -0
  142. package/lib/types/graph/nodes/base.d.cts +28 -0
  143. package/lib/types/graph/nodes/base.d.mts +28 -0
  144. package/lib/types/graph/nodes/boundary/input-value.d.cts +13 -0
  145. package/lib/types/graph/nodes/boundary/input-value.d.mts +13 -0
  146. package/lib/types/graph/nodes/category-styles.d.cts +8 -0
  147. package/lib/types/graph/nodes/category-styles.d.mts +8 -0
  148. package/lib/types/graph/nodes/flow-control/break.d.cts +15 -0
  149. package/lib/types/graph/nodes/flow-control/break.d.mts +15 -0
  150. package/lib/types/graph/nodes/flow-control/error-boundary.d.cts +12 -0
  151. package/lib/types/graph/nodes/flow-control/error-boundary.d.mts +12 -0
  152. package/lib/types/graph/nodes/flow-control/human-approval.d.cts +13 -0
  153. package/lib/types/graph/nodes/flow-control/human-approval.d.mts +13 -0
  154. package/lib/types/graph/nodes/flow-control/if.d.cts +16 -0
  155. package/lib/types/graph/nodes/flow-control/if.d.mts +16 -0
  156. package/lib/types/graph/nodes/flow-control/parallel.d.cts +11 -0
  157. package/lib/types/graph/nodes/flow-control/parallel.d.mts +11 -0
  158. package/lib/types/graph/nodes/flow-control/switch.d.cts +21 -0
  159. package/lib/types/graph/nodes/flow-control/switch.d.mts +21 -0
  160. package/lib/types/graph/nodes/index.d.cts +79 -0
  161. package/lib/types/graph/nodes/index.d.mts +79 -0
  162. package/lib/types/graph/nodes/loops/foreach.d.cts +19 -0
  163. package/lib/types/graph/nodes/loops/foreach.d.mts +19 -0
  164. package/lib/types/graph/nodes/loops/until.d.cts +16 -0
  165. package/lib/types/graph/nodes/loops/until.d.mts +16 -0
  166. package/lib/types/graph/nodes/loops/while.d.cts +16 -0
  167. package/lib/types/graph/nodes/loops/while.d.mts +16 -0
  168. package/lib/types/graph/nodes/manifests.d.cts +62 -0
  169. package/lib/types/graph/nodes/manifests.d.mts +62 -0
  170. package/lib/types/graph/nodes/triggers/chat.d.cts +13 -0
  171. package/lib/types/graph/nodes/triggers/chat.d.mts +13 -0
  172. package/lib/types/graph/nodes/triggers/event.d.cts +10 -0
  173. package/lib/types/graph/nodes/triggers/event.d.mts +10 -0
  174. package/lib/types/graph/nodes/triggers/form.d.cts +11 -0
  175. package/lib/types/graph/nodes/triggers/form.d.mts +11 -0
  176. package/lib/types/graph/nodes/triggers/manual.d.cts +12 -0
  177. package/lib/types/graph/nodes/triggers/manual.d.mts +12 -0
  178. package/lib/types/graph/nodes/triggers/schedule.d.cts +11 -0
  179. package/lib/types/graph/nodes/triggers/schedule.d.mts +11 -0
  180. package/lib/types/graph/nodes/triggers/webhook.d.cts +11 -0
  181. package/lib/types/graph/nodes/triggers/webhook.d.mts +11 -0
  182. package/lib/types/graph/nodes/utility/code.d.cts +31 -0
  183. package/lib/types/graph/nodes/utility/code.d.mts +31 -0
  184. package/lib/types/graph/nodes/utility/delay.d.cts +11 -0
  185. package/lib/types/graph/nodes/utility/delay.d.mts +11 -0
  186. package/lib/types/graph/nodes/utility/log.d.cts +13 -0
  187. package/lib/types/graph/nodes/utility/log.d.mts +13 -0
  188. package/lib/types/graph/nodes/utility/map.d.cts +11 -0
  189. package/lib/types/graph/nodes/utility/map.d.mts +11 -0
  190. package/lib/types/graph/nodes/utility/merge.d.cts +12 -0
  191. package/lib/types/graph/nodes/utility/merge.d.mts +12 -0
  192. package/lib/types/graph/nodes/utility/return.d.cts +11 -0
  193. package/lib/types/graph/nodes/utility/return.d.mts +11 -0
  194. package/lib/types/graph/nodes/utility/utility-log.d.cts +15 -0
  195. package/lib/types/graph/nodes/utility/utility-log.d.mts +15 -0
  196. package/lib/types/graph/types.d.cts +286 -0
  197. package/lib/types/graph/types.d.mts +286 -0
  198. package/lib/types/index.d.cts +3 -3
  199. package/lib/types/index.d.mts +3 -3
  200. package/package.json +1 -1
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UtilityLogNode = void 0;
4
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
5
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
7
+ r = Reflect.decorate(decorators, target, key, desc);
8
+ else
9
+ for (var i = decorators.length - 1; i >= 0; i--)
10
+ if (d = decorators[i])
11
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
12
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
13
+ };
14
+ var __metadata = (this && this.__metadata) || function (k, v) {
15
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
16
+ return Reflect.metadata(k, v);
17
+ };
18
+ /**
19
+ * @module ui-decorators/graph/nodes/utility/utility-log
20
+ * @summary Utility Log node declaration (DECAF-48 §4.3).
21
+ * @description Utility Log — logs the input value through the run's
22
+ * `ctx.logger` at a configurable level and forwards it unchanged on the
23
+ * `logged` output port.
24
+ */
25
+ const decorator_validation_1 = require("@decaf-ts/decorator-validation");
26
+ const decorators_js_1 = require("./../../../ui/decorators.cjs");
27
+ const decorators_js_2 = require("./../../decorators.cjs");
28
+ // Ensure category styles are registered (idempotent).
29
+ require("./../category-styles.cjs");
30
+ let UtilityLogNode = class UtilityLogNode extends decorator_validation_1.Model {
31
+ };
32
+ exports.UtilityLogNode = UtilityLogNode;
33
+ __decorate([
34
+ (0, decorator_validation_1.required)(),
35
+ (0, decorators_js_1.uielement)("textarea", { label: "Input value", placeholder: "Value to log" }),
36
+ (0, decorators_js_2.input)({ handle: "value" }),
37
+ __metadata("design:type", Object)
38
+ ], UtilityLogNode.prototype, "value", void 0);
39
+ __decorate([
40
+ (0, decorators_js_1.uielement)("input", { label: "Log level", placeholder: "info, warn, error, ..." }),
41
+ __metadata("design:type", String)
42
+ ], UtilityLogNode.prototype, "level", void 0);
43
+ __decorate([
44
+ (0, decorator_validation_1.required)(),
45
+ (0, decorators_js_1.uielement)("input", { label: "Logged value", placeholder: "Forwarded value" }),
46
+ (0, decorators_js_2.output)({ handle: "logged" }),
47
+ __metadata("design:type", Object)
48
+ ], UtilityLogNode.prototype, "logged", void 0);
49
+ exports.UtilityLogNode = UtilityLogNode = __decorate([
50
+ (0, decorators_js_2.node)("core.utility.log", {
51
+ kind: "core.utility.log",
52
+ category: "Utility",
53
+ color: "#6366f1",
54
+ icon: "ti-terminal",
55
+ width: 96,
56
+ height: 96,
57
+ labels: ["utility", "log", "debug", "observability"],
58
+ metadata: {
59
+ title: "Utility Log",
60
+ description: "Logs the input value to the run's ctx.logger at a configurable level and forwards it unchanged.",
61
+ },
62
+ }),
63
+ (0, decorator_validation_1.model)()
64
+ ], UtilityLogNode);
65
+ //# sourceMappingURL=utility-log.js.map
66
+ //# sourceMappingURL=utility-log.cjs.map
@@ -0,0 +1 @@
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c,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;AAC/C,yBAAA,cAAc,GAAG,UAAU,CAAC;IACxB,IAAA,oBAAI,EAAC,kBAAkB,EAAE;QACrB,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,CAAC;QACpD,QAAQ,EAAE;YACN,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,iGAAiG;SACjH;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,cAAc,CAAC,CAAC;AAEnB,uCAAuC"}
package/lib/cjs/index.cjs CHANGED
@@ -33,21 +33,21 @@ __exportStar(require("./ui/index.cjs"), exports);
33
33
  * @const VERSION
34
34
  * @memberOf module:ui-decorators
35
35
  */
36
- exports.VERSION = "0.20.4";
36
+ exports.VERSION = "0.20.5";
37
37
  /**
38
38
  * @description Represents the current commit hash of the module build.
39
39
  * @summary Stores the current git commit hash for the package. The build replaces
40
40
  * the placeholder with the actual commit hash at publish time.
41
41
  * @const COMMIT
42
42
  */
43
- exports.COMMIT = "b1ab2bc";
43
+ exports.COMMIT = "4e03aa0";
44
44
  /**
45
45
  * @description Represents the full version string of the module.
46
46
  * @summary Stores the semver version and commit hash for the package.
47
47
  * The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
48
48
  * @const FULL_VERSION
49
49
  */
50
- exports.FULL_VERSION = "0.20.4-b1ab2bc";
50
+ exports.FULL_VERSION = "0.20.5-4e03aa0";
51
51
  exports.PACKAGE_NAME = "@decaf-ts/ui-decorators";
52
52
  decoration_1.Metadata.registerLibrary(exports.PACKAGE_NAME, exports.VERSION);
53
53
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,91 @@
1
+ import { GraphExecutionEventType, GraphExecutionStatus, GraphVisualState, } from "./constants.js";
2
+ /**
3
+ * Maps an engine execution `GraphExecutionStatus` to the shared visual
4
+ * state. `CACHED` collapses onto `GraphVisualState.SUCCEEDED` for
5
+ * rendering; `CANCELLED`/`PENDING`/`PLANNING` yield `IDLE`.
6
+ *
7
+ * @param status - The engine execution status, if any.
8
+ * @returns The visual state for the node/edge.
9
+ */
10
+ export function mapExecutionStatus(status) {
11
+ switch (status) {
12
+ case GraphExecutionStatus.RUNNING:
13
+ return GraphVisualState.RUNNING;
14
+ case GraphExecutionStatus.SUCCEEDED:
15
+ case GraphExecutionStatus.CACHED:
16
+ return GraphVisualState.SUCCEEDED;
17
+ case GraphExecutionStatus.FAILED:
18
+ return GraphVisualState.FAILED;
19
+ case GraphExecutionStatus.SKIPPED:
20
+ return GraphVisualState.SKIPPED;
21
+ case GraphExecutionStatus.PENDING:
22
+ case GraphExecutionStatus.PLANNING:
23
+ case GraphExecutionStatus.CANCELLED:
24
+ default:
25
+ return GraphVisualState.IDLE;
26
+ }
27
+ }
28
+ /**
29
+ * Derives the visual state for one node from its execution signals.
30
+ *
31
+ * Rules (DECAF-48 §4.4 / Req-5/Req-6):
32
+ * - currently running → `GraphVisualState.RUNNING`
33
+ * - failed → `GraphVisualState.FAILED`
34
+ * - executed and succeeded (or from cache) → `GraphVisualState.SUCCEEDED`
35
+ * - unexecuted and reachable with incomplete upstream deps → `GraphVisualState.BLOCKED`
36
+ * - unexecuted with `runFailed` → `GraphVisualState.SKIPPED` (faded/disabled)
37
+ * - otherwise → `GraphVisualState.IDLE`
38
+ *
39
+ * @param options - The node execution signals.
40
+ * @returns The derived visual state.
41
+ */
42
+ export function deriveNodeVisualState(options) {
43
+ if (options.running)
44
+ return GraphVisualState.RUNNING;
45
+ if (options.failed)
46
+ return GraphVisualState.FAILED;
47
+ if (options.executed && options.succeeded !== false) {
48
+ return options.succeeded
49
+ ? GraphVisualState.SUCCEEDED
50
+ : GraphVisualState.FAILED;
51
+ }
52
+ const upstream = options.upstreamCount ?? 0;
53
+ const completed = options.completedUpstreams ?? 0;
54
+ if (upstream > 0 && completed < upstream)
55
+ return GraphVisualState.BLOCKED;
56
+ if (options.runFailed)
57
+ return GraphVisualState.SKIPPED;
58
+ return GraphVisualState.IDLE;
59
+ }
60
+ /**
61
+ * Translates a `GraphExecutionEvent` into a node visual state when the
62
+ * event carries enough information. Used by contract conformance checks and
63
+ * engine-agnostic consumers that derive state from the shared event stream.
64
+ *
65
+ * @param event - The graph execution event.
66
+ * @returns The corresponding `GraphVisualState`, or `IDLE` when the
67
+ * event does not indicate a specific visual transition.
68
+ */
69
+ export function visualStateOfEvent(event) {
70
+ if (event.status)
71
+ return mapExecutionStatus(event.status);
72
+ const payloadState = event.payload
73
+ ?.state;
74
+ if (payloadState)
75
+ return payloadState;
76
+ switch (event.type) {
77
+ case GraphExecutionEventType.NODE_STARTED:
78
+ case GraphExecutionEventType.EDGE_STATE_CHANGED:
79
+ case GraphExecutionEventType.NODE_STATE_CHANGED:
80
+ return GraphVisualState.RUNNING;
81
+ case GraphExecutionEventType.NODE_COMPLETED:
82
+ return GraphVisualState.SUCCEEDED;
83
+ case GraphExecutionEventType.NODE_FAILED:
84
+ return GraphVisualState.FAILED;
85
+ case GraphExecutionEventType.NODE_SKIPPED:
86
+ return GraphVisualState.SKIPPED;
87
+ default:
88
+ return GraphVisualState.IDLE;
89
+ }
90
+ }
91
+ //# sourceMappingURL=GraphExecutionStateMapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GraphExecutionStateMapper.js","sourceRoot":"","sources":["../../../src/graph/GraphExecutionStateMapper.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,GACjB,uBAAoB;AAErB;;;;;;;GAOG;AACH,MAAM,UAAU,kBAAkB,CAChC,MAA6B;IAE7B,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,oBAAoB,CAAC,OAAO;YAC/B,OAAO,gBAAgB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,MAAM,UAAU,kBAAkB,CAAC,KAA0B;IAC3D,IAAI,KAAK,CAAC,MAAM;QAAE,OAAO,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1D,MAAM,YAAY,GAAI,KAAK,CAAC,OAAoD;QAC9E,EAAE,KAAK,CAAC;IACV,IAAI,YAAY;QAAE,OAAO,YAAY,CAAC;IACtC,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,KAAK,uBAAuB,CAAC,YAAY,CAAC;QAC1C,KAAK,uBAAuB,CAAC,kBAAkB,CAAC;QAChD,KAAK,uBAAuB,CAAC,kBAAkB;YAC7C,OAAO,gBAAgB,CAAC,OAAO,CAAC;QAClC,KAAK,uBAAuB,CAAC,cAAc;YACzC,OAAO,gBAAgB,CAAC,SAAS,CAAC;QACpC,KAAK,uBAAuB,CAAC,WAAW;YACtC,OAAO,gBAAgB,CAAC,MAAM,CAAC;QACjC,KAAK,uBAAuB,CAAC,YAAY;YACvC,OAAO,gBAAgB,CAAC,OAAO,CAAC;QAClC;YACE,OAAO,gBAAgB,CAAC,IAAI,CAAC;IACjC,CAAC;AACH,CAAC"}
@@ -0,0 +1,13 @@
1
+ /** Structural type guard for `GraphResolvedNodeManifest`. */
2
+ export function isGraphResolvedNodeManifest(value) {
3
+ if (!value || typeof value !== "object" || Array.isArray(value))
4
+ return false;
5
+ const record = value;
6
+ return (typeof record["kind"] === "string" &&
7
+ typeof record["display"] === "object" &&
8
+ record["display"] !== null &&
9
+ Array.isArray(record["inputs"]) &&
10
+ Array.isArray(record["outputs"]) &&
11
+ Array.isArray(record["parameters"]));
12
+ }
13
+ //# sourceMappingURL=GraphResolution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GraphResolution.js","sourceRoot":"","sources":["../../../src/graph/GraphResolution.ts"],"names":[],"mappings":"AAoDA,6DAA6D;AAC7D,MAAM,UAAU,2BAA2B,CACzC,KAAc;IAEd,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAC9E,MAAM,MAAM,GAAG,KAAgC,CAAC;IAChD,OAAO,CACL,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,QAAQ;QAClC,OAAO,MAAM,CAAC,SAAS,CAAC,KAAK,QAAQ;QACrC,MAAM,CAAC,SAAS,CAAC,KAAK,IAAI;QAC1B,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAC/B,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAChC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CACpC,CAAC;AACJ,CAAC"}
@@ -89,4 +89,183 @@ export function resolveEffectiveIcon(explicitIcon, category) {
89
89
  return explicitIcon;
90
90
  return graphCategoryStyleOf(category).icon ?? GRAPH_DEFAULT_CATEGORY_STYLE.icon;
91
91
  }
92
+ /**
93
+ * Disabled-node execution semantics (DECAF-50 §4.9).
94
+ *
95
+ * - `skip` — the node does not execute and produces no outputs.
96
+ * - `passThroughFirstInput` — the first incoming edge value is forwarded on
97
+ * the node's first declared output port.
98
+ * - `emitDefaults` — every declared output port is emitted with its default
99
+ * (absent a declared default, `undefined`).
100
+ */
101
+ export const GRAPH_DISABLED_NODE_BEHAVIORS = [
102
+ "skip",
103
+ "passThroughFirstInput",
104
+ "emitDefaults",
105
+ ];
106
+ /** The disabled-node behavior applied when a node declares none. */
107
+ export const GRAPH_DEFAULT_DISABLED_NODE_BEHAVIOR = "skip";
108
+ /** Type guard for {@link GraphDisabledNodeBehavior}. */
109
+ export function isGraphDisabledNodeBehavior(value) {
110
+ return GRAPH_DISABLED_NODE_BEHAVIORS.includes(value);
111
+ }
112
+ /**
113
+ * Execution status for a workflow or individual node.
114
+ */
115
+ export var GraphExecutionStatus;
116
+ (function (GraphExecutionStatus) {
117
+ GraphExecutionStatus["PENDING"] = "pending";
118
+ GraphExecutionStatus["PLANNING"] = "planning";
119
+ GraphExecutionStatus["RUNNING"] = "running";
120
+ GraphExecutionStatus["SUCCEEDED"] = "succeeded";
121
+ GraphExecutionStatus["FAILED"] = "failed";
122
+ GraphExecutionStatus["SKIPPED"] = "skipped";
123
+ GraphExecutionStatus["CANCELLED"] = "cancelled";
124
+ GraphExecutionStatus["CACHED"] = "cached";
125
+ })(GraphExecutionStatus || (GraphExecutionStatus = {}));
126
+ /**
127
+ * Visual execution state for a node or edge on the workflow canvas.
128
+ *
129
+ * Frontend-safe (DECAF-48 §4.4): a superset of {@link GraphExecutionStatus}
130
+ * normalised for rendering. `BLOCKED` is derived from the plan and execution
131
+ * events (waiting on upstream dependencies), not emitted as an engine status.
132
+ * `SKIPPED` is the post-failure "unexecuted/disabled" visual state.
133
+ */
134
+ export var GraphVisualState;
135
+ (function (GraphVisualState) {
136
+ GraphVisualState["IDLE"] = "idle";
137
+ GraphVisualState["RUNNING"] = "running";
138
+ GraphVisualState["BLOCKED"] = "blocked";
139
+ GraphVisualState["SUCCEEDED"] = "succeeded";
140
+ GraphVisualState["FAILED"] = "failed";
141
+ GraphVisualState["SKIPPED"] = "skipped";
142
+ })(GraphVisualState || (GraphVisualState = {}));
143
+ /**
144
+ * Namespace root for graph run SSE topics (DECAF-48 §4.2). A subscription
145
+ * filters on these granular topics before `observer.next(...)`.
146
+ */
147
+ export const GRAPH_RUN_TOPIC = "graph.run";
148
+ /**
149
+ * SSE sub-topic streaming per-node log lines during a run.
150
+ */
151
+ export const GRAPH_RUN_LOG_TOPIC = `${GRAPH_RUN_TOPIC}.log`;
152
+ /**
153
+ * SSE sub-topic streaming node/edge execution-state updates during a run.
154
+ */
155
+ export const GRAPH_RUN_STATE_TOPIC = `${GRAPH_RUN_TOPIC}.state`;
156
+ /**
157
+ * Logger custom-attribute keys attached to every run log line via
158
+ * DECAF-9 `logger.for({...})` (DECAF-48 §4.3). Rendered as discrete columns
159
+ * (not buried in the message string).
160
+ */
161
+ export var GraphLogAttribute;
162
+ (function (GraphLogAttribute) {
163
+ GraphLogAttribute["NODE_ID"] = "nodeId";
164
+ GraphLogAttribute["WORKFLOW_ID"] = "workflowId";
165
+ GraphLogAttribute["RUN_ID"] = "runId";
166
+ GraphLogAttribute["USER"] = "user";
167
+ })(GraphLogAttribute || (GraphLogAttribute = {}));
168
+ /**
169
+ * Namespace topic helper for a graph execution event.
170
+ *
171
+ * Log-carrier events resolve to `graph.run.log`; node/edge execution-state
172
+ * events resolve to `graph.run.state`; everything else stays under the shared
173
+ * `graph.run` topic and is only delivered to subscribers that match it.
174
+ *
175
+ * @param eventType - The graph execution event type to scope to a topic.
176
+ * @returns The SSE topic constant for the given event type.
177
+ */
178
+ export function graphRunTopicOf(eventType) {
179
+ switch (eventType) {
180
+ case GraphExecutionEventType.GRAPH_RUN_LOG:
181
+ return GRAPH_RUN_LOG_TOPIC;
182
+ case GraphExecutionEventType.NODE_STATE_CHANGED:
183
+ case GraphExecutionEventType.EDGE_STATE_CHANGED:
184
+ return GRAPH_RUN_STATE_TOPIC;
185
+ default:
186
+ return GRAPH_RUN_TOPIC;
187
+ }
188
+ }
189
+ /**
190
+ * Event types emitted through the graph execution observer pipeline.
191
+ *
192
+ * DECAF-48 extends this set with the visual-state and run-log event types the
193
+ * engine emits on the existing Observable: {@link GraphExecutionEventType.NODE_STATE_CHANGED},
194
+ * {@link GraphExecutionEventType.EDGE_STATE_CHANGED} and
195
+ * {@link GraphExecutionEventType.GRAPH_RUN_LOG}.
196
+ */
197
+ export var GraphExecutionEventType;
198
+ (function (GraphExecutionEventType) {
199
+ GraphExecutionEventType["WORKFLOW_STARTED"] = "workflow.started";
200
+ GraphExecutionEventType["WORKFLOW_PLANNED"] = "workflow.planned";
201
+ GraphExecutionEventType["WORKFLOW_COMPLETED"] = "workflow.completed";
202
+ GraphExecutionEventType["WORKFLOW_FAILED"] = "workflow.failed";
203
+ GraphExecutionEventType["WORKFLOW_CANCELLED"] = "workflow.cancelled";
204
+ GraphExecutionEventType["NODE_QUEUED"] = "node.queued";
205
+ GraphExecutionEventType["NODE_STARTED"] = "node.started";
206
+ GraphExecutionEventType["NODE_OUTPUT"] = "node.output";
207
+ GraphExecutionEventType["NODE_COMPLETED"] = "node.completed";
208
+ GraphExecutionEventType["NODE_FAILED"] = "node.failed";
209
+ GraphExecutionEventType["NODE_SKIPPED"] = "node.skipped";
210
+ GraphExecutionEventType["NODE_CACHE_HIT"] = "node.cacheHit";
211
+ GraphExecutionEventType["NODE_PINNED"] = "node.pinned";
212
+ GraphExecutionEventType["NODE_UNPINNED"] = "node.unpinned";
213
+ /** Node execution-state transition carrying a `GraphNodeStateChangedPayload` (DECAF-48 §4.4). */
214
+ GraphExecutionEventType["NODE_STATE_CHANGED"] = "node.stateChanged";
215
+ GraphExecutionEventType["EDGE_VALUE_ROUTED"] = "edge.valueRouted";
216
+ /** Edge execution-state transition carrying a `GraphEdgeStateChangedPayload` (DECAF-48 §4.4). */
217
+ GraphExecutionEventType["EDGE_STATE_CHANGED"] = "edge.stateChanged";
218
+ /** Structured run log line carrying a `GraphRunLogEntry` (DECAF-48 §4.3). */
219
+ GraphExecutionEventType["GRAPH_RUN_LOG"] = "graph.run.log";
220
+ GraphExecutionEventType["LOOP_STARTED"] = "loop.started";
221
+ GraphExecutionEventType["LOOP_ITERATION_STARTED"] = "loop.iteration.started";
222
+ GraphExecutionEventType["LOOP_ITERATION_COMPLETED"] = "loop.iteration.completed";
223
+ GraphExecutionEventType["LOOP_CONDITION_EVALUATED"] = "loop.condition.evaluated";
224
+ GraphExecutionEventType["LOOP_COMPLETED"] = "loop.completed";
225
+ GraphExecutionEventType["LOOP_LIMIT_REACHED"] = "loop.limitReached";
226
+ GraphExecutionEventType["VALIDATION_STARTED"] = "validation.started";
227
+ GraphExecutionEventType["VALIDATION_FAILED"] = "validation.failed";
228
+ GraphExecutionEventType["VALIDATION_COMPLETED"] = "validation.completed";
229
+ GraphExecutionEventType["STORE_READ"] = "store.read";
230
+ GraphExecutionEventType["STORE_WRITE"] = "store.write";
231
+ GraphExecutionEventType["STORE_DELETE"] = "store.delete";
232
+ })(GraphExecutionEventType || (GraphExecutionEventType = {}));
233
+ /** Default run limits: request size, per-caller concurrency, event retention/payload size, execution timeout, and post-terminal event replay window. */
234
+ export const DEFAULT_GRAPH_RUN_LIMITS = {
235
+ maxRequestBytes: 4_000_000,
236
+ maxConcurrentRuns: 32,
237
+ maxEventsPerRun: 10_000,
238
+ maxEventPayloadBytes: 256_000,
239
+ executionTimeoutMs: 600_000,
240
+ eventReplayWindowMs: 300_000,
241
+ };
242
+ /**
243
+ * Terminal graph event types closing a run's SSE stream
244
+ * (DECAF-50 §4.15). The run SSE endpoint never emits anything after these.
245
+ */
246
+ export const GRAPH_RUN_TERMINAL_EVENT_TYPES = [
247
+ GraphExecutionEventType.WORKFLOW_COMPLETED,
248
+ GraphExecutionEventType.WORKFLOW_FAILED,
249
+ GraphExecutionEventType.WORKFLOW_CANCELLED,
250
+ ];
251
+ /** Whether the event type is a run-stream terminal type (see {@link GRAPH_RUN_TERMINAL_EVENT_TYPES}). */
252
+ export function isGraphRunTerminalEventType(type) {
253
+ return GRAPH_RUN_TERMINAL_EVENT_TYPES.includes(type);
254
+ }
255
+ /** Whether the run status is terminal (`succeeded`, `failed`, or `cancelled`). */
256
+ export function isGraphRunTerminalStatus(status) {
257
+ return status === "succeeded" || status === "failed" || status === "cancelled";
258
+ }
259
+ /** Type guard for {@link GraphRunStatus}. */
260
+ export function isGraphRunStatus(value) {
261
+ return (typeof value === "string" &&
262
+ [
263
+ "queued",
264
+ "validating",
265
+ "running",
266
+ "succeeded",
267
+ "failed",
268
+ "cancelled",
269
+ ].includes(value));
270
+ }
92
271
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/graph/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BA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GG;AACH,MAAM,CAAC,MAAM,8BAA8B,GACzC;IACE,uBAAuB,CAAC,kBAAkB;IAC1C,uBAAuB,CAAC,eAAe;IACvC,uBAAuB,CAAC,kBAAkB;CAC3C,CAAC;AAEJ,yGAAyG;AACzG,MAAM,UAAU,2BAA2B,CACzC,IAA6B;IAE7B,OAAO,8BAA8B,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,kFAAkF;AAClF,MAAM,UAAU,wBAAwB,CAAC,MAAsB;IAC7D,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,WAAW,CAAC;AACjF,CAAC;AAED,6CAA6C;AAC7C,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC7C,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB;YACE,QAAQ;YACR,YAAY;YACZ,SAAS;YACT,WAAW;YACX,QAAQ;YACR,WAAW;SACZ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAClB,CAAC;AACJ,CAAC"}
@@ -9,5 +9,8 @@ export * from "./reader.js";
9
9
  export * from "./document/index.js";
10
10
  export * from "./catalog/index.js";
11
11
  export * from "./types.js";
12
+ export * from "./GraphExecutionStateMapper.js";
13
+ export * from "./GraphResolution.js";
14
+ export * from "./nodes/index.js";
12
15
  export * from "./overrides/index.js";
13
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/graph/index.ts"],"names":[],"mappings":"AAAA,iCAAsB;AACtB,8BAAqB;AAErB,+BAA4B;AAC5B,gCAA6B;AAC7B,8BAA2B;AAC3B,qCAA4B;AAC5B,8BAA2B;AAC3B,4BAAyB;AACzB,oCAA2B;AAC3B,mCAA0B;AAC1B,2BAAwB;AACxB,qCAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/graph/index.ts"],"names":[],"mappings":"AAAA,iCAAsB;AACtB,8BAAqB;AAErB,+BAA4B;AAC5B,gCAA6B;AAC7B,8BAA2B;AAC3B,qCAA4B;AAC5B,8BAA2B;AAC3B,4BAAyB;AACzB,oCAA2B;AAC3B,mCAA0B;AAC1B,2BAAwB;AACxB,+CAA4C;AAC5C,qCAAkC;AAClC,iCAAwB;AACxB,qCAA4B"}
@@ -0,0 +1,101 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ /**
11
+ * @module ui-decorators/graph/nodes/agents/agent
12
+ * @summary Production Agent node declaration.
13
+ * @description The Agent node is the primary AI agent entrypoint. It is a
14
+ * rectangular node with `@connection()` ports for its structural
15
+ * dependencies: `model` (the LLM), `memory` (the memory store), and
16
+ * `workspace` (the workspace/context). Connections are rendered on the
17
+ * bottom side of the node (DECAF-32 §21.3). Each connection category has a
18
+ * distinct color defined in the category style registry.
19
+ *
20
+ * The single `prompt` input accepts placeholder expressions (§22.4) such as
21
+ * `{{ $input.brief }}` or `{{ $node["Research"].output.summary }}` that are
22
+ * resolved at execution time by the placeholder compiler.
23
+ */
24
+ import { Model, model, required } from "@decaf-ts/decorator-validation";
25
+ import { uielement } from "./../../../ui/decorators.js";
26
+ import { connection, input, node, output } from "./../../decorators.js";
27
+ // Ensure category styles are registered (idempotent).
28
+ import "./../category-styles.js";
29
+ /**
30
+ * Agent node — an AI agent that orchestrates a model, memory, and workspace.
31
+ *
32
+ * The agent has:
33
+ * - `@input` port on the **left**: `prompt` (the task prompt; supports
34
+ * placeholder expressions like `{{ $input.something }}` per §22.4).
35
+ * - `@output` ports on the **right**: `response` (the agent's output), `actions`
36
+ * (any actions the agent decided to take).
37
+ * - `@connection` ports on the **bottom**: `model` (LLM), `memory` (memory
38
+ * store), `workspace` (workspace/context). Each connection has a distinct
39
+ * category color.
40
+ *
41
+ * The node is rectangular (not rounded) to visually distinguish it from
42
+ * regular processing nodes. The `color` and `icon` are omitted from `@node()`
43
+ * so they are resolved from the `"Agent"` category style.
44
+ */
45
+ let AgentNode = class AgentNode extends Model {
46
+ };
47
+ __decorate([
48
+ required(),
49
+ uielement("textarea", {
50
+ label: "Prompt",
51
+ placeholder: "Enter task prompt. Supports placeholders like {{ $input.brief }} or {{ $node[\"Research\"].output.summary }}",
52
+ }),
53
+ input({ handle: "prompt" }),
54
+ __metadata("design:type", String)
55
+ ], AgentNode.prototype, "prompt", void 0);
56
+ __decorate([
57
+ required(),
58
+ uielement("textarea", { label: "Response", placeholder: "Agent response" }),
59
+ output({ handle: "response" }),
60
+ __metadata("design:type", String)
61
+ ], AgentNode.prototype, "response", void 0);
62
+ __decorate([
63
+ required(),
64
+ uielement("textarea", { label: "Actions", placeholder: "Actions taken by the agent" }),
65
+ output({ handle: "actions" }),
66
+ __metadata("design:type", Array)
67
+ ], AgentNode.prototype, "actions", void 0);
68
+ __decorate([
69
+ connection({ category: "model", handle: "model" }),
70
+ __metadata("design:type", Object)
71
+ ], AgentNode.prototype, "model", void 0);
72
+ __decorate([
73
+ connection({ category: "memory", handle: "memory" }),
74
+ __metadata("design:type", Object)
75
+ ], AgentNode.prototype, "memory", void 0);
76
+ __decorate([
77
+ connection({ category: "workspace", handle: "workspace" }),
78
+ __metadata("design:type", Object)
79
+ ], AgentNode.prototype, "workspace", void 0);
80
+ AgentNode = __decorate([
81
+ node("core.agent", {
82
+ kind: "core.agent",
83
+ category: "Agent",
84
+ // color and icon omitted — resolved from the "Agent" category style
85
+ width: 120,
86
+ height: 140,
87
+ labels: ["agent", "ai", "orchestrator"],
88
+ metadata: {
89
+ title: "Agent",
90
+ description: "AI agent that orchestrates a model, memory, and workspace to complete a task.",
91
+ shape: "rectangle",
92
+ },
93
+ }),
94
+ model()
95
+ ], AgentNode);
96
+ export { AgentNode };
97
+ /**
98
+ * All built-in agent node constructors.
99
+ */
100
+ export const GRAPH_AGENT_NODES = [AgentNode];
101
+ //# sourceMappingURL=agent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/agents/agent.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,oCAA+B;AACnD,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,8BAAyB;AAEnE,sDAAsD;AACtD,iCAA4B;AAE5B;;;;;;;;;;;;;;;GAeG;AAgBI,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,KAAK;CAiCnC,CAAA;AAxBC;IANC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE;QACrB,KAAK,EAAE,QAAQ;QACf,WAAW,EAAE,8GAA8G;KAC5H,CAAC;IACD,KAAK,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;;yCACZ;AAOhB;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAC3E,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;;2CACb;AAKlB;IAHC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;IACtF,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;;0CACV;AAKpB;IADC,UAAU,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;wCACnC;AAGhB;IADC,UAAU,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;;yCACpC;AAGjB;IADC,UAAU,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;;4CACvC;AAhCT,SAAS;IAfrB,IAAI,CAAC,YAAY,EAAE;QAClB,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;YACR,KAAK,EAAE,OAAO;YACd,WAAW,EACT,+EAA+E;YACjF,KAAK,EAAE,WAAW;SACnB;KACF,CAAC;IACD,KAAK,EAAE;GACK,SAAS,CAiCrB;;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,SAAS,CAAU,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @module ui-decorators/graph/nodes/base
3
+ * @summary Base class for shared graph node declarations.
4
+ * @description `GraphNode` extends `Model` with an overridable
5
+ * `applyMetadata` static method. Concrete node kinds that support dynamic
6
+ * metadata changes (e.g. `SwitchFlowNode` adding case output ports) override
7
+ * this method to compute their own ports, size, and data patches — the node
8
+ * is exclusively responsible for itself in every way.
9
+ */
10
+ import { Model } from "@decaf-ts/decorator-validation";
11
+ export class GraphNode extends Model {
12
+ /**
13
+ * Applies a metadata patch to this node class, returning the resulting
14
+ * ports, size, and data patches.
15
+ *
16
+ * The default implementation returns `null` (no changes). Concrete node
17
+ * kinds that support dynamic metadata override this to compute their own
18
+ * ports and size from the metadata — the caller (renderer) simply relays
19
+ * the result to the diagram model.
20
+ *
21
+ * @param _meta - The metadata patch (node-kind-specific, e.g.
22
+ * `SwitchNodeMetadata`).
23
+ * @returns The computed change, or `null` when the node kind does not
24
+ * support dynamic metadata.
25
+ */
26
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
27
+ static applyMetadata(_meta) {
28
+ return null;
29
+ }
30
+ }
31
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../src/graph/nodes/base.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAGvD,MAAM,OAAO,SAAU,SAAQ,KAAK;IAClC;;;;;;;;;;;;;OAaG;IACH,6DAA6D;IAC7D,MAAM,CAAC,aAAa,CAAC,KAAc;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -0,0 +1,48 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ /**
11
+ * @module ui-decorators/graph/nodes/boundary/input-value
12
+ * @summary Workflow input value boundary node declaration.
13
+ * @description Shared canvas node representing a workflow input value
14
+ * (decorator id `graph-input-value-node`), moved from the for-angular
15
+ * boundary nodes so both sides share the declaration. Reusable value node
16
+ * whose single `value` output may feed multiple targets.
17
+ */
18
+ import { Model, model } from "@decaf-ts/decorator-validation";
19
+ import { output, node } from "./../../decorators.js";
20
+ // Ensure category styles are registered (idempotent).
21
+ import "./../category-styles.js";
22
+ let GraphInputValueNode = class GraphInputValueNode extends Model {
23
+ };
24
+ __decorate([
25
+ output({
26
+ handle: 'value',
27
+ connectionRules: {
28
+ allowMultiple: true,
29
+ },
30
+ }),
31
+ __metadata("design:type", Object)
32
+ ], GraphInputValueNode.prototype, "value", void 0);
33
+ GraphInputValueNode = __decorate([
34
+ node('graph-input-value-node', {
35
+ kind: 'value',
36
+ category: 'Boundary',
37
+ color: '#0f766e',
38
+ icon: 'ti-circle-plus',
39
+ labels: ['workflow', 'input', 'value'],
40
+ metadata: {
41
+ title: 'Workflow input value',
42
+ description: 'Reusable canvas value node representing a workflow input.',
43
+ },
44
+ }),
45
+ model()
46
+ ], GraphInputValueNode);
47
+ export { GraphInputValueNode };
48
+ //# sourceMappingURL=input-value.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-value.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/boundary/input-value.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,8BAAyB;AAEhD,sDAAsD;AACtD,iCAA4B;AAcrB,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,KAAK;CAQ7C,CAAA;AADC;IANC,MAAM,CAAC;QACN,MAAM,EAAE,OAAO;QACf,eAAe,EAAE;YACf,aAAa,EAAE,IAAI;SACpB;KACF,CAAC;;kDACc;AAPL,mBAAmB;IAZ/B,IAAI,CAAC,wBAAwB,EAAE;QAC9B,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,UAAU;QACpB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC;QACtC,QAAQ,EAAE;YACR,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EAAE,2DAA2D;SACzE;KACF,CAAC;IACD,KAAK,EAAE;GACK,mBAAmB,CAQ/B"}