@fluidgrids/workflows 0.0.0-stage → 2026.1027.1
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/LICENSE +9 -0
- package/README.md +208 -2
- package/dist/assemble-CrpUyd_3.d.ts +587 -0
- package/dist/assemble-DEf3znGD.d.cts +587 -0
- package/dist/chunk-3M34AUIY.cjs +27 -0
- package/dist/chunk-5AW745OG.js +25 -0
- package/dist/chunk-5LUIDMF4.js +42 -0
- package/dist/chunk-6AIAC2FP.cjs +185 -0
- package/dist/chunk-6BEW4QD6.js +95 -0
- package/dist/chunk-6U446SKY.js +263 -0
- package/dist/chunk-7YR7DI7B.cjs +274 -0
- package/dist/chunk-CSYBNN3V.cjs +252 -0
- package/dist/chunk-E3APHA6O.cjs +199 -0
- package/dist/chunk-EEAIM35V.js +748 -0
- package/dist/chunk-G4UEPUGO.cjs +46 -0
- package/dist/chunk-IHKXLG6I.js +246 -0
- package/dist/chunk-MBBKGD7K.js +440 -0
- package/dist/chunk-OSPTJCDI.cjs +102 -0
- package/dist/chunk-TQF7MYEN.cjs +771 -0
- package/dist/chunk-TWOYB4Y7.cjs +76 -0
- package/dist/chunk-UB2BHU2M.js +174 -0
- package/dist/chunk-UJNHTS6D.js +181 -0
- package/dist/chunk-UWQWD7BP.cjs +931 -0
- package/dist/chunk-W32BSO3M.js +74 -0
- package/dist/chunk-XBIID5DY.js +893 -0
- package/dist/chunk-Y7NWR3WH.cjs +450 -0
- package/dist/codegen/index.cjs +18 -0
- package/dist/codegen/index.d.cts +15 -0
- package/dist/codegen/index.d.ts +15 -0
- package/dist/codegen/index.js +5 -0
- package/dist/expressions-DhHaqyar.d.cts +62 -0
- package/dist/expressions-DhHaqyar.d.ts +62 -0
- package/dist/hash-CZkTXPCX.d.cts +15 -0
- package/dist/hash-CZkTXPCX.d.ts +15 -0
- package/dist/index.cjs +117 -0
- package/dist/index.d.cts +27 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +4 -0
- package/dist/ir/index.cjs +1246 -0
- package/dist/ir/index.d.cts +838 -0
- package/dist/ir/index.d.ts +838 -0
- package/dist/ir/index.js +1122 -0
- package/dist/lower-CXggJTIo.d.ts +67 -0
- package/dist/lower-DAzvsJCo.d.cts +67 -0
- package/dist/manifest-Bp9ZJlav.d.ts +60 -0
- package/dist/manifest-Duf-gHdO.d.cts +60 -0
- package/dist/node-evaluator-CH3XCJND.cjs +17 -0
- package/dist/node-evaluator-TULXA3WE.js +8 -0
- package/dist/quickjs/index.cjs +46 -0
- package/dist/quickjs/index.d.cts +18 -0
- package/dist/quickjs/index.d.ts +18 -0
- package/dist/quickjs/index.js +44 -0
- package/dist/roundtrip/index.cjs +1448 -0
- package/dist/roundtrip/index.d.cts +290 -0
- package/dist/roundtrip/index.d.ts +290 -0
- package/dist/roundtrip/index.js +1397 -0
- package/dist/types-Dr2Fn1Ax.d.cts +225 -0
- package/dist/types-Dr2Fn1Ax.d.ts +225 -0
- package/package.json +143 -4
- package/schema/ir-v2.schema.json +655 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `{{ … }}` forms that typed references lower to, and their parser.
|
|
3
|
+
*
|
|
4
|
+
* Typed references lower to the expression language the workers evaluate
|
|
5
|
+
* (`fluidgrids-workers/src/executor/expression-language.service.ts`). A node's
|
|
6
|
+
* output is `$node["<id>"].item` there: the builtin exposes `item`, `all()`,
|
|
7
|
+
* `first()` and `last()`, and has no `.json` property, so the
|
|
8
|
+
* `$node["id"].json.…` form written in parts of the spec would evaluate to
|
|
9
|
+
* `undefined`. The canonical form is therefore `{{ $node["<id>"].item.<path> }}`,
|
|
10
|
+
* with exactly one space inside each brace pair.
|
|
11
|
+
*
|
|
12
|
+
* Parsing is strict: a string is read back as a reference only if formatting
|
|
13
|
+
* the parsed reference reproduces the string exactly, so lifting never changes
|
|
14
|
+
* the text of an expression.
|
|
15
|
+
*/
|
|
16
|
+
/** One path step: a property name or an array index. */
|
|
17
|
+
type PathSegment = {
|
|
18
|
+
kind: 'key';
|
|
19
|
+
key: string;
|
|
20
|
+
} | {
|
|
21
|
+
kind: 'index';
|
|
22
|
+
index: number;
|
|
23
|
+
};
|
|
24
|
+
/** The roots a typed reference can start from. */
|
|
25
|
+
type RefRoot = {
|
|
26
|
+
kind: 'node';
|
|
27
|
+
nodeId: string;
|
|
28
|
+
} | {
|
|
29
|
+
kind: 'json';
|
|
30
|
+
} | {
|
|
31
|
+
kind: 'vars';
|
|
32
|
+
} | {
|
|
33
|
+
kind: 'now';
|
|
34
|
+
} | {
|
|
35
|
+
kind: 'execution';
|
|
36
|
+
};
|
|
37
|
+
interface ValueRefModel {
|
|
38
|
+
root: RefRoot;
|
|
39
|
+
path: PathSegment[];
|
|
40
|
+
}
|
|
41
|
+
/** The bare expression for a reference (no braces). */
|
|
42
|
+
declare function formatRefExpression(ref: ValueRefModel): string;
|
|
43
|
+
/** `{{ <expression> }}` for a reference. */
|
|
44
|
+
declare function formatRefTemplate(ref: ValueRefModel): string;
|
|
45
|
+
/** Parse a bare reference expression; undefined unless it formats back identically. */
|
|
46
|
+
declare function parseRefExpression(expression: string): ValueRefModel | undefined;
|
|
47
|
+
/** One part of a template string: literal text or a reference. */
|
|
48
|
+
type TemplatePart = {
|
|
49
|
+
kind: 'text';
|
|
50
|
+
text: string;
|
|
51
|
+
} | {
|
|
52
|
+
kind: 'ref';
|
|
53
|
+
ref: ValueRefModel;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Split a string into literal text and `{{ ref }}` parts. Returns undefined when
|
|
57
|
+
* the string contains a `{{ … }}` that is not a canonical reference, or no
|
|
58
|
+
* reference at all.
|
|
59
|
+
*/
|
|
60
|
+
declare function parseTemplate(text: string): TemplatePart[] | undefined;
|
|
61
|
+
|
|
62
|
+
export { type PathSegment as P, type RefRoot as R, type TemplatePart as T, type ValueRefModel as V, formatRefTemplate as a, parseTemplate as b, formatRefExpression as f, parseRefExpression as p };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** The projection of a definition that `irHash` covers. */
|
|
2
|
+
declare function hashedProjection(definition: unknown): unknown;
|
|
3
|
+
/** `sha256:<hex>` over the canonical, normalised definition without `authoring`. */
|
|
4
|
+
declare function irHash(definition: unknown): string;
|
|
5
|
+
/** One authoring source file. */
|
|
6
|
+
interface SourceFile {
|
|
7
|
+
path: string;
|
|
8
|
+
content: string;
|
|
9
|
+
}
|
|
10
|
+
/** `sha256:<hex>` over the source files, independent of their order. */
|
|
11
|
+
declare function sourceHash(files: readonly SourceFile[]): string;
|
|
12
|
+
/** `sha256:<hex>` of a bundle. */
|
|
13
|
+
declare function buildIdOf(bundle: string): string;
|
|
14
|
+
|
|
15
|
+
export { type SourceFile as S, buildIdOf as b, hashedProjection as h, irHash as i, sourceHash as s };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** The projection of a definition that `irHash` covers. */
|
|
2
|
+
declare function hashedProjection(definition: unknown): unknown;
|
|
3
|
+
/** `sha256:<hex>` over the canonical, normalised definition without `authoring`. */
|
|
4
|
+
declare function irHash(definition: unknown): string;
|
|
5
|
+
/** One authoring source file. */
|
|
6
|
+
interface SourceFile {
|
|
7
|
+
path: string;
|
|
8
|
+
content: string;
|
|
9
|
+
}
|
|
10
|
+
/** `sha256:<hex>` over the source files, independent of their order. */
|
|
11
|
+
declare function sourceHash(files: readonly SourceFile[]): string;
|
|
12
|
+
/** `sha256:<hex>` of a bundle. */
|
|
13
|
+
declare function buildIdOf(bundle: string): string;
|
|
14
|
+
|
|
15
|
+
export { type SourceFile as S, buildIdOf as b, hashedProjection as h, irHash as i, sourceHash as s };
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkTQF7MYEN_cjs = require('./chunk-TQF7MYEN.cjs');
|
|
4
|
+
require('./chunk-G4UEPUGO.cjs');
|
|
5
|
+
var chunk6AIAC2FP_cjs = require('./chunk-6AIAC2FP.cjs');
|
|
6
|
+
require('./chunk-E3APHA6O.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "COLLECTION_FORMAT", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunkTQF7MYEN_cjs.COLLECTION_FORMAT; }
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "LAYOUT_FORMAT", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunkTQF7MYEN_cjs.LAYOUT_FORMAT; }
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "LAYOUT_FORMAT_VERSION", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunkTQF7MYEN_cjs.LAYOUT_FORMAT_VERSION; }
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "RECORDING_FORMAT", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return chunkTQF7MYEN_cjs.RECORDING_FORMAT; }
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "RECORDING_FORMAT_VERSION", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () { return chunkTQF7MYEN_cjs.RECORDING_FORMAT_VERSION; }
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "SDK_VERSION", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return chunkTQF7MYEN_cjs.SDK_VERSION; }
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "UnresolvedConnectionsError", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () { return chunkTQF7MYEN_cjs.UnresolvedConnectionsError; }
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "WorkflowBuilder", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () { return chunkTQF7MYEN_cjs.WorkflowBuilder; }
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "assembleRecording", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () { return chunkTQF7MYEN_cjs.assembleRecording; }
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "collectWorkflowExports", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () { return chunkTQF7MYEN_cjs.collectWorkflowExports; }
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "defaultEdgeId", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () { return chunkTQF7MYEN_cjs.defaultEdgeId; }
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "defineWorkflow", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () { return chunkTQF7MYEN_cjs.defineWorkflow; }
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "edge", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () { return chunkTQF7MYEN_cjs.edge; }
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "internalNodes", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function () { return chunkTQF7MYEN_cjs.internalNodes; }
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "isOperation", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () { return chunkTQF7MYEN_cjs.isOperation; }
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "isTier1Workflow", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () { return chunkTQF7MYEN_cjs.isTier1Workflow; }
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(exports, "nodes", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function () { return chunkTQF7MYEN_cjs.nodes; }
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "op", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () { return chunkTQF7MYEN_cjs.op; }
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(exports, "parseLayoutSidecar", {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: function () { return chunkTQF7MYEN_cjs.parseLayoutSidecar; }
|
|
85
|
+
});
|
|
86
|
+
Object.defineProperty(exports, "toIR", {
|
|
87
|
+
enumerable: true,
|
|
88
|
+
get: function () { return chunkTQF7MYEN_cjs.toIR; }
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "trigger", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () { return chunkTQF7MYEN_cjs.trigger; }
|
|
93
|
+
});
|
|
94
|
+
Object.defineProperty(exports, "triggers", {
|
|
95
|
+
enumerable: true,
|
|
96
|
+
get: function () { return chunkTQF7MYEN_cjs.triggers; }
|
|
97
|
+
});
|
|
98
|
+
Object.defineProperty(exports, "BuilderError", {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function () { return chunk6AIAC2FP_cjs.BuilderError; }
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "PREDICATE_OPERATORS", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () { return chunk6AIAC2FP_cjs.PREDICATE_OPERATORS; }
|
|
105
|
+
});
|
|
106
|
+
Object.defineProperty(exports, "and", {
|
|
107
|
+
enumerable: true,
|
|
108
|
+
get: function () { return chunk6AIAC2FP_cjs.and; }
|
|
109
|
+
});
|
|
110
|
+
Object.defineProperty(exports, "expr", {
|
|
111
|
+
enumerable: true,
|
|
112
|
+
get: function () { return chunk6AIAC2FP_cjs.expr; }
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "or", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () { return chunk6AIAC2FP_cjs.or; }
|
|
117
|
+
});
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { T as Tier1Recording } from './assemble-DEf3znGD.cjs';
|
|
2
|
+
export { A as AfterInput, a as AnyRef, b as ApprovalRef, c as ArgValue, d as ArgsOf, e as AssembleOptions, B as BuilderError, C as CompareRef, f as ConditionGroup, g as ConditionRule, h as ConnectionResolver, E as EdgeOptions, i as EdgeSource, j as EdgeSpec, F as FileRef, H as HandleRef, I as IfOptions, k as IfRef, L as LAYOUT_FORMAT, l as LAYOUT_FORMAT_VERSION, m as LayoutSidecar, n as LoopOptions, o as LoopRef, M as MergeOptions, N as NodeOptions, p as NodeRef, q as NoteOptions, O as OnErrorOption, r as Operation, s as OutputRef, P as PREDICATE_OPERATORS, t as Predicate, u as PredicateMethods, R as RECORDING_FORMAT, v as RECORDING_FORMAT_VERSION, w as RecordedNode, x as RecordedNote, y as RuleValue, S as SignalWaitRef, z as SubworkflowOptions, D as SwitchOptions, G as SwitchRef, J as Tier1Workflow, K as TriggerOperation, U as UnresolvedConnectionsError, V as ValidateRef, W as WaitForSignalOptions, Q as WorkflowBuilder, X as WorkflowOptions, Y as and, Z as assembleRecording, _ as defaultEdgeId, $ as defineWorkflow, a0 as edge, a1 as expr, a2 as internalNodes, a3 as isOperation, a4 as isTier1Workflow, a5 as nodes, a6 as op, a7 as or, a8 as parseLayoutSidecar, a9 as toIR, aa as trigger, ab as triggers } from './assemble-DEf3znGD.cjs';
|
|
3
|
+
export { J as Json, a as JsonObject, W as WorkflowDefinition } from './types-Dr2Fn1Ax.cjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Runs inside the evaluation isolate at the end of a tier-1 bundle: gathers the
|
|
7
|
+
* recordings of every exported `defineWorkflow` value as one JSON string, the
|
|
8
|
+
* only thing that leaves the isolate.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
declare const COLLECTION_FORMAT = "fluidgrids.tier1-collection";
|
|
12
|
+
interface CollectedWorkflow {
|
|
13
|
+
module: string;
|
|
14
|
+
exportName: string;
|
|
15
|
+
recording: Tier1Recording;
|
|
16
|
+
}
|
|
17
|
+
interface Tier1Collection {
|
|
18
|
+
format: typeof COLLECTION_FORMAT;
|
|
19
|
+
workflows: CollectedWorkflow[];
|
|
20
|
+
}
|
|
21
|
+
/** Collect the tier-1 workflows exported by each module, as JSON. */
|
|
22
|
+
declare function collectWorkflowExports(modules: ReadonlyArray<readonly [string, Record<string, unknown>]>): string;
|
|
23
|
+
|
|
24
|
+
/** The version of @fluidgrids/workflows. */
|
|
25
|
+
declare const SDK_VERSION = "2026.1027.1";
|
|
26
|
+
|
|
27
|
+
export { COLLECTION_FORMAT, type CollectedWorkflow, SDK_VERSION, type Tier1Collection, Tier1Recording, collectWorkflowExports };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { T as Tier1Recording } from './assemble-CrpUyd_3.js';
|
|
2
|
+
export { A as AfterInput, a as AnyRef, b as ApprovalRef, c as ArgValue, d as ArgsOf, e as AssembleOptions, B as BuilderError, C as CompareRef, f as ConditionGroup, g as ConditionRule, h as ConnectionResolver, E as EdgeOptions, i as EdgeSource, j as EdgeSpec, F as FileRef, H as HandleRef, I as IfOptions, k as IfRef, L as LAYOUT_FORMAT, l as LAYOUT_FORMAT_VERSION, m as LayoutSidecar, n as LoopOptions, o as LoopRef, M as MergeOptions, N as NodeOptions, p as NodeRef, q as NoteOptions, O as OnErrorOption, r as Operation, s as OutputRef, P as PREDICATE_OPERATORS, t as Predicate, u as PredicateMethods, R as RECORDING_FORMAT, v as RECORDING_FORMAT_VERSION, w as RecordedNode, x as RecordedNote, y as RuleValue, S as SignalWaitRef, z as SubworkflowOptions, D as SwitchOptions, G as SwitchRef, J as Tier1Workflow, K as TriggerOperation, U as UnresolvedConnectionsError, V as ValidateRef, W as WaitForSignalOptions, Q as WorkflowBuilder, X as WorkflowOptions, Y as and, Z as assembleRecording, _ as defaultEdgeId, $ as defineWorkflow, a0 as edge, a1 as expr, a2 as internalNodes, a3 as isOperation, a4 as isTier1Workflow, a5 as nodes, a6 as op, a7 as or, a8 as parseLayoutSidecar, a9 as toIR, aa as trigger, ab as triggers } from './assemble-CrpUyd_3.js';
|
|
3
|
+
export { J as Json, a as JsonObject, W as WorkflowDefinition } from './types-Dr2Fn1Ax.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Runs inside the evaluation isolate at the end of a tier-1 bundle: gathers the
|
|
7
|
+
* recordings of every exported `defineWorkflow` value as one JSON string, the
|
|
8
|
+
* only thing that leaves the isolate.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
declare const COLLECTION_FORMAT = "fluidgrids.tier1-collection";
|
|
12
|
+
interface CollectedWorkflow {
|
|
13
|
+
module: string;
|
|
14
|
+
exportName: string;
|
|
15
|
+
recording: Tier1Recording;
|
|
16
|
+
}
|
|
17
|
+
interface Tier1Collection {
|
|
18
|
+
format: typeof COLLECTION_FORMAT;
|
|
19
|
+
workflows: CollectedWorkflow[];
|
|
20
|
+
}
|
|
21
|
+
/** Collect the tier-1 workflows exported by each module, as JSON. */
|
|
22
|
+
declare function collectWorkflowExports(modules: ReadonlyArray<readonly [string, Record<string, unknown>]>): string;
|
|
23
|
+
|
|
24
|
+
/** The version of @fluidgrids/workflows. */
|
|
25
|
+
declare const SDK_VERSION = "2026.1027.1";
|
|
26
|
+
|
|
27
|
+
export { COLLECTION_FORMAT, type CollectedWorkflow, SDK_VERSION, type Tier1Collection, Tier1Recording, collectWorkflowExports };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { COLLECTION_FORMAT, LAYOUT_FORMAT, LAYOUT_FORMAT_VERSION, RECORDING_FORMAT, RECORDING_FORMAT_VERSION, SDK_VERSION, UnresolvedConnectionsError, WorkflowBuilder, assembleRecording, collectWorkflowExports, defaultEdgeId, defineWorkflow, edge, internalNodes, isOperation, isTier1Workflow, nodes, op, parseLayoutSidecar, toIR, trigger, triggers } from './chunk-EEAIM35V.js';
|
|
2
|
+
import './chunk-5LUIDMF4.js';
|
|
3
|
+
export { BuilderError, PREDICATE_OPERATORS, and, expr, or } from './chunk-UB2BHU2M.js';
|
|
4
|
+
import './chunk-UJNHTS6D.js';
|