@fluidgrids/workflows 2026.1027.1 → 2026.1028.2
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/README.md +144 -13
- package/dist/activation-BBh1p82z.d.cts +57 -0
- package/dist/activation-DnhG7SmF.d.ts +57 -0
- package/dist/assemble-BLqQ8lSu.d.cts +39 -0
- package/dist/assemble-DWgaXHd-.d.ts +39 -0
- package/dist/chunk-2J6TF7YI.cjs +86 -0
- package/dist/chunk-4LYSEANA.js +199 -0
- package/dist/chunk-623FVQSN.cjs +251 -0
- package/dist/{chunk-W32BSO3M.js → chunk-6FSHT5IL.js} +2 -2
- package/dist/{chunk-E3APHA6O.cjs → chunk-7AAZGVKD.js} +1 -64
- package/dist/chunk-ABFZWYHT.js +612 -0
- package/dist/{chunk-6U446SKY.js → chunk-BD7ZPG53.js} +2 -2
- package/dist/chunk-BO6OVILK.js +79 -0
- package/dist/chunk-C5OLWZ42.js +245 -0
- package/dist/{chunk-OSPTJCDI.cjs → chunk-CPDK3K5N.cjs} +6 -6
- package/dist/chunk-DHTLALBL.cjs +80 -0
- package/dist/chunk-DJYMDLV5.js +227 -0
- package/dist/{chunk-IHKXLG6I.js → chunk-E2VK7J2C.js} +1 -1
- package/dist/{chunk-3M34AUIY.cjs → chunk-FEW3JBYA.cjs} +3 -3
- package/dist/chunk-FMSW2HDF.cjs +267 -0
- package/dist/chunk-FR7KYWRO.cjs +41 -0
- package/dist/{chunk-7YR7DI7B.cjs → chunk-GBQ33SIZ.cjs} +44 -44
- package/dist/{chunk-6AIAC2FP.cjs → chunk-GVTZMA5C.cjs} +4 -4
- package/dist/{chunk-EEAIM35V.js → chunk-HWJZVOG7.js} +64 -23
- package/dist/chunk-I5LR3D2K.js +869 -0
- package/dist/chunk-IISBRUWJ.js +13 -0
- package/dist/chunk-JD2VQIDZ.cjs +15 -0
- package/dist/{chunk-UB2BHU2M.js → chunk-JZ4TOOLN.js} +1 -1
- package/dist/chunk-L24YIZY7.cjs +207 -0
- package/dist/chunk-LNUQE6D6.js +39 -0
- package/dist/chunk-M4BBAERY.cjs +1635 -0
- package/dist/chunk-N23SKIG4.js +73 -0
- package/dist/{chunk-TWOYB4Y7.cjs → chunk-NEIUQASE.cjs} +13 -13
- package/dist/chunk-P6TA5EZT.cjs +634 -0
- package/dist/chunk-PMCM2OH4.js +46 -0
- package/dist/chunk-PZCVF76Q.cjs +868 -0
- package/dist/{chunk-6BEW4QD6.js → chunk-QAN5MZEM.js} +1 -1
- package/dist/{chunk-CSYBNN3V.cjs → chunk-QKZL3ONM.cjs} +2 -2
- package/dist/chunk-QQ6ULXHI.cjs +885 -0
- package/dist/chunk-SAENRNBJ.cjs +52 -0
- package/dist/{chunk-TQF7MYEN.cjs → chunk-SAOBPYYJ.cjs} +134 -96
- package/dist/{chunk-XBIID5DY.js → chunk-SMCANK3F.js} +5 -4
- package/dist/{chunk-UWQWD7BP.cjs → chunk-SX2PNKKT.cjs} +18 -17
- package/dist/{chunk-UJNHTS6D.js → chunk-TBDXTV22.cjs} +8 -45
- package/dist/chunk-UK3WM7YZ.cjs +75 -0
- package/dist/chunk-VOKMAAJP.js +848 -0
- package/dist/chunk-VRHHBPT6.js +1622 -0
- package/dist/{chunk-5AW745OG.js → chunk-XHXIDVEC.js} +1 -1
- package/dist/chunk-XKJA7KX3.js +72 -0
- package/dist/chunk-Z2Y65YOY.cjs +7 -0
- package/dist/codegen/index.cjs +9 -7
- package/dist/codegen/index.d.cts +2 -2
- package/dist/codegen/index.d.ts +2 -2
- package/dist/codegen/index.js +6 -5
- package/dist/file-BOoHZgoQ.d.cts +1557 -0
- package/dist/file-yuPCFU5b.d.ts +1557 -0
- package/dist/history/index.cjs +287 -0
- package/dist/history/index.d.cts +157 -0
- package/dist/history/index.d.ts +157 -0
- package/dist/history/index.js +5 -0
- package/dist/index.cjs +134 -36
- package/dist/index.d.cts +137 -9
- package/dist/index.d.ts +137 -9
- package/dist/index.js +8 -3
- package/dist/ir/index.cjs +152 -158
- package/dist/ir/index.d.cts +14 -4
- package/dist/ir/index.d.ts +14 -4
- package/dist/ir/index.js +41 -50
- package/dist/lower-BzmUz0sq.d.cts +129 -0
- package/dist/lower-_-iT4HYs.d.ts +129 -0
- package/dist/lower-types-DQNBfWQn.d.cts +37 -0
- package/dist/lower-types-DQNBfWQn.d.ts +37 -0
- package/dist/{manifest-Duf-gHdO.d.cts → manifest-0OLw0i7k.d.cts} +1 -1
- package/dist/{manifest-Bp9ZJlav.d.ts → manifest-C8N6HDYl.d.ts} +1 -1
- package/dist/node-evaluator-4MSDKWOG.cjs +22 -0
- package/dist/node-evaluator-SX4LEYQC.js +12 -0
- package/dist/quickjs/index.cjs +236 -12
- package/dist/quickjs/index.d.cts +46 -5
- package/dist/quickjs/index.d.ts +46 -5
- package/dist/quickjs/index.js +230 -9
- package/dist/roundtrip/index.cjs +333 -131
- package/dist/roundtrip/index.d.cts +39 -7
- package/dist/roundtrip/index.d.ts +39 -7
- package/dist/roundtrip/index.js +185 -13
- package/dist/runtime/index.cjs +90 -0
- package/dist/runtime/index.d.cts +297 -0
- package/dist/runtime/index.d.ts +297 -0
- package/dist/runtime/index.js +8 -0
- package/dist/testing/index.cjs +1057 -0
- package/dist/testing/index.d.cts +305 -0
- package/dist/testing/index.d.ts +305 -0
- package/dist/testing/index.js +1037 -0
- package/dist/{types-Dr2Fn1Ax.d.ts → types-BGoPzgcl.d.cts} +1 -1
- package/dist/{types-Dr2Fn1Ax.d.cts → types-BGoPzgcl.d.ts} +1 -1
- package/dist/types-CpBBjaGX.d.cts +380 -0
- package/dist/types-DV-HX_Gt.d.ts +380 -0
- package/dist/{assemble-CrpUyd_3.d.ts → workflow-Bpr3vnA_.d.ts} +40 -160
- package/dist/workflow-C2a05WUJ.d.ts +444 -0
- package/dist/{assemble-DEf3znGD.d.cts → workflow-FXUkpIBc.d.cts} +40 -160
- package/dist/workflow-J-yYixny.d.cts +444 -0
- package/fixtures/README.md +128 -0
- package/fixtures/histories/activity-failure-fails-run.history.json +163 -0
- package/fixtures/histories/activity-retry-then-success.history.json +147 -0
- package/fixtures/histories/cancel-activity-abandon.history.json +126 -0
- package/fixtures/histories/cancel-activity-compensate.history.json +307 -0
- package/fixtures/histories/cancel-concurrent-non-cancellable.history.json +234 -0
- package/fixtures/histories/cancel-concurrent-scope-timeout.history.json +184 -0
- package/fixtures/histories/cancel-condition-after-cancel.history.json +200 -0
- package/fixtures/histories/cancel-during-timer.history.json +123 -0
- package/fixtures/histories/cancel-saga-compensations.history.json +325 -0
- package/fixtures/histories/cancel-scope-timeout.history.json +148 -0
- package/fixtures/histories/child-abandon-outlives-parent.history.json +191 -0
- package/fixtures/histories/child-cancel-default.history.json +234 -0
- package/fixtures/histories/child-cancel-request.history.json +206 -0
- package/fixtures/histories/child-durable-child-side.history.json +124 -0
- package/fixtures/histories/child-durable-result.history.json +163 -0
- package/fixtures/histories/child-failure-caught.history.json +166 -0
- package/fixtures/histories/child-graph-by-key.history.json +138 -0
- package/fixtures/histories/child-terminated-by-parent-close.history.json +85 -0
- package/fixtures/histories/continue-as-new-first-run.history.json +146 -0
- package/fixtures/histories/continue-as-new-history-limit.history.json +489 -0
- package/fixtures/histories/continue-as-new-last-run.history.json +147 -0
- package/fixtures/histories/continue-as-new-suggested.history.json +352 -0
- package/fixtures/histories/details-and-context.history.json +176 -0
- package/fixtures/histories/deterministic-values.history.json +128 -0
- package/fixtures/histories/engine-builtins.history.json +172 -0
- package/fixtures/histories/gather-activities.history.json +291 -0
- package/fixtures/histories/gather-all-settled.history.json +219 -0
- package/fixtures/histories/gather-mixed.history.json +281 -0
- package/fixtures/histories/input-during-running-task.history.json +111 -0
- package/fixtures/histories/nondeterminism-reordered.history.json +218 -0
- package/fixtures/histories/patched-deprecated.history.json +271 -0
- package/fixtures/histories/patched-new-run.history.json +270 -0
- package/fixtures/histories/patched-old-history.history.json +190 -0
- package/fixtures/histories/race-activity-wins.history.json +152 -0
- package/fixtures/histories/race-signal-beats-child.history.json +161 -0
- package/fixtures/histories/race-timeout-wins.history.json +118 -0
- package/fixtures/histories/side-effect-recorded.history.json +153 -0
- package/fixtures/histories/signal-buffered-at-start.history.json +157 -0
- package/fixtures/histories/signal-default-handler.history.json +187 -0
- package/fixtures/histories/signal-handler.history.json +191 -0
- package/fixtures/histories/signal-parent-child-side.history.json +132 -0
- package/fixtures/histories/signal-parent.history.json +202 -0
- package/fixtures/histories/signal-run-delivered.history.json +128 -0
- package/fixtures/histories/signal-run-undelivered.history.json +134 -0
- package/fixtures/histories/signal-wait.history.json +111 -0
- package/fixtures/histories/task-failure-code-error.history.json +137 -0
- package/fixtures/histories/task-failure-then-transient-attempt.history.json +140 -0
- package/fixtures/histories/timer-condition-met.history.json +201 -0
- package/fixtures/histories/timer-condition-timeout.history.json +118 -0
- package/fixtures/histories/timer-sleep-once.history.json +118 -0
- package/fixtures/histories/timer-sleep-sequence.history.json +210 -0
- package/fixtures/histories/update-accepted-completed.history.json +149 -0
- package/fixtures/histories/update-with-start-rejected-validation.history.json +91 -0
- package/package.json +44 -5
- package/schema/history-file.schema.json +2544 -0
- package/schema/ir-v2.schema.json +16 -0
- package/schema/run-event.schema.json +2374 -0
- package/schema/workflow-command.schema.json +1095 -0
- package/schema/workflow-task.schema.json +3560 -0
- package/dist/chunk-MBBKGD7K.js +0 -440
- package/dist/chunk-Y7NWR3WH.cjs +0 -450
- package/dist/lower-CXggJTIo.d.ts +0 -67
- package/dist/lower-DAzvsJCo.d.cts +0 -67
- package/dist/node-evaluator-CH3XCJND.cjs +0 -17
- package/dist/node-evaluator-TULXA3WE.js +0 -8
package/dist/index.cjs
CHANGED
|
@@ -1,117 +1,215 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUK3WM7YZ_cjs = require('./chunk-UK3WM7YZ.cjs');
|
|
4
|
+
var chunkSAOBPYYJ_cjs = require('./chunk-SAOBPYYJ.cjs');
|
|
4
5
|
require('./chunk-G4UEPUGO.cjs');
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
6
|
+
var chunkGVTZMA5C_cjs = require('./chunk-GVTZMA5C.cjs');
|
|
7
|
+
require('./chunk-TBDXTV22.cjs');
|
|
8
|
+
require('./chunk-SAENRNBJ.cjs');
|
|
9
|
+
var chunkFMSW2HDF_cjs = require('./chunk-FMSW2HDF.cjs');
|
|
10
|
+
require('./chunk-FR7KYWRO.cjs');
|
|
11
|
+
var chunkDHTLALBL_cjs = require('./chunk-DHTLALBL.cjs');
|
|
12
|
+
require('./chunk-Z2Y65YOY.cjs');
|
|
7
13
|
|
|
8
14
|
|
|
9
15
|
|
|
10
16
|
Object.defineProperty(exports, "COLLECTION_FORMAT", {
|
|
11
17
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkUK3WM7YZ_cjs.COLLECTION_FORMAT; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "collectWorkflowExports", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkUK3WM7YZ_cjs.collectWorkflowExports; }
|
|
13
23
|
});
|
|
14
24
|
Object.defineProperty(exports, "LAYOUT_FORMAT", {
|
|
15
25
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkSAOBPYYJ_cjs.LAYOUT_FORMAT; }
|
|
17
27
|
});
|
|
18
28
|
Object.defineProperty(exports, "LAYOUT_FORMAT_VERSION", {
|
|
19
29
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkSAOBPYYJ_cjs.LAYOUT_FORMAT_VERSION; }
|
|
21
31
|
});
|
|
22
32
|
Object.defineProperty(exports, "RECORDING_FORMAT", {
|
|
23
33
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkSAOBPYYJ_cjs.RECORDING_FORMAT; }
|
|
25
35
|
});
|
|
26
36
|
Object.defineProperty(exports, "RECORDING_FORMAT_VERSION", {
|
|
27
37
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "SDK_VERSION", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () { return chunkTQF7MYEN_cjs.SDK_VERSION; }
|
|
38
|
+
get: function () { return chunkSAOBPYYJ_cjs.RECORDING_FORMAT_VERSION; }
|
|
33
39
|
});
|
|
34
40
|
Object.defineProperty(exports, "UnresolvedConnectionsError", {
|
|
35
41
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkSAOBPYYJ_cjs.UnresolvedConnectionsError; }
|
|
37
43
|
});
|
|
38
44
|
Object.defineProperty(exports, "WorkflowBuilder", {
|
|
39
45
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkSAOBPYYJ_cjs.WorkflowBuilder; }
|
|
41
47
|
});
|
|
42
48
|
Object.defineProperty(exports, "assembleRecording", {
|
|
43
49
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(exports, "collectWorkflowExports", {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
get: function () { return chunkTQF7MYEN_cjs.collectWorkflowExports; }
|
|
50
|
+
get: function () { return chunkSAOBPYYJ_cjs.assembleRecording; }
|
|
49
51
|
});
|
|
50
52
|
Object.defineProperty(exports, "defaultEdgeId", {
|
|
51
53
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkSAOBPYYJ_cjs.defaultEdgeId; }
|
|
53
55
|
});
|
|
54
56
|
Object.defineProperty(exports, "defineWorkflow", {
|
|
55
57
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkSAOBPYYJ_cjs.defineWorkflow; }
|
|
57
59
|
});
|
|
58
60
|
Object.defineProperty(exports, "edge", {
|
|
59
61
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkSAOBPYYJ_cjs.edge; }
|
|
61
63
|
});
|
|
62
64
|
Object.defineProperty(exports, "internalNodes", {
|
|
63
65
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkSAOBPYYJ_cjs.internalNodes; }
|
|
65
67
|
});
|
|
66
68
|
Object.defineProperty(exports, "isOperation", {
|
|
67
69
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkSAOBPYYJ_cjs.isOperation; }
|
|
69
71
|
});
|
|
70
72
|
Object.defineProperty(exports, "isTier1Workflow", {
|
|
71
73
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkSAOBPYYJ_cjs.isTier1Workflow; }
|
|
73
75
|
});
|
|
74
76
|
Object.defineProperty(exports, "nodes", {
|
|
75
77
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkSAOBPYYJ_cjs.nodes; }
|
|
77
79
|
});
|
|
78
80
|
Object.defineProperty(exports, "op", {
|
|
79
81
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkSAOBPYYJ_cjs.op; }
|
|
81
83
|
});
|
|
82
84
|
Object.defineProperty(exports, "parseLayoutSidecar", {
|
|
83
85
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkSAOBPYYJ_cjs.parseLayoutSidecar; }
|
|
85
87
|
});
|
|
86
88
|
Object.defineProperty(exports, "toIR", {
|
|
87
89
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkSAOBPYYJ_cjs.toIR; }
|
|
89
91
|
});
|
|
90
92
|
Object.defineProperty(exports, "trigger", {
|
|
91
93
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkSAOBPYYJ_cjs.trigger; }
|
|
93
95
|
});
|
|
94
96
|
Object.defineProperty(exports, "triggers", {
|
|
95
97
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkSAOBPYYJ_cjs.triggers; }
|
|
97
99
|
});
|
|
98
100
|
Object.defineProperty(exports, "BuilderError", {
|
|
99
101
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkGVTZMA5C_cjs.BuilderError; }
|
|
101
103
|
});
|
|
102
104
|
Object.defineProperty(exports, "PREDICATE_OPERATORS", {
|
|
103
105
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkGVTZMA5C_cjs.PREDICATE_OPERATORS; }
|
|
105
107
|
});
|
|
106
108
|
Object.defineProperty(exports, "and", {
|
|
107
109
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkGVTZMA5C_cjs.and; }
|
|
109
111
|
});
|
|
110
112
|
Object.defineProperty(exports, "expr", {
|
|
111
113
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkGVTZMA5C_cjs.expr; }
|
|
113
115
|
});
|
|
114
116
|
Object.defineProperty(exports, "or", {
|
|
115
117
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkGVTZMA5C_cjs.or; }
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "ActivityFailure", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () { return chunkFMSW2HDF_cjs.ActivityFailure; }
|
|
123
|
+
});
|
|
124
|
+
Object.defineProperty(exports, "ApplicationError", {
|
|
125
|
+
enumerable: true,
|
|
126
|
+
get: function () { return chunkFMSW2HDF_cjs.ApplicationError; }
|
|
127
|
+
});
|
|
128
|
+
Object.defineProperty(exports, "CancelledFailure", {
|
|
129
|
+
enumerable: true,
|
|
130
|
+
get: function () { return chunkFMSW2HDF_cjs.CancelledFailure; }
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, "ChildRunFailure", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () { return chunkFMSW2HDF_cjs.ChildRunFailure; }
|
|
135
|
+
});
|
|
136
|
+
Object.defineProperty(exports, "DeterminismViolation", {
|
|
137
|
+
enumerable: true,
|
|
138
|
+
get: function () { return chunkFMSW2HDF_cjs.DeterminismViolation; }
|
|
139
|
+
});
|
|
140
|
+
Object.defineProperty(exports, "HistoryLimitExceeded", {
|
|
141
|
+
enumerable: true,
|
|
142
|
+
get: function () { return chunkFMSW2HDF_cjs.HistoryLimitExceeded; }
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "PhaseCFeatureError", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () { return chunkFMSW2HDF_cjs.PhaseCFeatureError; }
|
|
147
|
+
});
|
|
148
|
+
Object.defineProperty(exports, "ServerFailure", {
|
|
149
|
+
enumerable: true,
|
|
150
|
+
get: function () { return chunkFMSW2HDF_cjs.ServerFailure; }
|
|
151
|
+
});
|
|
152
|
+
Object.defineProperty(exports, "TerminatedFailure", {
|
|
153
|
+
enumerable: true,
|
|
154
|
+
get: function () { return chunkFMSW2HDF_cjs.TerminatedFailure; }
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "TimeoutFailure", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () { return chunkFMSW2HDF_cjs.TimeoutFailure; }
|
|
159
|
+
});
|
|
160
|
+
Object.defineProperty(exports, "WorkflowFailure", {
|
|
161
|
+
enumerable: true,
|
|
162
|
+
get: function () { return chunkFMSW2HDF_cjs.WorkflowFailure; }
|
|
163
|
+
});
|
|
164
|
+
Object.defineProperty(exports, "defineQuery", {
|
|
165
|
+
enumerable: true,
|
|
166
|
+
get: function () { return chunkFMSW2HDF_cjs.defineQuery; }
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(exports, "defineSignal", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () { return chunkFMSW2HDF_cjs.defineSignal; }
|
|
171
|
+
});
|
|
172
|
+
Object.defineProperty(exports, "defineUpdate", {
|
|
173
|
+
enumerable: true,
|
|
174
|
+
get: function () { return chunkFMSW2HDF_cjs.defineUpdate; }
|
|
175
|
+
});
|
|
176
|
+
Object.defineProperty(exports, "errorToFailure", {
|
|
177
|
+
enumerable: true,
|
|
178
|
+
get: function () { return chunkFMSW2HDF_cjs.errorToFailure; }
|
|
179
|
+
});
|
|
180
|
+
Object.defineProperty(exports, "failureToError", {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function () { return chunkFMSW2HDF_cjs.failureToError; }
|
|
183
|
+
});
|
|
184
|
+
Object.defineProperty(exports, "isCancellation", {
|
|
185
|
+
enumerable: true,
|
|
186
|
+
get: function () { return chunkFMSW2HDF_cjs.isCancellation; }
|
|
187
|
+
});
|
|
188
|
+
Object.defineProperty(exports, "toMs", {
|
|
189
|
+
enumerable: true,
|
|
190
|
+
get: function () { return chunkFMSW2HDF_cjs.toMs; }
|
|
191
|
+
});
|
|
192
|
+
Object.defineProperty(exports, "DURABLE_MARKER", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function () { return chunkDHTLALBL_cjs.DURABLE_MARKER; }
|
|
195
|
+
});
|
|
196
|
+
Object.defineProperty(exports, "SDK_VERSION", {
|
|
197
|
+
enumerable: true,
|
|
198
|
+
get: function () { return chunkDHTLALBL_cjs.SDK_VERSION; }
|
|
199
|
+
});
|
|
200
|
+
Object.defineProperty(exports, "interfaceOf", {
|
|
201
|
+
enumerable: true,
|
|
202
|
+
get: function () { return chunkDHTLALBL_cjs.interfaceOf; }
|
|
203
|
+
});
|
|
204
|
+
Object.defineProperty(exports, "isDurableWorkflow", {
|
|
205
|
+
enumerable: true,
|
|
206
|
+
get: function () { return chunkDHTLALBL_cjs.isDurableWorkflow; }
|
|
207
|
+
});
|
|
208
|
+
Object.defineProperty(exports, "jsonSchemaOf", {
|
|
209
|
+
enumerable: true,
|
|
210
|
+
get: function () { return chunkDHTLALBL_cjs.jsonSchemaOf; }
|
|
211
|
+
});
|
|
212
|
+
Object.defineProperty(exports, "workflow", {
|
|
213
|
+
enumerable: true,
|
|
214
|
+
get: function () { return chunkDHTLALBL_cjs.workflow; }
|
|
117
215
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { T as Tier1Recording } from './
|
|
2
|
-
export { A as AfterInput, a as AnyRef, b as ApprovalRef, c as ArgValue, d as ArgsOf,
|
|
3
|
-
export {
|
|
1
|
+
import { T as Tier1Recording } from './workflow-FXUkpIBc.cjs';
|
|
2
|
+
export { A as AfterInput, a as AnyRef, b as ApprovalRef, c as ArgValue, d as ArgsOf, B as BuilderError, C as CodeWorkflowOptions, e as CompareRef, f as ConditionGroup, g as ConditionRule, D as DurableRef, E as EdgeOptions, h as EdgeSource, i as EdgeSpec, H as HandleRef, I as IfOptions, j as IfRef, L as LoopOptions, k as LoopRef, M as MergeOptions, N as NodeOptions, l as NodeRef, m as NoteOptions, O as OnErrorOption, n as OutputRef, P as PREDICATE_OPERATORS, o as Predicate, p as PredicateMethods, R as RECORDING_FORMAT, q as RECORDING_FORMAT_VERSION, r as RecordedNode, s as RecordedNote, t as RuleValue, S as SignalWaitRef, u as SubworkflowOptions, v as SwitchOptions, w as SwitchRef, x as Tier1Workflow, V as ValidateRef, W as WaitForSignalOptions, y as WorkflowBuilder, z as WorkflowOptions, F as and, G as defaultEdgeId, J as defineWorkflow, K as edge, Q as expr, U as isTier1Workflow, X as or } from './workflow-FXUkpIBc.cjs';
|
|
3
|
+
export { C as CancellationScope, a as CancellationScopeFunction, b as CancellationScopeOptions, c as ChildHandle, d as ChildOptions, e as ChildTarget, f as ContinueAsNewOptions, D as DURABLE_MARKER, g as DefinitionOptions, h as DurableWorkflow, i as DurableWorkflowOptions, j as Duration, E as ExternalRunHandle, F as FileRef, O as Operation, Q as QueryDefinition, R as RunOptions, S as Saga, k as SchemaLike, l as SignalDefinition, T as TriggerOperation, m as TriggerSpec, U as UpdateDefinition, W as WorkflowContext, n as WorkflowInfo, o as WorkflowLogger, p as defineQuery, q as defineSignal, r as defineUpdate, s as interfaceOf, t as internalNodes, u as isDurableWorkflow, v as isOperation, w as jsonSchemaOf, x as nodes, y as op, z as toMs, A as trigger, B as triggers, G as workflow } from './workflow-J-yYixny.cjs';
|
|
4
|
+
export { A as AssembleOptions, C as ConnectionResolver, L as LAYOUT_FORMAT, a as LAYOUT_FORMAT_VERSION, b as LayoutSidecar, U as UnresolvedConnectionsError, c as assembleRecording, p as parseLayoutSidecar, t as toIR } from './assemble-BLqQ8lSu.cjs';
|
|
5
|
+
import { W as WorkflowInterface, J as JsonObject, E as ErrorType, a as Json } from './types-BGoPzgcl.cjs';
|
|
6
|
+
export { b as WorkflowDefinition } from './types-BGoPzgcl.cjs';
|
|
7
|
+
import { F as Failure } from './types-CpBBjaGX.cjs';
|
|
8
|
+
export { P as ParentClosePolicy, R as RetryPolicy } from './types-CpBBjaGX.cjs';
|
|
4
9
|
|
|
5
10
|
/**
|
|
6
|
-
* Runs inside the evaluation isolate at the end of a
|
|
7
|
-
* recordings of every exported `defineWorkflow` value
|
|
8
|
-
*
|
|
11
|
+
* Runs inside the evaluation isolate at the end of a bundle: gathers the
|
|
12
|
+
* recordings of every exported `defineWorkflow` value and the declarations of
|
|
13
|
+
* every exported tier-2 `workflow()` as one JSON string, the only thing that
|
|
14
|
+
* leaves the isolate.
|
|
9
15
|
*/
|
|
10
16
|
|
|
11
17
|
declare const COLLECTION_FORMAT = "fluidgrids.tier1-collection";
|
|
@@ -14,14 +20,136 @@ interface CollectedWorkflow {
|
|
|
14
20
|
exportName: string;
|
|
15
21
|
recording: Tier1Recording;
|
|
16
22
|
}
|
|
23
|
+
/** The trigger a standalone tier-2 workflow declares. */
|
|
24
|
+
interface CollectedTrigger {
|
|
25
|
+
nodeType: string;
|
|
26
|
+
version?: string;
|
|
27
|
+
operation?: string;
|
|
28
|
+
args?: JsonObject;
|
|
29
|
+
id?: string;
|
|
30
|
+
}
|
|
31
|
+
/** One exported tier-2 workflow (C-ABI `durable` entries of the collection). */
|
|
32
|
+
interface CollectedDurableWorkflow {
|
|
33
|
+
module: string;
|
|
34
|
+
exportName: string;
|
|
35
|
+
/** The workflow key it gets when standalone. */
|
|
36
|
+
name: string;
|
|
37
|
+
title?: string;
|
|
38
|
+
description?: string;
|
|
39
|
+
taskQueue: string;
|
|
40
|
+
interface: WorkflowInterface;
|
|
41
|
+
standalone?: boolean;
|
|
42
|
+
trigger?: CollectedTrigger;
|
|
43
|
+
}
|
|
17
44
|
interface Tier1Collection {
|
|
18
45
|
format: typeof COLLECTION_FORMAT;
|
|
19
46
|
workflows: CollectedWorkflow[];
|
|
47
|
+
/** Tier-2 functions; absent when the bundle has none. */
|
|
48
|
+
durable?: CollectedDurableWorkflow[];
|
|
20
49
|
}
|
|
21
|
-
/** Collect the
|
|
50
|
+
/** Collect the workflows exported by each module, as JSON. */
|
|
22
51
|
declare function collectWorkflowExports(modules: ReadonlyArray<readonly [string, Record<string, unknown>]>): string;
|
|
23
52
|
|
|
53
|
+
/**
|
|
54
|
+
* Failure classes of tier-2 workflow code (spec 02 §4, 11 §2.25).
|
|
55
|
+
*
|
|
56
|
+
* The rule a workflow task applies to a throw (11 §2.37): one of these classes
|
|
57
|
+
* (or a class listed in `failureErrorTypes`) fails the run; anything else,
|
|
58
|
+
* such as a `TypeError`, fails only the workflow task, which is retried until a
|
|
59
|
+
* hotfix cures it. `DeterminismViolation` and `HistoryLimitExceeded` always
|
|
60
|
+
* fail the task.
|
|
61
|
+
*
|
|
62
|
+
* Pure JavaScript: the classes run inside the isolate.
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
/** Base class of every failure that crosses the history boundary. */
|
|
66
|
+
declare class WorkflowFailure extends Error {
|
|
67
|
+
/** The shared error type the engine classifies this failure as. */
|
|
68
|
+
readonly errorType: ErrorType;
|
|
69
|
+
constructor(message: string, errorType: ErrorType, options?: {
|
|
70
|
+
cause?: unknown;
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
interface ApplicationErrorOptions {
|
|
74
|
+
/** Free-form type (Temporal's model). An `ErrorType` value also sets `errorType`. */
|
|
75
|
+
type?: string;
|
|
76
|
+
/** The shared error type; default from `type` when it is one, else `UNKNOWN`. */
|
|
77
|
+
errorType?: ErrorType;
|
|
78
|
+
nonRetryable?: boolean;
|
|
79
|
+
details?: Json;
|
|
80
|
+
/** Milliseconds or a duration string; overrides the next retry's delay only. */
|
|
81
|
+
nextRetryDelay?: number;
|
|
82
|
+
category?: 'BENIGN';
|
|
83
|
+
cause?: unknown;
|
|
84
|
+
}
|
|
85
|
+
/** An application failure: raised by activities or workflow code. Fails the run when thrown from a workflow. */
|
|
86
|
+
declare class ApplicationError extends WorkflowFailure {
|
|
87
|
+
readonly type: string | undefined;
|
|
88
|
+
readonly nonRetryable: boolean;
|
|
89
|
+
readonly details: Json | undefined;
|
|
90
|
+
readonly nextRetryDelayMs: number | undefined;
|
|
91
|
+
readonly category: 'BENIGN' | undefined;
|
|
92
|
+
constructor(message: string, options?: ApplicationErrorOptions);
|
|
93
|
+
}
|
|
94
|
+
/** The final failure of an activity, after its retries. `cause` is the last attempt's failure. */
|
|
95
|
+
declare class ActivityFailure extends WorkflowFailure {
|
|
96
|
+
readonly activityId: string;
|
|
97
|
+
readonly nodeType: string;
|
|
98
|
+
readonly operation: string;
|
|
99
|
+
constructor(message: string, activityId: string, nodeType: string, operation: string, cause: Error);
|
|
100
|
+
}
|
|
101
|
+
/** A child run failed, timed out, was cancelled or terminated; `cause` says which. */
|
|
102
|
+
declare class ChildRunFailure extends WorkflowFailure {
|
|
103
|
+
readonly childId: string;
|
|
104
|
+
readonly childRunId: string | undefined;
|
|
105
|
+
constructor(message: string, childId: string, childRunId: string | undefined, cause: Error);
|
|
106
|
+
}
|
|
107
|
+
/** A child or external run was terminated. */
|
|
108
|
+
declare class TerminatedFailure extends WorkflowFailure {
|
|
109
|
+
constructor(message?: string);
|
|
110
|
+
}
|
|
111
|
+
/** An engine-originated failure: quota, worker unavailable, history cap, codec error. */
|
|
112
|
+
declare class ServerFailure extends WorkflowFailure {
|
|
113
|
+
readonly nonRetryable: boolean;
|
|
114
|
+
constructor(message: string, nonRetryable?: boolean, errorType?: ErrorType);
|
|
115
|
+
}
|
|
116
|
+
/** Cancellation reached this code. */
|
|
117
|
+
declare class CancelledFailure extends WorkflowFailure {
|
|
118
|
+
constructor(message?: string);
|
|
119
|
+
}
|
|
120
|
+
/** A timer-bounded wait, an activity or a child timed out. */
|
|
121
|
+
declare class TimeoutFailure extends WorkflowFailure {
|
|
122
|
+
readonly timeoutType: string;
|
|
123
|
+
constructor(message: string, timeoutType: string);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Replay mismatch or a forbidden API in workflow code. Fails the workflow task
|
|
127
|
+
* (cause `NON_DETERMINISM`), never the run.
|
|
128
|
+
*/
|
|
129
|
+
declare class DeterminismViolation extends Error {
|
|
130
|
+
constructor(message: string);
|
|
131
|
+
}
|
|
132
|
+
/** Thrown from the next command once the history passes 95 % of its cap; continue as new. */
|
|
133
|
+
declare class HistoryLimitExceeded extends Error {
|
|
134
|
+
constructor(message: string);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* A Phase C feature (user activities, custom queries and updates, search
|
|
138
|
+
* attributes, sinks, interceptors) used in Phase B. Fails the workflow task
|
|
139
|
+
* with `UNSUPPORTED_COMMAND`; `validate` reports `durable.phaseC` at push time.
|
|
140
|
+
*/
|
|
141
|
+
declare class PhaseCFeatureError extends Error {
|
|
142
|
+
readonly code = "durable.phaseC";
|
|
143
|
+
constructor(feature: string);
|
|
144
|
+
}
|
|
145
|
+
/** True when `error` is (or wraps) a cancellation. */
|
|
146
|
+
declare function isCancellation(error: unknown): boolean;
|
|
147
|
+
/** The stored form of an error (11 §2.25). */
|
|
148
|
+
declare function errorToFailure(error: unknown, source?: string, depth?: number): Failure;
|
|
149
|
+
/** The error class a stored failure stands for, with its cause chain. */
|
|
150
|
+
declare function failureToError(failure: Failure, depth?: number): WorkflowFailure;
|
|
151
|
+
|
|
24
152
|
/** The version of @fluidgrids/workflows. */
|
|
25
|
-
declare const SDK_VERSION = "2026.
|
|
153
|
+
declare const SDK_VERSION = "2026.1028.2";
|
|
26
154
|
|
|
27
|
-
export { COLLECTION_FORMAT, type CollectedWorkflow, SDK_VERSION, type Tier1Collection, Tier1Recording, collectWorkflowExports };
|
|
155
|
+
export { ActivityFailure, ApplicationError, type ApplicationErrorOptions, COLLECTION_FORMAT, CancelledFailure, ChildRunFailure, type CollectedDurableWorkflow, type CollectedTrigger, type CollectedWorkflow, DeterminismViolation, Failure, HistoryLimitExceeded, Json, JsonObject, PhaseCFeatureError, SDK_VERSION, ServerFailure, TerminatedFailure, type Tier1Collection, Tier1Recording, TimeoutFailure, WorkflowFailure, collectWorkflowExports, errorToFailure, failureToError, isCancellation };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { T as Tier1Recording } from './
|
|
2
|
-
export { A as AfterInput, a as AnyRef, b as ApprovalRef, c as ArgValue, d as ArgsOf,
|
|
3
|
-
export {
|
|
1
|
+
import { T as Tier1Recording } from './workflow-Bpr3vnA_.js';
|
|
2
|
+
export { A as AfterInput, a as AnyRef, b as ApprovalRef, c as ArgValue, d as ArgsOf, B as BuilderError, C as CodeWorkflowOptions, e as CompareRef, f as ConditionGroup, g as ConditionRule, D as DurableRef, E as EdgeOptions, h as EdgeSource, i as EdgeSpec, H as HandleRef, I as IfOptions, j as IfRef, L as LoopOptions, k as LoopRef, M as MergeOptions, N as NodeOptions, l as NodeRef, m as NoteOptions, O as OnErrorOption, n as OutputRef, P as PREDICATE_OPERATORS, o as Predicate, p as PredicateMethods, R as RECORDING_FORMAT, q as RECORDING_FORMAT_VERSION, r as RecordedNode, s as RecordedNote, t as RuleValue, S as SignalWaitRef, u as SubworkflowOptions, v as SwitchOptions, w as SwitchRef, x as Tier1Workflow, V as ValidateRef, W as WaitForSignalOptions, y as WorkflowBuilder, z as WorkflowOptions, F as and, G as defaultEdgeId, J as defineWorkflow, K as edge, Q as expr, U as isTier1Workflow, X as or } from './workflow-Bpr3vnA_.js';
|
|
3
|
+
export { C as CancellationScope, a as CancellationScopeFunction, b as CancellationScopeOptions, c as ChildHandle, d as ChildOptions, e as ChildTarget, f as ContinueAsNewOptions, D as DURABLE_MARKER, g as DefinitionOptions, h as DurableWorkflow, i as DurableWorkflowOptions, j as Duration, E as ExternalRunHandle, F as FileRef, O as Operation, Q as QueryDefinition, R as RunOptions, S as Saga, k as SchemaLike, l as SignalDefinition, T as TriggerOperation, m as TriggerSpec, U as UpdateDefinition, W as WorkflowContext, n as WorkflowInfo, o as WorkflowLogger, p as defineQuery, q as defineSignal, r as defineUpdate, s as interfaceOf, t as internalNodes, u as isDurableWorkflow, v as isOperation, w as jsonSchemaOf, x as nodes, y as op, z as toMs, A as trigger, B as triggers, G as workflow } from './workflow-C2a05WUJ.js';
|
|
4
|
+
export { A as AssembleOptions, C as ConnectionResolver, L as LAYOUT_FORMAT, a as LAYOUT_FORMAT_VERSION, b as LayoutSidecar, U as UnresolvedConnectionsError, c as assembleRecording, p as parseLayoutSidecar, t as toIR } from './assemble-DWgaXHd-.js';
|
|
5
|
+
import { W as WorkflowInterface, J as JsonObject, E as ErrorType, a as Json } from './types-BGoPzgcl.js';
|
|
6
|
+
export { b as WorkflowDefinition } from './types-BGoPzgcl.js';
|
|
7
|
+
import { F as Failure } from './types-DV-HX_Gt.js';
|
|
8
|
+
export { P as ParentClosePolicy, R as RetryPolicy } from './types-DV-HX_Gt.js';
|
|
4
9
|
|
|
5
10
|
/**
|
|
6
|
-
* Runs inside the evaluation isolate at the end of a
|
|
7
|
-
* recordings of every exported `defineWorkflow` value
|
|
8
|
-
*
|
|
11
|
+
* Runs inside the evaluation isolate at the end of a bundle: gathers the
|
|
12
|
+
* recordings of every exported `defineWorkflow` value and the declarations of
|
|
13
|
+
* every exported tier-2 `workflow()` as one JSON string, the only thing that
|
|
14
|
+
* leaves the isolate.
|
|
9
15
|
*/
|
|
10
16
|
|
|
11
17
|
declare const COLLECTION_FORMAT = "fluidgrids.tier1-collection";
|
|
@@ -14,14 +20,136 @@ interface CollectedWorkflow {
|
|
|
14
20
|
exportName: string;
|
|
15
21
|
recording: Tier1Recording;
|
|
16
22
|
}
|
|
23
|
+
/** The trigger a standalone tier-2 workflow declares. */
|
|
24
|
+
interface CollectedTrigger {
|
|
25
|
+
nodeType: string;
|
|
26
|
+
version?: string;
|
|
27
|
+
operation?: string;
|
|
28
|
+
args?: JsonObject;
|
|
29
|
+
id?: string;
|
|
30
|
+
}
|
|
31
|
+
/** One exported tier-2 workflow (C-ABI `durable` entries of the collection). */
|
|
32
|
+
interface CollectedDurableWorkflow {
|
|
33
|
+
module: string;
|
|
34
|
+
exportName: string;
|
|
35
|
+
/** The workflow key it gets when standalone. */
|
|
36
|
+
name: string;
|
|
37
|
+
title?: string;
|
|
38
|
+
description?: string;
|
|
39
|
+
taskQueue: string;
|
|
40
|
+
interface: WorkflowInterface;
|
|
41
|
+
standalone?: boolean;
|
|
42
|
+
trigger?: CollectedTrigger;
|
|
43
|
+
}
|
|
17
44
|
interface Tier1Collection {
|
|
18
45
|
format: typeof COLLECTION_FORMAT;
|
|
19
46
|
workflows: CollectedWorkflow[];
|
|
47
|
+
/** Tier-2 functions; absent when the bundle has none. */
|
|
48
|
+
durable?: CollectedDurableWorkflow[];
|
|
20
49
|
}
|
|
21
|
-
/** Collect the
|
|
50
|
+
/** Collect the workflows exported by each module, as JSON. */
|
|
22
51
|
declare function collectWorkflowExports(modules: ReadonlyArray<readonly [string, Record<string, unknown>]>): string;
|
|
23
52
|
|
|
53
|
+
/**
|
|
54
|
+
* Failure classes of tier-2 workflow code (spec 02 §4, 11 §2.25).
|
|
55
|
+
*
|
|
56
|
+
* The rule a workflow task applies to a throw (11 §2.37): one of these classes
|
|
57
|
+
* (or a class listed in `failureErrorTypes`) fails the run; anything else,
|
|
58
|
+
* such as a `TypeError`, fails only the workflow task, which is retried until a
|
|
59
|
+
* hotfix cures it. `DeterminismViolation` and `HistoryLimitExceeded` always
|
|
60
|
+
* fail the task.
|
|
61
|
+
*
|
|
62
|
+
* Pure JavaScript: the classes run inside the isolate.
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
/** Base class of every failure that crosses the history boundary. */
|
|
66
|
+
declare class WorkflowFailure extends Error {
|
|
67
|
+
/** The shared error type the engine classifies this failure as. */
|
|
68
|
+
readonly errorType: ErrorType;
|
|
69
|
+
constructor(message: string, errorType: ErrorType, options?: {
|
|
70
|
+
cause?: unknown;
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
interface ApplicationErrorOptions {
|
|
74
|
+
/** Free-form type (Temporal's model). An `ErrorType` value also sets `errorType`. */
|
|
75
|
+
type?: string;
|
|
76
|
+
/** The shared error type; default from `type` when it is one, else `UNKNOWN`. */
|
|
77
|
+
errorType?: ErrorType;
|
|
78
|
+
nonRetryable?: boolean;
|
|
79
|
+
details?: Json;
|
|
80
|
+
/** Milliseconds or a duration string; overrides the next retry's delay only. */
|
|
81
|
+
nextRetryDelay?: number;
|
|
82
|
+
category?: 'BENIGN';
|
|
83
|
+
cause?: unknown;
|
|
84
|
+
}
|
|
85
|
+
/** An application failure: raised by activities or workflow code. Fails the run when thrown from a workflow. */
|
|
86
|
+
declare class ApplicationError extends WorkflowFailure {
|
|
87
|
+
readonly type: string | undefined;
|
|
88
|
+
readonly nonRetryable: boolean;
|
|
89
|
+
readonly details: Json | undefined;
|
|
90
|
+
readonly nextRetryDelayMs: number | undefined;
|
|
91
|
+
readonly category: 'BENIGN' | undefined;
|
|
92
|
+
constructor(message: string, options?: ApplicationErrorOptions);
|
|
93
|
+
}
|
|
94
|
+
/** The final failure of an activity, after its retries. `cause` is the last attempt's failure. */
|
|
95
|
+
declare class ActivityFailure extends WorkflowFailure {
|
|
96
|
+
readonly activityId: string;
|
|
97
|
+
readonly nodeType: string;
|
|
98
|
+
readonly operation: string;
|
|
99
|
+
constructor(message: string, activityId: string, nodeType: string, operation: string, cause: Error);
|
|
100
|
+
}
|
|
101
|
+
/** A child run failed, timed out, was cancelled or terminated; `cause` says which. */
|
|
102
|
+
declare class ChildRunFailure extends WorkflowFailure {
|
|
103
|
+
readonly childId: string;
|
|
104
|
+
readonly childRunId: string | undefined;
|
|
105
|
+
constructor(message: string, childId: string, childRunId: string | undefined, cause: Error);
|
|
106
|
+
}
|
|
107
|
+
/** A child or external run was terminated. */
|
|
108
|
+
declare class TerminatedFailure extends WorkflowFailure {
|
|
109
|
+
constructor(message?: string);
|
|
110
|
+
}
|
|
111
|
+
/** An engine-originated failure: quota, worker unavailable, history cap, codec error. */
|
|
112
|
+
declare class ServerFailure extends WorkflowFailure {
|
|
113
|
+
readonly nonRetryable: boolean;
|
|
114
|
+
constructor(message: string, nonRetryable?: boolean, errorType?: ErrorType);
|
|
115
|
+
}
|
|
116
|
+
/** Cancellation reached this code. */
|
|
117
|
+
declare class CancelledFailure extends WorkflowFailure {
|
|
118
|
+
constructor(message?: string);
|
|
119
|
+
}
|
|
120
|
+
/** A timer-bounded wait, an activity or a child timed out. */
|
|
121
|
+
declare class TimeoutFailure extends WorkflowFailure {
|
|
122
|
+
readonly timeoutType: string;
|
|
123
|
+
constructor(message: string, timeoutType: string);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Replay mismatch or a forbidden API in workflow code. Fails the workflow task
|
|
127
|
+
* (cause `NON_DETERMINISM`), never the run.
|
|
128
|
+
*/
|
|
129
|
+
declare class DeterminismViolation extends Error {
|
|
130
|
+
constructor(message: string);
|
|
131
|
+
}
|
|
132
|
+
/** Thrown from the next command once the history passes 95 % of its cap; continue as new. */
|
|
133
|
+
declare class HistoryLimitExceeded extends Error {
|
|
134
|
+
constructor(message: string);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* A Phase C feature (user activities, custom queries and updates, search
|
|
138
|
+
* attributes, sinks, interceptors) used in Phase B. Fails the workflow task
|
|
139
|
+
* with `UNSUPPORTED_COMMAND`; `validate` reports `durable.phaseC` at push time.
|
|
140
|
+
*/
|
|
141
|
+
declare class PhaseCFeatureError extends Error {
|
|
142
|
+
readonly code = "durable.phaseC";
|
|
143
|
+
constructor(feature: string);
|
|
144
|
+
}
|
|
145
|
+
/** True when `error` is (or wraps) a cancellation. */
|
|
146
|
+
declare function isCancellation(error: unknown): boolean;
|
|
147
|
+
/** The stored form of an error (11 §2.25). */
|
|
148
|
+
declare function errorToFailure(error: unknown, source?: string, depth?: number): Failure;
|
|
149
|
+
/** The error class a stored failure stands for, with its cause chain. */
|
|
150
|
+
declare function failureToError(failure: Failure, depth?: number): WorkflowFailure;
|
|
151
|
+
|
|
24
152
|
/** The version of @fluidgrids/workflows. */
|
|
25
|
-
declare const SDK_VERSION = "2026.
|
|
153
|
+
declare const SDK_VERSION = "2026.1028.2";
|
|
26
154
|
|
|
27
|
-
export { COLLECTION_FORMAT, type CollectedWorkflow, SDK_VERSION, type Tier1Collection, Tier1Recording, collectWorkflowExports };
|
|
155
|
+
export { ActivityFailure, ApplicationError, type ApplicationErrorOptions, COLLECTION_FORMAT, CancelledFailure, ChildRunFailure, type CollectedDurableWorkflow, type CollectedTrigger, type CollectedWorkflow, DeterminismViolation, Failure, HistoryLimitExceeded, Json, JsonObject, PhaseCFeatureError, SDK_VERSION, ServerFailure, TerminatedFailure, type Tier1Collection, Tier1Recording, TimeoutFailure, WorkflowFailure, collectWorkflowExports, errorToFailure, failureToError, isCancellation };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
export { COLLECTION_FORMAT,
|
|
1
|
+
export { COLLECTION_FORMAT, collectWorkflowExports } from './chunk-XKJA7KX3.js';
|
|
2
|
+
export { LAYOUT_FORMAT, LAYOUT_FORMAT_VERSION, RECORDING_FORMAT, RECORDING_FORMAT_VERSION, UnresolvedConnectionsError, WorkflowBuilder, assembleRecording, defaultEdgeId, defineWorkflow, edge, internalNodes, isOperation, isTier1Workflow, nodes, op, parseLayoutSidecar, toIR, trigger, triggers } from './chunk-HWJZVOG7.js';
|
|
2
3
|
import './chunk-5LUIDMF4.js';
|
|
3
|
-
export { BuilderError, PREDICATE_OPERATORS, and, expr, or } from './chunk-
|
|
4
|
-
import './chunk-
|
|
4
|
+
export { BuilderError, PREDICATE_OPERATORS, and, expr, or } from './chunk-JZ4TOOLN.js';
|
|
5
|
+
import './chunk-7AAZGVKD.js';
|
|
6
|
+
import './chunk-PMCM2OH4.js';
|
|
7
|
+
export { ActivityFailure, ApplicationError, CancelledFailure, ChildRunFailure, DeterminismViolation, HistoryLimitExceeded, PhaseCFeatureError, ServerFailure, TerminatedFailure, TimeoutFailure, WorkflowFailure, defineQuery, defineSignal, defineUpdate, errorToFailure, failureToError, isCancellation, toMs } from './chunk-C5OLWZ42.js';
|
|
8
|
+
import './chunk-LNUQE6D6.js';
|
|
9
|
+
export { DURABLE_MARKER, SDK_VERSION, interfaceOf, isDurableWorkflow, jsonSchemaOf, workflow } from './chunk-N23SKIG4.js';
|