@decaf-ts/ui-decorators 0.20.3 → 0.20.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui-decorators.cjs +1 -1
- package/lib/cjs/graph/GraphExecutionStateMapper.cjs +97 -0
- package/lib/cjs/graph/GraphExecutionStateMapper.cjs.map +1 -0
- package/lib/cjs/graph/GraphResolution.cjs +17 -0
- package/lib/cjs/graph/GraphResolution.cjs.map +1 -0
- package/lib/cjs/graph/constants.cjs +157 -1
- package/lib/cjs/graph/constants.cjs.map +1 -1
- package/lib/cjs/graph/index.cjs +3 -0
- package/lib/cjs/graph/index.cjs.map +1 -1
- package/lib/cjs/graph/nodes/agents/agent.cjs +110 -0
- package/lib/cjs/graph/nodes/agents/agent.cjs.map +1 -0
- package/lib/cjs/graph/nodes/base.cjs +36 -0
- package/lib/cjs/graph/nodes/base.cjs.map +1 -0
- package/lib/cjs/graph/nodes/boundary/input-value.cjs +57 -0
- package/lib/cjs/graph/nodes/boundary/input-value.cjs.map +1 -0
- package/lib/cjs/graph/nodes/category-styles.cjs +38 -0
- package/lib/cjs/graph/nodes/category-styles.cjs.map +1 -0
- package/lib/cjs/graph/nodes/flow-control/break.cjs +63 -0
- package/lib/cjs/graph/nodes/flow-control/break.cjs.map +1 -0
- package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs +67 -0
- package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs.map +1 -0
- package/lib/cjs/graph/nodes/flow-control/human-approval.cjs +69 -0
- package/lib/cjs/graph/nodes/flow-control/human-approval.cjs.map +1 -0
- package/lib/cjs/graph/nodes/flow-control/if.cjs +71 -0
- package/lib/cjs/graph/nodes/flow-control/if.cjs.map +1 -0
- package/lib/cjs/graph/nodes/flow-control/parallel.cjs +61 -0
- package/lib/cjs/graph/nodes/flow-control/parallel.cjs.map +1 -0
- package/lib/cjs/graph/nodes/flow-control/switch.cjs +121 -0
- package/lib/cjs/graph/nodes/flow-control/switch.cjs.map +1 -0
- package/lib/cjs/graph/nodes/index.cjs +123 -0
- package/lib/cjs/graph/nodes/index.cjs.map +1 -0
- package/lib/cjs/graph/nodes/loops/foreach.cjs +86 -0
- package/lib/cjs/graph/nodes/loops/foreach.cjs.map +1 -0
- package/lib/cjs/graph/nodes/loops/until.cjs +74 -0
- package/lib/cjs/graph/nodes/loops/until.cjs.map +1 -0
- package/lib/cjs/graph/nodes/loops/while.cjs +74 -0
- package/lib/cjs/graph/nodes/loops/while.cjs.map +1 -0
- package/lib/cjs/graph/nodes/manifests.cjs +338 -0
- package/lib/cjs/graph/nodes/manifests.cjs.map +1 -0
- package/lib/cjs/graph/nodes/triggers/chat.cjs +70 -0
- package/lib/cjs/graph/nodes/triggers/chat.cjs.map +1 -0
- package/lib/cjs/graph/nodes/triggers/event.cjs +58 -0
- package/lib/cjs/graph/nodes/triggers/event.cjs.map +1 -0
- package/lib/cjs/graph/nodes/triggers/form.cjs +59 -0
- package/lib/cjs/graph/nodes/triggers/form.cjs.map +1 -0
- package/lib/cjs/graph/nodes/triggers/manual.cjs +60 -0
- package/lib/cjs/graph/nodes/triggers/manual.cjs.map +1 -0
- package/lib/cjs/graph/nodes/triggers/schedule.cjs +60 -0
- package/lib/cjs/graph/nodes/triggers/schedule.cjs.map +1 -0
- package/lib/cjs/graph/nodes/triggers/webhook.cjs +62 -0
- package/lib/cjs/graph/nodes/triggers/webhook.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/code.cjs +99 -0
- package/lib/cjs/graph/nodes/utility/code.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/delay.cjs +61 -0
- package/lib/cjs/graph/nodes/utility/delay.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/log.cjs +62 -0
- package/lib/cjs/graph/nodes/utility/log.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/map.cjs +61 -0
- package/lib/cjs/graph/nodes/utility/map.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/merge.cjs +62 -0
- package/lib/cjs/graph/nodes/utility/merge.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/return.cjs +61 -0
- package/lib/cjs/graph/nodes/utility/return.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/utility-log.cjs +66 -0
- package/lib/cjs/graph/nodes/utility/utility-log.cjs.map +1 -0
- package/lib/cjs/index.cjs +3 -3
- package/lib/esm/graph/GraphExecutionStateMapper.js +91 -0
- package/lib/esm/graph/GraphExecutionStateMapper.js.map +1 -0
- package/lib/esm/graph/GraphResolution.js +13 -0
- package/lib/esm/graph/GraphResolution.js.map +1 -0
- package/lib/esm/graph/constants.js +179 -0
- package/lib/esm/graph/constants.js.map +1 -1
- package/lib/esm/graph/index.js +3 -0
- package/lib/esm/graph/index.js.map +1 -1
- package/lib/esm/graph/nodes/agents/agent.js +101 -0
- package/lib/esm/graph/nodes/agents/agent.js.map +1 -0
- package/lib/esm/graph/nodes/base.js +31 -0
- package/lib/esm/graph/nodes/base.js.map +1 -0
- package/lib/esm/graph/nodes/boundary/input-value.js +48 -0
- package/lib/esm/graph/nodes/boundary/input-value.js.map +1 -0
- package/lib/esm/graph/nodes/category-styles.js +34 -0
- package/lib/esm/graph/nodes/category-styles.js.map +1 -0
- package/lib/esm/graph/nodes/flow-control/break.js +54 -0
- package/lib/esm/graph/nodes/flow-control/break.js.map +1 -0
- package/lib/esm/graph/nodes/flow-control/error-boundary.js +58 -0
- package/lib/esm/graph/nodes/flow-control/error-boundary.js.map +1 -0
- package/lib/esm/graph/nodes/flow-control/human-approval.js +60 -0
- package/lib/esm/graph/nodes/flow-control/human-approval.js.map +1 -0
- package/lib/esm/graph/nodes/flow-control/if.js +62 -0
- package/lib/esm/graph/nodes/flow-control/if.js.map +1 -0
- package/lib/esm/graph/nodes/flow-control/parallel.js +52 -0
- package/lib/esm/graph/nodes/flow-control/parallel.js.map +1 -0
- package/lib/esm/graph/nodes/flow-control/switch.js +112 -0
- package/lib/esm/graph/nodes/flow-control/switch.js.map +1 -0
- package/lib/esm/graph/nodes/index.js +105 -0
- package/lib/esm/graph/nodes/index.js.map +1 -0
- package/lib/esm/graph/nodes/loops/foreach.js +77 -0
- package/lib/esm/graph/nodes/loops/foreach.js.map +1 -0
- package/lib/esm/graph/nodes/loops/until.js +65 -0
- package/lib/esm/graph/nodes/loops/until.js.map +1 -0
- package/lib/esm/graph/nodes/loops/while.js +65 -0
- package/lib/esm/graph/nodes/loops/while.js.map +1 -0
- package/lib/esm/graph/nodes/manifests.js +334 -0
- package/lib/esm/graph/nodes/manifests.js.map +1 -0
- package/lib/esm/graph/nodes/triggers/chat.js +61 -0
- package/lib/esm/graph/nodes/triggers/chat.js.map +1 -0
- package/lib/esm/graph/nodes/triggers/event.js +49 -0
- package/lib/esm/graph/nodes/triggers/event.js.map +1 -0
- package/lib/esm/graph/nodes/triggers/form.js +50 -0
- package/lib/esm/graph/nodes/triggers/form.js.map +1 -0
- package/lib/esm/graph/nodes/triggers/manual.js +51 -0
- package/lib/esm/graph/nodes/triggers/manual.js.map +1 -0
- package/lib/esm/graph/nodes/triggers/schedule.js +51 -0
- package/lib/esm/graph/nodes/triggers/schedule.js.map +1 -0
- package/lib/esm/graph/nodes/triggers/webhook.js +53 -0
- package/lib/esm/graph/nodes/triggers/webhook.js.map +1 -0
- package/lib/esm/graph/nodes/utility/code.js +90 -0
- package/lib/esm/graph/nodes/utility/code.js.map +1 -0
- package/lib/esm/graph/nodes/utility/delay.js +52 -0
- package/lib/esm/graph/nodes/utility/delay.js.map +1 -0
- package/lib/esm/graph/nodes/utility/log.js +53 -0
- package/lib/esm/graph/nodes/utility/log.js.map +1 -0
- package/lib/esm/graph/nodes/utility/map.js +52 -0
- package/lib/esm/graph/nodes/utility/map.js.map +1 -0
- package/lib/esm/graph/nodes/utility/merge.js +53 -0
- package/lib/esm/graph/nodes/utility/merge.js.map +1 -0
- package/lib/esm/graph/nodes/utility/return.js +52 -0
- package/lib/esm/graph/nodes/utility/return.js.map +1 -0
- package/lib/esm/graph/nodes/utility/utility-log.js +57 -0
- package/lib/esm/graph/nodes/utility/utility-log.js.map +1 -0
- package/lib/esm/index.js +3 -3
- package/lib/types/graph/GraphExecutionStateMapper.d.cts +66 -0
- package/lib/types/graph/GraphExecutionStateMapper.d.mts +66 -0
- package/lib/types/graph/GraphResolution.d.cts +53 -0
- package/lib/types/graph/GraphResolution.d.mts +53 -0
- package/lib/types/graph/constants.d.cts +165 -0
- package/lib/types/graph/constants.d.mts +165 -0
- package/lib/types/graph/index.d.cts +3 -0
- package/lib/types/graph/index.d.mts +3 -0
- package/lib/types/graph/nodes/agents/agent.d.cts +44 -0
- package/lib/types/graph/nodes/agents/agent.d.mts +44 -0
- package/lib/types/graph/nodes/base.d.cts +28 -0
- package/lib/types/graph/nodes/base.d.mts +28 -0
- package/lib/types/graph/nodes/boundary/input-value.d.cts +13 -0
- package/lib/types/graph/nodes/boundary/input-value.d.mts +13 -0
- package/lib/types/graph/nodes/category-styles.d.cts +8 -0
- package/lib/types/graph/nodes/category-styles.d.mts +8 -0
- package/lib/types/graph/nodes/flow-control/break.d.cts +15 -0
- package/lib/types/graph/nodes/flow-control/break.d.mts +15 -0
- package/lib/types/graph/nodes/flow-control/error-boundary.d.cts +12 -0
- package/lib/types/graph/nodes/flow-control/error-boundary.d.mts +12 -0
- package/lib/types/graph/nodes/flow-control/human-approval.d.cts +13 -0
- package/lib/types/graph/nodes/flow-control/human-approval.d.mts +13 -0
- package/lib/types/graph/nodes/flow-control/if.d.cts +16 -0
- package/lib/types/graph/nodes/flow-control/if.d.mts +16 -0
- package/lib/types/graph/nodes/flow-control/parallel.d.cts +11 -0
- package/lib/types/graph/nodes/flow-control/parallel.d.mts +11 -0
- package/lib/types/graph/nodes/flow-control/switch.d.cts +21 -0
- package/lib/types/graph/nodes/flow-control/switch.d.mts +21 -0
- package/lib/types/graph/nodes/index.d.cts +79 -0
- package/lib/types/graph/nodes/index.d.mts +79 -0
- package/lib/types/graph/nodes/loops/foreach.d.cts +19 -0
- package/lib/types/graph/nodes/loops/foreach.d.mts +19 -0
- package/lib/types/graph/nodes/loops/until.d.cts +16 -0
- package/lib/types/graph/nodes/loops/until.d.mts +16 -0
- package/lib/types/graph/nodes/loops/while.d.cts +16 -0
- package/lib/types/graph/nodes/loops/while.d.mts +16 -0
- package/lib/types/graph/nodes/manifests.d.cts +62 -0
- package/lib/types/graph/nodes/manifests.d.mts +62 -0
- package/lib/types/graph/nodes/triggers/chat.d.cts +13 -0
- package/lib/types/graph/nodes/triggers/chat.d.mts +13 -0
- package/lib/types/graph/nodes/triggers/event.d.cts +10 -0
- package/lib/types/graph/nodes/triggers/event.d.mts +10 -0
- package/lib/types/graph/nodes/triggers/form.d.cts +11 -0
- package/lib/types/graph/nodes/triggers/form.d.mts +11 -0
- package/lib/types/graph/nodes/triggers/manual.d.cts +12 -0
- package/lib/types/graph/nodes/triggers/manual.d.mts +12 -0
- package/lib/types/graph/nodes/triggers/schedule.d.cts +11 -0
- package/lib/types/graph/nodes/triggers/schedule.d.mts +11 -0
- package/lib/types/graph/nodes/triggers/webhook.d.cts +11 -0
- package/lib/types/graph/nodes/triggers/webhook.d.mts +11 -0
- package/lib/types/graph/nodes/utility/code.d.cts +31 -0
- package/lib/types/graph/nodes/utility/code.d.mts +31 -0
- package/lib/types/graph/nodes/utility/delay.d.cts +11 -0
- package/lib/types/graph/nodes/utility/delay.d.mts +11 -0
- package/lib/types/graph/nodes/utility/log.d.cts +13 -0
- package/lib/types/graph/nodes/utility/log.d.mts +13 -0
- package/lib/types/graph/nodes/utility/map.d.cts +11 -0
- package/lib/types/graph/nodes/utility/map.d.mts +11 -0
- package/lib/types/graph/nodes/utility/merge.d.cts +12 -0
- package/lib/types/graph/nodes/utility/merge.d.mts +12 -0
- package/lib/types/graph/nodes/utility/return.d.cts +11 -0
- package/lib/types/graph/nodes/utility/return.d.mts +11 -0
- package/lib/types/graph/nodes/utility/utility-log.d.cts +15 -0
- package/lib/types/graph/nodes/utility/utility-log.d.mts +15 -0
- package/lib/types/graph/types.d.cts +286 -0
- package/lib/types/graph/types.d.mts +286 -0
- package/lib/types/index.d.cts +3 -3
- package/lib/types/index.d.mts +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GRAPH_BUILT_IN_NODE_MANIFESTS_BY_KIND = exports.GRAPH_BUILT_IN_NODE_MANIFESTS = exports.AGENT_GRAPH_NODE_MANIFEST = exports.BREAK_GRAPH_NODE_MANIFEST = exports.UTILITY_LOG_GRAPH_NODE_MANIFEST = exports.LOG_GRAPH_NODE_MANIFEST = exports.CODE_GRAPH_NODE_MANIFEST = exports.RETURN_GRAPH_NODE_MANIFEST = exports.HUMAN_APPROVAL_GRAPH_NODE_MANIFEST = exports.ERROR_BOUNDARY_GRAPH_NODE_MANIFEST = exports.DELAY_GRAPH_NODE_MANIFEST = exports.MAP_GRAPH_NODE_MANIFEST = exports.MERGE_GRAPH_NODE_MANIFEST = exports.PARALLEL_GRAPH_NODE_MANIFEST = exports.IF_GRAPH_NODE_MANIFEST = exports.CHAT_TRIGGER_GRAPH_NODE_MANIFEST = exports.FORM_TRIGGER_GRAPH_NODE_MANIFEST = exports.EVENT_TRIGGER_GRAPH_NODE_MANIFEST = exports.SCHEDULE_TRIGGER_GRAPH_NODE_MANIFEST = exports.WEBHOOK_TRIGGER_GRAPH_NODE_MANIFEST = exports.MANUAL_TRIGGER_GRAPH_NODE_MANIFEST = exports.SWITCH_GRAPH_NODE_MANIFEST = exports.UNTIL_GRAPH_NODE_MANIFEST = exports.WHILE_GRAPH_NODE_MANIFEST = exports.FOREACH_GRAPH_NODE_MANIFEST = void 0;
|
|
4
|
+
const index_js_1 = require("./../catalog/index.cjs");
|
|
5
|
+
const agent_js_1 = require("./agents/agent.cjs");
|
|
6
|
+
const break_js_1 = require("./flow-control/break.cjs");
|
|
7
|
+
const error_boundary_js_1 = require("./flow-control/error-boundary.cjs");
|
|
8
|
+
const human_approval_js_1 = require("./flow-control/human-approval.cjs");
|
|
9
|
+
const if_js_1 = require("./flow-control/if.cjs");
|
|
10
|
+
const parallel_js_1 = require("./flow-control/parallel.cjs");
|
|
11
|
+
const switch_js_1 = require("./flow-control/switch.cjs");
|
|
12
|
+
const code_js_1 = require("./utility/code.cjs");
|
|
13
|
+
const delay_js_1 = require("./utility/delay.cjs");
|
|
14
|
+
const log_js_1 = require("./utility/log.cjs");
|
|
15
|
+
const map_js_1 = require("./utility/map.cjs");
|
|
16
|
+
const merge_js_1 = require("./utility/merge.cjs");
|
|
17
|
+
const return_js_1 = require("./utility/return.cjs");
|
|
18
|
+
const utility_log_js_1 = require("./utility/utility-log.cjs");
|
|
19
|
+
const chat_js_1 = require("./triggers/chat.cjs");
|
|
20
|
+
const event_js_1 = require("./triggers/event.cjs");
|
|
21
|
+
const form_js_1 = require("./triggers/form.cjs");
|
|
22
|
+
const manual_js_1 = require("./triggers/manual.cjs");
|
|
23
|
+
const schedule_js_1 = require("./triggers/schedule.cjs");
|
|
24
|
+
const webhook_js_1 = require("./triggers/webhook.cjs");
|
|
25
|
+
/**
|
|
26
|
+
* Builds a single {@link GraphPortManifest} from its id, label, direction,
|
|
27
|
+
* and optional extra fields — the terse constructor used by the hand-authored
|
|
28
|
+
* loop manifests below.
|
|
29
|
+
*
|
|
30
|
+
* @param id - Port identifier (matches the decorated property handle).
|
|
31
|
+
* @param label - Human-readable port label.
|
|
32
|
+
* @param direction - Port direction (`input` or `output`).
|
|
33
|
+
* @param extra - Optional manifest fields merged over the defaults.
|
|
34
|
+
* @returns The assembled port manifest.
|
|
35
|
+
*/
|
|
36
|
+
function port(id, label, direction, extra = {}) {
|
|
37
|
+
return { id, label, direction, ...extra };
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Compiles a `@node`-decorated class into its published
|
|
41
|
+
* {@link GraphNodeManifest}, so the served shape matches what the Angular
|
|
42
|
+
* palette consumes.
|
|
43
|
+
*
|
|
44
|
+
* @param node - The decorated node class constructor.
|
|
45
|
+
* @param name - Display name override for the compiled manifest.
|
|
46
|
+
* @returns The compiled node manifest.
|
|
47
|
+
*/
|
|
48
|
+
function compile(node, name) {
|
|
49
|
+
return (0, index_js_1.graphNodeManifest)(node, { name });
|
|
50
|
+
}
|
|
51
|
+
/** Manifest for the `core.loop.foreach` node: runs the loop body once per item (or slice) of the input array. */
|
|
52
|
+
exports.FOREACH_GRAPH_NODE_MANIFEST = {
|
|
53
|
+
kind: "core.loop.foreach",
|
|
54
|
+
capabilities: ["loop"],
|
|
55
|
+
display: {
|
|
56
|
+
name: "Foreach",
|
|
57
|
+
description: "Runs the loop body once per item (or per slice of items) of the input array, collecting the results in order.",
|
|
58
|
+
category: "Flow Control",
|
|
59
|
+
color: "#8b5cf6",
|
|
60
|
+
icon: { type: "catalogue", name: "ti-repeat" },
|
|
61
|
+
width: 120,
|
|
62
|
+
height: 140,
|
|
63
|
+
labels: ["flow", "loop", "foreach", "iteration"],
|
|
64
|
+
},
|
|
65
|
+
inputs: [
|
|
66
|
+
port("items", "Items", "input", {
|
|
67
|
+
required: true,
|
|
68
|
+
schema: { type: "array", items: { type: "any" } },
|
|
69
|
+
}),
|
|
70
|
+
port("slice", "Slice size", "input", { schema: { type: "number", integer: true, min: 1 } }),
|
|
71
|
+
port("state", "Initial state", "input", { schema: { type: "any" } }),
|
|
72
|
+
],
|
|
73
|
+
outputs: [
|
|
74
|
+
port("results", "Results", "output", {
|
|
75
|
+
schema: { type: "array", items: { type: "any" } },
|
|
76
|
+
}),
|
|
77
|
+
port("completed", "Completed", "output", {
|
|
78
|
+
schema: { type: "array", items: { type: "any" } },
|
|
79
|
+
}),
|
|
80
|
+
port("iterations", "Iterations", "output", { schema: { type: "number", integer: true, min: 0 } }),
|
|
81
|
+
port("broken", "Broken", "output", { schema: { type: "boolean" } }),
|
|
82
|
+
port("state", "Final state", "output", { schema: { type: "any" } }),
|
|
83
|
+
],
|
|
84
|
+
parameters: [
|
|
85
|
+
{
|
|
86
|
+
type: "number",
|
|
87
|
+
id: "maxIterations",
|
|
88
|
+
label: "Max iterations",
|
|
89
|
+
integer: true,
|
|
90
|
+
min: 1,
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
type: "object",
|
|
94
|
+
id: "condition",
|
|
95
|
+
label: "Condition",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
type: "string",
|
|
99
|
+
id: "itemPort",
|
|
100
|
+
label: "Item port",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
type: "string",
|
|
104
|
+
id: "resultPort",
|
|
105
|
+
label: "Result port",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
type: "string",
|
|
109
|
+
id: "statePort",
|
|
110
|
+
label: "State port",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
type: "number",
|
|
114
|
+
id: "slice",
|
|
115
|
+
label: "Slice size",
|
|
116
|
+
integer: true,
|
|
117
|
+
min: 1,
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
};
|
|
121
|
+
/** Manifest for the `core.loop.while` node: repeats the loop body while the condition holds. */
|
|
122
|
+
exports.WHILE_GRAPH_NODE_MANIFEST = {
|
|
123
|
+
kind: "core.loop.while",
|
|
124
|
+
capabilities: ["loop"],
|
|
125
|
+
display: {
|
|
126
|
+
name: "While",
|
|
127
|
+
description: "Runs the loop body while the configured condition evaluates to true, threading the state between iterations.",
|
|
128
|
+
category: "Flow Control",
|
|
129
|
+
color: "#8b5cf6",
|
|
130
|
+
icon: { type: "catalogue", name: "ti-repeat-once" },
|
|
131
|
+
width: 120,
|
|
132
|
+
height: 140,
|
|
133
|
+
labels: ["flow", "loop", "while", "condition"],
|
|
134
|
+
},
|
|
135
|
+
inputs: [port("state", "Initial state", "input", { schema: { type: "any" } })],
|
|
136
|
+
outputs: [
|
|
137
|
+
port("state", "Final state", "output", { schema: { type: "any" } }),
|
|
138
|
+
port("iterations", "Iterations", "output", { schema: { type: "number", integer: true, min: 0 } }),
|
|
139
|
+
],
|
|
140
|
+
parameters: [
|
|
141
|
+
{
|
|
142
|
+
type: "number",
|
|
143
|
+
id: "maxIterations",
|
|
144
|
+
label: "Max iterations",
|
|
145
|
+
integer: true,
|
|
146
|
+
min: 1,
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
type: "object",
|
|
150
|
+
id: "condition",
|
|
151
|
+
label: "Condition",
|
|
152
|
+
required: true,
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
type: "string",
|
|
156
|
+
id: "statePort",
|
|
157
|
+
label: "State port",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
type: "string",
|
|
161
|
+
id: "inputPort",
|
|
162
|
+
label: "Input port",
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
type: "string",
|
|
166
|
+
id: "outputPort",
|
|
167
|
+
label: "Output port",
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
};
|
|
171
|
+
/** Manifest for the `core.loop.until` node: repeats the loop body until the condition holds. */
|
|
172
|
+
exports.UNTIL_GRAPH_NODE_MANIFEST = {
|
|
173
|
+
kind: "core.loop.until",
|
|
174
|
+
capabilities: ["loop"],
|
|
175
|
+
display: {
|
|
176
|
+
name: "Until",
|
|
177
|
+
description: "Runs the loop body at least once, then repeats until the configured condition evaluates to true.",
|
|
178
|
+
category: "Flow Control",
|
|
179
|
+
color: "#8b5cf6",
|
|
180
|
+
icon: { type: "catalogue", name: "ti-repeat" },
|
|
181
|
+
width: 120,
|
|
182
|
+
height: 140,
|
|
183
|
+
labels: ["flow", "loop", "until", "condition"],
|
|
184
|
+
},
|
|
185
|
+
inputs: [port("state", "Initial state", "input", { schema: { type: "any" } })],
|
|
186
|
+
outputs: [
|
|
187
|
+
port("state", "Final state", "output", { schema: { type: "any" } }),
|
|
188
|
+
port("iterations", "Iterations", "output", { schema: { type: "number", integer: true, min: 0 } }),
|
|
189
|
+
],
|
|
190
|
+
parameters: [
|
|
191
|
+
{
|
|
192
|
+
type: "number",
|
|
193
|
+
id: "maxIterations",
|
|
194
|
+
label: "Max iterations",
|
|
195
|
+
integer: true,
|
|
196
|
+
min: 1,
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
type: "object",
|
|
200
|
+
id: "condition",
|
|
201
|
+
label: "Condition",
|
|
202
|
+
required: true,
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
type: "string",
|
|
206
|
+
id: "statePort",
|
|
207
|
+
label: "State port",
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
type: "string",
|
|
211
|
+
id: "inputPort",
|
|
212
|
+
label: "Input port",
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
type: "string",
|
|
216
|
+
id: "outputPort",
|
|
217
|
+
label: "Output port",
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
};
|
|
221
|
+
const switchCompiled = compile(switch_js_1.SwitchFlowNode, "Switch");
|
|
222
|
+
/** Manifest for the `core.flow.switch` node: routes execution by switch-case conditions (cases live under `parameters["switch"]`). */
|
|
223
|
+
exports.SWITCH_GRAPH_NODE_MANIFEST = {
|
|
224
|
+
...switchCompiled,
|
|
225
|
+
outputs: [],
|
|
226
|
+
parameters: [
|
|
227
|
+
...switchCompiled.parameters,
|
|
228
|
+
{
|
|
229
|
+
type: "collection",
|
|
230
|
+
id: "cases",
|
|
231
|
+
label: "Cases",
|
|
232
|
+
required: true,
|
|
233
|
+
itemIdPath: "outputPort",
|
|
234
|
+
itemLabelPath: "label",
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
type: "boolean",
|
|
238
|
+
id: "hasDefault",
|
|
239
|
+
label: "Has default",
|
|
240
|
+
defaultValue: false,
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
dynamicPorts: [
|
|
244
|
+
{
|
|
245
|
+
type: "repeatFromParameter",
|
|
246
|
+
parameter: "cases",
|
|
247
|
+
itemIdPath: "outputPort",
|
|
248
|
+
itemLabelPath: "label",
|
|
249
|
+
direction: "output",
|
|
250
|
+
portIdTemplate: "${id}",
|
|
251
|
+
defaultPort: {
|
|
252
|
+
id: "case",
|
|
253
|
+
label: "Case",
|
|
254
|
+
direction: "output",
|
|
255
|
+
schema: { type: "any" },
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
type: "togglePort",
|
|
260
|
+
parameter: "hasDefault",
|
|
261
|
+
equals: true,
|
|
262
|
+
port: {
|
|
263
|
+
id: "default",
|
|
264
|
+
label: "Default",
|
|
265
|
+
direction: "output",
|
|
266
|
+
schema: { type: "any" },
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
],
|
|
270
|
+
};
|
|
271
|
+
/** Manifest for the manual-trigger node (starts a run on demand). */
|
|
272
|
+
exports.MANUAL_TRIGGER_GRAPH_NODE_MANIFEST = compile(manual_js_1.ManualTriggerNode, "Manual trigger");
|
|
273
|
+
/** Manifest for the webhook-trigger node (starts a run from an inbound webhook). */
|
|
274
|
+
exports.WEBHOOK_TRIGGER_GRAPH_NODE_MANIFEST = compile(webhook_js_1.WebhookTriggerNode, "Webhook trigger");
|
|
275
|
+
/** Manifest for the schedule-trigger node (starts a run on a schedule). */
|
|
276
|
+
exports.SCHEDULE_TRIGGER_GRAPH_NODE_MANIFEST = compile(schedule_js_1.ScheduleTriggerNode, "Schedule trigger");
|
|
277
|
+
/** Manifest for the event-trigger node (starts a run on an observed event). */
|
|
278
|
+
exports.EVENT_TRIGGER_GRAPH_NODE_MANIFEST = compile(event_js_1.EventTriggerNode, "Event trigger");
|
|
279
|
+
/** Manifest for the form-trigger node (starts a run from a form submission). */
|
|
280
|
+
exports.FORM_TRIGGER_GRAPH_NODE_MANIFEST = compile(form_js_1.FormTriggerNode, "Form trigger");
|
|
281
|
+
/** Manifest for the chat-trigger node (starts a run from a chat message). */
|
|
282
|
+
exports.CHAT_TRIGGER_GRAPH_NODE_MANIFEST = compile(chat_js_1.ChatTriggerNode, "Chat trigger");
|
|
283
|
+
/** Manifest for the if node (conditional branch on a boolean condition). */
|
|
284
|
+
exports.IF_GRAPH_NODE_MANIFEST = compile(if_js_1.IfFlowNode, "If");
|
|
285
|
+
/** Manifest for the parallel node (runs branches concurrently). */
|
|
286
|
+
exports.PARALLEL_GRAPH_NODE_MANIFEST = compile(parallel_js_1.ParallelFlowNode, "Parallel");
|
|
287
|
+
/** Manifest for the merge node (joins parallel branches). */
|
|
288
|
+
exports.MERGE_GRAPH_NODE_MANIFEST = compile(merge_js_1.MergeFlowNode, "Merge");
|
|
289
|
+
/** Manifest for the map node (transforms each input item). */
|
|
290
|
+
exports.MAP_GRAPH_NODE_MANIFEST = compile(map_js_1.MapFlowNode, "Map");
|
|
291
|
+
/** Manifest for the delay node (pauses execution for a duration). */
|
|
292
|
+
exports.DELAY_GRAPH_NODE_MANIFEST = compile(delay_js_1.DelayFlowNode, "Delay");
|
|
293
|
+
/** Manifest for the error-boundary node (isolates branch failures). */
|
|
294
|
+
exports.ERROR_BOUNDARY_GRAPH_NODE_MANIFEST = compile(error_boundary_js_1.ErrorBoundaryFlowNode, "Error boundary");
|
|
295
|
+
/** Manifest for the human-approval node (waits for an approval decision). */
|
|
296
|
+
exports.HUMAN_APPROVAL_GRAPH_NODE_MANIFEST = compile(human_approval_js_1.HumanApprovalFlowNode, "Human approval");
|
|
297
|
+
/** Manifest for the return node (terminates the workflow with output values). */
|
|
298
|
+
exports.RETURN_GRAPH_NODE_MANIFEST = compile(return_js_1.ReturnFlowNode, "Return");
|
|
299
|
+
/** Manifest for the code node (executes user code). */
|
|
300
|
+
exports.CODE_GRAPH_NODE_MANIFEST = compile(code_js_1.CodeFlowNode, "Code");
|
|
301
|
+
/** Manifest for the log node (logs its input). */
|
|
302
|
+
exports.LOG_GRAPH_NODE_MANIFEST = compile(log_js_1.LogFlowNode, "Log");
|
|
303
|
+
/** Manifest for the utility-log node (log-shaped utility sink). */
|
|
304
|
+
exports.UTILITY_LOG_GRAPH_NODE_MANIFEST = compile(utility_log_js_1.UtilityLogNode, "Utility Log");
|
|
305
|
+
/** Manifest for the break node (exits the enclosing loop). */
|
|
306
|
+
exports.BREAK_GRAPH_NODE_MANIFEST = compile(break_js_1.BreakFlowNode, "Break");
|
|
307
|
+
/** Manifest for the agent node (delegates work to an agent). */
|
|
308
|
+
exports.AGENT_GRAPH_NODE_MANIFEST = compile(agent_js_1.AgentNode, "Agent");
|
|
309
|
+
/** All built-in node manifests, in catalogue display order. */
|
|
310
|
+
exports.GRAPH_BUILT_IN_NODE_MANIFESTS = [
|
|
311
|
+
exports.MANUAL_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
312
|
+
exports.WEBHOOK_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
313
|
+
exports.SCHEDULE_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
314
|
+
exports.EVENT_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
315
|
+
exports.FORM_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
316
|
+
exports.CHAT_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
317
|
+
exports.IF_GRAPH_NODE_MANIFEST,
|
|
318
|
+
exports.SWITCH_GRAPH_NODE_MANIFEST,
|
|
319
|
+
exports.PARALLEL_GRAPH_NODE_MANIFEST,
|
|
320
|
+
exports.MERGE_GRAPH_NODE_MANIFEST,
|
|
321
|
+
exports.MAP_GRAPH_NODE_MANIFEST,
|
|
322
|
+
exports.DELAY_GRAPH_NODE_MANIFEST,
|
|
323
|
+
exports.ERROR_BOUNDARY_GRAPH_NODE_MANIFEST,
|
|
324
|
+
exports.HUMAN_APPROVAL_GRAPH_NODE_MANIFEST,
|
|
325
|
+
exports.RETURN_GRAPH_NODE_MANIFEST,
|
|
326
|
+
exports.CODE_GRAPH_NODE_MANIFEST,
|
|
327
|
+
exports.LOG_GRAPH_NODE_MANIFEST,
|
|
328
|
+
exports.UTILITY_LOG_GRAPH_NODE_MANIFEST,
|
|
329
|
+
exports.BREAK_GRAPH_NODE_MANIFEST,
|
|
330
|
+
exports.AGENT_GRAPH_NODE_MANIFEST,
|
|
331
|
+
exports.FOREACH_GRAPH_NODE_MANIFEST,
|
|
332
|
+
exports.WHILE_GRAPH_NODE_MANIFEST,
|
|
333
|
+
exports.UNTIL_GRAPH_NODE_MANIFEST,
|
|
334
|
+
];
|
|
335
|
+
/** Built-in manifests indexed by node `kind` — the source for built-in catalogue registrations. */
|
|
336
|
+
exports.GRAPH_BUILT_IN_NODE_MANIFESTS_BY_KIND = Object.fromEntries(exports.GRAPH_BUILT_IN_NODE_MANIFESTS.map((manifest) => [manifest.kind, manifest]));
|
|
337
|
+
//# sourceMappingURL=manifests.js.map
|
|
338
|
+
//# sourceMappingURL=manifests.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/nodes/manifests.cjs","sourceRoot":"","sources":["graph/nodes/manifests.js"],"names":[],"mappings":";;;AAAA,oDAA0D;AAC1D,gDAA8C;AAC9C,sDAAwD;AACxD,wEAAyE;AACzE,wEAAyE;AACzE,gDAAkD;AAClD,4DAA8D;AAC9D,wDAA0D;AAC1D,+CAAiD;AACjD,iDAAmD;AACnD,6CAA+C;AAC/C,6CAA+C;AAC/C,iDAAmD;AACnD,mDAAqD;AACrD,6DAA0D;AAC1D,gDAAqD;AACrD,kDAAuD;AACvD,gDAAqD;AACrD,oDAAyD;AACzD,wDAA6D;AAC7D,sDAA2D;AAC3D;;;;;;;;;;GAUG;AACH,SAAS,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE;IAC1C,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,CAAC;AAC9C,CAAC;AACD;;;;;;;;GAQG;AACH,SAAS,OAAO,CAAC,IAAI,EAAE,IAAI;IACvB,OAAO,IAAA,4BAAiB,EAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7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AC,oBAAW,EAAE,KAAK,CAAC,CAAC;AACnE,mEAAmE;AACtD,QAAA,+BAA+B,GAAG,OAAO,CAAC,+BAAc,EAAE,aAAa,CAAC,CAAC;AACtF,8DAA8D;AACjD,QAAA,yBAAyB,GAAG,OAAO,CAAC,wBAAa,EAAE,OAAO,CAAC,CAAC;AACzE,gEAAgE;AACnD,QAAA,yBAAyB,GAAG,OAAO,CAAC,oBAAS,EAAE,OAAO,CAAC,CAAC;AACrE,+DAA+D;AAClD,QAAA,6BAA6B,GAAG;IACzC,0CAAkC;IAClC,2CAAmC;IACnC,4CAAoC;IACpC,yCAAiC;IACjC,wCAAgC;IAChC,wCAAgC;IAChC,8BAAsB;IACtB,kCAA0B;IAC1B,oCAA4B;IAC5B,iCAAyB;IACzB,+BAAuB;IACvB,iCAAyB;IACzB,0CAAkC;IAClC,0CAAkC;IAClC,kCAA0B;IAC1B,gCAAwB;IACxB,+BAAuB;IACvB,uCAA+B;IAC/B,iCAAyB;IACzB,iCAAyB;IACzB,mCAA2B;IAC3B,iCAAyB;IACzB,iCAAyB;CAC5B,CAAC;AACF,mGAAmG;AACtF,QAAA,qCAAqC,GAAG,MAAM,CAAC,WAAW,CAAC,qCAA6B,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;AACpJ,qCAAqC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChatTriggerNode = void 0;
|
|
4
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
+
else
|
|
9
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
+
if (d = decorators[i])
|
|
11
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
+
};
|
|
14
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
+
return Reflect.metadata(k, v);
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @module ui-decorators/graph/nodes/triggers/chat
|
|
20
|
+
* @summary Chat trigger node declaration (DECAF-32 §22.2.1).
|
|
21
|
+
* @description Chat trigger — chat message entrypoint; message/sessionId/
|
|
22
|
+
* userId schema.
|
|
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 ChatTriggerNode = class ChatTriggerNode extends decorator_validation_1.Model {
|
|
30
|
+
};
|
|
31
|
+
exports.ChatTriggerNode = ChatTriggerNode;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, decorator_validation_1.required)(),
|
|
34
|
+
(0, decorators_js_1.uielement)("input", { label: "Message", placeholder: "Incoming chat message" }),
|
|
35
|
+
(0, decorators_js_2.output)({ handle: "message" }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], ChatTriggerNode.prototype, "message", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, decorator_validation_1.required)(),
|
|
40
|
+
(0, decorators_js_1.uielement)("input", { label: "Session ID", placeholder: "Chat session identifier" }),
|
|
41
|
+
(0, decorators_js_2.output)({ handle: "sessionId" }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], ChatTriggerNode.prototype, "sessionId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, decorator_validation_1.required)(),
|
|
46
|
+
(0, decorators_js_1.uielement)("input", { label: "User ID", placeholder: "Chat user identifier" }),
|
|
47
|
+
(0, decorators_js_2.output)({ handle: "userId" }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], ChatTriggerNode.prototype, "userId", void 0);
|
|
50
|
+
exports.ChatTriggerNode = ChatTriggerNode = __decorate([
|
|
51
|
+
(0, decorators_js_2.node)("core.trigger.chat", {
|
|
52
|
+
kind: "core.trigger.chat",
|
|
53
|
+
category: "Trigger",
|
|
54
|
+
color: "#14b8a6",
|
|
55
|
+
icon: "ti-message-circle",
|
|
56
|
+
width: 96,
|
|
57
|
+
height: 96,
|
|
58
|
+
labels: ["trigger", "chat", "entrypoint"],
|
|
59
|
+
metadata: {
|
|
60
|
+
title: "Chat trigger",
|
|
61
|
+
description: "Starts the workflow when a chat message is received. Emits message, sessionId, and userId.",
|
|
62
|
+
trigger: {
|
|
63
|
+
type: "chat",
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
}),
|
|
67
|
+
(0, decorator_validation_1.model)()
|
|
68
|
+
], ChatTriggerNode);
|
|
69
|
+
//# sourceMappingURL=chat.js.map
|
|
70
|
+
//# sourceMappingURL=chat.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/nodes/triggers/chat.cjs","sourceRoot":"","sources":["graph/nodes/triggers/chat.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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AE,EAAE;QACV,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC;QACzC,QAAQ,EAAE;YACN,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,4FAA4F;YACzG,OAAO,EAAE;gBACL,IAAI,EAAE,MAAM;aACf;SACJ;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,eAAe,CAAC,CAAC;AAEpB,gCAAgC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventTriggerNode = void 0;
|
|
4
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
+
else
|
|
9
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
+
if (d = decorators[i])
|
|
11
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
+
};
|
|
14
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
+
return Reflect.metadata(k, v);
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @module ui-decorators/graph/nodes/triggers/event
|
|
20
|
+
* @summary Event trigger node declaration (DECAF-32 §22.2.1).
|
|
21
|
+
* @description Event trigger — internal event bus topic subscriber.
|
|
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 EventTriggerNode = class EventTriggerNode extends decorator_validation_1.Model {
|
|
29
|
+
};
|
|
30
|
+
exports.EventTriggerNode = EventTriggerNode;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, decorator_validation_1.required)(),
|
|
33
|
+
(0, decorators_js_1.uielement)("textarea", { label: "Event payload", placeholder: "Event bus payload" }),
|
|
34
|
+
(0, decorators_js_2.output)({ handle: "payload" }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], EventTriggerNode.prototype, "payload", void 0);
|
|
37
|
+
exports.EventTriggerNode = EventTriggerNode = __decorate([
|
|
38
|
+
(0, decorators_js_2.node)("core.trigger.event", {
|
|
39
|
+
kind: "core.trigger.event",
|
|
40
|
+
category: "Trigger",
|
|
41
|
+
color: "#8b5cf6",
|
|
42
|
+
icon: "ti-broadcast",
|
|
43
|
+
width: 96,
|
|
44
|
+
height: 96,
|
|
45
|
+
labels: ["trigger", "event", "bus"],
|
|
46
|
+
metadata: {
|
|
47
|
+
title: "Event trigger",
|
|
48
|
+
description: "Starts the workflow when an event is published on the configured internal event bus topic.",
|
|
49
|
+
trigger: {
|
|
50
|
+
type: "event",
|
|
51
|
+
topic: "default",
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
}),
|
|
55
|
+
(0, decorator_validation_1.model)()
|
|
56
|
+
], EventTriggerNode);
|
|
57
|
+
//# sourceMappingURL=event.js.map
|
|
58
|
+
//# sourceMappingURL=event.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/nodes/triggers/event.cjs","sourceRoot":"","sources":["graph/nodes/triggers/event.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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AAC;AAC7G,CAAC,CAAC;AACF;;;;GAIG;AACH,yEAAwE;AACxE,+DAAwD;AACxD,yDAAqD;AACrD,sDAAsD;AACtD,mCAAiC;AACjC,IAAI,gBAAgB,GAAG,MAAM,gBAAiB,SAAQ,4BAAK;CAC1D,CAAC;AA2BO,4CAAgB;AA1BzB,UAAU,CAAC;IACP,IAAA,+BAAQ,GAAE;IACV,IAAA,yBAAS,EAAC,UAAU,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;IACnF,IAAA,sBAAM,EAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IAC7B,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC;AAClD,2BAAA,gBAAgB,GAAG,UAAU,CAAC;IAC1B,IAAA,oBAAI,EAAC,oBAAoB,EAAE;QACvB,IAAI,EAAE,oBAAoB;QAC1B,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC;QACnC,QAAQ,EAAE;YACN,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,4FAA4F;YACzG,OAAO,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,SAAS;aACnB;SACJ;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,gBAAgB,CAAC,CAAC;AAErB,iCAAiC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormTriggerNode = void 0;
|
|
4
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
+
else
|
|
9
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
+
if (d = decorators[i])
|
|
11
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
+
};
|
|
14
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
+
return Reflect.metadata(k, v);
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @module ui-decorators/graph/nodes/triggers/form
|
|
20
|
+
* @summary Form trigger node declaration (DECAF-32 §22.2.1).
|
|
21
|
+
* @description Form trigger — generated public/internal form; field
|
|
22
|
+
* definitions.
|
|
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 FormTriggerNode = class FormTriggerNode extends decorator_validation_1.Model {
|
|
30
|
+
};
|
|
31
|
+
exports.FormTriggerNode = FormTriggerNode;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, decorator_validation_1.required)(),
|
|
34
|
+
(0, decorators_js_1.uielement)("textarea", { label: "Form submission", placeholder: "Form submission payload" }),
|
|
35
|
+
(0, decorators_js_2.output)({ handle: "payload" }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], FormTriggerNode.prototype, "payload", void 0);
|
|
38
|
+
exports.FormTriggerNode = FormTriggerNode = __decorate([
|
|
39
|
+
(0, decorators_js_2.node)("core.trigger.form", {
|
|
40
|
+
kind: "core.trigger.form",
|
|
41
|
+
category: "Trigger",
|
|
42
|
+
color: "#ec4899",
|
|
43
|
+
icon: "ti-forms",
|
|
44
|
+
width: 96,
|
|
45
|
+
height: 96,
|
|
46
|
+
labels: ["trigger", "form", "public"],
|
|
47
|
+
metadata: {
|
|
48
|
+
title: "Form trigger",
|
|
49
|
+
description: "Starts the workflow when a generated form is submitted. Field definitions drive the form schema.",
|
|
50
|
+
trigger: {
|
|
51
|
+
type: "form",
|
|
52
|
+
fields: [],
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
}),
|
|
56
|
+
(0, decorator_validation_1.model)()
|
|
57
|
+
], FormTriggerNode);
|
|
58
|
+
//# sourceMappingURL=form.js.map
|
|
59
|
+
//# sourceMappingURL=form.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/nodes/triggers/form.cjs","sourceRoot":"","sources":["graph/nodes/triggers/form.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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AAe,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC;AACjD,0BAAA,eAAe,GAAG,UAAU,CAAC;IACzB,IAAA,oBAAI,EAAC,mBAAmB,EAAE;QACtB,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC;QACrC,QAAQ,EAAE;YACN,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,kGAAkG;YAC/G,OAAO,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,MAAM,EAAE,EAAE;aACb;SACJ;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,eAAe,CAAC,CAAC;AAEpB,gCAAgC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ManualTriggerNode = void 0;
|
|
4
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
+
else
|
|
9
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
+
if (d = decorators[i])
|
|
11
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
+
};
|
|
14
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
+
return Reflect.metadata(k, v);
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @module ui-decorators/graph/nodes/triggers/manual
|
|
20
|
+
* @summary Manual trigger node declaration (DECAF-32 §22.2.1).
|
|
21
|
+
* @description Manual trigger — user clicks Run; input form generated from
|
|
22
|
+
* `inputSchema`. Triggers are metadata-only entrypoints: they define how a
|
|
23
|
+
* workflow starts and produce a trigger payload on their `@output` ports.
|
|
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 ManualTriggerNode = class ManualTriggerNode extends decorator_validation_1.Model {
|
|
31
|
+
};
|
|
32
|
+
exports.ManualTriggerNode = ManualTriggerNode;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, decorator_validation_1.required)(),
|
|
35
|
+
(0, decorators_js_1.uielement)("textarea", { label: "Trigger payload", placeholder: "Manual trigger payload" }),
|
|
36
|
+
(0, decorators_js_2.output)({ handle: "payload" }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], ManualTriggerNode.prototype, "payload", void 0);
|
|
39
|
+
exports.ManualTriggerNode = ManualTriggerNode = __decorate([
|
|
40
|
+
(0, decorators_js_2.node)("core.trigger.manual", {
|
|
41
|
+
kind: "core.trigger.manual",
|
|
42
|
+
category: "Trigger",
|
|
43
|
+
color: "#3b82f6",
|
|
44
|
+
icon: "ti-hand-click",
|
|
45
|
+
width: 96,
|
|
46
|
+
height: 96,
|
|
47
|
+
labels: ["trigger", "manual", "entrypoint"],
|
|
48
|
+
metadata: {
|
|
49
|
+
title: "Manual trigger",
|
|
50
|
+
description: "Starts the workflow when the user clicks Run. The input form is generated from the trigger's input schema.",
|
|
51
|
+
trigger: {
|
|
52
|
+
type: "manual",
|
|
53
|
+
inputSchema: {},
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
}),
|
|
57
|
+
(0, decorator_validation_1.model)()
|
|
58
|
+
], ManualTriggerNode);
|
|
59
|
+
//# sourceMappingURL=manual.js.map
|
|
60
|
+
//# sourceMappingURL=manual.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/nodes/triggers/manual.cjs","sourceRoot":"","sources":["graph/nodes/triggers/manual.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU;QAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;;QAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YAAE,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;gBAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CA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