@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.
Files changed (166) hide show
  1. package/README.md +144 -13
  2. package/dist/activation-BBh1p82z.d.cts +57 -0
  3. package/dist/activation-DnhG7SmF.d.ts +57 -0
  4. package/dist/assemble-BLqQ8lSu.d.cts +39 -0
  5. package/dist/assemble-DWgaXHd-.d.ts +39 -0
  6. package/dist/chunk-2J6TF7YI.cjs +86 -0
  7. package/dist/chunk-4LYSEANA.js +199 -0
  8. package/dist/chunk-623FVQSN.cjs +251 -0
  9. package/dist/{chunk-W32BSO3M.js → chunk-6FSHT5IL.js} +2 -2
  10. package/dist/{chunk-E3APHA6O.cjs → chunk-7AAZGVKD.js} +1 -64
  11. package/dist/chunk-ABFZWYHT.js +612 -0
  12. package/dist/{chunk-6U446SKY.js → chunk-BD7ZPG53.js} +2 -2
  13. package/dist/chunk-BO6OVILK.js +79 -0
  14. package/dist/chunk-C5OLWZ42.js +245 -0
  15. package/dist/{chunk-OSPTJCDI.cjs → chunk-CPDK3K5N.cjs} +6 -6
  16. package/dist/chunk-DHTLALBL.cjs +80 -0
  17. package/dist/chunk-DJYMDLV5.js +227 -0
  18. package/dist/{chunk-IHKXLG6I.js → chunk-E2VK7J2C.js} +1 -1
  19. package/dist/{chunk-3M34AUIY.cjs → chunk-FEW3JBYA.cjs} +3 -3
  20. package/dist/chunk-FMSW2HDF.cjs +267 -0
  21. package/dist/chunk-FR7KYWRO.cjs +41 -0
  22. package/dist/{chunk-7YR7DI7B.cjs → chunk-GBQ33SIZ.cjs} +44 -44
  23. package/dist/{chunk-6AIAC2FP.cjs → chunk-GVTZMA5C.cjs} +4 -4
  24. package/dist/{chunk-EEAIM35V.js → chunk-HWJZVOG7.js} +64 -23
  25. package/dist/chunk-I5LR3D2K.js +869 -0
  26. package/dist/chunk-IISBRUWJ.js +13 -0
  27. package/dist/chunk-JD2VQIDZ.cjs +15 -0
  28. package/dist/{chunk-UB2BHU2M.js → chunk-JZ4TOOLN.js} +1 -1
  29. package/dist/chunk-L24YIZY7.cjs +207 -0
  30. package/dist/chunk-LNUQE6D6.js +39 -0
  31. package/dist/chunk-M4BBAERY.cjs +1635 -0
  32. package/dist/chunk-N23SKIG4.js +73 -0
  33. package/dist/{chunk-TWOYB4Y7.cjs → chunk-NEIUQASE.cjs} +13 -13
  34. package/dist/chunk-P6TA5EZT.cjs +634 -0
  35. package/dist/chunk-PMCM2OH4.js +46 -0
  36. package/dist/chunk-PZCVF76Q.cjs +868 -0
  37. package/dist/{chunk-6BEW4QD6.js → chunk-QAN5MZEM.js} +1 -1
  38. package/dist/{chunk-CSYBNN3V.cjs → chunk-QKZL3ONM.cjs} +2 -2
  39. package/dist/chunk-QQ6ULXHI.cjs +885 -0
  40. package/dist/chunk-SAENRNBJ.cjs +52 -0
  41. package/dist/{chunk-TQF7MYEN.cjs → chunk-SAOBPYYJ.cjs} +134 -96
  42. package/dist/{chunk-XBIID5DY.js → chunk-SMCANK3F.js} +5 -4
  43. package/dist/{chunk-UWQWD7BP.cjs → chunk-SX2PNKKT.cjs} +18 -17
  44. package/dist/{chunk-UJNHTS6D.js → chunk-TBDXTV22.cjs} +8 -45
  45. package/dist/chunk-UK3WM7YZ.cjs +75 -0
  46. package/dist/chunk-VOKMAAJP.js +848 -0
  47. package/dist/chunk-VRHHBPT6.js +1622 -0
  48. package/dist/{chunk-5AW745OG.js → chunk-XHXIDVEC.js} +1 -1
  49. package/dist/chunk-XKJA7KX3.js +72 -0
  50. package/dist/chunk-Z2Y65YOY.cjs +7 -0
  51. package/dist/codegen/index.cjs +9 -7
  52. package/dist/codegen/index.d.cts +2 -2
  53. package/dist/codegen/index.d.ts +2 -2
  54. package/dist/codegen/index.js +6 -5
  55. package/dist/file-BOoHZgoQ.d.cts +1557 -0
  56. package/dist/file-yuPCFU5b.d.ts +1557 -0
  57. package/dist/history/index.cjs +287 -0
  58. package/dist/history/index.d.cts +157 -0
  59. package/dist/history/index.d.ts +157 -0
  60. package/dist/history/index.js +5 -0
  61. package/dist/index.cjs +134 -36
  62. package/dist/index.d.cts +137 -9
  63. package/dist/index.d.ts +137 -9
  64. package/dist/index.js +8 -3
  65. package/dist/ir/index.cjs +152 -158
  66. package/dist/ir/index.d.cts +14 -4
  67. package/dist/ir/index.d.ts +14 -4
  68. package/dist/ir/index.js +41 -50
  69. package/dist/lower-BzmUz0sq.d.cts +129 -0
  70. package/dist/lower-_-iT4HYs.d.ts +129 -0
  71. package/dist/lower-types-DQNBfWQn.d.cts +37 -0
  72. package/dist/lower-types-DQNBfWQn.d.ts +37 -0
  73. package/dist/{manifest-Duf-gHdO.d.cts → manifest-0OLw0i7k.d.cts} +1 -1
  74. package/dist/{manifest-Bp9ZJlav.d.ts → manifest-C8N6HDYl.d.ts} +1 -1
  75. package/dist/node-evaluator-4MSDKWOG.cjs +22 -0
  76. package/dist/node-evaluator-SX4LEYQC.js +12 -0
  77. package/dist/quickjs/index.cjs +236 -12
  78. package/dist/quickjs/index.d.cts +46 -5
  79. package/dist/quickjs/index.d.ts +46 -5
  80. package/dist/quickjs/index.js +230 -9
  81. package/dist/roundtrip/index.cjs +333 -131
  82. package/dist/roundtrip/index.d.cts +39 -7
  83. package/dist/roundtrip/index.d.ts +39 -7
  84. package/dist/roundtrip/index.js +185 -13
  85. package/dist/runtime/index.cjs +90 -0
  86. package/dist/runtime/index.d.cts +297 -0
  87. package/dist/runtime/index.d.ts +297 -0
  88. package/dist/runtime/index.js +8 -0
  89. package/dist/testing/index.cjs +1057 -0
  90. package/dist/testing/index.d.cts +305 -0
  91. package/dist/testing/index.d.ts +305 -0
  92. package/dist/testing/index.js +1037 -0
  93. package/dist/{types-Dr2Fn1Ax.d.ts → types-BGoPzgcl.d.cts} +1 -1
  94. package/dist/{types-Dr2Fn1Ax.d.cts → types-BGoPzgcl.d.ts} +1 -1
  95. package/dist/types-CpBBjaGX.d.cts +380 -0
  96. package/dist/types-DV-HX_Gt.d.ts +380 -0
  97. package/dist/{assemble-CrpUyd_3.d.ts → workflow-Bpr3vnA_.d.ts} +40 -160
  98. package/dist/workflow-C2a05WUJ.d.ts +444 -0
  99. package/dist/{assemble-DEf3znGD.d.cts → workflow-FXUkpIBc.d.cts} +40 -160
  100. package/dist/workflow-J-yYixny.d.cts +444 -0
  101. package/fixtures/README.md +128 -0
  102. package/fixtures/histories/activity-failure-fails-run.history.json +163 -0
  103. package/fixtures/histories/activity-retry-then-success.history.json +147 -0
  104. package/fixtures/histories/cancel-activity-abandon.history.json +126 -0
  105. package/fixtures/histories/cancel-activity-compensate.history.json +307 -0
  106. package/fixtures/histories/cancel-concurrent-non-cancellable.history.json +234 -0
  107. package/fixtures/histories/cancel-concurrent-scope-timeout.history.json +184 -0
  108. package/fixtures/histories/cancel-condition-after-cancel.history.json +200 -0
  109. package/fixtures/histories/cancel-during-timer.history.json +123 -0
  110. package/fixtures/histories/cancel-saga-compensations.history.json +325 -0
  111. package/fixtures/histories/cancel-scope-timeout.history.json +148 -0
  112. package/fixtures/histories/child-abandon-outlives-parent.history.json +191 -0
  113. package/fixtures/histories/child-cancel-default.history.json +234 -0
  114. package/fixtures/histories/child-cancel-request.history.json +206 -0
  115. package/fixtures/histories/child-durable-child-side.history.json +124 -0
  116. package/fixtures/histories/child-durable-result.history.json +163 -0
  117. package/fixtures/histories/child-failure-caught.history.json +166 -0
  118. package/fixtures/histories/child-graph-by-key.history.json +138 -0
  119. package/fixtures/histories/child-terminated-by-parent-close.history.json +85 -0
  120. package/fixtures/histories/continue-as-new-first-run.history.json +146 -0
  121. package/fixtures/histories/continue-as-new-history-limit.history.json +489 -0
  122. package/fixtures/histories/continue-as-new-last-run.history.json +147 -0
  123. package/fixtures/histories/continue-as-new-suggested.history.json +352 -0
  124. package/fixtures/histories/details-and-context.history.json +176 -0
  125. package/fixtures/histories/deterministic-values.history.json +128 -0
  126. package/fixtures/histories/engine-builtins.history.json +172 -0
  127. package/fixtures/histories/gather-activities.history.json +291 -0
  128. package/fixtures/histories/gather-all-settled.history.json +219 -0
  129. package/fixtures/histories/gather-mixed.history.json +281 -0
  130. package/fixtures/histories/input-during-running-task.history.json +111 -0
  131. package/fixtures/histories/nondeterminism-reordered.history.json +218 -0
  132. package/fixtures/histories/patched-deprecated.history.json +271 -0
  133. package/fixtures/histories/patched-new-run.history.json +270 -0
  134. package/fixtures/histories/patched-old-history.history.json +190 -0
  135. package/fixtures/histories/race-activity-wins.history.json +152 -0
  136. package/fixtures/histories/race-signal-beats-child.history.json +161 -0
  137. package/fixtures/histories/race-timeout-wins.history.json +118 -0
  138. package/fixtures/histories/side-effect-recorded.history.json +153 -0
  139. package/fixtures/histories/signal-buffered-at-start.history.json +157 -0
  140. package/fixtures/histories/signal-default-handler.history.json +187 -0
  141. package/fixtures/histories/signal-handler.history.json +191 -0
  142. package/fixtures/histories/signal-parent-child-side.history.json +132 -0
  143. package/fixtures/histories/signal-parent.history.json +202 -0
  144. package/fixtures/histories/signal-run-delivered.history.json +128 -0
  145. package/fixtures/histories/signal-run-undelivered.history.json +134 -0
  146. package/fixtures/histories/signal-wait.history.json +111 -0
  147. package/fixtures/histories/task-failure-code-error.history.json +137 -0
  148. package/fixtures/histories/task-failure-then-transient-attempt.history.json +140 -0
  149. package/fixtures/histories/timer-condition-met.history.json +201 -0
  150. package/fixtures/histories/timer-condition-timeout.history.json +118 -0
  151. package/fixtures/histories/timer-sleep-once.history.json +118 -0
  152. package/fixtures/histories/timer-sleep-sequence.history.json +210 -0
  153. package/fixtures/histories/update-accepted-completed.history.json +149 -0
  154. package/fixtures/histories/update-with-start-rejected-validation.history.json +91 -0
  155. package/package.json +44 -5
  156. package/schema/history-file.schema.json +2544 -0
  157. package/schema/ir-v2.schema.json +16 -0
  158. package/schema/run-event.schema.json +2374 -0
  159. package/schema/workflow-command.schema.json +1095 -0
  160. package/schema/workflow-task.schema.json +3560 -0
  161. package/dist/chunk-MBBKGD7K.js +0 -440
  162. package/dist/chunk-Y7NWR3WH.cjs +0 -450
  163. package/dist/lower-CXggJTIo.d.ts +0 -67
  164. package/dist/lower-DAzvsJCo.d.cts +0 -67
  165. package/dist/node-evaluator-CH3XCJND.cjs +0 -17
  166. 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 chunkTQF7MYEN_cjs = require('./chunk-TQF7MYEN.cjs');
3
+ var chunkUK3WM7YZ_cjs = require('./chunk-UK3WM7YZ.cjs');
4
+ var chunkSAOBPYYJ_cjs = require('./chunk-SAOBPYYJ.cjs');
4
5
  require('./chunk-G4UEPUGO.cjs');
5
- var chunk6AIAC2FP_cjs = require('./chunk-6AIAC2FP.cjs');
6
- require('./chunk-E3APHA6O.cjs');
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 chunkTQF7MYEN_cjs.COLLECTION_FORMAT; }
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 chunkTQF7MYEN_cjs.LAYOUT_FORMAT; }
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 chunkTQF7MYEN_cjs.LAYOUT_FORMAT_VERSION; }
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 chunkTQF7MYEN_cjs.RECORDING_FORMAT; }
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 chunkTQF7MYEN_cjs.RECORDING_FORMAT_VERSION; }
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 chunkTQF7MYEN_cjs.UnresolvedConnectionsError; }
42
+ get: function () { return chunkSAOBPYYJ_cjs.UnresolvedConnectionsError; }
37
43
  });
38
44
  Object.defineProperty(exports, "WorkflowBuilder", {
39
45
  enumerable: true,
40
- get: function () { return chunkTQF7MYEN_cjs.WorkflowBuilder; }
46
+ get: function () { return chunkSAOBPYYJ_cjs.WorkflowBuilder; }
41
47
  });
42
48
  Object.defineProperty(exports, "assembleRecording", {
43
49
  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; }
50
+ get: function () { return chunkSAOBPYYJ_cjs.assembleRecording; }
49
51
  });
50
52
  Object.defineProperty(exports, "defaultEdgeId", {
51
53
  enumerable: true,
52
- get: function () { return chunkTQF7MYEN_cjs.defaultEdgeId; }
54
+ get: function () { return chunkSAOBPYYJ_cjs.defaultEdgeId; }
53
55
  });
54
56
  Object.defineProperty(exports, "defineWorkflow", {
55
57
  enumerable: true,
56
- get: function () { return chunkTQF7MYEN_cjs.defineWorkflow; }
58
+ get: function () { return chunkSAOBPYYJ_cjs.defineWorkflow; }
57
59
  });
58
60
  Object.defineProperty(exports, "edge", {
59
61
  enumerable: true,
60
- get: function () { return chunkTQF7MYEN_cjs.edge; }
62
+ get: function () { return chunkSAOBPYYJ_cjs.edge; }
61
63
  });
62
64
  Object.defineProperty(exports, "internalNodes", {
63
65
  enumerable: true,
64
- get: function () { return chunkTQF7MYEN_cjs.internalNodes; }
66
+ get: function () { return chunkSAOBPYYJ_cjs.internalNodes; }
65
67
  });
66
68
  Object.defineProperty(exports, "isOperation", {
67
69
  enumerable: true,
68
- get: function () { return chunkTQF7MYEN_cjs.isOperation; }
70
+ get: function () { return chunkSAOBPYYJ_cjs.isOperation; }
69
71
  });
70
72
  Object.defineProperty(exports, "isTier1Workflow", {
71
73
  enumerable: true,
72
- get: function () { return chunkTQF7MYEN_cjs.isTier1Workflow; }
74
+ get: function () { return chunkSAOBPYYJ_cjs.isTier1Workflow; }
73
75
  });
74
76
  Object.defineProperty(exports, "nodes", {
75
77
  enumerable: true,
76
- get: function () { return chunkTQF7MYEN_cjs.nodes; }
78
+ get: function () { return chunkSAOBPYYJ_cjs.nodes; }
77
79
  });
78
80
  Object.defineProperty(exports, "op", {
79
81
  enumerable: true,
80
- get: function () { return chunkTQF7MYEN_cjs.op; }
82
+ get: function () { return chunkSAOBPYYJ_cjs.op; }
81
83
  });
82
84
  Object.defineProperty(exports, "parseLayoutSidecar", {
83
85
  enumerable: true,
84
- get: function () { return chunkTQF7MYEN_cjs.parseLayoutSidecar; }
86
+ get: function () { return chunkSAOBPYYJ_cjs.parseLayoutSidecar; }
85
87
  });
86
88
  Object.defineProperty(exports, "toIR", {
87
89
  enumerable: true,
88
- get: function () { return chunkTQF7MYEN_cjs.toIR; }
90
+ get: function () { return chunkSAOBPYYJ_cjs.toIR; }
89
91
  });
90
92
  Object.defineProperty(exports, "trigger", {
91
93
  enumerable: true,
92
- get: function () { return chunkTQF7MYEN_cjs.trigger; }
94
+ get: function () { return chunkSAOBPYYJ_cjs.trigger; }
93
95
  });
94
96
  Object.defineProperty(exports, "triggers", {
95
97
  enumerable: true,
96
- get: function () { return chunkTQF7MYEN_cjs.triggers; }
98
+ get: function () { return chunkSAOBPYYJ_cjs.triggers; }
97
99
  });
98
100
  Object.defineProperty(exports, "BuilderError", {
99
101
  enumerable: true,
100
- get: function () { return chunk6AIAC2FP_cjs.BuilderError; }
102
+ get: function () { return chunkGVTZMA5C_cjs.BuilderError; }
101
103
  });
102
104
  Object.defineProperty(exports, "PREDICATE_OPERATORS", {
103
105
  enumerable: true,
104
- get: function () { return chunk6AIAC2FP_cjs.PREDICATE_OPERATORS; }
106
+ get: function () { return chunkGVTZMA5C_cjs.PREDICATE_OPERATORS; }
105
107
  });
106
108
  Object.defineProperty(exports, "and", {
107
109
  enumerable: true,
108
- get: function () { return chunk6AIAC2FP_cjs.and; }
110
+ get: function () { return chunkGVTZMA5C_cjs.and; }
109
111
  });
110
112
  Object.defineProperty(exports, "expr", {
111
113
  enumerable: true,
112
- get: function () { return chunk6AIAC2FP_cjs.expr; }
114
+ get: function () { return chunkGVTZMA5C_cjs.expr; }
113
115
  });
114
116
  Object.defineProperty(exports, "or", {
115
117
  enumerable: true,
116
- get: function () { return chunk6AIAC2FP_cjs.or; }
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 './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';
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 tier-1 bundle: gathers the
7
- * recordings of every exported `defineWorkflow` value as one JSON string, the
8
- * only thing that leaves the isolate.
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 tier-1 workflows exported by each module, as JSON. */
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.1027.1";
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 './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';
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 tier-1 bundle: gathers the
7
- * recordings of every exported `defineWorkflow` value as one JSON string, the
8
- * only thing that leaves the isolate.
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 tier-1 workflows exported by each module, as JSON. */
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.1027.1";
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, 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';
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-UB2BHU2M.js';
4
- import './chunk-UJNHTS6D.js';
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';