@decaf-ts/ui-decorators 0.20.8 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui-decorators.cjs +1 -1
- package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs +19 -0
- package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs.map +1 -1
- package/lib/cjs/graph/catalog/GraphPortManifestElement.cjs +15 -0
- package/lib/cjs/graph/catalog/GraphPortManifestElement.cjs.map +1 -0
- package/lib/cjs/graph/catalog/index.cjs +1 -0
- package/lib/cjs/graph/catalog/index.cjs.map +1 -1
- package/lib/cjs/graph/{nodes/category-styles.cjs → category-styles.cjs} +2 -2
- package/lib/cjs/graph/category-styles.cjs.map +1 -0
- package/lib/cjs/graph/index.cjs +1 -1
- package/lib/cjs/graph/index.cjs.map +1 -1
- package/lib/cjs/graph/reader.cjs +26 -0
- package/lib/cjs/graph/reader.cjs.map +1 -1
- package/lib/cjs/graph/snapshot.cjs +0 -691
- package/lib/cjs/graph/snapshot.cjs.map +1 -1
- package/lib/cjs/index.cjs +3 -3
- package/lib/esm/graph/catalog/GraphManifestCompiler.js +20 -1
- package/lib/esm/graph/catalog/GraphManifestCompiler.js.map +1 -1
- package/lib/esm/graph/catalog/GraphPortManifest.js.map +1 -1
- package/lib/esm/graph/catalog/GraphPortManifestElement.js +11 -0
- package/lib/esm/graph/catalog/GraphPortManifestElement.js.map +1 -0
- package/lib/esm/graph/catalog/index.js +1 -0
- package/lib/esm/graph/catalog/index.js.map +1 -1
- package/lib/esm/graph/{nodes/category-styles.js → category-styles.js} +2 -2
- package/lib/esm/graph/category-styles.js.map +1 -0
- package/lib/esm/graph/index.js +1 -1
- package/lib/esm/graph/index.js.map +1 -1
- package/lib/esm/graph/reader.js +25 -0
- package/lib/esm/graph/reader.js.map +1 -1
- package/lib/esm/graph/snapshot.js +1 -679
- package/lib/esm/graph/snapshot.js.map +1 -1
- package/lib/esm/index.js +3 -3
- package/lib/types/graph/catalog/GraphPortManifest.d.cts +2 -0
- package/lib/types/graph/catalog/GraphPortManifest.d.mts +2 -0
- package/lib/types/graph/catalog/GraphPortManifestElement.d.cts +7 -0
- package/lib/types/graph/catalog/GraphPortManifestElement.d.mts +7 -0
- package/lib/types/graph/catalog/index.d.cts +1 -0
- package/lib/types/graph/catalog/index.d.mts +1 -0
- package/lib/types/graph/document/GraphNodeInstance.d.cts +20 -0
- package/lib/types/graph/document/GraphNodeInstance.d.mts +20 -0
- package/lib/types/graph/index.d.cts +1 -1
- package/lib/types/graph/index.d.mts +1 -1
- package/lib/types/graph/reader.d.cts +12 -0
- package/lib/types/graph/reader.d.mts +12 -0
- package/lib/types/graph/snapshot.d.cts +4 -144
- package/lib/types/graph/snapshot.d.mts +4 -144
- package/lib/types/graph/types.d.cts +1 -1
- package/lib/types/graph/types.d.mts +1 -1
- package/lib/types/index.d.cts +3 -3
- package/lib/types/index.d.mts +3 -3
- package/package.json +1 -1
- package/lib/cjs/graph/nodes/agents/agent.cjs +0 -110
- package/lib/cjs/graph/nodes/agents/agent.cjs.map +0 -1
- package/lib/cjs/graph/nodes/base.cjs +0 -36
- package/lib/cjs/graph/nodes/base.cjs.map +0 -1
- package/lib/cjs/graph/nodes/boundary/input-value.cjs +0 -57
- package/lib/cjs/graph/nodes/boundary/input-value.cjs.map +0 -1
- package/lib/cjs/graph/nodes/category-styles.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/break.cjs +0 -63
- package/lib/cjs/graph/nodes/flow-control/break.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs +0 -67
- package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/human-approval.cjs +0 -69
- package/lib/cjs/graph/nodes/flow-control/human-approval.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/if.cjs +0 -71
- package/lib/cjs/graph/nodes/flow-control/if.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/parallel.cjs +0 -61
- package/lib/cjs/graph/nodes/flow-control/parallel.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/switch.cjs +0 -126
- package/lib/cjs/graph/nodes/flow-control/switch.cjs.map +0 -1
- package/lib/cjs/graph/nodes/index.cjs +0 -123
- package/lib/cjs/graph/nodes/index.cjs.map +0 -1
- package/lib/cjs/graph/nodes/loops/foreach.cjs +0 -86
- package/lib/cjs/graph/nodes/loops/foreach.cjs.map +0 -1
- package/lib/cjs/graph/nodes/loops/until.cjs +0 -74
- package/lib/cjs/graph/nodes/loops/until.cjs.map +0 -1
- package/lib/cjs/graph/nodes/loops/while.cjs +0 -74
- package/lib/cjs/graph/nodes/loops/while.cjs.map +0 -1
- package/lib/cjs/graph/nodes/manifests.cjs +0 -342
- package/lib/cjs/graph/nodes/manifests.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/chat.cjs +0 -70
- package/lib/cjs/graph/nodes/triggers/chat.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/event.cjs +0 -58
- package/lib/cjs/graph/nodes/triggers/event.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/form.cjs +0 -59
- package/lib/cjs/graph/nodes/triggers/form.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/manual.cjs +0 -60
- package/lib/cjs/graph/nodes/triggers/manual.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/schedule.cjs +0 -60
- package/lib/cjs/graph/nodes/triggers/schedule.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/webhook.cjs +0 -62
- package/lib/cjs/graph/nodes/triggers/webhook.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/code.cjs +0 -99
- package/lib/cjs/graph/nodes/utility/code.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/delay.cjs +0 -61
- package/lib/cjs/graph/nodes/utility/delay.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/log.cjs +0 -62
- package/lib/cjs/graph/nodes/utility/log.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/map.cjs +0 -61
- package/lib/cjs/graph/nodes/utility/map.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/merge.cjs +0 -62
- package/lib/cjs/graph/nodes/utility/merge.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/return.cjs +0 -61
- package/lib/cjs/graph/nodes/utility/return.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/utility-log.cjs +0 -66
- package/lib/cjs/graph/nodes/utility/utility-log.cjs.map +0 -1
- package/lib/esm/graph/nodes/agents/agent.js +0 -101
- package/lib/esm/graph/nodes/agents/agent.js.map +0 -1
- package/lib/esm/graph/nodes/base.js +0 -31
- package/lib/esm/graph/nodes/base.js.map +0 -1
- package/lib/esm/graph/nodes/boundary/input-value.js +0 -48
- package/lib/esm/graph/nodes/boundary/input-value.js.map +0 -1
- package/lib/esm/graph/nodes/category-styles.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/break.js +0 -54
- package/lib/esm/graph/nodes/flow-control/break.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/error-boundary.js +0 -58
- package/lib/esm/graph/nodes/flow-control/error-boundary.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/human-approval.js +0 -60
- package/lib/esm/graph/nodes/flow-control/human-approval.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/if.js +0 -62
- package/lib/esm/graph/nodes/flow-control/if.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/parallel.js +0 -52
- package/lib/esm/graph/nodes/flow-control/parallel.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/switch.js +0 -117
- package/lib/esm/graph/nodes/flow-control/switch.js.map +0 -1
- package/lib/esm/graph/nodes/index.js +0 -105
- package/lib/esm/graph/nodes/index.js.map +0 -1
- package/lib/esm/graph/nodes/loops/foreach.js +0 -77
- package/lib/esm/graph/nodes/loops/foreach.js.map +0 -1
- package/lib/esm/graph/nodes/loops/until.js +0 -65
- package/lib/esm/graph/nodes/loops/until.js.map +0 -1
- package/lib/esm/graph/nodes/loops/while.js +0 -65
- package/lib/esm/graph/nodes/loops/while.js.map +0 -1
- package/lib/esm/graph/nodes/manifests.js +0 -338
- package/lib/esm/graph/nodes/manifests.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/chat.js +0 -61
- package/lib/esm/graph/nodes/triggers/chat.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/event.js +0 -49
- package/lib/esm/graph/nodes/triggers/event.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/form.js +0 -50
- package/lib/esm/graph/nodes/triggers/form.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/manual.js +0 -51
- package/lib/esm/graph/nodes/triggers/manual.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/schedule.js +0 -51
- package/lib/esm/graph/nodes/triggers/schedule.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/webhook.js +0 -53
- package/lib/esm/graph/nodes/triggers/webhook.js.map +0 -1
- package/lib/esm/graph/nodes/utility/code.js +0 -90
- package/lib/esm/graph/nodes/utility/code.js.map +0 -1
- package/lib/esm/graph/nodes/utility/delay.js +0 -52
- package/lib/esm/graph/nodes/utility/delay.js.map +0 -1
- package/lib/esm/graph/nodes/utility/log.js +0 -53
- package/lib/esm/graph/nodes/utility/log.js.map +0 -1
- package/lib/esm/graph/nodes/utility/map.js +0 -52
- package/lib/esm/graph/nodes/utility/map.js.map +0 -1
- package/lib/esm/graph/nodes/utility/merge.js +0 -53
- package/lib/esm/graph/nodes/utility/merge.js.map +0 -1
- package/lib/esm/graph/nodes/utility/return.js +0 -52
- package/lib/esm/graph/nodes/utility/return.js.map +0 -1
- package/lib/esm/graph/nodes/utility/utility-log.js +0 -57
- package/lib/esm/graph/nodes/utility/utility-log.js.map +0 -1
- package/lib/types/graph/nodes/agents/agent.d.cts +0 -44
- package/lib/types/graph/nodes/agents/agent.d.mts +0 -44
- package/lib/types/graph/nodes/base.d.cts +0 -28
- package/lib/types/graph/nodes/base.d.mts +0 -28
- package/lib/types/graph/nodes/boundary/input-value.d.cts +0 -13
- package/lib/types/graph/nodes/boundary/input-value.d.mts +0 -13
- package/lib/types/graph/nodes/flow-control/break.d.cts +0 -15
- package/lib/types/graph/nodes/flow-control/break.d.mts +0 -15
- package/lib/types/graph/nodes/flow-control/error-boundary.d.cts +0 -12
- package/lib/types/graph/nodes/flow-control/error-boundary.d.mts +0 -12
- package/lib/types/graph/nodes/flow-control/human-approval.d.cts +0 -13
- package/lib/types/graph/nodes/flow-control/human-approval.d.mts +0 -13
- package/lib/types/graph/nodes/flow-control/if.d.cts +0 -16
- package/lib/types/graph/nodes/flow-control/if.d.mts +0 -16
- package/lib/types/graph/nodes/flow-control/parallel.d.cts +0 -11
- package/lib/types/graph/nodes/flow-control/parallel.d.mts +0 -11
- package/lib/types/graph/nodes/flow-control/switch.d.cts +0 -21
- package/lib/types/graph/nodes/flow-control/switch.d.mts +0 -21
- package/lib/types/graph/nodes/index.d.cts +0 -79
- package/lib/types/graph/nodes/index.d.mts +0 -79
- package/lib/types/graph/nodes/loops/foreach.d.cts +0 -19
- package/lib/types/graph/nodes/loops/foreach.d.mts +0 -19
- package/lib/types/graph/nodes/loops/until.d.cts +0 -16
- package/lib/types/graph/nodes/loops/until.d.mts +0 -16
- package/lib/types/graph/nodes/loops/while.d.cts +0 -16
- package/lib/types/graph/nodes/loops/while.d.mts +0 -16
- package/lib/types/graph/nodes/manifests.d.cts +0 -62
- package/lib/types/graph/nodes/manifests.d.mts +0 -62
- package/lib/types/graph/nodes/triggers/chat.d.cts +0 -13
- package/lib/types/graph/nodes/triggers/chat.d.mts +0 -13
- package/lib/types/graph/nodes/triggers/event.d.cts +0 -10
- package/lib/types/graph/nodes/triggers/event.d.mts +0 -10
- package/lib/types/graph/nodes/triggers/form.d.cts +0 -11
- package/lib/types/graph/nodes/triggers/form.d.mts +0 -11
- package/lib/types/graph/nodes/triggers/manual.d.cts +0 -12
- package/lib/types/graph/nodes/triggers/manual.d.mts +0 -12
- package/lib/types/graph/nodes/triggers/schedule.d.cts +0 -11
- package/lib/types/graph/nodes/triggers/schedule.d.mts +0 -11
- package/lib/types/graph/nodes/triggers/webhook.d.cts +0 -11
- package/lib/types/graph/nodes/triggers/webhook.d.mts +0 -11
- package/lib/types/graph/nodes/utility/code.d.cts +0 -31
- package/lib/types/graph/nodes/utility/code.d.mts +0 -31
- package/lib/types/graph/nodes/utility/delay.d.cts +0 -11
- package/lib/types/graph/nodes/utility/delay.d.mts +0 -11
- package/lib/types/graph/nodes/utility/log.d.cts +0 -13
- package/lib/types/graph/nodes/utility/log.d.mts +0 -13
- package/lib/types/graph/nodes/utility/map.d.cts +0 -11
- package/lib/types/graph/nodes/utility/map.d.mts +0 -11
- package/lib/types/graph/nodes/utility/merge.d.cts +0 -12
- package/lib/types/graph/nodes/utility/merge.d.mts +0 -12
- package/lib/types/graph/nodes/utility/return.d.cts +0 -11
- package/lib/types/graph/nodes/utility/return.d.mts +0 -11
- package/lib/types/graph/nodes/utility/utility-log.d.cts +0 -15
- package/lib/types/graph/nodes/utility/utility-log.d.mts +0 -15
- /package/lib/types/graph/{nodes/category-styles.d.cts → category-styles.d.cts} +0 -0
- /package/lib/types/graph/{nodes/category-styles.d.mts → category-styles.d.mts} +0 -0
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/base
|
|
3
|
-
* @summary Base class for shared graph node declarations.
|
|
4
|
-
* @description `GraphNode` extends `Model` with an overridable
|
|
5
|
-
* `applyMetadata` static method. Concrete node kinds that support dynamic
|
|
6
|
-
* metadata changes (e.g. `SwitchFlowNode` adding case output ports) override
|
|
7
|
-
* this method to compute their own ports, size, and data patches — the node
|
|
8
|
-
* is exclusively responsible for itself in every way.
|
|
9
|
-
*/
|
|
10
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
11
|
-
import type { NodeMetadataChange } from "../types.d.mts";
|
|
12
|
-
export declare class GraphNode extends Model {
|
|
13
|
-
/**
|
|
14
|
-
* Applies a metadata patch to this node class, returning the resulting
|
|
15
|
-
* ports, size, and data patches.
|
|
16
|
-
*
|
|
17
|
-
* The default implementation returns `null` (no changes). Concrete node
|
|
18
|
-
* kinds that support dynamic metadata override this to compute their own
|
|
19
|
-
* ports and size from the metadata — the caller (renderer) simply relays
|
|
20
|
-
* the result to the diagram model.
|
|
21
|
-
*
|
|
22
|
-
* @param _meta - The metadata patch (node-kind-specific, e.g.
|
|
23
|
-
* `SwitchNodeMetadata`).
|
|
24
|
-
* @returns The computed change, or `null` when the node kind does not
|
|
25
|
-
* support dynamic metadata.
|
|
26
|
-
*/
|
|
27
|
-
static applyMetadata(_meta: unknown): NodeMetadataChange | null;
|
|
28
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/boundary/input-value
|
|
3
|
-
* @summary Workflow input value boundary node declaration.
|
|
4
|
-
* @description Shared canvas node representing a workflow input value
|
|
5
|
-
* (decorator id `graph-input-value-node`), moved from the for-angular
|
|
6
|
-
* boundary nodes so both sides share the declaration. Reusable value node
|
|
7
|
-
* whose single `value` output may feed multiple targets.
|
|
8
|
-
*/
|
|
9
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
10
|
-
import "../category-styles";
|
|
11
|
-
export declare class GraphInputValueNode extends Model {
|
|
12
|
-
value: unknown;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/boundary/input-value
|
|
3
|
-
* @summary Workflow input value boundary node declaration.
|
|
4
|
-
* @description Shared canvas node representing a workflow input value
|
|
5
|
-
* (decorator id `graph-input-value-node`), moved from the for-angular
|
|
6
|
-
* boundary nodes so both sides share the declaration. Reusable value node
|
|
7
|
-
* whose single `value` output may feed multiple targets.
|
|
8
|
-
*/
|
|
9
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
10
|
-
import "../category-styles";
|
|
11
|
-
export declare class GraphInputValueNode extends Model {
|
|
12
|
-
value: unknown;
|
|
13
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/flow-control/break
|
|
3
|
-
* @summary Break flow-control node declaration (DECAF-32 §22.2.2).
|
|
4
|
-
* @description Break — breaks out of the enclosing loop (foreach/while/until).
|
|
5
|
-
* When executed inside a loop body, the loop terminates early and the loop's
|
|
6
|
-
* `completed`/`state` output carries the results collected so far. The Break
|
|
7
|
-
* node executor throws a `GraphBreakSignal` that the enclosing loop executor
|
|
8
|
-
* catches.
|
|
9
|
-
*/
|
|
10
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
11
|
-
import "../category-styles";
|
|
12
|
-
export declare class BreakFlowNode extends Model {
|
|
13
|
-
value: unknown;
|
|
14
|
-
broken: unknown;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/flow-control/break
|
|
3
|
-
* @summary Break flow-control node declaration (DECAF-32 §22.2.2).
|
|
4
|
-
* @description Break — breaks out of the enclosing loop (foreach/while/until).
|
|
5
|
-
* When executed inside a loop body, the loop terminates early and the loop's
|
|
6
|
-
* `completed`/`state` output carries the results collected so far. The Break
|
|
7
|
-
* node executor throws a `GraphBreakSignal` that the enclosing loop executor
|
|
8
|
-
* catches.
|
|
9
|
-
*/
|
|
10
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
11
|
-
import "../category-styles";
|
|
12
|
-
export declare class BreakFlowNode extends Model {
|
|
13
|
-
value: unknown;
|
|
14
|
-
broken: unknown;
|
|
15
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/flow-control/error-boundary
|
|
3
|
-
* @summary Error-boundary flow-control node declaration (DECAF-32 §22.2.2).
|
|
4
|
-
* @description Error boundary — try/catch/finally workflow behaviour.
|
|
5
|
-
*/
|
|
6
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
7
|
-
import "../category-styles";
|
|
8
|
-
export declare class ErrorBoundaryFlowNode extends Model {
|
|
9
|
-
value: unknown;
|
|
10
|
-
result: unknown;
|
|
11
|
-
error: unknown;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/flow-control/error-boundary
|
|
3
|
-
* @summary Error-boundary flow-control node declaration (DECAF-32 §22.2.2).
|
|
4
|
-
* @description Error boundary — try/catch/finally workflow behaviour.
|
|
5
|
-
*/
|
|
6
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
7
|
-
import "../category-styles";
|
|
8
|
-
export declare class ErrorBoundaryFlowNode extends Model {
|
|
9
|
-
value: unknown;
|
|
10
|
-
result: unknown;
|
|
11
|
-
error: unknown;
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/flow-control/human-approval
|
|
3
|
-
* @summary Human-approval flow-control node declaration (DECAF-32 §22.2.2).
|
|
4
|
-
* @description Human approval — suspends execution until a human approves
|
|
5
|
-
* or rejects.
|
|
6
|
-
*/
|
|
7
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
8
|
-
import "../category-styles";
|
|
9
|
-
export declare class HumanApprovalFlowNode extends Model {
|
|
10
|
-
value: unknown;
|
|
11
|
-
approved: unknown;
|
|
12
|
-
rejected: unknown;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/flow-control/human-approval
|
|
3
|
-
* @summary Human-approval flow-control node declaration (DECAF-32 §22.2.2).
|
|
4
|
-
* @description Human approval — suspends execution until a human approves
|
|
5
|
-
* or rejects.
|
|
6
|
-
*/
|
|
7
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
8
|
-
import "../category-styles";
|
|
9
|
-
export declare class HumanApprovalFlowNode extends Model {
|
|
10
|
-
value: unknown;
|
|
11
|
-
approved: unknown;
|
|
12
|
-
rejected: unknown;
|
|
13
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/flow-control/if
|
|
3
|
-
* @summary If flow-control node declaration (DECAF-32 §22.2.2).
|
|
4
|
-
* @description If — conditional branch. Evaluates a `ConditionExpression`
|
|
5
|
-
* (§22.3) and routes the input to the `then` or `else` output. A graph-level
|
|
6
|
-
* macro: the engine's planner recognises it as an ordinary executable node
|
|
7
|
-
* (§5.7) but it has no built-in executor — downstream projects register
|
|
8
|
-
* custom executors or compile it into composition APIs (§22.2.2).
|
|
9
|
-
*/
|
|
10
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
11
|
-
import "../category-styles";
|
|
12
|
-
export declare class IfFlowNode extends Model {
|
|
13
|
-
value: unknown;
|
|
14
|
-
then: unknown;
|
|
15
|
-
else: unknown;
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/flow-control/if
|
|
3
|
-
* @summary If flow-control node declaration (DECAF-32 §22.2.2).
|
|
4
|
-
* @description If — conditional branch. Evaluates a `ConditionExpression`
|
|
5
|
-
* (§22.3) and routes the input to the `then` or `else` output. A graph-level
|
|
6
|
-
* macro: the engine's planner recognises it as an ordinary executable node
|
|
7
|
-
* (§5.7) but it has no built-in executor — downstream projects register
|
|
8
|
-
* custom executors or compile it into composition APIs (§22.2.2).
|
|
9
|
-
*/
|
|
10
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
11
|
-
import "../category-styles";
|
|
12
|
-
export declare class IfFlowNode extends Model {
|
|
13
|
-
value: unknown;
|
|
14
|
-
then: unknown;
|
|
15
|
-
else: unknown;
|
|
16
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/flow-control/parallel
|
|
3
|
-
* @summary Parallel flow-control node declaration (DECAF-32 §22.2.2).
|
|
4
|
-
* @description Parallel — splits execution into concurrent branches.
|
|
5
|
-
*/
|
|
6
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
7
|
-
import "../category-styles";
|
|
8
|
-
export declare class ParallelFlowNode extends Model {
|
|
9
|
-
value: unknown;
|
|
10
|
-
branches: unknown[];
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/flow-control/parallel
|
|
3
|
-
* @summary Parallel flow-control node declaration (DECAF-32 §22.2.2).
|
|
4
|
-
* @description Parallel — splits execution into concurrent branches.
|
|
5
|
-
*/
|
|
6
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
7
|
-
import "../category-styles";
|
|
8
|
-
export declare class ParallelFlowNode extends Model {
|
|
9
|
-
value: unknown;
|
|
10
|
-
branches: unknown[];
|
|
11
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { NodeMetadataChange, SwitchNodeMetadata } from "../../types.d.cts";
|
|
2
|
-
import { GraphNode } from "../base.d.cts";
|
|
3
|
-
import "../category-styles";
|
|
4
|
-
export declare class SwitchFlowNode extends GraphNode {
|
|
5
|
-
value: unknown;
|
|
6
|
-
default: unknown;
|
|
7
|
-
/**
|
|
8
|
-
* Computes the node's ports, size, and data patch from the given switch
|
|
9
|
-
* metadata. Each case gets its own output port on the right side; the
|
|
10
|
-
* `default` port always renders **last** (DECAF-32 §21 port-ordering rule,
|
|
11
|
-
* DECAF-34 §6.2). When `hasDefault` is `false`, the `default` output port
|
|
12
|
-
* is omitted entirely. The node grows in height as cases are added.
|
|
13
|
-
*
|
|
14
|
-
* @param meta - The switch metadata patch (`metadata.switch`), carrying
|
|
15
|
-
* the cases and the optional default-port configuration.
|
|
16
|
-
* @returns The computed {@link NodeMetadataChange}: reordered ports
|
|
17
|
-
* (case outputs inserted before the optional default), the grown size,
|
|
18
|
-
* and the `switchMetadata` data patch.
|
|
19
|
-
*/
|
|
20
|
-
static applyMetadata(meta: SwitchNodeMetadata): NodeMetadataChange;
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { NodeMetadataChange, SwitchNodeMetadata } from "../../types.d.mts";
|
|
2
|
-
import { GraphNode } from "../base.d.mts";
|
|
3
|
-
import "../category-styles";
|
|
4
|
-
export declare class SwitchFlowNode extends GraphNode {
|
|
5
|
-
value: unknown;
|
|
6
|
-
default: unknown;
|
|
7
|
-
/**
|
|
8
|
-
* Computes the node's ports, size, and data patch from the given switch
|
|
9
|
-
* metadata. Each case gets its own output port on the right side; the
|
|
10
|
-
* `default` port always renders **last** (DECAF-32 §21 port-ordering rule,
|
|
11
|
-
* DECAF-34 §6.2). When `hasDefault` is `false`, the `default` output port
|
|
12
|
-
* is omitted entirely. The node grows in height as cases are added.
|
|
13
|
-
*
|
|
14
|
-
* @param meta - The switch metadata patch (`metadata.switch`), carrying
|
|
15
|
-
* the cases and the optional default-port configuration.
|
|
16
|
-
* @returns The computed {@link NodeMetadataChange}: reordered ports
|
|
17
|
-
* (case outputs inserted before the optional default), the grown size,
|
|
18
|
-
* and the `switchMetadata` data patch.
|
|
19
|
-
*/
|
|
20
|
-
static applyMetadata(meta: SwitchNodeMetadata): NodeMetadataChange;
|
|
21
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes
|
|
3
|
-
* @summary Shared node kind declarations (DECAF-32 §22.2, DECAF-50 Phase A).
|
|
4
|
-
* @description Canonical `@node`-decorated classes for the ALFRED-5 node kind
|
|
5
|
-
* taxonomy, laid out one node per file under `nodes/<category>/<node>.ts`:
|
|
6
|
-
* triggers (§22.2.1), flow-control and utility nodes (§22.2.2–22.2.3), the
|
|
7
|
-
* Agent node (§21.3), the three loop kinds (`core.loop.foreach/while/until`,
|
|
8
|
-
* §5.9), and the workflow input-value boundary node. Shared non-node support
|
|
9
|
-
* (base class, category styles, manifests) lives in sibling files under the
|
|
10
|
-
* same tree. Consumers (for-angular, ALFRED, etc.) import these declarations
|
|
11
|
-
* to populate node palettes, registries, and reference snapshots.
|
|
12
|
-
*/
|
|
13
|
-
export * from "./base.d.cts";
|
|
14
|
-
export * from "./category-styles.d.cts";
|
|
15
|
-
export * from "./flow-control/break.d.cts";
|
|
16
|
-
export * from "./flow-control/error-boundary.d.cts";
|
|
17
|
-
export * from "./flow-control/human-approval.d.cts";
|
|
18
|
-
export * from "./flow-control/if.d.cts";
|
|
19
|
-
export * from "./flow-control/parallel.d.cts";
|
|
20
|
-
export * from "./flow-control/switch.d.cts";
|
|
21
|
-
export * from "./utility/code.d.cts";
|
|
22
|
-
export * from "./utility/delay.d.cts";
|
|
23
|
-
export * from "./utility/log.d.cts";
|
|
24
|
-
export * from "./utility/map.d.cts";
|
|
25
|
-
export * from "./utility/merge.d.cts";
|
|
26
|
-
export * from "./utility/return.d.cts";
|
|
27
|
-
export * from "./utility/utility-log.d.cts";
|
|
28
|
-
export * from "./triggers/chat.d.cts";
|
|
29
|
-
export * from "./triggers/event.d.cts";
|
|
30
|
-
export * from "./triggers/form.d.cts";
|
|
31
|
-
export * from "./triggers/manual.d.cts";
|
|
32
|
-
export * from "./triggers/schedule.d.cts";
|
|
33
|
-
export * from "./triggers/webhook.d.cts";
|
|
34
|
-
export * from "./agents/agent.d.cts";
|
|
35
|
-
export * from "./loops/foreach.d.cts";
|
|
36
|
-
export * from "./loops/until.d.cts";
|
|
37
|
-
export * from "./loops/while.d.cts";
|
|
38
|
-
export * from "./boundary/input-value.d.cts";
|
|
39
|
-
export * from "./manifests.d.cts";
|
|
40
|
-
import { BreakFlowNode } from "./flow-control/break.d.cts";
|
|
41
|
-
import { ErrorBoundaryFlowNode } from "./flow-control/error-boundary.d.cts";
|
|
42
|
-
import { HumanApprovalFlowNode } from "./flow-control/human-approval.d.cts";
|
|
43
|
-
import { IfFlowNode } from "./flow-control/if.d.cts";
|
|
44
|
-
import { ParallelFlowNode } from "./flow-control/parallel.d.cts";
|
|
45
|
-
import { SwitchFlowNode } from "./flow-control/switch.d.cts";
|
|
46
|
-
import { CodeFlowNode } from "./utility/code.d.cts";
|
|
47
|
-
import { DelayFlowNode } from "./utility/delay.d.cts";
|
|
48
|
-
import { LogFlowNode } from "./utility/log.d.cts";
|
|
49
|
-
import { MapFlowNode } from "./utility/map.d.cts";
|
|
50
|
-
import { MergeFlowNode } from "./utility/merge.d.cts";
|
|
51
|
-
import { ReturnFlowNode } from "./utility/return.d.cts";
|
|
52
|
-
import { UtilityLogNode } from "./utility/utility-log.d.cts";
|
|
53
|
-
import { ChatTriggerNode } from "./triggers/chat.d.cts";
|
|
54
|
-
import { EventTriggerNode } from "./triggers/event.d.cts";
|
|
55
|
-
import { FormTriggerNode } from "./triggers/form.d.cts";
|
|
56
|
-
import { ManualTriggerNode } from "./triggers/manual.d.cts";
|
|
57
|
-
import { ScheduleTriggerNode } from "./triggers/schedule.d.cts";
|
|
58
|
-
import { WebhookTriggerNode } from "./triggers/webhook.d.cts";
|
|
59
|
-
import { GraphForeachLoopNode } from "./loops/foreach.d.cts";
|
|
60
|
-
import { GraphUntilLoopNode } from "./loops/until.d.cts";
|
|
61
|
-
import { GraphWhileLoopNode } from "./loops/while.d.cts";
|
|
62
|
-
import { GraphInputValueNode } from "./boundary/input-value.d.cts";
|
|
63
|
-
/**
|
|
64
|
-
* All built-in trigger node constructors.
|
|
65
|
-
*/
|
|
66
|
-
export declare const GRAPH_TRIGGER_NODES: readonly [typeof ManualTriggerNode, typeof WebhookTriggerNode, typeof ScheduleTriggerNode, typeof EventTriggerNode, typeof FormTriggerNode, typeof ChatTriggerNode];
|
|
67
|
-
/**
|
|
68
|
-
* All built-in flow-control node constructors.
|
|
69
|
-
*/
|
|
70
|
-
export declare const GRAPH_FLOW_CONTROL_NODES: readonly [typeof IfFlowNode, typeof SwitchFlowNode, typeof ParallelFlowNode, typeof MergeFlowNode, typeof MapFlowNode, typeof DelayFlowNode, typeof ErrorBoundaryFlowNode, typeof HumanApprovalFlowNode, typeof ReturnFlowNode, typeof CodeFlowNode, typeof LogFlowNode, typeof UtilityLogNode, typeof BreakFlowNode];
|
|
71
|
-
/**
|
|
72
|
-
* All built-in loop node constructors (shared declarations of the
|
|
73
|
-
* `core.loop.*` system kinds).
|
|
74
|
-
*/
|
|
75
|
-
export declare const GRAPH_LOOP_NODES: readonly [typeof GraphForeachLoopNode, typeof GraphWhileLoopNode, typeof GraphUntilLoopNode];
|
|
76
|
-
/**
|
|
77
|
-
* All built-in boundary node constructors.
|
|
78
|
-
*/
|
|
79
|
-
export declare const GRAPH_BOUNDARY_NODES: readonly [typeof GraphInputValueNode];
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes
|
|
3
|
-
* @summary Shared node kind declarations (DECAF-32 §22.2, DECAF-50 Phase A).
|
|
4
|
-
* @description Canonical `@node`-decorated classes for the ALFRED-5 node kind
|
|
5
|
-
* taxonomy, laid out one node per file under `nodes/<category>/<node>.ts`:
|
|
6
|
-
* triggers (§22.2.1), flow-control and utility nodes (§22.2.2–22.2.3), the
|
|
7
|
-
* Agent node (§21.3), the three loop kinds (`core.loop.foreach/while/until`,
|
|
8
|
-
* §5.9), and the workflow input-value boundary node. Shared non-node support
|
|
9
|
-
* (base class, category styles, manifests) lives in sibling files under the
|
|
10
|
-
* same tree. Consumers (for-angular, ALFRED, etc.) import these declarations
|
|
11
|
-
* to populate node palettes, registries, and reference snapshots.
|
|
12
|
-
*/
|
|
13
|
-
export * from "./base.d.mts";
|
|
14
|
-
export * from "./category-styles.d.mts";
|
|
15
|
-
export * from "./flow-control/break.d.mts";
|
|
16
|
-
export * from "./flow-control/error-boundary.d.mts";
|
|
17
|
-
export * from "./flow-control/human-approval.d.mts";
|
|
18
|
-
export * from "./flow-control/if.d.mts";
|
|
19
|
-
export * from "./flow-control/parallel.d.mts";
|
|
20
|
-
export * from "./flow-control/switch.d.mts";
|
|
21
|
-
export * from "./utility/code.d.mts";
|
|
22
|
-
export * from "./utility/delay.d.mts";
|
|
23
|
-
export * from "./utility/log.d.mts";
|
|
24
|
-
export * from "./utility/map.d.mts";
|
|
25
|
-
export * from "./utility/merge.d.mts";
|
|
26
|
-
export * from "./utility/return.d.mts";
|
|
27
|
-
export * from "./utility/utility-log.d.mts";
|
|
28
|
-
export * from "./triggers/chat.d.mts";
|
|
29
|
-
export * from "./triggers/event.d.mts";
|
|
30
|
-
export * from "./triggers/form.d.mts";
|
|
31
|
-
export * from "./triggers/manual.d.mts";
|
|
32
|
-
export * from "./triggers/schedule.d.mts";
|
|
33
|
-
export * from "./triggers/webhook.d.mts";
|
|
34
|
-
export * from "./agents/agent.d.mts";
|
|
35
|
-
export * from "./loops/foreach.d.mts";
|
|
36
|
-
export * from "./loops/until.d.mts";
|
|
37
|
-
export * from "./loops/while.d.mts";
|
|
38
|
-
export * from "./boundary/input-value.d.mts";
|
|
39
|
-
export * from "./manifests.d.mts";
|
|
40
|
-
import { BreakFlowNode } from "./flow-control/break.d.mts";
|
|
41
|
-
import { ErrorBoundaryFlowNode } from "./flow-control/error-boundary.d.mts";
|
|
42
|
-
import { HumanApprovalFlowNode } from "./flow-control/human-approval.d.mts";
|
|
43
|
-
import { IfFlowNode } from "./flow-control/if.d.mts";
|
|
44
|
-
import { ParallelFlowNode } from "./flow-control/parallel.d.mts";
|
|
45
|
-
import { SwitchFlowNode } from "./flow-control/switch.d.mts";
|
|
46
|
-
import { CodeFlowNode } from "./utility/code.d.mts";
|
|
47
|
-
import { DelayFlowNode } from "./utility/delay.d.mts";
|
|
48
|
-
import { LogFlowNode } from "./utility/log.d.mts";
|
|
49
|
-
import { MapFlowNode } from "./utility/map.d.mts";
|
|
50
|
-
import { MergeFlowNode } from "./utility/merge.d.mts";
|
|
51
|
-
import { ReturnFlowNode } from "./utility/return.d.mts";
|
|
52
|
-
import { UtilityLogNode } from "./utility/utility-log.d.mts";
|
|
53
|
-
import { ChatTriggerNode } from "./triggers/chat.d.mts";
|
|
54
|
-
import { EventTriggerNode } from "./triggers/event.d.mts";
|
|
55
|
-
import { FormTriggerNode } from "./triggers/form.d.mts";
|
|
56
|
-
import { ManualTriggerNode } from "./triggers/manual.d.mts";
|
|
57
|
-
import { ScheduleTriggerNode } from "./triggers/schedule.d.mts";
|
|
58
|
-
import { WebhookTriggerNode } from "./triggers/webhook.d.mts";
|
|
59
|
-
import { GraphForeachLoopNode } from "./loops/foreach.d.mts";
|
|
60
|
-
import { GraphUntilLoopNode } from "./loops/until.d.mts";
|
|
61
|
-
import { GraphWhileLoopNode } from "./loops/while.d.mts";
|
|
62
|
-
import { GraphInputValueNode } from "./boundary/input-value.d.mts";
|
|
63
|
-
/**
|
|
64
|
-
* All built-in trigger node constructors.
|
|
65
|
-
*/
|
|
66
|
-
export declare const GRAPH_TRIGGER_NODES: readonly [typeof ManualTriggerNode, typeof WebhookTriggerNode, typeof ScheduleTriggerNode, typeof EventTriggerNode, typeof FormTriggerNode, typeof ChatTriggerNode];
|
|
67
|
-
/**
|
|
68
|
-
* All built-in flow-control node constructors.
|
|
69
|
-
*/
|
|
70
|
-
export declare const GRAPH_FLOW_CONTROL_NODES: readonly [typeof IfFlowNode, typeof SwitchFlowNode, typeof ParallelFlowNode, typeof MergeFlowNode, typeof MapFlowNode, typeof DelayFlowNode, typeof ErrorBoundaryFlowNode, typeof HumanApprovalFlowNode, typeof ReturnFlowNode, typeof CodeFlowNode, typeof LogFlowNode, typeof UtilityLogNode, typeof BreakFlowNode];
|
|
71
|
-
/**
|
|
72
|
-
* All built-in loop node constructors (shared declarations of the
|
|
73
|
-
* `core.loop.*` system kinds).
|
|
74
|
-
*/
|
|
75
|
-
export declare const GRAPH_LOOP_NODES: readonly [typeof GraphForeachLoopNode, typeof GraphWhileLoopNode, typeof GraphUntilLoopNode];
|
|
76
|
-
/**
|
|
77
|
-
* All built-in boundary node constructors.
|
|
78
|
-
*/
|
|
79
|
-
export declare const GRAPH_BOUNDARY_NODES: readonly [typeof GraphInputValueNode];
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/loops/foreach
|
|
3
|
-
* @summary Foreach loop node declaration.
|
|
4
|
-
* @description Shared declaration for the `core.loop.foreach` system node
|
|
5
|
-
* kind (decorator id `graph-foreach-loop-node`), ported from the for-angular
|
|
6
|
-
* demo app so the loop kinds become shared canvas nodes. Its executor is
|
|
7
|
-
* built into the integrations engine (`ForeachGraphNodeExecutor`). The
|
|
8
|
-
* loop-body workflow is demo/app-side content and is not part of the shared
|
|
9
|
-
* declaration — the shared class carries the port/metadata shape only.
|
|
10
|
-
*/
|
|
11
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
12
|
-
import "../category-styles";
|
|
13
|
-
export declare class GraphForeachLoopNode extends Model {
|
|
14
|
-
items: unknown[];
|
|
15
|
-
slice: number;
|
|
16
|
-
item: unknown;
|
|
17
|
-
loop: unknown;
|
|
18
|
-
completed: unknown[];
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/loops/foreach
|
|
3
|
-
* @summary Foreach loop node declaration.
|
|
4
|
-
* @description Shared declaration for the `core.loop.foreach` system node
|
|
5
|
-
* kind (decorator id `graph-foreach-loop-node`), ported from the for-angular
|
|
6
|
-
* demo app so the loop kinds become shared canvas nodes. Its executor is
|
|
7
|
-
* built into the integrations engine (`ForeachGraphNodeExecutor`). The
|
|
8
|
-
* loop-body workflow is demo/app-side content and is not part of the shared
|
|
9
|
-
* declaration — the shared class carries the port/metadata shape only.
|
|
10
|
-
*/
|
|
11
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
12
|
-
import "../category-styles";
|
|
13
|
-
export declare class GraphForeachLoopNode extends Model {
|
|
14
|
-
items: unknown[];
|
|
15
|
-
slice: number;
|
|
16
|
-
item: unknown;
|
|
17
|
-
loop: unknown;
|
|
18
|
-
completed: unknown[];
|
|
19
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/loops/until
|
|
3
|
-
* @summary Until loop node declaration.
|
|
4
|
-
* @description Shared declaration for the `core.loop.until` system node kind
|
|
5
|
-
* (decorator id `graph-until-loop-node`), ported from the for-angular demo
|
|
6
|
-
* app so the loop kinds become shared canvas nodes. Its executor is built
|
|
7
|
-
* into the integrations engine (`UntilGraphNodeExecutor`). The loop-body
|
|
8
|
-
* workflow is demo/app-side content and is not part of the shared
|
|
9
|
-
* declaration — the shared class carries the port/metadata shape only.
|
|
10
|
-
*/
|
|
11
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
12
|
-
import "../category-styles";
|
|
13
|
-
export declare class GraphUntilLoopNode extends Model {
|
|
14
|
-
state: unknown;
|
|
15
|
-
stateOut: unknown;
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/loops/until
|
|
3
|
-
* @summary Until loop node declaration.
|
|
4
|
-
* @description Shared declaration for the `core.loop.until` system node kind
|
|
5
|
-
* (decorator id `graph-until-loop-node`), ported from the for-angular demo
|
|
6
|
-
* app so the loop kinds become shared canvas nodes. Its executor is built
|
|
7
|
-
* into the integrations engine (`UntilGraphNodeExecutor`). The loop-body
|
|
8
|
-
* workflow is demo/app-side content and is not part of the shared
|
|
9
|
-
* declaration — the shared class carries the port/metadata shape only.
|
|
10
|
-
*/
|
|
11
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
12
|
-
import "../category-styles";
|
|
13
|
-
export declare class GraphUntilLoopNode extends Model {
|
|
14
|
-
state: unknown;
|
|
15
|
-
stateOut: unknown;
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/loops/while
|
|
3
|
-
* @summary While loop node declaration.
|
|
4
|
-
* @description Shared declaration for the `core.loop.while` system node kind
|
|
5
|
-
* (decorator id `graph-while-loop-node`), ported from the for-angular demo
|
|
6
|
-
* app so the loop kinds become shared canvas nodes. Its executor is built
|
|
7
|
-
* into the integrations engine (`WhileGraphNodeExecutor`). The loop-body
|
|
8
|
-
* workflow is demo/app-side content and is not part of the shared
|
|
9
|
-
* declaration — the shared class carries the port/metadata shape only.
|
|
10
|
-
*/
|
|
11
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
12
|
-
import "../category-styles";
|
|
13
|
-
export declare class GraphWhileLoopNode extends Model {
|
|
14
|
-
state: unknown;
|
|
15
|
-
stateOut: unknown;
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/loops/while
|
|
3
|
-
* @summary While loop node declaration.
|
|
4
|
-
* @description Shared declaration for the `core.loop.while` system node kind
|
|
5
|
-
* (decorator id `graph-while-loop-node`), ported from the for-angular demo
|
|
6
|
-
* app so the loop kinds become shared canvas nodes. Its executor is built
|
|
7
|
-
* into the integrations engine (`WhileGraphNodeExecutor`). The loop-body
|
|
8
|
-
* workflow is demo/app-side content and is not part of the shared
|
|
9
|
-
* declaration — the shared class carries the port/metadata shape only.
|
|
10
|
-
*/
|
|
11
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
12
|
-
import "../category-styles";
|
|
13
|
-
export declare class GraphWhileLoopNode extends Model {
|
|
14
|
-
state: unknown;
|
|
15
|
-
stateOut: unknown;
|
|
16
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module ui-decorators/graph/nodes/manifests
|
|
3
|
-
* @summary Built-in node manifests (DECAF-50 §4.12).
|
|
4
|
-
* @description The catalogue-published JSON manifests for every node kind
|
|
5
|
-
* the backend ships. Loop manifests are hand-authored (their loop-body
|
|
6
|
-
* shapes are structural); the rest are compiled from the shared
|
|
7
|
-
* `@node`-decorated classes via `graphNodeManifest`, so the served shape is
|
|
8
|
-
* identical to what the Angular palette consumes. Aggregated in
|
|
9
|
-
* `GRAPH_BUILT_IN_NODE_MANIFESTS` and indexed by kind in
|
|
10
|
-
* `GRAPH_BUILT_IN_NODE_MANIFESTS_BY_KIND`.
|
|
11
|
-
*/
|
|
12
|
-
import type { GraphNodeManifest } from "../catalog/index.d.cts";
|
|
13
|
-
/** Manifest for the `core.loop.foreach` node: runs the loop body once per item (or slice) of the input array. */
|
|
14
|
-
export declare const FOREACH_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
15
|
-
/** Manifest for the `core.loop.while` node: repeats the loop body while the condition holds. */
|
|
16
|
-
export declare const WHILE_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
17
|
-
/** Manifest for the `core.loop.until` node: repeats the loop body until the condition holds. */
|
|
18
|
-
export declare const UNTIL_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
19
|
-
/** Manifest for the `core.flow.switch` node: routes execution by switch-case conditions (cases live under `parameters["switch"]`). */
|
|
20
|
-
export declare const SWITCH_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
21
|
-
/** Manifest for the manual-trigger node (starts a run on demand). */
|
|
22
|
-
export declare const MANUAL_TRIGGER_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
23
|
-
/** Manifest for the webhook-trigger node (starts a run from an inbound webhook). */
|
|
24
|
-
export declare const WEBHOOK_TRIGGER_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
25
|
-
/** Manifest for the schedule-trigger node (starts a run on a schedule). */
|
|
26
|
-
export declare const SCHEDULE_TRIGGER_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
27
|
-
/** Manifest for the event-trigger node (starts a run on an observed event). */
|
|
28
|
-
export declare const EVENT_TRIGGER_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
29
|
-
/** Manifest for the form-trigger node (starts a run from a form submission). */
|
|
30
|
-
export declare const FORM_TRIGGER_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
31
|
-
/** Manifest for the chat-trigger node (starts a run from a chat message). */
|
|
32
|
-
export declare const CHAT_TRIGGER_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
33
|
-
/** Manifest for the if node (conditional branch on a boolean condition). */
|
|
34
|
-
export declare const IF_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
35
|
-
/** Manifest for the parallel node (runs branches concurrently). */
|
|
36
|
-
export declare const PARALLEL_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
37
|
-
/** Manifest for the merge node (joins parallel branches). */
|
|
38
|
-
export declare const MERGE_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
39
|
-
/** Manifest for the map node (transforms each input item). */
|
|
40
|
-
export declare const MAP_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
41
|
-
/** Manifest for the delay node (pauses execution for a duration). */
|
|
42
|
-
export declare const DELAY_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
43
|
-
/** Manifest for the error-boundary node (isolates branch failures). */
|
|
44
|
-
export declare const ERROR_BOUNDARY_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
45
|
-
/** Manifest for the human-approval node (waits for an approval decision). */
|
|
46
|
-
export declare const HUMAN_APPROVAL_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
47
|
-
/** Manifest for the return node (terminates the workflow with output values). */
|
|
48
|
-
export declare const RETURN_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
49
|
-
/** Manifest for the code node (executes user code). */
|
|
50
|
-
export declare const CODE_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
51
|
-
/** Manifest for the log node (logs its input). */
|
|
52
|
-
export declare const LOG_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
53
|
-
/** Manifest for the utility-log node (log-shaped utility sink). */
|
|
54
|
-
export declare const UTILITY_LOG_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
55
|
-
/** Manifest for the break node (exits the enclosing loop). */
|
|
56
|
-
export declare const BREAK_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
57
|
-
/** Manifest for the agent node (delegates work to an agent). */
|
|
58
|
-
export declare const AGENT_GRAPH_NODE_MANIFEST: GraphNodeManifest;
|
|
59
|
-
/** All built-in node manifests, in catalogue display order. */
|
|
60
|
-
export declare const GRAPH_BUILT_IN_NODE_MANIFESTS: GraphNodeManifest[];
|
|
61
|
-
/** Built-in manifests indexed by node `kind` — the source for built-in catalogue registrations. */
|
|
62
|
-
export declare const GRAPH_BUILT_IN_NODE_MANIFESTS_BY_KIND: Record<string, GraphNodeManifest>;
|